@shakerquiz/utilities 4.0.13 → 4.0.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/entities/city-affilation.js +14 -9
- package/source/entities/city-chatapp-version.js +14 -8
- package/source/entities/game-status.js +22 -13
- package/source/entities/registration-channel.js +15 -10
- package/source/entities/registration-lineup.js +14 -8
- package/source/entities/registration-mailing.js +16 -12
- package/source/entities/registration-status.js +15 -11
- package/source/entities/role.js +18 -15
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export const CityAffilations = Object.freeze(
|
|
2
|
+
/** @type {const} */ ([
|
|
3
|
+
'Branch',
|
|
4
|
+
'Franchise',
|
|
5
|
+
]),
|
|
6
|
+
)
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export const CityAffilation = Object.freeze(
|
|
9
|
+
/** @type {{ [x in typeof CityAffilations[number]]: x }} */ (
|
|
10
|
+
CityAffilations.reduce(
|
|
11
|
+
(o, x) => (o[x] = x, o),
|
|
12
|
+
{},
|
|
13
|
+
)
|
|
14
|
+
),
|
|
15
|
+
)
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export const CityChatappVersions = Object.freeze(
|
|
2
|
+
/** @type {const} */ ([
|
|
3
|
+
'Latest',
|
|
4
|
+
'Legacy',
|
|
5
|
+
]),
|
|
6
|
+
)
|
|
5
7
|
|
|
6
|
-
export const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
])
|
|
8
|
+
export const CityChatappVersion = Object.freeze(
|
|
9
|
+
/** @type {{ [x in typeof CityChatappVersions[number]]: x }} */ (
|
|
10
|
+
CityChatappVersions.reduce(
|
|
11
|
+
(o, x) => (o[x] = x, o),
|
|
12
|
+
{},
|
|
13
|
+
)
|
|
14
|
+
),
|
|
15
|
+
)
|
|
@@ -2,19 +2,28 @@ import { Category } from './category.js'
|
|
|
2
2
|
import { Mode } from './mode.js'
|
|
3
3
|
import { Role } from './role.js'
|
|
4
4
|
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
export const GameStatuses = Object.freeze(
|
|
6
|
+
/** @type {const} */ ([
|
|
7
|
+
'APPROVED',
|
|
8
|
+
'ARCHIVE',
|
|
9
|
+
'CLOSED',
|
|
10
|
+
'FINISHED',
|
|
11
|
+
'FORINVITES',
|
|
12
|
+
'IS_RESERVE',
|
|
13
|
+
'MODERATION',
|
|
14
|
+
'PUBLISHED',
|
|
15
|
+
'REJECTED',
|
|
16
|
+
]),
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
export const GameStatus = Object.freeze(
|
|
20
|
+
/** @type {{ [x in typeof GameStatuses[number]]: x }} */ (
|
|
21
|
+
GameStatuses.reduce(
|
|
22
|
+
(o, x) => (o[x] = x, o),
|
|
23
|
+
{},
|
|
24
|
+
)
|
|
25
|
+
),
|
|
26
|
+
)
|
|
18
27
|
|
|
19
28
|
export const RoleGameStatusGameStatuses = Object.freeze({
|
|
20
29
|
[Role['admin']]: Object.freeze({}),
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export const RegistrationChannels = Object.freeze(
|
|
2
|
+
/** @type {const} */ ([
|
|
3
|
+
'vkontakte',
|
|
4
|
+
'telegramBot',
|
|
5
|
+
'email',
|
|
6
|
+
]),
|
|
7
|
+
)
|
|
6
8
|
|
|
7
|
-
export const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
export const RegistrationChannel = Object.freeze(
|
|
10
|
+
/** @type {{ [x in typeof RegistrationChannels[number]]: x }} */ (
|
|
11
|
+
RegistrationChannels.reduce(
|
|
12
|
+
(o, x) => (o[x] = x, o),
|
|
13
|
+
{},
|
|
14
|
+
)
|
|
15
|
+
),
|
|
16
|
+
)
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export const RegistrationLineups = Object.freeze(
|
|
2
|
+
/** @type {const} */ ([
|
|
3
|
+
'Main',
|
|
4
|
+
'Reserve',
|
|
5
|
+
]),
|
|
6
|
+
)
|
|
5
7
|
|
|
6
|
-
export const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
])
|
|
8
|
+
export const RegistrationLineup = Object.freeze(
|
|
9
|
+
/** @type {{ [x in typeof RegistrationLineups[number]]: x }} */ (
|
|
10
|
+
RegistrationLineups.reduce(
|
|
11
|
+
(o, x) => (o[x] = x, o),
|
|
12
|
+
{},
|
|
13
|
+
)
|
|
14
|
+
),
|
|
15
|
+
)
|
|
10
16
|
|
|
11
17
|
export const RegistrationLineupEmoji = Object.freeze({
|
|
12
18
|
'Main': '🟢',
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export const RegistrationMailings = Object.freeze(
|
|
2
|
+
/** @type {const} */ ([
|
|
3
|
+
'Idle',
|
|
4
|
+
'Pending',
|
|
5
|
+
'Delivered',
|
|
6
|
+
'Failed',
|
|
7
|
+
]),
|
|
8
|
+
)
|
|
7
9
|
|
|
8
|
-
export const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
export const RegistrationMailing = Object.freeze(
|
|
11
|
+
/** @type {{ [x in typeof RegistrationMailings[number]]: x }} */ (
|
|
12
|
+
RegistrationMailings.reduce(
|
|
13
|
+
(o, x) => (o[x] = x, o),
|
|
14
|
+
{},
|
|
15
|
+
)
|
|
16
|
+
),
|
|
17
|
+
)
|
|
14
18
|
|
|
15
19
|
export const RegistrationMailingColor = Object.freeze({
|
|
16
20
|
'Idle': 'default',
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export const RegistrationStatuses = Object.freeze(
|
|
2
|
+
/** @type {const} */ ([
|
|
3
|
+
'Created',
|
|
4
|
+
'Confirmed',
|
|
5
|
+
'Cancelled',
|
|
6
|
+
]),
|
|
7
|
+
)
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
export const RegistrationStatus = Object.freeze(
|
|
10
|
+
/** @type {{ [x in typeof RegistrationStatuses[number]]: x }} */ (
|
|
11
|
+
RegistrationStatuses.reduce(
|
|
12
|
+
(o, x) => (o[x] = x, o),
|
|
13
|
+
{},
|
|
14
|
+
)
|
|
15
|
+
),
|
|
16
|
+
)
|
|
13
17
|
|
|
14
18
|
/** @satisfies {Record<keyof typeof RegistrationStatus, string>} */
|
|
15
19
|
export const RegistrationStatusEmoji = Object.freeze({
|
package/source/entities/role.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
export const Roles = Object.freeze(
|
|
2
|
+
/** @type {const} */ ([
|
|
3
|
+
'admin',
|
|
4
|
+
'captain',
|
|
5
|
+
'player',
|
|
6
|
+
'user',
|
|
7
|
+
'manager',
|
|
8
|
+
'Service',
|
|
9
|
+
]),
|
|
10
|
+
)
|
|
9
11
|
|
|
10
|
-
export const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
export const Role = Object.freeze(
|
|
13
|
+
/** @type {{ [x in typeof Roles[number]]: x }} */ (
|
|
14
|
+
Roles.reduce(
|
|
15
|
+
(o, x) => (o[x] = x, o),
|
|
16
|
+
{},
|
|
17
|
+
)
|
|
18
|
+
),
|
|
19
|
+
)
|