@shakerquiz/utilities 0.5.222 → 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.
- package/package.json +3 -5
- package/source/entities/blend.js +5 -0
- package/source/entities/cardinality-routes.js +82 -0
- package/source/entities/cardinality.js +8 -0
- package/source/entities/category.js +4 -0
- package/source/entities/city-affilation.js +16 -0
- package/source/entities/city-chatapp-version.js +9 -0
- package/source/entities/game-status.js +110 -0
- package/source/{enumerations → entities}/gender.js +7 -0
- package/source/entities/icon.js +654 -0
- package/source/entities/method.js +22 -0
- package/source/entities/mode.js +14 -0
- package/source/entities/network.js +9 -0
- package/source/entities/numerosity.js +5 -0
- package/source/entities/phase.js +23 -0
- package/source/entities/quantifier.js +41 -0
- package/source/entities/registration-attribute.js +68 -0
- package/source/entities/registration-channel.js +17 -0
- package/source/entities/registration-lineup.js +19 -0
- package/source/entities/registration-mailing.js +20 -0
- package/source/{enumerations/registration/status.js → entities/registration-status.js} +1 -13
- package/source/entities/role.js +25 -0
- package/source/entities/route-cardinality-route.js +112 -0
- package/source/entities/route-cardinality.js +175 -0
- package/source/entities/route-pathname-params.js +12 -0
- package/source/entities/route-pathname.js +70 -0
- package/source/entities/route-service.js +65 -0
- package/source/entities/route.js +70 -0
- package/source/entities/service-routes.js +34 -0
- package/source/entities/service-runtime.js +22 -0
- package/source/entities/service.js +39 -0
- package/source/entities/theme-status.js +14 -0
- package/source/entities/venue-audience.js +14 -0
- package/source/entities/venue-status.js +15 -0
- package/source/helpers/hydrate-route-pathname.js +32 -0
- package/source/helpers/string-tag.js +7 -0
- package/source/helpers/tag.js +37 -0
- package/source/index.js +41 -38
- package/source/prototypes/reflection.js +53 -0
- package/source/enumerations/blend.js +0 -11
- package/source/enumerations/cardinality.js +0 -13
- package/source/enumerations/category.js +0 -9
- package/source/enumerations/entities/affilation.js +0 -29
- package/source/enumerations/entities/game-status.js +0 -122
- package/source/enumerations/entities/registration-attribute.js +0 -83
- package/source/enumerations/entities/registration-channel.js +0 -26
- package/source/enumerations/entities/registration-mailing.js +0 -24
- package/source/enumerations/entities/role.js +0 -40
- package/source/enumerations/entities/version.js +0 -23
- package/source/enumerations/icon.js +0 -655
- package/source/enumerations/method.js +0 -31
- package/source/enumerations/mode.js +0 -48
- package/source/enumerations/network.js +0 -9
- package/source/enumerations/numerosity.js +0 -5
- package/source/enumerations/phase.js +0 -31
- package/source/enumerations/quantifier.js +0 -87
- package/source/enumerations/registration/lineup.js +0 -33
- package/source/enumerations/route.js +0 -515
- package/source/enumerations/service.js +0 -62
- package/source/enumerations/theme/status.js +0 -27
- package/source/enumerations/venue/audience.js +0 -27
- package/source/enumerations/venue/status.js +0 -27
- package/source/functions/hydrate-route-params.js +0 -18
- package/source/functions/hydrate-route-pathname.js +0 -26
- package/source/functions/string-tag.js +0 -5
- package/source/functions/tag.js +0 -37
- /package/source/{enumerations → entities}/constants.js +0 -0
- /package/source/{enumerations → entities}/display.js +0 -0
- /package/source/{enumerations → entities}/pattern.js +0 -0
- /package/source/{enumerations → entities}/runtime.js +0 -0
|
@@ -1,515 +0,0 @@
|
|
|
1
|
-
import { Cardinality } from './cardinality.js'
|
|
2
|
-
import { Service } from './service.js'
|
|
3
|
-
|
|
4
|
-
export const Route = Object.freeze({
|
|
5
|
-
'checkin': 'checkin',
|
|
6
|
-
'cities': 'cities',
|
|
7
|
-
'cities/country': 'cities/country',
|
|
8
|
-
'cities/currency': 'cities/currency',
|
|
9
|
-
'cities/timezone': 'cities/timezone',
|
|
10
|
-
'cities/venues': 'cities/venues',
|
|
11
|
-
'city': 'city',
|
|
12
|
-
'city/country': 'city/country',
|
|
13
|
-
'city/currency': 'city/currency',
|
|
14
|
-
'city/timezone': 'city/timezone',
|
|
15
|
-
'city/venue': 'city/venue',
|
|
16
|
-
'city/venues': 'city/venues',
|
|
17
|
-
'countries': 'countries',
|
|
18
|
-
'country': 'country',
|
|
19
|
-
'currencies': 'currencies',
|
|
20
|
-
'currency': 'currency',
|
|
21
|
-
'game': 'game',
|
|
22
|
-
'game/city': 'game/city',
|
|
23
|
-
'game/registration': 'game/registration',
|
|
24
|
-
'game/registrations': 'game/registrations',
|
|
25
|
-
'game/registrations/export': 'game/registrations/export',
|
|
26
|
-
'game/summary': 'game/summary',
|
|
27
|
-
'game/theme': 'game/theme',
|
|
28
|
-
'game/venue': 'game/venue',
|
|
29
|
-
'games': 'games',
|
|
30
|
-
'games/city': 'games/city',
|
|
31
|
-
'games/registrations': 'games/registrations',
|
|
32
|
-
'games/registrations/export': 'games/registrations/export',
|
|
33
|
-
'games/summary': 'games/summary',
|
|
34
|
-
'games/theme': 'games/theme',
|
|
35
|
-
'games/venue': 'games/venue',
|
|
36
|
-
'registration': 'registration',
|
|
37
|
-
'registration/cancellation': 'registration/cancellation',
|
|
38
|
-
'registration/channel': 'registration/channel',
|
|
39
|
-
'registration/confirmation': 'registration/confirmation',
|
|
40
|
-
'registration/export': 'registration/export',
|
|
41
|
-
'registration/city': 'registration/city',
|
|
42
|
-
'registration/game': 'registration/game',
|
|
43
|
-
'registration/game/theme': 'registration/game/theme',
|
|
44
|
-
'registration/mailing': 'registration/mailing',
|
|
45
|
-
'registrations': 'registrations',
|
|
46
|
-
'registrations/city': 'registrations/city',
|
|
47
|
-
'registrations/game': 'registrations/game',
|
|
48
|
-
'registrations/game/theme': 'registrations/game/theme',
|
|
49
|
-
'registrations/export': 'registrations/export',
|
|
50
|
-
'role': 'role',
|
|
51
|
-
'roles': 'roles',
|
|
52
|
-
'theme': 'theme',
|
|
53
|
-
'theme/cover': 'theme/cover',
|
|
54
|
-
'themes': 'themes',
|
|
55
|
-
'themes/cover': 'themes/cover',
|
|
56
|
-
'timezone': 'timezone',
|
|
57
|
-
'timezones': 'timezones',
|
|
58
|
-
'user': 'user',
|
|
59
|
-
'user/cities': 'user/cities',
|
|
60
|
-
'user/city': 'user/city',
|
|
61
|
-
'user/password': 'user/password',
|
|
62
|
-
'user/role': 'user/role',
|
|
63
|
-
'users': 'users',
|
|
64
|
-
'users/cities': 'users/cities',
|
|
65
|
-
'users/password': 'users/password',
|
|
66
|
-
'users/role': 'users/role',
|
|
67
|
-
'venue': 'venue',
|
|
68
|
-
'venue/city': 'venue/city',
|
|
69
|
-
'venues': 'venues',
|
|
70
|
-
'venues/city': 'venues/city',
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
export const Routes = Object.freeze(Object.values(Route))
|
|
74
|
-
|
|
75
|
-
export const RouteCardinality = Object.freeze({
|
|
76
|
-
[Route['checkin']]: Cardinality['1'],
|
|
77
|
-
[Route['cities']]: Cardinality['N'],
|
|
78
|
-
[Route['cities/country']]: Cardinality['N-1'],
|
|
79
|
-
[Route['cities/currency']]: Cardinality['N-1'],
|
|
80
|
-
[Route['cities/timezone']]: Cardinality['N-1'],
|
|
81
|
-
[Route['cities/venues']]: Cardinality['N-N'],
|
|
82
|
-
[Route['city']]: Cardinality['1'],
|
|
83
|
-
[Route['city/country']]: Cardinality['1-1'],
|
|
84
|
-
[Route['city/currency']]: Cardinality['1-1'],
|
|
85
|
-
[Route['city/timezone']]: Cardinality['1-1'],
|
|
86
|
-
[Route['city/venue']]: Cardinality['1-1'],
|
|
87
|
-
[Route['city/venues']]: Cardinality['1-N'],
|
|
88
|
-
[Route['countries']]: Cardinality['N'],
|
|
89
|
-
[Route['country']]: Cardinality['1'],
|
|
90
|
-
[Route['currencies']]: Cardinality['N'],
|
|
91
|
-
[Route['currency']]: Cardinality['1'],
|
|
92
|
-
[Route['game']]: Cardinality['1'],
|
|
93
|
-
[Route['game/city']]: Cardinality['1-1'],
|
|
94
|
-
[Route['game/registration']]: Cardinality['1-1'],
|
|
95
|
-
[Route['game/registrations']]: Cardinality['1-N'],
|
|
96
|
-
[Route['game/registrations/export']]: Cardinality['1'],
|
|
97
|
-
[Route['game/summary']]: Cardinality['1-1'],
|
|
98
|
-
[Route['game/theme']]: Cardinality['1-1'],
|
|
99
|
-
[Route['game/venue']]: Cardinality['1-1'],
|
|
100
|
-
[Route['games']]: Cardinality['N'],
|
|
101
|
-
[Route['games/city']]: Cardinality['N-1'],
|
|
102
|
-
[Route['games/registrations']]: Cardinality['N-N'],
|
|
103
|
-
[Route['games/registrations/export']]: Cardinality['1'],
|
|
104
|
-
[Route['games/summary']]: Cardinality['N-1'],
|
|
105
|
-
[Route['games/theme']]: Cardinality['N-1'],
|
|
106
|
-
[Route['games/venue']]: Cardinality['N-1'],
|
|
107
|
-
[Route['registration']]: Cardinality['1'],
|
|
108
|
-
[Route['registration/city']]: Cardinality['1-1'],
|
|
109
|
-
[Route['registration/game/theme']]: Cardinality['1-1'],
|
|
110
|
-
[Route['registration/export']]: Cardinality['1'],
|
|
111
|
-
[Route['registrations']]: Cardinality['N'],
|
|
112
|
-
[Route['registrations/city']]: Cardinality['N-1'],
|
|
113
|
-
[Route['registrations/game']]: Cardinality['N-1'],
|
|
114
|
-
[Route['registrations/game/theme']]: Cardinality['N-1'],
|
|
115
|
-
[Route['registrations/export']]: Cardinality['1'],
|
|
116
|
-
[Route['role']]: Cardinality['1'],
|
|
117
|
-
[Route['roles']]: Cardinality['N'],
|
|
118
|
-
[Route['theme']]: Cardinality['1'],
|
|
119
|
-
[Route['theme/cover']]: Cardinality['1-1'],
|
|
120
|
-
[Route['themes']]: Cardinality['N'],
|
|
121
|
-
[Route['themes/cover']]: Cardinality['N-1'],
|
|
122
|
-
[Route['timezone']]: Cardinality['1'],
|
|
123
|
-
[Route['timezones']]: Cardinality['N'],
|
|
124
|
-
[Route['user']]: Cardinality['1'],
|
|
125
|
-
[Route['user/cities']]: Cardinality['1-N'],
|
|
126
|
-
[Route['user/city']]: Cardinality['1-1'],
|
|
127
|
-
[Route['user/password']]: Cardinality['1-1'],
|
|
128
|
-
[Route['user/role']]: Cardinality['1-1'],
|
|
129
|
-
[Route['users']]: Cardinality['N'],
|
|
130
|
-
[Route['users/cities']]: Cardinality['N-N'],
|
|
131
|
-
[Route['users/role']]: Cardinality['N-1'],
|
|
132
|
-
[Route['venue']]: Cardinality['1'],
|
|
133
|
-
[Route['venue/city']]: Cardinality['1-1'],
|
|
134
|
-
[Route['venues']]: Cardinality['N'],
|
|
135
|
-
[Route['venues/city']]: Cardinality['N-1'],
|
|
136
|
-
})
|
|
137
|
-
|
|
138
|
-
export const RouteRelation = Object.freeze({
|
|
139
|
-
[Route['cities']]: Route['city'],
|
|
140
|
-
[Route['cities/country']]: Route['city/country'],
|
|
141
|
-
[Route['cities/currency']]: Route['city/currency'],
|
|
142
|
-
[Route['cities/timezone']]: Route['city/timezone'],
|
|
143
|
-
[Route['cities/venues']]: Route['city/venues'],
|
|
144
|
-
[Route['city/venues']]: Route['city/venues'],
|
|
145
|
-
[Route['countries']]: Route['country'],
|
|
146
|
-
[Route['currencies']]: Route['currency'],
|
|
147
|
-
[Route['game/registrations']]: Route['game/registrations'],
|
|
148
|
-
[Route['games']]: Route['game'],
|
|
149
|
-
[Route['games/city']]: Route['game/city'],
|
|
150
|
-
[Route['games/registrations']]: Route['game/registrations'],
|
|
151
|
-
[Route['games/summary']]: Route['game/summary'],
|
|
152
|
-
[Route['games/theme']]: Route['game/theme'],
|
|
153
|
-
[Route['games/venue']]: Route['game/venue'],
|
|
154
|
-
[Route['registrations']]: Route['registration'],
|
|
155
|
-
[Route['registrations/city']]: Route['registration/city'],
|
|
156
|
-
[Route['registrations/game']]: Route['registration/game'],
|
|
157
|
-
[Route['registrations/game/theme']]: Route['registration/game/theme'],
|
|
158
|
-
[Route['roles']]: Route['role'],
|
|
159
|
-
[Route['themes']]: Route['theme'],
|
|
160
|
-
[Route['themes/cover']]: Route['theme/cover'],
|
|
161
|
-
[Route['timezones']]: Route['timezone'],
|
|
162
|
-
[Route['user/cities']]: Route['user/cities'],
|
|
163
|
-
[Route['users']]: Route['user'],
|
|
164
|
-
[Route['users/cities']]: Route['user/cities'],
|
|
165
|
-
[Route['users/role']]: Route['user/role'],
|
|
166
|
-
[Route['venues']]: Route['venue'],
|
|
167
|
-
[Route['venues/city']]: Route['venue/city'],
|
|
168
|
-
})
|
|
169
|
-
|
|
170
|
-
export const RouteItems = Object.freeze({
|
|
171
|
-
[Route['user/role']]: Route['roles'],
|
|
172
|
-
[Route['user/city']]: Route['cities'],
|
|
173
|
-
})
|
|
174
|
-
|
|
175
|
-
export const RoutePathname = Object.freeze({
|
|
176
|
-
[Route['checkin']]: 'checkin',
|
|
177
|
-
[Route['cities']]: 'cities',
|
|
178
|
-
[Route['cities/country']]: 'cities/country',
|
|
179
|
-
[Route['cities/currency']]: 'cities/currency',
|
|
180
|
-
[Route['cities/timezone']]: 'cities/timezone',
|
|
181
|
-
[Route['cities/venues']]: 'cities/venues',
|
|
182
|
-
[Route['city']]: 'city/:city',
|
|
183
|
-
[Route['city/country']]: 'city/:city/country',
|
|
184
|
-
[Route['city/currency']]: 'city/:city/currency',
|
|
185
|
-
[Route['city/timezone']]: 'city/:city/timezone',
|
|
186
|
-
[Route['city/venue']]: 'city/:city/venue/:venue',
|
|
187
|
-
[Route['city/venues']]: 'city/:city/venues',
|
|
188
|
-
[Route['countries']]: 'countries',
|
|
189
|
-
[Route['country']]: 'country/:country',
|
|
190
|
-
[Route['currencies']]: 'currencies',
|
|
191
|
-
[Route['currency']]: 'currency/:currency',
|
|
192
|
-
[Route['game']]: 'game/:game',
|
|
193
|
-
[Route['game/city']]: 'game/:game/city',
|
|
194
|
-
[Route['game/registration']]: 'game/:game/registration/:registration',
|
|
195
|
-
[Route['game/registrations']]: 'game/:game/registrations',
|
|
196
|
-
[Route['game/registrations/export']]: 'game/:game/registrations/export',
|
|
197
|
-
[Route['game/summary']]: 'game/:game/summary',
|
|
198
|
-
[Route['game/theme']]: 'game/:game/theme',
|
|
199
|
-
[Route['game/venue']]: 'game/:game/venue',
|
|
200
|
-
[Route['games']]: 'games',
|
|
201
|
-
[Route['games/city']]: 'games/city',
|
|
202
|
-
[Route['games/registrations']]: 'games/registrations',
|
|
203
|
-
[Route['games/registrations/export']]: 'games/registrations/export',
|
|
204
|
-
[Route['games/summary']]: 'games/summary',
|
|
205
|
-
[Route['games/theme']]: 'games/theme',
|
|
206
|
-
[Route['games/venue']]: 'games/venue',
|
|
207
|
-
[Route['registration']]: 'registration/:registration',
|
|
208
|
-
[Route['registration/cancellation']]: 'registration/:registration/cancellation',
|
|
209
|
-
[Route['registration/channel']]: 'registration/:registration/channel',
|
|
210
|
-
[Route['registration/confirmation']]: 'registration/:registration/confirmation',
|
|
211
|
-
[Route['registration/export']]: 'registration/:registration/export',
|
|
212
|
-
[Route['registration/city']]: 'registration/:registration/city',
|
|
213
|
-
[Route['registration/game']]: 'registration/:registration/game',
|
|
214
|
-
[Route['registration/game/theme']]: 'registration/:registration/game/theme',
|
|
215
|
-
[Route['registration/mailing']]: 'registration/:registration/mailing',
|
|
216
|
-
[Route['registrations']]: 'registrations',
|
|
217
|
-
[Route['registrations/city']]: 'registrations/city',
|
|
218
|
-
[Route['registrations/game']]: 'registrations/game',
|
|
219
|
-
[Route['registrations/game/theme']]: 'registrations/game/theme',
|
|
220
|
-
[Route['registrations/export']]: 'registrations/export',
|
|
221
|
-
[Route['role']]: 'role/:role',
|
|
222
|
-
[Route['roles']]: 'roles',
|
|
223
|
-
[Route['theme']]: 'theme/:theme',
|
|
224
|
-
[Route['theme/cover']]: 'theme/:theme/cover',
|
|
225
|
-
[Route['themes']]: 'themes',
|
|
226
|
-
[Route['themes/cover']]: 'themes/cover',
|
|
227
|
-
[Route['timezone']]: 'timezone/:timezone',
|
|
228
|
-
[Route['timezones']]: 'timezones',
|
|
229
|
-
[Route['user']]: 'user/:user',
|
|
230
|
-
[Route['user/cities']]: 'user/:user/cities',
|
|
231
|
-
[Route['user/city']]: 'user/:user/city/:city',
|
|
232
|
-
[Route['user/password']]: 'user/:user/password',
|
|
233
|
-
[Route['user/role']]: 'user/:user/role',
|
|
234
|
-
[Route['users']]: 'users',
|
|
235
|
-
[Route['users/cities']]: 'users/cities',
|
|
236
|
-
[Route['users/password']]: 'users/password',
|
|
237
|
-
[Route['users/role']]: 'users/role',
|
|
238
|
-
[Route['venue']]: 'venue/:venue',
|
|
239
|
-
[Route['venue/city']]: 'venue/:venue/city',
|
|
240
|
-
[Route['venues']]: 'venues',
|
|
241
|
-
[Route['venues/city']]: 'venues/city',
|
|
242
|
-
})
|
|
243
|
-
|
|
244
|
-
export const RouteParams = Object.freeze({
|
|
245
|
-
[Route['checkin']]: [],
|
|
246
|
-
[Route['checkins']]: [],
|
|
247
|
-
[Route['cities']]: [],
|
|
248
|
-
[Route['cities/country']]: [],
|
|
249
|
-
[Route['cities/currency']]: [],
|
|
250
|
-
[Route['cities/timezone']]: [],
|
|
251
|
-
[Route['cities/venues']]: [],
|
|
252
|
-
[Route['city']]: [':city'],
|
|
253
|
-
[Route['city/country']]: [':city'],
|
|
254
|
-
[Route['city/currency']]: [':city'],
|
|
255
|
-
[Route['city/timezone']]: [':city'],
|
|
256
|
-
[Route['city/venue']]: [':city', ':venue'],
|
|
257
|
-
[Route['city/venues']]: [':city'],
|
|
258
|
-
[Route['countries']]: [],
|
|
259
|
-
[Route['country']]: [':country'],
|
|
260
|
-
[Route['currencies']]: [],
|
|
261
|
-
[Route['currency']]: [':currency'],
|
|
262
|
-
[Route['game']]: [':game'],
|
|
263
|
-
[Route['game/city']]: [':game'],
|
|
264
|
-
[Route['game/registration']]: [':game', ':registration'],
|
|
265
|
-
[Route['game/registrations']]: [':game'],
|
|
266
|
-
[Route['game/registrations/export']]: [':game'],
|
|
267
|
-
[Route['game/summary']]: [':game'],
|
|
268
|
-
[Route['game/theme']]: [':game'],
|
|
269
|
-
[Route['game/venue']]: [':game'],
|
|
270
|
-
[Route['games']]: [],
|
|
271
|
-
[Route['games/city']]: [],
|
|
272
|
-
[Route['games/registrations']]: [],
|
|
273
|
-
[Route['games/registrations/export']]: [],
|
|
274
|
-
[Route['games/summary']]: [],
|
|
275
|
-
[Route['games/theme']]: [],
|
|
276
|
-
[Route['games/venue']]: [],
|
|
277
|
-
[Route['registration']]: [':registration'],
|
|
278
|
-
[Route['registration/cancellation']]: [':registration'],
|
|
279
|
-
[Route['registration/channel']]: [':registration'],
|
|
280
|
-
[Route['registration/confirmation']]: [':registration'],
|
|
281
|
-
[Route['registration/export']]: [':registration'],
|
|
282
|
-
[Route['registration/city']]: [':registration'],
|
|
283
|
-
[Route['registration/game']]: [':registration'],
|
|
284
|
-
[Route['registration/game/theme']]: [':registration'],
|
|
285
|
-
[Route['registration/mailing']]: [':registration'],
|
|
286
|
-
[Route['registrations']]: [],
|
|
287
|
-
[Route['registrations/city']]: [],
|
|
288
|
-
[Route['registrations/game']]: [],
|
|
289
|
-
[Route['registrations/game/theme']]: [],
|
|
290
|
-
[Route['registrations/export']]: [],
|
|
291
|
-
[Route['role']]: [':role'],
|
|
292
|
-
[Route['roles']]: [],
|
|
293
|
-
[Route['theme']]: [':theme'],
|
|
294
|
-
[Route['theme/cover']]: [':theme'],
|
|
295
|
-
[Route['themes']]: [],
|
|
296
|
-
[Route['themes/cover']]: [],
|
|
297
|
-
[Route['timezone']]: [':timezone'],
|
|
298
|
-
[Route['timezones']]: [],
|
|
299
|
-
[Route['user']]: [':user'],
|
|
300
|
-
[Route['user/cities']]: [':user'],
|
|
301
|
-
[Route['user/city']]: [':user', ':city'],
|
|
302
|
-
[Route['user/password']]: [':user'],
|
|
303
|
-
[Route['user/role']]: [':user'],
|
|
304
|
-
[Route['users']]: [],
|
|
305
|
-
[Route['users/cities']]: [],
|
|
306
|
-
[Route['users/password']]: [],
|
|
307
|
-
[Route['users/role']]: [],
|
|
308
|
-
[Route['venue']]: [':venue'],
|
|
309
|
-
[Route['venue/city']]: [':venue'],
|
|
310
|
-
[Route['venues']]: [],
|
|
311
|
-
[Route['venues/city']]: [],
|
|
312
|
-
})
|
|
313
|
-
|
|
314
|
-
export const RouteService = Object.freeze({
|
|
315
|
-
[Route['checkin']]: Service['Checkin'],
|
|
316
|
-
[Route['cities']]: Service['Cities'],
|
|
317
|
-
[Route['cities/country']]: Service['Cities'],
|
|
318
|
-
[Route['cities/currency']]: Service['Cities'],
|
|
319
|
-
[Route['cities/timezone']]: Service['Cities'],
|
|
320
|
-
[Route['cities/venues']]: Service['Cities'],
|
|
321
|
-
[Route['city']]: Service['Cities'],
|
|
322
|
-
[Route['city/country']]: Service['Cities'],
|
|
323
|
-
[Route['city/currency']]: Service['Cities'],
|
|
324
|
-
[Route['city/timezone']]: Service['Cities'],
|
|
325
|
-
[Route['city/venues']]: Service['Cities'],
|
|
326
|
-
[Route['countries']]: Service['Locations'],
|
|
327
|
-
[Route['country']]: Service['Locations'],
|
|
328
|
-
[Route['currencies']]: Service['Locations'],
|
|
329
|
-
[Route['currency']]: Service['Locations'],
|
|
330
|
-
[Route['game']]: Service['Games'],
|
|
331
|
-
[Route['game/city']]: Service['Games'],
|
|
332
|
-
[Route['game/registrations']]: Service['Games'],
|
|
333
|
-
[Route['game/registrations/export']]: Service['Games'],
|
|
334
|
-
[Route['game/summary']]: Service['Games'],
|
|
335
|
-
[Route['game/theme']]: Service['Games'],
|
|
336
|
-
[Route['game/venue']]: Service['Games'],
|
|
337
|
-
[Route['games']]: Service['Games'],
|
|
338
|
-
[Route['games/city']]: Service['Games'],
|
|
339
|
-
[Route['games/registrations']]: Service['Games'],
|
|
340
|
-
[Route['games/registrations/export']]: Service['Games'],
|
|
341
|
-
[Route['games/summary']]: Service['Games'],
|
|
342
|
-
[Route['games/theme']]: Service['Games'],
|
|
343
|
-
[Route['games/venue']]: Service['Games'],
|
|
344
|
-
[Route['registration']]: Service['Registrations'],
|
|
345
|
-
[Route['registration/cancellation']]: Service['Registrations'],
|
|
346
|
-
[Route['registration/channel']]: Service['Registrations'],
|
|
347
|
-
[Route['registration/confirmation']]: Service['Registrations'],
|
|
348
|
-
[Route['registration/city']]: Service['Registrations'],
|
|
349
|
-
[Route['registration/game']]: Service['Registrations'],
|
|
350
|
-
[Route['registration/mailing']]: Service['Registrations'],
|
|
351
|
-
[Route['registrations']]: Service['Registrations'],
|
|
352
|
-
[Route['registrations/city']]: Service['Registrations'],
|
|
353
|
-
[Route['registrations/game']]: Service['Registrations'],
|
|
354
|
-
[Route['registrations/game/theme']]: Service['Registrations'],
|
|
355
|
-
[Route['registrations/export']]: Service['Registrations'],
|
|
356
|
-
[Route['role']]: Service['Roles'],
|
|
357
|
-
[Route['roles']]: Service['Roles'],
|
|
358
|
-
[Route['theme']]: Service['Themes'],
|
|
359
|
-
[Route['theme/cover']]: Service['Themes'],
|
|
360
|
-
[Route['themes']]: Service['Themes'],
|
|
361
|
-
[Route['themes/cover']]: Service['Themes'],
|
|
362
|
-
[Route['timezone']]: Service['Locations'],
|
|
363
|
-
[Route['timezones']]: Service['Locations'],
|
|
364
|
-
[Route['user']]: Service['Users'],
|
|
365
|
-
[Route['user/cities']]: Service['Users'],
|
|
366
|
-
[Route['user/password']]: Service['Users'],
|
|
367
|
-
[Route['user/role']]: Service['Users'],
|
|
368
|
-
[Route['users']]: Service['Users'],
|
|
369
|
-
[Route['users/cities']]: Service['Users'],
|
|
370
|
-
[Route['users/role']]: Service['Users'],
|
|
371
|
-
[Route['venue']]: Service['Venues'],
|
|
372
|
-
[Route['venue/city']]: Service['Venues'],
|
|
373
|
-
[Route['venues']]: Service['Venues'],
|
|
374
|
-
[Route['venues/city']]: Service['Venues'],
|
|
375
|
-
})
|
|
376
|
-
|
|
377
|
-
export const ServiceRoutes = Object.freeze({
|
|
378
|
-
[Service['Users']]: Object.freeze([
|
|
379
|
-
Route['user'],
|
|
380
|
-
Route['user/cities'],
|
|
381
|
-
Route['user/password'],
|
|
382
|
-
Route['user/role'],
|
|
383
|
-
Route['users'],
|
|
384
|
-
Route['users/cities'],
|
|
385
|
-
Route['users/role'],
|
|
386
|
-
]),
|
|
387
|
-
|
|
388
|
-
[Service['Roles']]: Object.freeze([
|
|
389
|
-
Route['role'],
|
|
390
|
-
Route['roles'],
|
|
391
|
-
]),
|
|
392
|
-
|
|
393
|
-
[Service['Checkin']]: Object.freeze([
|
|
394
|
-
Route['checkin'],
|
|
395
|
-
]),
|
|
396
|
-
|
|
397
|
-
[Service['Locations']]: Object.freeze([
|
|
398
|
-
Route['countries'],
|
|
399
|
-
Route['country'],
|
|
400
|
-
Route['currencies'],
|
|
401
|
-
Route['currency'],
|
|
402
|
-
Route['timezone'],
|
|
403
|
-
Route['timezones'],
|
|
404
|
-
]),
|
|
405
|
-
|
|
406
|
-
[Service['Cities']]: Object.freeze([
|
|
407
|
-
Route['cities'],
|
|
408
|
-
Route['cities/country'],
|
|
409
|
-
Route['cities/currency'],
|
|
410
|
-
Route['cities/timezone'],
|
|
411
|
-
Route['cities/venues'],
|
|
412
|
-
Route['city'],
|
|
413
|
-
Route['city/country'],
|
|
414
|
-
Route['city/currency'],
|
|
415
|
-
Route['city/timezone'],
|
|
416
|
-
Route['city/venues'],
|
|
417
|
-
]),
|
|
418
|
-
|
|
419
|
-
[Service['Venues']]: Object.freeze([
|
|
420
|
-
Route['venue'],
|
|
421
|
-
Route['venue/city'],
|
|
422
|
-
Route['venues'],
|
|
423
|
-
Route['venues/city'],
|
|
424
|
-
]),
|
|
425
|
-
|
|
426
|
-
[Service['Themes']]: Object.freeze([
|
|
427
|
-
Route['theme'],
|
|
428
|
-
Route['theme/cover'],
|
|
429
|
-
Route['themes'],
|
|
430
|
-
Route['themes/cover'],
|
|
431
|
-
]),
|
|
432
|
-
|
|
433
|
-
[Service['Games']]: Object.freeze([
|
|
434
|
-
Route['game'],
|
|
435
|
-
Route['game/city'],
|
|
436
|
-
Route['game/registrations'],
|
|
437
|
-
Route['game/registrations/export'],
|
|
438
|
-
Route['game/summary'],
|
|
439
|
-
Route['game/theme'],
|
|
440
|
-
Route['game/venue'],
|
|
441
|
-
Route['games'],
|
|
442
|
-
Route['games/city'],
|
|
443
|
-
Route['games/registrations'],
|
|
444
|
-
Route['games/registrations/export'],
|
|
445
|
-
Route['games/summary'],
|
|
446
|
-
Route['games/theme'],
|
|
447
|
-
Route['games/venue'],
|
|
448
|
-
]),
|
|
449
|
-
|
|
450
|
-
[Service['Registrations']]: Object.freeze([
|
|
451
|
-
Route['registration'],
|
|
452
|
-
Route['registration/cancellation'],
|
|
453
|
-
Route['registration/channel'],
|
|
454
|
-
Route['registration/confirmation'],
|
|
455
|
-
Route['registration/game'],
|
|
456
|
-
Route['registration/mailing'],
|
|
457
|
-
Route['registrations'],
|
|
458
|
-
Route['registrations/city'],
|
|
459
|
-
Route['registrations/game'],
|
|
460
|
-
Route['registrations/game/theme'],
|
|
461
|
-
Route['registrations/export'],
|
|
462
|
-
]),
|
|
463
|
-
|
|
464
|
-
[Service['Procedures']]: Object.freeze([]),
|
|
465
|
-
|
|
466
|
-
[Service['Integrations']]: Object.freeze([]),
|
|
467
|
-
|
|
468
|
-
[Service['Updates']]: Object.freeze([]),
|
|
469
|
-
|
|
470
|
-
[Service['Hub']]: Object.freeze([]),
|
|
471
|
-
|
|
472
|
-
[Service['Landing']]: Object.freeze([]),
|
|
473
|
-
|
|
474
|
-
[Service['Vkma']]: Object.freeze([]),
|
|
475
|
-
})
|
|
476
|
-
|
|
477
|
-
export const inferRoute = Object.freeze(
|
|
478
|
-
/** @returns {typeof Route[keyof typeof Route] | 'Unknown'} */
|
|
479
|
-
x => Route[x] ?? 'Unknown',
|
|
480
|
-
)
|
|
481
|
-
|
|
482
|
-
export const inferRouteCardinality = Object.freeze(
|
|
483
|
-
/** @returns {typeof RouteCardinality[keyof typeof RouteCardinality] | 'Unknown'} */
|
|
484
|
-
x => RouteCardinality[x] ?? 'Unknown',
|
|
485
|
-
)
|
|
486
|
-
|
|
487
|
-
export const inferRouteRelation = Object.freeze(
|
|
488
|
-
/** @returns {typeof RouteRelation[keyof typeof RouteRelation] | 'Unknown'} */
|
|
489
|
-
x => RouteRelation[x] ?? 'Unknown',
|
|
490
|
-
)
|
|
491
|
-
|
|
492
|
-
export const inferRouteItems = Object.freeze(
|
|
493
|
-
/** @returns {typeof RouteItems[keyof typeof RouteItems] | 'Unknown'} */
|
|
494
|
-
x => RouteItems[x] ?? 'Unknown',
|
|
495
|
-
)
|
|
496
|
-
|
|
497
|
-
export const inferRoutePathname = Object.freeze(
|
|
498
|
-
/** @returns {typeof RoutePathname[keyof typeof RoutePathname] | 'Unknown'} */
|
|
499
|
-
x => RoutePathname[x] ?? 'Unknown',
|
|
500
|
-
)
|
|
501
|
-
|
|
502
|
-
export const inferRouteParams = Object.freeze(
|
|
503
|
-
/** @returns {typeof RouteParams[keyof typeof RouteParams] | 'Unknown'} */
|
|
504
|
-
x => RouteParams[x] ?? 'Unknown',
|
|
505
|
-
)
|
|
506
|
-
|
|
507
|
-
export const inferRouteService = Object.freeze(
|
|
508
|
-
/** @returns {typeof RouteService[keyof typeof RouteService] | 'Unknown'} */
|
|
509
|
-
x => RouteService[x] ?? 'Unknown',
|
|
510
|
-
)
|
|
511
|
-
|
|
512
|
-
export const inferServiceRoutes = Object.freeze(
|
|
513
|
-
/** @returns {typeof ServiceRoutes[keyof typeof ServiceRoutes] | 'Unknown'} */
|
|
514
|
-
x => ServiceRoutes[x] ?? 'Unknown',
|
|
515
|
-
)
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Mode } from './mode.js'
|
|
2
|
-
import { Runtime } from './runtime.js'
|
|
3
|
-
|
|
4
|
-
export const Service = Object.freeze({
|
|
5
|
-
'Users': 'Users',
|
|
6
|
-
'Roles': 'Roles',
|
|
7
|
-
'Checkin': 'Checkin',
|
|
8
|
-
'Locations': 'Locations',
|
|
9
|
-
'Cities': 'Cities',
|
|
10
|
-
'Venues': 'Venues',
|
|
11
|
-
'Themes': 'Themes',
|
|
12
|
-
'Games': 'Games',
|
|
13
|
-
'Registrations': 'Registrations',
|
|
14
|
-
'Files': 'Files',
|
|
15
|
-
'Procedures': 'Procedures',
|
|
16
|
-
'Integrations': 'Integrations',
|
|
17
|
-
'Updates': 'Updates',
|
|
18
|
-
'Hub': 'Hub',
|
|
19
|
-
'Landing': 'Landing',
|
|
20
|
-
'Vkma': 'Vkma',
|
|
21
|
-
'Minio': 'Minio',
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
export const Services = Object.freeze([
|
|
25
|
-
Service['Users'],
|
|
26
|
-
Service['Roles'],
|
|
27
|
-
Service['Checkin'],
|
|
28
|
-
Service['Locations'],
|
|
29
|
-
Service['Cities'],
|
|
30
|
-
Service['Venues'],
|
|
31
|
-
Service['Themes'],
|
|
32
|
-
Service['Games'],
|
|
33
|
-
Service['Registrations'],
|
|
34
|
-
Service['Files'],
|
|
35
|
-
Service['Procedures'],
|
|
36
|
-
Service['Integrations'],
|
|
37
|
-
Service['Updates'],
|
|
38
|
-
Service['Hub'],
|
|
39
|
-
Service['Landing'],
|
|
40
|
-
Service['Vkma'],
|
|
41
|
-
Service['Minio'],
|
|
42
|
-
])
|
|
43
|
-
|
|
44
|
-
export const ServiceRuntime = Object.freeze({
|
|
45
|
-
[Service['Users']]: Runtime['Deno'],
|
|
46
|
-
[Service['Roles']]: Runtime['Deno'],
|
|
47
|
-
[Service['Checkin']]: Runtime['Deno'],
|
|
48
|
-
[Service['Locations']]: Runtime['Deno'],
|
|
49
|
-
[Service['Cities']]: Runtime['Deno'],
|
|
50
|
-
[Service['Venues']]: Runtime['Deno'],
|
|
51
|
-
[Service['Themes']]: Runtime['Deno'],
|
|
52
|
-
[Service['Games']]: Runtime['Deno'],
|
|
53
|
-
[Service['Registrations']]: Runtime['Deno'],
|
|
54
|
-
[Service['Files']]: Runtime['Bun'],
|
|
55
|
-
[Service['Procedures']]: Runtime['Bun'],
|
|
56
|
-
[Service['Integrations']]: Runtime['Bun'],
|
|
57
|
-
[Service['Updates']]: Runtime['Bun'],
|
|
58
|
-
[Service['Hub']]: Runtime['Node'],
|
|
59
|
-
[Service['Landing']]: Runtime['Node'],
|
|
60
|
-
[Service['Vkma']]: Runtime['Vite'],
|
|
61
|
-
[Service['Minio']]: Mode['Unknown'],
|
|
62
|
-
})
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export const ThemeStatus = Object.freeze({
|
|
2
|
-
'Active': 'Active',
|
|
3
|
-
'Archive': 'Archive',
|
|
4
|
-
})
|
|
5
|
-
|
|
6
|
-
/** @satisfies {Readonly<Array<keyof typeof ThemeStatus>>} */
|
|
7
|
-
export const ThemeStatuses = Object.freeze([
|
|
8
|
-
'Active',
|
|
9
|
-
'Archive',
|
|
10
|
-
])
|
|
11
|
-
|
|
12
|
-
/** @satisfies {Record<keyof typeof ThemeStatus, string>} */
|
|
13
|
-
export const ThemeStatusTitle = Object.freeze({
|
|
14
|
-
'Active': 'Активно',
|
|
15
|
-
'Archive': 'Архив',
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
/** @satisfies {Record<keyof typeof ThemeStatus, string>} */
|
|
19
|
-
export const ThemeStatusIcon = Object.freeze({
|
|
20
|
-
'Active': 'hero/outline/check',
|
|
21
|
-
'Archive': 'hero/outline/archive-box',
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
export const inferThemeStatus = Object.freeze(
|
|
25
|
-
/** @returns {keyof typeof ThemeStatus | 'Unknown'} */
|
|
26
|
-
x => ThemeStatus[x?.status ?? x] ?? 'Unknown',
|
|
27
|
-
)
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export const VenueAudience = Object.freeze({
|
|
2
|
-
'Open': 'Open',
|
|
3
|
-
'Adults': 'Adults',
|
|
4
|
-
})
|
|
5
|
-
|
|
6
|
-
/** @satisfies {Array<keyof typeof VenueAudience>} */
|
|
7
|
-
export const VenueAudiences = Object.freeze([
|
|
8
|
-
'Open',
|
|
9
|
-
'Adults',
|
|
10
|
-
])
|
|
11
|
-
|
|
12
|
-
/** @satisfies {Record<keyof typeof VenueAudience, string>} */
|
|
13
|
-
export const VenueAudienceTitle = Object.freeze({
|
|
14
|
-
'Open': 'Все',
|
|
15
|
-
'Adults': 'Взрослые',
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
/** @satisfies {Record<keyof typeof VenueAudience, string>} */
|
|
19
|
-
export const VenueAudienceIcon = Object.freeze({
|
|
20
|
-
'Open': 'hero/outline/lock-open',
|
|
21
|
-
'Adults': 'hero/outline/lock-closed',
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
export const inferVenueAudience = Object.freeze(
|
|
25
|
-
/** @returns {keyof typeof VenueAudience | 'Unknown'} */
|
|
26
|
-
x => VenueAudience[x?.audience ?? x] ?? 'Unknown',
|
|
27
|
-
)
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export const VenueStatus = Object.freeze({
|
|
2
|
-
'Active': 'Active',
|
|
3
|
-
'Archive': 'Archive',
|
|
4
|
-
})
|
|
5
|
-
|
|
6
|
-
/** @satisfies {Array<keyof typeof VenueStatus>} */
|
|
7
|
-
export const VenueStatuses = Object.freeze([
|
|
8
|
-
'Active',
|
|
9
|
-
'Archive',
|
|
10
|
-
])
|
|
11
|
-
|
|
12
|
-
/** @satisfies {Record<keyof typeof VenueStatus, string>} */
|
|
13
|
-
export const VenueStatusTitle = Object.freeze({
|
|
14
|
-
'Active': 'Активно',
|
|
15
|
-
'Archive': 'Архив',
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
/** @satisfies {Record<keyof typeof VenueStatus, string>} */
|
|
19
|
-
export const VenueStatusIcon = Object.freeze({
|
|
20
|
-
'Active': 'hero/outline/check',
|
|
21
|
-
'Archive': 'hero/outline/archive-box',
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
export const inferVenueStatus = Object.freeze(
|
|
25
|
-
/** @returns {keyof typeof VenueStatus | 'Unknown'} */
|
|
26
|
-
x => VenueStatus[x?.status ?? x] ?? 'Unknown',
|
|
27
|
-
)
|