@shakerquiz/contracts 0.0.152 → 0.0.154
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
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"theme": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uuid"
|
|
10
|
+
},
|
|
11
|
+
"uniqueItems": true
|
|
12
|
+
},
|
|
13
|
+
"theme/status": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"Active",
|
|
19
|
+
"Archive"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"uniqueItems": true
|
|
23
|
+
},
|
|
24
|
+
"cover": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "uuid"
|
|
29
|
+
},
|
|
30
|
+
"uniqueItems": true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"theme",
|
|
35
|
+
"theme/status",
|
|
36
|
+
"cover"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"theme": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uuid"
|
|
10
|
+
},
|
|
11
|
+
"uniqueItems": true
|
|
12
|
+
},
|
|
13
|
+
"theme/status": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"Active",
|
|
19
|
+
"Archive"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"uniqueItems": true
|
|
23
|
+
},
|
|
24
|
+
"cover": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "uuid"
|
|
29
|
+
},
|
|
30
|
+
"uniqueItems": true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"theme",
|
|
35
|
+
"theme/status",
|
|
36
|
+
"cover"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
package/source/index.js
CHANGED
|
@@ -8,6 +8,8 @@ import POST_venues_search_admin from './contracts/POST/venues/search/admin.json'
|
|
|
8
8
|
import POST_venues_search_organizer from './contracts/POST/venues/search/organizer.json' with { type: 'json' }
|
|
9
9
|
import POST_themes_search_admin from './contracts/POST/themes/search/admin.json' with { type: 'json' }
|
|
10
10
|
import POST_themes_search_organizer from './contracts/POST/themes/search/organizer.json' with { type: 'json' }
|
|
11
|
+
import POST_themes_cover_search_admin from './contracts/POST/themes/cover/search/admin.json' with { type: 'json' }
|
|
12
|
+
import POST_themes_cover_search_organizer from './contracts/POST/themes/cover/search/organizer.json' with { type: 'json' }
|
|
11
13
|
import POST_checkin_Unknown from './contracts/POST/checkin/Unknown.json' with { type: 'json' }
|
|
12
14
|
import POST_cities_venues_search_Unknown from './contracts/POST/cities/venues/search/Unknown.json' with { type: 'json' }
|
|
13
15
|
import POST_cities_venues_search_admin from './contracts/POST/cities/venues/search/admin.json' with { type: 'json' }
|
|
@@ -89,6 +91,7 @@ import PATCH_registration_lineup_admin from './contracts/PATCH/registration/line
|
|
|
89
91
|
import PATCH_registration_lineup_organizer from './contracts/PATCH/registration/lineup/organizer.json' with { type: 'json' }
|
|
90
92
|
import PATCH_registration_admin from './contracts/PATCH/registration/admin.json' with { type: 'json' }
|
|
91
93
|
import PATCH_registration_organizer from './contracts/PATCH/registration/organizer.json' with { type: 'json' }
|
|
94
|
+
import PUT_theme_cover_admin from './contracts/PUT/theme/cover/admin.json' with { type: 'json' }
|
|
92
95
|
|
|
93
96
|
export const Contracts = Object.freeze(
|
|
94
97
|
/** @type {const} */ ([
|
|
@@ -102,6 +105,8 @@ export const Contracts = Object.freeze(
|
|
|
102
105
|
'POST/venues/search/organizer',
|
|
103
106
|
'POST/themes/search/admin',
|
|
104
107
|
'POST/themes/search/organizer',
|
|
108
|
+
'POST/themes/cover/search/admin',
|
|
109
|
+
'POST/themes/cover/search/organizer',
|
|
105
110
|
'POST/checkin/Unknown',
|
|
106
111
|
'POST/cities/venues/search/Unknown',
|
|
107
112
|
'POST/cities/venues/search/admin',
|
|
@@ -182,7 +187,8 @@ export const Contracts = Object.freeze(
|
|
|
182
187
|
'PATCH/registration/lineup/admin',
|
|
183
188
|
'PATCH/registration/lineup/organizer',
|
|
184
189
|
'PATCH/registration/admin',
|
|
185
|
-
'PATCH/registration/organizer'
|
|
190
|
+
'PATCH/registration/organizer',
|
|
191
|
+
'PUT/theme/cover/admin'
|
|
186
192
|
]),
|
|
187
193
|
)
|
|
188
194
|
|
|
@@ -198,6 +204,8 @@ export const Schemas = Object.freeze(
|
|
|
198
204
|
POST_venues_search_organizer,
|
|
199
205
|
POST_themes_search_admin,
|
|
200
206
|
POST_themes_search_organizer,
|
|
207
|
+
POST_themes_cover_search_admin,
|
|
208
|
+
POST_themes_cover_search_organizer,
|
|
201
209
|
POST_checkin_Unknown,
|
|
202
210
|
POST_cities_venues_search_Unknown,
|
|
203
211
|
POST_cities_venues_search_admin,
|
|
@@ -278,7 +286,8 @@ export const Schemas = Object.freeze(
|
|
|
278
286
|
PATCH_registration_lineup_admin,
|
|
279
287
|
PATCH_registration_lineup_organizer,
|
|
280
288
|
PATCH_registration_admin,
|
|
281
|
-
PATCH_registration_organizer
|
|
289
|
+
PATCH_registration_organizer,
|
|
290
|
+
PUT_theme_cover_admin
|
|
282
291
|
]),
|
|
283
292
|
)
|
|
284
293
|
|
|
@@ -294,6 +303,8 @@ export const ContractSchema = Object.freeze(
|
|
|
294
303
|
'POST/venues/search/organizer': POST_venues_search_organizer,
|
|
295
304
|
'POST/themes/search/admin': POST_themes_search_admin,
|
|
296
305
|
'POST/themes/search/organizer': POST_themes_search_organizer,
|
|
306
|
+
'POST/themes/cover/search/admin': POST_themes_cover_search_admin,
|
|
307
|
+
'POST/themes/cover/search/organizer': POST_themes_cover_search_organizer,
|
|
297
308
|
'POST/checkin/Unknown': POST_checkin_Unknown,
|
|
298
309
|
'POST/cities/venues/search/Unknown': POST_cities_venues_search_Unknown,
|
|
299
310
|
'POST/cities/venues/search/admin': POST_cities_venues_search_admin,
|
|
@@ -374,6 +385,7 @@ export const ContractSchema = Object.freeze(
|
|
|
374
385
|
'PATCH/registration/lineup/admin': PATCH_registration_lineup_admin,
|
|
375
386
|
'PATCH/registration/lineup/organizer': PATCH_registration_lineup_organizer,
|
|
376
387
|
'PATCH/registration/admin': PATCH_registration_admin,
|
|
377
|
-
'PATCH/registration/organizer': PATCH_registration_organizer
|
|
388
|
+
'PATCH/registration/organizer': PATCH_registration_organizer,
|
|
389
|
+
'PUT/theme/cover/admin': PUT_theme_cover_admin
|
|
378
390
|
}),
|
|
379
391
|
)
|