@shakerquiz/contracts 0.0.153 → 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' }
|
|
@@ -103,6 +105,8 @@ export const Contracts = Object.freeze(
|
|
|
103
105
|
'POST/venues/search/organizer',
|
|
104
106
|
'POST/themes/search/admin',
|
|
105
107
|
'POST/themes/search/organizer',
|
|
108
|
+
'POST/themes/cover/search/admin',
|
|
109
|
+
'POST/themes/cover/search/organizer',
|
|
106
110
|
'POST/checkin/Unknown',
|
|
107
111
|
'POST/cities/venues/search/Unknown',
|
|
108
112
|
'POST/cities/venues/search/admin',
|
|
@@ -200,6 +204,8 @@ export const Schemas = Object.freeze(
|
|
|
200
204
|
POST_venues_search_organizer,
|
|
201
205
|
POST_themes_search_admin,
|
|
202
206
|
POST_themes_search_organizer,
|
|
207
|
+
POST_themes_cover_search_admin,
|
|
208
|
+
POST_themes_cover_search_organizer,
|
|
203
209
|
POST_checkin_Unknown,
|
|
204
210
|
POST_cities_venues_search_Unknown,
|
|
205
211
|
POST_cities_venues_search_admin,
|
|
@@ -297,6 +303,8 @@ export const ContractSchema = Object.freeze(
|
|
|
297
303
|
'POST/venues/search/organizer': POST_venues_search_organizer,
|
|
298
304
|
'POST/themes/search/admin': POST_themes_search_admin,
|
|
299
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,
|
|
300
308
|
'POST/checkin/Unknown': POST_checkin_Unknown,
|
|
301
309
|
'POST/cities/venues/search/Unknown': POST_cities_venues_search_Unknown,
|
|
302
310
|
'POST/cities/venues/search/admin': POST_cities_venues_search_admin,
|