@shakerquiz/contracts 0.0.155 → 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 +1 -1
- package/source/contracts/POST/games/{search/Unknown.json → city/search/admin.json} +1 -26
- package/source/contracts/POST/games/city/search/organizer.json +36 -0
- package/source/contracts/POST/games/search/admin.json +36 -0
- package/source/contracts/POST/games/search/organizer.json +36 -0
- package/source/contracts/POST/games/summary/search/admin.json +36 -0
- package/source/contracts/POST/games/summary/search/organizer.json +36 -0
- package/source/contracts/POST/games/theme/search/admin.json +36 -0
- package/source/contracts/POST/games/theme/search/organizer.json +36 -0
- package/source/contracts/POST/games/venue/search/admin.json +36 -0
- package/source/contracts/POST/games/venue/search/organizer.json +36 -0
- package/source/index.js +40 -4
package/package.json
CHANGED
|
@@ -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
|
|
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' }
|
|
@@ -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/
|
|
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',
|
|
@@ -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
|
-
|
|
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,
|
|
@@ -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/
|
|
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,
|