@shakerquiz/contracts 0.0.28 → 0.0.29
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,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"type": "array",
|
|
3
3
|
"items": {
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
6
10
|
"location_id": {
|
|
7
11
|
"type": "string",
|
|
8
12
|
"format": "uuid"
|
|
@@ -27,7 +31,9 @@
|
|
|
27
31
|
"type": "string"
|
|
28
32
|
}
|
|
29
33
|
},
|
|
30
|
-
"required": [
|
|
34
|
+
"required": [
|
|
35
|
+
"id"
|
|
36
|
+
],
|
|
31
37
|
"additionalProperties": false
|
|
32
38
|
},
|
|
33
39
|
"uniqueItems": true
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "array",
|
|
3
|
+
"items": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"format": "uuid"
|
|
9
|
+
},
|
|
10
|
+
"status": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"Active",
|
|
14
|
+
"Archive"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"id"
|
|
20
|
+
],
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
},
|
|
23
|
+
"uniqueItems": true
|
|
24
|
+
}
|
package/source/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import PATCH_registration_admin from './contracts/PATCH/registration/admin.json'
|
|
|
13
13
|
import PATCH_registration_Unknown from './contracts/PATCH/registration/Unknown.json' with { type: 'json' }
|
|
14
14
|
import PATCH_registration_channel_Unknown from './contracts/PATCH/registration/channel/Unknown.json' with { type: 'json' }
|
|
15
15
|
import PATCH_theme_admin from './contracts/PATCH/theme/admin.json' with { type: 'json' }
|
|
16
|
+
import PATCH_themes_admin from './contracts/PATCH/themes/admin.json' with { type: 'json' }
|
|
16
17
|
import PATCH_user_admin from './contracts/PATCH/user/admin.json' with { type: 'json' }
|
|
17
18
|
import PATCH_user_password_admin from './contracts/PATCH/user/password/admin.json' with { type: 'json' }
|
|
18
19
|
import PATCH_user_role_admin from './contracts/PATCH/user/role/admin.json' with { type: 'json' }
|
|
@@ -50,6 +51,7 @@ export const Contracts = Object.freeze(
|
|
|
50
51
|
'PATCH/registration/Unknown',
|
|
51
52
|
'PATCH/registration/channel/Unknown',
|
|
52
53
|
'PATCH/theme/admin',
|
|
54
|
+
'PATCH/themes/admin',
|
|
53
55
|
'PATCH/user/admin',
|
|
54
56
|
'PATCH/user/password/admin',
|
|
55
57
|
'PATCH/user/role/admin',
|
|
@@ -89,6 +91,7 @@ export const Schemas = Object.freeze(
|
|
|
89
91
|
PATCH_registration_Unknown,
|
|
90
92
|
PATCH_registration_channel_Unknown,
|
|
91
93
|
PATCH_theme_admin,
|
|
94
|
+
PATCH_themes_admin,
|
|
92
95
|
PATCH_user_admin,
|
|
93
96
|
PATCH_user_password_admin,
|
|
94
97
|
PATCH_user_role_admin,
|
|
@@ -128,6 +131,7 @@ export const ContractSchema = Object.freeze(
|
|
|
128
131
|
'PATCH/registration/Unknown': PATCH_registration_Unknown,
|
|
129
132
|
'PATCH/registration/channel/Unknown': PATCH_registration_channel_Unknown,
|
|
130
133
|
'PATCH/theme/admin': PATCH_theme_admin,
|
|
134
|
+
'PATCH/themes/admin': PATCH_themes_admin,
|
|
131
135
|
'PATCH/user/admin': PATCH_user_admin,
|
|
132
136
|
'PATCH/user/password/admin': PATCH_user_password_admin,
|
|
133
137
|
'PATCH/user/role/admin': PATCH_user_role_admin,
|