@shakerquiz/utilities 0.6.17 → 1.0.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 (80) hide show
  1. package/dprint.json +12 -4
  2. package/jsconfig.json +6 -13
  3. package/package.json +12 -9
  4. package/source/enumerations/constants.d.ts +3 -0
  5. package/source/{entities → enumerations}/constants.js +2 -2
  6. package/source/enumerations/cookies.d.ts +5 -0
  7. package/source/enumerations/cookies.js +5 -0
  8. package/source/enumerations/features.d.ts +58 -0
  9. package/source/enumerations/features.js +49 -0
  10. package/source/enumerations/game-statuses.d.ts +39 -0
  11. package/source/enumerations/game-statuses.js +39 -0
  12. package/source/enumerations/kinds.d.ts +4 -0
  13. package/source/enumerations/kinds.js +4 -0
  14. package/source/enumerations/methods.d.ts +7 -0
  15. package/source/enumerations/methods.js +7 -0
  16. package/source/enumerations/networks.d.ts +4 -0
  17. package/source/enumerations/networks.js +4 -0
  18. package/source/enumerations/phases.d.ts +7 -0
  19. package/source/enumerations/phases.js +7 -0
  20. package/source/enumerations/regexps.d.ts +4 -0
  21. package/source/enumerations/regexps.js +6 -0
  22. package/source/enumerations/roles.d.ts +5 -0
  23. package/source/enumerations/roles.js +5 -0
  24. package/source/functions/request.d.ts +131 -0
  25. package/source/functions/request.js +202 -0
  26. package/source/globals.d.ts +14 -0
  27. package/source/index.d.ts +15 -0
  28. package/source/index.js +11 -40
  29. package/source/results.d.ts +137 -0
  30. package/source/rows.d.ts +533 -0
  31. package/.github/workflows/publish.yml +0 -31
  32. package/scripts/route-cardinality.js +0 -23
  33. package/scripts/route-parameter.js +0 -29
  34. package/scripts/route-pathname.js +0 -37
  35. package/scripts/route-relation.js +0 -26
  36. package/scripts/route-service.js +0 -25
  37. package/scripts/templates/route-cardinality.js +0 -5
  38. package/scripts/templates/route-parameter.js +0 -5
  39. package/scripts/templates/route-pathname.js +0 -7
  40. package/scripts/templates/route-relation.js +0 -5
  41. package/scripts/templates/route-service.js +0 -7
  42. package/source/entities/blend.js +0 -5
  43. package/source/entities/cardinality.js +0 -4
  44. package/source/entities/category.js +0 -4
  45. package/source/entities/city-affilation.js +0 -10
  46. package/source/entities/city-chatapp-version.js +0 -9
  47. package/source/entities/display.js +0 -4
  48. package/source/entities/game-status.js +0 -98
  49. package/source/entities/gender.js +0 -13
  50. package/source/entities/icon.js +0 -654
  51. package/source/entities/key.js +0 -41
  52. package/source/entities/method.js +0 -22
  53. package/source/entities/mode.js +0 -9
  54. package/source/entities/network.js +0 -9
  55. package/source/entities/numerosity.js +0 -5
  56. package/source/entities/pattern.js +0 -7
  57. package/source/entities/phase.js +0 -15
  58. package/source/entities/quantifier.js +0 -41
  59. package/source/entities/registration-attribute.js +0 -61
  60. package/source/entities/registration-channel.js +0 -11
  61. package/source/entities/registration-lineup.js +0 -14
  62. package/source/entities/registration-mailing.js +0 -20
  63. package/source/entities/registration-status.js +0 -19
  64. package/source/entities/role.js +0 -16
  65. package/source/entities/route-cardinality.js +0 -149
  66. package/source/entities/route-parameter.js +0 -149
  67. package/source/entities/route-pathname.js +0 -223
  68. package/source/entities/route-relation.js +0 -149
  69. package/source/entities/route-service.js +0 -179
  70. package/source/entities/route.js +0 -82
  71. package/source/entities/runtime.js +0 -6
  72. package/source/entities/segment.js +0 -255
  73. package/source/entities/service-runtime.js +0 -22
  74. package/source/entities/service.js +0 -22
  75. package/source/entities/theme-status.js +0 -9
  76. package/source/entities/venue-audience.js +0 -9
  77. package/source/entities/venue-status.js +0 -9
  78. package/source/helpers/access.js +0 -161
  79. package/source/helpers/hydrate-route-pathname.js +0 -28
  80. package/source/helpers/tag.js +0 -35
