@shakerquiz/forms 0.0.35 → 0.0.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 +3 -3
- package/source/index.js +60 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@shakerquiz/forms",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.37",
|
|
5
5
|
"author": "yurkimus <yurkimus@gmail.com>",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
],
|
|
17
17
|
"exports": "./source/index.js",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@shakerquiz/contracts": "0.0.
|
|
20
|
-
"@shakerquiz/utilities": "4.0.
|
|
19
|
+
"@shakerquiz/contracts": "0.0.71",
|
|
20
|
+
"@shakerquiz/utilities": "4.0.32",
|
|
21
21
|
"@types/bun": "1.3.7"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/source/index.js
CHANGED
|
@@ -2,15 +2,23 @@ import PATCH_user_admin from './forms/PATCH/user/admin.json' with { type: 'json'
|
|
|
2
2
|
import PATCH_user_password_admin from './forms/PATCH/user/password/admin.json' with { type: 'json' }
|
|
3
3
|
import PATCH_user_role_admin from './forms/PATCH/user/role/admin.json' with { type: 'json' }
|
|
4
4
|
import PATCH_city_admin from './forms/PATCH/city/admin.json' with { type: 'json' }
|
|
5
|
+
import PATCH_city_organizer from './forms/PATCH/city/organizer.json' with { type: 'json' }
|
|
5
6
|
import PATCH_city_vk_group_token_admin from './forms/PATCH/city/vk_group_token/admin.json' with { type: 'json' }
|
|
6
7
|
import PATCH_city_country_admin from './forms/PATCH/city/country/admin.json' with { type: 'json' }
|
|
8
|
+
import PATCH_city_country_organizer from './forms/PATCH/city/country/organizer.json' with { type: 'json' }
|
|
7
9
|
import PATCH_city_currency_admin from './forms/PATCH/city/currency/admin.json' with { type: 'json' }
|
|
10
|
+
import PATCH_city_currency_organizer from './forms/PATCH/city/currency/organizer.json' with { type: 'json' }
|
|
8
11
|
import PATCH_city_timezone_admin from './forms/PATCH/city/timezone/admin.json' with { type: 'json' }
|
|
12
|
+
import PATCH_city_timezone_organizer from './forms/PATCH/city/timezone/organizer.json' with { type: 'json' }
|
|
9
13
|
import PATCH_venue_admin from './forms/PATCH/venue/admin.json' with { type: 'json' }
|
|
14
|
+
import PATCH_venue_organizer from './forms/PATCH/venue/organizer.json' with { type: 'json' }
|
|
10
15
|
import PATCH_theme_admin from './forms/PATCH/theme/admin.json' with { type: 'json' }
|
|
11
16
|
import PATCH_game_admin from './forms/PATCH/game/admin.json' with { type: 'json' }
|
|
17
|
+
import PATCH_game_organizer from './forms/PATCH/game/organizer.json' with { type: 'json' }
|
|
12
18
|
import PATCH_game_status_admin from './forms/PATCH/game/status/admin.json' with { type: 'json' }
|
|
19
|
+
import PATCH_game_status_organizer from './forms/PATCH/game/status/organizer.json' with { type: 'json' }
|
|
13
20
|
import PATCH_registration_admin from './forms/PATCH/registration/admin.json' with { type: 'json' }
|
|
21
|
+
import PATCH_registration_organizer from './forms/PATCH/registration/organizer.json' with { type: 'json' }
|
|
14
22
|
import PATCH_registration_Unknown from './forms/PATCH/registration/Unknown.json' with { type: 'json' }
|
|
15
23
|
import PATCH_registration_status_admin from './forms/PATCH/registration/status/admin.json' with { type: 'json' }
|
|
16
24
|
import PATCH_registration_lineup_admin from './forms/PATCH/registration/lineup/admin.json' with { type: 'json' }
|
|
@@ -19,14 +27,18 @@ import POST_user_admin from './forms/POST/user/admin.json' with { type: 'json' }
|
|
|
19
27
|
import POST_user_password_admin from './forms/POST/user/password/admin.json' with { type: 'json' }
|
|
20
28
|
import POST_user_role_admin from './forms/POST/user/role/admin.json' with { type: 'json' }
|
|
21
29
|
import POST_checkin_admin from './forms/POST/checkin/admin.json' with { type: 'json' }
|
|
30
|
+
import POST_checkin_organizer from './forms/POST/checkin/organizer.json' with { type: 'json' }
|
|
22
31
|
import POST_checkin_Unknown from './forms/POST/checkin/Unknown.json' with { type: 'json' }
|
|
23
32
|
import POST_city_admin from './forms/POST/city/admin.json' with { type: 'json' }
|
|
24
33
|
import POST_city_vk_group_token_admin from './forms/POST/city/vk_group_token/admin.json' with { type: 'json' }
|
|
25
34
|
import POST_venue_admin from './forms/POST/venue/admin.json' with { type: 'json' }
|
|
35
|
+
import POST_venue_organizer from './forms/POST/venue/organizer.json' with { type: 'json' }
|
|
26
36
|
import POST_theme_admin from './forms/POST/theme/admin.json' with { type: 'json' }
|
|
27
37
|
import POST_theme_cover_admin from './forms/POST/theme/cover/admin.json' with { type: 'json' }
|
|
28
38
|
import POST_game_admin from './forms/POST/game/admin.json' with { type: 'json' }
|
|
39
|
+
import POST_game_organizer from './forms/POST/game/organizer.json' with { type: 'json' }
|
|
29
40
|
import POST_registration_admin from './forms/POST/registration/admin.json' with { type: 'json' }
|
|
41
|
+
import POST_registration_organizer from './forms/POST/registration/organizer.json' with { type: 'json' }
|
|
30
42
|
import POST_registration_Unknown from './forms/POST/registration/Unknown.json' with { type: 'json' }
|
|
31
43
|
import PUT_theme_cover_admin from './forms/PUT/theme/cover/admin.json' with { type: 'json' }
|
|
32
44
|
|
|
@@ -36,15 +48,23 @@ export const Forms = Object.freeze(
|
|
|
36
48
|
'PATCH/user/password/admin',
|
|
37
49
|
'PATCH/user/role/admin',
|
|
38
50
|
'PATCH/city/admin',
|
|
51
|
+
'PATCH/city/organizer',
|
|
39
52
|
'PATCH/city/vk_group_token/admin',
|
|
40
53
|
'PATCH/city/country/admin',
|
|
54
|
+
'PATCH/city/country/organizer',
|
|
41
55
|
'PATCH/city/currency/admin',
|
|
56
|
+
'PATCH/city/currency/organizer',
|
|
42
57
|
'PATCH/city/timezone/admin',
|
|
58
|
+
'PATCH/city/timezone/organizer',
|
|
43
59
|
'PATCH/venue/admin',
|
|
60
|
+
'PATCH/venue/organizer',
|
|
44
61
|
'PATCH/theme/admin',
|
|
45
62
|
'PATCH/game/admin',
|
|
63
|
+
'PATCH/game/organizer',
|
|
46
64
|
'PATCH/game/status/admin',
|
|
65
|
+
'PATCH/game/status/organizer',
|
|
47
66
|
'PATCH/registration/admin',
|
|
67
|
+
'PATCH/registration/organizer',
|
|
48
68
|
'PATCH/registration/Unknown',
|
|
49
69
|
'PATCH/registration/status/admin',
|
|
50
70
|
'PATCH/registration/lineup/admin',
|
|
@@ -53,14 +73,18 @@ export const Forms = Object.freeze(
|
|
|
53
73
|
'POST/user/password/admin',
|
|
54
74
|
'POST/user/role/admin',
|
|
55
75
|
'POST/checkin/admin',
|
|
76
|
+
'POST/checkin/organizer',
|
|
56
77
|
'POST/checkin/Unknown',
|
|
57
78
|
'POST/city/admin',
|
|
58
79
|
'POST/city/vk_group_token/admin',
|
|
59
80
|
'POST/venue/admin',
|
|
81
|
+
'POST/venue/organizer',
|
|
60
82
|
'POST/theme/admin',
|
|
61
83
|
'POST/theme/cover/admin',
|
|
62
84
|
'POST/game/admin',
|
|
85
|
+
'POST/game/organizer',
|
|
63
86
|
'POST/registration/admin',
|
|
87
|
+
'POST/registration/organizer',
|
|
64
88
|
'POST/registration/Unknown',
|
|
65
89
|
'PUT/theme/cover/admin'
|
|
66
90
|
]),
|
|
@@ -72,15 +96,23 @@ export const Schemas = Object.freeze(
|
|
|
72
96
|
PATCH_user_password_admin,
|
|
73
97
|
PATCH_user_role_admin,
|
|
74
98
|
PATCH_city_admin,
|
|
99
|
+
PATCH_city_organizer,
|
|
75
100
|
PATCH_city_vk_group_token_admin,
|
|
76
101
|
PATCH_city_country_admin,
|
|
102
|
+
PATCH_city_country_organizer,
|
|
77
103
|
PATCH_city_currency_admin,
|
|
104
|
+
PATCH_city_currency_organizer,
|
|
78
105
|
PATCH_city_timezone_admin,
|
|
106
|
+
PATCH_city_timezone_organizer,
|
|
79
107
|
PATCH_venue_admin,
|
|
108
|
+
PATCH_venue_organizer,
|
|
80
109
|
PATCH_theme_admin,
|
|
81
110
|
PATCH_game_admin,
|
|
111
|
+
PATCH_game_organizer,
|
|
82
112
|
PATCH_game_status_admin,
|
|
113
|
+
PATCH_game_status_organizer,
|
|
83
114
|
PATCH_registration_admin,
|
|
115
|
+
PATCH_registration_organizer,
|
|
84
116
|
PATCH_registration_Unknown,
|
|
85
117
|
PATCH_registration_status_admin,
|
|
86
118
|
PATCH_registration_lineup_admin,
|
|
@@ -89,14 +121,18 @@ export const Schemas = Object.freeze(
|
|
|
89
121
|
POST_user_password_admin,
|
|
90
122
|
POST_user_role_admin,
|
|
91
123
|
POST_checkin_admin,
|
|
124
|
+
POST_checkin_organizer,
|
|
92
125
|
POST_checkin_Unknown,
|
|
93
126
|
POST_city_admin,
|
|
94
127
|
POST_city_vk_group_token_admin,
|
|
95
128
|
POST_venue_admin,
|
|
129
|
+
POST_venue_organizer,
|
|
96
130
|
POST_theme_admin,
|
|
97
131
|
POST_theme_cover_admin,
|
|
98
132
|
POST_game_admin,
|
|
133
|
+
POST_game_organizer,
|
|
99
134
|
POST_registration_admin,
|
|
135
|
+
POST_registration_organizer,
|
|
100
136
|
POST_registration_Unknown,
|
|
101
137
|
PUT_theme_cover_admin
|
|
102
138
|
]),
|
|
@@ -108,15 +144,23 @@ export const FormSchema = Object.freeze(
|
|
|
108
144
|
'PATCH/user/password/admin': PATCH_user_password_admin,
|
|
109
145
|
'PATCH/user/role/admin': PATCH_user_role_admin,
|
|
110
146
|
'PATCH/city/admin': PATCH_city_admin,
|
|
147
|
+
'PATCH/city/organizer': PATCH_city_organizer,
|
|
111
148
|
'PATCH/city/vk_group_token/admin': PATCH_city_vk_group_token_admin,
|
|
112
149
|
'PATCH/city/country/admin': PATCH_city_country_admin,
|
|
150
|
+
'PATCH/city/country/organizer': PATCH_city_country_organizer,
|
|
113
151
|
'PATCH/city/currency/admin': PATCH_city_currency_admin,
|
|
152
|
+
'PATCH/city/currency/organizer': PATCH_city_currency_organizer,
|
|
114
153
|
'PATCH/city/timezone/admin': PATCH_city_timezone_admin,
|
|
154
|
+
'PATCH/city/timezone/organizer': PATCH_city_timezone_organizer,
|
|
115
155
|
'PATCH/venue/admin': PATCH_venue_admin,
|
|
156
|
+
'PATCH/venue/organizer': PATCH_venue_organizer,
|
|
116
157
|
'PATCH/theme/admin': PATCH_theme_admin,
|
|
117
158
|
'PATCH/game/admin': PATCH_game_admin,
|
|
159
|
+
'PATCH/game/organizer': PATCH_game_organizer,
|
|
118
160
|
'PATCH/game/status/admin': PATCH_game_status_admin,
|
|
161
|
+
'PATCH/game/status/organizer': PATCH_game_status_organizer,
|
|
119
162
|
'PATCH/registration/admin': PATCH_registration_admin,
|
|
163
|
+
'PATCH/registration/organizer': PATCH_registration_organizer,
|
|
120
164
|
'PATCH/registration/Unknown': PATCH_registration_Unknown,
|
|
121
165
|
'PATCH/registration/status/admin': PATCH_registration_status_admin,
|
|
122
166
|
'PATCH/registration/lineup/admin': PATCH_registration_lineup_admin,
|
|
@@ -125,14 +169,18 @@ export const FormSchema = Object.freeze(
|
|
|
125
169
|
'POST/user/password/admin': POST_user_password_admin,
|
|
126
170
|
'POST/user/role/admin': POST_user_role_admin,
|
|
127
171
|
'POST/checkin/admin': POST_checkin_admin,
|
|
172
|
+
'POST/checkin/organizer': POST_checkin_organizer,
|
|
128
173
|
'POST/checkin/Unknown': POST_checkin_Unknown,
|
|
129
174
|
'POST/city/admin': POST_city_admin,
|
|
130
175
|
'POST/city/vk_group_token/admin': POST_city_vk_group_token_admin,
|
|
131
176
|
'POST/venue/admin': POST_venue_admin,
|
|
177
|
+
'POST/venue/organizer': POST_venue_organizer,
|
|
132
178
|
'POST/theme/admin': POST_theme_admin,
|
|
133
179
|
'POST/theme/cover/admin': POST_theme_cover_admin,
|
|
134
180
|
'POST/game/admin': POST_game_admin,
|
|
181
|
+
'POST/game/organizer': POST_game_organizer,
|
|
135
182
|
'POST/registration/admin': POST_registration_admin,
|
|
183
|
+
'POST/registration/organizer': POST_registration_organizer,
|
|
136
184
|
'POST/registration/Unknown': POST_registration_Unknown,
|
|
137
185
|
'PUT/theme/cover/admin': PUT_theme_cover_admin
|
|
138
186
|
}),
|
|
@@ -144,15 +192,23 @@ export const FormKind = Object.freeze(
|
|
|
144
192
|
'PATCH/user/password/admin': 'Schema',
|
|
145
193
|
'PATCH/user/role/admin': 'Schema',
|
|
146
194
|
'PATCH/city/admin': 'Schema',
|
|
195
|
+
'PATCH/city/organizer': 'Unknown',
|
|
147
196
|
'PATCH/city/vk_group_token/admin': 'Schema',
|
|
148
197
|
'PATCH/city/country/admin': 'Schema',
|
|
198
|
+
'PATCH/city/country/organizer': 'Unknown',
|
|
149
199
|
'PATCH/city/currency/admin': 'Schema',
|
|
200
|
+
'PATCH/city/currency/organizer': 'Unknown',
|
|
150
201
|
'PATCH/city/timezone/admin': 'Schema',
|
|
202
|
+
'PATCH/city/timezone/organizer': 'Unknown',
|
|
151
203
|
'PATCH/venue/admin': 'Schema',
|
|
204
|
+
'PATCH/venue/organizer': 'Schema',
|
|
152
205
|
'PATCH/theme/admin': 'Schema',
|
|
153
206
|
'PATCH/game/admin': 'Schema',
|
|
207
|
+
'PATCH/game/organizer': 'Schema',
|
|
154
208
|
'PATCH/game/status/admin': 'Schema',
|
|
209
|
+
'PATCH/game/status/organizer': 'Schema',
|
|
155
210
|
'PATCH/registration/admin': 'Schema',
|
|
211
|
+
'PATCH/registration/organizer': 'Schema',
|
|
156
212
|
'PATCH/registration/Unknown': 'Schema',
|
|
157
213
|
'PATCH/registration/status/admin': 'Schema',
|
|
158
214
|
'PATCH/registration/lineup/admin': 'Schema',
|
|
@@ -161,14 +217,18 @@ export const FormKind = Object.freeze(
|
|
|
161
217
|
'POST/user/password/admin': 'Schema',
|
|
162
218
|
'POST/user/role/admin': 'Schema',
|
|
163
219
|
'POST/checkin/admin': 'Unknown',
|
|
220
|
+
'POST/checkin/organizer': 'Unknown',
|
|
164
221
|
'POST/checkin/Unknown': 'Schema',
|
|
165
222
|
'POST/city/admin': 'Schema',
|
|
166
223
|
'POST/city/vk_group_token/admin': 'Schema',
|
|
167
224
|
'POST/venue/admin': 'Schema',
|
|
225
|
+
'POST/venue/organizer': 'Schema',
|
|
168
226
|
'POST/theme/admin': 'Schema',
|
|
169
227
|
'POST/theme/cover/admin': 'FormData',
|
|
170
228
|
'POST/game/admin': 'Schema',
|
|
229
|
+
'POST/game/organizer': 'Schema',
|
|
171
230
|
'POST/registration/admin': 'Schema',
|
|
231
|
+
'POST/registration/organizer': 'Schema',
|
|
172
232
|
'POST/registration/Unknown': 'Schema',
|
|
173
233
|
'PUT/theme/cover/admin': 'FormData'
|
|
174
234
|
}),
|