@shakerquiz/contracts 0.0.154 → 0.0.156

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.154",
4
+ "version": "0.0.156",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -24,8 +24,7 @@
24
24
  }
25
25
  },
26
26
  "required": [
27
- "id",
28
- "status"
27
+ "id"
29
28
  ],
30
29
  "additionalProperties": false
31
30
  },
@@ -24,8 +24,7 @@
24
24
  }
25
25
  },
26
26
  "required": [
27
- "id",
28
- "status"
27
+ "id"
29
28
  ],
30
29
  "additionalProperties": false
31
30
  },
@@ -24,8 +24,7 @@
24
24
  }
25
25
  },
26
26
  "required": [
27
- "id",
28
- "status"
27
+ "id"
29
28
  ],
30
29
  "additionalProperties": false
31
30
  },
@@ -2,21 +2,6 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "city": {
6
- "type": "array",
7
- "items": {
8
- "type": "string"
9
- },
10
- "uniqueItems": true
11
- },
12
- "venue": {
13
- "type": "array",
14
- "items": {
15
- "type": "string",
16
- "format": "uuid"
17
- },
18
- "uniqueItems": true
19
- },
20
5
  "game": {
21
6
  "type": "array",
22
7
  "items": {
@@ -41,21 +26,11 @@
41
26
  ]
42
27
  },
43
28
  "uniqueItems": true
44
- },
45
- "registration": {
46
- "type": "array",
47
- "items": {
48
- "type": "string"
49
- },
50
- "uniqueItems": true
51
29
  }
52
30
  },
53
31
  "required": [
54
- "city",
55
- "venue",
56
32
  "game",
57
- "game/status",
58
- "registration"
33
+ "game/status"
59
34
  ],
60
35
  "additionalProperties": false
61
36
  }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game/status": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "enum": [
