@shakerquiz/contracts 0.0.63 → 0.0.64
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,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"status": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"APPROVED",
|
|
14
|
+
"ARCHIVE",
|
|
15
|
+
"CLOSED",
|
|
16
|
+
"FINISHED",
|
|
17
|
+
"FORINVITES",
|
|
18
|
+
"IS_RESERVE",
|
|
19
|
+
"MODERATION",
|
|
20
|
+
"PUBLISHED",
|
|
21
|
+
"REJECTED"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"id"
|
|
27
|
+
],
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
},
|
|
30
|
+
"uniqueItems": true
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"status": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"APPROVED",
|
|
14
|
+
"ARCHIVE",
|
|
15
|
+
"CLOSED",
|
|
16
|
+
"FINISHED",
|
|
17
|
+
"FORINVITES",
|
|
18
|
+
"IS_RESERVE",
|
|
19
|
+
"MODERATION",
|
|
20
|
+
"PUBLISHED",
|
|
21
|
+
"REJECTED"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"id"
|
|
27
|
+
],
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
},
|
|
30
|
+
"uniqueItems": true
|
|
31
|
+
}
|
package/source/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import PATCH_game_admin from './contracts/PATCH/game/admin.json' with { type: 'j
|
|
|
14
14
|
import PATCH_game_status_admin from './contracts/PATCH/game/status/admin.json' with { type: 'json' }
|
|
15
15
|
import PATCH_game_status_Service from './contracts/PATCH/game/status/Service.json' with { type: 'json' }
|
|
16
16
|
import PATCH_games_admin from './contracts/PATCH/games/admin.json' with { type: 'json' }
|
|
17
|
+
import PATCH_games_status_admin from './contracts/PATCH/games/status/admin.json' with { type: 'json' }
|
|
17
18
|
import PATCH_registration_admin from './contracts/PATCH/registration/admin.json' with { type: 'json' }
|
|
18
19
|
import PATCH_registration_Unknown from './contracts/PATCH/registration/Unknown.json' with { type: 'json' }
|
|
19
20
|
import PATCH_registration_status_admin from './contracts/PATCH/registration/status/admin.json' with { type: 'json' }
|
|
@@ -54,6 +55,7 @@ export const Contracts = Object.freeze(
|
|
|
54
55
|
'PATCH/game/status/admin',
|
|
55
56
|
'PATCH/game/status/Service',
|
|
56
57
|
'PATCH/games/admin',
|
|
58
|
+
'PATCH/games/status/admin',
|
|
57
59
|
'PATCH/registration/admin',
|
|
58
60
|
'PATCH/registration/Unknown',
|
|
59
61
|
'PATCH/registration/status/admin',
|
|
@@ -96,6 +98,7 @@ export const Schemas = Object.freeze(
|
|
|
96
98
|
PATCH_game_status_admin,
|
|
97
99
|
PATCH_game_status_Service,
|
|
98
100
|
PATCH_games_admin,
|
|
101
|
+
PATCH_games_status_admin,
|
|
99
102
|
PATCH_registration_admin,
|
|
100
103
|
PATCH_registration_Unknown,
|
|
101
104
|
PATCH_registration_status_admin,
|
|
@@ -138,6 +141,7 @@ export const ContractSchema = Object.freeze(
|
|
|
138
141
|
'PATCH/game/status/admin': PATCH_game_status_admin,
|
|
139
142
|
'PATCH/game/status/Service': PATCH_game_status_Service,
|
|
140
143
|
'PATCH/games/admin': PATCH_games_admin,
|
|
144
|
+
'PATCH/games/status/admin': PATCH_games_status_admin,
|
|
141
145
|
'PATCH/registration/admin': PATCH_registration_admin,
|
|
142
146
|
'PATCH/registration/Unknown': PATCH_registration_Unknown,
|
|
143
147
|
'PATCH/registration/status/admin': PATCH_registration_status_admin,
|