@shakerquiz/utilities 4.0.10 → 4.0.12

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.
@@ -1,6 +1,7 @@
1
1
  name: Publish aquamarine
2
2
 
3
3
  on:
4
+ workflow_dispatch:
4
5
  pull_request:
5
6
  types: [ closed ]
6
7
  branches:
@@ -13,7 +14,9 @@ permissions:
13
14
  jobs:
14
15
  publish:
15
16
  runs-on: ubuntu-latest
16
- if: github.event.pull_request.merged == true
17
+ if: |
18
+ github.event_name == 'workflow_dispatch' ||
19
+ github.event.pull_request.merged == true
17
20
  steps:
18
21
  - uses: actions/checkout@v5
19
22
  with:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "4.0.10",
4
+ "version": "4.0.12",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -59,9 +59,12 @@ export const RouteCardinality = Object.freeze(
59
59
  'games/theme/cover': 'n/1',
60
60
  'games/venue': 'n/1',
61
61
  'registration': '1',
62
+ 'registration/creation': '1/1',
63
+ 'registration/confirmation': '1/1',
62
64
  'registration/cancellation': '1/1',
65
+ 'registration/allocation': '1/1',
66
+ 'registration/reservation': '1/1',
63
67
  'registration/channel': '1/1',
64
- 'registration/confirmation': '1/1',
65
68
  'registration/export': '1/1',
66
69
  'registration/city': '1/1',
67
70
  'registration/game': '1/1',
@@ -141,9 +144,12 @@ export const RoutePathname = Object.freeze(
141
144
  'games/theme/cover': 'games/theme/:theme/cover/:cover',
142
145
  'games/venue': 'games/venue/:venue',
143
146
  'registration': 'registration/:registration',
147
+ 'registration/creation': 'registration/:registration/creation',
148
+ 'registration/confirmation': 'registration/:registration/confirmation',
144
149
  'registration/cancellation': 'registration/:registration/cancellation',
150
+ 'registration/allocation': 'registration/:registration/allocation',
151
+ 'registration/reservation': 'registration/:registration/reservation',
145
152
  'registration/channel': 'registration/:registration/channel',
146
- 'registration/confirmation': 'registration/:registration/confirmation',
147
153
  'registration/export': 'registration/:registration/export',
148
154
  'registration/city': 'registration/:registration/city/:city',
149
155
  'registration/game': 'registration/:registration/game/:game',
@@ -223,9 +229,12 @@ export const PathnameRoute = Object.freeze(
223
229
  'games/theme/:theme/cover/:cover': 'games/theme/cover',
224
230
  'games/venue/:venue': 'games/venue',
225
231
  'registration/:registration': 'registration',
232
+ 'registration/:registration/creation': 'registration/creation',
233
+ 'registration/:registration/confirmation': 'registration/confirmation',
226
234
  'registration/:registration/cancellation': 'registration/cancellation',
235
+ 'registration/:registration/allocation': 'registration/allocation',
236
+ 'registration/:registration/reservation': 'registration/reservation',
227
237
  'registration/:registration/channel': 'registration/channel',
228
- 'registration/:registration/confirmation': 'registration/confirmation',
229
238
  'registration/:registration/export': 'registration/export',
230
239
  'registration/:registration/city/:city': 'registration/city',
231
240
  'registration/:registration/game/:game': 'registration/game',
@@ -400,13 +409,22 @@ export const PathnameParameters = Object.freeze(
400
409
  'registration/:registration': [
401
410
  ':registration',
402
411
  ],
412
+ 'registration/:registration/creation': [
413
+ ':registration',
414
+ ],
415
+ 'registration/:registration/confirmation': [
416
+ ':registration',
417
+ ],
403
418
  'registration/:registration/cancellation': [
404
419
  ':registration',
405
420
  ],
406
- 'registration/:registration/channel': [
421
+ 'registration/:registration/allocation': [
407
422
  ':registration',
408
423
  ],
409
- 'registration/:registration/confirmation': [
424
+ 'registration/:registration/reservation': [
425
+ ':registration',
426
+ ],
427
+ 'registration/:registration/channel': [
410
428
  ':registration',
411
429
  ],
412
430
  'registration/:registration/export': [
@@ -540,9 +558,12 @@ export const RouteBreakdown = Object.freeze(
540
558
  'games/theme/cover': 'game/theme/cover',
541
559
  'games/venue': 'game/venue',
542
560
  'registration': 'registration',
561
+ 'registration/creation': 'registration/creation',
562
+ 'registration/confirmation': 'registration/confirmation',
543
563
  'registration/cancellation': 'registration/cancellation',
564
+ 'registration/allocation': 'registration/allocation',
565
+ 'registration/reservation': 'registration/reservation',
544
566
  'registration/channel': 'registration/channel',
545
- 'registration/confirmation': 'registration/confirmation',
546
567
  'registration/export': 'registration/export',
547
568
  'registration/city': 'registration/city',
548
569
  'registration/game': 'registration/game',
@@ -622,9 +643,12 @@ export const RouteService = Object.freeze(
622
643
  'games/theme/cover': 'Games',
623
644
  'games/venue': 'Games',
624
645
  'registration': 'Registrations',
646
+ 'registration/creation': 'Registrations',
647
+ 'registration/confirmation': 'Registrations',
625
648
  'registration/cancellation': 'Registrations',
649
+ 'registration/allocation': 'Registrations',
650
+ 'registration/reservation': 'Registrations',
626
651
  'registration/channel': 'Registrations',
627
- 'registration/confirmation': 'Registrations',
628
652
  'registration/export': 'Registrations',
629
653
  'registration/city': 'Registrations',
630
654
  'registration/game': 'Registrations',
@@ -721,9 +745,12 @@ export const ServiceRoutes = Object.freeze(
721
745
  ],
722
746
  'Registrations': [
723
747
  'registration',
748
+ 'registration/creation',
749
+ 'registration/confirmation',
724
750
  'registration/cancellation',
751
+ 'registration/allocation',
752
+ 'registration/reservation',
725
753
  'registration/channel',
726
- 'registration/confirmation',
727
754
  'registration/export',
728
755
  'registration/city',
729
756
  'registration/game',
@@ -28,8 +28,11 @@ export const Keys = Object.freeze(
28
28
  'summary',
29
29
  'mailing',
30
30
  'channel',
31
+ 'creation',
31
32
  'confirmation',
32
33
  'cancellation',
34
+ 'allocation',
35
+ 'reservation',
33
36
  'telegram',
34
37
  'chatapp',
35
38
  'bitrix',
@@ -57,9 +57,12 @@ export const Routes = Object.freeze(
57
57
  'games/theme/cover',
58
58
  'games/venue',
59
59
  'registration',
60
+ 'registration/creation',
61
+ 'registration/confirmation',
60
62
  'registration/cancellation',
63
+ 'registration/allocation',
64
+ 'registration/reservation',
61
65
  'registration/channel',
62
- 'registration/confirmation',
63
66
  'registration/export',
64
67
  'registration/city',
65
68
  'registration/game',
@@ -256,6 +256,15 @@ export const Segments = Object.freeze(
256
256
  pattern: undefined,
257
257
  }),
258
258
  ),
259
+ Object.freeze(
260
+ /** @type {const} */ ({
261
+ key: Key['creation'],
262
+ cardinality: '1',
263
+ relation: undefined,
264
+ service: undefined,
265
+ pattern: undefined,
266
+ }),
267
+ ),
259
268
  Object.freeze(
260
269
  /** @type {const} */ ({
261
270
  key: Key['confirmation'],
@@ -274,6 +283,24 @@ export const Segments = Object.freeze(
274
283
  pattern: undefined,
275
284
  }),
276
285
  ),
286
+ Object.freeze(
287
+ /** @type {const} */ ({
288
+ key: Key['allocation'],
289
+ cardinality: '1',
290
+ relation: undefined,
291
+ service: undefined,
292
+ pattern: undefined,
293
+ }),
294
+ ),
295
+ Object.freeze(
296
+ /** @type {const} */ ({
297
+ key: Key['reservation'],
298
+ cardinality: '1',
299
+ relation: undefined,
300
+ service: undefined,
301
+ pattern: undefined,
302
+ }),
303
+ ),
277
304
  Object.freeze(
278
305
  /** @type {const} */ ({
279
306
  key: Key['telegram'],
@@ -1,9 +1,13 @@
1
- export const ThemeStatus = Object.freeze({
2
- 'Active': 'Active',
3
- 'Archive': 'Archive',
4
- })
1
+ export const ThemeStatuses = Object.freeze(
2
+ /** @type {const} */ ([
3
+ 'Active',
4
+ 'Archive',
5
+ ]),
6
+ )
5
7
 
6
- export const ThemeStatuses = Object.freeze([
7
- 'Active',
8
- 'Archive',
9
- ])
8
+ export const ThemeStatus = Object.freeze(
9
+ /** @type {{ [x in typeof ThemeStatuses[number]]: x }} */ (ThemeStatuses.reduce(
10
+ (o, x) => (o[x] = x, o),
11
+ {},
12
+ )),
13
+ )
@@ -1,9 +1,13 @@
1
- export const VenueAudience = Object.freeze({
2
- 'Open': 'Open',
3
- 'Adults': 'Adults',
4
- })
1
+ export const VenueAudiences = Object.freeze(
2
+ /** @type {const} */ ([
3
+ 'Open',
4
+ 'Adults',
5
+ ]),
6
+ )
5
7
 
6
- export const VenueAudiences = Object.freeze([
7
- 'Open',
8
- 'Adults',
9
- ])
8
+ export const VenueAudience = Object.freeze(
9
+ /** @type {{ [x in typeof VenueAudiences[number]]: x }} */ (VenueAudiences.reduce(
10
+ (o, x) => (o[x] = x, o),
11
+ {},
12
+ )),
13
+ )
@@ -1,9 +1,13 @@
1
- export const VenueStatus = Object.freeze({
2
- 'Active': 'Active',
3
- 'Archive': 'Archive',
4
- })
1
+ export const VenueStatuses = Object.freeze(
2
+ /** @type {const} */ ([
3
+ 'Active',
4
+ 'Archive',
5
+ ]),
6
+ )
5
7
 
6
- export const VenueStatuses = Object.freeze([
7
- 'Active',
8
- 'Archive',
9
- ])
8
+ export const VenueStatus = Object.freeze(
9
+ /** @type {{ [x in typeof VenueStatuses[number]]: x }} */ (VenueStatuses.reduce(
10
+ (o, x) => (o[x] = x, o),
11
+ {},
12
+ )),
13
+ )