@shakerquiz/contracts 0.0.146 → 0.0.148
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/PATCH/city/vk_group_token/admin.json +1 -1
- package/source/contracts/PATCH/venue/admin.json +7 -7
- package/source/contracts/PATCH/venue/organizer.json +7 -7
- package/source/contracts/PATCH/venues/admin.json +9 -1
- package/source/contracts/PATCH/venues/organizer.json +9 -1
- package/source/contracts/POST/city/vk_group_token/admin.json +1 -1
- package/source/contracts/POST/venues/{search/Unknown.json → city/search/admin.json} +1 -17
- package/source/contracts/POST/venues/city/search/organizer.json +50 -0
- package/source/contracts/POST/venues/search/admin.json +42 -0
- package/source/contracts/POST/venues/search/organizer.json +42 -0
- package/source/index.js +16 -4
package/package.json
CHANGED
|
@@ -17,13 +17,6 @@
|
|
|
17
17
|
"team_capacity": {
|
|
18
18
|
"type": "integer"
|
|
19
19
|
},
|
|
20
|
-
"audience": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"enum": [
|
|
23
|
-
"Open",
|
|
24
|
-
"Adults"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
20
|
"game_time": {
|
|
28
21
|
"type": "string",
|
|
29
22
|
"format": "iso-time"
|
|
@@ -41,6 +34,13 @@
|
|
|
41
34
|
"Archive"
|
|
42
35
|
]
|
|
43
36
|
},
|
|
37
|
+
"audience": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": [
|
|
40
|
+
"Open",
|
|
41
|
+
"Adults"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
44
|
"href": {
|
|
45
45
|
"type": [
|
|
46
46
|
"string",
|
|
@@ -17,13 +17,6 @@
|
|
|
17
17
|
"team_capacity": {
|
|
18
18
|
"type": "integer"
|
|
19
19
|
},
|
|
20
|
-
"audience": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"enum": [
|
|
23
|
-
"Open",
|
|
24
|
-
"Adults"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
20
|
"game_time": {
|
|
28
21
|
"type": "string",
|
|
29
22
|
"format": "iso-time"
|
|
@@ -41,6 +34,13 @@
|
|
|
41
34
|
"Archive"
|
|
42
35
|
]
|
|
43
36
|
},
|
|
37
|
+
"audience": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": [
|
|
40
|
+
"Open",
|
|
41
|
+
"Adults"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
44
|
"href": {
|
|
45
45
|
"type": [
|
|
46
46
|
"string",
|
|
@@ -14,11 +14,19 @@
|
|
|
14
14
|
"Active",
|
|
15
15
|
"Archive"
|
|
16
16
|
]
|
|
17
|
+
},
|
|
18
|
+
"audience": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"Open",
|
|
22
|
+
"Adults"
|
|
23
|
+
]
|
|
17
24
|
}
|
|
18
25
|
},
|
|
19
26
|
"required": [
|
|
20
27
|
"id",
|
|
21
|
-
"status"
|
|
28
|
+
"status",
|
|
29
|
+
"audience"
|
|
22
30
|
],
|
|
23
31
|
"additionalProperties": false
|
|
24
32
|
},
|
|
@@ -14,11 +14,19 @@
|
|
|
14
14
|
"Active",
|
|
15
15
|
"Archive"
|
|
16
16
|
]
|
|
17
|
+
},
|
|
18
|
+
"audience": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"Open",
|
|
22
|
+
"Adults"
|
|
23
|
+
]
|
|
17
24
|
}
|
|
18
25
|
},
|
|
19
26
|
"required": [
|
|
20
27
|
"id",
|
|
21
|
-
"status"
|
|
28
|
+
"status",
|
|
29
|
+
"audience"
|
|
22
30
|
],
|
|
23
31
|
"additionalProperties": false
|
|
24
32
|
},
|
|
@@ -38,29 +38,13 @@
|
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"uniqueItems": true
|
|
41
|
-
},
|
|
42
|
-
"game": {
|
|
43
|
-
"type": "array",
|
|
44
|
-
"items": {
|
|
45
|
-
"type": "string"
|
|
46
|
-
},
|
|
47
|
-
"uniqueItems": true
|
|
48
|
-
},
|
|
49
|
-
"registration": {
|
|
50
|
-
"type": "array",
|
|
51
|
-
"items": {
|
|
52
|
-
"type": "string"
|
|
53
|
-
},
|
|
54
|
-
"uniqueItems": true
|
|
55
41
|
}
|
|
56
42
|
},
|
|
57
43
|
"required": [
|
|
58
44
|
"city",
|
|
59
45
|
"venue",
|
|
60
46
|
"venue/status",
|
|
61
|
-
"venue/audience"
|
|
62
|
-
"game",
|
|
63
|
-
"registration"
|
|
47
|
+
"venue/audience"
|
|
64
48
|
],
|
|
65
49
|
"additionalProperties": false
|
|
66
50
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
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
|
+
"venue/status": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"Active",
|
|
26
|
+
"Archive"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"uniqueItems": true
|
|
30
|
+
},
|
|
31
|
+
"venue/audience": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": [
|
|
36
|
+
"Open",
|
|
37
|
+
"Adults"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"uniqueItems": true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"city",
|
|
45
|
+
"venue",
|
|
46
|
+
"venue/status",
|
|
47
|
+
"venue/audience"
|
|
48
|
+
],
|
|
49
|
+
"additionalProperties": false
|
|
50
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"venue": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uuid"
|
|
10
|
+
},
|
|
11
|
+
"uniqueItems": true
|
|
12
|
+
},
|
|
13
|
+
"venue/status": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"Active",
|
|
19
|
+
"Archive"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"uniqueItems": true
|
|
23
|
+
},
|
|
24
|
+
"venue/audience": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"Open",
|
|
30
|
+
"Adults"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"uniqueItems": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"venue",
|
|
38
|
+
"venue/status",
|
|
39
|
+
"venue/audience"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"venue": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uuid"
|
|
10
|
+
},
|
|
11
|
+
"uniqueItems": true
|
|
12
|
+
},
|
|
13
|
+
"venue/status": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"Active",
|
|
19
|
+
"Archive"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"uniqueItems": true
|
|
23
|
+
},
|
|
24
|
+
"venue/audience": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"Open",
|
|
30
|
+
"Adults"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"uniqueItems": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"venue",
|
|
38
|
+
"venue/status",
|
|
39
|
+
"venue/audience"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|
package/source/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import POST_chatapp_registration_mailing_admin from './contracts/POST/chatapp/registration/mailing/admin.json' with { type: 'json' }
|
|
2
2
|
import POST_chatapp_registration_mailing_organizer from './contracts/POST/chatapp/registration/mailing/organizer.json' with { type: 'json' }
|
|
3
3
|
import POST_theme_admin from './contracts/POST/theme/admin.json' with { type: 'json' }
|
|
4
|
-
import
|
|
4
|
+
import POST_venues_city_search_admin from './contracts/POST/venues/city/search/admin.json' with { type: 'json' }
|
|
5
|
+
import POST_venues_city_search_organizer from './contracts/POST/venues/city/search/organizer.json' with { type: 'json' }
|
|
6
|
+
import POST_venues_search_admin from './contracts/POST/venues/search/admin.json' with { type: 'json' }
|
|
7
|
+
import POST_venues_search_organizer from './contracts/POST/venues/search/organizer.json' with { type: 'json' }
|
|
5
8
|
import POST_themes_search_Unknown from './contracts/POST/themes/search/Unknown.json' with { type: 'json' }
|
|
6
9
|
import POST_checkin_Unknown from './contracts/POST/checkin/Unknown.json' with { type: 'json' }
|
|
7
10
|
import POST_cities_venues_search_Unknown from './contracts/POST/cities/venues/search/Unknown.json' with { type: 'json' }
|
|
@@ -90,7 +93,10 @@ export const Contracts = Object.freeze(
|
|
|
90
93
|
'POST/chatapp/registration/mailing/admin',
|
|
91
94
|
'POST/chatapp/registration/mailing/organizer',
|
|
92
95
|
'POST/theme/admin',
|
|
93
|
-
'POST/venues/search/
|
|
96
|
+
'POST/venues/city/search/admin',
|
|
97
|
+
'POST/venues/city/search/organizer',
|
|
98
|
+
'POST/venues/search/admin',
|
|
99
|
+
'POST/venues/search/organizer',
|
|
94
100
|
'POST/themes/search/Unknown',
|
|
95
101
|
'POST/checkin/Unknown',
|
|
96
102
|
'POST/cities/venues/search/Unknown',
|
|
@@ -181,7 +187,10 @@ export const Schemas = Object.freeze(
|
|
|
181
187
|
POST_chatapp_registration_mailing_admin,
|
|
182
188
|
POST_chatapp_registration_mailing_organizer,
|
|
183
189
|
POST_theme_admin,
|
|
184
|
-
|
|
190
|
+
POST_venues_city_search_admin,
|
|
191
|
+
POST_venues_city_search_organizer,
|
|
192
|
+
POST_venues_search_admin,
|
|
193
|
+
POST_venues_search_organizer,
|
|
185
194
|
POST_themes_search_Unknown,
|
|
186
195
|
POST_checkin_Unknown,
|
|
187
196
|
POST_cities_venues_search_Unknown,
|
|
@@ -272,7 +281,10 @@ export const ContractSchema = Object.freeze(
|
|
|
272
281
|
'POST/chatapp/registration/mailing/admin': POST_chatapp_registration_mailing_admin,
|
|
273
282
|
'POST/chatapp/registration/mailing/organizer': POST_chatapp_registration_mailing_organizer,
|
|
274
283
|
'POST/theme/admin': POST_theme_admin,
|
|
275
|
-
'POST/venues/search/
|
|
284
|
+
'POST/venues/city/search/admin': POST_venues_city_search_admin,
|
|
285
|
+
'POST/venues/city/search/organizer': POST_venues_city_search_organizer,
|
|
286
|
+
'POST/venues/search/admin': POST_venues_search_admin,
|
|
287
|
+
'POST/venues/search/organizer': POST_venues_search_organizer,
|
|
276
288
|
'POST/themes/search/Unknown': POST_themes_search_Unknown,
|
|
277
289
|
'POST/checkin/Unknown': POST_checkin_Unknown,
|
|
278
290
|
'POST/cities/venues/search/Unknown': POST_cities_venues_search_Unknown,
|