@shakerquiz/utilities 0.2.6 → 0.2.8

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakerquiz/utilities",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "author": "yurkimus <yurkimus@gmail.com>",
5
5
  "license": "ISC",
6
6
  "exports": {
package/source/city.d.ts CHANGED
@@ -63,7 +63,7 @@ type CityRow = {
63
63
  /**
64
64
  * @description "uuid"
65
65
  */
66
- id: Nullable<string>
66
+ id: string
67
67
  /**
68
68
  * @description "character varying"
69
69
  */
package/source/game.d.ts CHANGED
@@ -1,73 +1,91 @@
1
1
  type GameAdminResult = {
2
- event_id: GameRow['id']
2
+ // City
3
+ city_alias: CityRow['alias']
4
+ city_id: CityRow['id']
5
+ city_is_franchise: CityRow['is_franchise']
6
+ city_name: CityRow['name']
7
+ // Event
3
8
  event_alias: GameRow['alias']
9
+ event_id: GameRow['id']
4
10
  event_number: GameRow['number']
5
- event_time: GameRow['event_time']
6
11
  event_status: GameRow['status']
12
+ event_time: GameRow['event_time']
13
+ // Location
7
14
  location_id: LocationRow['id']
8
15
  location_name: LocationRow['name']
9
- city_id: CityRow['id']
10
- city_alias: CityRow['alias']
11
- city_name: CityRow['name']
12
- city_is_franchise: CityRow['is_franchise']
13
- theme_id: ThemeRow['id']
14
- theme_name: ThemeRow['name']
16
+ // Media
15
17
  media_id: ImageMediaRow['id']
16
- media_title: ImageMediaRow['title']
17
18
  media_path: ImageMediaRow['path']
19
+ media_title: ImageMediaRow['title']
20
+ // Custom
18
21
  people_amount: number
19
22
  people_reserve_amount: number
20
23
  teams_amount: number
21
24
  teams_reserve_amount: number
25
+ // Theme
26
+ theme_id: ThemeRow['id']
27
+ theme_name: ThemeRow['name']
22
28
  }
23
29
 
24
30
  type GameDefaultResult = {
25
- theme_description: ThemeRow['description']
26
- theme_id: ThemeRow['id']
27
- theme_name: ThemeRow['name']
28
- theme_short_description: ThemeRow['short_description']
29
- alias: GameRow['alias']
30
- currency: GameRow['currency']
31
- id: GameRow['id']
32
- max_members_count: GameRow['max_members_count']
33
- min_members_count: GameRow['min_members_count']
34
- number: GameRow['number']
35
- price: GameRow['price']
36
- status: GameRow['status']
37
- event_time: GameRow['event_time']
31
+ // City
38
32
  city_alias: CityRow['alias']
39
33
  city_id: CityRow['id']
34
+ // Event
35
+ event_alias: GameRow['alias']
36
+ event_currency: GameRow['currency']
37
+ event_id: GameRow['id']
38
+ event_max_members_count: GameRow['max_members_count']
39
+ event_min_members_count: GameRow['min_members_count']
40
+ event_number: GameRow['number']
41
+ event_price: GameRow['price']
42
+ event_status: GameRow['status']
43
+ event_time: GameRow['event_time']
44
+ // Image
45
+ image_id: ImageMediaRow['id']
46
+ // Location
40
47
  location_house_number: LocationRow['house_number']
41
48
  location_id: LocationRow['id']
42
49
  location_info: LocationRow['location_info']
43
50
  location_name: LocationRow['name']
44
51
  location_street: LocationRow['street']
52
+ // Media
45
53
  media_id: MediaRow['id']
46
54
  media_path: MediaRow['path']
47
- image_id: ImageMediaRow['id']
55
+ // Theme
56
+ theme_description: ThemeRow['description']
57
+ theme_id: ThemeRow['id']
58
+ theme_name: ThemeRow['name']
59
+ theme_short_description: ThemeRow['short_description']
48
60
  }
49
61
 
50
62
  type GameOrginizerResult = {
51
- event_id: GameRow['id']
63
+ // City
64
+ city_alias: CityRow['alias']
65
+ city_id: CityRow['id']
66
+ city_is_franchise: CityRow['is_franchise']
67
+ city_name: CityRow['name']
68
+ // Event
52
69
  event_alias: GameRow['alias']
70
+ event_id: GameRow['id']
53
71
  event_number: GameRow['number']
54
- event_time: GameRow['event_time']
55
72
  event_status: GameRow['status']
73
+ event_time: GameRow['event_time']
74
+ // Location
56
75
  location_id: LocationRow['id']
57
76
  location_name: LocationRow['name']
58
- city_id: CityRow['id']
59
- city_alias: CityRow['alias']
60
- city_name: CityRow['name']
61
- city_is_franchise: CityRow['is_franchise']
62
- theme_id: ThemeRow['id']
63
- theme_name: ThemeRow['name']
77
+ // Media
64
78
  media_id: ImageMediaRow['id']
65
- media_title: ImageMediaRow['title']
66
79
  media_path: ImageMediaRow['path']
80
+ media_title: ImageMediaRow['title']
81
+ // Custom
67
82
  people_amount: number
68
83
  people_reserve_amount: number
69
84
  teams_amount: number
70
85
  teams_reserve_amount: number
86
+ // Theme
87
+ theme_id: ThemeRow['id']
88
+ theme_name: ThemeRow['name']
71
89
  }
72
90
 
73
91
  type GameRow = {
@@ -82,7 +100,7 @@ type GameRow = {
82
100
  /**
83
101
  * @description "uuid"
84
102
  */
85
- id: Nullable<string>
103
+ id: string
86
104
  /**
87
105
  * @description "timestamp with time zone"
88
106
  */