@shakerquiz/contracts 0.0.196 → 0.0.198

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.196",
4
+ "version": "0.0.198",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "team_name": {
6
+ "type": "string"
7
+ },
8
+ "human_name": {
9
+ "type": "string"
10
+ },
11
+ "people_count": {
12
+ "type": "integer"
13
+ },
14
+ "note": {
15
+ "type": "string"
16
+ }
17
+ },
18
+ "required": [],
19
+ "additionalProperties": false
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "team_name": {
6
+ "type": "string"
7
+ },
8
+ "human_name": {
9
+ "type": "string"
10
+ },
11
+ "people_count": {
12
+ "type": "integer"
13
+ },
14
+ "note": {
15
+ "type": "string"
16
+ }
17
+ },
18
+ "required": [],
19
+ "additionalProperties": false
20
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {},
5
+ "required": [],
6
+ "additionalProperties": false
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {},
5
+ "required": [],
6
+ "additionalProperties": false
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {},
5
+ "required": [],
6
+ "additionalProperties": false
7
+ }
package/source/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import POST_chatapp_registration_mailing_Organizer from './contracts/POST/chatapp/registration/mailing/Organizer.json' with { type: 'json' }
2
2
  import POST_chatapp_registration_mailing_Admin from './contracts/POST/chatapp/registration/mailing/Admin.json' with { type: 'json' }
3
+ import POST_theme_Organizer from './contracts/POST/theme/Organizer.json' with { type: 'json' }
3
4
  import POST_theme_Admin from './contracts/POST/theme/Admin.json' with { type: 'json' }
5
+ import POST_theme_cover_Organizer from './contracts/POST/theme/cover/Organizer.json' with { type: 'json' }
4
6
  import POST_theme_cover_Admin from './contracts/POST/theme/cover/Admin.json' with { type: 'json' }
5
7
  import POST_venues_city_search_Organizer from './contracts/POST/venues/city/search/Organizer.json' with { type: 'json' }
6
8
  import POST_venues_city_search_Admin from './contracts/POST/venues/city/search/Admin.json' with { type: 'json' }
