@shakerquiz/utilities 4.0.44 → 4.0.46

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/utilities",
4
- "version": "4.0.44",
4
+ "version": "4.0.46",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -5,7 +5,6 @@ export const RouteExcessiveCardinality = Object.freeze(
5
5
  'role': '1',
6
6
  'roles': 'n',
7
7
  'user': '1',
8
- 'user/id': '1/1',
9
8
  'user/password': '1/1',
10
9
  'user/role': '1/1',
11
10
  'user/city': '1/1',
@@ -37,14 +36,15 @@ export const RouteExcessiveCardinality = Object.freeze(
37
36
  'venue/city': '1/1',
38
37
  'venues': 'n',
39
38
  'venues/city': 'n/1',
39
+ 'venues/search': 'n/1',
40
40
  'cover': '1',
41
41
  'theme': '1',
42
42
  'theme/cover': '1/1',
43
43
  'themes': 'n',
44
44
  'themes/cover': 'n/1',
45
45
  'themes/games': 'n/n',
46
+ 'themes/search': 'n/1',
46
47
  'game': '1',
47
- 'game/id': '1/1',
48
48
  'game/status': '1/1',
49
49
  'game/city': '1/1',
50
50
  'game/registration': '1/1',
@@ -67,6 +67,7 @@ export const RouteExcessiveCardinality = Object.freeze(
67
67
  'games/theme': 'n/1',
68
68
  'games/theme/cover': 'n/1/1',
69
69
  'games/venue': 'n/1',
70
+ 'games/search': 'n/1',
70
71
  'registration': '1',
71
72
  'registration/status': '1/1',
72
73
  'registration/creation': '1/1',
@@ -88,6 +89,7 @@ export const RouteExcessiveCardinality = Object.freeze(
88
89
  'registrations/game/status': 'n/1/1',
89
90
  'registrations/game/theme': 'n/1/1',
90
91
  'registrations/export': 'n/1',
92
+ 'registrations/search': 'n/1',
91
93
  'telegram/webhook': '1/1',
92
94
  'telegram/registration/mailing': '1/1/1',
93
95
  'chatapp/webhook': '1/1',
@@ -103,7 +105,6 @@ export const RouteCardinality = Object.freeze(
103
105
  'role': '1',
104
106
  'roles': 'n',
105
107
  'user': '1',
106
- 'user/id': '1/1',
107
108
  'user/password': '1/1',
108
109
  'user/role': '1/1',
109
110
  'user/city': '1/1',
@@ -135,14 +136,15 @@ export const RouteCardinality = Object.freeze(
135
136
  'venue/city': '1/1',
136
137
  'venues': 'n',
137
138
  'venues/city': 'n/1',
139
+ 'venues/search': 'n/1',
138
140
  'cover': '1',
139
141
  'theme': '1',
140
142
  'theme/cover': '1/1',
141
143
  'themes': 'n',
142
144
  'themes/cover': 'n/1',
143
145
  'themes/games': 'n/n',
146
+ 'themes/search': 'n/1',
144
147
  'game': '1',
145
- 'game/id': '1/1',
146
148
  'game/status': '1/1',
147
149
  'game/city': '1/1',
148
150
  'game/registration': '1/1',
@@ -165,6 +167,7 @@ export const RouteCardinality = Object.freeze(
165
167
  'games/theme': 'n/1',
166
168
  'games/theme/cover': 'n/1',
167
169
  'games/venue': 'n/1',
170
+ 'games/search': 'n/1',
168
171
  'registration': '1',
169
172
  'registration/status': '1/1',
170
173
  'registration/creation': '1/1',
@@ -186,6 +189,7 @@ export const RouteCardinality = Object.freeze(
186
189
  'registrations/game/status': 'n/1',
187
190
  'registrations/game/theme': 'n/1',
188
191
  'registrations/export': 'n/1',
192
+ 'registrations/search': 'n/1',
189
193
  'telegram/webhook': '1/1',
190
194
  'telegram/registration/mailing': '1/1',
191
195
  'chatapp/webhook': '1/1',
@@ -201,7 +205,6 @@ export const RoutePathname = Object.freeze(
201
205
  'role': 'role/:role',
202
206
  'roles': 'roles',
203
207
  'user': 'user/:user',
204
- 'user/id': 'user/:user/id',
205
208
  'user/password': 'user/:user/password',
206
209
  'user/role': 'user/:user/role/:role',
207
210
  'user/city': 'user/:user/city/:city',
@@ -233,14 +236,15 @@ export const RoutePathname = Object.freeze(
233
236
  'venue/city': 'venue/:venue/city/:city',
234
237
  'venues': 'venues',
235
238
  'venues/city': 'venues/city/:city',
239
+ 'venues/search': 'venues/search',
236
240
  'cover': 'cover/:cover',
237
241
  'theme': 'theme/:theme',
238
242
  'theme/cover': 'theme/:theme/cover/:cover',
239
243
  'themes': 'themes',
240
244
  'themes/cover': 'themes/cover/:cover',
241
245
  'themes/games': 'themes/games',
246
+ 'themes/search': 'themes/search',
242
247
  'game': 'game/:game',
243
- 'game/id': 'game/:game/id',
244
248
  'game/status': 'game/:game/status/:status',
245
249
  'game/city': 'game/:game/city/:city',
246
250
  'game/registration': 'game/:game/registration/:registration',
@@ -263,6 +267,7 @@ export const RoutePathname = Object.freeze(
263
267
  'games/theme': 'games/theme/:theme',
264
268
  'games/theme/cover': 'games/theme/:theme/cover/:cover',
265
269
  'games/venue': 'games/venue/:venue',
270
+ 'games/search': 'games/search',
266
271
  'registration': 'registration/:registration',
267
272
  'registration/status': 'registration/:registration/status/:status',
268
273
  'registration/creation': 'registration/:registration/creation',
@@ -284,6 +289,7 @@ export const RoutePathname = Object.freeze(
284
289
  'registrations/game/status': 'registrations/game/:game/status/:status',
285
290
  'registrations/game/theme': 'registrations/game/:game/theme/:theme',
286
291
  'registrations/export': 'registrations/export',
292
+ 'registrations/search': 'registrations/search',
287
293
  'telegram/webhook': 'telegram/webhook',
288
294
  'telegram/registration/mailing': 'telegram/registration/:registration/mailing',
289
295
  'chatapp/webhook': 'chatapp/webhook',
@@ -303,9 +309,6 @@ export const RouteParameters = Object.freeze(
303
309
  'user': [
304
310
  ':user',
305
311
  ],
306
- 'user/id': [
307
- ':user',
308
- ],
309
312
  'user/password': [
310
313
  ':user',
311
314
  ],
@@ -386,6 +389,7 @@ export const RouteParameters = Object.freeze(
386
389
  'venues/city': [
387
390
  ':city',
388
391
  ],
392
+ 'venues/search': [],
389
393
  'cover': [
390
394
  ':cover',
391
395
  ],
@@ -401,12 +405,10 @@ export const RouteParameters = Object.freeze(
401
405
  ':cover',
402
406
  ],
403
407
  'themes/games': [],
408
+ 'themes/search': [],
404
409
  'game': [
405
410
  ':game',
406
411
  ],
407
- 'game/id': [
408
- ':game',
409
- ],
410
412
  'game/status': [
411
413
  ':game',
412
414
  ':status',
@@ -477,6 +479,7 @@ export const RouteParameters = Object.freeze(
477
479
  'games/venue': [
478
480
  ':venue',
479
481
  ],
482
+ 'games/search': [],
480
483
  'registration': [
481
484
  ':registration',
482
485
  ],
@@ -546,6 +549,7 @@ export const RouteParameters = Object.freeze(
546
549
  ':theme',
547
550
  ],
548
551
  'registrations/export': [],
552
+ 'registrations/search': [],
549
553
  'telegram/webhook': [],
550
554
  'telegram/registration/mailing': [
551
555
  ':registration',
@@ -569,7 +573,6 @@ export const PathnameRoute = Object.freeze(
569
573
  'role/:role': 'role',
570
574
  'roles': 'roles',
571
575
  'user/:user': 'user',
572
- 'user/:user/id': 'user/id',
573
576
  'user/:user/password': 'user/password',
574
577
  'user/:user/role/:role': 'user/role',
575
578
  'user/:user/city/:city': 'user/city',
@@ -601,14 +604,15 @@ export const PathnameRoute = Object.freeze(
601
604
  'venue/:venue/city/:city': 'venue/city',
602
605
  'venues': 'venues',
603
606
  'venues/city/:city': 'venues/city',
607
+ 'venues/search': 'venues/search',
604
608
  'cover/:cover': 'cover',
605
609
  'theme/:theme': 'theme',
606
610
  'theme/:theme/cover/:cover': 'theme/cover',
607
611
  'themes': 'themes',
608
612
  'themes/cover/:cover': 'themes/cover',
609
613
  'themes/games': 'themes/games',
614
+ 'themes/search': 'themes/search',
610
615
  'game/:game': 'game',
611
- 'game/:game/id': 'game/id',
612
616
  'game/:game/status/:status': 'game/status',
613
617
  'game/:game/city/:city': 'game/city',
614
618
  'game/:game/registration/:registration': 'game/registration',
@@ -631,6 +635,7 @@ export const PathnameRoute = Object.freeze(
631
635
  'games/theme/:theme': 'games/theme',
632
636
  'games/theme/:theme/cover/:cover': 'games/theme/cover',
633
637
  'games/venue/:venue': 'games/venue',
638
+ 'games/search': 'games/search',
634
639
  'registration/:registration': 'registration',
635
640
  'registration/:registration/status/:status': 'registration/status',
636
641
  'registration/:registration/creation': 'registration/creation',
@@ -652,6 +657,7 @@ export const PathnameRoute = Object.freeze(
652
657
  'registrations/game/:game/status/:status': 'registrations/game/status',
653
658
  'registrations/game/:game/theme/:theme': 'registrations/game/theme',
654
659
  'registrations/export': 'registrations/export',
660
+ 'registrations/search': 'registrations/search',
655
661
  'telegram/webhook': 'telegram/webhook',
656
662
  'telegram/registration/:registration/mailing': 'telegram/registration/mailing',
657
663
  'chatapp/webhook': 'chatapp/webhook',
@@ -671,9 +677,6 @@ export const PathnameParameters = Object.freeze(
671
677
  'user/:user': [
672
678
  ':user',
673
679
  ],
674
- 'user/:user/id': [
675
- ':user',
676
- ],
677
680
  'user/:user/password': [
678
681
  ':user',
679
682
  ],
@@ -754,6 +757,7 @@ export const PathnameParameters = Object.freeze(
754
757
  'venues/city/:city': [
755
758
  ':city',
756
759
  ],
760
+ 'venues/search': [],
757
761
  'cover/:cover': [
758
762
  ':cover',
759
763
  ],
@@ -769,12 +773,10 @@ export const PathnameParameters = Object.freeze(
769
773
  ':cover',
770
774
  ],
771
775
  'themes/games': [],
776
+ 'themes/search': [],
772
777
  'game/:game': [
773
778
  ':game',
774
779
  ],
775
- 'game/:game/id': [
776
- ':game',
777
- ],
778
780
  'game/:game/status/:status': [
779
781
  ':game',
780
782
  ':status',
@@ -845,6 +847,7 @@ export const PathnameParameters = Object.freeze(
845
847
  'games/venue/:venue': [
846
848
  ':venue',
847
849
  ],
850
+ 'games/search': [],
848
851
  'registration/:registration': [
849
852
  ':registration',
850
853
  ],
@@ -914,6 +917,7 @@ export const PathnameParameters = Object.freeze(
914
917
  ':theme',
915
918
  ],
916
919
  'registrations/export': [],
920
+ 'registrations/search': [],
917
921
  'telegram/webhook': [],
918
922
  'telegram/registration/:registration/mailing': [
919
923
  ':registration',
@@ -954,7 +958,6 @@ export const RouteBreakdown = Object.freeze(
954
958
  'role': 'role',
955
959
  'roles': 'role',
956
960
  'user': 'user',
957
- 'user/id': 'user/id',
958
961
  'user/password': 'user/password',
959
962
  'user/role': 'user/role',
960
963
  'user/city': 'user/city',
@@ -986,14 +989,15 @@ export const RouteBreakdown = Object.freeze(
986
989
  'venue/city': 'venue/city',
987
990
  'venues': 'venue',
988
991
  'venues/city': 'venue/city',
992
+ 'venues/search': 'venue/search',
989
993
  'cover': 'cover',
990
994
  'theme': 'theme',
991
995
  'theme/cover': 'theme/cover',
992
996
  'themes': 'theme',
993
997
  'themes/cover': 'theme/cover',
994
998
  'themes/games': 'theme/games',
999
+ 'themes/search': 'theme/search',
995
1000
  'game': 'game',
996
- 'game/id': 'game/id',
997
1001
  'game/status': 'game/status',
998
1002
  'game/city': 'game/city',
999
1003
  'game/registration': 'game/registration',
@@ -1016,6 +1020,7 @@ export const RouteBreakdown = Object.freeze(
1016
1020
  'games/theme': 'game/theme',
1017
1021
  'games/theme/cover': 'game/theme/cover',
1018
1022
  'games/venue': 'game/venue',
1023
+ 'games/search': 'game/search',
1019
1024
  'registration': 'registration',
1020
1025
  'registration/status': 'registration/status',
1021
1026
  'registration/creation': 'registration/creation',
@@ -1037,6 +1042,7 @@ export const RouteBreakdown = Object.freeze(
1037
1042
  'registrations/game/status': 'registration/game/status',
1038
1043
  'registrations/game/theme': 'registration/game/theme',
1039
1044
  'registrations/export': 'registration/export',
1045
+ 'registrations/search': 'registration/search',
1040
1046
  'telegram/webhook': 'telegram/webhook',
1041
1047
  'telegram/registration/mailing': 'telegram/registration/mailing',
1042
1048
  'chatapp/webhook': 'chatapp/webhook',
@@ -1052,7 +1058,6 @@ export const RouteRelation = Object.freeze(
1052
1058
  'role': 'role',
1053
1059
  'roles': 'role',
1054
1060
  'user': 'user',
1055
- 'user/id': 'user/id',
1056
1061
  'user/password': 'user/password',
1057
1062
  'user/role': 'user/role',
1058
1063
  'user/city': 'user/city',
@@ -1084,14 +1089,15 @@ export const RouteRelation = Object.freeze(
1084
1089
  'venue/city': 'venue/city',
1085
1090
  'venues': 'venue',
1086
1091
  'venues/city': 'venue/city',
1092
+ 'venues/search': 'venue/search',
1087
1093
  'cover': 'cover',
1088
1094
  'theme': 'theme',
1089
1095
  'theme/cover': 'theme/cover',
1090
1096
  'themes': 'theme',
1091
1097
  'themes/cover': 'theme/cover',
1092
1098
  'themes/games': 'theme/game',
1099
+ 'themes/search': 'theme/search',
1093
1100
  'game': 'game',
1094
- 'game/id': 'game/id',
1095
1101
  'game/status': 'game/status',
1096
1102
  'game/city': 'game/city',
1097
1103
  'game/registration': 'game/registration',
@@ -1114,6 +1120,7 @@ export const RouteRelation = Object.freeze(
1114
1120
  'games/theme': 'game/theme',
1115
1121
  'games/theme/cover': 'theme/cover',
1116
1122
  'games/venue': 'game/venue',
1123
+ 'games/search': 'game/search',
1117
1124
  'registration': 'registration',
1118
1125
  'registration/status': 'registration/status',
1119
1126
  'registration/creation': 'registration/creation',
@@ -1135,6 +1142,7 @@ export const RouteRelation = Object.freeze(
1135
1142
  'registrations/game/status': 'game/status',
1136
1143
  'registrations/game/theme': 'game/theme',
1137
1144
  'registrations/export': 'registration/export',
1145
+ 'registrations/search': 'registration/search',
1138
1146
  'telegram/webhook': 'telegram/webhook',
1139
1147
  'telegram/registration/mailing': 'registration/mailing',
1140
1148
  'chatapp/webhook': 'chatapp/webhook',
@@ -1150,7 +1158,6 @@ export const RouteService = Object.freeze(
1150
1158
  'role': 'Roles',
1151
1159
  'roles': 'Roles',
1152
1160
  'user': 'Users',
1153
- 'user/id': 'Users',
1154
1161
  'user/password': 'Users',
1155
1162
  'user/role': 'Users',
1156
1163
  'user/city': 'Users',
@@ -1182,14 +1189,15 @@ export const RouteService = Object.freeze(
1182
1189
  'venue/city': 'Venues',
1183
1190
  'venues': 'Venues',
1184
1191
  'venues/city': 'Venues',
1192
+ 'venues/search': 'Venues',
1185
1193
  'cover': 'Minio',
1186
1194
  'theme': 'Themes',
1187
1195
  'theme/cover': 'Themes',
1188
1196
  'themes': 'Themes',
1189
1197
  'themes/cover': 'Themes',
1190
1198
  'themes/games': 'Themes',
1199
+ 'themes/search': 'Themes',
1191
1200
  'game': 'Games',
1192
- 'game/id': 'Games',
1193
1201
  'game/status': 'Games',
1194
1202
  'game/city': 'Games',
1195
1203
  'game/registration': 'Games',
@@ -1212,6 +1220,7 @@ export const RouteService = Object.freeze(
1212
1220
  'games/theme': 'Games',
1213
1221
  'games/theme/cover': 'Games',
1214
1222
  'games/venue': 'Games',
1223
+ 'games/search': 'Games',
1215
1224
  'registration': 'Registrations',
1216
1225
  'registration/status': 'Registrations',
1217
1226
  'registration/creation': 'Registrations',
@@ -1233,6 +1242,7 @@ export const RouteService = Object.freeze(
1233
1242
  'registrations/game/status': 'Registrations',
1234
1243
  'registrations/game/theme': 'Registrations',
1235
1244
  'registrations/export': 'Registrations',
1245
+ 'registrations/search': 'Registrations',
1236
1246
  'telegram/webhook': 'Telegram',
1237
1247
  'telegram/registration/mailing': 'Telegram',
1238
1248
  'chatapp/webhook': 'Chatapp',
@@ -1251,7 +1261,6 @@ export const ServiceRoutes = Object.freeze(
1251
1261
  ],
1252
1262
  'Users': [
1253
1263
  'user',
1254
- 'user/id',
1255
1264
  'user/password',
1256
1265
  'user/role',
1257
1266
  'user/city',
@@ -1291,6 +1300,7 @@ export const ServiceRoutes = Object.freeze(
1291
1300
  'venue/city',
1292
1301
  'venues',
1293
1302
  'venues/city',
1303
+ 'venues/search',
1294
1304
  ],
1295
1305
  'Minio': [
1296
1306
  'cover',
@@ -1301,10 +1311,10 @@ export const ServiceRoutes = Object.freeze(
1301
1311
  'themes',
1302
1312
  'themes/cover',
1303
1313
  'themes/games',
1314
+ 'themes/search',
1304
1315
  ],
1305
1316
  'Games': [
1306
1317
  'game',
1307
- 'game/id',
1308
1318
  'game/status',
1309
1319
  'game/city',
1310
1320
  'game/registration',
@@ -1327,6 +1337,7 @@ export const ServiceRoutes = Object.freeze(
1327
1337
  'games/theme',
1328
1338
  'games/theme/cover',
1329
1339
  'games/venue',
1340
+ 'games/search',
1330
1341
  ],
1331
1342
  'Registrations': [
1332
1343
  'registration',
@@ -1350,6 +1361,7 @@ export const ServiceRoutes = Object.freeze(
1350
1361
  'registrations/game/status',
1351
1362
  'registrations/game/theme',
1352
1363
  'registrations/export',
1364
+ 'registrations/search',
1353
1365
  ],
1354
1366
  'Telegram': [
1355
1367
  'telegram/webhook',
@@ -40,7 +40,7 @@ export const Keys = Object.freeze(
40
40
  'bitrix',
41
41
  'webhook',
42
42
  'source',
43
- 'id',
43
+ 'search'
44
44
  ]),
45
45
  )
46
46
 
@@ -3,7 +3,6 @@ export const Routes = Object.freeze(
3
3
  'role',
4
4
  'roles',
5
5
  'user',
6
- 'user/id',
7
6
  'user/password',
8
7
  'user/role',
9
8
  'user/city',
@@ -35,14 +34,15 @@ export const Routes = Object.freeze(
35
34
  'venue/city',
36
35
  'venues',
37
36
  'venues/city',
37
+ 'venues/search',
38
38
  'cover',
39
39
  'theme',
40
40
  'theme/cover',
41
41
  'themes',
42
42
  'themes/cover',
43
43
  'themes/games',
44
+ 'themes/search',
44
45
  'game',
45
- 'game/id',
46
46
  'game/status',
47
47
  'game/city',
48
48
  'game/registration',
@@ -65,6 +65,7 @@ export const Routes = Object.freeze(
65
65
  'games/theme',
66
66
  'games/theme/cover',
67
67
  'games/venue',
68
+ 'games/search',
68
69
  'registration',
69
70
  'registration/status',
70
71
  'registration/creation',
@@ -86,13 +87,14 @@ export const Routes = Object.freeze(
86
87
  'registrations/game/status',
87
88
  'registrations/game/theme',
88
89
  'registrations/export',
90
+ 'registrations/search',
89
91
  'telegram/webhook',
90
92
  'telegram/registration/mailing',
91
93
  'chatapp/webhook',
92
94
  'chatapp/registration',
93
95
  'chatapp/registration/mailing',
94
96
  'bitrix/registration',
95
- 'source',
97
+ 'source'
96
98
  ]),
97
99
  )
98
100
 
@@ -366,7 +366,7 @@ export const Segments = Object.freeze(
366
366
  ),
367
367
  Object.freeze(
368
368
  /** @type {const} */ ({
369
- key: Key['id'],
369
+ key: Key['search'],
370
370
  cardinality: '1',
371
371
  relation: undefined,
372
372
  service: undefined,