@shakerquiz/contracts 0.0.141 → 0.0.143

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.141",
4
+ "version": "0.0.143",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -0,0 +1,17 @@
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
+ },
13
+ "required": [
14
+ "city"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -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,17 @@
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
+ },
13
+ "required": [
14
+ "city"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -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,17 @@
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
+ },
13
+ "required": [
14
+ "city"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -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,17 @@
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
+ },
13
+ "required": [
14
+ "city"
15
+ ],
16
+ "additionalProperties": false
17
+ }
@@ -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
+ }
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' }
@@ -76,9 +88,21 @@ export const Contracts = Object.freeze(
76
88
  'POST/venues/search/Unknown',
77
89
  'POST/themes/search/Unknown',
78
90
  'POST/checkin/Unknown',
91
+ 'POST/cities/venues/search/Unknown',
92
+ 'POST/cities/venues/search/admin',
93
+ 'POST/cities/venues/search/organizer',
79
94
  'POST/cities/search/Unknown',
80
95
  'POST/cities/search/admin',
81
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',
82
106
  'POST/user/role/admin',
83
107
  'POST/user/city/admin',
84
108
  'POST/user/password/admin',
@@ -150,9 +174,21 @@ export const Schemas = Object.freeze(
150
174
  POST_venues_search_Unknown,
151
175
  POST_themes_search_Unknown,
152
176
  POST_checkin_Unknown,
177
+ POST_cities_venues_search_Unknown,
178
+ POST_cities_venues_search_admin,
179
+ POST_cities_venues_search_organizer,
153
180
  POST_cities_search_Unknown,
154
181
  POST_cities_search_admin,
155
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,
156
192
  POST_user_role_admin,
157
193
  POST_user_city_admin,
158
194
  POST_user_password_admin,
@@ -224,9 +260,21 @@ export const ContractSchema = Object.freeze(
224
260
  'POST/venues/search/Unknown': POST_venues_search_Unknown,
225
261
  'POST/themes/search/Unknown': POST_themes_search_Unknown,
226
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,
227
266
  'POST/cities/search/Unknown': POST_cities_search_Unknown,
228
267
  'POST/cities/search/admin': POST_cities_search_admin,
229
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,
230
278
  'POST/user/role/admin': POST_user_role_admin,
231
279
  'POST/user/city/admin': POST_user_city_admin,
232
280
  'POST/user/password/admin': POST_user_password_admin,