@shakerquiz/contracts 0.0.187 → 0.0.189

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.187",
4
+ "version": "0.0.189",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -19,6 +19,6 @@
19
19
  "@types/bun": "1.3.7"
20
20
  },
21
21
  "dependencies": {
22
- "@shakerquiz/utilities": "4.0.81"
22
+ "@shakerquiz/utilities": "4.0.82"
23
23
  }
24
24
  }
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "registration": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ },
19
+ "game/status": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "enum": [
24
+ "Approve",
25
+ "Archive",
26
+ "Close",
27
+ "Finish",
28
+ "Invite",
29
+ "Reserve",
30
+ "Moderate",
31
+ "Publish",
32
+ "Reject"
33
+ ]
34
+ },
35
+ "uniqueItems": true
36
+ }
37
+ },
38
+ "required": [],
39
+ "additionalProperties": false
40
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "registration": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "game": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ },
19
+ "game/status": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "enum": [
24
+ "Approve",
25
+ "Archive",
26
+ "Close",
27
+ "Finish",
28
+ "Invite",
29
+ "Reserve",
30
+ "Moderate",
31
+ "Publish",
32
+ "Reject"
33
+ ]
34
+ },
35
+ "uniqueItems": true
36
+ }
37
+ },
38
+ "required": [],
39
+ "additionalProperties": false
40
+ }
package/source/index.js CHANGED
@@ -89,6 +89,8 @@ import POST_city_vk_group_token_Admin from './contracts/POST/city/vk_group_token
89
89
  import POST_games_theme_search_Organizer from './contracts/POST/games/theme/search/Organizer.json' with { type: 'json' }
90
90
  import POST_games_theme_search_Admin from './contracts/POST/games/theme/search/Admin.json' with { type: 'json' }
91
91
  import POST_games_theme_search_Unknown from './contracts/POST/games/theme/search/Unknown.json' with { type: 'json' }
92
+ import POST_games_registrations_search_Organizer from './contracts/POST/games/registrations/search/Organizer.json' with { type: 'json' }
93
+ import POST_games_registrations_search_Admin from './contracts/POST/games/registrations/search/Admin.json' with { type: 'json' }
92
94
  import POST_games_city_search_Organizer from './contracts/POST/games/city/search/Organizer.json' with { type: 'json' }
93
95
  import POST_games_city_search_Admin from './contracts/POST/games/city/search/Admin.json' with { type: 'json' }
94
96
  import POST_games_search_Organizer from './contracts/POST/games/search/Organizer.json' with { type: 'json' }
@@ -253,6 +255,8 @@ export const Contracts = Object.freeze(
253
255
  'POST/games/theme/search/Organizer',
254
256
  'POST/games/theme/search/Admin',
255
257
  'POST/games/theme/search/Unknown',
258
+ 'POST/games/registrations/search/Organizer',
259
+ 'POST/games/registrations/search/Admin',
256
260
  'POST/games/city/search/Organizer',
257
261
  'POST/games/city/search/Admin',
258
262
  'POST/games/search/Organizer',
@@ -419,6 +423,8 @@ export const Schemas = Object.freeze(
419
423
  POST_games_theme_search_Organizer,
420
424
  POST_games_theme_search_Admin,
421
425
  POST_games_theme_search_Unknown,
426
+ POST_games_registrations_search_Organizer,
427
+ POST_games_registrations_search_Admin,
422
428
  POST_games_city_search_Organizer,
423
429
  POST_games_city_search_Admin,
424
430
  POST_games_search_Organizer,
@@ -585,6 +591,8 @@ export const ContractSchema = Object.freeze(
585
591
  'POST/games/theme/search/Organizer': POST_games_theme_search_Organizer,
586
592
  'POST/games/theme/search/Admin': POST_games_theme_search_Admin,
587
593
  'POST/games/theme/search/Unknown': POST_games_theme_search_Unknown,
594
+ 'POST/games/registrations/search/Organizer': POST_games_registrations_search_Organizer,
595
+ 'POST/games/registrations/search/Admin': POST_games_registrations_search_Admin,
588
596
  'POST/games/city/search/Organizer': POST_games_city_search_Organizer,
589
597
  'POST/games/city/search/Admin': POST_games_city_search_Admin,
590
598
  'POST/games/search/Organizer': POST_games_search_Organizer,