@shakerquiz/contracts 0.0.11 → 0.0.12
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
CHANGED
|
@@ -10,18 +10,269 @@
|
|
|
10
10
|
"country": {
|
|
11
11
|
"type": "string",
|
|
12
12
|
"enum": [
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
13
|
+
"AC",
|
|
14
|
+
"AD",
|
|
15
|
+
"AE",
|
|
16
|
+
"AF",
|
|
17
|
+
"AG",
|
|
18
|
+
"AI",
|
|
19
|
+
"AL",
|
|
20
|
+
"AM",
|
|
21
|
+
"AO",
|
|
22
|
+
"AQ",
|
|
23
|
+
"AR",
|
|
24
|
+
"AS",
|
|
25
|
+
"AT",
|
|
26
|
+
"AU",
|
|
27
|
+
"AW",
|
|
28
|
+
"AX",
|
|
29
|
+
"AZ",
|
|
30
|
+
"BA",
|
|
31
|
+
"BB",
|
|
32
|
+
"BD",
|
|
33
|
+
"BE",
|
|
34
|
+
"BF",
|
|
35
|
+
"BG",
|
|
36
|
+
"BH",
|
|
37
|
+
"BI",
|
|
38
|
+
"BJ",
|
|
39
|
+
"BL",
|
|
40
|
+
"BM",
|
|
41
|
+
"BN",
|
|
42
|
+
"BO",
|
|
43
|
+
"BQ",
|
|
44
|
+
"BR",
|
|
45
|
+
"BS",
|
|
46
|
+
"BT",
|
|
47
|
+
"BV",
|
|
48
|
+
"BW",
|
|
16
49
|
"BY",
|
|
50
|
+
"BZ",
|
|
51
|
+
"CA",
|
|
52
|
+
"CC",
|
|
53
|
+
"CD",
|
|
54
|
+
"CF",
|
|
55
|
+
"CG",
|
|
56
|
+
"CH",
|
|
57
|
+
"CI",
|
|
58
|
+
"CK",
|
|
59
|
+
"CL",
|
|
60
|
+
"CM",
|
|
61
|
+
"CN",
|
|
62
|
+
"CO",
|
|
63
|
+
"CP",
|
|
64
|
+
"CR",
|
|
65
|
+
"CU",
|
|
66
|
+
"CV",
|
|
67
|
+
"CW",
|
|
68
|
+
"CX",
|
|
69
|
+
"CY",
|
|
70
|
+
"CZ",
|
|
71
|
+
"DE",
|
|
72
|
+
"DG",
|
|
73
|
+
"DJ",
|
|
74
|
+
"DK",
|
|
75
|
+
"DM",
|
|
76
|
+
"DO",
|
|
77
|
+
"DZ",
|
|
78
|
+
"EA",
|
|
79
|
+
"EC",
|
|
80
|
+
"EE",
|
|
81
|
+
"EG",
|
|
82
|
+
"EH",
|
|
83
|
+
"ER",
|
|
84
|
+
"ES",
|
|
85
|
+
"ET",
|
|
86
|
+
"EU",
|
|
87
|
+
"EZ",
|
|
88
|
+
"FI",
|
|
89
|
+
"FJ",
|
|
90
|
+
"FK",
|
|
91
|
+
"FM",
|
|
92
|
+
"FO",
|
|
93
|
+
"FR",
|
|
94
|
+
"GA",
|
|
95
|
+
"GB",
|
|
96
|
+
"GD",
|
|
17
97
|
"GE",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
98
|
+
"GF",
|
|
99
|
+
"GG",
|
|
100
|
+
"GH",
|
|
101
|
+
"GI",
|
|
102
|
+
"GL",
|
|
103
|
+
"GM",
|
|
104
|
+
"GN",
|
|
105
|
+
"GP",
|
|
106
|
+
"GQ",
|
|
107
|
+
"GR",
|
|
108
|
+
"GS",
|
|
109
|
+
"GT",
|
|
110
|
+
"GU",
|
|
111
|
+
"GW",
|
|
112
|
+
"GY",
|
|
113
|
+
"HK",
|
|
114
|
+
"HM",
|
|
115
|
+
"HN",
|
|
116
|
+
"HR",
|
|
117
|
+
"HT",
|
|
118
|
+
"HU",
|
|
119
|
+
"IC",
|
|
120
|
+
"ID",
|
|
121
|
+
"IE",
|
|
122
|
+
"IL",
|
|
123
|
+
"IM",
|
|
124
|
+
"IN",
|
|
125
|
+
"IO",
|
|
126
|
+
"IQ",
|
|
127
|
+
"IR",
|
|
128
|
+
"IS",
|
|
129
|
+
"IT",
|
|
130
|
+
"JE",
|
|
131
|
+
"JM",
|
|
132
|
+
"JO",
|
|
133
|
+
"JP",
|
|
134
|
+
"KE",
|
|
135
|
+
"KG",
|
|
136
|
+
"KH",
|
|
137
|
+
"KI",
|
|
138
|
+
"KM",
|
|
139
|
+
"KN",
|
|
140
|
+
"KP",
|
|
141
|
+
"KR",
|
|
142
|
+
"KW",
|
|
143
|
+
"KY",
|
|
144
|
+
"KZ",
|
|
145
|
+
"LA",
|
|
146
|
+
"LB",
|
|
147
|
+
"LC",
|
|
148
|
+
"LI",
|
|
149
|
+
"LK",
|
|
150
|
+
"LR",
|
|
151
|
+
"LS",
|
|
152
|
+
"LT",
|
|
153
|
+
"LU",
|
|
154
|
+
"LV",
|
|
155
|
+
"LY",
|
|
156
|
+
"MA",
|
|
157
|
+
"MC",
|
|
20
158
|
"MD",
|
|
159
|
+
"ME",
|
|
160
|
+
"MF",
|
|
161
|
+
"MG",
|
|
162
|
+
"MH",
|
|
163
|
+
"MK",
|
|
164
|
+
"ML",
|
|
165
|
+
"MM",
|
|
166
|
+
"MN",
|
|
167
|
+
"MO",
|
|
168
|
+
"MP",
|
|
169
|
+
"MQ",
|
|
170
|
+
"MR",
|
|
171
|
+
"MS",
|
|
172
|
+
"MT",
|
|
173
|
+
"MU",
|
|
174
|
+
"MV",
|
|
175
|
+
"MW",
|
|
176
|
+
"MX",
|
|
177
|
+
"MY",
|
|
178
|
+
"MZ",
|
|
179
|
+
"NA",
|
|
180
|
+
"NC",
|
|
181
|
+
"NE",
|
|
182
|
+
"NF",
|
|
183
|
+
"NG",
|
|
184
|
+
"NI",
|
|
185
|
+
"NL",
|
|
186
|
+
"NO",
|
|
187
|
+
"NP",
|
|
188
|
+
"NR",
|
|
189
|
+
"NU",
|
|
190
|
+
"NZ",
|
|
191
|
+
"OM",
|
|
192
|
+
"PA",
|
|
193
|
+
"PE",
|
|
194
|
+
"PF",
|
|
195
|
+
"PG",
|
|
196
|
+
"PH",
|
|
197
|
+
"PK",
|
|
198
|
+
"PL",
|
|
199
|
+
"PM",
|
|
200
|
+
"PN",
|
|
201
|
+
"PR",
|
|
202
|
+
"PS",
|
|
203
|
+
"PT",
|
|
204
|
+
"PW",
|
|
205
|
+
"PY",
|
|
206
|
+
"QA",
|
|
207
|
+
"QO",
|
|
208
|
+
"RE",
|
|
209
|
+
"RO",
|
|
210
|
+
"RS",
|
|
211
|
+
"RU",
|
|
212
|
+
"RW",
|
|
213
|
+
"SA",
|
|
214
|
+
"SB",
|
|
215
|
+
"SC",
|
|
216
|
+
"SD",
|
|
217
|
+
"SE",
|
|
218
|
+
"SG",
|
|
219
|
+
"SH",
|
|
220
|
+
"SI",
|
|
221
|
+
"SJ",
|
|
222
|
+
"SK",
|
|
223
|
+
"SL",
|
|
224
|
+
"SM",
|
|
225
|
+
"SN",
|
|
226
|
+
"SO",
|
|
227
|
+
"SR",
|
|
228
|
+
"SS",
|
|
229
|
+
"ST",
|
|
230
|
+
"SV",
|
|
231
|
+
"SX",
|
|
232
|
+
"SY",
|
|
233
|
+
"SZ",
|
|
234
|
+
"TA",
|
|
235
|
+
"TC",
|
|
236
|
+
"TD",
|
|
237
|
+
"TF",
|
|
238
|
+
"TG",
|
|
239
|
+
"TH",
|
|
240
|
+
"TJ",
|
|
241
|
+
"TK",
|
|
242
|
+
"TL",
|
|
243
|
+
"TM",
|
|
244
|
+
"TN",
|
|
245
|
+
"TO",
|
|
21
246
|
"TR",
|
|
247
|
+
"TT",
|
|
248
|
+
"TV",
|
|
249
|
+
"TW",
|
|
250
|
+
"TZ",
|
|
251
|
+
"UA",
|
|
252
|
+
"UG",
|
|
253
|
+
"UM",
|
|
254
|
+
"UN",
|
|
255
|
+
"US",
|
|
256
|
+
"UY",
|
|
22
257
|
"UZ",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
258
|
+
"VA",
|
|
259
|
+
"VC",
|
|
260
|
+
"VE",
|
|
261
|
+
"VG",
|
|
262
|
+
"VI",
|
|
263
|
+
"VN",
|
|
264
|
+
"VU",
|
|
265
|
+
"WF",
|
|
266
|
+
"WS",
|
|
267
|
+
"XA",
|
|
268
|
+
"XB",
|
|
269
|
+
"XK",
|
|
270
|
+
"YE",
|
|
271
|
+
"YT",
|
|
272
|
+
"ZA",
|
|
273
|
+
"ZM",
|
|
274
|
+
"ZW",
|
|
275
|
+
"ZZ"
|
|
25
276
|
]
|
|
26
277
|
},
|
|
27
278
|
"currency_name": {
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"ads_from": {
|
|
5
|
+
"type": "string"
|
|
6
|
+
},
|
|
7
|
+
"channel": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"confirmed_channel": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"comment": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"email": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"event_id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "uuid"
|
|
22
|
+
},
|
|
23
|
+
"human_name": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"is_alone": {
|
|
27
|
+
"type": "boolean"
|
|
28
|
+
},
|
|
29
|
+
"is_birthday": {
|
|
30
|
+
"type": "boolean"
|
|
31
|
+
},
|
|
32
|
+
"is_extensible": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"is_first": {
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
},
|
|
38
|
+
"people_count": {
|
|
39
|
+
"type": "integer"
|
|
40
|
+
},
|
|
41
|
+
"phone": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"promocode": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"team_name": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"telegramBot": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"utm_campaign": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"utm_content": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"utm_medium": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"utm_source": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"utm_term": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"vkontakte": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": [
|
|
73
|
+
"event_id",
|
|
74
|
+
"human_name",
|
|
75
|
+
"is_alone",
|
|
76
|
+
"is_birthday",
|
|
77
|
+
"is_extensible",
|
|
78
|
+
"is_first",
|
|
79
|
+
"people_count",
|
|
80
|
+
"team_name",
|
|
81
|
+
"channel",
|
|
82
|
+
"email"
|
|
83
|
+
],
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"allOf": [
|
|
86
|
+
{
|
|
87
|
+
"if": {
|
|
88
|
+
"properties": {
|
|
89
|
+
"channel": {
|
|
90
|
+
"const": "telegramBot"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": [
|
|
94
|
+
"channel"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"then": {
|
|
98
|
+
"required": [
|
|
99
|
+
"channel",
|
|
100
|
+
"confirmed_channel",
|
|
101
|
+
"telegramBot"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"if": {
|
|
107
|
+
"properties": {
|
|
108
|
+
"channel": {
|
|
109
|
+
"const": "vkontakte"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": [
|
|
113
|
+
"channel"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"then": {
|
|
117
|
+
"required": [
|
|
118
|
+
"channel",
|
|
119
|
+
"confirmed_channel",
|
|
120
|
+
"vkontakte"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"ads_from": {
|
|
5
|
+
"type": "string"
|
|
6
|
+
},
|
|
7
|
+
"channel": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"confirmed_channel": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"comment": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"email": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"event_id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "uuid"
|
|
22
|
+
},
|
|
23
|
+
"human_name": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"is_alone": {
|
|
27
|
+
"type": "boolean"
|
|
28
|
+
},
|
|
29
|
+
"is_birthday": {
|
|
30
|
+
"type": "boolean"
|
|
31
|
+
},
|
|
32
|
+
"is_extensible": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"is_first": {
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
},
|
|
38
|
+
"people_count": {
|
|
39
|
+
"type": "integer"
|
|
40
|
+
},
|
|
41
|
+
"phone": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"promocode": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"team_name": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"telegramBot": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"utm_campaign": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"utm_content": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"utm_medium": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"utm_source": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"utm_term": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"vkontakte": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": [
|
|
73
|
+
"event_id",
|
|
74
|
+
"human_name",
|
|
75
|
+
"is_alone",
|
|
76
|
+
"is_birthday",
|
|
77
|
+
"is_extensible",
|
|
78
|
+
"is_first",
|
|
79
|
+
"people_count",
|
|
80
|
+
"team_name",
|
|
81
|
+
"channel",
|
|
82
|
+
"email"
|
|
83
|
+
],
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"allOf": [
|
|
86
|
+
{
|
|
87
|
+
"if": {
|
|
88
|
+
"properties": {
|
|
89
|
+
"channel": {
|
|
90
|
+
"const": "telegramBot"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": [
|
|
94
|
+
"channel"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"then": {
|
|
98
|
+
"required": [
|
|
99
|
+
"channel",
|
|
100
|
+
"confirmed_channel",
|
|
101
|
+
"telegramBot"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"if": {
|
|
107
|
+
"properties": {
|
|
108
|
+
"channel": {
|
|
109
|
+
"const": "vkontakte"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": [
|
|
113
|
+
"channel"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"then": {
|
|
117
|
+
"required": [
|
|
118
|
+
"channel",
|
|
119
|
+
"confirmed_channel",
|
|
120
|
+
"vkontakte"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
package/source/index.js
CHANGED
|
@@ -4,6 +4,8 @@ import POST_game_admin from'./contracts/POST/game/admin.json' with { type: 'json
|
|
|
4
4
|
import POST_game_organizer from'./contracts/POST/game/organizer.json' with { type: 'json' }
|
|
5
5
|
import POST_game_registrations_export_admin from'./contracts/POST/game/registrations/export/admin.json' with { type: 'json' }
|
|
6
6
|
import POST_game_registrations_export_organizer from'./contracts/POST/game/registrations/export/organizer.json' with { type: 'json' }
|
|
7
|
+
import POST_registration_admin from'./contracts/POST/registration/admin.json' with { type: 'json' }
|
|
8
|
+
import POST_registration_organizer from'./contracts/POST/registration/organizer.json' with { type: 'json' }
|
|
7
9
|
import POST_registration_Unknown from'./contracts/POST/registration/Unknown.json' with { type: 'json' }
|
|
8
10
|
import POST_registration_mailing_admin from'./contracts/POST/registration/mailing/admin.json' with { type: 'json' }
|
|
9
11
|
import POST_registration_mailing_organizer from'./contracts/POST/registration/mailing/organizer.json' with { type: 'json' }
|
|
@@ -46,6 +48,8 @@ export const Contract = Object.freeze({
|
|
|
46
48
|
'POST/game/organizer': 'POST/game/organizer',
|
|
47
49
|
'POST/game/registrations/export/admin': 'POST/game/registrations/export/admin',
|
|
48
50
|
'POST/game/registrations/export/organizer': 'POST/game/registrations/export/organizer',
|
|
51
|
+
'POST/registration/admin': 'POST/registration/admin',
|
|
52
|
+
'POST/registration/organizer': 'POST/registration/organizer',
|
|
49
53
|
'POST/registration/Unknown': 'POST/registration/Unknown',
|
|
50
54
|
'POST/registration/mailing/admin': 'POST/registration/mailing/admin',
|
|
51
55
|
'POST/registration/mailing/organizer': 'POST/registration/mailing/organizer',
|
|
@@ -96,6 +100,8 @@ export const ContractSchema = Object.freeze({
|
|
|
96
100
|
[Contract['POST/game/organizer']]: POST_game_organizer,
|
|
97
101
|
[Contract['POST/game/registrations/export/admin']]: POST_game_registrations_export_admin,
|
|
98
102
|
[Contract['POST/game/registrations/export/organizer']]: POST_game_registrations_export_organizer,
|
|
103
|
+
[Contract['POST/registration/admin']]: POST_registration_admin,
|
|
104
|
+
[Contract['POST/registration/organizer']]: POST_registration_organizer,
|
|
99
105
|
[Contract['POST/registration/Unknown']]: POST_registration_Unknown,
|
|
100
106
|
[Contract['POST/registration/mailing/admin']]: POST_registration_mailing_admin,
|
|
101
107
|
[Contract['POST/registration/mailing/organizer']]: POST_registration_mailing_organizer,
|