@@ -1,5 +0,0 @@
1
- /* --- AUTOGENERATED --- */
2
-
3
- export const RouteParameters = Object.freeze( /** @type {const} */ (/* RouteParameters */))
4
-
5
- export const RouteParameter = Object.freeze(/** @type {const} */ (/* RouteParameter */))
@@ -1,7 +0,0 @@
1
- /* --- AUTOGENERATED --- */
2
-
3
- export const RoutePathnames = Object.freeze( /** @type {const} */ (/* RoutePathnames */))
4
-
5
- export const RoutePathname = Object.freeze(/** @type {const} */ (/* RoutePathname */))
6
-
7
- export const PathnameRoute = Object.freeze(/** @type {const} */ (/* PathnameRoute */))
@@ -1,5 +0,0 @@
1
- /* --- AUTOGENERATED --- */
2
-
3
- export const RouteRelations = Object.freeze( /** @type {const} */ (/* RouteRelations */))
4
-
5
- export const RouteRelation = Object.freeze(/** @type {const} */ (/* RouteRelation */))
@@ -1,7 +0,0 @@
1
- /* --- AUTOGENERATED --- */
2
-
3
- export const RouteServices = Object.freeze( /** @type {const} */ (/* RouteServices */))
4
-
5
- export const RouteService = Object.freeze(/** @type {const} */ (/* RouteService */))
6
-
7
- export const ServiceRoutes = Object.freeze(/** @type {const} */ (/* ServiceRoutes */))
@@ -1,5 +0,0 @@
1
- export const Blend = Object.freeze({
2
- 'Domain': 'Domain',
3
- 'System': 'System',
4
- 'Indifferent': 'Indifferent',
5
- })
@@ -1,4 +0,0 @@
1
- export const Cardinality = Object.freeze({
2
- '1': '1',
3
- 'n': 'n',
4
- })
@@ -1,4 +0,0 @@
1
- export const Category = Object.freeze({
2
- 'Active': 'Active',
3
- 'Rest': 'Rest',
4
- })
@@ -1,10 +0,0 @@
1
- export const CityAffilation = Object.freeze({
2
- 'Branch': 'Branch',
3
- 'Franchise': 'Franchise',
4
- })
5
-
6
- /** @satisfies {Array<keyof typeof CityAffilation>} */
7
- export const CityAffilations = Object.freeze([
8
- 'Branch',
9
- 'Franchise',
10
- ])
@@ -1,9 +0,0 @@
1
- export const CityChatappVersion = Object.freeze({
2
- 'Latest': 'Latest',
3
- 'Legacy': 'Legacy',
4
- })
5
-
6
- export const CityChatappVersions = Object.freeze([
7
- 'Latest',
8
- 'Legacy',
9
- ])
@@ -1,4 +0,0 @@
1
- export const Display = Object.freeze({
2
- 'Tag': 'Tag',
3
- 'Chip': 'Chip',
4
- })
@@ -1,98 +0,0 @@
1
- import { Category } from './category.js'
2
- import { Mode } from './mode.js'
3
- import { Role } from './role.js'
4
-
5
- export const GameStatus = Object.freeze({
6
- 'REJECTED': 'REJECTED',
7
- 'MODERATION': 'MODERATION',
8
- 'APPROVED': 'APPROVED',
9
- 'CLOSED': 'CLOSED',
10
- 'FORINVITES': 'FORINVITES',
11
- 'PUBLISHED': 'PUBLISHED',
12
- 'IS_RESERVE': 'IS_RESERVE',
13
- 'FINISHED': 'FINISHED',
14
- 'ARCHIVE': 'ARCHIVE',
15
- })
16
-
17
- export const GameStatuses = Object.freeze(Object.values(GameStatus))
18
-
19
- export const RoleGameStatusGameStatuses = Object.freeze({
20
- [Role['admin']]: Object.freeze({}),
21
-
22
- [Role['organizer']]: Object.freeze({
23
- 'APPROVED': Object.freeze([
24
- 'APPROVED',
25
- 'CLOSED',
26
- 'FORINVITES',
27
- 'PUBLISHED',
28
- 'IS_RESERVE',
29
- 'FINISHED',
30
- 'ARCHIVE',
31
- ]),
32
-
33
- 'MODERATION': Object.freeze([
34
- 'MODERATION',
35
- ]),
36
-
37
- 'REJECTED': Object.freeze([
38
- 'REJECTED',
39
- 'MODERATION',
40
- ]),
41
- }),
42
-
43
- [Mode['Unknown']]: Object.freeze({}),
44
- })
45
-
46
- export const RoleGameStatuses = Object.freeze({
47
- [Role['admin']]: Object.freeze([
48
- 'APPROVED',
49
- 'ARCHIVE',
50
- 'CLOSED',
51
- 'FINISHED',
52
- 'FORINVITES',
53
- 'IS_RESERVE',
54
- 'MODERATION',
55
- 'PUBLISHED',
56
- 'REJECTED',
57
- ]),
58
-
59
- [Role['organizer']]: Object.freeze([
60
- 'ARCHIVE',
61
- 'CLOSED',
62
- 'FINISHED',
63
- 'FORINVITES',
64
- 'IS_RESERVE',
65
- 'PUBLISHED',
66
- ]),
67
-
68
- [Mode['Unknown']]: Object.freeze([]),
69
- })
70
-
71
- export const CategoryGameStatuses = Object.freeze({
72
- [Category['Active']]: Object.freeze([
73
- 'CLOSED',
74
- 'FORINVITES',
75
- 'IS_RESERVE',
76
- 'PUBLISHED',
77
- ]),
78
-
79
- 'REJECTED': Object.freeze([
80
- 'REJECTED',
81
- ]),
82
-
83
- 'MODERATION': Object.freeze([
84
- 'MODERATION',
85
- ]),
86
-
87
- 'APPROVED': Object.freeze([
88
- 'APPROVED',
89
- ]),
90
-
91
- 'FINISHED': Object.freeze([
92
- 'FINISHED',
93
- ]),
94
-
95
- 'ARCHIVE': Object.freeze([
96
- 'ARCHIVE',
97
- ]),
98
- })
@@ -1,13 +0,0 @@
1
- export const Gender = Object.freeze({
2
- 'Masculine': 'Masculine',
3
- 'Feminine': 'Feminine',
4
- 'Neuter': 'Neuter',
5
- 'Indeterminate': 'Indeterminate',
6
- })
7
-
8
- export const Genders = Object.freeze([
9
- 'Masculine',
10
- 'Feminine',
11
- 'Neuter',
12
- 'Indeterminate',
13
- ])