@shakerquiz/contracts 0.0.57 → 0.0.59

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.57",
4
+ "version": "0.0.59",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -4,12 +4,6 @@
4
4
  "ads_from": {
5
5
  "type": "string"
6
6
  },
7
- "channel": {
8
- "type": "string"
9
- },
10
- "confirmed_channel": {
11
- "type": "string"
12
- },
13
7
  "email": {
14
8
  "type": "string"
15
9
  },
@@ -29,6 +23,18 @@
29
23
  "human_name": {
30
24
  "type": "string"
31
25
  },
26
+ "team_name": {
27
+ "type": "string"
28
+ },
29
+ "people_count": {
30
+ "type": "integer"
31
+ },
32
+ "channel": {
33
+ "type": "string"
34
+ },
35
+ "confirmed_channel": {
36
+ "type": "string"
37
+ },
32
38
  "is_alone": {
33
39
  "type": "boolean"
34
40
  },
@@ -41,18 +47,12 @@
41
47
  "is_first": {
42
48
  "type": "boolean"
43
49
  },
44
- "people_count": {
45
- "type": "integer"
46
- },
47
50
  "phone": {
48
51
  "type": "string"
49
52
  },
50
53
  "promocode": {
51
54
  "type": "string"
52
55
  },
53
- "team_name": {
54
- "type": "string"
55
- },
56
56
  "utm_campaign": {
57
57
  "type": "string"
58
58
  },
@@ -72,23 +72,48 @@
72
72
  "required": [
73
73
  "event_id",
74
74
  "human_name",
75
+ "team_name",
76
+ "people_count",
77
+ "channel",
75
78
  "is_alone",
76
79
  "is_birthday",
77
80
  "is_extensible",
78
- "is_first",
79
- "people_count",
80
- "team_name",
81
- "channel"
81
+ "is_first"
82
82
  ],
83
83
  "allOf": [
84
84
  {
85
85
  "if": {
86
86
  "properties": {
87
+ "event_id": {
88
+ "type": "string",
89
+ "format": "uuid"
90
+ },
91
+ "human_name": {
92
+ "type": "string"
93
+ },
94
+ "team_name": {
95
+ "type": "string"
96
+ },
97
+ "people_count": {
98
+ "type": "integer"
99
+ },
87
100
  "channel": {
88
101
  "const": "telegramBot"
89
102
  },
90
103
  "confirmed_channel": {
91
- "type": "string"
104
+ "const": "telegramBot"
105
+ },
106
+ "is_alone": {
107
+ "type": "boolean"
108
+ },
109
+ "is_birthday": {
110
+ "type": "boolean"
111
+ },
112
+ "is_extensible": {
113
+ "type": "boolean"
114
+ },
115
+ "is_first": {
116
+ "type": "boolean"
92
117
  },
93
118
  "telegramBot": {
94
119
  "type": "string"
@@ -105,11 +130,36 @@
105
130
  {
106
131
  "if": {
107
132
  "properties": {
133
+ "event_id": {
134
+ "type": "string",
135
+ "format": "uuid"
136
+ },
137
+ "human_name": {
138
+ "type": "string"
139
+ },
140
+ "team_name": {
141
+ "type": "string"
142
+ },
143
+ "people_count": {
144
+ "type": "integer"
145
+ },
108
146
  "channel": {
109
147
  "const": "vkontakte"
110
148
  },
111
149
  "confirmed_channel": {
112
- "type": "string"
150
+ "const": "vkontakte"
151
+ },
152
+ "is_alone": {
153
+ "type": "boolean"
154
+ },
155
+ "is_birthday": {
156
+ "type": "boolean"
157
+ },
158
+ "is_extensible": {
159
+ "type": "boolean"
160
+ },
161
+ "is_first": {
162
+ "type": "boolean"
113
163
  },
114
164
  "vkontakte": {
115
165
  "type": "string"
@@ -126,9 +176,34 @@
126
176
  {
127
177
  "if": {
128
178
  "properties": {
179
+ "event_id": {
180
+ "type": "string",
181
+ "format": "uuid"
182
+ },
183
+ "human_name": {
184
+ "type": "string"
185
+ },
186
+ "team_name": {
187
+ "type": "string"
188
+ },
189
+ "people_count": {
190
+ "type": "integer"
191
+ },
129
192
  "channel": {
130
193
  "const": "email"
131
194
  },
195
+ "is_alone": {
196
+ "type": "boolean"
197
+ },
198
+ "is_birthday": {
199
+ "type": "boolean"
200
+ },
201
+ "is_extensible": {
202
+ "type": "boolean"
203
+ },
204
+ "is_first": {
205
+ "type": "boolean"
206
+ },
132
207
  "email": {
133
208
  "type": "string"
134
209
  }