1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
const logSchema = {
/**
* 集計期間時点での、全ユーザー数
*/
total: {
type: 'number' as const,
optional: false as const, nullable: false as const,
description: '集計期間時点での、全ユーザー数'
},
/**
* 増加したユーザー数
*/
inc: {
type: 'number' as const,
optional: false as const, nullable: false as const,
description: '増加したユーザー数'
},
/**
* 減少したユーザー数
*/
dec: {
type: 'number' as const,
optional: false as const, nullable: false as const,
description: '減少したユーザー数'
},
};
export const schema = {
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: {
local: {
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: logSchema
},
remote: {
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: logSchema
},
}
};
export const name = 'users';
|