@shakerquiz/utilities 0.3.9 → 0.3.11
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/jsconfig.json +11 -8
- package/package.json +1 -4
- package/source/city.d.ts +40 -40
- package/source/enumerations/backends.d.ts +44 -0
- package/source/enumerations/backends.js +60 -0
- package/source/enumerations/default.d.ts +1 -0
- package/source/enumerations/default.js +1 -0
- package/source/enumerations/domains.d.ts +469 -0
- package/source/enumerations/domains.js +346 -0
- package/source/enumerations/features.d.ts +260 -401
- package/source/enumerations/features.js +26 -852
- package/source/enumerations/frontends.d.ts +34 -0
- package/source/enumerations/frontends.js +48 -0
- package/source/enumerations/game-statuses.d.ts +0 -6
- package/source/enumerations/game-statuses.js +0 -28
- package/source/enumerations/icons.d.ts +326 -0
- package/source/enumerations/icons.js +326 -0
- package/source/enumerations/kinds.d.ts +2 -2
- package/source/enumerations/kinds.js +2 -2
- package/source/enumerations/{request-methods.d.ts → methods.d.ts} +1 -1
- package/source/enumerations/{request-methods.js → methods.js} +1 -1
- package/source/enumerations/procedures.d.ts +74 -0
- package/source/enumerations/procedures.js +76 -0
- package/source/enumerations/roles.d.ts +2 -4
- package/source/enumerations/roles.js +0 -1
- package/source/enumerations/services.d.ts +48 -9
- package/source/enumerations/services.js +21 -30
- package/source/functions/fetch.d.ts +9 -15
- package/source/functions/fetch.js +76 -120
- package/source/functions/origin.d.ts +213 -1
- package/source/functions/origin.js +78 -40
- package/source/functions/pathname.d.ts +1 -0
- package/source/functions/pathname.js +40 -0
- package/source/functions/url.d.ts +1 -0
- package/source/functions/url.js +48 -0
- package/source/game.d.ts +17 -17
- package/source/globals.d.ts +22 -669
- package/source/index.d.ts +33 -14
- package/source/index.js +20 -1
- package/source/registration.d.ts +29 -29
- package/source/role.d.ts +3 -3
- package/source/rows.d.ts +9 -9
- package/source/theme.d.ts +3 -3
- package/source/user.d.ts +15 -15
- package/source/venue.d.ts +17 -17
package/jsconfig.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"baseUrl": ".",
|
|
4
|
-
|
|
5
4
|
"module": "NodeNext",
|
|
6
5
|
"moduleResolution": "nodenext",
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"emitDeclarationOnly": true,
|
|
8
|
+
"declaration": true,
|
|
11
9
|
"paths": {
|
|
12
|
-
"source/": [
|
|
10
|
+
"source/": [
|
|
11
|
+
"./source/*"
|
|
12
|
+
]
|
|
13
13
|
}
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
},
|
|
15
|
+
"include": [
|
|
16
|
+
"source/**/*"
|
|
17
|
+
]
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shakerquiz/utilities",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"author": "yurkimus <yurkimus@gmail.com>",
|
|
5
5
|
"license": "ISC",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"type": "rm -rf ./source/enumerations/*.d.ts && rm -rf ./source/functions/*.d.ts && tsc --allowjs --emitdeclarationonly --declaration ./source/*.js"
|
|
8
|
-
},
|
|
9
6
|
"exports": {
|
|
10
7
|
".": {
|
|
11
8
|
"node": "./source/index.js",
|
package/source/city.d.ts
CHANGED
|
@@ -31,35 +31,35 @@ type CityRow = {
|
|
|
31
31
|
/**
|
|
32
32
|
* @description "integer"
|
|
33
33
|
*/
|
|
34
|
-
timezone:
|
|
34
|
+
timezone: number | null
|
|
35
35
|
/**
|
|
36
36
|
* @description "boolean"
|
|
37
37
|
*/
|
|
38
|
-
is_default:
|
|
38
|
+
is_default: boolean | null
|
|
39
39
|
/**
|
|
40
40
|
* @description "boolean"
|
|
41
41
|
*/
|
|
42
|
-
is_franchise:
|
|
42
|
+
is_franchise: boolean | null
|
|
43
43
|
/**
|
|
44
44
|
* @description "integer"
|
|
45
45
|
*/
|
|
46
|
-
min_members_count:
|
|
46
|
+
min_members_count: number | null
|
|
47
47
|
/**
|
|
48
48
|
* @description "integer"
|
|
49
49
|
*/
|
|
50
|
-
max_members_count:
|
|
50
|
+
max_members_count: number | null
|
|
51
51
|
/**
|
|
52
52
|
* @description "boolean"
|
|
53
53
|
*/
|
|
54
|
-
chatapp_legacy:
|
|
54
|
+
chatapp_legacy: boolean | null
|
|
55
55
|
/**
|
|
56
56
|
* @description "timestamp with time zone"
|
|
57
57
|
*/
|
|
58
|
-
time_updated:
|
|
58
|
+
time_updated: string | null
|
|
59
59
|
/**
|
|
60
60
|
* @description "double precision"
|
|
61
61
|
*/
|
|
62
|
-
price:
|
|
62
|
+
price: number | null
|
|
63
63
|
/**
|
|
64
64
|
* @description "uuid"
|
|
65
65
|
*/
|
|
@@ -67,129 +67,129 @@ type CityRow = {
|
|
|
67
67
|
/**
|
|
68
68
|
* @description "character varying"
|
|
69
69
|
*/
|
|
70
|
-
inst_login:
|
|
70
|
+
inst_login: string | null
|
|
71
71
|
/**
|
|
72
72
|
* @description "character varying"
|
|
73
73
|
*/
|
|
74
|
-
inst_password:
|
|
74
|
+
inst_password: string | null
|
|
75
75
|
/**
|
|
76
76
|
* @description "character varying"
|
|
77
77
|
*/
|
|
78
|
-
inst_comment:
|
|
78
|
+
inst_comment: string | null
|
|
79
79
|
/**
|
|
80
80
|
* @description "character varying"
|
|
81
81
|
*/
|
|
82
|
-
custom_script:
|
|
82
|
+
custom_script: string | null
|
|
83
83
|
/**
|
|
84
84
|
* @description "character varying"
|
|
85
85
|
*/
|
|
86
|
-
custom_html:
|
|
86
|
+
custom_html: string | null
|
|
87
87
|
/**
|
|
88
88
|
* @description "character varying"
|
|
89
89
|
*/
|
|
90
|
-
alias:
|
|
90
|
+
alias: string | null
|
|
91
91
|
/**
|
|
92
92
|
* @description "character varying"
|
|
93
93
|
*/
|
|
94
|
-
vk_group_id:
|
|
94
|
+
vk_group_id: string | null
|
|
95
95
|
/**
|
|
96
96
|
* @description "character varying"
|
|
97
97
|
*/
|
|
98
|
-
chatapp_line:
|
|
98
|
+
chatapp_line: string | null
|
|
99
99
|
/**
|
|
100
100
|
* @description "character varying"
|
|
101
101
|
*/
|
|
102
|
-
chatapp_user:
|
|
102
|
+
chatapp_user: string | null
|
|
103
103
|
/**
|
|
104
104
|
* @description "character varying"
|
|
105
105
|
*/
|
|
106
|
-
chatapp_tag:
|
|
106
|
+
chatapp_tag: string | null
|
|
107
107
|
/**
|
|
108
108
|
* @description "character varying"
|
|
109
109
|
*/
|
|
110
|
-
chatapp_category:
|
|
110
|
+
chatapp_category: string | null
|
|
111
111
|
/**
|
|
112
112
|
* @description "character varying"
|
|
113
113
|
*/
|
|
114
|
-
telegram_chat_id:
|
|
114
|
+
telegram_chat_id: string | null
|
|
115
115
|
/**
|
|
116
116
|
* @description "character varying"
|
|
117
117
|
*/
|
|
118
|
-
title:
|
|
118
|
+
title: string | null
|
|
119
119
|
/**
|
|
120
120
|
* @description "character varying"
|
|
121
121
|
*/
|
|
122
|
-
description:
|
|
122
|
+
description: string | null
|
|
123
123
|
/**
|
|
124
124
|
* @description "character varying"
|
|
125
125
|
*/
|
|
126
|
-
region:
|
|
126
|
+
region: string | null
|
|
127
127
|
/**
|
|
128
128
|
* @description "character varying"
|
|
129
129
|
*/
|
|
130
|
-
country:
|
|
130
|
+
country: string | null
|
|
131
131
|
/**
|
|
132
132
|
* @description "character varying"
|
|
133
133
|
*/
|
|
134
|
-
yandex_metrica:
|
|
134
|
+
yandex_metrica: string | null
|
|
135
135
|
/**
|
|
136
136
|
* @description "character varying"
|
|
137
137
|
*/
|
|
138
|
-
meta_title:
|
|
138
|
+
meta_title: string | null
|
|
139
139
|
/**
|
|
140
140
|
* @description "character varying"
|
|
141
141
|
*/
|
|
142
|
-
meta_description:
|
|
142
|
+
meta_description: string | null
|
|
143
143
|
/**
|
|
144
144
|
* @description "character varying"
|
|
145
145
|
*/
|
|
146
|
-
phone:
|
|
146
|
+
phone: string | null
|
|
147
147
|
/**
|
|
148
148
|
* @description "character varying"
|
|
149
149
|
*/
|
|
150
|
-
email:
|
|
150
|
+
email: string | null
|
|
151
151
|
/**
|
|
152
152
|
* @description "character varying"
|
|
153
153
|
*/
|
|
154
|
-
name:
|
|
154
|
+
name: string | null
|
|
155
155
|
/**
|
|
156
156
|
* @description "character varying"
|
|
157
157
|
*/
|
|
158
|
-
address:
|
|
158
|
+
address: string | null
|
|
159
159
|
/**
|
|
160
160
|
* @description "character varying"
|
|
161
161
|
*/
|
|
162
|
-
currency:
|
|
162
|
+
currency: string | null
|
|
163
163
|
/**
|
|
164
164
|
* @description "character varying"
|
|
165
165
|
*/
|
|
166
|
-
game_time:
|
|
166
|
+
game_time: string | null
|
|
167
167
|
/**
|
|
168
168
|
* @description "character varying"
|
|
169
169
|
*/
|
|
170
|
-
vk_link:
|
|
170
|
+
vk_link: string | null
|
|
171
171
|
/**
|
|
172
172
|
* @description "character varying"
|
|
173
173
|
*/
|
|
174
|
-
vk_comment:
|
|
174
|
+
vk_comment: string | null
|
|
175
175
|
/**
|
|
176
176
|
* @description "character varying"
|
|
177
177
|
*/
|
|
178
|
-
tg_link:
|
|
178
|
+
tg_link: string | null
|
|
179
179
|
/**
|
|
180
180
|
* @description "character varying"
|
|
181
181
|
*/
|
|
182
|
-
tg_login:
|
|
182
|
+
tg_login: string | null
|
|
183
183
|
/**
|
|
184
184
|
* @description "character varying"
|
|
185
185
|
*/
|
|
186
|
-
tg_password:
|
|
186
|
+
tg_password: string | null
|
|
187
187
|
/**
|
|
188
188
|
* @description "character varying"
|
|
189
189
|
*/
|
|
190
|
-
tg_comment:
|
|
190
|
+
tg_comment: string | null
|
|
191
191
|
/**
|
|
192
192
|
* @description "character varying"
|
|
193
193
|
*/
|
|
194
|
-
inst_link:
|
|
194
|
+
inst_link: string | null
|
|
195
195
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export namespace Backends {
|
|
2
|
+
let Backend: "Backend";
|
|
3
|
+
let Games: "Games";
|
|
4
|
+
let Locations: "Locations";
|
|
5
|
+
let Users: "Users";
|
|
6
|
+
}
|
|
7
|
+
export namespace BackendFeatures {
|
|
8
|
+
let Backend_1: ("Checkin" | "City" | "Game" | "Registration" | "Theme" | "User" | "Venue")[];
|
|
9
|
+
export { Backend_1 as Backend };
|
|
10
|
+
let Games_1: ("Game" | "Registration" | "Theme")[];
|
|
11
|
+
export { Games_1 as Games };
|
|
12
|
+
let Locations_1: ("City" | "Venue")[];
|
|
13
|
+
export { Locations_1 as Locations };
|
|
14
|
+
let Users_1: ("Checkin" | "User")[];
|
|
15
|
+
export { Users_1 as Users };
|
|
16
|
+
}
|
|
17
|
+
export namespace BackendNetworkOrigins {
|
|
18
|
+
export namespace Backend_2 {
|
|
19
|
+
let Docker: string;
|
|
20
|
+
let Public: string;
|
|
21
|
+
}
|
|
22
|
+
export { Backend_2 as Backend };
|
|
23
|
+
export namespace Games_2 {
|
|
24
|
+
let Docker_1: string;
|
|
25
|
+
export { Docker_1 as Docker };
|
|
26
|
+
let Public_1: string;
|
|
27
|
+
export { Public_1 as Public };
|
|
28
|
+
}
|
|
29
|
+
export { Games_2 as Games };
|
|
30
|
+
export namespace Locations_2 {
|
|
31
|
+
let Docker_2: string;
|
|
32
|
+
export { Docker_2 as Docker };
|
|
33
|
+
let Public_2: string;
|
|
34
|
+
export { Public_2 as Public };
|
|
35
|
+
}
|
|
36
|
+
export { Locations_2 as Locations };
|
|
37
|
+
export namespace Users_2 {
|
|
38
|
+
let Docker_3: string;
|
|
39
|
+
export { Docker_3 as Docker };
|
|
40
|
+
let Public_3: string;
|
|
41
|
+
export { Public_3 as Public };
|
|
42
|
+
}
|
|
43
|
+
export { Users_2 as Users };
|
|
44
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Domains } from './domains.js'
|
|
2
|
+
import { Networks } from './networks.js'
|
|
3
|
+
import { Procedures } from './procedures.js'
|
|
4
|
+
|
|
5
|
+
export var Backends = /** @type {const} */ ({
|
|
6
|
+
Backend: 'Backend',
|
|
7
|
+
Games: 'Games',
|
|
8
|
+
Locations: 'Locations',
|
|
9
|
+
Users: 'Users',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
export var BackendFeatures = {
|
|
13
|
+
[Backends.Backend]: [
|
|
14
|
+
Domains.City,
|
|
15
|
+
Domains.Game,
|
|
16
|
+
Domains.Registration,
|
|
17
|
+
Domains.Theme,
|
|
18
|
+
Domains.User,
|
|
19
|
+
Domains.Venue,
|
|
20
|
+
Procedures.Checkin,
|
|
21
|
+
],
|
|
22
|
+
|
|
23
|
+
[Backends.Games]: [
|
|
24
|
+
Domains.Theme,
|
|
25
|
+
Domains.Game,
|
|
26
|
+
Domains.Registration,
|
|
27
|
+
],
|
|
28
|
+
|
|
29
|
+
[Backends.Locations]: [
|
|
30
|
+
Domains.City,
|
|
31
|
+
Domains.Venue,
|
|
32
|
+
],
|
|
33
|
+
|
|
34
|
+
[Backends.Users]: [
|
|
35
|
+
Domains.User,
|
|
36
|
+
Procedures.Checkin,
|
|
37
|
+
],
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export var BackendNetworkOrigins = {
|
|
41
|
+
[Backends.Backend]: {
|
|
42
|
+
[Networks.Docker]: '',
|
|
43
|
+
[Networks.Public]: '',
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
[Backends.Games]: {
|
|
47
|
+
[Networks.Docker]: '',
|
|
48
|
+
[Networks.Public]: '',
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
[Backends.Locations]: {
|
|
52
|
+
[Networks.Docker]: '',
|
|
53
|
+
[Networks.Public]: '',
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
[Backends.Users]: {
|
|
57
|
+
[Networks.Docker]: '',
|
|
58
|
+
[Networks.Public]: '',
|
|
59
|
+
},
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const Default: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Default = Symbol('Default')
|