@shakerquiz/utilities 0.5.92 → 0.5.94
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/enumerations/entities/affilation.js +3 -0
- package/source/enumerations/entities/cities-mode.js +3 -0
- package/source/enumerations/entities/password-mode.js +3 -0
- package/source/enumerations/entities/role-mode.js +3 -0
- package/source/enumerations/entities/version.js +3 -0
- package/source/schemas/PATCH/city/admin.json +3 -2
package/package.json
CHANGED
|
@@ -70,6 +70,9 @@ export var AffilationShapes = Object.entries(AffilationShape)
|
|
|
70
70
|
* @param {Affilation | typeof AffilationShape[Affilation]} value
|
|
71
71
|
*/
|
|
72
72
|
export var getAffilation = value => {
|
|
73
|
+
if (value === null)
|
|
74
|
+
return Affilation['Unknown']
|
|
75
|
+
|
|
73
76
|
switch (typeof value) {
|
|
74
77
|
case 'object':
|
|
75
78
|
return AffilationShapes
|
|
@@ -55,6 +55,9 @@ export var ChatappVersionShape = /** @type {const} */ ({
|
|
|
55
55
|
export var ChatappVersionShapes = Object.entries(ChatappVersionShape)
|
|
56
56
|
|
|
57
57
|
export var getChatappVersion = value => {
|
|
58
|
+
if (value === null)
|
|
59
|
+
return ChatappVersion['Unknown']
|
|
60
|
+
|
|
58
61
|
switch (typeof value) {
|
|
59
62
|
case 'object':
|
|
60
63
|
return ChatappVersionShapes
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
+
"is_franchise": {
|
|
5
|
+
"type": "boolean"
|
|
6
|
+
},
|
|
4
7
|
"price": {
|
|
5
8
|
"type": "number"
|
|
6
9
|
},
|
|
@@ -117,8 +120,6 @@
|
|
|
117
120
|
}
|
|
118
121
|
},
|
|
119
122
|
"required": [
|
|
120
|
-
"name",
|
|
121
|
-
"alias",
|
|
122
123
|
"is_franchise"
|
|
123
124
|
],
|
|
124
125
|
"additionalProperties": false
|