@shakerquiz/utilities 0.5.203 → 0.5.205
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
|
@@ -16,6 +16,7 @@ export const AffilationTitle = Object.freeze({
|
|
|
16
16
|
export const AffilationIcon = Object.freeze({
|
|
17
17
|
[Affilation['Branch']]: 'hero/outline/building-office-2',
|
|
18
18
|
[Affilation['Franchise']]: 'hero/outline/building-storefront',
|
|
19
|
+
['Unknown']: 'hero/outline/no-symbol',
|
|
19
20
|
})
|
|
20
21
|
|
|
21
22
|
const ValueAffilation = Object.freeze({
|
|
@@ -13,6 +13,12 @@ export const VersionTitle = Object.freeze({
|
|
|
13
13
|
[Version['Legacy']]: 'Старая',
|
|
14
14
|
})
|
|
15
15
|
|
|
16
|
+
export const VersionIcon = Object.freeze({
|
|
17
|
+
[Version['Actual']]: 'hero/outline/no-symbol',
|
|
18
|
+
[Version['Legacy']]: 'hero/outline/no-symbol',
|
|
19
|
+
['Unknown']: 'hero/outline/no-symbol',
|
|
20
|
+
})
|
|
21
|
+
|
|
16
22
|
const ValueChatappVersion = Object.freeze({
|
|
17
23
|
'false': Version['Actual'],
|
|
18
24
|
'true': Version['Legacy'],
|
|
@@ -29,7 +35,7 @@ const ChatappVersionShape = Object.freeze({
|
|
|
29
35
|
})
|
|
30
36
|
|
|
31
37
|
/** @returns {keyof typeof Version | 'Unknown'} */
|
|
32
|
-
export const
|
|
38
|
+
export const inferVersion = Object.freeze(value =>
|
|
33
39
|
ValueChatappVersion[value?.chatapp_legacy]
|
|
34
40
|
?? ValueChatappVersion[value]
|
|
35
41
|
?? Version[value]
|
|
@@ -37,7 +43,7 @@ export const inferChatappVersion = Object.freeze(value =>
|
|
|
37
43
|
)
|
|
38
44
|
|
|
39
45
|
/** @returns {typeof ChatappVersionShape[keyof typeof ChatappVersionShape] | { chatapp_legacy: null }} */
|
|
40
|
-
export const
|
|
46
|
+
export const inferVersionShape = Object.freeze(value =>
|
|
41
47
|
ChatappVersionShape[value]
|
|
42
48
|
?? { chatapp_legacy: null }
|
|
43
49
|
)
|