@shakerquiz/utilities 0.5.221 → 0.6.0

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.
Files changed (70) hide show
  1. package/package.json +3 -5
  2. package/source/entities/blend.js +5 -0
  3. package/source/entities/cardinality-routes.js +82 -0
  4. package/source/entities/cardinality.js +8 -0
  5. package/source/entities/category.js +4 -0
  6. package/source/entities/city-affilation.js +16 -0
  7. package/source/entities/city-chatapp-version.js +9 -0
  8. package/source/entities/game-status.js +110 -0
  9. package/source/{enumerations → entities}/gender.js +7 -0
  10. package/source/entities/icon.js +654 -0
  11. package/source/entities/method.js +22 -0
  12. package/source/entities/mode.js +14 -0
  13. package/source/entities/network.js +9 -0
  14. package/source/entities/numerosity.js +5 -0
  15. package/source/entities/phase.js +23 -0
  16. package/source/entities/quantifier.js +41 -0
  17. package/source/entities/registration-attribute.js +68 -0
  18. package/source/entities/registration-channel.js +17 -0
  19. package/source/entities/registration-lineup.js +19 -0
  20. package/source/entities/registration-mailing.js +20 -0
  21. package/source/{enumerations/registration/status.js → entities/registration-status.js} +1 -13
  22. package/source/entities/role.js +25 -0
  23. package/source/entities/route-cardinality-route.js +112 -0
  24. package/source/entities/route-cardinality.js +175 -0
  25. package/source/entities/route-pathname-params.js +12 -0
  26. package/source/entities/route-pathname.js +70 -0
  27. package/source/entities/route-service.js +65 -0
  28. package/source/entities/route.js +70 -0
  29. package/source/entities/service-routes.js +34 -0
  30. package/source/entities/service-runtime.js +22 -0
  31. package/source/entities/service.js +39 -0
  32. package/source/entities/theme-status.js +14 -0
  33. package/source/entities/venue-audience.js +14 -0
  34. package/source/entities/venue-status.js +15 -0
  35. package/source/helpers/hydrate-route-pathname.js +32 -0
  36. package/source/helpers/string-tag.js +7 -0
  37. package/source/helpers/tag.js +37 -0
  38. package/source/index.js +41 -38
  39. package/source/prototypes/reflection.js +53 -0
  40. package/source/enumerations/blend.js +0 -11
  41. package/source/enumerations/cardinality.js +0 -13
  42. package/source/enumerations/category.js +0 -9
  43. package/source/enumerations/entities/affilation.js +0 -29
  44. package/source/enumerations/entities/game-status.js +0 -122
  45. package/source/enumerations/entities/registration-attribute.js +0 -83
  46. package/source/enumerations/entities/registration-channel.js +0 -26
  47. package/source/enumerations/entities/registration-mailing.js +0 -24
  48. package/source/enumerations/entities/role.js +0 -40
  49. package/source/enumerations/entities/version.js +0 -23
  50. package/source/enumerations/icon.js +0 -655
  51. package/source/enumerations/method.js +0 -31
  52. package/source/enumerations/mode.js +0 -48
  53. package/source/enumerations/network.js +0 -9
  54. package/source/enumerations/numerosity.js +0 -5
  55. package/source/enumerations/phase.js +0 -31
  56. package/source/enumerations/quantifier.js +0 -87
  57. package/source/enumerations/registration/lineup.js +0 -33
  58. package/source/enumerations/route.js +0 -515
  59. package/source/enumerations/service.js +0 -62
  60. package/source/enumerations/theme/status.js +0 -27
  61. package/source/enumerations/venue/audience.js +0 -27
  62. package/source/enumerations/venue/status.js +0 -27
  63. package/source/functions/hydrate-route-params.js +0 -18
  64. package/source/functions/hydrate-route-pathname.js +0 -26
  65. package/source/functions/key.js +0 -37
  66. package/source/functions/string-tag.js +0 -5
  67. /package/source/{enumerations → entities}/constants.js +0 -0
  68. /package/source/{enumerations → entities}/display.js +0 -0
  69. /package/source/{enumerations → entities}/pattern.js +0 -0
  70. /package/source/{enumerations → entities}/runtime.js +0 -0
