@shakerquiz/contracts 0.0.29 → 0.0.30
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,13 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
-
"
|
|
5
|
-
"type": "
|
|
6
|
-
"
|
|
4
|
+
"role": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uuid"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": [
|
|
13
|
+
"id"
|
|
14
|
+
]
|
|
7
15
|
}
|
|
8
16
|
},
|
|
9
17
|
"required": [
|
|
10
|
-
"
|
|
18
|
+
"role"
|
|
11
19
|
],
|
|
12
20
|
"additionalProperties": false
|
|
13
21
|
}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
-
"
|
|
5
|
-
"type": "
|
|
6
|
-
"
|
|
4
|
+
"role": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uuid"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": [
|
|
13
|
+
"id"
|
|
14
|
+
]
|
|
7
15
|
}
|
|
8
16
|
},
|
|
9
17
|
"required": [
|
|
10
|
-
"
|
|
18
|
+
"role"
|
|
11
19
|
],
|
|
12
20
|
"additionalProperties": false
|
|
13
21
|
}
|
package/source/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import DELETE_city_vk_group_token_admin from './contracts/DELETE/city/vk_group_token/admin.json' with { type: 'json' }
|
|
2
2
|
import DELETE_user_cities_admin from './contracts/DELETE/user/cities/admin.json' with { type: 'json' }
|
|
3
3
|
import DELETE_user_password_admin from './contracts/DELETE/user/password/admin.json' with { type: 'json' }
|
|
4
|
-
import DELETE_user_role_admin from './contracts/DELETE/user/role/admin.json' with { type: 'json' }
|
|
5
4
|
import PATCH_city_admin from './contracts/PATCH/city/admin.json' with { type: 'json' }
|
|
6
5
|
import PATCH_city_country_admin from './contracts/PATCH/city/country/admin.json' with { type: 'json' }
|
|
7
6
|
import PATCH_city_currency_admin from './contracts/PATCH/city/currency/admin.json' with { type: 'json' }
|
|
@@ -39,7 +38,6 @@ export const Contracts = Object.freeze(
|
|
|
39
38
|
'DELETE/city/vk_group_token/admin',
|
|
40
39
|
'DELETE/user/cities/admin',
|
|
41
40
|
'DELETE/user/password/admin',
|
|
42
|
-
'DELETE/user/role/admin',
|
|
43
41
|
'PATCH/city/admin',
|
|
44
42
|
'PATCH/city/country/admin',
|
|
45
43
|
'PATCH/city/currency/admin',
|
|
@@ -79,7 +77,6 @@ export const Schemas = Object.freeze(
|
|
|
79
77
|
DELETE_city_vk_group_token_admin,
|
|
80
78
|
DELETE_user_cities_admin,
|
|
81
79
|
DELETE_user_password_admin,
|
|
82
|
-
DELETE_user_role_admin,
|
|
83
80
|
PATCH_city_admin,
|
|
84
81
|
PATCH_city_country_admin,
|
|
85
82
|
PATCH_city_currency_admin,
|
|
@@ -119,7 +116,6 @@ export const ContractSchema = Object.freeze(
|
|
|
119
116
|
'DELETE/city/vk_group_token/admin': DELETE_city_vk_group_token_admin,
|
|
120
117
|
'DELETE/user/cities/admin': DELETE_user_cities_admin,
|
|
121
118
|
'DELETE/user/password/admin': DELETE_user_password_admin,
|
|
122
|
-
'DELETE/user/role/admin': DELETE_user_role_admin,
|
|
123
119
|
'PATCH/city/admin': PATCH_city_admin,
|
|
124
120
|
'PATCH/city/country/admin': PATCH_city_country_admin,
|
|
125
121
|
'PATCH/city/currency/admin': PATCH_city_currency_admin,
|