@shakerquiz/utilities 0.2.35 → 0.2.37
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 +1 -2
- package/source/enumerations/features.js +350 -157
- package/source/enumerations/request-methods.js +10 -0
- package/source/enumerations/services.js +21 -0
- package/source/functions/fetch.js +89 -151
- package/source/functions/{origins.js → origin.js} +18 -5
- package/source/game.d.ts +9 -9
- package/source/globals.d.ts +209 -36
- package/source/index.d.ts +7 -7
- package/source/index.js +2 -2
- package/source/{location.d.ts → venue.d.ts} +22 -22
- package/source/enumerations/methods.js +0 -8
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shakerquiz/utilities",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.37",
|
|
4
4
|
"author": "yurkimus <yurkimus@gmail.com>",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"types": "./source/index.d.ts",
|
|
9
8
|
"import": "./source/index.js",
|
|
10
9
|
"edge-light": "./source/index.js"
|
|
11
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Kinds } from './kinds.js'
|
|
2
|
-
import { Methods } from './methods.js'
|
|
3
2
|
import { Networks } from './networks.js'
|
|
3
|
+
import { RequestMethods } from './request-methods.js'
|
|
4
4
|
import { Requirements } from './requirements.js'
|
|
5
5
|
import { Services } from './services.js'
|
|
6
6
|
|
|
@@ -8,234 +8,272 @@ export var Features = /** @type {const} */ ({
|
|
|
8
8
|
Checkin: 'Checkin',
|
|
9
9
|
Cities: 'Cities',
|
|
10
10
|
City: 'City',
|
|
11
|
+
Countries: 'Countries',
|
|
12
|
+
Country: 'Country',
|
|
11
13
|
Game: 'Game',
|
|
12
14
|
Games: 'Games',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
Home: 'Home',
|
|
16
|
+
Region: 'Region',
|
|
17
|
+
Regions: 'Regions',
|
|
15
18
|
Registration: 'Registration',
|
|
16
19
|
Registrations: 'Registrations',
|
|
17
20
|
Theme: 'Theme',
|
|
18
21
|
Themes: 'Themes',
|
|
19
22
|
User: 'User',
|
|
20
23
|
Users: 'Users',
|
|
24
|
+
Venue: 'Venue',
|
|
25
|
+
Venues: 'Venues',
|
|
21
26
|
})
|
|
22
27
|
|
|
23
|
-
export var FeatureServices = {
|
|
24
|
-
[Features.Game]: Services.Games,
|
|
25
|
-
[Features.Games]: Services.Games,
|
|
26
|
-
[Features.Theme]: Services.Games,
|
|
27
|
-
[Features.Themes]: Services.Games,
|
|
28
|
-
[Features.Registration]: Services.Games,
|
|
29
|
-
[Features.Registrations]: Services.Games,
|
|
30
|
-
[Features.Cities]: Services.Locations,
|
|
31
|
-
[Features.City]: Services.Locations,
|
|
32
|
-
[Features.Location]: Services.Locations,
|
|
33
|
-
[Features.Locations]: Services.Locations,
|
|
34
|
-
[Features.Checkin]: Services.Users,
|
|
35
|
-
[Features.User]: Services.Users,
|
|
36
|
-
[Features.Users]: Services.Users,
|
|
37
|
-
}
|
|
38
|
-
|
|
39
28
|
export var ServiceFeatures = {
|
|
40
29
|
[Services.Games]: [
|
|
41
30
|
Features.Game,
|
|
42
31
|
Features.Games,
|
|
32
|
+
Features.Home,
|
|
33
|
+
Features.Registration,
|
|
34
|
+
Features.Registrations,
|
|
43
35
|
Features.Theme,
|
|
44
36
|
Features.Themes,
|
|
37
|
+
],
|
|
38
|
+
[Services.Landing]: [
|
|
39
|
+
Features.Game,
|
|
40
|
+
Features.Games,
|
|
41
|
+
Features.Home,
|
|
45
42
|
Features.Registration,
|
|
46
|
-
Features.Registrations,
|
|
47
43
|
],
|
|
48
44
|
[Services.Locations]: [
|
|
49
45
|
Features.Cities,
|
|
50
46
|
Features.City,
|
|
51
|
-
Features.
|
|
52
|
-
Features.
|
|
47
|
+
Features.Countries,
|
|
48
|
+
Features.Country,
|
|
49
|
+
Features.Home,
|
|
50
|
+
Features.Region,
|
|
51
|
+
Features.Regions,
|
|
52
|
+
Features.Venue,
|
|
53
|
+
Features.Venues,
|
|
54
|
+
],
|
|
55
|
+
[Services.Studio]: [
|
|
56
|
+
Features.Checkin,
|
|
57
|
+
Features.Cities,
|
|
58
|
+
Features.City,
|
|
59
|
+
Features.Countries,
|
|
60
|
+
Features.Country,
|
|
61
|
+
Features.Game,
|
|
62
|
+
Features.Games,
|
|
63
|
+
Features.Home,
|
|
64
|
+
Features.Region,
|
|
65
|
+
Features.Regions,
|
|
66
|
+
Features.Registration,
|
|
67
|
+
Features.Registrations,
|
|
68
|
+
Features.Theme,
|
|
69
|
+
Features.Themes,
|
|
70
|
+
Features.User,
|
|
71
|
+
Features.Users,
|
|
72
|
+
Features.Venue,
|
|
73
|
+
Features.Venues,
|
|
53
74
|
],
|
|
54
75
|
[Services.Users]: [
|
|
55
76
|
Features.Checkin,
|
|
56
77
|
Features.User,
|
|
57
78
|
Features.Users,
|
|
58
79
|
],
|
|
80
|
+
[Services.MiniApp]: [
|
|
81
|
+
Features.Game,
|
|
82
|
+
Features.Games,
|
|
83
|
+
Features.Home,
|
|
84
|
+
Features.Registration,
|
|
85
|
+
],
|
|
59
86
|
}
|
|
60
87
|
|
|
61
88
|
export var FeatureKinds = {
|
|
62
89
|
[Features.Checkin]: Kinds.Item,
|
|
63
90
|
[Features.Cities]: Kinds.List,
|
|
64
91
|
[Features.City]: Kinds.Item,
|
|
92
|
+
[Features.Countries]: Kinds.List,
|
|
93
|
+
[Features.Country]: Kinds.Item,
|
|
65
94
|
[Features.Game]: Kinds.Item,
|
|
66
95
|
[Features.Games]: Kinds.List,
|
|
67
|
-
[Features.
|
|
68
|
-
[Features.
|
|
96
|
+
[Features.Home]: Kinds.Item,
|
|
97
|
+
[Features.Region]: Kinds.Item,
|
|
98
|
+
[Features.Regions]: Kinds.List,
|
|
69
99
|
[Features.Registration]: Kinds.Item,
|
|
70
100
|
[Features.Registrations]: Kinds.List,
|
|
71
101
|
[Features.Theme]: Kinds.Item,
|
|
72
102
|
[Features.Themes]: Kinds.List,
|
|
73
103
|
[Features.User]: Kinds.Item,
|
|
74
104
|
[Features.Users]: Kinds.List,
|
|
105
|
+
[Features.Venue]: Kinds.Item,
|
|
106
|
+
[Features.Venues]: Kinds.List,
|
|
75
107
|
}
|
|
76
108
|
|
|
77
109
|
export var FeaturePathnames = /** @type {const} */ ({
|
|
78
110
|
[Features.Checkin]: '/checkin',
|
|
79
111
|
[Features.Cities]: '/cities',
|
|
80
|
-
[Features.City]:
|
|
81
|
-
[Features.
|
|
112
|
+
[Features.City]: `/city/:city?`,
|
|
113
|
+
[Features.Countries]: '/countries',
|
|
114
|
+
[Features.Country]: '/country/:country?',
|
|
115
|
+
[Features.Game]: `/game/:game?`,
|
|
82
116
|
[Features.Games]: '/games',
|
|
83
|
-
[Features.
|
|
84
|
-
[Features.
|
|
85
|
-
[Features.
|
|
117
|
+
[Features.Home]: '/',
|
|
118
|
+
[Features.Region]: '/region/:region?',
|
|
119
|
+
[Features.Regions]: '/regions',
|
|
120
|
+
[Features.Registration]: `/registration/:registration?`,
|
|
86
121
|
[Features.Registrations]: '/registrations',
|
|
87
|
-
[Features.Theme]:
|
|
122
|
+
[Features.Theme]: `/theme/:theme?`,
|
|
88
123
|
[Features.Themes]: '/themes',
|
|
89
|
-
[Features.User]:
|
|
124
|
+
[Features.User]: `/user/:user?`,
|
|
90
125
|
[Features.Users]: '/users',
|
|
126
|
+
[Features.Venue]: `/venue/:venue?`,
|
|
127
|
+
[Features.Venues]: '/venues',
|
|
91
128
|
})
|
|
92
129
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}),
|
|
97
|
-
[Features.Cities]: new URLPattern({
|
|
98
|
-
pathname: FeaturePathnames[Features.Cities],
|
|
99
|
-
}),
|
|
100
|
-
[Features.City]: new URLPattern({
|
|
101
|
-
pathname: FeaturePathnames[Features.City],
|
|
102
|
-
}),
|
|
103
|
-
[Features.Game]: new URLPattern({
|
|
104
|
-
pathname: FeaturePathnames[Features.Game],
|
|
105
|
-
}),
|
|
106
|
-
[Features.Games]: new URLPattern({
|
|
107
|
-
pathname: FeaturePathnames[Features.Games],
|
|
108
|
-
}),
|
|
109
|
-
[Features.Location]: new URLPattern({
|
|
110
|
-
pathname: FeaturePathnames[Features.Location],
|
|
111
|
-
}),
|
|
112
|
-
[Features.Locations]: new URLPattern({
|
|
113
|
-
pathname: FeaturePathnames[Features.Locations],
|
|
114
|
-
}),
|
|
115
|
-
[Features.Registration]: new URLPattern({
|
|
116
|
-
pathname: FeaturePathnames[Features.Registration],
|
|
117
|
-
}),
|
|
118
|
-
[Features.Registrations]: new URLPattern({
|
|
119
|
-
pathname: FeaturePathnames[Features.Registrations],
|
|
120
|
-
}),
|
|
121
|
-
[Features.Theme]: new URLPattern({
|
|
122
|
-
pathname: FeaturePathnames[Features.Theme],
|
|
123
|
-
}),
|
|
124
|
-
[Features.Themes]: new URLPattern({
|
|
125
|
-
pathname: FeaturePathnames[Features.Themes],
|
|
126
|
-
}),
|
|
127
|
-
[Features.User]: new URLPattern({
|
|
128
|
-
pathname: FeaturePathnames[Features.User],
|
|
129
|
-
}),
|
|
130
|
-
[Features.Users]: new URLPattern({
|
|
131
|
-
pathname: FeaturePathnames[Features.Users],
|
|
132
|
-
}),
|
|
133
|
-
}
|
|
134
|
-
|
|
130
|
+
/**
|
|
131
|
+
* @satisfies {Record<Feature, RequestMethod>}
|
|
132
|
+
*/
|
|
135
133
|
export var FeatureMethodRequirements = {
|
|
136
134
|
[Features.Checkin]: {
|
|
137
|
-
[
|
|
138
|
-
[
|
|
139
|
-
[
|
|
140
|
-
[
|
|
141
|
-
[
|
|
142
|
-
[
|
|
135
|
+
[RequestMethods.DELETE]: new Set([]),
|
|
136
|
+
[RequestMethods.GET]: new Set([]),
|
|
137
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
138
|
+
[RequestMethods.PATCH]: new Set([]),
|
|
139
|
+
[RequestMethods.POST]: new Set([Requirements.Body]),
|
|
140
|
+
[RequestMethods.PUT]: new Set([]),
|
|
143
141
|
},
|
|
144
142
|
[Features.Cities]: {
|
|
145
|
-
[
|
|
146
|
-
[
|
|
147
|
-
[
|
|
148
|
-
[
|
|
149
|
-
[
|
|
150
|
-
[
|
|
143
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
144
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
145
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
146
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
147
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
148
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
151
149
|
},
|
|
152
150
|
[Features.City]: {
|
|
153
|
-
[
|
|
154
|
-
[
|
|
155
|
-
[
|
|
156
|
-
[
|
|
157
|
-
[
|
|
158
|
-
[
|
|
151
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
152
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
153
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
154
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
155
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
156
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
157
|
+
},
|
|
158
|
+
[Features.Countries]: {
|
|
159
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
160
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
161
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
162
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
163
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
164
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
165
|
+
},
|
|
166
|
+
[Features.Country]: {
|
|
167
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
168
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
169
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
170
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
171
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
172
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
159
173
|
},
|
|
160
174
|
[Features.Game]: {
|
|
161
|
-
[
|
|
162
|
-
[
|
|
163
|
-
[
|
|
164
|
-
[
|
|
165
|
-
[
|
|
166
|
-
[
|
|
175
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
176
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
177
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
178
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
179
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
180
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
167
181
|
},
|
|
168
182
|
[Features.Games]: {
|
|
169
|
-
[
|
|
170
|
-
[
|
|
171
|
-
[
|
|
172
|
-
[
|
|
173
|
-
[
|
|
174
|
-
[
|
|
183
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
184
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
185
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
186
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
187
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
188
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
175
189
|
},
|
|
176
|
-
[Features.
|
|
177
|
-
[
|
|
178
|
-
[
|
|
179
|
-
[
|
|
180
|
-
[
|
|
181
|
-
[
|
|
182
|
-
[
|
|
190
|
+
[Features.Home]: {
|
|
191
|
+
[RequestMethods.DELETE]: new Set([]),
|
|
192
|
+
[RequestMethods.GET]: new Set([]),
|
|
193
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
194
|
+
[RequestMethods.PATCH]: new Set([]),
|
|
195
|
+
[RequestMethods.POST]: new Set([]),
|
|
196
|
+
[RequestMethods.PUT]: new Set([]),
|
|
183
197
|
},
|
|
184
|
-
[Features.
|
|
185
|
-
[
|
|
186
|
-
[
|
|
187
|
-
[
|
|
188
|
-
[
|
|
189
|
-
[
|
|
190
|
-
[
|
|
198
|
+
[Features.Region]: {
|
|
199
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
200
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
201
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
202
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
203
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
204
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
205
|
+
},
|
|
206
|
+
[Features.Regions]: {
|
|
207
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
208
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
209
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
210
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
211
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
212
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
191
213
|
},
|
|
192
214
|
[Features.Registration]: {
|
|
193
|
-
[
|
|
194
|
-
[
|
|
195
|
-
[
|
|
196
|
-
[
|
|
197
|
-
[
|
|
198
|
-
[
|
|
215
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
216
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
217
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
218
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
219
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
220
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
199
221
|
},
|
|
200
222
|
[Features.Registrations]: {
|
|
201
|
-
[
|
|
202
|
-
[
|
|
203
|
-
[
|
|
204
|
-
[
|
|
205
|
-
[
|
|
206
|
-
[
|
|
223
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
224
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
225
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
226
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
227
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
228
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
207
229
|
},
|
|
208
230
|
[Features.Theme]: {
|
|
209
|
-
[
|
|
210
|
-
[
|
|
211
|
-
[
|
|
212
|
-
[
|
|
213
|
-
[
|
|
214
|
-
[
|
|
231
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
232
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
233
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
234
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
235
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
236
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
215
237
|
},
|
|
216
238
|
[Features.Themes]: {
|
|
217
|
-
[
|
|
218
|
-
[
|
|
219
|
-
[
|
|
220
|
-
[
|
|
221
|
-
[
|
|
222
|
-
[
|
|
239
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
240
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
241
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
242
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
243
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
244
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
223
245
|
},
|
|
224
246
|
[Features.User]: {
|
|
225
|
-
[
|
|
226
|
-
[
|
|
227
|
-
[
|
|
228
|
-
[
|
|
229
|
-
[
|
|
230
|
-
[
|
|
247
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
248
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
249
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
250
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
251
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
252
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
231
253
|
},
|
|
232
254
|
[Features.Users]: {
|
|
233
|
-
[
|
|
234
|
-
[
|
|
235
|
-
[
|
|
236
|
-
[
|
|
237
|
-
[
|
|
238
|
-
[
|
|
255
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
256
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
257
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
258
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
259
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
260
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
261
|
+
},
|
|
262
|
+
[Features.Venue]: {
|
|
263
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
264
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
265
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
266
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
267
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
268
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
269
|
+
},
|
|
270
|
+
[Features.Venues]: {
|
|
271
|
+
[RequestMethods.DELETE]: new Set([Requirements.Checkin]),
|
|
272
|
+
[RequestMethods.GET]: new Set([Requirements.Checkin]),
|
|
273
|
+
[RequestMethods.OPTIONS]: new Set([]),
|
|
274
|
+
[RequestMethods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
275
|
+
[RequestMethods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
276
|
+
[RequestMethods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
|
|
239
277
|
},
|
|
240
278
|
}
|
|
241
279
|
|
|
@@ -265,7 +303,7 @@ export var FeatureNetworkOrigins = new Map([
|
|
|
265
303
|
]),
|
|
266
304
|
],
|
|
267
305
|
[
|
|
268
|
-
Features.
|
|
306
|
+
Features.Countries,
|
|
269
307
|
new Map([
|
|
270
308
|
[Networks.Docker, ''],
|
|
271
309
|
[Networks.Local, ''],
|
|
@@ -273,7 +311,15 @@ export var FeatureNetworkOrigins = new Map([
|
|
|
273
311
|
]),
|
|
274
312
|
],
|
|
275
313
|
[
|
|
276
|
-
Features.
|
|
314
|
+
Features.Country,
|
|
315
|
+
new Map([
|
|
316
|
+
[Networks.Docker, ''],
|
|
317
|
+
[Networks.Local, ''],
|
|
318
|
+
[Networks.Public, ''],
|
|
319
|
+
]),
|
|
320
|
+
],
|
|
321
|
+
[
|
|
322
|
+
Features.Game,
|
|
277
323
|
new Map([
|
|
278
324
|
[Networks.Docker, ''],
|
|
279
325
|
[Networks.Local, ''],
|
|
@@ -281,7 +327,7 @@ export var FeatureNetworkOrigins = new Map([
|
|
|
281
327
|
]),
|
|
282
328
|
],
|
|
283
329
|
[
|
|
284
|
-
Features.
|
|
330
|
+
Features.Games,
|
|
285
331
|
new Map([
|
|
286
332
|
[Networks.Docker, ''],
|
|
287
333
|
[Networks.Local, ''],
|
|
@@ -289,7 +335,7 @@ export var FeatureNetworkOrigins = new Map([
|
|
|
289
335
|
]),
|
|
290
336
|
],
|
|
291
337
|
[
|
|
292
|
-
Features.
|
|
338
|
+
Features.Home,
|
|
293
339
|
new Map([
|
|
294
340
|
[Networks.Docker, ''],
|
|
295
341
|
[Networks.Local, ''],
|
|
@@ -344,4 +390,151 @@ export var FeatureNetworkOrigins = new Map([
|
|
|
344
390
|
[Networks.Public, ''],
|
|
345
391
|
]),
|
|
346
392
|
],
|
|
393
|
+
[
|
|
394
|
+
Features.Venue,
|
|
395
|
+
new Map([
|
|
396
|
+
[Networks.Docker, ''],
|
|
397
|
+
[Networks.Local, ''],
|
|
398
|
+
[Networks.Public, ''],
|
|
399
|
+
]),
|
|
400
|
+
],
|
|
401
|
+
[
|
|
402
|
+
Features.Venues,
|
|
403
|
+
new Map([
|
|
404
|
+
[Networks.Docker, ''],
|
|
405
|
+
[Networks.Local, ''],
|
|
406
|
+
[Networks.Public, ''],
|
|
407
|
+
]),
|
|
408
|
+
],
|
|
409
|
+
])
|
|
410
|
+
|
|
411
|
+
export var FeatureNetworkUrls = new Map([
|
|
412
|
+
[
|
|
413
|
+
Features.Checkin,
|
|
414
|
+
new Map([
|
|
415
|
+
[Networks.Docker, null],
|
|
416
|
+
[Networks.Local, null],
|
|
417
|
+
[Networks.Public, null],
|
|
418
|
+
]),
|
|
419
|
+
],
|
|
420
|
+
[
|
|
421
|
+
Features.Cities,
|
|
422
|
+
new Map([
|
|
423
|
+
[Networks.Docker, null],
|
|
424
|
+
[Networks.Local, null],
|
|
425
|
+
[Networks.Public, null],
|
|
426
|
+
]),
|
|
427
|
+
],
|
|
428
|
+
[
|
|
429
|
+
Features.City,
|
|
430
|
+
new Map([
|
|
431
|
+
[Networks.Docker, null],
|
|
432
|
+
[Networks.Local, null],
|
|
433
|
+
[Networks.Public, null],
|
|
434
|
+
]),
|
|
435
|
+
],
|
|
436
|
+
[
|
|
437
|
+
Features.Countries,
|
|
438
|
+
new Map([
|
|
439
|
+
[Networks.Docker, null],
|
|
440
|
+
[Networks.Local, null],
|
|
441
|
+
[Networks.Public, null],
|
|
442
|
+
]),
|
|
443
|
+
],
|
|
444
|
+
[
|
|
445
|
+
Features.Country,
|
|
446
|
+
new Map([
|
|
447
|
+
[Networks.Docker, null],
|
|
448
|
+
[Networks.Local, null],
|
|
449
|
+
[Networks.Public, null],
|
|
450
|
+
]),
|
|
451
|
+
],
|
|
452
|
+
[
|
|
453
|
+
Features.Game,
|
|
454
|
+
new Map([
|
|
455
|
+
[Networks.Docker, null],
|
|
456
|
+
[Networks.Local, null],
|
|
457
|
+
[Networks.Public, null],
|
|
458
|
+
]),
|
|
459
|
+
],
|
|
460
|
+
[
|
|
461
|
+
Features.Games,
|
|
462
|
+
new Map([
|
|
463
|
+
[Networks.Docker, null],
|
|
464
|
+
[Networks.Local, null],
|
|
465
|
+
[Networks.Public, null],
|
|
466
|
+
]),
|
|
467
|
+
],
|
|
468
|
+
[
|
|
469
|
+
Features.Home,
|
|
470
|
+
new Map([
|
|
471
|
+
[Networks.Docker, ''],
|
|
472
|
+
[Networks.Local, ''],
|
|
473
|
+
[Networks.Public, ''],
|
|
474
|
+
]),
|
|
475
|
+
],
|
|
476
|
+
[
|
|
477
|
+
Features.Registration,
|
|
478
|
+
new Map([
|
|
479
|
+
[Networks.Docker, null],
|
|
480
|
+
[Networks.Local, null],
|
|
481
|
+
[Networks.Public, null],
|
|
482
|
+
]),
|
|
483
|
+
],
|
|
484
|
+
[
|
|
485
|
+
Features.Registrations,
|
|
486
|
+
new Map([
|
|
487
|
+
[Networks.Docker, null],
|
|
488
|
+
[Networks.Local, null],
|
|
489
|
+
[Networks.Public, null],
|
|
490
|
+
]),
|
|
491
|
+
],
|
|
492
|
+
[
|
|
493
|
+
Features.Theme,
|
|
494
|
+
new Map([
|
|
495
|
+
[Networks.Docker, null],
|
|
496
|
+
[Networks.Local, null],
|
|
497
|
+
[Networks.Public, null],
|
|
498
|
+
]),
|
|
499
|
+
],
|
|
500
|
+
[
|
|
501
|
+
Features.Themes,
|
|
502
|
+
new Map([
|
|
503
|
+
[Networks.Docker, null],
|
|
504
|
+
[Networks.Local, null],
|
|
505
|
+
[Networks.Public, null],
|
|
506
|
+
]),
|
|
507
|
+
],
|
|
508
|
+
[
|
|
509
|
+
Features.User,
|
|
510
|
+
new Map([
|
|
511
|
+
[Networks.Docker, null],
|
|
512
|
+
[Networks.Local, null],
|
|
513
|
+
[Networks.Public, null],
|
|
514
|
+
]),
|
|
515
|
+
],
|
|
516
|
+
[
|
|
517
|
+
Features.Users,
|
|
518
|
+
new Map([
|
|
519
|
+
[Networks.Docker, null],
|
|
520
|
+
[Networks.Local, null],
|
|
521
|
+
[Networks.Public, null],
|
|
522
|
+
]),
|
|
523
|
+
],
|
|
524
|
+
[
|
|
525
|
+
Features.Venue,
|
|
526
|
+
new Map([
|
|
527
|
+
[Networks.Docker, null],
|
|
528
|
+
[Networks.Local, null],
|
|
529
|
+
[Networks.Public, null],
|
|
530
|
+
]),
|
|
531
|
+
],
|
|
532
|
+
[
|
|
533
|
+
Features.Venues,
|
|
534
|
+
new Map([
|
|
535
|
+
[Networks.Docker, null],
|
|
536
|
+
[Networks.Local, null],
|
|
537
|
+
[Networks.Public, null],
|
|
538
|
+
]),
|
|
539
|
+
],
|
|
347
540
|
])
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
export var Services = /** @type {const} */ ({
|
|
2
|
+
/**
|
|
3
|
+
* @description Backend-service manipulating Theme, Game and Registration.
|
|
4
|
+
*/
|
|
2
5
|
Games: 'Games',
|
|
6
|
+
/**
|
|
7
|
+
* @description Frontend-service representing public landing.
|
|
8
|
+
*/
|
|
9
|
+
Landing: 'Landing',
|
|
10
|
+
/**
|
|
11
|
+
* @description Backend-service manipulating Country, Region, City and Venue.
|
|
12
|
+
*/
|
|
3
13
|
Locations: 'Locations',
|
|
14
|
+
/**
|
|
15
|
+
* @description Frontend-service representing tools for managing and creating content.
|
|
16
|
+
*/
|
|
17
|
+
Studio: 'Studio',
|
|
18
|
+
/**
|
|
19
|
+
* @description Backend-service manipulating Checkin and User.
|
|
20
|
+
*/
|
|
4
21
|
Users: 'Users',
|
|
22
|
+
/**
|
|
23
|
+
* @description Frontend-service representing integration with vk.com.
|
|
24
|
+
*/
|
|
25
|
+
MiniApp: 'MiniApp',
|
|
5
26
|
})
|