@shakerquiz/contracts 0.0.53 → 0.0.55

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.53",
4
+ "version": "0.0.55",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -81,82 +81,14 @@
81
81
  "channel",
82
82
  "email"
83
83
  ],
84
- "additionalProperties": false,
85
- "oneOf": [
84
+ "allOf": [
86
85
  {
87
86
  "if": {
88
87
  "properties": {
89
- "ads_from": {
90
- "type": "string"
91
- },
92
88
  "channel": {
93
89
  "const": "telegramBot"
94
- },
95
- "confirmed_channel": {
96
- "type": "string"
97
- },
98
- "comment": {
99
- "type": "string"
100
- },
101
- "email": {
102
- "type": "string"
103
- },
104
- "event_id": {
105
- "type": "string",
106
- "format": "uuid"
107
- },
108
- "human_name": {
109
- "type": "string"
110
- },
111
- "is_alone": {
112
- "type": "boolean"
113
- },
114
- "is_birthday": {
115
- "type": "boolean"
116
- },
117
- "is_extensible": {
118
- "type": "boolean"
119
- },
120
- "is_first": {
121
- "type": "boolean"
122
- },
123
- "people_count": {
124
- "type": "integer"
125
- },
126
- "phone": {
127
- "type": "string"
128
- },
129
- "promocode": {
130
- "type": "string"
131
- },
132
- "team_name": {
133
- "type": "string"
134
- },
135
- "telegramBot": {
136
- "type": "string"
137
- },
138
- "utm_campaign": {
139
- "type": "string"
140
- },
141
- "utm_content": {
142
- "type": "string"
143
- },
144
- "utm_medium": {
145
- "type": "string"
146
- },
147
- "utm_source": {
148
- "type": "string"
149
- },
150
- "utm_term": {
151
- "type": "string"
152
- },
153
- "vkontakte": {
154
- "type": "string"
155
90
  }
156
- },
157
- "required": [
158
- "channel"
159
- ]
91
+ }
160
92
  },
161
93
  "then": {
162
94
  "required": [
@@ -169,77 +101,10 @@
169
101
  {
170
102
  "if": {
171
103
  "properties": {
172
- "ads_from": {
173
- "type": "string"
174
- },
175
104
  "channel": {
176
105
  "const": "vkontakte"
177
- },
178
- "confirmed_channel": {
179
- "type": "string"
180
- },
181
- "comment": {
182
- "type": "string"
183
- },
184
- "email": {
185
- "type": "string"
186
- },
187
- "event_id": {
188
- "type": "string",
189
- "format": "uuid"
190
- },
191
- "human_name": {
192
- "type": "string"
193
- },
194
- "is_alone": {
195
- "type": "boolean"
196
- },
197
- "is_birthday": {
198
- "type": "boolean"
199
- },
200
- "is_extensible": {
201
- "type": "boolean"
202
- },
203
- "is_first": {
204
- "type": "boolean"
205
- },
206
- "people_count": {
207
- "type": "integer"
208
- },
209
- "phone": {
210
- "type": "string"
211
- },
212
- "promocode": {
213
- "type": "string"
214
- },
215
- "team_name": {
216
- "type": "string"
217
- },
218
- "telegramBot": {
219
- "type": "string"
220
- },
221
- "utm_campaign": {
222
- "type": "string"
223
- },
224
- "utm_content": {
225
- "type": "string"
226
- },
227
- "utm_medium": {
228
- "type": "string"
229
- },
230
- "utm_source": {
231
- "type": "string"
232
- },
233
- "utm_term": {
234
- "type": "string"
235
- },
236
- "vkontakte": {
237
- "type": "string"
238
106
  }
239
- },
240
- "required": [
241
- "channel"
242
- ]
107
+ }
243
108
  },
244
109
  "then": {
245
110
  "required": [
@@ -252,77 +117,10 @@
252
117
  {
253
118
  "if": {
254
119
  "properties": {
255
- "ads_from": {
256
- "type": "string"
257
- },
258
120
  "channel": {
259
121
  "const": "email"
260
- },
261
- "confirmed_channel": {
262
- "type": "string"
263
- },
264
- "comment": {
265
- "type": "string"
266
- },
267
- "email": {
268
- "type": "string"
269
- },
270
- "event_id": {
271
- "type": "string",
272
- "format": "uuid"
273
- },
274
- "human_name": {
275
- "type": "string"
276
- },
277
- "is_alone": {
278
- "type": "boolean"
279
- },
280
- "is_birthday": {
281
- "type": "boolean"
282
- },
283
- "is_extensible": {
284
- "type": "boolean"
285
- },
286
- "is_first": {
287
- "type": "boolean"
288
- },
289
- "people_count": {
290
- "type": "integer"
291
- },
292
- "phone": {
293
- "type": "string"
294
- },
295
- "promocode": {
296
- "type": "string"
297
- },
298
- "team_name": {
299
- "type": "string"
300
- },
301
- "telegramBot": {
302
- "type": "string"
303
- },
304
- "utm_campaign": {
305
- "type": "string"
306
- },
307
- "utm_content": {
308
- "type": "string"
309
- },
310
- "utm_medium": {
311
- "type": "string"
312
- },
313
- "utm_source": {
314
- "type": "string"
315
- },
316
- "utm_term": {
317
- "type": "string"
318
- },
319
- "vkontakte": {
320
- "type": "string"
321
122
  }
322
- },
323
- "required": [
324
- "channel"
325
- ]
123
+ }
326
124
  },
327
125
  "then": {
328
126
  "required": [