@shakerquiz/contracts 0.0.169 → 0.0.171

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.169",
4
+ "version": "0.0.171",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "registration": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ },
19
+ "registration/status": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "enum": [
24
+ "Created",
25
+ "Confirmed",
26
+ "Cancelled"
27
+ ]
28
+ },
29
+ "uniqueItems": true
30
+ },
31
+ "registration/lineup": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "enum": [
36
+ "Main",
37
+ "Reserve"
38
+ ]
39
+ },
40
+ "uniqueItems": true
41
+ },
42
+ "registration/interval": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string",
46
+ "enum": [
47
+ "1 day",
48
+ "3 days",
49
+ "1 week",
50
+ "1 month",
51
+ "3 months",
52
+ "6 months",
53
+ "1 year",
54
+ "all time"
55
+ ]
56
+ },
57
+ "uniqueItems": true
58
+ }
59
+ },
60
+ "required": [],
61
+ "additionalProperties": false
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "registration": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ },
19
+ "registration/status": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "enum": [
24
+ "Created",
25
+ "Confirmed",
26
+ "Cancelled"
27
+ ]
28
+ },
29
+ "uniqueItems": true
30
+ },
31
+ "registration/lineup": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "enum": [
36
+ "Main",
37
+ "Reserve"
38
+ ]
39
+ },
40
+ "uniqueItems": true
41
+ },
42
+ "registration/interval": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string",
46
+ "enum": [
47
+ "1 day",
48
+ "3 days",
49
+ "1 week",
50
+ "1 month",
51
+ "3 months",
52
+ "6 months",
53
+ "1 year",
54
+ "all time"
55
+ ]
56
+ },
57
+ "uniqueItems": true
58
+ }
59
+ },
60
+ "required": [],
61
+ "additionalProperties": false
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "registration": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ },
19
+ "registration/status": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "enum": [
24
+ "Created",
25
+ "Confirmed",
26
+ "Cancelled"
27
+ ]
28
+ },
29
+ "uniqueItems": true
30
+ },
31
+ "registration/lineup": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "enum": [
36
+ "Main",
37
+ "Reserve"
38
+ ]
39
+ },
40
+ "uniqueItems": true
41
+ },
42
+ "registration/interval": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string",
46
+ "enum": [
47
+ "1 day",
48
+ "3 days",
49
+ "1 week",
50
+ "1 month",
51
+ "3 months",
52
+ "6 months",
53
+ "1 year",
54
+ "all time"
55
+ ]
56
+ },
57
+ "uniqueItems": true
58
+ }
59
+ },
60
+ "required": [],
61
+ "additionalProperties": false
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "registration": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ },
19
+ "registration/status": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "enum": [
24
+ "Created",
25
+ "Confirmed",
26
+ "Cancelled"
27
+ ]
28
+ },
29
+ "uniqueItems": true
30
+ },
31
+ "registration/lineup": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "enum": [
36
+ "Main",
37
+ "Reserve"
38
+ ]
39
+ },
40
+ "uniqueItems": true
41
+ },
42
+ "registration/interval": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string",
46
+ "enum": [
47
+ "1 day",
48
+ "3 days",
49
+ "1 week",
50
+ "1 month",
51
+ "3 months",
52
+ "6 months",
53
+ "1 year",
54
+ "all time"
55
+ ]
56
+ },
57
+ "uniqueItems": true
58
+ }
59
+ },
60
+ "required": [],
61
+ "additionalProperties": false
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "registration": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ },
19
+ "registration/status": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "enum": [
24
+ "Created",
25
+ "Confirmed",
26
+ "Cancelled"
27
+ ]
28
+ },
29
+ "uniqueItems": true
30
+ },
31
+ "registration/lineup": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "enum": [
36
+ "Main",
37
+ "Reserve"
38
+ ]
39
+ },
40
+ "uniqueItems": true
41
+ },
42
+ "registration/interval": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string",
46
+ "enum": [
47
+ "1 day",
48
+ "3 days",
49
+ "1 week",
50
+ "1 month",
51
+ "3 months",
52
+ "6 months",
53
+ "1 year",
54
+ "all time"
55
+ ]
56
+ },
57
+ "uniqueItems": true
58
+ }
59
+ },
60
+ "required": [],
61
+ "additionalProperties": false
62
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "game": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "registration": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ },
19
+ "registration/status": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "enum": [
24
+ "Created",
25
+ "Confirmed",
26
+ "Cancelled"
27
+ ]
28
+ },
29
+ "uniqueItems": true
30
+ },
31
+ "registration/lineup": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "enum": [
36
+ "Main",
37
+ "Reserve"
38
+ ]
39
+ },
40
+ "uniqueItems": true
41
+ },
42
+ "registration/interval": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string",
46
+ "enum": [
47
+ "1 day",
48
+ "3 days",
49
+ "1 week",
50
+ "1 month",
51
+ "3 months",
52
+ "6 months",
53
+ "1 year",
54
+ "all time"
55
+ ]
56
+ },
57
+ "uniqueItems": true
58
+ }
59
+ },
60
+ "required": [],
61
+ "additionalProperties": false
62
+ }
package/source/index.js CHANGED
@@ -21,12 +21,6 @@ import PATCH_themes_admin from './contracts/PATCH/themes/admin.json' with { type
21
21
  import PATCH_venue_organizer from './contracts/PATCH/venue/organizer.json' with { type: 'json' }
22
22
  import PATCH_venue_admin from './contracts/PATCH/venue/admin.json' with { type: 'json' }
23
23
  import PATCH_registrations_Service from './contracts/PATCH/registrations/Service.json' with { type: 'json' }
24
- import PATCH_registrations_lineup_organizer from './contracts/PATCH/registrations/lineup/organizer.json' with { type: 'json' }
25
- import PATCH_registrations_lineup_Service from './contracts/PATCH/registrations/lineup/Service.json' with { type: 'json' }
26
- import PATCH_registrations_lineup_admin from './contracts/PATCH/registrations/lineup/admin.json' with { type: 'json' }
27
- import PATCH_registrations_status_organizer from './contracts/PATCH/registrations/status/organizer.json' with { type: 'json' }
28
- import PATCH_registrations_status_Service from './contracts/PATCH/registrations/status/Service.json' with { type: 'json' }
29
- import PATCH_registrations_status_admin from './contracts/PATCH/registrations/status/admin.json' with { type: 'json' }
30
24
  import PATCH_user_password_admin from './contracts/PATCH/user/password/admin.json' with { type: 'json' }
31
25
  import PATCH_user_admin from './contracts/PATCH/user/admin.json' with { type: 'json' }
32
26
  import PATCH_user_role_admin from './contracts/PATCH/user/role/admin.json' with { type: 'json' }
@@ -110,6 +104,9 @@ import POST_registrations_confirmation_search_organizer from './contracts/POST/r
110
104
  import POST_registrations_confirmation_search_Unknown from './contracts/POST/registrations/confirmation/search/Unknown.json' with { type: 'json' }
111
105
  import POST_registrations_confirmation_search_Service from './contracts/POST/registrations/confirmation/search/Service.json' with { type: 'json' }
112
106
  import POST_registrations_confirmation_search_admin from './contracts/POST/registrations/confirmation/search/admin.json' with { type: 'json' }
107
+ import POST_registrations_reservation_search_organizer from './contracts/POST/registrations/reservation/search/organizer.json' with { type: 'json' }
108
+ import POST_registrations_reservation_search_Service from './contracts/POST/registrations/reservation/search/Service.json' with { type: 'json' }
109
+ import POST_registrations_reservation_search_admin from './contracts/POST/registrations/reservation/search/admin.json' with { type: 'json' }
113
110
  import POST_registrations_theme_search_organizer from './contracts/POST/registrations/theme/search/organizer.json' with { type: 'json' }
114
111
  import POST_registrations_theme_search_Unknown from './contracts/POST/registrations/theme/search/Unknown.json' with { type: 'json' }
115
112
  import POST_registrations_theme_search_Service from './contracts/POST/registrations/theme/search/Service.json' with { type: 'json' }
@@ -123,6 +120,9 @@ import POST_registrations_cover_search_organizer from './contracts/POST/registra
123
120
  import POST_registrations_cover_search_Unknown from './contracts/POST/registrations/cover/search/Unknown.json' with { type: 'json' }
124
121
  import POST_registrations_cover_search_Service from './contracts/POST/registrations/cover/search/Service.json' with { type: 'json' }
125
122
  import POST_registrations_cover_search_admin from './contracts/POST/registrations/cover/search/admin.json' with { type: 'json' }
123
+ import POST_registrations_promotion_search_organizer from './contracts/POST/registrations/promotion/search/organizer.json' with { type: 'json' }
124
+ import POST_registrations_promotion_search_Service from './contracts/POST/registrations/promotion/search/Service.json' with { type: 'json' }
125
+ import POST_registrations_promotion_search_admin from './contracts/POST/registrations/promotion/search/admin.json' with { type: 'json' }
126
126
  import POST_registrations_search_organizer from './contracts/POST/registrations/search/organizer.json' with { type: 'json' }
127
127
  import POST_registrations_search_Unknown from './contracts/POST/registrations/search/Unknown.json' with { type: 'json' }
128
128
  import POST_registrations_search_admin from './contracts/POST/registrations/search/admin.json' with { type: 'json' }
@@ -174,12 +174,6 @@ export const Contracts = Object.freeze(
174
174
  'PATCH/venue/organizer',
175
175
  'PATCH/venue/admin',
176
176
  'PATCH/registrations/Service',
177
- 'PATCH/registrations/lineup/organizer',
178
- 'PATCH/registrations/lineup/Service',
179
- 'PATCH/registrations/lineup/admin',
180
- 'PATCH/registrations/status/organizer',
181
- 'PATCH/registrations/status/Service',
182
- 'PATCH/registrations/status/admin',
183
177
  'PATCH/user/password/admin',
184
178
  'PATCH/user/admin',
185
179
  'PATCH/user/role/admin',
@@ -263,6 +257,9 @@ export const Contracts = Object.freeze(
263
257
  'POST/registrations/confirmation/search/Unknown',
264
258
  'POST/registrations/confirmation/search/Service',
265
259
  'POST/registrations/confirmation/search/admin',
260
+ 'POST/registrations/reservation/search/organizer',
261
+ 'POST/registrations/reservation/search/Service',
262
+ 'POST/registrations/reservation/search/admin',
266
263
  'POST/registrations/theme/search/organizer',
267
264
  'POST/registrations/theme/search/Unknown',
268
265
  'POST/registrations/theme/search/Service',
@@ -276,6 +273,9 @@ export const Contracts = Object.freeze(
276
273
  'POST/registrations/cover/search/Unknown',
277
274
  'POST/registrations/cover/search/Service',
278
275
  'POST/registrations/cover/search/admin',
276
+ 'POST/registrations/promotion/search/organizer',
277
+ 'POST/registrations/promotion/search/Service',
278
+ 'POST/registrations/promotion/search/admin',
279
279
  'POST/registrations/search/organizer',
280
280
  'POST/registrations/search/Unknown',
281
281
  'POST/registrations/search/admin',
@@ -329,12 +329,6 @@ export const Schemas = Object.freeze(
329
329
  PATCH_venue_organizer,
330
330
  PATCH_venue_admin,
331
331
  PATCH_registrations_Service,
332
- PATCH_registrations_lineup_organizer,
333
- PATCH_registrations_lineup_Service,
334
- PATCH_registrations_lineup_admin,
335
- PATCH_registrations_status_organizer,
336
- PATCH_registrations_status_Service,
337
- PATCH_registrations_status_admin,
338
332
  PATCH_user_password_admin,
339
333
  PATCH_user_admin,
340
334
  PATCH_user_role_admin,
@@ -418,6 +412,9 @@ export const Schemas = Object.freeze(
418
412
  POST_registrations_confirmation_search_Unknown,
419
413
  POST_registrations_confirmation_search_Service,
420
414
  POST_registrations_confirmation_search_admin,
415
+ POST_registrations_reservation_search_organizer,
416
+ POST_registrations_reservation_search_Service,
417
+ POST_registrations_reservation_search_admin,
421
418
  POST_registrations_theme_search_organizer,
422
419
  POST_registrations_theme_search_Unknown,
423
420
  POST_registrations_theme_search_Service,
@@ -431,6 +428,9 @@ export const Schemas = Object.freeze(
431
428
  POST_registrations_cover_search_Unknown,
432
429
  POST_registrations_cover_search_Service,
433
430
  POST_registrations_cover_search_admin,
431
+ POST_registrations_promotion_search_organizer,
432
+ POST_registrations_promotion_search_Service,
433
+ POST_registrations_promotion_search_admin,
434
434
  POST_registrations_search_organizer,
435
435
  POST_registrations_search_Unknown,
436
436
  POST_registrations_search_admin,
@@ -484,12 +484,6 @@ export const ContractSchema = Object.freeze(
484
484
  'PATCH/venue/organizer': PATCH_venue_organizer,
485
485
  'PATCH/venue/admin': PATCH_venue_admin,
486
486
  'PATCH/registrations/Service': PATCH_registrations_Service,
487
- 'PATCH/registrations/lineup/organizer': PATCH_registrations_lineup_organizer,
488
- 'PATCH/registrations/lineup/Service': PATCH_registrations_lineup_Service,
489
- 'PATCH/registrations/lineup/admin': PATCH_registrations_lineup_admin,
490
- 'PATCH/registrations/status/organizer': PATCH_registrations_status_organizer,
491
- 'PATCH/registrations/status/Service': PATCH_registrations_status_Service,
492
- 'PATCH/registrations/status/admin': PATCH_registrations_status_admin,
493
487
  'PATCH/user/password/admin': PATCH_user_password_admin,
494
488
  'PATCH/user/admin': PATCH_user_admin,
495
489
  'PATCH/user/role/admin': PATCH_user_role_admin,
@@ -573,6 +567,9 @@ export const ContractSchema = Object.freeze(
573
567
  'POST/registrations/confirmation/search/Unknown': POST_registrations_confirmation_search_Unknown,
574
568
  'POST/registrations/confirmation/search/Service': POST_registrations_confirmation_search_Service,
575
569
  'POST/registrations/confirmation/search/admin': POST_registrations_confirmation_search_admin,
570
+ 'POST/registrations/reservation/search/organizer': POST_registrations_reservation_search_organizer,
571
+ 'POST/registrations/reservation/search/Service': POST_registrations_reservation_search_Service,
572
+ 'POST/registrations/reservation/search/admin': POST_registrations_reservation_search_admin,
576
573
  'POST/registrations/theme/search/organizer': POST_registrations_theme_search_organizer,
577
574
  'POST/registrations/theme/search/Unknown': POST_registrations_theme_search_Unknown,
578
575
  'POST/registrations/theme/search/Service': POST_registrations_theme_search_Service,
@@ -586,6 +583,9 @@ export const ContractSchema = Object.freeze(
586
583
  'POST/registrations/cover/search/Unknown': POST_registrations_cover_search_Unknown,
587
584
  'POST/registrations/cover/search/Service': POST_registrations_cover_search_Service,
588
585
  'POST/registrations/cover/search/admin': POST_registrations_cover_search_admin,
586
+ 'POST/registrations/promotion/search/organizer': POST_registrations_promotion_search_organizer,
587
+ 'POST/registrations/promotion/search/Service': POST_registrations_promotion_search_Service,
588
+ 'POST/registrations/promotion/search/admin': POST_registrations_promotion_search_admin,
589
589
  'POST/registrations/search/organizer': POST_registrations_search_organizer,
590
590
  'POST/registrations/search/Unknown': POST_registrations_search_Unknown,
591
591
  'POST/registrations/search/admin': POST_registrations_search_admin,
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "array",
4
- "items": {
5
- "type": "object",
6
- "properties": {
7
- "id": {
8
- "type": "string",
9
- "format": "uuid"
10
- },
11
- "lineup": {
12
- "type": "string",
13
- "enum": [
14
- "Main",
15
- "Reserve"
16
- ]
17
- }
18
- },
19
- "required": [
20
- "id",
21
- "lineup"
22
- ]
23
- },
24
- "uniqueItems": true
25
- }
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "array",
4
- "items": {
5
- "type": "object",
6
- "properties": {
7
- "id": {
8
- "type": "string",
9
- "format": "uuid"
10
- },
11
- "lineup": {
12
- "type": "string",
13
- "enum": [
14
- "Main",
15
- "Reserve"
16
- ]
17
- }
18
- },
19
- "required": [
20
- "id",
21
- "lineup"
22
- ]
23
- },
24
- "uniqueItems": true
25
- }
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "array",
4
- "items": {
5
- "type": "object",
6
- "properties": {
7
- "id": {
8
- "type": "string",
9
- "format": "uuid"
10
- },
11
- "lineup": {
12
- "type": "string",
13
- "enum": [
14
- "Main",
15
- "Reserve"
16
- ]
17
- }
18
- },
19
- "required": [
20
- "id",
21
- "lineup"
22
- ]
23
- },
24
- "uniqueItems": true
25
- }
@@ -1,26 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "array",
4
- "items": {
5
- "type": "object",
6
- "properties": {
7
- "id": {
8
- "type": "string",
9
- "format": "uuid"
10
- },
11
- "status": {
12
- "type": "string",
13
- "enum": [
14
- "Created",
15
- "Confirmed",
16
- "Cancelled"
17
- ]
18
- }
19
- },
20
- "required": [
21
- "id",
22
- "status"
23
- ]
24
- },
25
- "uniqueItems": true
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "array",
4
- "items": {
5
- "type": "object",
6
- "properties": {
7
- "id": {
8
- "type": "string",
9
- "format": "uuid"
10
- },
11
- "status": {
12
- "type": "string",
13
- "enum": [
14
- "Created",
15
- "Confirmed",
16
- "Cancelled"
17
- ]
18
- }
19
- },
20
- "required": [
21
- "id",
22
- "status"
23
- ]
24
- },
25
- "uniqueItems": true
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "array",
4
- "items": {
5
- "type": "object",
6
- "properties": {
7
- "id": {
8
- "type": "string",
9
- "format": "uuid"
10
- },
11
- "status": {
12
- "type": "string",
13
- "enum": [
14
- "Created",
15
- "Confirmed",
16
- "Cancelled"
17
- ]
18
- }
19
- },
20
- "required": [
21
- "id",
22
- "status"
23
- ]
24
- },
25
- "uniqueItems": true
26
- }