@shakerquiz/contracts 0.0.219 → 0.0.221

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.219",
4
+ "version": "0.0.221",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -25,6 +25,13 @@
25
25
  },
26
26
  "note": {
27
27
  "type": "string"
28
+ },
29
+ "visibility": {
30
+ "type": "string",
31
+ "enum": [
32
+ "Visible",
33
+ "Hidden"
34
+ ]
28
35
  }
29
36
  },
30
37
  "required": [],
@@ -25,6 +25,13 @@
25
25
  },
26
26
  "note": {
27
27
  "type": "string"
28
+ },
29
+ "visibility": {
30
+ "type": "string",
31
+ "enum": [
32
+ "Visible",
33
+ "Hidden"
34
+ ]
28
35
  }
29
36
  },
30
37
  "required": [],
@@ -0,0 +1,26 @@
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
+ "visibility": {
12
+ "type": "string",
13
+ "enum": [
14
+ "Visible",
15
+ "Hidden"
16
+ ]
17
+ }
18
+ },
19
+ "required": [
20
+ "id",
21
+ "visibility"
22
+ ],
23
+ "additionalProperties": false
24
+ },
25
+ "minItems": 1
26
+ }
@@ -0,0 +1,26 @@
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
+ "visibility": {
12
+ "type": "string",
13
+ "enum": [
14
+ "Visible",
15
+ "Hidden"
16
+ ]
17
+ }
18
+ },
19
+ "required": [
20
+ "id",
21
+ "visibility"
22
+ ],
23
+ "additionalProperties": false
24
+ },
25
+ "minItems": 1
26
+ }
@@ -13,6 +13,7 @@
13
13
  "enum": [
14
14
  "Text",
15
15
  "Registration/Created",
16
+ "Registration/Restored",
16
17
  "Registration/Status/Changed",
17
18
  "Registration/Lineup/Changed",
18
19
  "Registration/Channel/Confirmed",
@@ -13,6 +13,7 @@
13
13
  "enum": [
14
14
  "Text",
15
15
  "Registration/Created",
16
+ "Registration/Restored",
16
17
  "Registration/Status/Changed",
17
18
  "Registration/Lineup/Changed",
18
19
  "Registration/Channel/Confirmed",
@@ -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
@@ -74,6 +74,10 @@ import POST_registrations_venue_search_Service from './contracts/POST/registrati
74
74
  import POST_registrations_venue_search_Organizer from './contracts/POST/registrations/venue/search/Organizer.json' with { type: 'json' }
75
75
  import POST_registrations_venue_search_Admin from './contracts/POST/registrations/venue/search/Admin.json' with { type: 'json' }
76
76
  import POST_registrations_venue_search_Unknown from './contracts/POST/registrations/venue/search/Unknown.json' with { type: 'json' }
77
+ import POST_registrations_restoration_search_Service from './contracts/POST/registrations/restoration/search/Service.json' with { type: 'json' }
78
+ import POST_registrations_restoration_search_Organizer from './contracts/POST/registrations/restoration/search/Organizer.json' with { type: 'json' }
79
+ import POST_registrations_restoration_search_Admin from './contracts/POST/registrations/restoration/search/Admin.json' with { type: 'json' }
80
+ import POST_registrations_restoration_search_Unknown from './contracts/POST/registrations/restoration/search/Unknown.json' with { type: 'json' }
77
81
  import POST_registrations_mailing_Organizer from './contracts/POST/registrations/mailing/Organizer.json' with { type: 'json' }
78
82
  import POST_registrations_mailing_Admin from './contracts/POST/registrations/mailing/Admin.json' with { type: 'json' }
79
83
  import POST_registrations_mailing_status_search_Organizer from './contracts/POST/registrations/mailing/status/search/Organizer.json' with { type: 'json' }
@@ -136,6 +140,8 @@ import PATCH_game_venue_Admin from './contracts/PATCH/game/venue/Admin.json' wit
136
140
  import PATCH_game_registration_Organizer from './contracts/PATCH/game/registration/Organizer.json' with { type: 'json' }
137
141
  import PATCH_game_registration_Admin from './contracts/PATCH/game/registration/Admin.json' with { type: 'json' }
138
142
  import PATCH_registrations_Service from './contracts/PATCH/registrations/Service.json' with { type: 'json' }
143
+ import PATCH_registrations_Organizer from './contracts/PATCH/registrations/Organizer.json' with { type: 'json' }
144
+ import PATCH_registrations_Admin from './contracts/PATCH/registrations/Admin.json' with { type: 'json' }
139
145
  import PATCH_registrations_status_Service from './contracts/PATCH/registrations/status/Service.json' with { type: 'json' }
140
146
  import PATCH_registrations_status_Organizer from './contracts/PATCH/registrations/status/Organizer.json' with { type: 'json' }
141
147
  import PATCH_registrations_status_Admin from './contracts/PATCH/registrations/status/Admin.json' with { type: 'json' }
@@ -249,6 +255,10 @@ export const Contracts = Object.freeze(
249
255
  'POST/registrations/venue/search/Organizer',
250
256
  'POST/registrations/venue/search/Admin',
251
257
  'POST/registrations/venue/search/Unknown',
258
+ 'POST/registrations/restoration/search/Service',
259
+ 'POST/registrations/restoration/search/Organizer',
260
+ 'POST/registrations/restoration/search/Admin',
261
+ 'POST/registrations/restoration/search/Unknown',
252
262
  'POST/registrations/mailing/Organizer',
253
263
  'POST/registrations/mailing/Admin',
254
264
  'POST/registrations/mailing/status/search/Organizer',
@@ -311,6 +321,8 @@ export const Contracts = Object.freeze(
311
321
  'PATCH/game/registration/Organizer',
312
322
  'PATCH/game/registration/Admin',
313
323
  'PATCH/registrations/Service',
324
+ 'PATCH/registrations/Organizer',
325
+ 'PATCH/registrations/Admin',
314
326
  'PATCH/registrations/status/Service',
315
327
  'PATCH/registrations/status/Organizer',
316
328
  'PATCH/registrations/status/Admin',
@@ -426,6 +438,10 @@ export const Schemas = Object.freeze(
426
438
  POST_registrations_venue_search_Organizer,
427
439
  POST_registrations_venue_search_Admin,
428
440
  POST_registrations_venue_search_Unknown,
441
+ POST_registrations_restoration_search_Service,
442
+ POST_registrations_restoration_search_Organizer,
443
+ POST_registrations_restoration_search_Admin,
444
+ POST_registrations_restoration_search_Unknown,
429
445
  POST_registrations_mailing_Organizer,
430
446
  POST_registrations_mailing_Admin,
431
447
  POST_registrations_mailing_status_search_Organizer,
@@ -488,6 +504,8 @@ export const Schemas = Object.freeze(
488
504
  PATCH_game_registration_Organizer,
489
505
  PATCH_game_registration_Admin,
490
506
  PATCH_registrations_Service,
507
+ PATCH_registrations_Organizer,
508
+ PATCH_registrations_Admin,
491
509
  PATCH_registrations_status_Service,
492
510
  PATCH_registrations_status_Organizer,
493
511
  PATCH_registrations_status_Admin,
@@ -603,6 +621,10 @@ export const ContractSchema = Object.freeze(
603
621
  'POST/registrations/venue/search/Organizer': POST_registrations_venue_search_Organizer,
604
622
  'POST/registrations/venue/search/Admin': POST_registrations_venue_search_Admin,
605
623
  'POST/registrations/venue/search/Unknown': POST_registrations_venue_search_Unknown,
624
+ 'POST/registrations/restoration/search/Service': POST_registrations_restoration_search_Service,
625
+ 'POST/registrations/restoration/search/Organizer': POST_registrations_restoration_search_Organizer,
626
+ 'POST/registrations/restoration/search/Admin': POST_registrations_restoration_search_Admin,
627
+ 'POST/registrations/restoration/search/Unknown': POST_registrations_restoration_search_Unknown,
606
628
  'POST/registrations/mailing/Organizer': POST_registrations_mailing_Organizer,
607
629
  'POST/registrations/mailing/Admin': POST_registrations_mailing_Admin,
608
630
  'POST/registrations/mailing/status/search/Organizer': POST_registrations_mailing_status_search_Organizer,
@@ -665,6 +687,8 @@ export const ContractSchema = Object.freeze(
665
687
  'PATCH/game/registration/Organizer': PATCH_game_registration_Organizer,
666
688
  'PATCH/game/registration/Admin': PATCH_game_registration_Admin,
667
689
  'PATCH/registrations/Service': PATCH_registrations_Service,
690
+ 'PATCH/registrations/Organizer': PATCH_registrations_Organizer,
691
+ 'PATCH/registrations/Admin': PATCH_registrations_Admin,
668
692
  'PATCH/registrations/status/Service': PATCH_registrations_status_Service,
669
693
  'PATCH/registrations/status/Organizer': PATCH_registrations_status_Organizer,
670
694
  'PATCH/registrations/status/Admin': PATCH_registrations_status_Admin,