@shakerquiz/utilities 0.3.13 → 0.3.15
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 +1 -1
- package/source/enumerations/domains.d.ts +12 -142
- package/source/enumerations/domains.js +11 -2
- package/source/enumerations/features.d.ts +28 -390
- package/source/enumerations/features.js +154 -3
- package/source/enumerations/frontends.js +10 -0
- package/source/enumerations/pages.d.ts +17 -0
- package/source/enumerations/pages.js +67 -0
- package/source/enumerations/procedures.d.ts +12 -22
- package/source/enumerations/procedures.js +11 -3
- package/source/functions/origin.d.ts +3 -425
- package/source/functions/pathname.d.ts +1 -1
- package/source/functions/url.d.ts +6 -1
- package/source/functions/url.js +2 -5
- package/source/globals.d.ts +9 -2
- package/source/index.d.ts +2 -0
- package/source/index.js +1 -0
|
@@ -1,425 +1,3 @@
|
|
|
1
|
-
export function getFeatureOrigin(feature: Feature, service?: Service, network?: Network):
|
|
2
|
-
export function setFeatureOrigin(origins: Partial<Record<Feature, Partial<Record<Service, Partial<Record<Network, URL["origin"]>>>>>>):
|
|
3
|
-
|
|
4
|
-
Backend: {
|
|
5
|
-
Docker: string;
|
|
6
|
-
Public: string;
|
|
7
|
-
};
|
|
8
|
-
Games: {
|
|
9
|
-
Docker: string;
|
|
10
|
-
Public: string;
|
|
11
|
-
};
|
|
12
|
-
Locations: {
|
|
13
|
-
Docker: string;
|
|
14
|
-
Public: string;
|
|
15
|
-
};
|
|
16
|
-
Users: {
|
|
17
|
-
Docker: string;
|
|
18
|
-
Public: string;
|
|
19
|
-
};
|
|
20
|
-
Admin: {
|
|
21
|
-
Docker: string;
|
|
22
|
-
Public: string;
|
|
23
|
-
};
|
|
24
|
-
Landing: {
|
|
25
|
-
Docker: string;
|
|
26
|
-
Public: string;
|
|
27
|
-
};
|
|
28
|
-
MiniApp: {
|
|
29
|
-
Docker: string;
|
|
30
|
-
Public: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
City: {
|
|
34
|
-
Backend: {
|
|
35
|
-
Docker: string;
|
|
36
|
-
Public: string;
|
|
37
|
-
};
|
|
38
|
-
Games: {
|
|
39
|
-
Docker: string;
|
|
40
|
-
Public: string;
|
|
41
|
-
};
|
|
42
|
-
Locations: {
|
|
43
|
-
Docker: string;
|
|
44
|
-
Public: string;
|
|
45
|
-
};
|
|
46
|
-
Users: {
|
|
47
|
-
Docker: string;
|
|
48
|
-
Public: string;
|
|
49
|
-
};
|
|
50
|
-
Admin: {
|
|
51
|
-
Docker: string;
|
|
52
|
-
Public: string;
|
|
53
|
-
};
|
|
54
|
-
Landing: {
|
|
55
|
-
Docker: string;
|
|
56
|
-
Public: string;
|
|
57
|
-
};
|
|
58
|
-
MiniApp: {
|
|
59
|
-
Docker: string;
|
|
60
|
-
Public: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
Game: {
|
|
64
|
-
Backend: {
|
|
65
|
-
Docker: string;
|
|
66
|
-
Public: string;
|
|
67
|
-
};
|
|
68
|
-
Games: {
|
|
69
|
-
Docker: string;
|
|
70
|
-
Public: string;
|
|
71
|
-
};
|
|
72
|
-
Locations: {
|
|
73
|
-
Docker: string;
|
|
74
|
-
Public: string;
|
|
75
|
-
};
|
|
76
|
-
Users: {
|
|
77
|
-
Docker: string;
|
|
78
|
-
Public: string;
|
|
79
|
-
};
|
|
80
|
-
Admin: {
|
|
81
|
-
Docker: string;
|
|
82
|
-
Public: string;
|
|
83
|
-
};
|
|
84
|
-
Landing: {
|
|
85
|
-
Docker: string;
|
|
86
|
-
Public: string;
|
|
87
|
-
};
|
|
88
|
-
MiniApp: {
|
|
89
|
-
Docker: string;
|
|
90
|
-
Public: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
Registration: {
|
|
94
|
-
Backend: {
|
|
95
|
-
Docker: string;
|
|
96
|
-
Public: string;
|
|
97
|
-
};
|
|
98
|
-
Games: {
|
|
99
|
-
Docker: string;
|
|
100
|
-
Public: string;
|
|
101
|
-
};
|
|
102
|
-
Locations: {
|
|
103
|
-
Docker: string;
|
|
104
|
-
Public: string;
|
|
105
|
-
};
|
|
106
|
-
Users: {
|
|
107
|
-
Docker: string;
|
|
108
|
-
Public: string;
|
|
109
|
-
};
|
|
110
|
-
Admin: {
|
|
111
|
-
Docker: string;
|
|
112
|
-
Public: string;
|
|
113
|
-
};
|
|
114
|
-
Landing: {
|
|
115
|
-
Docker: string;
|
|
116
|
-
Public: string;
|
|
117
|
-
};
|
|
118
|
-
MiniApp: {
|
|
119
|
-
Docker: string;
|
|
120
|
-
Public: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
Theme: {
|
|
124
|
-
Backend: {
|
|
125
|
-
Docker: string;
|
|
126
|
-
Public: string;
|
|
127
|
-
};
|
|
128
|
-
Games: {
|
|
129
|
-
Docker: string;
|
|
130
|
-
Public: string;
|
|
131
|
-
};
|
|
132
|
-
Locations: {
|
|
133
|
-
Docker: string;
|
|
134
|
-
Public: string;
|
|
135
|
-
};
|
|
136
|
-
Users: {
|
|
137
|
-
Docker: string;
|
|
138
|
-
Public: string;
|
|
139
|
-
};
|
|
140
|
-
Admin: {
|
|
141
|
-
Docker: string;
|
|
142
|
-
Public: string;
|
|
143
|
-
};
|
|
144
|
-
Landing: {
|
|
145
|
-
Docker: string;
|
|
146
|
-
Public: string;
|
|
147
|
-
};
|
|
148
|
-
MiniApp: {
|
|
149
|
-
Docker: string;
|
|
150
|
-
Public: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
User: {
|
|
154
|
-
Backend: {
|
|
155
|
-
Docker: string;
|
|
156
|
-
Public: string;
|
|
157
|
-
};
|
|
158
|
-
Games: {
|
|
159
|
-
Docker: string;
|
|
160
|
-
Public: string;
|
|
161
|
-
};
|
|
162
|
-
Locations: {
|
|
163
|
-
Docker: string;
|
|
164
|
-
Public: string;
|
|
165
|
-
};
|
|
166
|
-
Users: {
|
|
167
|
-
Docker: string;
|
|
168
|
-
Public: string;
|
|
169
|
-
};
|
|
170
|
-
Admin: {
|
|
171
|
-
Docker: string;
|
|
172
|
-
Public: string;
|
|
173
|
-
};
|
|
174
|
-
Landing: {
|
|
175
|
-
Docker: string;
|
|
176
|
-
Public: string;
|
|
177
|
-
};
|
|
178
|
-
MiniApp: {
|
|
179
|
-
Docker: string;
|
|
180
|
-
Public: string;
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
Venue: {
|
|
184
|
-
Backend: {
|
|
185
|
-
Docker: string;
|
|
186
|
-
Public: string;
|
|
187
|
-
};
|
|
188
|
-
Games: {
|
|
189
|
-
Docker: string;
|
|
190
|
-
Public: string;
|
|
191
|
-
};
|
|
192
|
-
Locations: {
|
|
193
|
-
Docker: string;
|
|
194
|
-
Public: string;
|
|
195
|
-
};
|
|
196
|
-
Users: {
|
|
197
|
-
Docker: string;
|
|
198
|
-
Public: string;
|
|
199
|
-
};
|
|
200
|
-
Admin: {
|
|
201
|
-
Docker: string;
|
|
202
|
-
Public: string;
|
|
203
|
-
};
|
|
204
|
-
Landing: {
|
|
205
|
-
Docker: string;
|
|
206
|
-
Public: string;
|
|
207
|
-
};
|
|
208
|
-
MiniApp: {
|
|
209
|
-
Docker: string;
|
|
210
|
-
Public: string;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
export function setServiceOrigin(origins: Partial<Record<Service, Partial<Record<Network, URL["origin"]>>>>): {
|
|
215
|
-
Checkin: {
|
|
216
|
-
Backend: {
|
|
217
|
-
Docker: string;
|
|
218
|
-
Public: string;
|
|
219
|
-
};
|
|
220
|
-
Games: {
|
|
221
|
-
Docker: string;
|
|
222
|
-
Public: string;
|
|
223
|
-
};
|
|
224
|
-
Locations: {
|
|
225
|
-
Docker: string;
|
|
226
|
-
Public: string;
|
|
227
|
-
};
|
|
228
|
-
Users: {
|
|
229
|
-
Docker: string;
|
|
230
|
-
Public: string;
|
|
231
|
-
};
|
|
232
|
-
Admin: {
|
|
233
|
-
Docker: string;
|
|
234
|
-
Public: string;
|
|
235
|
-
};
|
|
236
|
-
Landing: {
|
|
237
|
-
Docker: string;
|
|
238
|
-
Public: string;
|
|
239
|
-
};
|
|
240
|
-
MiniApp: {
|
|
241
|
-
Docker: string;
|
|
242
|
-
Public: string;
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
City: {
|
|
246
|
-
Backend: {
|
|
247
|
-
Docker: string;
|
|
248
|
-
Public: string;
|
|
249
|
-
};
|
|
250
|
-
Games: {
|
|
251
|
-
Docker: string;
|
|
252
|
-
Public: string;
|
|
253
|
-
};
|
|
254
|
-
Locations: {
|
|
255
|
-
Docker: string;
|
|
256
|
-
Public: string;
|
|
257
|
-
};
|
|
258
|
-
Users: {
|
|
259
|
-
Docker: string;
|
|
260
|
-
Public: string;
|
|
261
|
-
};
|
|
262
|
-
Admin: {
|
|
263
|
-
Docker: string;
|
|
264
|
-
Public: string;
|
|
265
|
-
};
|
|
266
|
-
Landing: {
|
|
267
|
-
Docker: string;
|
|
268
|
-
Public: string;
|
|
269
|
-
};
|
|
270
|
-
MiniApp: {
|
|
271
|
-
Docker: string;
|
|
272
|
-
Public: string;
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
Game: {
|
|
276
|
-
Backend: {
|
|
277
|
-
Docker: string;
|
|
278
|
-
Public: string;
|
|
279
|
-
};
|
|
280
|
-
Games: {
|
|
281
|
-
Docker: string;
|
|
282
|
-
Public: string;
|
|
283
|
-
};
|
|
284
|
-
Locations: {
|
|
285
|
-
Docker: string;
|
|
286
|
-
Public: string;
|
|
287
|
-
};
|
|
288
|
-
Users: {
|
|
289
|
-
Docker: string;
|
|
290
|
-
Public: string;
|
|
291
|
-
};
|
|
292
|
-
Admin: {
|
|
293
|
-
Docker: string;
|
|
294
|
-
Public: string;
|
|
295
|
-
};
|
|
296
|
-
Landing: {
|
|
297
|
-
Docker: string;
|
|
298
|
-
Public: string;
|
|
299
|
-
};
|
|
300
|
-
MiniApp: {
|
|
301
|
-
Docker: string;
|
|
302
|
-
Public: string;
|
|
303
|
-
};
|
|
304
|
-
};
|
|
305
|
-
Registration: {
|
|
306
|
-
Backend: {
|
|
307
|
-
Docker: string;
|
|
308
|
-
Public: string;
|
|
309
|
-
};
|
|
310
|
-
Games: {
|
|
311
|
-
Docker: string;
|
|
312
|
-
Public: string;
|
|
313
|
-
};
|
|
314
|
-
Locations: {
|
|
315
|
-
Docker: string;
|
|
316
|
-
Public: string;
|
|
317
|
-
};
|
|
318
|
-
Users: {
|
|
319
|
-
Docker: string;
|
|
320
|
-
Public: string;
|
|
321
|
-
};
|
|
322
|
-
Admin: {
|
|
323
|
-
Docker: string;
|
|
324
|
-
Public: string;
|
|
325
|
-
};
|
|
326
|
-
Landing: {
|
|
327
|
-
Docker: string;
|
|
328
|
-
Public: string;
|
|
329
|
-
};
|
|
330
|
-
MiniApp: {
|
|
331
|
-
Docker: string;
|
|
332
|
-
Public: string;
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
Theme: {
|
|
336
|
-
Backend: {
|
|
337
|
-
Docker: string;
|
|
338
|
-
Public: string;
|
|
339
|
-
};
|
|
340
|
-
Games: {
|
|
341
|
-
Docker: string;
|
|
342
|
-
Public: string;
|
|
343
|
-
};
|
|
344
|
-
Locations: {
|
|
345
|
-
Docker: string;
|
|
346
|
-
Public: string;
|
|
347
|
-
};
|
|
348
|
-
Users: {
|
|
349
|
-
Docker: string;
|
|
350
|
-
Public: string;
|
|
351
|
-
};
|
|
352
|
-
Admin: {
|
|
353
|
-
Docker: string;
|
|
354
|
-
Public: string;
|
|
355
|
-
};
|
|
356
|
-
Landing: {
|
|
357
|
-
Docker: string;
|
|
358
|
-
Public: string;
|
|
359
|
-
};
|
|
360
|
-
MiniApp: {
|
|
361
|
-
Docker: string;
|
|
362
|
-
Public: string;
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
User: {
|
|
366
|
-
Backend: {
|
|
367
|
-
Docker: string;
|
|
368
|
-
Public: string;
|
|
369
|
-
};
|
|
370
|
-
Games: {
|
|
371
|
-
Docker: string;
|
|
372
|
-
Public: string;
|
|
373
|
-
};
|
|
374
|
-
Locations: {
|
|
375
|
-
Docker: string;
|
|
376
|
-
Public: string;
|
|
377
|
-
};
|
|
378
|
-
Users: {
|
|
379
|
-
Docker: string;
|
|
380
|
-
Public: string;
|
|
381
|
-
};
|
|
382
|
-
Admin: {
|
|
383
|
-
Docker: string;
|
|
384
|
-
Public: string;
|
|
385
|
-
};
|
|
386
|
-
Landing: {
|
|
387
|
-
Docker: string;
|
|
388
|
-
Public: string;
|
|
389
|
-
};
|
|
390
|
-
MiniApp: {
|
|
391
|
-
Docker: string;
|
|
392
|
-
Public: string;
|
|
393
|
-
};
|
|
394
|
-
};
|
|
395
|
-
Venue: {
|
|
396
|
-
Backend: {
|
|
397
|
-
Docker: string;
|
|
398
|
-
Public: string;
|
|
399
|
-
};
|
|
400
|
-
Games: {
|
|
401
|
-
Docker: string;
|
|
402
|
-
Public: string;
|
|
403
|
-
};
|
|
404
|
-
Locations: {
|
|
405
|
-
Docker: string;
|
|
406
|
-
Public: string;
|
|
407
|
-
};
|
|
408
|
-
Users: {
|
|
409
|
-
Docker: string;
|
|
410
|
-
Public: string;
|
|
411
|
-
};
|
|
412
|
-
Admin: {
|
|
413
|
-
Docker: string;
|
|
414
|
-
Public: string;
|
|
415
|
-
};
|
|
416
|
-
Landing: {
|
|
417
|
-
Docker: string;
|
|
418
|
-
Public: string;
|
|
419
|
-
};
|
|
420
|
-
MiniApp: {
|
|
421
|
-
Docker: string;
|
|
422
|
-
Public: string;
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
};
|
|
1
|
+
export function getFeatureOrigin(feature: Feature, service?: Service, network?: Network): string;
|
|
2
|
+
export function setFeatureOrigin(origins: Partial<Record<Feature, Partial<Record<Service, Partial<Record<Network, URL["origin"]>>>>>>): Record<Feature, Record<Service, Record<Network, string>>>;
|
|
3
|
+
export function setServiceOrigin(origins: Partial<Record<Service, Partial<Record<Network, URL["origin"]>>>>): Record<Feature, Record<Service, Record<Network, string>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function getFeaturePathname(feature: Feature, kind?: Kind):
|
|
1
|
+
export function getFeaturePathname(feature: Feature, kind?: Kind): string;
|
package/source/functions/url.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Features } from '../enumerations/features.js'
|
|
1
|
+
import { Features, FeatureServiceDefaults } from '../enumerations/features.js'
|
|
3
2
|
import { Kinds } from '../enumerations/kinds.js'
|
|
4
3
|
import { Networks } from '../enumerations/networks.js'
|
|
5
|
-
import { ProcedureServiceDefaults } from '../enumerations/procedures.js'
|
|
6
4
|
import { Services } from '../enumerations/services.js'
|
|
7
5
|
|
|
8
6
|
import { getFeatureOrigin } from './origin.js'
|
|
@@ -16,8 +14,7 @@ import { getFeaturePathname } from './pathname.js'
|
|
|
16
14
|
*/
|
|
17
15
|
export var getFeatureUrl = (
|
|
18
16
|
feature,
|
|
19
|
-
service =
|
|
20
|
-
?? ProcedureServiceDefaults[feature],
|
|
17
|
+
service = FeatureServiceDefaults[feature],
|
|
21
18
|
network = Networks.Public,
|
|
22
19
|
kind = Kinds.Unit,
|
|
23
20
|
) => {
|
package/source/globals.d.ts
CHANGED
|
@@ -46,8 +46,9 @@ type Requirement =
|
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
48
|
type Domain = keyof typeof import('./enumerations/domains.js').Domains
|
|
49
|
+
type Page = keyof typeof import('./enumerations/pages.js').Pages
|
|
49
50
|
type Procedure = keyof typeof import('./enumerations/procedures.js').Procedures
|
|
50
|
-
type Feature = Domain | Procedure
|
|
51
|
+
type Feature = Domain | Page | Procedure
|
|
51
52
|
|
|
52
53
|
type Backend = keyof typeof import('./enumerations/backends.js').Backends
|
|
53
54
|
type Frontend = keyof typeof import('./enumerations/frontends.js').Frontends
|
|
@@ -56,4 +57,10 @@ type Service = Backend | Frontend
|
|
|
56
57
|
type Role = keyof typeof import('./enumerations/roles.js').Roles
|
|
57
58
|
|
|
58
59
|
type GameStatus =
|
|
59
|
-
keyof typeof import('./enumerations/game-statuses.
|
|
60
|
+
keyof typeof import('./enumerations/game-statuses.js').GameStatuses
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Misc
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
type Icon = keyof typeof import('./enumerations/icons.js').Icons
|
package/source/index.d.ts
CHANGED
|
@@ -21,12 +21,14 @@ export * from './enumerations/icons.js'
|
|
|
21
21
|
export * from './enumerations/kinds.js'
|
|
22
22
|
export * from './enumerations/methods.js'
|
|
23
23
|
export * from './enumerations/networks.js'
|
|
24
|
+
export * from './enumerations/pages.js'
|
|
24
25
|
export * from './enumerations/phases.js'
|
|
25
26
|
export * from './enumerations/procedures.js'
|
|
26
27
|
export * from './enumerations/regexps.js'
|
|
27
28
|
export * from './enumerations/requirements.js'
|
|
28
29
|
export * from './enumerations/roles.js'
|
|
29
30
|
export * from './enumerations/services.js'
|
|
31
|
+
|
|
30
32
|
export * from './functions/fetch.js'
|
|
31
33
|
export * from './functions/origin.js'
|
|
32
34
|
export * from './functions/pathname.js'
|
package/source/index.js
CHANGED
|
@@ -21,6 +21,7 @@ export * from './enumerations/icons.js'
|
|
|
21
21
|
export * from './enumerations/kinds.js'
|
|
22
22
|
export * from './enumerations/methods.js'
|
|
23
23
|
export * from './enumerations/networks.js'
|
|
24
|
+
export * from './enumerations/pages.js'
|
|
24
25
|
export * from './enumerations/phases.js'
|
|
25
26
|
export * from './enumerations/procedures.js'
|
|
26
27
|
export * from './enumerations/regexps.js'
|