@shakerquiz/utilities 0.5.217 → 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.217",
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
+ })