@@ -111,13 +113,12 @@ import POST_venue_Admin from './contracts/POST/venue/Admin.json' with { type: 'j
111
113
  import POST_registration_Organizer from './contracts/POST/registration/Organizer.json' with { type: 'json' }
112
114
  import POST_registration_Admin from './contracts/POST/registration/Admin.json' with { type: 'json' }
113
115
  import POST_registration_Unknown from './contracts/POST/registration/Unknown.json' with { type: 'json' }
114
- import POST_registration_mailing_Organizer from './contracts/POST/registration/mailing/Organizer.json' with { type: 'json' }
115
- import POST_registration_mailing_Admin from './contracts/POST/registration/mailing/Admin.json' with { type: 'json' }
116
116
  import POST_roles_search_Admin from './contracts/POST/roles/search/Admin.json' with { type: 'json' }
117
117
  import POST_users_role_search_Admin from './contracts/POST/users/role/search/Admin.json' with { type: 'json' }
118
118
  import POST_users_cities_search_Admin from './contracts/POST/users/cities/search/Admin.json' with { type: 'json' }
119
119
  import POST_users_search_Admin from './contracts/POST/users/search/Admin.json' with { type: 'json' }
120
120
  import POST_users_password_search_Admin from './contracts/POST/users/password/search/Admin.json' with { type: 'json' }
121
+ import PATCH_theme_Organizer from './contracts/PATCH/theme/Organizer.json' with { type: 'json' }
121
122
  import PATCH_theme_Admin from './contracts/PATCH/theme/Admin.json' with { type: 'json' }
122
123
  import PATCH_venues_Organizer from './contracts/PATCH/venues/Organizer.json' with { type: 'json' }
123
124
  import PATCH_venues_Admin from './contracts/PATCH/venues/Admin.json' with { type: 'json' }
@@ -128,6 +129,8 @@ import PATCH_user_password_Admin from './contracts/PATCH/user/password/Admin.jso
128
129
  import PATCH_game_Service from './contracts/PATCH/game/Service.json' with { type: 'json' }
129
130
  import PATCH_game_Organizer from './contracts/PATCH/game/Organizer.json' with { type: 'json' }
130
131
  import PATCH_game_Admin from './contracts/PATCH/game/Admin.json' with { type: 'json' }
132
+ import PATCH_game_registration_Organizer from './contracts/PATCH/game/registration/Organizer.json' with { type: 'json' }
133
+ import PATCH_game_registration_Admin from './contracts/PATCH/game/registration/Admin.json' with { type: 'json' }
131
134
  import PATCH_registrations_Service from './contracts/PATCH/registrations/Service.json' with { type: 'json' }
132
135
  import PATCH_registrations_status_Service from './contracts/PATCH/registrations/status/Service.json' with { type: 'json' }
133
136
  import PATCH_registrations_status_Organizer from './contracts/PATCH/registrations/status/Organizer.json' with { type: 'json' }
@@ -153,11 +156,8 @@ import PATCH_registration_Service from './contracts/PATCH/registration/Service.j
153
156
  import PATCH_registration_Organizer from './contracts/PATCH/registration/Organizer.json' with { type: 'json' }
154
157
  import PATCH_registration_Admin from './contracts/PATCH/registration/Admin.json' with { type: 'json' }
155
158
  import PATCH_registration_channel_Service from './contracts/PATCH/registration/channel/Service.json' with { type: 'json' }
156
- import PATCH_registration_channel_Organizer from './contracts/PATCH/registration/channel/Organizer.json' with { type: 'json' }
157
- import PATCH_registration_channel_Admin from './contracts/PATCH/registration/channel/Admin.json' with { type: 'json' }
158
159
  import PATCH_registration_channel_Unknown from './contracts/PATCH/registration/channel/Unknown.json' with { type: 'json' }
159
160
  import PATCH_registration_Unknown from './contracts/PATCH/registration/Unknown.json' with { type: 'json' }
160
- import PATCH_registration_mailing_status_Service from './contracts/PATCH/registration/mailing/status/Service.json' with { type: 'json' }
161
161
  import PATCH_registration_status_Service from './contracts/PATCH/registration/status/Service.json' with { type: 'json' }
162
162
  import PATCH_registration_status_Organizer from './contracts/PATCH/registration/status/Organizer.json' with { type: 'json' }
163
163
  import PATCH_registration_status_Admin from './contracts/PATCH/registration/status/Admin.json' with { type: 'json' }
@@ -171,7 +171,9 @@ export const Contracts = Object.freeze(
171
171
  /** @type {const} */ ([
172
172
  'POST/chatapp/registration/mailing/Organizer',
173
173
  'POST/chatapp/registration/mailing/Admin',
174
+ 'POST/theme/Organizer',
174
175
  'POST/theme/Admin',
176
+ 'POST/theme/cover/Organizer',
175
177
  'POST/theme/cover/Admin',
176
178
  'POST/venues/city/search/Organizer',
177
179
  'POST/venues/city/search/Admin',
@@ -282,13 +284,12 @@ export const Contracts = Object.freeze(
282
284
  'POST/registration/Organizer',
283
285
  'POST/registration/Admin',
284
286
  'POST/registration/Unknown',
285
- 'POST/registration/mailing/Organizer',
286
- 'POST/registration/mailing/Admin',
287
287
  'POST/roles/search/Admin',
288
288
  'POST/users/role/search/Admin',
289
289
  'POST/users/cities/search/Admin',
290
290
  'POST/users/search/Admin',
291
291
  'POST/users/password/search/Admin',
292
+ 'PATCH/theme/Organizer',
292
293
  'PATCH/theme/Admin',
293
294
  'PATCH/venues/Organizer',
294
295
  'PATCH/venues/Admin',
@@ -299,6 +300,8 @@ export const Contracts = Object.freeze(
299
300
  'PATCH/game/Service',
300
301
  'PATCH/game/Organizer',
301
302
  'PATCH/game/Admin',
303
+ 'PATCH/game/registration/Organizer',
304
+ 'PATCH/game/registration/Admin',
302
305
  'PATCH/registrations/Service',
303
306
  'PATCH/registrations/status/Service',
304
307
  'PATCH/registrations/status/Organizer',
@@ -324,11 +327,8 @@ export const Contracts = Object.freeze(
324
327
  'PATCH/registration/Organizer',
325
328
  'PATCH/registration/Admin',
326
329
  'PATCH/registration/channel/Service',
327
- 'PATCH/registration/channel/Organizer',
328
- 'PATCH/registration/channel/Admin',
329
330
  'PATCH/registration/channel/Unknown',
330
331
  'PATCH/registration/Unknown',
331
- 'PATCH/registration/mailing/status/Service',
332
332
  'PATCH/registration/status/Service',
333
333
  'PATCH/registration/status/Organizer',
334
334
  'PATCH/registration/status/Admin',
@@ -344,7 +344,9 @@ export const Schemas = Object.freeze(
344
344
  /** @type {const} */ ([
345
345
  POST_chatapp_registration_mailing_Organizer,
346
346
  POST_chatapp_registration_mailing_Admin,
347
+ POST_theme_Organizer,
347
348
  POST_theme_Admin,
349
+ POST_theme_cover_Organizer,
348
350
  POST_theme_cover_Admin,
349
351
  POST_venues_city_search_Organizer,
350
352
  POST_venues_city_search_Admin,
@@ -455,13 +457,12 @@ export const Schemas = Object.freeze(
455
457
  POST_registration_Organizer,
456
458
  POST_registration_Admin,
457
459
  POST_registration_Unknown,
458
- POST_registration_mailing_Organizer,
459
- POST_registration_mailing_Admin,
460
460
  POST_roles_search_Admin,
461
461
  POST_users_role_search_Admin,
462
462
  POST_users_cities_search_Admin,
463
463
  POST_users_search_Admin,
464
464
  POST_users_password_search_Admin,
465
+ PATCH_theme_Organizer,
465
466
  PATCH_theme_Admin,
466
467
  PATCH_venues_Organizer,
467
468
  PATCH_venues_Admin,
@@ -472,6 +473,8 @@ export const Schemas = Object.freeze(
472
473
  PATCH_game_Service,
473
474
  PATCH_game_Organizer,
474
475
  PATCH_game_Admin,
476
+ PATCH_game_registration_Organizer,
477
+ PATCH_game_registration_Admin,
475
478
  PATCH_registrations_Service,
476
479
  PATCH_registrations_status_Service,
477
480
  PATCH_registrations_status_Organizer,
@@ -497,11 +500,8 @@ export const Schemas = Object.freeze(
497
500
  PATCH_registration_Organizer,
498
501
  PATCH_registration_Admin,
499
502
  PATCH_registration_channel_Service,
500
- PATCH_registration_channel_Organizer,
501
- PATCH_registration_channel_Admin,
502
503
  PATCH_registration_channel_Unknown,
503
504
  PATCH_registration_Unknown,
504
- PATCH_registration_mailing_status_Service,
505
505
  PATCH_registration_status_Service,
506
506
  PATCH_registration_status_Organizer,
507
507
  PATCH_registration_status_Admin,
@@ -517,7 +517,9 @@ export const ContractSchema = Object.freeze(
517
517
  /** @type {const} */ ({
518
518
  'POST/chatapp/registration/mailing/Organizer': POST_chatapp_registration_mailing_Organizer,
519
519
  'POST/chatapp/registration/mailing/Admin': POST_chatapp_registration_mailing_Admin,
520
+ 'POST/theme/Organizer': POST_theme_Organizer,
520
521
  'POST/theme/Admin': POST_theme_Admin,
522
+ 'POST/theme/cover/Organizer': POST_theme_cover_Organizer,
521
523
  'POST/theme/cover/Admin': POST_theme_cover_Admin,
522
524
  'POST/venues/city/search/Organizer': POST_venues_city_search_Organizer,
523
525
  'POST/venues/city/search/Admin': POST_venues_city_search_Admin,
@@ -628,13 +630,12 @@ export const ContractSchema = Object.freeze(
628
630
  'POST/registration/Organizer': POST_registration_Organizer,
629
631
  'POST/registration/Admin': POST_registration_Admin,
630
632
  'POST/registration/Unknown': POST_registration_Unknown,
631
- 'POST/registration/mailing/Organizer': POST_registration_mailing_Organizer,
632
- 'POST/registration/mailing/Admin': POST_registration_mailing_Admin,
633
633
  'POST/roles/search/Admin': POST_roles_search_Admin,
634
634
  'POST/users/role/search/Admin': POST_users_role_search_Admin,
635
635
  'POST/users/cities/search/Admin': POST_users_cities_search_Admin,
636
636
  'POST/users/search/Admin': POST_users_search_Admin,
637
637
  'POST/users/password/search/Admin': POST_users_password_search_Admin,
638
+ 'PATCH/theme/Organizer': PATCH_theme_Organizer,
638
639
  'PATCH/theme/Admin': PATCH_theme_Admin,
639
640
  'PATCH/venues/Organizer': PATCH_venues_Organizer,
640
641
  'PATCH/venues/Admin': PATCH_venues_Admin,
@@ -645,6 +646,8 @@ export const ContractSchema = Object.freeze(
645
646
  'PATCH/game/Service': PATCH_game_Service,
646
647
  'PATCH/game/Organizer': PATCH_game_Organizer,
647
648
  'PATCH/game/Admin': PATCH_game_Admin,
649
+ 'PATCH/game/registration/Organizer': PATCH_game_registration_Organizer,
650
+ 'PATCH/game/registration/Admin': PATCH_game_registration_Admin,
648
651
  'PATCH/registrations/Service': PATCH_registrations_Service,
649
652
  'PATCH/registrations/status/Service': PATCH_registrations_status_Service,
650
653
  'PATCH/registrations/status/Organizer': PATCH_registrations_status_Organizer,
@@ -670,11 +673,8 @@ export const ContractSchema = Object.freeze(
670
673
  'PATCH/registration/Organizer': PATCH_registration_Organizer,
671
674
  'PATCH/registration/Admin': PATCH_registration_Admin,
672
675
  'PATCH/registration/channel/Service': PATCH_registration_channel_Service,
673
- 'PATCH/registration/channel/Organizer': PATCH_registration_channel_Organizer,
674
- 'PATCH/registration/channel/Admin': PATCH_registration_channel_Admin,
675
676
  'PATCH/registration/channel/Unknown': PATCH_registration_channel_Unknown,
676
677
  'PATCH/registration/Unknown': PATCH_registration_Unknown,
677
- 'PATCH/registration/mailing/status/Service': PATCH_registration_mailing_status_Service,
678
678
  'PATCH/registration/status/Service': PATCH_registration_status_Service,
679
679
  'PATCH/registration/status/Organizer': PATCH_registration_status_Organizer,
680
680
  'PATCH/registration/status/Admin': PATCH_registration_status_Admin,
@@ -1,67 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "channel": {
6
- "type": "string",
7
- "enum": [
8
- "Vkontakte",
9
- "Telegram",
10
- "Email"
11
- ]
12
- },
13
- "confirmed_channel": {
14
- "type": "string",
15
- "enum": [
16
- "Vkontakte",
17
- "Telegram",
18
- "Email"
19
- ]
20
- },
21
- "email": {
22
- "type": "string"
23
- },
24
- "vkontakte": {
25
- "type": "string"
26
- },
27
- "telegram": {
28
- "type": "string"
29
- }
30
- },
31
- "required": [
32
- "channel"
33
- ],
34
- "additionalProperties": false,
35
- "allOf": [
36
- {
37
- "if": {
38
- "properties": {
39
- "channel": { "const": "Vkontakte" }
40
- }
41
- },
42
- "then": {
43
- "required": ["vkontakte", "confirmed_channel"]
44
- }
45
- },
46
- {
47
- "if": {
48
- "properties": {
49
- "channel": { "const": "Telegram" }
50
- }
51
- },
52
- "then": {
53
- "required": ["telegram", "confirmed_channel"]
54
- }
55
- },
56
- {
57
- "if": {
58
- "properties": {
59
- "channel": { "const": "Email" }
60
- }
61
- },
62
- "then": {
63
- "required": ["email"]
64
- }
65
- }
66
- ]
67
- }
@@ -1,67 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "channel": {
6
- "type": "string",
7
- "enum": [
8
- "Vkontakte",
9
- "Telegram",
10
- "Email"
11
- ]
12
- },
13
- "confirmed_channel": {
14
- "type": "string",
15
- "enum": [
16
- "Vkontakte",
17
- "Telegram",
18
- "Email"
19
- ]
20
- },
21
- "email": {
22
- "type": "string"
23
- },
24
- "vkontakte": {
25
- "type": "string"
26
- },
27
- "telegram": {
28
- "type": "string"
29
- }
30
- },
31
- "required": [
32
- "channel"
33
- ],
34
- "additionalProperties": false,
35
- "allOf": [
36
- {
37
- "if": {
38
- "properties": {
39
- "channel": { "const": "Vkontakte" }
40
- }
41
- },
42
- "then": {
43
- "required": ["vkontakte", "confirmed_channel"]
44
- }
45
- },
46
- {
47
- "if": {
48
- "properties": {
49
- "channel": { "const": "Telegram" }
50
- }
51
- },
52
- "then": {
53
- "required": ["telegram", "confirmed_channel"]
54
- }
55
- },
56
- {
57
- "if": {
58
- "properties": {
59
- "channel": { "const": "Email" }
60
- }
61
- },
62
- "then": {
63
- "required": ["email"]
64
- }
65
- }
66
- ]
67
- }
@@ -1,19 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "mailing": {
6
- "type": "string",
7
- "enum": [
8
- "Idle",
9
- "Pending",
10
- "Delivered",
11
- "Failed"
12
- ]
13
- }
14
- },
15
- "required": [
16
- "mailing"
17
- ],
18
- "additionalProperties": false
19
- }
@@ -1,32 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "feature": {
6
- "type": "string",
7
- "enum": [
8
- "TEXT",
9
- "CREATED_REGISTRATION",
10
- "CHANGED_REGISTRATION_STATUS",
11
- "CHANGED_REGISTRATION_LINEUP",
12
- "VERIFIED_REGISTRATION_CHANNEL"
13
- ]
14
- },
15
- "message": {
16
- "type": "string"
17
- },
18
- "payment": {
19
- "type": "string",
20
- "enum": [
21
- "Any",
22
- "Cash"
23
- ]
24
- }
25
- },
26
- "required": [
27
- "feature",
28
- "message",
29
- "payment"
30
- ],
31
- "additionalProperties": false
32
- }
@@ -1,32 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "feature": {
6
- "type": "string",
7
- "enum": [
8
- "TEXT",
9
- "CREATED_REGISTRATION",
10
- "CHANGED_REGISTRATION_STATUS",
11
- "CHANGED_REGISTRATION_LINEUP",
12
- "VERIFIED_REGISTRATION_CHANNEL"
13
- ]
14
- },
15
- "message": {
16
- "type": "string"
17
- },
18
- "payment": {
19
- "type": "string",
20
- "enum": [
21
- "Any",
22
- "Cash"
23
- ]
24
- }
25
- },
26
- "required": [
27
- "feature",
28
- "message",
29
- "payment"
30
- ],
31
- "additionalProperties": false
32
- }