@shakerquiz/utilities 0.5.41 → 0.5.43

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.41",
4
+ "version": "0.5.43",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "scripts": {
@@ -27,9 +27,9 @@ export var getRoleMode = value => {
27
27
  if (typeof value?.mode === 'string')
28
28
  return value.mode
29
29
  else
30
- return Role.unknown
30
+ return RoleMode.unknown
31
31
 
32
32
  default:
33
- return Role.unknown
33
+ return RoleMode.unknown
34
34
  }
35
35
  }
@@ -0,0 +1,86 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "name": {
5
+ "type": "string"
6
+ },
7
+ "price": {
8
+ "type": "number"
9
+ },
10
+ "currency": {
11
+ "type": "string"
12
+ },
13
+ "game_time": {
14
+ "type": "string",
15
+ "format": "iso-time"
16
+ },
17
+ "vk_link": {
18
+ "type": "string"
19
+ },
20
+ "tg_link": {
21
+ "type": "string"
22
+ },
23
+ "inst_link": {
24
+ "type": "string"
25
+ },
26
+ "is_franshise": {
27
+ "type": "boolean"
28
+ },
29
+ "min_members_count": {
30
+ "type": "number"
31
+ },
32
+ "max_members_count": {
33
+ "type": "number"
34
+ },
35
+ "custom_script": {
36
+ "type": "string"
37
+ },
38
+ "custom_html": {
39
+ "type": "string"
40
+ },
41
+ "alias": {
42
+ "type": "string"
43
+ },
44
+ "vk_group_id": {
45
+ "type": "string"
46
+ },
47
+ "chatapp_line": {
48
+ "type": "string"
49
+ },
50
+ "chatapp_user": {
51
+ "type": "string"
52
+ },
53
+ "chatapp_tag": {
54
+ "type": "string"
55
+ },
56
+ "chatapp_category": {
57
+ "type": "string"
58
+ },
59
+ "telegram_chat_id": {
60
+ "type": "string"
61
+ },
62
+ "country": {
63
+ "type": "string"
64
+ },
65
+ "yandex_metrica": {
66
+ "type": "string"
67
+ },
68
+ "chatapp_legacy": {
69
+ "type": "string"
70
+ },
71
+ "phone": {
72
+ "type": "string"
73
+ },
74
+ "email": {
75
+ "type": "string"
76
+ },
77
+ "address": {
78
+ "type": "string"
79
+ },
80
+ "timezone_name": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ "required": [],
85
+ "additionalProperties": false
86
+ }
@@ -20,7 +20,8 @@
20
20
  "type": "boolean"
21
21
  },
22
22
  "game_time": {
23
- "type": "string"
23
+ "type": "string",
24
+ "format": "iso-time"
24
25
  },
25
26
  "location_info": {
26
27
  "type": [
@@ -20,7 +20,8 @@
20
20
  "type": "boolean"
21
21
  },
22
22
  "game_time": {
23
- "type": "string"
23
+ "type": "string",
24
+ "format": "iso-time"
24
25
  },
25
26
  "location_info": {
26
27
  "type": [
@@ -40,4 +41,4 @@
40
41
  },
41
42
  "required": [],
42
43
  "additionalProperties": false
43
- }
44
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "name": {
5
+ "type": "string"
6
+ },
7
+ "country": {
8
+ "type": "string"
9
+ },
10
+ "currency": {
11
+ "type": "string"
12
+ },
13
+ "alias": {
14
+ "type": "string"
15
+ },
16
+ "is_franshise": {
17
+ "type": "boolean"
18
+ },
19
+ "timezone_name": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": [
24
+ "name",
25
+ "country",
26
+ "currency",
27
+ "alias",
28
+ "is_franshise",
29
+ "timezone_name"
30
+ ],
31
+ "additionalProperties": false
32
+ }
@@ -16,24 +16,13 @@
16
16
  "team_capacity": {
17
17
  "type": "integer"
18
18
  },
19
- "is_adult": {
20
- "type": "boolean"
21
- },
22
19
  "game_time": {
23
- "type": "string"
20
+ "type": "string",
21
+ "format": "iso-time"
24
22
  },
25
23
  "city_id": {
26
24
  "type": "string",
27
25
  "format": "uuid"
28
- },
29
- "location_info": {
30
- "type": "string"
31
- },
32
- "status": {
33
- "type": "string"
34
- },
35
- "href": {
36
- "type": "string"
37
26
  }
38
27
  },
39
28
  "required": [
@@ -0,0 +1,38 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "name": {
5
+ "type": "string"
6
+ },
7
+ "street": {
8
+ "type": "string"
9
+ },
10
+ "house_number": {
11
+ "type": "string"
12
+ },
13
+ "people_capacity": {
14
+ "type": "integer"
15
+ },
16
+ "team_capacity": {
17
+ "type": "integer"
18
+ },
19
+ "game_time": {
20
+ "type": "string",
21
+ "format": "iso-time"
22
+ },
23
+ "city_id": {
24
+ "type": "string",
25
+ "format": "uuid"
26
+ }
27
+ },
28
+ "required": [
29
+ "name",
30
+ "street",
31
+ "house_number",
32
+ "people_capacity",
33
+ "team_capacity",
34
+ "game_time",
35
+ "city_id"
36
+ ],
37
+ "additionalProperties": false
38
+ }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {},
4
- "required": [],
5
- "additionalProperties": false
6
- }