@shakerquiz/contracts 0.0.153 → 0.0.155

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.153",
4
+ "version": "0.0.155",
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
  },
@@ -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' }
@@ -70,9 +72,9 @@ import PATCH_city_currency_admin from './contracts/PATCH/city/currency/admin.jso
70
72
  import PATCH_city_country_admin from './contracts/PATCH/city/country/admin.json' with { type: 'json' }
71
73
  import PATCH_city_vk_group_token_admin from './contracts/PATCH/city/vk_group_token/admin.json' with { type: 'json' }
72
74
  import PATCH_city_admin from './contracts/PATCH/city/admin.json' with { type: 'json' }
73
- import PATCH_games_status_Service from './contracts/PATCH/games/status/Service.json' with { type: 'json' }
74
- import PATCH_games_status_admin from './contracts/PATCH/games/status/admin.json' with { type: 'json' }
75
- import PATCH_games_status_organizer from './contracts/PATCH/games/status/organizer.json' with { type: 'json' }
75
+ import PATCH_games_Service from './contracts/PATCH/games/Service.json' with { type: 'json' }
76
+ import PATCH_games_admin from './contracts/PATCH/games/admin.json' with { type: 'json' }
77
+ import PATCH_games_organizer from './contracts/PATCH/games/organizer.json' with { type: 'json' }
76
78
  import PATCH_venue_admin from './contracts/PATCH/venue/admin.json' with { type: 'json' }
77
79
  import PATCH_venue_organizer from './contracts/PATCH/venue/organizer.json' with { type: 'json' }
78
80
  import PATCH_registration_Service from './contracts/PATCH/registration/Service.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',
@@ -165,9 +169,9 @@ export const Contracts = Object.freeze(
165
169
  'PATCH/city/country/admin',
166
170
  'PATCH/city/vk_group_token/admin',
167
171
  'PATCH/city/admin',
168
- 'PATCH/games/status/Service',
169
- 'PATCH/games/status/admin',
170
- 'PATCH/games/status/organizer',
172
+ 'PATCH/games/Service',
173
+ 'PATCH/games/admin',
174
+ 'PATCH/games/organizer',
171
175
  'PATCH/venue/admin',
172
176
  'PATCH/venue/organizer',
173
177
  'PATCH/registration/Service',
@@ -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,
@@ -262,9 +268,9 @@ export const Schemas = Object.freeze(
262
268
  PATCH_city_country_admin,
263
269
  PATCH_city_vk_group_token_admin,
264
270
  PATCH_city_admin,
265
- PATCH_games_status_Service,
266
- PATCH_games_status_admin,
267
- PATCH_games_status_organizer,
271
+ PATCH_games_Service,
272
+ PATCH_games_admin,
273
+ PATCH_games_organizer,
268
274
  PATCH_venue_admin,
269
275
  PATCH_venue_organizer,
270
276
  PATCH_registration_Service,
@@ -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,
@@ -359,9 +367,9 @@ export const ContractSchema = Object.freeze(
359
367
  'PATCH/city/country/admin': PATCH_city_country_admin,
360
368
  'PATCH/city/vk_group_token/admin': PATCH_city_vk_group_token_admin,
361
369
  'PATCH/city/admin': PATCH_city_admin,
362
- 'PATCH/games/status/Service': PATCH_games_status_Service,
363
- 'PATCH/games/status/admin': PATCH_games_status_admin,
364
- 'PATCH/games/status/organizer': PATCH_games_status_organizer,
370
+ 'PATCH/games/Service': PATCH_games_Service,
371
+ 'PATCH/games/admin': PATCH_games_admin,
372
+ 'PATCH/games/organizer': PATCH_games_organizer,
365
373
  'PATCH/venue/admin': PATCH_venue_admin,
366
374
  'PATCH/venue/organizer': PATCH_venue_organizer,
367
375
  'PATCH/registration/Service': PATCH_registration_Service,