@shakerquiz/utilities 0.4.76 → 0.4.78
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/core/features.d.ts +64 -83
- package/source/enumerations/core/features.js +69 -66
- package/source/enumerations/entities/city-affilations.js +11 -4
- package/source/enumerations/entities/game-statuses.js +113 -11
- package/source/enumerations/entities/registration-attributes.js +50 -24
- package/source/enumerations/entities/registration-channels.js +26 -5
- package/source/enumerations/entities/registration-lineups.js +39 -7
- package/source/enumerations/entities/registration-mailings.js +24 -6
- package/source/enumerations/entities/registration-statuses.js +49 -12
- package/source/enumerations/entities/roles.js +13 -5
- package/source/enumerations/entities/venue-statuses.js +30 -4
- package/source/enumerations/misc/icons.js +652 -324
- package/source/enumerations/misc/phases.js +42 -7
- package/source/misc.d.ts +34 -18
- package/source/enumerations/entities/city-affilations.d.ts +0 -1
- package/source/enumerations/entities/game-statuses.d.ts +0 -1
- package/source/enumerations/entities/registration-attributes.d.ts +0 -2
- package/source/enumerations/entities/registration-channels.d.ts +0 -1
- package/source/enumerations/entities/registration-lineups.d.ts +0 -5
- package/source/enumerations/entities/registration-mailings.d.ts +0 -1
- package/source/enumerations/entities/registration-statuses.d.ts +0 -5
- package/source/enumerations/entities/roles.d.ts +0 -1
- package/source/enumerations/entities/venue-statuses.d.ts +0 -1
- package/source/enumerations/misc/icons.d.ts +0 -1
- package/source/enumerations/misc/phases.d.ts +0 -1
package/package.json
CHANGED
|
@@ -38,119 +38,100 @@ export const FeatureKindPathnames: Array<[feature: Feature, kind: Kind, pathname
|
|
|
38
38
|
export const FeatureKindPatterns: Array<[feature: Feature, kind: Kind, pattern: URLPattern]>;
|
|
39
39
|
export function getPathname(feature: Feature, kind: Kind): string;
|
|
40
40
|
export function getPattern(feature: Feature, kind: Kind): any;
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
41
|
+
export const RoutePathname: {
|
|
42
|
+
readonly users: "/users";
|
|
43
|
+
readonly user: "/users/:user?";
|
|
44
|
+
readonly roles: "/roles";
|
|
45
|
+
readonly role: "/roles/:role?";
|
|
46
|
+
readonly checkins: "/checkins";
|
|
47
|
+
readonly checkin: "/checkins/:checkin?";
|
|
48
|
+
readonly countries: "/countries";
|
|
49
|
+
readonly country: "/countries/:country?";
|
|
50
|
+
readonly currencies: "/currencies";
|
|
51
|
+
readonly currency: "/currencies/:currency?";
|
|
52
|
+
readonly cities: "/cities";
|
|
53
|
+
readonly city: "/cities/:city?";
|
|
54
|
+
readonly venues: "/venues";
|
|
55
|
+
readonly venue: "/venues/:venue?";
|
|
56
|
+
readonly games: "/games";
|
|
57
|
+
readonly 'games/attendance': "/games/attendance";
|
|
58
|
+
readonly 'games/amounts': "/games/amounts";
|
|
59
|
+
readonly game: "/games/:game?";
|
|
60
|
+
readonly 'game/attendance': "/games/:game/attendance";
|
|
61
|
+
readonly themes: "/themes";
|
|
62
|
+
readonly theme: "/themes/:theme?";
|
|
63
|
+
readonly registrations: "/registrations";
|
|
64
|
+
readonly registration: "/registrations/:registration?";
|
|
65
|
+
readonly mailings: "/mailings";
|
|
66
|
+
readonly mailing: "/mailings/:mailing?";
|
|
67
|
+
};
|
|
65
68
|
export namespace RoutePathParams {
|
|
69
|
+
let users: readonly [];
|
|
70
|
+
let user: readonly [":user?"];
|
|
71
|
+
let roles: readonly [];
|
|
72
|
+
let role: readonly [":role?"];
|
|
73
|
+
let checkins: readonly [];
|
|
74
|
+
let checkin: readonly [":checkin?"];
|
|
75
|
+
let countries: readonly [];
|
|
76
|
+
let country: readonly [":country?"];
|
|
77
|
+
let currencies: readonly [];
|
|
78
|
+
let currency: readonly [":currency?"];
|
|
79
|
+
let cities: readonly [];
|
|
80
|
+
let city: readonly [":city?"];
|
|
81
|
+
let venues: readonly [];
|
|
82
|
+
let venue: readonly [":venue?"];
|
|
83
|
+
let games: readonly [];
|
|
84
|
+
let game: readonly [":game?"];
|
|
85
|
+
let themes: readonly [];
|
|
86
|
+
let theme: readonly [":theme?"];
|
|
87
|
+
let registrations: readonly [];
|
|
88
|
+
let registration: readonly [":registration?"];
|
|
89
|
+
let mailings: readonly [];
|
|
90
|
+
let mailing: readonly [":mailing?"];
|
|
91
|
+
}
|
|
92
|
+
export namespace RouteSearchParams {
|
|
66
93
|
let users_1: readonly [];
|
|
67
94
|
export { users_1 as users };
|
|
68
|
-
let user_1: readonly [
|
|
95
|
+
let user_1: readonly [];
|
|
69
96
|
export { user_1 as user };
|
|
70
97
|
let roles_1: readonly [];
|
|
71
98
|
export { roles_1 as roles };
|
|
72
|
-
let role_1: readonly [
|
|
99
|
+
let role_1: readonly [];
|
|
73
100
|
export { role_1 as role };
|
|
74
101
|
let checkins_1: readonly [];
|
|
75
102
|
export { checkins_1 as checkins };
|
|
76
|
-
let checkin_1: readonly [
|
|
103
|
+
let checkin_1: readonly [];
|
|
77
104
|
export { checkin_1 as checkin };
|
|
78
105
|
let countries_1: readonly [];
|
|
79
106
|
export { countries_1 as countries };
|
|
80
|
-
let country_1: readonly [
|
|
107
|
+
let country_1: readonly [];
|
|
81
108
|
export { country_1 as country };
|
|
82
109
|
let currencies_1: readonly [];
|
|
83
110
|
export { currencies_1 as currencies };
|
|
84
|
-
let currency_1: readonly [
|
|
111
|
+
let currency_1: readonly [];
|
|
85
112
|
export { currency_1 as currency };
|
|
86
113
|
let cities_1: readonly [];
|
|
87
114
|
export { cities_1 as cities };
|
|
88
|
-
let city_1: readonly [
|
|
115
|
+
let city_1: readonly [];
|
|
89
116
|
export { city_1 as city };
|
|
90
117
|
let venues_1: readonly [];
|
|
91
118
|
export { venues_1 as venues };
|
|
92
|
-
let venue_1: readonly [
|
|
119
|
+
let venue_1: readonly [];
|
|
93
120
|
export { venue_1 as venue };
|
|
94
|
-
let games_1: readonly [];
|
|
121
|
+
let games_1: readonly ["city", "status"];
|
|
95
122
|
export { games_1 as games };
|
|
96
|
-
let game_1: readonly ["
|
|
123
|
+
let game_1: readonly ["city"];
|
|
97
124
|
export { game_1 as game };
|
|
98
125
|
let themes_1: readonly [];
|
|
99
126
|
export { themes_1 as themes };
|
|
100
|
-
let theme_1: readonly [
|
|
127
|
+
let theme_1: readonly [];
|
|
101
128
|
export { theme_1 as theme };
|
|
102
|
-
let registrations_1: readonly [];
|
|
129
|
+
let registrations_1: readonly ["game", "city"];
|
|
103
130
|
export { registrations_1 as registrations };
|
|
104
|
-
let registration_1: readonly [
|
|
131
|
+
let registration_1: readonly [];
|
|
105
132
|
export { registration_1 as registration };
|
|
106
133
|
let mailings_1: readonly [];
|
|
107
134
|
export { mailings_1 as mailings };
|
|
108
|
-
let mailing_1: readonly [
|
|
135
|
+
let mailing_1: readonly [];
|
|
109
136
|
export { mailing_1 as mailing };
|
|
110
137
|
}
|
|
111
|
-
export namespace RouteSearchParams {
|
|
112
|
-
let users_2: readonly [];
|
|
113
|
-
export { users_2 as users };
|
|
114
|
-
let user_2: readonly [];
|
|
115
|
-
export { user_2 as user };
|
|
116
|
-
let roles_2: readonly [];
|
|
117
|
-
export { roles_2 as roles };
|
|
118
|
-
let role_2: readonly [];
|
|
119
|
-
export { role_2 as role };
|
|
120
|
-
let checkins_2: readonly [];
|
|
121
|
-
export { checkins_2 as checkins };
|
|
122
|
-
let checkin_2: readonly [];
|
|
123
|
-
export { checkin_2 as checkin };
|
|
124
|
-
let countries_2: readonly [];
|
|
125
|
-
export { countries_2 as countries };
|
|
126
|
-
let country_2: readonly [];
|
|
127
|
-
export { country_2 as country };
|
|
128
|
-
let currencies_2: readonly [];
|
|
129
|
-
export { currencies_2 as currencies };
|
|
130
|
-
let currency_2: readonly [];
|
|
131
|
-
export { currency_2 as currency };
|
|
132
|
-
let cities_2: readonly [];
|
|
133
|
-
export { cities_2 as cities };
|
|
134
|
-
let city_2: readonly [];
|
|
135
|
-
export { city_2 as city };
|
|
136
|
-
let venues_2: readonly [];
|
|
137
|
-
export { venues_2 as venues };
|
|
138
|
-
let venue_2: readonly [];
|
|
139
|
-
export { venue_2 as venue };
|
|
140
|
-
let games_2: readonly ["city", "status"];
|
|
141
|
-
export { games_2 as games };
|
|
142
|
-
let game_2: readonly ["city"];
|
|
143
|
-
export { game_2 as game };
|
|
144
|
-
let themes_2: readonly [];
|
|
145
|
-
export { themes_2 as themes };
|
|
146
|
-
let theme_2: readonly [];
|
|
147
|
-
export { theme_2 as theme };
|
|
148
|
-
let registrations_2: readonly ["game", "city"];
|
|
149
|
-
export { registrations_2 as registrations };
|
|
150
|
-
let registration_2: readonly [];
|
|
151
|
-
export { registration_2 as registration };
|
|
152
|
-
let mailings_2: readonly [];
|
|
153
|
-
export { mailings_2 as mailings };
|
|
154
|
-
let mailing_2: readonly [];
|
|
155
|
-
export { mailing_2 as mailing };
|
|
156
|
-
}
|
|
@@ -205,106 +205,109 @@ export var getPattern = (feature, kind) => {
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
export var RoutePathname = /** @type {const} */ ({
|
|
208
|
-
users: '/users',
|
|
209
|
-
user: '/users/:user?',
|
|
208
|
+
'users': '/users',
|
|
209
|
+
'user': '/users/:user?',
|
|
210
210
|
|
|
211
|
-
roles: '/roles',
|
|
212
|
-
role: '/roles/:role?',
|
|
211
|
+
'roles': '/roles',
|
|
212
|
+
'role': '/roles/:role?',
|
|
213
213
|
|
|
214
|
-
checkins: '/checkins',
|
|
215
|
-
checkin: '/checkins/:checkin?',
|
|
214
|
+
'checkins': '/checkins',
|
|
215
|
+
'checkin': '/checkins/:checkin?',
|
|
216
216
|
|
|
217
|
-
countries: '/countries',
|
|
218
|
-
country: '/countries/:country?',
|
|
217
|
+
'countries': '/countries',
|
|
218
|
+
'country': '/countries/:country?',
|
|
219
219
|
|
|
220
|
-
currencies: '/currencies',
|
|
221
|
-
currency: '/currencies/:currency?',
|
|
220
|
+
'currencies': '/currencies',
|
|
221
|
+
'currency': '/currencies/:currency?',
|
|
222
222
|
|
|
223
|
-
cities: '/cities',
|
|
224
|
-
city: '/cities/:city?',
|
|
223
|
+
'cities': '/cities',
|
|
224
|
+
'city': '/cities/:city?',
|
|
225
225
|
|
|
226
|
-
venues: '/venues',
|
|
227
|
-
venue: '/venues/:venue?',
|
|
226
|
+
'venues': '/venues',
|
|
227
|
+
'venue': '/venues/:venue?',
|
|
228
228
|
|
|
229
|
-
games: '/games',
|
|
230
|
-
|
|
229
|
+
'games': '/games',
|
|
230
|
+
'games/attendance': '/games/attendance',
|
|
231
|
+
'games/amounts': '/games/amounts',
|
|
232
|
+
'game': '/games/:game?',
|
|
233
|
+
'game/attendance': '/games/:game/attendance',
|
|
231
234
|
|
|
232
|
-
themes: '/themes',
|
|
233
|
-
theme: '/themes/:theme?',
|
|
235
|
+
'themes': '/themes',
|
|
236
|
+
'theme': '/themes/:theme?',
|
|
234
237
|
|
|
235
|
-
registrations: '/registrations',
|
|
236
|
-
registration: '/registrations/:registration?',
|
|
238
|
+
'registrations': '/registrations',
|
|
239
|
+
'registration': '/registrations/:registration?',
|
|
237
240
|
|
|
238
|
-
mailings: '/mailings',
|
|
239
|
-
mailing: '/mailings/:mailing?',
|
|
241
|
+
'mailings': '/mailings',
|
|
242
|
+
'mailing': '/mailings/:mailing?',
|
|
240
243
|
})
|
|
241
244
|
|
|
242
245
|
export var RoutePathParams = /** @type {const} */ ({
|
|
243
|
-
users: [],
|
|
244
|
-
user: [':user?'],
|
|
246
|
+
'users': [],
|
|
247
|
+
'user': [':user?'],
|
|
245
248
|
|
|
246
|
-
roles: [],
|
|
247
|
-
role: [':role?'],
|
|
249
|
+
'roles': [],
|
|
250
|
+
'role': [':role?'],
|
|
248
251
|
|
|
249
|
-
checkins: [],
|
|
250
|
-
checkin: [':checkin?'],
|
|
252
|
+
'checkins': [],
|
|
253
|
+
'checkin': [':checkin?'],
|
|
251
254
|
|
|
252
|
-
countries: [],
|
|
253
|
-
country: [':country?'],
|
|
255
|
+
'countries': [],
|
|
256
|
+
'country': [':country?'],
|
|
254
257
|
|
|
255
|
-
currencies: [],
|
|
256
|
-
currency: [':currency?'],
|
|
258
|
+
'currencies': [],
|
|
259
|
+
'currency': [':currency?'],
|
|
257
260
|
|
|
258
|
-
cities: [],
|
|
259
|
-
city: [':city?'],
|
|
261
|
+
'cities': [],
|
|
262
|
+
'city': [':city?'],
|
|
260
263
|
|
|
261
|
-
venues: [],
|
|
262
|
-
venue: [':venue?'],
|
|
264
|
+
'venues': [],
|
|
265
|
+
'venue': [':venue?'],
|
|
263
266
|
|
|
264
|
-
games: [],
|
|
265
|
-
game: [':game?'],
|
|
267
|
+
'games': [],
|
|
268
|
+
'game': [':game?'],
|
|
266
269
|
|
|
267
|
-
themes: [],
|
|
268
|
-
theme: [':theme?'],
|
|
270
|
+
'themes': [],
|
|
271
|
+
'theme': [':theme?'],
|
|
269
272
|
|
|
270
|
-
registrations: [],
|
|
271
|
-
registration: [':registration?'],
|
|
273
|
+
'registrations': [],
|
|
274
|
+
'registration': [':registration?'],
|
|
272
275
|
|
|
273
|
-
mailings: [],
|
|
274
|
-
mailing: [':mailing?'],
|
|
276
|
+
'mailings': [],
|
|
277
|
+
'mailing': [':mailing?'],
|
|
275
278
|
})
|
|
276
279
|
|
|
277
280
|
export var RouteSearchParams = /** @type {const} */ ({
|
|
278
|
-
users: [],
|
|
279
|
-
user: [],
|
|
281
|
+
'users': [],
|
|
282
|
+
'user': [],
|
|
280
283
|
|
|
281
|
-
roles: [],
|
|
282
|
-
role: [],
|
|
284
|
+
'roles': [],
|
|
285
|
+
'role': [],
|
|
283
286
|
|
|
284
|
-
checkins: [],
|
|
285
|
-
checkin: [],
|
|
287
|
+
'checkins': [],
|
|
288
|
+
'checkin': [],
|
|
286
289
|
|
|
287
|
-
countries: [],
|
|
288
|
-
country: [],
|
|
290
|
+
'countries': [],
|
|
291
|
+
'country': [],
|
|
289
292
|
|
|
290
|
-
currencies: [],
|
|
291
|
-
currency: [],
|
|
293
|
+
'currencies': [],
|
|
294
|
+
'currency': [],
|
|
292
295
|
|
|
293
|
-
cities: [],
|
|
294
|
-
city: [],
|
|
296
|
+
'cities': [],
|
|
297
|
+
'city': [],
|
|
295
298
|
|
|
296
|
-
venues: [],
|
|
297
|
-
venue: [],
|
|
299
|
+
'venues': [],
|
|
300
|
+
'venue': [],
|
|
298
301
|
|
|
299
|
-
games: ['city', 'status'],
|
|
300
|
-
game: ['city'],
|
|
302
|
+
'games': ['city', 'status'],
|
|
303
|
+
'game': ['city'],
|
|
301
304
|
|
|
302
|
-
themes: [],
|
|
303
|
-
theme: [],
|
|
305
|
+
'themes': [],
|
|
306
|
+
'theme': [],
|
|
304
307
|
|
|
305
|
-
registrations: ['game', 'city'],
|
|
306
|
-
registration: [],
|
|
308
|
+
'registrations': ['game', 'city'],
|
|
309
|
+
'registration': [],
|
|
307
310
|
|
|
308
|
-
mailings: [],
|
|
309
|
-
mailing: [],
|
|
311
|
+
'mailings': [],
|
|
312
|
+
'mailing': [],
|
|
310
313
|
})
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
export var
|
|
2
|
-
'Branch',
|
|
3
|
-
'Franchise',
|
|
4
|
-
|
|
1
|
+
export var CityAffilation = /** @type {const} */ ({
|
|
2
|
+
'Branch': 'Branch',
|
|
3
|
+
'Franchise': 'Franchise',
|
|
4
|
+
})
|
|
5
|
+
|
|
6
|
+
export var CityAffilationWeight = {
|
|
7
|
+
[CityAffilation.Branch]: 0,
|
|
8
|
+
[CityAffilation.Franchise]: 1,
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export var CityAffilations = Object.values(CityAffilation)
|
|
@@ -1,11 +1,113 @@
|
|
|
1
|
-
export var
|
|
2
|
-
'
|
|
3
|
-
'
|
|
4
|
-
'
|
|
5
|
-
'
|
|
6
|
-
'FORINVITES',
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
|
|
1
|
+
export var GameStatus = /** @type {const} */ ({
|
|
2
|
+
'REJECTED': 'REJECTED',
|
|
3
|
+
'MODERATION': 'MODERATION',
|
|
4
|
+
'APPROVED': 'APPROVED',
|
|
5
|
+
'CLOSED': 'CLOSED',
|
|
6
|
+
'FORINVITES': 'FORINVITES',
|
|
7
|
+
'PUBLISHED': 'PUBLISHED',
|
|
8
|
+
'IS_RESERVE': 'IS_RESERVE',
|
|
9
|
+
'FINISHED': 'FINISHED',
|
|
10
|
+
'ARCHIVE': 'ARCHIVE',
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
export var GameStatuses = Object.values(GameStatus)
|
|
14
|
+
|
|
15
|
+
export var GameStatusWeight = {
|
|
16
|
+
[GameStatus.REJECTED]: 0,
|
|
17
|
+
[GameStatus.MODERATION]: 1,
|
|
18
|
+
[GameStatus.APPROVED]: 2,
|
|
19
|
+
[GameStatus.CLOSED]: 3,
|
|
20
|
+
[GameStatus.FORINVITES]: 4,
|
|
21
|
+
[GameStatus.PUBLISHED]: 5,
|
|
22
|
+
[GameStatus.IS_RESERVE]: 6,
|
|
23
|
+
[GameStatus.FINISHED]: 7,
|
|
24
|
+
[GameStatus.ARCHIVE]: 8,
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export var GameStatusTitle = {
|
|
28
|
+
[GameStatus.REJECTED]: 'Отклонено',
|
|
29
|
+
[GameStatus.MODERATION]: 'На проверке',
|
|
30
|
+
[GameStatus.APPROVED]: 'Одобрено',
|
|
31
|
+
[GameStatus.CLOSED]: 'Закрыта',
|
|
32
|
+
[GameStatus.FORINVITES]: 'По приглашению',
|
|
33
|
+
[GameStatus.PUBLISHED]: 'Опубликовано',
|
|
34
|
+
[GameStatus.IS_RESERVE]: 'В резерве',
|
|
35
|
+
[GameStatus.FINISHED]: 'Завершено',
|
|
36
|
+
[GameStatus.ARCHIVE]: 'В архиве',
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** @type {Record<GameStatus, Icon>} */
|
|
40
|
+
export var GameStatusIcon = {
|
|
41
|
+
[GameStatus.REJECTED]: 'hero/outline/x-mark',
|
|
42
|
+
[GameStatus.MODERATION]: 'hero/outline/clock',
|
|
43
|
+
[GameStatus.APPROVED]: 'hero/outline/hand-thumb-up',
|
|
44
|
+
[GameStatus.CLOSED]: 'hero/outline/exclamation-triangle',
|
|
45
|
+
[GameStatus.FORINVITES]: 'hero/outline/lock-closed',
|
|
46
|
+
[GameStatus.PUBLISHED]: 'hero/outline/check-circle',
|
|
47
|
+
[GameStatus.IS_RESERVE]: 'hero/outline/user-plus',
|
|
48
|
+
[GameStatus.FINISHED]: 'hero/outline/check',
|
|
49
|
+
[GameStatus.ARCHIVE]: 'hero/outline/archive-box',
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export var GameStatusColor = {
|
|
53
|
+
[GameStatus.REJECTED]: 'text-danger',
|
|
54
|
+
[GameStatus.MODERATION]: 'text-primary',
|
|
55
|
+
[GameStatus.APPROVED]: 'text-success',
|
|
56
|
+
[GameStatus.CLOSED]: 'text-warning',
|
|
57
|
+
[GameStatus.FORINVITES]: 'text-current',
|
|
58
|
+
[GameStatus.PUBLISHED]: 'text-secondary',
|
|
59
|
+
[GameStatus.IS_RESERVE]: 'text-blue-900',
|
|
60
|
+
[GameStatus.FINISHED]: 'text-success',
|
|
61
|
+
[GameStatus.ARCHIVE]: 'text-current',
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** @type {Record<Role, Record<GameStatus | 'DEFAULT', GameStatus[]>>} */
|
|
65
|
+
export var RoleGameStatusGameStatuses = {
|
|
66
|
+
'admin': {
|
|
67
|
+
'DEFAULT': [
|
|
68
|
+
GameStatus.REJECTED,
|
|
69
|
+
GameStatus.MODERATION,
|
|
70
|
+
GameStatus.APPROVED,
|
|
71
|
+
GameStatus.CLOSED,
|
|
72
|
+
GameStatus.FORINVITES,
|
|
73
|
+
GameStatus.PUBLISHED,
|
|
74
|
+
GameStatus.IS_RESERVE,
|
|
75
|
+
GameStatus.FINISHED,
|
|
76
|
+
GameStatus.ARCHIVE,
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
'organizer': {
|
|
81
|
+
[GameStatus.APPROVED]: [
|
|
82
|
+
GameStatus.APPROVED,
|
|
83
|
+
GameStatus.CLOSED,
|
|
84
|
+
GameStatus.FORINVITES,
|
|
85
|
+
GameStatus.PUBLISHED,
|
|
86
|
+
GameStatus.IS_RESERVE,
|
|
87
|
+
GameStatus.FINISHED,
|
|
88
|
+
GameStatus.ARCHIVE,
|
|
89
|
+
],
|
|
90
|
+
|
|
91
|
+
[GameStatus.MODERATION]: [
|
|
92
|
+
GameStatus.MODERATION,
|
|
93
|
+
],
|
|
94
|
+
|
|
95
|
+
[GameStatus.REJECTED]: [
|
|
96
|
+
GameStatus.REJECTED,
|
|
97
|
+
GameStatus.MODERATION,
|
|
98
|
+
],
|
|
99
|
+
|
|
100
|
+
'DEFAULT': [
|
|
101
|
+
GameStatus.CLOSED,
|
|
102
|
+
GameStatus.FORINVITES,
|
|
103
|
+
GameStatus.PUBLISHED,
|
|
104
|
+
GameStatus.IS_RESERVE,
|
|
105
|
+
GameStatus.FINISHED,
|
|
106
|
+
GameStatus.ARCHIVE,
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
'default': {
|
|
111
|
+
'DEFAULT': [],
|
|
112
|
+
},
|
|
113
|
+
}
|
|
@@ -1,33 +1,59 @@
|
|
|
1
1
|
import { getTag } from '../../functions/tag.js'
|
|
2
2
|
|
|
3
|
-
export var
|
|
4
|
-
'Alone',
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'Public',
|
|
8
|
-
])
|
|
9
|
-
|
|
10
|
-
var RegistrationAttributeRegistrationProperties = /** @type {const} */ ([
|
|
11
|
-
'is_alone',
|
|
12
|
-
'is_birthday',
|
|
13
|
-
'is_first',
|
|
14
|
-
'is_extensible',
|
|
15
|
-
])
|
|
16
|
-
|
|
17
|
-
var RegistrationAttributeRegistrationProperty = /** @type {const} */ ({
|
|
18
|
-
'Alone': 'is_alone',
|
|
19
|
-
'Birthday': 'is_birthday',
|
|
20
|
-
'Newcomer': 'is_first',
|
|
21
|
-
'Public': 'is_extensible',
|
|
3
|
+
export var RegistrationAttribute = /** @type {const} */ ({
|
|
4
|
+
'Alone': 'Alone',
|
|
5
|
+
'Newcomer': 'Newcomer',
|
|
6
|
+
'Birthday': 'Birthday',
|
|
7
|
+
'Public': 'Public',
|
|
22
8
|
})
|
|
23
9
|
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
10
|
+
export var RegistrationAttributes = Object.values(RegistrationAttribute)
|
|
11
|
+
|
|
12
|
+
export var RegistrationAttributeWeight = {
|
|
13
|
+
[RegistrationAttribute.Alone]: 0,
|
|
14
|
+
[RegistrationAttribute.Newcomer]: 1,
|
|
15
|
+
[RegistrationAttribute.Birthday]: 2,
|
|
16
|
+
[RegistrationAttribute.Public]: 3,
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export var RegistrationAttributeTitle = {
|
|
20
|
+
[RegistrationAttribute.Alone]: 'Без команды',
|
|
21
|
+
[RegistrationAttribute.Newcomer]: 'Новичок',
|
|
22
|
+
[RegistrationAttribute.Birthday]: 'День рождения',
|
|
23
|
+
[RegistrationAttribute.Public]: 'Принимаем людей',
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** @type {Record<RegistrationAttribute, Icon>} */
|
|
27
|
+
export var RegistrationAttributeIcon = {
|
|
28
|
+
[RegistrationAttribute.Alone]: 'hero/outline/user',
|
|
29
|
+
[RegistrationAttribute.Newcomer]: 'hero/outline/sparkles',
|
|
30
|
+
[RegistrationAttribute.Birthday]: 'hero/outline/cake',
|
|
31
|
+
[RegistrationAttribute.Public]: 'hero/outline/user-plus',
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export var RegistrationAttributeEmoji = {
|
|
35
|
+
[RegistrationAttribute.Alone]: '👤',
|
|
36
|
+
[RegistrationAttribute.Newcomer]: '✨',
|
|
37
|
+
[RegistrationAttribute.Birthday]: '🎂',
|
|
38
|
+
[RegistrationAttribute.Public]: '🫂',
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export var RegistrationAttributeRegistrationProperty = /** @type {const} */ ({
|
|
42
|
+
[RegistrationAttribute.Alone]: 'is_alone',
|
|
43
|
+
[RegistrationAttribute.Newcomer]: 'is_first',
|
|
44
|
+
[RegistrationAttribute.Birthday]: 'is_birthday',
|
|
45
|
+
[RegistrationAttribute.Public]: 'is_extensible',
|
|
29
46
|
})
|
|
30
47
|
|
|
48
|
+
export var RegistrationAttributeRegistrationProperties = Object.values(RegistrationAttributeRegistrationProperty)
|
|
49
|
+
|
|
50
|
+
export var RegistrationPropertyRegistrationAttribute = {
|
|
51
|
+
[RegistrationAttributeRegistrationProperty[RegistrationAttribute.Alone]]: RegistrationAttribute.Alone,
|
|
52
|
+
[RegistrationAttributeRegistrationProperty[RegistrationAttribute.Newcomer]]: RegistrationAttribute.Newcomer,
|
|
53
|
+
[RegistrationAttributeRegistrationProperty[RegistrationAttribute.Birthday]]: RegistrationAttribute.Birthday,
|
|
54
|
+
[RegistrationAttributeRegistrationProperty[RegistrationAttribute.Public]]: RegistrationAttribute.Public,
|
|
55
|
+
}
|
|
56
|
+
|
|
31
57
|
/**
|
|
32
58
|
* @param {RegistrationAttribute[] | Partial<Pick<RegistrationTable, 'is_alone' | 'is_birthday' | 'is_extensible' | 'is_first'>>} value
|
|
33
59
|
*/
|
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
export var
|
|
2
|
-
'
|
|
3
|
-
'telegramBot',
|
|
4
|
-
'
|
|
5
|
-
|
|
1
|
+
export var RegistrationChannel = /** @type {const} */ ({
|
|
2
|
+
'vkontakte': 'vkontakte',
|
|
3
|
+
'telegramBot': 'telegramBot',
|
|
4
|
+
'email': 'email',
|
|
5
|
+
})
|
|
6
|
+
|
|
7
|
+
export var RegistrationChannels = Object.values(RegistrationChannel)
|
|
8
|
+
|
|
9
|
+
export var RegistrationChannelWeight = {
|
|
10
|
+
[RegistrationChannel.vkontakte]: 0,
|
|
11
|
+
[RegistrationChannel.telegramBot]: 1,
|
|
12
|
+
[RegistrationChannel.email]: 2,
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export var RegistationChannelTitle = {
|
|
16
|
+
[RegistrationChannel.vkontakte]: 'Вконтакте',
|
|
17
|
+
[RegistrationChannel.telegramBot]: 'Телеграм',
|
|
18
|
+
[RegistrationChannel.email]: 'Электронная почта',
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @type {Record<RegistrationChannel, Icon>} */
|
|
22
|
+
export var RegistationChannelIcon = {
|
|
23
|
+
[RegistrationChannel.vkontakte]: 'brand/solid/vk',
|
|
24
|
+
[RegistrationChannel.telegramBot]: 'brand/solid/telegram',
|
|
25
|
+
[RegistrationChannel.email]: 'hero/solid/at-symbol',
|
|
26
|
+
}
|