@shakerquiz/utilities 0.5.59 → 0.5.61

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/utilities",
4
- "version": "0.5.59",
4
+ "version": "0.5.61",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -50,6 +50,9 @@ export var Route = /** @type {const} */ ({
50
50
  'city/venues': 'city/venues',
51
51
 
52
52
  'cities': 'cities',
53
+ 'cities/country': 'cities/country',
54
+ 'cities/currency': 'cities/currency',
55
+ 'cities/timezone': 'cities/timezone',
53
56
 
54
57
  'venue': 'venue',
55
58
  'venue/city': 'venue/city',
@@ -125,6 +128,9 @@ export var RoutePathname = /** @type {const} */ ({
125
128
  [Route['city/venues']]: 'city/:city/venues',
126
129
 
127
130
  [Route['cities']]: 'cities',
131
+ [Route['cities/country']]: 'cities/country',
132
+ [Route['cities/currency']]: 'cities/currency',
133
+ [Route['cities/timezone']]: 'cities/timezone',
128
134
 
129
135
  [Route['venue']]: 'venue/:venue',
130
136
  [Route['venues/city']]: 'venues/city',
@@ -200,6 +206,9 @@ export var RouteParams = /** @type {const} */ ({
200
206
  [Route['city/venues']]: [':city'],
201
207
 
202
208
  [Route['cities']]: [],
209
+ [Route['cities/country']]: [],
210
+ [Route['cities/currency']]: [],
211
+ [Route['cities/timezone']]: [],
203
212
 
204
213
  [Route['venue']]: [':venue'],
205
214
  [Route['venue/city']]: [':venue'],
@@ -273,6 +282,9 @@ export var RouteService = {
273
282
  [Route['city/venues']]: Service.Cities,
274
283
 
275
284
  [Route['cities']]: Service.Cities,
285
+ [Route['cities/country']]: Service.Cities,
286
+ [Route['cities/currency']]: Service.Cities,
287
+ [Route['cities/timezone']]: Service.Cities,
276
288
 
277
289
  [Route['venue']]: Service.Venues,
278
290
  [Route['venue/city']]: Service.Venues,
@@ -347,6 +359,9 @@ export var ServiceRoutes = {
347
359
  Route['city/timezone'],
348
360
  Route['city/venues'],
349
361
  Route['cities'],
362
+ Route['cities/country'],
363
+ Route['cities/currency'],
364
+ Route['cities/timezone'],
350
365
  ],
351
366
 
352
367
  [Service.Venues]: [
@@ -1,256 +1,126 @@
1
1
  {
2
2
  "type": "object",
3
3
  "properties": {
4
- "name": {
5
- "type": "string"
6
- },
7
- "country": {
8
- "type": "string",
9
- "enum": [
10
- "RU",
11
- "KZ",
12
- "ME",
13
- "BY",
14
- "GE",
15
- "US",
16
- "PL",
17
- "MD",
18
- "TR",
19
- "UZ",
20
- "AE",
21
- "AM"
22
- ]
23
- },
24
- "currency": {
25
- "type": "string",
26
- "enum": [
27
- "AED",
28
- "AFN",
29
- "ALL",
30
- "AMD",
31
- "ANG",
32
- "AOA",
33
- "ARS",
34
- "AUD",
35
- "AWG",
36
- "AZN",
37
- "BAM",
38
- "BBD",
39
- "BDT",
40
- "BGN",
41
- "BHD",
42
- "BIF",
43
- "BMD",
44
- "BND",
45
- "BOB",
46
- "BRL",
47
- "BSD",
48
- "BTN",
49
- "BWP",
50
- "BYN",
51
- "BZD",
52
- "CAD",
53
- "CDF",
54
- "CHF",
55
- "CLP",
56
- "CNY",
57
- "COP",
58
- "CRC",
59
- "CUC",
60
- "CUP",
61
- "CVE",
62
- "CZK",
63
- "DJF",
64
- "DKK",
65
- "DOP",
66
- "DZD",
67
- "EGP",
68
- "ERN",
69
- "ETB",
70
- "EUR",
71
- "FJD",
72
- "FKP",
73
- "GBP",
74
- "GEL",
75
- "GHS",
76
- "GIP",
77
- "GMD",
78
- "GNF",
79
- "GTQ",
80
- "GYD",
81
- "HKD",
82
- "HNL",
83
- "HRK",
84
- "HTG",
85
- "HUF",
86
- "IDR",
87
- "ILS",
88
- "INR",
89
- "IQD",
90
- "IRR",
91
- "ISK",
92
- "JMD",
93
- "JOD",
94
- "JPY",
95
- "KES",
96
- "KGS",
97
- "KHR",
98
- "KMF",
99
- "KPW",
100
- "KRW",
101
- "KWD",
102
- "KYD",
103
- "KZT",
104
- "LAK",
105
- "LBP",
106
- "LKR",
107
- "LRD",
108
- "LSL",
109
- "LYD",
110
- "MAD",
111
- "MDL",
112
- "MGA",
113
- "MKD",
114
- "MMK",
115
- "MNT",
116
- "MOP",
117
- "MRU",
118
- "MUR",
119
- "MVR",
120
- "MWK",
121
- "MXN",
122
- "MYR",
123
- "MZN",
124
- "NAD",
125
- "NGN",
126
- "NIO",
127
- "NOK",
128
- "NPR",
129
- "NZD",
130
- "OMR",
131
- "PAB",
132
- "PEN",
133
- "PGK",
134
- "PHP",
135
- "PKR",
136
- "PLN",
137
- "PYG",
138
- "QAR",
139
- "RON",
140
- "RSD",
141
- "RUB",
142
- "RWF",
143
- "SAR",
144
- "SBD",
145
- "SCR",
146
- "SDG",
147
- "SEK",
148
- "SGD",
149
- "SHP",
150
- "SLL",
151
- "SOS",
152
- "SRD",
153
- "SSP",
154
- "STN",
155
- "SVC",
156
- "SYP",
157
- "SZL",
158
- "THB",
159
- "TJS",
160
- "TMT",
161
- "TND",
162
- "TOP",
163
- "TRY",
164
- "TTD",
165
- "TWD",
166
- "TZS",
167
- "UAH",
168
- "UGX",
169
- "USD",
170
- "UYU",
171
- "UZS",
172
- "VES",
173
- "VND",
174
- "VUV",
175
- "WST",
176
- "XAF",
177
- "XCD",
178
- "XDR",
179
- "XOF",
180
- "XPF",
181
- "XSU",
182
- "YER",
183
- "ZAR",
184
- "ZMW",
185
- "ZWL"
186
- ]
187
- },
188
4
  "price": {
189
- "type": "number"
5
+ "type": [
6
+ "number",
7
+ "null"
8
+ ]
190
9
  },
191
10
  "game_time": {
192
- "type": "string",
11
+ "type": [
12
+ "string",
13
+ "null"
14
+ ],
193
15
  "format": "iso-time"
194
16
  },
195
17
  "vk_link": {
196
- "type": "string"
18
+ "type": [
19
+ "string",
20
+ "null"
21
+ ]
197
22
  },
198
23
  "tg_link": {
199
- "type": "string"
24
+ "type": [
25
+ "string",
26
+ "null"
27
+ ]
200
28
  },
201
29
  "inst_link": {
202
- "type": "string"
203
- },
204
- "is_franshise": {
205
- "type": "boolean"
30
+ "type": [
31
+ "string",
32
+ "null"
33
+ ]
206
34
  },
207
35
  "min_members_count": {
208
- "type": "number"
36
+ "type": [
37
+ "number",
38
+ "null"
39
+ ]
209
40
  },
210
41
  "max_members_count": {
211
- "type": "number"
42
+ "type": [
43
+ "number",
44
+ "null"
45
+ ]
212
46
  },
213
47
  "custom_script": {
214
- "type": "string"
48
+ "type": [
49
+ "string",
50
+ "null"
51
+ ]
215
52
  },
216
53
  "custom_html": {
217
- "type": "string"
218
- },
219
- "alias": {
220
- "type": "string"
54
+ "type": [
55
+ "string",
56
+ "null"
57
+ ]
221
58
  },
222
59
  "vk_group_id": {
223
- "type": "string"
60
+ "type": [
61
+ "string",
62
+ "null"
63
+ ]
224
64
  },
225
65
  "chatapp_line": {
226
- "type": "string"
66
+ "type": [
67
+ "string",
68
+ "null"
69
+ ]
227
70
  },
228
71
  "chatapp_user": {
229
- "type": "string"
72
+ "type": [
73
+ "string",
74
+ "null"
75
+ ]
230
76
  },
231
77
  "chatapp_tag": {
232
- "type": "string"
78
+ "type": [
79
+ "string",
80
+ "null"
81
+ ]
233
82
  },
234
83
  "chatapp_category": {
235
- "type": "string"
84
+ "type": [
85
+ "string",
86
+ "null"
87
+ ]
236
88
  },
237
89
  "telegram_chat_id": {
238
- "type": "string"
90
+ "type": [
91
+ "string",
92
+ "null"
93
+ ]
239
94
  },
240
95
  "yandex_metrica": {
241
- "type": "string"
96
+ "type": [
97
+ "string",
98
+ "null"
99
+ ]
242
100
  },
243
101
  "chatapp_legacy": {
244
- "type": "string"
102
+ "type": [
103
+ "string",
104
+ "null"
105
+ ]
245
106
  },
246
107
  "phone": {
247
- "type": "string"
108
+ "type": [
109
+ "string",
110
+ "null"
111
+ ]
248
112
  },
249
113
  "email": {
250
- "type": "string"
114
+ "type": [
115
+ "string",
116
+ "null"
117
+ ]
251
118
  },
252
119
  "address": {
253
- "type": "string"
120
+ "type": [
121
+ "string",
122
+ "null"
123
+ ]
254
124
  },
255
125
  "timezone_name": {
256
126
  "type": "string",
@@ -4,6 +4,9 @@
4
4
  "name": {
5
5
  "type": "string"
6
6
  },
7
+ "alias": {
8
+ "type": "string"
9
+ },
7
10
  "country": {
8
11
  "type": "string",
9
12
  "enum": [
@@ -185,9 +188,6 @@
185
188
  "ZWL"
186
189
  ]
187
190
  },
188
- "alias": {
189
- "type": "string"
190
- },
191
191
  "is_franshise": {
192
192
  "type": "boolean"
193
193
  },