@shakerquiz/utilities 0.5.42 → 0.5.44

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.42",
4
+ "version": "0.5.44",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "scripts": {
@@ -1,52 +1,52 @@
1
1
  export var Feature = /** @type {const} */ ({
2
- 'users': 'users',
3
- 'user': 'user',
4
- 'roles': 'roles',
5
2
  'role': 'role',
6
- 'checkins': 'checkins',
3
+ 'roles': 'roles',
4
+ 'user': 'user',
5
+ 'users': 'users',
7
6
  'checkin': 'checkin',
8
- 'countries': 'countries',
7
+ 'checkins': 'checkins',
9
8
  'country': 'country',
10
- 'currencies': 'currencies',
9
+ 'countries': 'countries',
11
10
  'currency': 'currency',
12
- 'cities': 'cities',
11
+ 'currencies': 'currencies',
13
12
  'city': 'city',
14
- 'venues': 'venues',
13
+ 'cities': 'cities',
15
14
  'venue': 'venue',
16
- 'games': 'games',
17
- 'game': 'game',
18
- 'themes': 'themes',
15
+ 'venues': 'venues',
19
16
  'theme': 'theme',
20
- 'registrations': 'registrations',
17
+ 'themes': 'themes',
18
+ 'game': 'game',
19
+ 'games': 'games',
21
20
  'registration': 'registration',
22
- 'mailings': 'mailings',
21
+ 'registrations': 'registrations',
23
22
  'mailing': 'mailing',
23
+ 'mailings': 'mailings',
24
24
  })
25
25
 
26
26
  export var Features = Object.values(Feature)
27
27
 
28
28
  /** @type {Record<Feature, Icon>} */
29
29
  export var FeatureIcon = {
30
- [Feature.users]: 'hero/solid/users',
31
- [Feature.user]: 'hero/solid/users',
32
- [Feature.roles]: 'hero/solid/identification',
33
30
  [Feature.role]: 'hero/solid/identification',
34
- [Feature.checkins]: 'arrow-right-end-on-rectangle',
31
+ [Feature.roles]: 'hero/solid/identification',
32
+ [Feature.user]: 'hero/solid/users',
33
+ [Feature.users]: 'hero/solid/users',
35
34
  [Feature.checkin]: 'arrow-right-end-on-rectangle',
36
- [Feature.countries]: 'hero/outline/no-symbol',
35
+ [Feature.checkins]: 'arrow-right-end-on-rectangle',
37
36
  [Feature.country]: 'hero/outline/no-symbol',
38
- [Feature.currencies]: 'hero/outline/banknotes',
37
+ [Feature.countries]: 'hero/outline/no-symbol',
39
38
  [Feature.currency]: 'hero/outline/banknotes',
40
- [Feature.cities]: 'hero/outline/building-office',
39
+ [Feature.currencies]: 'hero/outline/banknotes',
41
40
  [Feature.city]: 'hero/outline/building-office',
42
- [Feature.venues]: 'hero/outline/map-pin',
41
+ [Feature.cities]: 'hero/outline/building-office',
43
42
  [Feature.venue]: 'hero/outline/map-pin',
44
- [Feature.games]: 'hero/outline/newspaper',
45
- [Feature.game]: 'hero/outline/newspaper',
46
- [Feature.themes]: 'hero/outline/document-text',
43
+ [Feature.venues]: 'hero/outline/map-pin',
47
44
  [Feature.theme]: 'hero/outline/document-text',
48
- [Feature.registrations]: 'hero/outline/user-group',
45
+ [Feature.themes]: 'hero/outline/document-text',
46
+ [Feature.game]: 'hero/outline/newspaper',
47
+ [Feature.games]: 'hero/outline/newspaper',
49
48
  [Feature.registration]: 'hero/outline/user-group',
50
- [Feature.mailings]: 'hero/outline/envelope',
49
+ [Feature.registrations]: 'hero/outline/user-group',
51
50
  [Feature.mailing]: 'hero/outline/envelope',
51
+ [Feature.mailings]: 'hero/outline/envelope',
52
52
  }
@@ -3,6 +3,7 @@ export var Route = /** @type {const} */ ({
3
3
  'roles': 'roles',
4
4
  'user': 'user',
5
5
  'users': 'users',
6
+ 'checkin': 'checkin',
6
7
  'user/password': 'user/password',
7
8
  'user/role': 'user/role',
8
9
  'user/cities': 'user/cities',
@@ -20,6 +21,7 @@ export var Route = /** @type {const} */ ({
20
21
  'games': 'games',
21
22
  'registration': 'registration',
22
23
  'registrations': 'registrations',
24
+ 'mailing': 'mailing',
23
25
  })
24
26
 
25
27
  export var Routes = Object.values(Route)
@@ -29,6 +31,7 @@ export var RoutePathname = /** @type {const} */ ({
29
31
  [Route['roles']]: 'roles',
30
32
  [Route['user']]: 'user/:user',
31
33
  [Route['users']]: 'users',
34
+ [Route['checkin']]: 'checkin',
32
35
  [Route['user/password']]: 'user/:user/password',
33
36
  [Route['user/role']]: 'user/:user/role',
34
37
  [Route['user/cities']]: 'user/:user/cities',
@@ -46,6 +49,7 @@ export var RoutePathname = /** @type {const} */ ({
46
49
  [Route['games']]: 'games',
47
50
  [Route['registration']]: 'registration/:registration',
48
51
  [Route['registrations']]: 'registrations',
52
+ [Route['mailing']]: 'mailing/:mailing',
49
53
  })
50
54
 
51
55
  export var RoutePathnames = Object.values(RoutePathname)
@@ -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
- }