@shakerquiz/contracts 0.0.139 → 0.0.141
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/POST/user/city/admin.json +2 -2
- package/source/contracts/POST/users/cities/search/admin.json +35 -0
- package/source/contracts/POST/users/password/search/admin.json +27 -0
- package/source/contracts/POST/users/role/search/admin.json +27 -0
- package/source/index.js +12 -0
package/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
|
-
"
|
|
5
|
+
"id": {
|
|
6
6
|
"type": "string",
|
|
7
7
|
"format": "uuid"
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"required": [
|
|
11
|
-
"
|
|
11
|
+
"id"
|
|
12
12
|
],
|
|
13
13
|
"additionalProperties": false
|
|
14
14
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"user": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uuid"
|
|
10
|
+
},
|
|
11
|
+
"uniqueItems": true
|
|
12
|
+
},
|
|
13
|
+
"role": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uuid"
|
|
18
|
+
},
|
|
19
|
+
"uniqueItems": true
|
|
20
|
+
},
|
|
21
|
+
"city": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"uniqueItems": true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"user",
|
|
31
|
+
"role",
|
|
32
|
+
"city"
|
|
33
|
+
],
|
|
34
|
+
"additionalProperties": false
|
|
35
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"user": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uuid"
|
|
10
|
+
},
|
|
11
|
+
"uniqueItems": true
|
|
12
|
+
},
|
|
13
|
+
"role": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uuid"
|
|
18
|
+
},
|
|
19
|
+
"uniqueItems": true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"user",
|
|
24
|
+
"role"
|
|
25
|
+
],
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"user": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "uuid"
|
|
10
|
+
},
|
|
11
|
+
"uniqueItems": true
|
|
12
|
+
},
|
|
13
|
+
"role": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uuid"
|
|
18
|
+
},
|
|
19
|
+
"uniqueItems": true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"user",
|
|
24
|
+
"role"
|
|
25
|
+
],
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
}
|
package/source/index.js
CHANGED
|
@@ -26,7 +26,10 @@ import POST_registration_mailing_organizer from './contracts/POST/registration/m
|
|
|
26
26
|
import POST_registration_admin from './contracts/POST/registration/admin.json' with { type: 'json' }
|
|
27
27
|
import POST_registration_organizer from './contracts/POST/registration/organizer.json' with { type: 'json' }
|
|
28
28
|
import POST_roles_search_admin from './contracts/POST/roles/search/admin.json' with { type: 'json' }
|
|
29
|
+
import POST_users_role_search_admin from './contracts/POST/users/role/search/admin.json' with { type: 'json' }
|
|
30
|
+
import POST_users_cities_search_admin from './contracts/POST/users/cities/search/admin.json' with { type: 'json' }
|
|
29
31
|
import POST_users_search_admin from './contracts/POST/users/search/admin.json' with { type: 'json' }
|
|
32
|
+
import POST_users_password_search_admin from './contracts/POST/users/password/search/admin.json' with { type: 'json' }
|
|
30
33
|
import PATCH_theme_admin from './contracts/PATCH/theme/admin.json' with { type: 'json' }
|
|
31
34
|
import PATCH_venues_admin from './contracts/PATCH/venues/admin.json' with { type: 'json' }
|
|
32
35
|
import PATCH_venues_organizer from './contracts/PATCH/venues/organizer.json' with { type: 'json' }
|
|
@@ -95,7 +98,10 @@ export const Contracts = Object.freeze(
|
|
|
95
98
|
'POST/registration/admin',
|
|
96
99
|
'POST/registration/organizer',
|
|
97
100
|
'POST/roles/search/admin',
|
|
101
|
+
'POST/users/role/search/admin',
|
|
102
|
+
'POST/users/cities/search/admin',
|
|
98
103
|
'POST/users/search/admin',
|
|
104
|
+
'POST/users/password/search/admin',
|
|
99
105
|
'PATCH/theme/admin',
|
|
100
106
|
'PATCH/venues/admin',
|
|
101
107
|
'PATCH/venues/organizer',
|
|
@@ -166,7 +172,10 @@ export const Schemas = Object.freeze(
|
|
|
166
172
|
POST_registration_admin,
|
|
167
173
|
POST_registration_organizer,
|
|
168
174
|
POST_roles_search_admin,
|
|
175
|
+
POST_users_role_search_admin,
|
|
176
|
+
POST_users_cities_search_admin,
|
|
169
177
|
POST_users_search_admin,
|
|
178
|
+
POST_users_password_search_admin,
|
|
170
179
|
PATCH_theme_admin,
|
|
171
180
|
PATCH_venues_admin,
|
|
172
181
|
PATCH_venues_organizer,
|
|
@@ -237,7 +246,10 @@ export const ContractSchema = Object.freeze(
|
|
|
237
246
|
'POST/registration/admin': POST_registration_admin,
|
|
238
247
|
'POST/registration/organizer': POST_registration_organizer,
|
|
239
248
|
'POST/roles/search/admin': POST_roles_search_admin,
|
|
249
|
+
'POST/users/role/search/admin': POST_users_role_search_admin,
|
|
250
|
+
'POST/users/cities/search/admin': POST_users_cities_search_admin,
|
|
240
251
|
'POST/users/search/admin': POST_users_search_admin,
|
|
252
|
+
'POST/users/password/search/admin': POST_users_password_search_admin,
|
|
241
253
|
'PATCH/theme/admin': PATCH_theme_admin,
|
|
242
254
|
'PATCH/venues/admin': PATCH_venues_admin,
|
|
243
255
|
'PATCH/venues/organizer': PATCH_venues_organizer,
|