@shakerquiz/utilities 0.5.217 → 0.5.219

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.217",
4
+ "version": "0.5.219",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -3,22 +3,22 @@ export const Affilation = Object.freeze({
3
3
  'Franchise': 'Franchise',
4
4
  })
5
5
 
6
+ /** @satisfies {Array<keyof typeof Affilation>} */
6
7
  export const Affilations = Object.freeze([
7
- Affilation['Branch'],
8
- Affilation['Franchise'],
9
- 'Unknown',
8
+ 'Branch',
9
+ 'Franchise',
10
10
  ])
11
11
 
12
+ /** @satisfies {Record<keyof typeof Affilation, string>} */
12
13
  export const AffilationTitle = Object.freeze({
13
- [Affilation['Branch']]: 'Филиал',
14
- [Affilation['Franchise']]: 'Франшиза',
15
- ['Unknown']: 'Неизвестно',
14
+ 'Branch': 'Филиал',
15
+ 'Franchise': 'Франшиза',
16
16
  })
17
17
 
18
+ /** @satisfies {Record<keyof typeof Affilation, string>} */
18
19
  export const AffilationIcon = Object.freeze({
19
- [Affilation['Branch']]: 'hero/outline/building-office-2',
20
- [Affilation['Franchise']]: 'hero/outline/building-storefront',
21
- ['Unknown']: 'hero/outline/no-symbol',
20
+ 'Branch': 'hero/outline/building-office-2',
21
+ 'Franchise': 'hero/outline/building-storefront',
22
22
  })
23
23
 
24
24
  /** @returns {keyof typeof Affilation | 'Unknown'} */
@@ -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
+ })