@shakerquiz/contracts 0.0.73 → 0.0.74
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 +1 -1
- package/source/contracts/PATCH/registrations/Service.json +21 -0
- package/source/contracts/PATCH/registrations/lineup/Service.json +32 -0
- package/source/contracts/PATCH/registrations/lineup/admin.json +32 -0
- package/source/contracts/PATCH/registrations/lineup/organizer.json +32 -0
- package/source/contracts/PATCH/registrations/status/Service.json +33 -0
- package/source/contracts/PATCH/registrations/status/admin.json +33 -0
- package/source/contracts/PATCH/registrations/status/organizer.json +33 -0
- package/source/index.js +28 -0
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"mailing": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"chatapp_id": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": [
|
|
18
|
+
"id"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"lineup": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"value": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"Main",
|
|
17
|
+
"Reserve"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"value"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"id",
|
|
28
|
+
"lineup"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"uniqueItems": true
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"lineup": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"value": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"Main",
|
|
17
|
+
"Reserve"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"value"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"id",
|
|
28
|
+
"lineup"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"uniqueItems": true
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"lineup": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"value": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"Main",
|
|
17
|
+
"Reserve"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"value"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"id",
|
|
28
|
+
"lineup"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"uniqueItems": true
|
|
32
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"status": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"value": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"Created",
|
|
17
|
+
"Confirmed",
|
|
18
|
+
"Cancelled"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"value"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"id",
|
|
29
|
+
"status"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"uniqueItems": true
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"status": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"value": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"Created",
|
|
17
|
+
"Confirmed",
|
|
18
|
+
"Cancelled"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"value"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"id",
|
|
29
|
+
"status"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"uniqueItems": true
|
|
33
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"status": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"value": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"Created",
|
|
17
|
+
"Confirmed",
|
|
18
|
+
"Cancelled"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"value"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"id",
|
|
29
|
+
"status"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"uniqueItems": true
|
|
33
|
+
}
|
package/source/index.js
CHANGED
|
@@ -34,6 +34,13 @@ import PATCH_registration_channel_admin from './contracts/PATCH/registration/cha
|
|
|
34
34
|
import PATCH_registration_channel_organizer from './contracts/PATCH/registration/channel/organizer.json' with { type: 'json' }
|
|
35
35
|
import PATCH_registration_channel_Service from './contracts/PATCH/registration/channel/Service.json' with { type: 'json' }
|
|
36
36
|
import PATCH_registration_channel_Unknown from './contracts/PATCH/registration/channel/Unknown.json' with { type: 'json' }
|
|
37
|
+
import PATCH_registrations_Service from './contracts/PATCH/registrations/Service.json' with { type: 'json' }
|
|
38
|
+
import PATCH_registrations_status_admin from './contracts/PATCH/registrations/status/admin.json' with { type: 'json' }
|
|
39
|
+
import PATCH_registrations_status_organizer from './contracts/PATCH/registrations/status/organizer.json' with { type: 'json' }
|
|
40
|
+
import PATCH_registrations_status_Service from './contracts/PATCH/registrations/status/Service.json' with { type: 'json' }
|
|
41
|
+
import PATCH_registrations_lineup_admin from './contracts/PATCH/registrations/lineup/admin.json' with { type: 'json' }
|
|
42
|
+
import PATCH_registrations_lineup_organizer from './contracts/PATCH/registrations/lineup/organizer.json' with { type: 'json' }
|
|
43
|
+
import PATCH_registrations_lineup_Service from './contracts/PATCH/registrations/lineup/Service.json' with { type: 'json' }
|
|
37
44
|
import POST_user_admin from './contracts/POST/user/admin.json' with { type: 'json' }
|
|
38
45
|
import POST_user_password_admin from './contracts/POST/user/password/admin.json' with { type: 'json' }
|
|
39
46
|
import POST_user_role_admin from './contracts/POST/user/role/admin.json' with { type: 'json' }
|
|
@@ -94,6 +101,13 @@ export const Contracts = Object.freeze(
|
|
|
94
101
|
'PATCH/registration/channel/organizer',
|
|
95
102
|
'PATCH/registration/channel/Service',
|
|
96
103
|
'PATCH/registration/channel/Unknown',
|
|
104
|
+
'PATCH/registrations/Service',
|
|
105
|
+
'PATCH/registrations/status/admin',
|
|
106
|
+
'PATCH/registrations/status/organizer',
|
|
107
|
+
'PATCH/registrations/status/Service',
|
|
108
|
+
'PATCH/registrations/lineup/admin',
|
|
109
|
+
'PATCH/registrations/lineup/organizer',
|
|
110
|
+
'PATCH/registrations/lineup/Service',
|
|
97
111
|
'POST/user/admin',
|
|
98
112
|
'POST/user/password/admin',
|
|
99
113
|
'POST/user/role/admin',
|
|
@@ -156,6 +170,13 @@ export const Schemas = Object.freeze(
|
|
|
156
170
|
PATCH_registration_channel_organizer,
|
|
157
171
|
PATCH_registration_channel_Service,
|
|
158
172
|
PATCH_registration_channel_Unknown,
|
|
173
|
+
PATCH_registrations_Service,
|
|
174
|
+
PATCH_registrations_status_admin,
|
|
175
|
+
PATCH_registrations_status_organizer,
|
|
176
|
+
PATCH_registrations_status_Service,
|
|
177
|
+
PATCH_registrations_lineup_admin,
|
|
178
|
+
PATCH_registrations_lineup_organizer,
|
|
179
|
+
PATCH_registrations_lineup_Service,
|
|
159
180
|
POST_user_admin,
|
|
160
181
|
POST_user_password_admin,
|
|
161
182
|
POST_user_role_admin,
|
|
@@ -218,6 +239,13 @@ export const ContractSchema = Object.freeze(
|
|
|
218
239
|
'PATCH/registration/channel/organizer': PATCH_registration_channel_organizer,
|
|
219
240
|
'PATCH/registration/channel/Service': PATCH_registration_channel_Service,
|
|
220
241
|
'PATCH/registration/channel/Unknown': PATCH_registration_channel_Unknown,
|
|
242
|
+
'PATCH/registrations/Service': PATCH_registrations_Service,
|
|
243
|
+
'PATCH/registrations/status/admin': PATCH_registrations_status_admin,
|
|
244
|
+
'PATCH/registrations/status/organizer': PATCH_registrations_status_organizer,
|
|
245
|
+
'PATCH/registrations/status/Service': PATCH_registrations_status_Service,
|
|
246
|
+
'PATCH/registrations/lineup/admin': PATCH_registrations_lineup_admin,
|
|
247
|
+
'PATCH/registrations/lineup/organizer': PATCH_registrations_lineup_organizer,
|
|
248
|
+
'PATCH/registrations/lineup/Service': PATCH_registrations_lineup_Service,
|
|
221
249
|
'POST/user/admin': POST_user_admin,
|
|
222
250
|
'POST/user/password/admin': POST_user_password_admin,
|
|
223
251
|
'POST/user/role/admin': POST_user_role_admin,
|