@@ -1,48 +0,0 @@
1
- import { Gender } from './gender.js'
2
- import { Numerosity } from './numerosity.js'
3
-
4
- export const Mode = Object.freeze({
5
- 'Known': 'Known',
6
- 'Unknown': 'Unknown',
7
- })
8
-
9
- export const Modes = Object.freeze([
10
- Mode['Known'],
11
- Mode['Unknown'],
12
- ])
13
-
14
- export const ModeIcon = Object.freeze({
15
- [Mode['Known']]: 'hero/outline/check',
16
- [Mode['Unknown']]: 'hero/outline/no-symbol',
17
- })
18
-
19
- export const ModeTitle = Object.freeze({
20
- [Numerosity['Singular']]: Object.freeze({
21
- [Gender['Masculine']]: Object.freeze({
22
- [Mode['Known']]: 'Назначен',
23
- [Mode['Unknown']]: 'Не назначен',
24
- }),
25
-
26
- [Gender['Feminine']]: Object.freeze({
27
- [Mode['Known']]: 'Назначена',
28
- [Mode['Unknown']]: 'Не назначена',
29
- }),
30
-
31
- [Gender['Neuter']]: Object.freeze({
32
- [Mode['Known']]: 'Назначено',
33
- [Mode['Unknown']]: 'Не назначено',
34
- }),
35
- }),
36
-
37
- [Numerosity['Plural']]: Object.freeze({
38
- [Gender['Indeterminate']]: Object.freeze({
39
- [Mode['Known']]: 'Назначены',
40
- [Mode['Unknown']]: 'Не назначены',
41
- }),
42
- }),
43
- })
44
-
45
- export var inferMode = Object.freeze(
46
- /** @returns {typeof Mode[keyof typeof Mode]} */
47
- x => Mode[x?.mode ?? x] ?? 'Unknown',
48
- )
@@ -1,9 +0,0 @@
1
- export const Network = Object.freeze({
2
- 'Docker': 'Docker',
3
- 'Public': 'Public',
4
- })
5
-
6
- export const inferNetwork = Object.freeze(
7
- /** @returns {keyof typeof Network | 'Unknown'} */
8
- x => Network[x] ?? 'Unknown',
9
- )
@@ -1,5 +0,0 @@
1
- export const Numerosity = Object.freeze({
2
- Singular: 'Singular',
3
- Dual: 'Dual',
4
- Plural: 'Plural',
5
- })
@@ -1,31 +0,0 @@
1
- export const Phase = Object.freeze({
2
- 'Idle': 'Idle',
3
- 'Loading': 'Loading',
4
- 'Loaded': 'Loaded',
5
- 'Aborted': 'Aborted',
6
- 'Failed': 'Failed',
7
- })
8
-
9
- export const Phases = Object.freeze([
10
- Phase['Idle'],
11
- Phase['Loading'],
12
- Phase['Loaded'],
13
- Phase['Aborted'],
14
- Phase['Failed'],
15
- ])
16
-
17
- export const PhaseTitle = Object.freeze({
18
- [Phase['Idle']]: 'Простой',
19
- [Phase['Loading']]: 'В процессе',
20
- [Phase['Loaded']]: 'Завершено',
21
- [Phase['Aborted']]: 'Оборвано',
22
- [Phase['Failed']]: 'Ошибка',
23
- })
24
-
25
- export const PhaseIcon = Object.freeze({
26
- [Phase['Idle']]: 'hero/outline/clock',
27
- [Phase['Loading']]: 'hero/outline/clock',
28
- [Phase['Loaded']]: 'hero/outline/check',
29
- [Phase['Aborted']]: 'hero/outline/signal-slash',
30
- [Phase['Failed']]: 'hero/outline/x-mark',
31
- })
@@ -1,87 +0,0 @@
1
- import { Gender } from './gender.js'
2
- import { Numerosity } from './numerosity.js'
3
-
4
- export const Quantifier = Object.freeze({
5
- 'Any': 'Any',
6
- 'None': 'None',
7
- 'Single': 'Single',
8
- 'Many': 'Many',
9
- 'All': 'All',
10
- })
11
-
12
- export const Quantifiers = Object.freeze([
13
- Quantifier['Any'],
14
- Quantifier['None'],
15
- Quantifier['Single'],
16
- Quantifier['Many'],
17
- Quantifier['All'],
18
- ])
19
-
20
- export const QuantifierQuantifiers = Object.freeze({
21
- [Quantifier['Any']]: Object.freeze([
22
- Quantifier['Any'],
23
- Quantifier['None'],
24
- Quantifier['Single'],
25
- Quantifier['Many'],
26
- Quantifier['All'],
27
- ]),
28
-
29
- [Quantifier['None']]: Object.freeze([
30
- Quantifier['None'],
31
- ]),
32
-
33
- [Quantifier['Single']]: Object.freeze([
34
- Quantifier['Single'],
35
- ]),
36
-
37
- [Quantifier['Many']]: Object.freeze([
38
- Quantifier['Many'],
39
- ]),
40
-
41
- [Quantifier['All']]: Object.freeze([
42
- Quantifier['All'],
43
- ]),
44
- })
45
-
46
- export const QuantifierTitle = Object.freeze({
47
- [Numerosity['Singular']]: Object.freeze({
48
- [Gender['Masculine']]: Object.freeze({
49
- [Quantifier['Any']]: 'Любой',
50
- [Quantifier['None']]: 'Нет',
51
- [Quantifier['Single']]: 'Один',
52
- [Quantifier['Many']]: 'Много',
53
- [Quantifier['All']]: 'Все',
54
- }),
55
-
56
- [Gender['Feminine']]: Object.freeze({
57
- [Quantifier['Any']]: 'Любая',
58
- [Quantifier['None']]: 'Нет',
59
- [Quantifier['Single']]: 'Одна',
60
- [Quantifier['Many']]: 'Много',
61
- [Quantifier['All']]: 'Все',
62
- }),
63
-
64
- [Gender['Neuter']]: Object.freeze({
65
- [Quantifier['Any']]: 'Любое',
66
- [Quantifier['None']]: 'Нет',
67
- [Quantifier['Single']]: 'Одно',
68
- [Quantifier['Many']]: 'Много',
69
- [Quantifier['All']]: 'Все',
70
- }),
71
- }),
72
-
73
- [Numerosity['Plural']]: Object.freeze({
74
- [Gender['Indeterminate']]: Object.freeze({
75
- [Quantifier['Any']]: 'Любые',
76
- [Quantifier['None']]: 'Нет',
77
- [Quantifier['Single']]: 'Один',
78
- [Quantifier['Many']]: 'Много',
79
- [Quantifier['All']]: 'Все',
80
- }),
81
- }),
82
- })
83
-
84
- export const inferQuantifier = Object.freeze(
85
- /** @returns {typeof Quantifier[keyof typeof Quantifier]} */
86
- x => Quantifier[x?.quantifier ?? x] ?? Quantifier['None'],
87
- )
@@ -1,33 +0,0 @@
1
- export const RegistrationLineup = Object.freeze({
2
- 'Main': 'Main',
3
- 'Reserve': 'Reserve',
4
- })
5
-
6
- /** @satisfies {Array<keyof typeof RegistrationLineup>} */
7
- export const RegistrationLineups = Object.freeze([
8
- 'Main',
9
- 'Reserve',
10
- ])
11
-
12
- /** @satisfies {Record<keyof typeof RegistrationLineup, string>} */
13
- export const RegistrationLineupTitle = Object.freeze({
14
- 'Main': 'Основа',
15
- 'Reserve': 'Резерв',
16
- })
17
-
18
- /** @satisfies {Record<keyof typeof RegistrationLineup, string>} */
19
- export const RegistrationLineupIcon = Object.freeze({
20
- 'Main': 'hero/outline/user-circle',
21
- 'Reserve': 'hero/outline/pause-circle',
22
- })
23
-
24
- /** @satisfies {Record<keyof typeof RegistrationLineup, string>} */
25
- export const RegistrationLineupEmoji = Object.freeze({
26
- 'Main': '🟢',
27
- 'Reserve': '🟡',
28
- })
29
-
30
- export const inferRegistrationLineup = Object.freeze(
31
- /** @returns {keyof typeof RegistrationLineup | 'Unknown'} */
32
- x => RegistrationLineup[x?.lineup ?? x] ?? 'Unknown',
33
- )