@shakerquiz/contracts 0.0.76 → 0.0.77

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/contracts",
4
- "version": "0.0.76",
4
+ "version": "0.0.77",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -1,268 +1,121 @@
1
1
  {
2
2
  "type": "object",
3
- "anyOf": [
3
+ "properties": {
4
+ "event_id": {
5
+ "type": "string",
6
+ "format": "uuid"
7
+ },
8
+ "human_name": {
9
+ "type": "string"
10
+ },
11
+ "team_name": {
12
+ "type": "string"
13
+ },
14
+ "people_count": {
15
+ "type": "integer"
16
+ },
17
+ "channel": {
18
+ "type": "vkontakte"
19
+ },
20
+ "confirmed_channel": {
21
+ "type": "vkontakte"
22
+ },
23
+ "email": {
24
+ "type": "string"
25
+ },
26
+ "vkontakte": {
27
+ "type": "string"
28
+ },
29
+ "telegramBot": {
30
+ "type": "string"
31
+ },
32
+ "is_alone": {
33
+ "type": "boolean"
34
+ },
35
+ "is_birthday": {
36
+ "type": "boolean"
37
+ },
38
+ "is_extensible": {
39
+ "type": "boolean"
40
+ },
41
+ "is_first": {
42
+ "type": "boolean"
43
+ },
44
+ "ads_from": {
45
+ "type": "string"
46
+ },
47
+ "comment": {
48
+ "type": "string"
49
+ },
50
+ "phone": {
51
+ "type": "string"
52
+ },
53
+ "promocode": {
54
+ "type": "string"
55
+ },
56
+ "utm_campaign": {
57
+ "type": "string"
58
+ },
59
+ "utm_content": {
60
+ "type": "string"
61
+ },
62
+ "utm_medium": {
63
+ "type": "string"
64
+ },
65
+ "utm_source": {
66
+ "type": "string"
67
+ },
68
+ "utm_term": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ "required": [
73
+ "event_id",
74
+ "human_name",
75
+ "team_name",
76
+ "people_count",
77
+ "channel",
78
+ "is_alone",
79
+ "is_birthday",
80
+ "is_extensible",
81
+ "is_first"
82
+ ],
83
+ "additionalProperties": true,
84
+ "oneOf": [
4
85
  {
5
- "if": {
6
- "properties": {
7
- "event_id": {
8
- "type": "string",
9
- "format": "uuid"
10
- },
11
- "human_name": {
12
- "type": "string"
13
- },
14
- "team_name": {
15
- "type": "string"
16
- },
17
- "people_count": {
18
- "type": "integer"
19
- },
20
- "channel": {
21
- "const": "vkontakte"
22
- },
23
- "confirmed_channel": {
24
- "const": "vkontakte"
25
- },
26
- "email": {
27
- "type": "string"
28
- },
29
- "vkontakte": {
30
- "type": "string"
31
- },
32
- "telegramBot": {
33
- "type": "string"
34
- },
35
- "is_alone": {
36
- "type": "boolean"
37
- },
38
- "is_birthday": {
39
- "type": "boolean"
40
- },
41
- "is_extensible": {
42
- "type": "boolean"
43
- },
44
- "is_first": {
45
- "type": "boolean"
46
- },
47
- "ads_from": {
48
- "type": "string"
49
- },
50
- "comment": {
51
- "type": "string"
52
- },
53
- "phone": {
54
- "type": "string"
55
- },
56
- "promocode": {
57
- "type": "string"
58
- },
59
- "utm_campaign": {
60
- "type": "string"
61
- },
62
- "utm_content": {
63
- "type": "string"
64
- },
65
- "utm_medium": {
66
- "type": "string"
67
- },
68
- "utm_source": {
69
- "type": "string"
70
- },
71
- "utm_term": {
72
- "type": "string"
73
- }
86
+ "properties": {
87
+ "channel": {
88
+ "const": "vkontakte"
74
89
  }
75
90
  },
76
- "then": {
77
- "required": [
78
- "event_id",
79
- "human_name",
80
- "team_name",
81
- "people_count",
82
- "channel",
83
- "confirmed_channel",
84
- "vkontakte",
85
- "is_alone",
86
- "is_birthday",
87
- "is_extensible",
88
- "is_first"
89
- ]
90
- }
91
+ "required": [
92
+ "channel",
93
+ "confirmed_channel",
94
+ "vkontakte"
95
+ ]
91
96
  },
92
97
  {
93
- "if": {
94
- "properties": {
95
- "event_id": {
96
- "type": "string",
97
- "format": "uuid"
98
- },
99
- "human_name": {
100
- "type": "string"
101
- },
102
- "team_name": {
103
- "type": "string"
104
- },
105
- "people_count": {
106
- "type": "integer"
107
- },
108
- "channel": {
109
- "const": "telegramBot"
110
- },
111
- "confirmed_channel": {
112
- "const": "telegramBot"
113
- },
114
- "email": {
115
- "type": "string"
116
- },
117
- "vkontakte": {
118
- "type": "string"
119
- },
120
- "telegramBot": {
121
- "type": "string"
122
- },
123
- "is_alone": {
124
- "type": "boolean"
125
- },
126
- "is_birthday": {
127
- "type": "boolean"
128
- },
129
- "is_extensible": {
130
- "type": "boolean"
131
- },
132
- "is_first": {
133
- "type": "boolean"
134
- },
135
- "ads_from": {
136
- "type": "string"
137
- },
138
- "comment": {
139
- "type": "string"
140
- },
141
- "phone": {
142
- "type": "string"
143
- },
144
- "promocode": {
145
- "type": "string"
146
- },
147
- "utm_campaign": {
148
- "type": "string"
149
- },
150
- "utm_content": {
151
- "type": "string"
152
- },
153
- "utm_medium": {
154
- "type": "string"
155
- },
156
- "utm_source": {
157
- "type": "string"
158
- },
159
- "utm_term": {
160
- "type": "string"
161
- }
98
+ "properties": {
99
+ "channel": {
100
+ "const": "telegramBot"
162
101
  }
163
102
  },
164
- "then": {
165
- "required": [
166
- "event_id",
167
- "human_name",
168
- "team_name",
169
- "people_count",
170
- "channel",
171
- "confirmed_channel",
172
- "telegramBot",
173
- "is_alone",
174
- "is_birthday",
175
- "is_extensible",
176
- "is_first"
177
- ]
178
- }
103
+ "required": [
104
+ "channel",
105
+ "confirmed_channel",
106
+ "telegramBot"
107
+ ]
179
108
  },
180
109
  {
181
- "if": {
182
- "properties": {
183
- "event_id": {
184
- "type": "string",
185
- "format": "uuid"
186
- },
187
- "human_name": {
188
- "type": "string"
189
- },
190
- "team_name": {
191
- "type": "string"
192
- },
193
- "people_count": {
194
- "type": "integer"
195
- },
196
- "channel": {
197
- "const": "email"
198
- },
199
- "confirmed_channel": {
200
- "type": "null"
201
- },
202
- "email": {
203
- "type": "string"
204
- },
205
- "vkontakte": {
206
- "type": "string"
207
- },
208
- "telegramBot": {
209
- "type": "string"
210
- },
211
- "is_alone": {
212
- "type": "boolean"
213
- },
214
- "is_birthday": {
215
- "type": "boolean"
216
- },
217
- "is_extensible": {
218
- "type": "boolean"
219
- },
220
- "is_first": {
221
- "type": "boolean"
222
- },
223
- "ads_from": {
224
- "type": "string"
225
- },
226
- "comment": {
227
- "type": "string"
228
- },
229
- "phone": {
230
- "type": "string"
231
- },
232
- "promocode": {
233
- "type": "string"
234
- },
235
- "utm_campaign": {
236
- "type": "string"
237
- },
238
- "utm_content": {
239
- "type": "string"
240
- },
241
- "utm_medium": {
242
- "type": "string"
243
- },
244
- "utm_source": {
245
- "type": "string"
246
- },
247
- "utm_term": {
248
- "type": "string"
249
- }
110
+ "properties": {
111
+ "channel": {
112
+ "const": "email"
250
113
  }
251
114
  },
252
- "then": {
253
- "required": [
254
- "event_id",
255
- "human_name",
256
- "team_name",
257
- "people_count",
258
- "channel",
259
- "email",
260
- "is_alone",
261
- "is_birthday",
262
- "is_extensible",
263
- "is_first"
264
- ]
265
- }
115
+ "required": [
116
+ "channel",
117
+ "email"
118
+ ]
266
119
  }
267
120
  ]
268
121
  }