@shakerquiz/utilities 0.5.216 → 0.5.218

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": "0.5.216",
4
+ "version": "0.5.218",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -1,26 +1,26 @@
1
- export var RegistrationChannel = /** @type {const} */ ({
1
+ export const Channel = Object.freeze({
2
2
  'vkontakte': 'vkontakte',
3
3
  'telegramBot': 'telegramBot',
4
4
  'email': 'email',
5
5
  })
6
6
 
7
- export var RegistrationChannels = Object.values(RegistrationChannel)
7
+ /** @satisfies {Array<keyof typeof Channel>} */
8
+ export const Channels = Object.freeze([
9
+ 'vkontakte',
10
+ 'telegramBot',
11
+ 'email',
12
+ ])
8
13
 
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
- }
14
+ /** @satisfies {Record<keyof typeof Channel, string>} */
15
+ export const ChannelTitle = Object.freeze({
16
+ 'vkontakte': 'Вконтакте',
17
+ 'telegramBot': 'Телеграм',
18
+ 'email': 'Электронная почта',
19
+ })
20
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
- }
21
+ /** @satisfies {Record<keyof typeof Channel, string>} */
22
+ export const ChannelIcon = Object.freeze({
23
+ 'vkontakte': 'brand/solid/vk',
24
+ 'telegramBot': 'brand/solid/telegram',
25
+ 'email': 'hero/solid/at-symbol',
26
+ })
@@ -3,7 +3,7 @@ export const ThemeStatus = Object.freeze({
3
3
  'Archive': 'Archive',
4
4
  })
5
5
 
6
- /** @satisfies {Array<keyof typeof ThemeStatus>} */
6
+ /** @satisfies {Readonly<Array<keyof typeof ThemeStatus>>} */
7
7
  export const ThemeStatuses = Object.freeze([
8
8
  'Active',
9
9
  'Archive',
@@ -1,21 +1,24 @@
1
1
  export const VenueStatus = Object.freeze({
2
2
  'Active': 'Active',
3
- 'ARCHIVE': 'ARCHIVE',
3
+ 'Archive': 'Archive',
4
4
  })
5
5
 
6
+ /** @satisfies {Array<keyof typeof VenueStatus>} */
6
7
  export const VenueStatuses = Object.freeze([
7
- VenueStatus['ACTIVE'],
8
- VenueStatus['ARCHIVE'],
8
+ 'Active',
9
+ 'Archive',
9
10
  ])
10
11
 
12
+ /** @satisfies {Record<keyof typeof VenueStatus, string>} */
11
13
  export const VenueStatusTitle = Object.freeze({
12
- [VenueStatus['ACTIVE']]: 'Активно',
13
- [VenueStatus['ARCHIVE']]: 'Архив',
14
+ 'Active': 'Активно',
15
+ 'Archive': 'Архив',
14
16
  })
15
17
 
18
+ /** @satisfies {Record<keyof typeof VenueStatus, string>} */
16
19
  export const VenueStatusIcon = Object.freeze({
17
- [VenueStatus['ACTIVE']]: 'hero/outline/check',
18
- [VenueStatus['ARCHIVE']]: 'hero/outline/archive-box',
20
+ 'Active': 'hero/outline/check',
21
+ 'Archive': 'hero/outline/archive-box',
19
22
  })
20
23
 
21
24
  export const inferVenueStatus = Object.freeze(