@shakerquiz/contracts 0.0.196 → 0.0.197

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.197",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -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' }
@@ -153,11 +154,8 @@ import PATCH_registration_Service from './contracts/PATCH/registration/Service.j
153
154
  import PATCH_registration_Organizer from './contracts/PATCH/registration/Organizer.json' with { type: 'json' }
154
155
  import PATCH_registration_Admin from './contracts/PATCH/registration/Admin.json' with { type: 'json' }
155
156
  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
157
  import PATCH_registration_channel_Unknown from './contracts/PATCH/registration/channel/Unknown.json' with { type: 'json' }
159
158
  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
159
  import PATCH_registration_status_Service from './contracts/PATCH/registration/status/Service.json' with { type: 'json' }
162
160
  import PATCH_registration_status_Organizer from './contracts/PATCH/registration/status/Organizer.json' with { type: 'json' }
163
161
  import PATCH_registration_status_Admin from './contracts/PATCH/registration/status/Admin.json' with { type: 'json' }
@@ -171,7 +169,9 @@ export const Contracts = Object.freeze(
171
169
  /** @type {const} */ ([
172
170
  'POST/chatapp/registration/mailing/Organizer',
173
171
  'POST/chatapp/registration/mailing/Admin',
172
+ 'POST/theme/Organizer',
174
173
  'POST/theme/Admin',
174
+ 'POST/theme/cover/Organizer',
175
175
  'POST/theme/cover/Admin',
176
176
  'POST/venues/city/search/Organizer',
177
177
  'POST/venues/city/search/Admin',
@@ -282,13 +282,12 @@ export const Contracts = Object.freeze(
282
282
  'POST/registration/Organizer',
283
283
  'POST/registration/Admin',
284
284
  'POST/registration/Unknown',
285
- 'POST/registration/mailing/Organizer',
286
- 'POST/registration/mailing/Admin',
287
285
  'POST/roles/search/Admin',
288
286
  'POST/users/role/search/Admin',
289
287
  'POST/users/cities/search/Admin',
290
288
  'POST/users/search/Admin',
291
289
  'POST/users/password/search/Admin',
290
+ 'PATCH/theme/Organizer',
292
291
  'PATCH/theme/Admin',
293
292
  'PATCH/venues/Organizer',
294
293
  'PATCH/venues/Admin',
@@ -324,11 +323,8 @@ export const Contracts = Object.freeze(
324
323
  'PATCH/registration/Organizer',
325
324
  'PATCH/registration/Admin',
326
325
  'PATCH/registration/channel/Service',
327
- 'PATCH/registration/channel/Organizer',
328
- 'PATCH/registration/channel/Admin',
329
326
  'PATCH/registration/channel/Unknown',
330
327
  'PATCH/registration/Unknown',
331
- 'PATCH/registration/mailing/status/Service',
332
328
  'PATCH/registration/status/Service',
333
329
  'PATCH/registration/status/Organizer',
334
330
  'PATCH/registration/status/Admin',
@@ -344,7 +340,9 @@ export const Schemas = Object.freeze(
344
340
  /** @type {const} */ ([
345
341
  POST_chatapp_registration_mailing_Organizer,
346
342
  POST_chatapp_registration_mailing_Admin,
343
+ POST_theme_Organizer,
347
344
  POST_theme_Admin,
345
+ POST_theme_cover_Organizer,
348
346
  POST_theme_cover_Admin,
349
347
  POST_venues_city_search_Organizer,
350
348
  POST_venues_city_search_Admin,
@@ -455,13 +453,12 @@ export const Schemas = Object.freeze(
455
453
  POST_registration_Organizer,
456
454
  POST_registration_Admin,
457
455
  POST_registration_Unknown,
458
- POST_registration_mailing_Organizer,
459
- POST_registration_mailing_Admin,
460
456
  POST_roles_search_Admin,
461
457
  POST_users_role_search_Admin,
462
458
  POST_users_cities_search_Admin,
463
459
  POST_users_search_Admin,
464
460
  POST_users_password_search_Admin,
461
+ PATCH_theme_Organizer,
465
462
  PATCH_theme_Admin,
466
463
  PATCH_venues_Organizer,
467
464
  PATCH_venues_Admin,
@@ -497,11 +494,8 @@ export const Schemas = Object.freeze(
497
494
  PATCH_registration_Organizer,
498
495
  PATCH_registration_Admin,
499
496
  PATCH_registration_channel_Service,
500
- PATCH_registration_channel_Organizer,
501
- PATCH_registration_channel_Admin,
502
497
  PATCH_registration_channel_Unknown,
503
498
  PATCH_registration_Unknown,
504
- PATCH_registration_mailing_status_Service,
505
499
  PATCH_registration_status_Service,
506
500
  PATCH_registration_status_Organizer,
507
501
  PATCH_registration_status_Admin,
@@ -517,7 +511,9 @@ export const ContractSchema = Object.freeze(
517
511
  /** @type {const} */ ({
518
512
  'POST/chatapp/registration/mailing/Organizer': POST_chatapp_registration_mailing_Organizer,
519
513
  'POST/chatapp/registration/mailing/Admin': POST_chatapp_registration_mailing_Admin,
514
+ 'POST/theme/Organizer': POST_theme_Organizer,
520
515
  'POST/theme/Admin': POST_theme_Admin,
516
+ 'POST/theme/cover/Organizer': POST_theme_cover_Organizer,
521
517
  'POST/theme/cover/Admin': POST_theme_cover_Admin,
522
518
  'POST/venues/city/search/Organizer': POST_venues_city_search_Organizer,
523
519
  'POST/venues/city/search/Admin': POST_venues_city_search_Admin,
@@ -628,13 +624,12 @@ export const ContractSchema = Object.freeze(
628
624
  'POST/registration/Organizer': POST_registration_Organizer,
629
625
  'POST/registration/Admin': POST_registration_Admin,
630
626
  '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
627
  'POST/roles/search/Admin': POST_roles_search_Admin,
634
628
  'POST/users/role/search/Admin': POST_users_role_search_Admin,
635
629
  'POST/users/cities/search/Admin': POST_users_cities_search_Admin,
636
630
  'POST/users/search/Admin': POST_users_search_Admin,
637
631
  'POST/users/password/search/Admin': POST_users_password_search_Admin,
632
+ 'PATCH/theme/Organizer': PATCH_theme_Organizer,
638
633
  'PATCH/theme/Admin': PATCH_theme_Admin,
639
634
  'PATCH/venues/Organizer': PATCH_venues_Organizer,
640
635
  'PATCH/venues/Admin': PATCH_venues_Admin,
@@ -670,11 +665,8 @@ export const ContractSchema = Object.freeze(
670
665
  'PATCH/registration/Organizer': PATCH_registration_Organizer,
671
666
  'PATCH/registration/Admin': PATCH_registration_Admin,
672
667
  '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
668
  'PATCH/registration/channel/Unknown': PATCH_registration_channel_Unknown,
676
669
  'PATCH/registration/Unknown': PATCH_registration_Unknown,
677
- 'PATCH/registration/mailing/status/Service': PATCH_registration_mailing_status_Service,
678
670
  'PATCH/registration/status/Service': PATCH_registration_status_Service,
679
671
  'PATCH/registration/status/Organizer': PATCH_registration_status_Organizer,
680
672
  '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
- }