@shakerquiz/utilities 0.5.164 → 0.5.165
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,8 @@
|
|
|
1
|
+
import { Kind } from './kind.js'
|
|
1
2
|
import { Numerosity } from './numerosity.js'
|
|
2
3
|
import { Service } from './service.js'
|
|
3
4
|
|
|
4
|
-
export
|
|
5
|
+
export const Route = Object.freeze({
|
|
5
6
|
'checkin': 'checkin',
|
|
6
7
|
'checkins': 'checkins',
|
|
7
8
|
'cities': 'cities',
|
|
@@ -63,7 +64,7 @@ export var Route = /** @type {const} */ ({
|
|
|
63
64
|
'venues/city': 'venues/city',
|
|
64
65
|
})
|
|
65
66
|
|
|
66
|
-
export
|
|
67
|
+
export const RouteNumerosity = Object.freeze({
|
|
67
68
|
[Route['checkin']]: Numerosity['Singular'],
|
|
68
69
|
[Route['checkins']]: Numerosity['Plural'],
|
|
69
70
|
[Route['cities']]: Numerosity['Plural'],
|
|
@@ -123,11 +124,9 @@ export var RouteNumerosity = {
|
|
|
123
124
|
[Route['venue/city']]: Numerosity['Singular'],
|
|
124
125
|
[Route['venues']]: Numerosity['Plural'],
|
|
125
126
|
[Route['venues/city']]: Numerosity['Plural'],
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export var Routes = Object.values(Route)
|
|
127
|
+
})
|
|
129
128
|
|
|
130
|
-
export
|
|
129
|
+
export const RouteRelation = Object.freeze({
|
|
131
130
|
[Route['checkin']]: Route['checkins'],
|
|
132
131
|
[Route['checkins']]: Route['checkin'],
|
|
133
132
|
[Route['cities']]: Route['city'],
|
|
@@ -181,9 +180,9 @@ export var RouteRelation = {
|
|
|
181
180
|
[Route['venue/city']]: Route['venues/city'],
|
|
182
181
|
[Route['venues']]: Route['venue'],
|
|
183
182
|
[Route['venues/city']]: Route['venue/city'],
|
|
184
|
-
}
|
|
183
|
+
})
|
|
185
184
|
|
|
186
|
-
export
|
|
185
|
+
export const RoutePathname = Object.freeze({
|
|
187
186
|
[Route['checkin']]: 'checkin',
|
|
188
187
|
[Route['checkins']]: 'checkins',
|
|
189
188
|
[Route['cities']]: 'cities',
|
|
@@ -244,9 +243,69 @@ export var RoutePathname = /** @type {const} */ ({
|
|
|
244
243
|
[Route['venues/city']]: 'venues/city',
|
|
245
244
|
})
|
|
246
245
|
|
|
247
|
-
export
|
|
246
|
+
export const RouteKind = Object.freeze({
|
|
247
|
+
[Route['checkin']]: Kind['Atomic'],
|
|
248
|
+
[Route['checkins']]: Kind['Atomic'],
|
|
249
|
+
[Route['cities']]: Kind['Atomic'],
|
|
250
|
+
[Route['cities/country']]: Kind['Composite'],
|
|
251
|
+
[Route['cities/currency']]: Kind['Composite'],
|
|
252
|
+
[Route['cities/timezone']]: Kind['Composite'],
|
|
253
|
+
[Route['cities/venues']]: Kind['Composite'],
|
|
254
|
+
[Route['city']]: Kind['Atomic'],
|
|
255
|
+
[Route['city/country']]: Kind['Composite'],
|
|
256
|
+
[Route['city/currency']]: Kind['Composite'],
|
|
257
|
+
[Route['city/timezone']]: Kind['Composite'],
|
|
258
|
+
[Route['city/venues']]: Kind['Composite'],
|
|
259
|
+
[Route['countries']]: Kind['Atomic'],
|
|
260
|
+
[Route['country']]: Kind['Atomic'],
|
|
261
|
+
[Route['currencies']]: Kind['Atomic'],
|
|
262
|
+
[Route['currency']]: Kind['Atomic'],
|
|
263
|
+
[Route['game']]: Kind['Atomic'],
|
|
264
|
+
[Route['game/city']]: Kind['Composite'],
|
|
265
|
+
[Route['game/registrations']]: Kind['Composite'],
|
|
266
|
+
[Route['game/registrations/export']]: Kind['Procedure'],
|
|
267
|
+
[Route['game/summary']]: Kind['Composite'],
|
|
268
|
+
[Route['game/theme']]: Kind['Composite'],
|
|
269
|
+
[Route['game/venue']]: Kind['Composite'],
|
|
270
|
+
[Route['games']]: Kind['Atomic'],
|
|
271
|
+
[Route['games/city']]: Kind['Composite'],
|
|
272
|
+
[Route['games/registrations']]: Kind['Composite'],
|
|
273
|
+
[Route['games/registrations/export']]: Kind['Procedure'],
|
|
274
|
+
[Route['games/summary']]: Kind['Composite'],
|
|
275
|
+
[Route['games/theme']]: Kind['Composite'],
|
|
276
|
+
[Route['games/venue']]: Kind['Composite'],
|
|
277
|
+
[Route['registration']]: Kind['Atomic'],
|
|
278
|
+
[Route['registration/cancellation']]: Kind['Composite'],
|
|
279
|
+
[Route['registration/channel']]: Kind['Composite'],
|
|
280
|
+
[Route['registration/confirmation']]: Kind['Composite'],
|
|
281
|
+
[Route['registration/export']]: Kind['Procedure'],
|
|
282
|
+
[Route['registration/game']]: Kind['Composite'],
|
|
283
|
+
[Route['registration/mailing']]: Kind['Composite'],
|
|
284
|
+
[Route['registrations']]: Kind['Atomic'],
|
|
285
|
+
[Route['registrations/export']]: Kind['Procedure'],
|
|
286
|
+
[Route['role']]: Kind['Atomic'],
|
|
287
|
+
[Route['roles']]: Kind['Atomic'],
|
|
288
|
+
[Route['theme']]: Kind['Atomic'],
|
|
289
|
+
[Route['theme/cover']]: Kind['Composite'],
|
|
290
|
+
[Route['themes']]: Kind['Atomic'],
|
|
291
|
+
[Route['themes/cover']]: Kind['Composite'],
|
|
292
|
+
[Route['timezone']]: Kind['Atomic'],
|
|
293
|
+
[Route['timezones']]: Kind['Atomic'],
|
|
294
|
+
[Route['user']]: Kind['Atomic'],
|
|
295
|
+
[Route['user/cities']]: Kind['Composite'],
|
|
296
|
+
[Route['user/password']]: Kind['Composite'],
|
|
297
|
+
[Route['user/role']]: Kind['Composite'],
|
|
298
|
+
[Route['users']]: Kind['Atomic'],
|
|
299
|
+
[Route['users/cities']]: Kind['Composite'],
|
|
300
|
+
[Route['users/password']]: Kind['Composite'],
|
|
301
|
+
[Route['users/role']]: Kind['Composite'],
|
|
302
|
+
[Route['venue']]: Kind['Atomic'],
|
|
303
|
+
[Route['venue/city']]: Kind['Composite'],
|
|
304
|
+
[Route['venues']]: Kind['Atomic'],
|
|
305
|
+
[Route['venues/city']]: Kind['Composite'],
|
|
306
|
+
})
|
|
248
307
|
|
|
249
|
-
export
|
|
308
|
+
export const RouteParams = Object.freeze({
|
|
250
309
|
[Route['checkin']]: [],
|
|
251
310
|
[Route['checkins']]: [],
|
|
252
311
|
[Route['cities']]: [],
|
|
@@ -307,7 +366,7 @@ export var RouteParams = /** @type {const} */ ({
|
|
|
307
366
|
[Route['venues/city']]: [],
|
|
308
367
|
})
|
|
309
368
|
|
|
310
|
-
export
|
|
369
|
+
export const RouteService = Object.freeze({
|
|
311
370
|
[Route['checkin']]: Service['Checkin'],
|
|
312
371
|
[Route['cities']]: Service['Cities'],
|
|
313
372
|
[Route['cities/country']]: Service['Cities'],
|
|
@@ -364,10 +423,10 @@ export var RouteService = {
|
|
|
364
423
|
[Route['venue/city']]: Service['Venues'],
|
|
365
424
|
[Route['venues']]: Service['Venues'],
|
|
366
425
|
[Route['venues/city']]: Service['Venues'],
|
|
367
|
-
}
|
|
426
|
+
})
|
|
368
427
|
|
|
369
|
-
export
|
|
370
|
-
[Service['Users']]: [
|
|
428
|
+
export const ServiceRoutes = Object.freeze({
|
|
429
|
+
[Service['Users']]: Object.freeze([
|
|
371
430
|
Route['user'],
|
|
372
431
|
Route['user/cities'],
|
|
373
432
|
Route['user/password'],
|
|
@@ -375,27 +434,27 @@ export var ServiceRoutes = {
|
|
|
375
434
|
Route['users'],
|
|
376
435
|
Route['users/cities'],
|
|
377
436
|
Route['users/role'],
|
|
378
|
-
],
|
|
437
|
+
]),
|
|
379
438
|
|
|
380
|
-
[Service['Roles']]: [
|
|
439
|
+
[Service['Roles']]: Object.freeze([
|
|
381
440
|
Route['role'],
|
|
382
441
|
Route['roles'],
|
|
383
|
-
],
|
|
442
|
+
]),
|
|
384
443
|
|
|
385
|
-
[Service['Checkin']]: [
|
|
444
|
+
[Service['Checkin']]: Object.freeze([
|
|
386
445
|
Route['checkin'],
|
|
387
|
-
],
|
|
446
|
+
]),
|
|
388
447
|
|
|
389
|
-
[Service['Locations']]: [
|
|
448
|
+
[Service['Locations']]: Object.freeze([
|
|
390
449
|
Route['countries'],
|
|
391
450
|
Route['country'],
|
|
392
451
|
Route['currencies'],
|
|
393
452
|
Route['currency'],
|
|
394
453
|
Route['timezone'],
|
|
395
454
|
Route['timezones'],
|
|
396
|
-
],
|
|
455
|
+
]),
|
|
397
456
|
|
|
398
|
-
[Service['Cities']]: [
|
|
457
|
+
[Service['Cities']]: Object.freeze([
|
|
399
458
|
Route['cities'],
|
|
400
459
|
Route['cities/country'],
|
|
401
460
|
Route['cities/currency'],
|
|
@@ -406,23 +465,23 @@ export var ServiceRoutes = {
|
|
|
406
465
|
Route['city/currency'],
|
|
407
466
|
Route['city/timezone'],
|
|
408
467
|
Route['city/venues'],
|
|
409
|
-
],
|
|
468
|
+
]),
|
|
410
469
|
|
|
411
|
-
[Service['Venues']]: [
|
|
470
|
+
[Service['Venues']]: Object.freeze([
|
|
412
471
|
Route['venue'],
|
|
413
472
|
Route['venue/city'],
|
|
414
473
|
Route['venues'],
|
|
415
474
|
Route['venues/city'],
|
|
416
|
-
],
|
|
475
|
+
]),
|
|
417
476
|
|
|
418
|
-
[Service['Themes']]: [
|
|
477
|
+
[Service['Themes']]: Object.freeze([
|
|
419
478
|
Route['theme'],
|
|
420
479
|
Route['theme/cover'],
|
|
421
480
|
Route['themes'],
|
|
422
481
|
Route['themes/cover'],
|
|
423
|
-
],
|
|
482
|
+
]),
|
|
424
483
|
|
|
425
|
-
[Service['Games']]: [
|
|
484
|
+
[Service['Games']]: Object.freeze([
|
|
426
485
|
Route['game'],
|
|
427
486
|
Route['game/city'],
|
|
428
487
|
Route['game/registrations'],
|
|
@@ -437,9 +496,9 @@ export var ServiceRoutes = {
|
|
|
437
496
|
Route['games/summary'],
|
|
438
497
|
Route['games/theme'],
|
|
439
498
|
Route['games/venue'],
|
|
440
|
-
],
|
|
499
|
+
]),
|
|
441
500
|
|
|
442
|
-
[Service['Registrations']]: [
|
|
501
|
+
[Service['Registrations']]: Object.freeze([
|
|
443
502
|
Route['registration'],
|
|
444
503
|
Route['registration/cancellation'],
|
|
445
504
|
Route['registration/channel'],
|
|
@@ -448,17 +507,17 @@ export var ServiceRoutes = {
|
|
|
448
507
|
Route['registration/mailing'],
|
|
449
508
|
Route['registrations'],
|
|
450
509
|
Route['registrations/export'],
|
|
451
|
-
],
|
|
510
|
+
]),
|
|
452
511
|
|
|
453
|
-
[Service['Procedures']]: [],
|
|
512
|
+
[Service['Procedures']]: Object.freeze([]),
|
|
454
513
|
|
|
455
|
-
[Service['Integrations']]: [],
|
|
514
|
+
[Service['Integrations']]: Object.freeze([]),
|
|
456
515
|
|
|
457
|
-
[Service['Updates']]: [],
|
|
516
|
+
[Service['Updates']]: Object.freeze([]),
|
|
458
517
|
|
|
459
|
-
[Service['Hub']]: [],
|
|
518
|
+
[Service['Hub']]: Object.freeze([]),
|
|
460
519
|
|
|
461
|
-
[Service['Landing']]: [],
|
|
520
|
+
[Service['Landing']]: Object.freeze([]),
|
|
462
521
|
|
|
463
|
-
[Service['Vkma']]: [],
|
|
464
|
-
}
|
|
522
|
+
[Service['Vkma']]: Object.freeze([]),
|
|
523
|
+
})
|