17
+ "APPROVED",
18
+ "ARCHIVE",
19
+ "CLOSED",
20
+ "FINISHED",
21
+ "FORINVITES",
22
+ "IS_RESERVE",
23
+ "MODERATION",
24
+ "PUBLISHED",
25
+ "REJECTED"
26
+ ]
27
+ },
28
+ "uniqueItems": true
29
+ }
30
+ },
31
+ "required": [
32
+ "game",
33
+ "game/status"
34
+ ],
35
+ "additionalProperties": false
36
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game/status": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "enum": [
17
+ "APPROVED",
18
+ "ARCHIVE",
19
+ "CLOSED",
20
+ "FINISHED",
21
+ "FORINVITES",
22
+ "IS_RESERVE",
23
+ "MODERATION",
24
+ "PUBLISHED",
25
+ "REJECTED"
26
+ ]
27
+ },
28
+ "uniqueItems": true
29
+ }
30
+ },
31
+ "required": [
32
+ "game",
33
+ "game/status"
34
+ ],
35
+ "additionalProperties": false
36
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game/status": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "enum": [
17
+ "APPROVED",
18
+ "ARCHIVE",
19
+ "CLOSED",
20
+ "FINISHED",
21
+ "FORINVITES",
22
+ "IS_RESERVE",
23
+ "MODERATION",
24
+ "PUBLISHED",
25
+ "REJECTED"
26
+ ]
27
+ },
28
+ "uniqueItems": true
29
+ }
30
+ },
31
+ "required": [
32
+ "game",
33
+ "game/status"
34
+ ],
35
+ "additionalProperties": false
36
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game/status": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "enum": [
17
+ "APPROVED",
18
+ "ARCHIVE",
19
+ "CLOSED",
20
+ "FINISHED",
21
+ "FORINVITES",
22
+ "IS_RESERVE",
23
+ "MODERATION",
24
+ "PUBLISHED",
25
+ "REJECTED"
26
+ ]
27
+ },
28
+ "uniqueItems": true
29
+ }
30
+ },
31
+ "required": [
32
+ "game",
33
+ "game/status"
34
+ ],
35
+ "additionalProperties": false
36
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game/status": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "enum": [
17
+ "APPROVED",
18
+ "ARCHIVE",
19
+ "CLOSED",
20
+ "FINISHED",
21
+ "FORINVITES",
22
+ "IS_RESERVE",
23
+ "MODERATION",
24
+ "PUBLISHED",
25
+ "REJECTED"
26
+ ]
27
+ },
28
+ "uniqueItems": true
29
+ }
30
+ },
31
+ "required": [
32
+ "game",
33
+ "game/status"
34
+ ],
35
+ "additionalProperties": false
36
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game/status": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "enum": [
17
+ "APPROVED",
18
+ "ARCHIVE",
19
+ "CLOSED",
20
+ "FINISHED",
21
+ "FORINVITES",
22
+ "IS_RESERVE",
23
+ "MODERATION",
24
+ "PUBLISHED",
25
+ "REJECTED"
26
+ ]
27
+ },
28
+ "uniqueItems": true
29
+ }
30
+ },
31
+ "required": [
32
+ "game",
33
+ "game/status"
34
+ ],
35
+ "additionalProperties": false
36
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game/status": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "enum": [
17
+ "APPROVED",
18
+ "ARCHIVE",
19
+ "CLOSED",
20
+ "FINISHED",
21
+ "FORINVITES",
22
+ "IS_RESERVE",
23
+ "MODERATION",
24
+ "PUBLISHED",
25
+ "REJECTED"
26
+ ]
27
+ },
28
+ "uniqueItems": true
29
+ }
30
+ },
31
+ "required": [
32
+ "game",
33
+ "game/status"
34
+ ],
35
+ "additionalProperties": false
36
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game/status": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "enum": [
17
+ "APPROVED",
18
+ "ARCHIVE",
19
+ "CLOSED",
20
+ "FINISHED",
21
+ "FORINVITES",
22
+ "IS_RESERVE",
23
+ "MODERATION",
24
+ "PUBLISHED",
25
+ "REJECTED"
26
+ ]
27
+ },
28
+ "uniqueItems": true
29
+ }
30
+ },
31
+ "required": [
32
+ "game",
33
+ "game/status"
34
+ ],
35
+ "additionalProperties": false
36
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game/status": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "enum": [
17
+ "APPROVED",
18
+ "ARCHIVE",
19
+ "CLOSED",
20
+ "FINISHED",
21
+ "FORINVITES",
22
+ "IS_RESERVE",
23
+ "MODERATION",
24
+ "PUBLISHED",
25
+ "REJECTED"
26
+ ]
27
+ },
28
+ "uniqueItems": true
29
+ }
30
+ },
31
+ "required": [
32
+ "game",
33
+ "game/status"
34
+ ],
35
+ "additionalProperties": false
36
+ }
package/source/index.js CHANGED
@@ -37,7 +37,16 @@ import POST_game_organizer from './contracts/POST/game/organizer.json' with { ty
37
37
  import POST_registrations_search_Unknown from './contracts/POST/registrations/search/Unknown.json' with { type: 'json' }
38
38
  import POST_city_vk_group_token_admin from './contracts/POST/city/vk_group_token/admin.json' with { type: 'json' }
39
39
  import POST_city_admin from './contracts/POST/city/admin.json' with { type: 'json' }
40
- import POST_games_search_Unknown from './contracts/POST/games/search/Unknown.json' with { type: 'json' }
40
+ import POST_games_theme_search_admin from './contracts/POST/games/theme/search/admin.json' with { type: 'json' }
41
+ import POST_games_theme_search_organizer from './contracts/POST/games/theme/search/organizer.json' with { type: 'json' }
42
+ import POST_games_city_search_admin from './contracts/POST/games/city/search/admin.json' with { type: 'json' }
43
+ import POST_games_city_search_organizer from './contracts/POST/games/city/search/organizer.json' with { type: 'json' }
44
+ import POST_games_search_admin from './contracts/POST/games/search/admin.json' with { type: 'json' }
45
+ import POST_games_search_organizer from './contracts/POST/games/search/organizer.json' with { type: 'json' }
46
+ import POST_games_venue_search_admin from './contracts/POST/games/venue/search/admin.json' with { type: 'json' }
47
+ import POST_games_venue_search_organizer from './contracts/POST/games/venue/search/organizer.json' with { type: 'json' }
48
+ import POST_games_summary_search_admin from './contracts/POST/games/summary/search/admin.json' with { type: 'json' }
49
+ import POST_games_summary_search_organizer from './contracts/POST/games/summary/search/organizer.json' with { type: 'json' }
41
50
  import POST_venue_admin from './contracts/POST/venue/admin.json' with { type: 'json' }
42
51
  import POST_venue_organizer from './contracts/POST/venue/organizer.json' with { type: 'json' }
43
52
  import POST_registration_Unknown from './contracts/POST/registration/Unknown.json' with { type: 'json' }
@@ -72,9 +81,9 @@ import PATCH_city_currency_admin from './contracts/PATCH/city/currency/admin.jso
72
81
  import PATCH_city_country_admin from './contracts/PATCH/city/country/admin.json' with { type: 'json' }
73
82
  import PATCH_city_vk_group_token_admin from './contracts/PATCH/city/vk_group_token/admin.json' with { type: 'json' }
74
83
  import PATCH_city_admin from './contracts/PATCH/city/admin.json' with { type: 'json' }
75
- import PATCH_games_status_Service from './contracts/PATCH/games/status/Service.json' with { type: 'json' }
76
- import PATCH_games_status_admin from './contracts/PATCH/games/status/admin.json' with { type: 'json' }
77
- import PATCH_games_status_organizer from './contracts/PATCH/games/status/organizer.json' with { type: 'json' }
84
+ import PATCH_games_Service from './contracts/PATCH/games/Service.json' with { type: 'json' }
85
+ import PATCH_games_admin from './contracts/PATCH/games/admin.json' with { type: 'json' }
86
+ import PATCH_games_organizer from './contracts/PATCH/games/organizer.json' with { type: 'json' }
78
87
  import PATCH_venue_admin from './contracts/PATCH/venue/admin.json' with { type: 'json' }
79
88
  import PATCH_venue_organizer from './contracts/PATCH/venue/organizer.json' with { type: 'json' }
80
89
  import PATCH_registration_Service from './contracts/PATCH/registration/Service.json' with { type: 'json' }
@@ -134,7 +143,16 @@ export const Contracts = Object.freeze(
134
143
  'POST/registrations/search/Unknown',
135
144
  'POST/city/vk_group_token/admin',
136
145
  'POST/city/admin',
137
- 'POST/games/search/Unknown',
146
+ 'POST/games/theme/search/admin',
147
+ 'POST/games/theme/search/organizer',
148
+ 'POST/games/city/search/admin',
149
+ 'POST/games/city/search/organizer',
150
+ 'POST/games/search/admin',
151
+ 'POST/games/search/organizer',
152
+ 'POST/games/venue/search/admin',
153
+ 'POST/games/venue/search/organizer',
154
+ 'POST/games/summary/search/admin',
155
+ 'POST/games/summary/search/organizer',
138
156
  'POST/venue/admin',
139
157
  'POST/venue/organizer',
140
158
  'POST/registration/Unknown',
@@ -169,9 +187,9 @@ export const Contracts = Object.freeze(
169
187
  'PATCH/city/country/admin',
170
188
  'PATCH/city/vk_group_token/admin',
171
189
  'PATCH/city/admin',
172
- 'PATCH/games/status/Service',
173
- 'PATCH/games/status/admin',
174
- 'PATCH/games/status/organizer',
190
+ 'PATCH/games/Service',
191
+ 'PATCH/games/admin',
192
+ 'PATCH/games/organizer',
175
193
  'PATCH/venue/admin',
176
194
  'PATCH/venue/organizer',
177
195
  'PATCH/registration/Service',
@@ -233,7 +251,16 @@ export const Schemas = Object.freeze(
233
251
  POST_registrations_search_Unknown,
234
252
  POST_city_vk_group_token_admin,
235
253
  POST_city_admin,
236
- POST_games_search_Unknown,
254
+ POST_games_theme_search_admin,
255
+ POST_games_theme_search_organizer,
256
+ POST_games_city_search_admin,
257
+ POST_games_city_search_organizer,
258
+ POST_games_search_admin,
259
+ POST_games_search_organizer,
260
+ POST_games_venue_search_admin,
261
+ POST_games_venue_search_organizer,
262
+ POST_games_summary_search_admin,
263
+ POST_games_summary_search_organizer,
237
264
  POST_venue_admin,
238
265
  POST_venue_organizer,
239
266
  POST_registration_Unknown,
@@ -268,9 +295,9 @@ export const Schemas = Object.freeze(
268
295
  PATCH_city_country_admin,
269
296
  PATCH_city_vk_group_token_admin,
270
297
  PATCH_city_admin,
271
- PATCH_games_status_Service,
272
- PATCH_games_status_admin,
273
- PATCH_games_status_organizer,
298
+ PATCH_games_Service,
299
+ PATCH_games_admin,
300
+ PATCH_games_organizer,
274
301
  PATCH_venue_admin,
275
302
  PATCH_venue_organizer,
276
303
  PATCH_registration_Service,
@@ -332,7 +359,16 @@ export const ContractSchema = Object.freeze(
332
359
  'POST/registrations/search/Unknown': POST_registrations_search_Unknown,
333
360
  'POST/city/vk_group_token/admin': POST_city_vk_group_token_admin,
334
361
  'POST/city/admin': POST_city_admin,
335
- 'POST/games/search/Unknown': POST_games_search_Unknown,
362
+ 'POST/games/theme/search/admin': POST_games_theme_search_admin,
363
+ 'POST/games/theme/search/organizer': POST_games_theme_search_organizer,
364
+ 'POST/games/city/search/admin': POST_games_city_search_admin,
365
+ 'POST/games/city/search/organizer': POST_games_city_search_organizer,
366
+ 'POST/games/search/admin': POST_games_search_admin,
367
+ 'POST/games/search/organizer': POST_games_search_organizer,
368
+ 'POST/games/venue/search/admin': POST_games_venue_search_admin,
369
+ 'POST/games/venue/search/organizer': POST_games_venue_search_organizer,
370
+ 'POST/games/summary/search/admin': POST_games_summary_search_admin,
371
+ 'POST/games/summary/search/organizer': POST_games_summary_search_organizer,
336
372
  'POST/venue/admin': POST_venue_admin,
337
373
  'POST/venue/organizer': POST_venue_organizer,
338
374
  'POST/registration/Unknown': POST_registration_Unknown,
@@ -367,9 +403,9 @@ export const ContractSchema = Object.freeze(
367
403
  'PATCH/city/country/admin': PATCH_city_country_admin,
368
404
  'PATCH/city/vk_group_token/admin': PATCH_city_vk_group_token_admin,
369
405
  'PATCH/city/admin': PATCH_city_admin,
370
- 'PATCH/games/status/Service': PATCH_games_status_Service,
371
- 'PATCH/games/status/admin': PATCH_games_status_admin,
372
- 'PATCH/games/status/organizer': PATCH_games_status_organizer,
406
+ 'PATCH/games/Service': PATCH_games_Service,
407
+ 'PATCH/games/admin': PATCH_games_admin,
408
+ 'PATCH/games/organizer': PATCH_games_organizer,
373
409
  'PATCH/venue/admin': PATCH_venue_admin,
374
410
  'PATCH/venue/organizer': PATCH_venue_organizer,
375
411
  'PATCH/registration/Service': PATCH_registration_Service,