@shakerquiz/contracts 0.0.140 → 0.0.142

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.140",
4
+ "version": "0.0.142",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "country": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "required": [
21
+ "city",
22
+ "country"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "country": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "required": [
21
+ "city",
22
+ "country"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "country": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "required": [
21
+ "city",
22
+ "country"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "currency": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "required": [
21
+ "city",
22
+ "currency"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "currency": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "required": [
21
+ "city",
22
+ "currency"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "currency": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "required": [
21
+ "city",
22
+ "currency"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -8,26 +8,10 @@
8
8
  "type": "string"
9
9
  },
10
10
  "uniqueItems": true
11
- },
12
- "game": {
13
- "type": "array",
14
- "items": {
15
- "type": "string"
16
- },
17
- "uniqueItems": true
18
- },
19
- "registration": {
20
- "type": "array",
21
- "items": {
22
- "type": "string"
23
- },
24
- "uniqueItems": true
25
11
  }
26
12
  },
27
13
  "required": [
28
- "city",
29
- "game",
30
- "registration"
14
+ "city"
31
15
  ],
32
16
  "additionalProperties": false
33
17
  }
@@ -2,14 +2,6 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "user": {
6
- "type": "array",
7
- "items": {
8
- "type": "string",
9
- "format": "uuid"
10
- },
11
- "uniqueItems": true
12
- },
13
5
  "city": {
14
6
  "type": "array",
15
7
  "items": {
@@ -19,7 +11,6 @@
19
11
  }
20
12
  },
21
13
  "required": [
22
- "user",
23
14
  "city"
24
15
  ],
25
16
  "additionalProperties": false
@@ -2,14 +2,6 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
- "user": {
6
- "type": "array",
7
- "items": {
8
- "type": "string",
9
- "format": "uuid"
10
- },
11
- "uniqueItems": true
12
- },
13
5
  "city": {
14
6
  "type": "array",
15
7
  "items": {
@@ -19,7 +11,6 @@
19
11
  }
20
12
  },
21
13
  "required": [
22
- "user",
23
14
  "city"
24
15
  ],
25
16
  "additionalProperties": false
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "timezone": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "required": [
21
+ "city",
22
+ "timezone"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "timezone": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "required": [
21
+ "city",
22
+ "timezone"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "timezone": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "uniqueItems": true
18
+ }
19
+ },
20
+ "required": [
21
+ "city",
22
+ "timezone"
23
+ ],
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "venue": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "format": "uuid"
17
+ },
18
+ "uniqueItems": true
19
+ }
20
+ },
21
+ "required": [
22
+ "city",
23
+ "venue"
24
+ ],
25
+ "additionalProperties": false
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "venue": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "format": "uuid"
17
+ },
18
+ "uniqueItems": true
19
+ }
20
+ },
21
+ "required": [
22
+ "city",
23
+ "venue"
24
+ ],
25
+ "additionalProperties": false
26
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "city": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ },
10
+ "uniqueItems": true
11
+ },
12
+ "venue": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "format": "uuid"
17
+ },
18
+ "uniqueItems": true
19
+ }
20
+ },
21
+ "required": [
22
+ "city",
23
+ "venue"
24
+ ],
25
+ "additionalProperties": false
26
+ }
@@ -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
@@ -4,9 +4,21 @@ import POST_theme_admin from './contracts/POST/theme/admin.json' with { type: 'j
4
4
  import POST_venues_search_Unknown from './contracts/POST/venues/search/Unknown.json' with { type: 'json' }
5
5
  import POST_themes_search_Unknown from './contracts/POST/themes/search/Unknown.json' with { type: 'json' }
6
6
  import POST_checkin_Unknown from './contracts/POST/checkin/Unknown.json' with { type: 'json' }
7
+ import POST_cities_venues_search_Unknown from './contracts/POST/cities/venues/search/Unknown.json' with { type: 'json' }
8
+ import POST_cities_venues_search_admin from './contracts/POST/cities/venues/search/admin.json' with { type: 'json' }
9
+ import POST_cities_venues_search_organizer from './contracts/POST/cities/venues/search/organizer.json' with { type: 'json' }
7
10
  import POST_cities_search_Unknown from './contracts/POST/cities/search/Unknown.json' with { type: 'json' }
8
11
  import POST_cities_search_admin from './contracts/POST/cities/search/admin.json' with { type: 'json' }
9
12
  import POST_cities_search_organizer from './contracts/POST/cities/search/organizer.json' with { type: 'json' }
13
+ import POST_cities_timezone_search_Unknown from './contracts/POST/cities/timezone/search/Unknown.json' with { type: 'json' }
14
+ import POST_cities_timezone_search_admin from './contracts/POST/cities/timezone/search/admin.json' with { type: 'json' }
15
+ import POST_cities_timezone_search_organizer from './contracts/POST/cities/timezone/search/organizer.json' with { type: 'json' }
16
+ import POST_cities_currency_search_Unknown from './contracts/POST/cities/currency/search/Unknown.json' with { type: 'json' }
17
+ import POST_cities_currency_search_admin from './contracts/POST/cities/currency/search/admin.json' with { type: 'json' }
18
+ import POST_cities_currency_search_organizer from './contracts/POST/cities/currency/search/organizer.json' with { type: 'json' }
19
+ import POST_cities_country_search_Unknown from './contracts/POST/cities/country/search/Unknown.json' with { type: 'json' }
20
+ import POST_cities_country_search_admin from './contracts/POST/cities/country/search/admin.json' with { type: 'json' }
21
+ import POST_cities_country_search_organizer from './contracts/POST/cities/country/search/organizer.json' with { type: 'json' }
10
22
  import POST_user_role_admin from './contracts/POST/user/role/admin.json' with { type: 'json' }
11
23
  import POST_user_city_admin from './contracts/POST/user/city/admin.json' with { type: 'json' }
12
24
  import POST_user_password_admin from './contracts/POST/user/password/admin.json' with { type: 'json' }
@@ -26,7 +38,10 @@ import POST_registration_mailing_organizer from './contracts/POST/registration/m
26
38
  import POST_registration_admin from './contracts/POST/registration/admin.json' with { type: 'json' }
27
39
  import POST_registration_organizer from './contracts/POST/registration/organizer.json' with { type: 'json' }
28
40
  import POST_roles_search_admin from './contracts/POST/roles/search/admin.json' with { type: 'json' }
41
+ import POST_users_role_search_admin from './contracts/POST/users/role/search/admin.json' with { type: 'json' }
42
+ import POST_users_cities_search_admin from './contracts/POST/users/cities/search/admin.json' with { type: 'json' }
29
43
  import POST_users_search_admin from './contracts/POST/users/search/admin.json' with { type: 'json' }
44
+ import POST_users_password_search_admin from './contracts/POST/users/password/search/admin.json' with { type: 'json' }
30
45
  import PATCH_theme_admin from './contracts/PATCH/theme/admin.json' with { type: 'json' }
31
46
  import PATCH_venues_admin from './contracts/PATCH/venues/admin.json' with { type: 'json' }
32
47
  import PATCH_venues_organizer from './contracts/PATCH/venues/organizer.json' with { type: 'json' }
@@ -73,9 +88,21 @@ export const Contracts = Object.freeze(
73
88
  'POST/venues/search/Unknown',
74
89
  'POST/themes/search/Unknown',
75
90
  'POST/checkin/Unknown',
91
+ 'POST/cities/venues/search/Unknown',
92
+ 'POST/cities/venues/search/admin',
93
+ 'POST/cities/venues/search/organizer',
76
94
  'POST/cities/search/Unknown',
77
95
  'POST/cities/search/admin',
78
96
  'POST/cities/search/organizer',
97
+ 'POST/cities/timezone/search/Unknown',
98
+ 'POST/cities/timezone/search/admin',
99
+ 'POST/cities/timezone/search/organizer',
100
+ 'POST/cities/currency/search/Unknown',
101
+ 'POST/cities/currency/search/admin',
102
+ 'POST/cities/currency/search/organizer',
103
+ 'POST/cities/country/search/Unknown',
104
+ 'POST/cities/country/search/admin',
105
+ 'POST/cities/country/search/organizer',
79
106
  'POST/user/role/admin',
80
107
  'POST/user/city/admin',
81
108
  'POST/user/password/admin',
@@ -95,7 +122,10 @@ export const Contracts = Object.freeze(
95
122
  'POST/registration/admin',
96
123
  'POST/registration/organizer',
97
124
  'POST/roles/search/admin',
125
+ 'POST/users/role/search/admin',
126
+ 'POST/users/cities/search/admin',
98
127
  'POST/users/search/admin',
128
+ 'POST/users/password/search/admin',
99
129
  'PATCH/theme/admin',
100
130
  'PATCH/venues/admin',
101
131
  'PATCH/venues/organizer',
@@ -144,9 +174,21 @@ export const Schemas = Object.freeze(
144
174
  POST_venues_search_Unknown,
145
175
  POST_themes_search_Unknown,
146
176
  POST_checkin_Unknown,
177
+ POST_cities_venues_search_Unknown,
178
+ POST_cities_venues_search_admin,
179
+ POST_cities_venues_search_organizer,
147
180
  POST_cities_search_Unknown,
148
181
  POST_cities_search_admin,
149
182
  POST_cities_search_organizer,
183
+ POST_cities_timezone_search_Unknown,
184
+ POST_cities_timezone_search_admin,
185
+ POST_cities_timezone_search_organizer,
186
+ POST_cities_currency_search_Unknown,
187
+ POST_cities_currency_search_admin,
188
+ POST_cities_currency_search_organizer,
189
+ POST_cities_country_search_Unknown,
190
+ POST_cities_country_search_admin,
191
+ POST_cities_country_search_organizer,
150
192
  POST_user_role_admin,
151
193
  POST_user_city_admin,
152
194
  POST_user_password_admin,
@@ -166,7 +208,10 @@ export const Schemas = Object.freeze(
166
208
  POST_registration_admin,
167
209
  POST_registration_organizer,
168
210
  POST_roles_search_admin,
211
+ POST_users_role_search_admin,
212
+ POST_users_cities_search_admin,
169
213
  POST_users_search_admin,
214
+ POST_users_password_search_admin,
170
215
  PATCH_theme_admin,
171
216
  PATCH_venues_admin,
172
217
  PATCH_venues_organizer,
@@ -215,9 +260,21 @@ export const ContractSchema = Object.freeze(
215
260
  'POST/venues/search/Unknown': POST_venues_search_Unknown,
216
261
  'POST/themes/search/Unknown': POST_themes_search_Unknown,
217
262
  'POST/checkin/Unknown': POST_checkin_Unknown,
263
+ 'POST/cities/venues/search/Unknown': POST_cities_venues_search_Unknown,
264
+ 'POST/cities/venues/search/admin': POST_cities_venues_search_admin,
265
+ 'POST/cities/venues/search/organizer': POST_cities_venues_search_organizer,
218
266
  'POST/cities/search/Unknown': POST_cities_search_Unknown,
219
267
  'POST/cities/search/admin': POST_cities_search_admin,
220
268
  'POST/cities/search/organizer': POST_cities_search_organizer,
269
+ 'POST/cities/timezone/search/Unknown': POST_cities_timezone_search_Unknown,
270
+ 'POST/cities/timezone/search/admin': POST_cities_timezone_search_admin,
271
+ 'POST/cities/timezone/search/organizer': POST_cities_timezone_search_organizer,
272
+ 'POST/cities/currency/search/Unknown': POST_cities_currency_search_Unknown,
273
+ 'POST/cities/currency/search/admin': POST_cities_currency_search_admin,
274
+ 'POST/cities/currency/search/organizer': POST_cities_currency_search_organizer,
275
+ 'POST/cities/country/search/Unknown': POST_cities_country_search_Unknown,
276
+ 'POST/cities/country/search/admin': POST_cities_country_search_admin,
277
+ 'POST/cities/country/search/organizer': POST_cities_country_search_organizer,
221
278
  'POST/user/role/admin': POST_user_role_admin,
222
279
  'POST/user/city/admin': POST_user_city_admin,
223
280
  'POST/user/password/admin': POST_user_password_admin,
@@ -237,7 +294,10 @@ export const ContractSchema = Object.freeze(
237
294
  'POST/registration/admin': POST_registration_admin,
238
295
  'POST/registration/organizer': POST_registration_organizer,
239
296
  'POST/roles/search/admin': POST_roles_search_admin,
297
+ 'POST/users/role/search/admin': POST_users_role_search_admin,
298
+ 'POST/users/cities/search/admin': POST_users_cities_search_admin,
240
299
  'POST/users/search/admin': POST_users_search_admin,
300
+ 'POST/users/password/search/admin': POST_users_password_search_admin,
241
301
  'PATCH/theme/admin': PATCH_theme_admin,
242
302
  'PATCH/venues/admin': PATCH_venues_admin,
243
303
  'PATCH/venues/organizer': PATCH_venues_organizer,