@shakerquiz/utilities 0.4.18 → 0.4.20
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 +5 -5
- package/source/index.d.ts +5 -1142
- package/source/misc.d.ts +72 -0
- package/source/model.d.ts +187 -0
- package/source/scope.d.ts +874 -0
- package/source/server.d.ts +5 -0
package/source/misc.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mixins
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
interface RequestInit {
|
|
6
|
+
/**
|
|
7
|
+
* @description A method string defined by RFC7231 @see {@link https://datatracker.ietf.org/doc/html/rfc7231#section-4.3}
|
|
8
|
+
*/
|
|
9
|
+
method?: Method
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* React
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
type UseState<T> = [
|
|
17
|
+
T,
|
|
18
|
+
import('react').Dispatch<import('react').SetStateAction<T>>,
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Core
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
type Method = (typeof import('./enumerations/core/methods.js').Methods)[number]
|
|
26
|
+
|
|
27
|
+
type Domain = (typeof import('./enumerations/core/features.js').Domains)[number]
|
|
28
|
+
|
|
29
|
+
type Procedure =
|
|
30
|
+
(typeof import('./enumerations/core/features.js').Procedures)[number]
|
|
31
|
+
|
|
32
|
+
type Feature = Domain | Procedure
|
|
33
|
+
|
|
34
|
+
type Kind = (typeof import('./enumerations/core/kinds.js').Kinds)[number]
|
|
35
|
+
|
|
36
|
+
type Scope = `${Method}/${Feature}/${Kind}`
|
|
37
|
+
|
|
38
|
+
type Role = (typeof import('./enumerations/entities/roles.js').Roles)[number]
|
|
39
|
+
|
|
40
|
+
type GameStatus =
|
|
41
|
+
(typeof import('./enumerations/entities/game-statuses.js').GameStatuses)[
|
|
42
|
+
number
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
type RegistrationStatus =
|
|
46
|
+
(typeof import('./enumerations/entities/registration-statuses.js').RegistrationStatuses)[
|
|
47
|
+
number
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
type Lineup =
|
|
51
|
+
(typeof import('./enumerations/entities/lineups.js').Lineups)[number]
|
|
52
|
+
|
|
53
|
+
type Affilation =
|
|
54
|
+
(typeof import('./enumerations/entities/affilations.js').Affilations)[number]
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Misc
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
type Icon = (typeof import('./enumerations/misc/icons.js').Icons)[number]
|
|
61
|
+
|
|
62
|
+
type Phase = (typeof import('./enumerations/misc/phases.js').Phases)[number]
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Products
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
type ScopePhase = Record<Scope, Phase>
|
|
69
|
+
|
|
70
|
+
type ScopeState = Record<Scope, any>
|
|
71
|
+
|
|
72
|
+
type ScopeController = Record<Scope, AbortController | null>
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
type User = {
|
|
2
|
+
email: string | null
|
|
3
|
+
first_name: string | null
|
|
4
|
+
gmail_link: string | null
|
|
5
|
+
hashed_password: string | null
|
|
6
|
+
id: string
|
|
7
|
+
image_id: string | null
|
|
8
|
+
is_active: boolean | null
|
|
9
|
+
is_superuser: boolean | null
|
|
10
|
+
is_verified: boolean | null
|
|
11
|
+
last_name: string | null
|
|
12
|
+
mailru_link: string | null
|
|
13
|
+
phone: string | null
|
|
14
|
+
role_id: string
|
|
15
|
+
telegram_data: string | null
|
|
16
|
+
telegram_id: string | null
|
|
17
|
+
third_name: string | null
|
|
18
|
+
time_created: string
|
|
19
|
+
time_updated: string | null
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
type Role = {
|
|
23
|
+
description: string | null
|
|
24
|
+
id: string
|
|
25
|
+
name: Role
|
|
26
|
+
time_created: string
|
|
27
|
+
time_updated: string | null
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type City = {
|
|
31
|
+
address: string | null
|
|
32
|
+
alias: string | null
|
|
33
|
+
chatapp_category: string | null
|
|
34
|
+
chatapp_legacy: boolean | null
|
|
35
|
+
chatapp_line: string | null
|
|
36
|
+
chatapp_tag: string | null
|
|
37
|
+
chatapp_user: string | null
|
|
38
|
+
country: string | null
|
|
39
|
+
currency: string | null
|
|
40
|
+
custom_html: string | null
|
|
41
|
+
custom_script: string | null
|
|
42
|
+
description: string | null
|
|
43
|
+
email: string | null
|
|
44
|
+
game_time: string | null
|
|
45
|
+
id: string
|
|
46
|
+
inst_comment: string | null
|
|
47
|
+
inst_link: string | null
|
|
48
|
+
inst_login: string | null
|
|
49
|
+
inst_password: string | null
|
|
50
|
+
is_default: boolean | null
|
|
51
|
+
is_franchise: boolean | null
|
|
52
|
+
max_members_count: number | null
|
|
53
|
+
meta_description: string | null
|
|
54
|
+
meta_title: string | null
|
|
55
|
+
min_members_count: number | null
|
|
56
|
+
name: string | null
|
|
57
|
+
phone: string | null
|
|
58
|
+
price: number | null
|
|
59
|
+
region: string | null
|
|
60
|
+
telegram_chat_id: string | null
|
|
61
|
+
tg_comment: string | null
|
|
62
|
+
tg_link: string | null
|
|
63
|
+
tg_login: string | null
|
|
64
|
+
tg_password: string | null
|
|
65
|
+
time_created: string
|
|
66
|
+
time_updated: string | null
|
|
67
|
+
timezone: number | null
|
|
68
|
+
title: string | null
|
|
69
|
+
vk_comment: string | null
|
|
70
|
+
vk_group_id: string | null
|
|
71
|
+
vk_link: string | null
|
|
72
|
+
yandex_metrica: string | null
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
type Venue = {
|
|
76
|
+
city_id: string | null
|
|
77
|
+
comment_equipment: string | null
|
|
78
|
+
comment_responsible: string | null
|
|
79
|
+
comment: string | null
|
|
80
|
+
floor: string | null
|
|
81
|
+
game_time: string | null
|
|
82
|
+
house_number: string | null
|
|
83
|
+
id: string
|
|
84
|
+
is_adult: boolean | null
|
|
85
|
+
latitude: number | null
|
|
86
|
+
location_info: string | null
|
|
87
|
+
longitude: number | null
|
|
88
|
+
metro: string | null
|
|
89
|
+
name: string | null
|
|
90
|
+
people_capacity: number | null
|
|
91
|
+
street: string | null
|
|
92
|
+
team_capacity: number | null
|
|
93
|
+
time_created: string
|
|
94
|
+
time_updated: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
type Theme = {
|
|
98
|
+
description: string | null
|
|
99
|
+
id: string
|
|
100
|
+
image_id: string
|
|
101
|
+
name: string | null
|
|
102
|
+
short_description: string | null
|
|
103
|
+
time_created: string
|
|
104
|
+
time_updated: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
type Game = {
|
|
108
|
+
alias: string | null
|
|
109
|
+
city_id: string | null
|
|
110
|
+
created_by_id: string
|
|
111
|
+
currency: string | null
|
|
112
|
+
description: string | null
|
|
113
|
+
event_time: string | null
|
|
114
|
+
game_pack_id: string | null
|
|
115
|
+
id: string
|
|
116
|
+
image_id: string | null
|
|
117
|
+
location_id: string
|
|
118
|
+
max_members_count: number | null
|
|
119
|
+
min_members_count: number | null
|
|
120
|
+
name: string | null
|
|
121
|
+
number: string | null
|
|
122
|
+
owner_id: string
|
|
123
|
+
personal_comment: string | null
|
|
124
|
+
price: number | null
|
|
125
|
+
short_description: string | null
|
|
126
|
+
status: GameStatus
|
|
127
|
+
theme_id: string
|
|
128
|
+
time_created: string
|
|
129
|
+
time_updated: string | null
|
|
130
|
+
timezone: number | null
|
|
131
|
+
weekday: string | null
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
type Registration = {
|
|
135
|
+
ads_from: string | null
|
|
136
|
+
change_people_count: number | null
|
|
137
|
+
channel: string | null
|
|
138
|
+
chatapp_id: string | null
|
|
139
|
+
comment: string | null
|
|
140
|
+
email: string | null
|
|
141
|
+
event_id: string
|
|
142
|
+
fact_people_count: number | null
|
|
143
|
+
human_name: string | null
|
|
144
|
+
id: string
|
|
145
|
+
is_actual_presence: boolean | null
|
|
146
|
+
is_alone: boolean | null
|
|
147
|
+
is_birthday: boolean | null
|
|
148
|
+
is_canceled: boolean | null
|
|
149
|
+
is_confirm: boolean | null
|
|
150
|
+
is_extensible: boolean | null
|
|
151
|
+
is_first: boolean | null
|
|
152
|
+
is_reserve: boolean | null
|
|
153
|
+
last_broadcast: string | null
|
|
154
|
+
people_count: number | null
|
|
155
|
+
phone: string | null
|
|
156
|
+
promocode: string | null
|
|
157
|
+
team_name: string | null
|
|
158
|
+
telegramBot: string | null
|
|
159
|
+
time_created: string
|
|
160
|
+
time_updated: string | null
|
|
161
|
+
utm_campaign: string | null
|
|
162
|
+
utm_content: string | null
|
|
163
|
+
utm_medium: string | null
|
|
164
|
+
utm_source: string | null
|
|
165
|
+
utm_term: string | null
|
|
166
|
+
vkontakte: string | null
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
type Media = {
|
|
170
|
+
id: string
|
|
171
|
+
time_created: string
|
|
172
|
+
time_updated: string | null
|
|
173
|
+
title: string | null
|
|
174
|
+
cached_link: string | null
|
|
175
|
+
description: string | null
|
|
176
|
+
path: string | null
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
type ImageMedia = {
|
|
180
|
+
file_format: string | null
|
|
181
|
+
height: number | null
|
|
182
|
+
id: string
|
|
183
|
+
media_id: string
|
|
184
|
+
time_created: string
|
|
185
|
+
time_updated: string | null
|
|
186
|
+
width: number | null
|
|
187
|
+
}
|