@shakerquiz/contracts 0.0.172 → 0.0.174

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.172",
4
+ "version": "0.0.174",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -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
+ "lineup": {
12
+ "type": "string",
13
+ "enum": [
14
+ "Main",
15
+ "Reserve"
16
+ ]
17
+ }
18
+ },
19
+ "required": [
20
+ "id",
21
+ "lineup"
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
+ "lineup": {
12
+ "type": "string",
13
+ "enum": [
14
+ "Main",
15
+ "Reserve"
16
+ ]
17
+ }
18
+ },
19
+ "required": [
20
+ "id",
21
+ "lineup"
22
+ ],
23
+ "additionalProperties": false
24
+ },
25
+ "minItems": 1
26
+ }
@@ -0,0 +1,27 @@
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
+ "additionalProperties": false
25
+ },
26
+ "minItems": 1
27
+ }
@@ -0,0 +1,27 @@
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
+ "additionalProperties": false
25
+ },
26
+ "minItems": 1
27
+ }
@@ -0,0 +1,27 @@
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
+ "additionalProperties": false
25
+ },
26
+ "minItems": 1
27
+ }
@@ -52,6 +52,9 @@
52
52
  "is_first": {
53
53
  "type": "boolean"
54
54
  },
55
+ "celebrant": {
56
+ "type": "string"
57
+ },
55
58
  "ads_from": {
56
59
  "type": "string"
57
60
  },
@@ -122,6 +125,19 @@
122
125
  "then": {
123
126
  "required": ["email"]
124
127
  }
128
+ },
129
+ {
130
+ "if": {
131
+ "properties": {
132
+ "is_birthday": { "const": true }
133
+ }
134
+ },
135
+ "then": {
136
+ "required": ["celebrant"],
137
+ "properties": {
138
+ "celebrant": { "type": "string" }
139
+ }
140
+ }
125
141
  }
126
142
  ]
127
143
  }
package/source/index.js CHANGED
@@ -21,6 +21,11 @@ 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_admin from './contracts/PATCH/registrations/lineup/admin.json' with { type: 'json' }
26
+ import PATCH_registrations_status_organizer from './contracts/PATCH/registrations/status/organizer.json' with { type: 'json' }
27
+ import PATCH_registrations_status_Service from './contracts/PATCH/registrations/status/Service.json' with { type: 'json' }
28
+ import PATCH_registrations_status_admin from './contracts/PATCH/registrations/status/admin.json' with { type: 'json' }
24
29
  import PATCH_user_password_admin from './contracts/PATCH/user/password/admin.json' with { type: 'json' }
25
30
  import PATCH_user_admin from './contracts/PATCH/user/admin.json' with { type: 'json' }
26
31
  import PATCH_user_role_admin from './contracts/PATCH/user/role/admin.json' with { type: 'json' }
@@ -174,6 +179,11 @@ export const Contracts = Object.freeze(
174
179
  'PATCH/venue/organizer',
175
180
  'PATCH/venue/admin',
176
181
  'PATCH/registrations/Service',
182
+ 'PATCH/registrations/lineup/organizer',
183
+ 'PATCH/registrations/lineup/admin',
184
+ 'PATCH/registrations/status/organizer',
185
+ 'PATCH/registrations/status/Service',
186
+ 'PATCH/registrations/status/admin',
177
187
  'PATCH/user/password/admin',
178
188
  'PATCH/user/admin',
179
189
  'PATCH/user/role/admin',
@@ -329,6 +339,11 @@ export const Schemas = Object.freeze(
329
339
  PATCH_venue_organizer,
330
340
  PATCH_venue_admin,
331
341
  PATCH_registrations_Service,
342
+ PATCH_registrations_lineup_organizer,
343
+ PATCH_registrations_lineup_admin,
344
+ PATCH_registrations_status_organizer,
345
+ PATCH_registrations_status_Service,
346
+ PATCH_registrations_status_admin,
332
347
  PATCH_user_password_admin,
333
348
  PATCH_user_admin,
334
349
  PATCH_user_role_admin,
@@ -484,6 +499,11 @@ export const ContractSchema = Object.freeze(
484
499
  'PATCH/venue/organizer': PATCH_venue_organizer,
485
500
  'PATCH/venue/admin': PATCH_venue_admin,
486
501
  'PATCH/registrations/Service': PATCH_registrations_Service,
502
+ 'PATCH/registrations/lineup/organizer': PATCH_registrations_lineup_organizer,
503
+ 'PATCH/registrations/lineup/admin': PATCH_registrations_lineup_admin,
504
+ 'PATCH/registrations/status/organizer': PATCH_registrations_status_organizer,
505
+ 'PATCH/registrations/status/Service': PATCH_registrations_status_Service,
506
+ 'PATCH/registrations/status/admin': PATCH_registrations_status_admin,
487
507
  'PATCH/user/password/admin': PATCH_user_password_admin,
488
508
  'PATCH/user/admin': PATCH_user_admin,
489
509
  'PATCH/user/role/admin': PATCH_user_role_admin,