@shakerquiz/contracts 0.0.188 → 0.0.190
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,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
|
@@ -36,6 +36,8 @@ import POST_user_city_Admin from './contracts/POST/user/city/Admin.json' with {
|
|
|
36
36
|
import POST_user_password_Admin from './contracts/POST/user/password/Admin.json' with { type: 'json' }
|
|
37
37
|
import POST_game_Organizer from './contracts/POST/game/Organizer.json' with { type: 'json' }
|
|
38
38
|
import POST_game_Admin from './contracts/POST/game/Admin.json' with { type: 'json' }
|
|
39
|
+
import POST_game_registrations_search_Organizer from './contracts/POST/game/registrations/search/Organizer.json' with { type: 'json' }
|
|
40
|
+
import POST_game_registrations_search_Admin from './contracts/POST/game/registrations/search/Admin.json' with { type: 'json' }
|
|
39
41
|
import POST_registrations_promotion_search_Service from './contracts/POST/registrations/promotion/search/Service.json' with { type: 'json' }
|
|
40
42
|
import POST_registrations_promotion_search_Organizer from './contracts/POST/registrations/promotion/search/Organizer.json' with { type: 'json' }
|
|
41
43
|
import POST_registrations_promotion_search_Admin from './contracts/POST/registrations/promotion/search/Admin.json' with { type: 'json' }
|
|
@@ -200,6 +202,8 @@ export const Contracts = Object.freeze(
|
|
|
200
202
|
'POST/user/password/Admin',
|
|
201
203
|
'POST/game/Organizer',
|
|
202
204
|
'POST/game/Admin',
|
|
205
|
+
'POST/game/registrations/search/Organizer',
|
|
206
|
+
'POST/game/registrations/search/Admin',
|
|
203
207
|
'POST/registrations/promotion/search/Service',
|
|
204
208
|
'POST/registrations/promotion/search/Organizer',
|
|
205
209
|
'POST/registrations/promotion/search/Admin',
|
|
@@ -366,6 +370,8 @@ export const Schemas = Object.freeze(
|
|
|
366
370
|
POST_user_password_Admin,
|
|
367
371
|
POST_game_Organizer,
|
|
368
372
|
POST_game_Admin,
|
|
373
|
+
POST_game_registrations_search_Organizer,
|
|
374
|
+
POST_game_registrations_search_Admin,
|
|
369
375
|
POST_registrations_promotion_search_Service,
|
|
370
376
|
POST_registrations_promotion_search_Organizer,
|
|
371
377
|
POST_registrations_promotion_search_Admin,
|
|
@@ -532,6 +538,8 @@ export const ContractSchema = Object.freeze(
|
|
|
532
538
|
'POST/user/password/Admin': POST_user_password_Admin,
|
|
533
539
|
'POST/game/Organizer': POST_game_Organizer,
|
|
534
540
|
'POST/game/Admin': POST_game_Admin,
|
|
541
|
+
'POST/game/registrations/search/Organizer': POST_game_registrations_search_Organizer,
|
|
542
|
+
'POST/game/registrations/search/Admin': POST_game_registrations_search_Admin,
|
|
535
543
|
'POST/registrations/promotion/search/Service': POST_registrations_promotion_search_Service,
|
|
536
544
|
'POST/registrations/promotion/search/Organizer': POST_registrations_promotion_search_Organizer,
|
|
537
545
|
'POST/registrations/promotion/search/Admin': POST_registrations_promotion_search_Admin,
|