@shakerquiz/utilities 0.3.35 → 0.3.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/source/enumerations/schemas.d.ts +8 -0
- package/source/enumerations/schemas.js +17 -0
- package/source/functions/schema.d.ts +5 -0
- package/source/functions/schema.js +70 -0
- package/source/game.d.ts +1 -10
- package/source/index.d.ts +2 -0
- package/source/index.js +2 -0
- package/source/role.d.ts +1 -1
- package/source/schemas/city.d.ts +43 -129
- package/source/schemas/city.js +43 -88
- package/source/schemas/game.d.ts +96 -25
- package/source/schemas/game.js +96 -25
- package/source/schemas/registration.d.ts +128 -33
- package/source/schemas/registration.js +128 -33
- package/source/schemas/theme.d.ts +28 -8
- package/source/schemas/theme.js +28 -8
- package/source/schemas/user.d.ts +72 -19
- package/source/schemas/user.js +72 -19
- package/source/schemas/venue.d.ts +76 -20
- package/source/schemas/venue.js +76 -20
package/source/schemas/city.js
CHANGED
|
@@ -1,269 +1,224 @@
|
|
|
1
|
-
export var
|
|
2
|
-
address:
|
|
3
|
-
alias: 'alias',
|
|
4
|
-
chatapp_category: 'chatapp_category',
|
|
5
|
-
chatapp_legacy: 'chatapp_legacy',
|
|
6
|
-
chatapp_line: 'chatapp_line',
|
|
7
|
-
chatapp_tag: 'chatapp_tag',
|
|
8
|
-
chatapp_user: 'chatapp_user',
|
|
9
|
-
country: 'country',
|
|
10
|
-
currency: 'currency',
|
|
11
|
-
custom_html: 'custom_html',
|
|
12
|
-
custom_script: 'custom_script',
|
|
13
|
-
description: 'description',
|
|
14
|
-
email: 'email',
|
|
15
|
-
game_time: 'game_time',
|
|
16
|
-
id: 'id',
|
|
17
|
-
inst_comment: 'inst_comment',
|
|
18
|
-
inst_link: 'inst_link',
|
|
19
|
-
inst_login: 'inst_login',
|
|
20
|
-
inst_password: 'inst_password',
|
|
21
|
-
is_default: 'is_default',
|
|
22
|
-
is_franchise: 'is_franchise',
|
|
23
|
-
max_members_count: 'max_members_count',
|
|
24
|
-
meta_description: 'meta_description',
|
|
25
|
-
meta_title: 'meta_title',
|
|
26
|
-
min_members_count: 'min_members_count',
|
|
27
|
-
name: 'name',
|
|
28
|
-
phone: 'phone',
|
|
29
|
-
price: 'price',
|
|
30
|
-
region: 'region',
|
|
31
|
-
telegram_chat_id: 'telegram_chat_id',
|
|
32
|
-
tg_comment: 'tg_comment',
|
|
33
|
-
tg_link: 'tg_link',
|
|
34
|
-
tg_login: 'tg_login',
|
|
35
|
-
tg_password: 'tg_password',
|
|
36
|
-
time_created: 'time_created',
|
|
37
|
-
time_updated: 'time_updated',
|
|
38
|
-
timezone: 'timezone',
|
|
39
|
-
title: 'title',
|
|
40
|
-
vk_comment: 'vk_comment',
|
|
41
|
-
vk_group_id: 'vk_group_id',
|
|
42
|
-
vk_link: 'vk_link',
|
|
43
|
-
yandex_metrica: 'yandex_metrica',
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
export var CityColumnDescriptors = /** @type {const} */ ({
|
|
47
|
-
[CityColumns.address]: {
|
|
1
|
+
export var CitySchema = /** @type {const} */ ({
|
|
2
|
+
address: {
|
|
48
3
|
type: 'String',
|
|
49
4
|
minLength: 1,
|
|
50
5
|
maxLength: 255,
|
|
51
6
|
},
|
|
52
7
|
|
|
53
|
-
|
|
8
|
+
alias: {
|
|
54
9
|
type: 'String',
|
|
55
10
|
minLength: 1,
|
|
56
11
|
maxLength: 255,
|
|
57
12
|
},
|
|
58
13
|
|
|
59
|
-
|
|
14
|
+
chatapp_category: {
|
|
60
15
|
type: 'String',
|
|
61
16
|
},
|
|
62
17
|
|
|
63
|
-
|
|
18
|
+
chatapp_legacy: {
|
|
64
19
|
type: 'Boolean',
|
|
65
20
|
},
|
|
66
21
|
|
|
67
|
-
|
|
22
|
+
chatapp_line: {
|
|
68
23
|
type: 'String',
|
|
69
24
|
minLength: 1,
|
|
70
25
|
maxLength: 255,
|
|
71
26
|
},
|
|
72
27
|
|
|
73
|
-
|
|
28
|
+
chatapp_tag: {
|
|
74
29
|
type: 'String',
|
|
75
30
|
minLength: 1,
|
|
76
31
|
maxLength: 255,
|
|
77
32
|
},
|
|
78
33
|
|
|
79
|
-
|
|
34
|
+
chatapp_user: {
|
|
80
35
|
type: 'String',
|
|
81
36
|
minLength: 1,
|
|
82
37
|
maxLength: 255,
|
|
83
38
|
},
|
|
84
39
|
|
|
85
|
-
|
|
40
|
+
country: {
|
|
86
41
|
type: 'String',
|
|
87
42
|
minLength: 2,
|
|
88
43
|
maxLength: 2,
|
|
89
44
|
},
|
|
90
45
|
|
|
91
|
-
|
|
46
|
+
currency: {
|
|
92
47
|
type: 'String',
|
|
93
48
|
minLength: 3,
|
|
94
49
|
maxLength: 3,
|
|
95
50
|
},
|
|
96
51
|
|
|
97
|
-
|
|
52
|
+
custom_html: {
|
|
98
53
|
type: 'String',
|
|
99
54
|
},
|
|
100
55
|
|
|
101
|
-
|
|
56
|
+
custom_script: {
|
|
102
57
|
type: 'String',
|
|
103
58
|
},
|
|
104
59
|
|
|
105
|
-
|
|
60
|
+
description: {
|
|
106
61
|
type: 'String',
|
|
107
62
|
minLength: 1,
|
|
108
63
|
maxLength: 255,
|
|
109
64
|
},
|
|
110
65
|
|
|
111
|
-
|
|
66
|
+
email: {
|
|
112
67
|
type: 'String',
|
|
113
68
|
minLength: 1,
|
|
114
69
|
maxLength: 255,
|
|
115
70
|
format: 'email',
|
|
116
71
|
},
|
|
117
72
|
|
|
118
|
-
|
|
73
|
+
game_time: {
|
|
119
74
|
type: 'String',
|
|
120
75
|
format: 'time',
|
|
121
76
|
},
|
|
122
77
|
|
|
123
|
-
|
|
78
|
+
id: {
|
|
124
79
|
type: 'String',
|
|
125
80
|
format: 'uuid',
|
|
126
81
|
},
|
|
127
82
|
|
|
128
|
-
|
|
83
|
+
inst_comment: {
|
|
129
84
|
type: 'String',
|
|
130
85
|
deprecated: true,
|
|
131
86
|
},
|
|
132
87
|
|
|
133
|
-
|
|
88
|
+
inst_link: {
|
|
134
89
|
type: 'String',
|
|
135
90
|
deprecated: true,
|
|
136
91
|
},
|
|
137
92
|
|
|
138
|
-
|
|
93
|
+
inst_login: {
|
|
139
94
|
type: 'String',
|
|
140
95
|
deprecated: true,
|
|
141
96
|
},
|
|
142
97
|
|
|
143
|
-
|
|
98
|
+
inst_password: {
|
|
144
99
|
type: 'String',
|
|
145
100
|
deprecated: true,
|
|
146
101
|
},
|
|
147
102
|
|
|
148
|
-
|
|
103
|
+
is_default: {
|
|
149
104
|
type: 'Boolean',
|
|
150
105
|
},
|
|
151
106
|
|
|
152
|
-
|
|
107
|
+
is_franchise: {
|
|
153
108
|
type: 'Boolean',
|
|
154
109
|
},
|
|
155
110
|
|
|
156
|
-
|
|
111
|
+
max_members_count: {
|
|
157
112
|
type: 'Number',
|
|
158
113
|
format: 'integer',
|
|
159
114
|
},
|
|
160
115
|
|
|
161
|
-
|
|
116
|
+
meta_description: {
|
|
162
117
|
type: 'String',
|
|
163
118
|
minLength: 1,
|
|
164
119
|
maxLength: 255,
|
|
165
120
|
},
|
|
166
121
|
|
|
167
|
-
|
|
122
|
+
meta_title: {
|
|
168
123
|
type: 'String',
|
|
169
124
|
minLength: 1,
|
|
170
125
|
maxLength: 255,
|
|
171
126
|
},
|
|
172
127
|
|
|
173
|
-
|
|
128
|
+
min_members_count: {
|
|
174
129
|
type: 'Number',
|
|
175
130
|
format: 'integer',
|
|
176
131
|
},
|
|
177
132
|
|
|
178
|
-
|
|
133
|
+
name: {
|
|
179
134
|
type: 'String',
|
|
180
135
|
minLength: 1,
|
|
181
136
|
maxLength: 255,
|
|
182
137
|
},
|
|
183
138
|
|
|
184
|
-
|
|
139
|
+
phone: {
|
|
185
140
|
type: 'String',
|
|
186
141
|
minLength: 1,
|
|
187
142
|
maxLength: 255,
|
|
188
143
|
},
|
|
189
144
|
|
|
190
|
-
|
|
145
|
+
price: {
|
|
191
146
|
type: 'Number',
|
|
192
147
|
format: 'float',
|
|
193
148
|
},
|
|
194
149
|
|
|
195
|
-
|
|
150
|
+
region: {
|
|
196
151
|
type: 'String',
|
|
197
152
|
minLength: 1,
|
|
198
153
|
maxLength: 255,
|
|
199
154
|
},
|
|
200
155
|
|
|
201
|
-
|
|
156
|
+
telegram_chat_id: {
|
|
202
157
|
type: 'String',
|
|
203
158
|
minLength: 1,
|
|
204
159
|
maxLength: 255,
|
|
205
160
|
},
|
|
206
161
|
|
|
207
|
-
|
|
162
|
+
tg_comment: {
|
|
208
163
|
type: 'String',
|
|
209
164
|
minLength: 1,
|
|
210
165
|
maxLength: 255,
|
|
211
166
|
},
|
|
212
167
|
|
|
213
|
-
|
|
168
|
+
tg_link: {
|
|
214
169
|
type: 'String',
|
|
215
170
|
minLength: 1,
|
|
216
171
|
maxLength: 255,
|
|
217
172
|
},
|
|
218
173
|
|
|
219
|
-
|
|
174
|
+
tg_login: {
|
|
220
175
|
type: 'String',
|
|
221
176
|
deprecated: true,
|
|
222
177
|
minLength: 1,
|
|
223
178
|
maxLength: 255,
|
|
224
179
|
},
|
|
225
180
|
|
|
226
|
-
|
|
181
|
+
tg_password: {
|
|
227
182
|
type: 'String',
|
|
228
183
|
deprecated: true,
|
|
229
184
|
minLength: 1,
|
|
230
185
|
maxLength: 255,
|
|
231
186
|
},
|
|
232
187
|
|
|
233
|
-
|
|
188
|
+
time_created: {
|
|
234
189
|
type: 'String',
|
|
235
190
|
format: 'Date',
|
|
236
191
|
},
|
|
237
192
|
|
|
238
|
-
|
|
193
|
+
time_updated: {
|
|
239
194
|
type: 'String',
|
|
240
195
|
format: 'Date',
|
|
241
196
|
},
|
|
242
197
|
|
|
243
|
-
|
|
198
|
+
timezone: {
|
|
244
199
|
type: 'String',
|
|
245
200
|
format: 'integer',
|
|
246
201
|
},
|
|
247
202
|
|
|
248
|
-
|
|
203
|
+
title: {
|
|
249
204
|
type: 'String',
|
|
250
205
|
minLength: 1,
|
|
251
206
|
maxLength: 255,
|
|
252
207
|
},
|
|
253
208
|
|
|
254
|
-
|
|
209
|
+
vk_comment: {
|
|
255
210
|
type: 'String',
|
|
256
211
|
},
|
|
257
212
|
|
|
258
|
-
|
|
213
|
+
vk_group_id: {
|
|
259
214
|
type: 'String',
|
|
260
215
|
},
|
|
261
216
|
|
|
262
|
-
|
|
217
|
+
vk_link: {
|
|
263
218
|
type: 'String',
|
|
264
219
|
},
|
|
265
220
|
|
|
266
|
-
|
|
221
|
+
yandex_metrica: {
|
|
267
222
|
type: 'String',
|
|
268
223
|
},
|
|
269
224
|
})
|
package/source/schemas/game.d.ts
CHANGED
|
@@ -1,26 +1,97 @@
|
|
|
1
|
-
export namespace
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
export namespace GameSchema {
|
|
2
|
+
namespace alias {
|
|
3
|
+
let type: "Undefined";
|
|
4
|
+
}
|
|
5
|
+
namespace city_id {
|
|
6
|
+
let type_1: "Undefined";
|
|
7
|
+
export { type_1 as type };
|
|
8
|
+
}
|
|
9
|
+
namespace created_by_id {
|
|
10
|
+
let type_2: "Undefined";
|
|
11
|
+
export { type_2 as type };
|
|
12
|
+
}
|
|
13
|
+
namespace currency {
|
|
14
|
+
let type_3: "Undefined";
|
|
15
|
+
export { type_3 as type };
|
|
16
|
+
}
|
|
17
|
+
namespace description {
|
|
18
|
+
let type_4: "Undefined";
|
|
19
|
+
export { type_4 as type };
|
|
20
|
+
}
|
|
21
|
+
namespace event_time {
|
|
22
|
+
let type_5: "Undefined";
|
|
23
|
+
export { type_5 as type };
|
|
24
|
+
}
|
|
25
|
+
namespace game_pack_id {
|
|
26
|
+
let type_6: "Undefined";
|
|
27
|
+
export { type_6 as type };
|
|
28
|
+
}
|
|
29
|
+
namespace id {
|
|
30
|
+
let type_7: "Undefined";
|
|
31
|
+
export { type_7 as type };
|
|
32
|
+
}
|
|
33
|
+
namespace image_id {
|
|
34
|
+
let type_8: "Undefined";
|
|
35
|
+
export { type_8 as type };
|
|
36
|
+
}
|
|
37
|
+
namespace location_id {
|
|
38
|
+
let type_9: "Undefined";
|
|
39
|
+
export { type_9 as type };
|
|
40
|
+
}
|
|
41
|
+
namespace max_members_count {
|
|
42
|
+
let type_10: "Undefined";
|
|
43
|
+
export { type_10 as type };
|
|
44
|
+
}
|
|
45
|
+
namespace min_members_count {
|
|
46
|
+
let type_11: "Undefined";
|
|
47
|
+
export { type_11 as type };
|
|
48
|
+
}
|
|
49
|
+
namespace name {
|
|
50
|
+
let type_12: "Undefined";
|
|
51
|
+
export { type_12 as type };
|
|
52
|
+
}
|
|
53
|
+
namespace number {
|
|
54
|
+
let type_13: "Undefined";
|
|
55
|
+
export { type_13 as type };
|
|
56
|
+
}
|
|
57
|
+
namespace owner_id {
|
|
58
|
+
let type_14: "Undefined";
|
|
59
|
+
export { type_14 as type };
|
|
60
|
+
}
|
|
61
|
+
namespace personal_comment {
|
|
62
|
+
let type_15: "Undefined";
|
|
63
|
+
export { type_15 as type };
|
|
64
|
+
}
|
|
65
|
+
namespace price {
|
|
66
|
+
let type_16: "Undefined";
|
|
67
|
+
export { type_16 as type };
|
|
68
|
+
}
|
|
69
|
+
namespace short_description {
|
|
70
|
+
let type_17: "Undefined";
|
|
71
|
+
export { type_17 as type };
|
|
72
|
+
}
|
|
73
|
+
namespace status {
|
|
74
|
+
let type_18: "Undefined";
|
|
75
|
+
export { type_18 as type };
|
|
76
|
+
}
|
|
77
|
+
namespace theme_id {
|
|
78
|
+
let type_19: "Undefined";
|
|
79
|
+
export { type_19 as type };
|
|
80
|
+
}
|
|
81
|
+
namespace time_created {
|
|
82
|
+
let type_20: "Undefined";
|
|
83
|
+
export { type_20 as type };
|
|
84
|
+
}
|
|
85
|
+
namespace time_updated {
|
|
86
|
+
let type_21: "Undefined";
|
|
87
|
+
export { type_21 as type };
|
|
88
|
+
}
|
|
89
|
+
namespace timezone {
|
|
90
|
+
let type_22: "Undefined";
|
|
91
|
+
export { type_22 as type };
|
|
92
|
+
}
|
|
93
|
+
namespace weekday {
|
|
94
|
+
let type_23: "Undefined";
|
|
95
|
+
export { type_23 as type };
|
|
96
|
+
}
|
|
26
97
|
}
|
package/source/schemas/game.js
CHANGED
|
@@ -1,26 +1,97 @@
|
|
|
1
|
-
export var
|
|
2
|
-
alias:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
export var GameSchema = /** @type {const} */ ({
|
|
2
|
+
alias: {
|
|
3
|
+
type: 'Undefined',
|
|
4
|
+
},
|
|
5
|
+
|
|
6
|
+
city_id: {
|
|
7
|
+
type: 'Undefined',
|
|
8
|
+
},
|
|
9
|
+
|
|
10
|
+
created_by_id: {
|
|
11
|
+
type: 'Undefined',
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
currency: {
|
|
15
|
+
type: 'Undefined',
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
description: {
|
|
19
|
+
type: 'Undefined',
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
event_time: {
|
|
23
|
+
type: 'Undefined',
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
game_pack_id: {
|
|
27
|
+
type: 'Undefined',
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
id: {
|
|
31
|
+
type: 'Undefined',
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
image_id: {
|
|
35
|
+
type: 'Undefined',
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
location_id: {
|
|
39
|
+
type: 'Undefined',
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
max_members_count: {
|
|
43
|
+
type: 'Undefined',
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
min_members_count: {
|
|
47
|
+
type: 'Undefined',
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
name: {
|
|
51
|
+
type: 'Undefined',
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
number: {
|
|
55
|
+
type: 'Undefined',
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
owner_id: {
|
|
59
|
+
type: 'Undefined',
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
personal_comment: {
|
|
63
|
+
type: 'Undefined',
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
price: {
|
|
67
|
+
type: 'Undefined',
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
short_description: {
|
|
71
|
+
type: 'Undefined',
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
status: {
|
|
75
|
+
type: 'Undefined',
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
theme_id: {
|
|
79
|
+
type: 'Undefined',
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
time_created: {
|
|
83
|
+
type: 'Undefined',
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
time_updated: {
|
|
87
|
+
type: 'Undefined',
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
timezone: {
|
|
91
|
+
type: 'Undefined',
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
weekday: {
|
|
95
|
+
type: 'Undefined',
|
|
96
|
+
},
|
|
26
97
|
})
|