@shakerquiz/forms 0.0.1
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/LICENSE +24 -0
- package/package.json +21 -0
- package/source/fields/PATCH/user/admin.json +18 -0
- package/source/fields/POST/checkin/Unknown.json +10 -0
- package/source/fields/POST/city/admin.json +118 -0
- package/source/fields/POST/game/admin.json +46 -0
- package/source/fields/POST/game/organizer.json +46 -0
- package/source/fields/POST/registration/Unknown.json +82 -0
- package/source/fields/POST/theme/admin.json +22 -0
- package/source/fields/POST/user/admin.json +6 -0
- package/source/fields/POST/venue/admin.json +54 -0
- package/source/fields/POST/venue/organizer.json +54 -0
- package/source/fields/city.json +49 -0
- package/source/fields/game.json +26 -0
- package/source/fields/kinds.json +13 -0
- package/source/fields/registration.json +40 -0
- package/source/fields/theme.json +11 -0
- package/source/fields/user.json +20 -0
- package/source/fields/venue.json +24 -0
- package/source/index.js +26 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
For more information, please refer to <https://unlicense.org>
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"name": "@shakerquiz/forms",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"author": "yurkimus <yurkimus@gmail.com>",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/shaker-quiz/forms.git"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"prepublishOnly": "bun ./generate.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"source"
|
|
16
|
+
],
|
|
17
|
+
"exports": "./source/index.js",
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@shakerquiz/utilities": "0.5.219"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "name",
|
|
4
|
+
"kind": "string"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "price",
|
|
8
|
+
"kind": "number"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "currency",
|
|
12
|
+
"kind": "autocomplete"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "game_time",
|
|
16
|
+
"kind": "time"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "timezone",
|
|
20
|
+
"kind": "autocomplete"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "vk_link",
|
|
24
|
+
"kind": "url"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "vk_group_id",
|
|
28
|
+
"kind": "string"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "tg_link",
|
|
32
|
+
"kind": "url"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "telegram_chat_id",
|
|
36
|
+
"kind": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "telegram_channel_id",
|
|
40
|
+
"kind": "string"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "inst_link",
|
|
44
|
+
"kind": "url"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "min_members_count",
|
|
48
|
+
"kind": "number"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "max_members_count",
|
|
52
|
+
"kind": "number"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "custom_script",
|
|
56
|
+
"kind": "text"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "custom_html",
|
|
60
|
+
"kind": "text"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "alias",
|
|
64
|
+
"kind": "string"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "chatapp_line",
|
|
68
|
+
"kind": "string"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "chatapp_user",
|
|
72
|
+
"kind": "string"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "chatapp_tag",
|
|
76
|
+
"kind": "string"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "chatapp_category",
|
|
80
|
+
"kind": "string"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "country",
|
|
84
|
+
"kind": "autocomplete"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "yandex_metrica",
|
|
88
|
+
"kind": "string"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "phone",
|
|
92
|
+
"kind": "phone"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "email",
|
|
96
|
+
"kind": "email"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "address",
|
|
100
|
+
"kind": "text"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "timezone_name",
|
|
104
|
+
"kind": "autocomplete"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "currency_name",
|
|
108
|
+
"kind": "autocomplete"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "affilation",
|
|
112
|
+
"kind": "autocomplete"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "chatapp_version",
|
|
116
|
+
"kind": "autocomplete"
|
|
117
|
+
}
|
|
118
|
+
]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "number",
|
|
4
|
+
"kind": "string"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "status",
|
|
8
|
+
"kind": "autocomplete"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "event_time",
|
|
12
|
+
"kind": "datetime"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "price",
|
|
16
|
+
"kind": "number"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "location_id",
|
|
20
|
+
"kind": "autocomplete"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "theme_id",
|
|
24
|
+
"kind": "autocomplete"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "short_description",
|
|
28
|
+
"kind": "text"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "min_members_count",
|
|
32
|
+
"kind": "number"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "max_members_count",
|
|
36
|
+
"kind": "number"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "alias",
|
|
40
|
+
"kind": "string"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "city_id",
|
|
44
|
+
"kind": "autocomplete"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "number",
|
|
4
|
+
"kind": "string"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "status",
|
|
8
|
+
"kind": "autocomplete"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "event_time",
|
|
12
|
+
"kind": "datetime"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "price",
|
|
16
|
+
"kind": "number"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "location_id",
|
|
20
|
+
"kind": "autocomplete"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "theme_id",
|
|
24
|
+
"kind": "autocomplete"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "short_description",
|
|
28
|
+
"kind": "text"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "min_members_count",
|
|
32
|
+
"kind": "number"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "max_members_count",
|
|
36
|
+
"kind": "number"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "alias",
|
|
40
|
+
"kind": "string"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "city_id",
|
|
44
|
+
"kind": "autocomplete"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "human_name",
|
|
4
|
+
"kind": "string"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "email",
|
|
8
|
+
"kind": "email"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "phone",
|
|
12
|
+
"kind": "phone"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "team_name",
|
|
16
|
+
"kind": "string"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "people_count",
|
|
20
|
+
"kind": "number"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "is_first",
|
|
24
|
+
"kind": "checkbox"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "is_birthday",
|
|
28
|
+
"kind": "checkbox"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "is_extensible",
|
|
32
|
+
"kind": "checkbox"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "ads_from",
|
|
36
|
+
"kind": "text"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "comment",
|
|
40
|
+
"kind": "text"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "promocode",
|
|
44
|
+
"kind": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "is_alone",
|
|
48
|
+
"kind": "checkbox"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "utm_term",
|
|
52
|
+
"kind": "string"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "utm_source",
|
|
56
|
+
"kind": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "utm_medium",
|
|
60
|
+
"kind": "string"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "utm_content",
|
|
64
|
+
"kind": "string"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "utm_campaign",
|
|
68
|
+
"kind": "string"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "status",
|
|
72
|
+
"kind": "autocomplete"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "celebrant",
|
|
76
|
+
"kind": "string"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "lineup",
|
|
80
|
+
"kind": "autocomplete"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "name",
|
|
4
|
+
"kind": "string"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "short_description",
|
|
8
|
+
"kind": "string"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "description",
|
|
12
|
+
"kind": "string"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "alias",
|
|
16
|
+
"kind": "string"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "status",
|
|
20
|
+
"kind": "autocomplete"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "name",
|
|
4
|
+
"kind": "string"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "comment",
|
|
8
|
+
"kind": "text"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "street",
|
|
12
|
+
"kind": "text"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "people_capacity",
|
|
16
|
+
"kind": "number"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "team_capacity",
|
|
20
|
+
"kind": "number"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "game_time",
|
|
24
|
+
"kind": "string"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "floor",
|
|
28
|
+
"kind": "number"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "metro",
|
|
32
|
+
"kind": "text"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "location_info",
|
|
36
|
+
"kind": "text"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "house_number",
|
|
40
|
+
"kind": "string"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "status",
|
|
44
|
+
"kind": "autocomplete"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "href",
|
|
48
|
+
"kind": "url"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "audience",
|
|
52
|
+
"kind": "autocomplete"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "name",
|
|
4
|
+
"kind": "string"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"name": "comment",
|
|
8
|
+
"kind": "text"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "street",
|
|
12
|
+
"kind": "text"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "people_capacity",
|
|
16
|
+
"kind": "number"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "team_capacity",
|
|
20
|
+
"kind": "number"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "game_time",
|
|
24
|
+
"kind": "string"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "floor",
|
|
28
|
+
"kind": "number"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "metro",
|
|
32
|
+
"kind": "text"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "location_info",
|
|
36
|
+
"kind": "text"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "house_number",
|
|
40
|
+
"kind": "string"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "status",
|
|
44
|
+
"kind": "autocomplete"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "href",
|
|
48
|
+
"kind": "url"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "audience",
|
|
52
|
+
"kind": "autocomplete"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[
|
|
2
|
+
"name",
|
|
3
|
+
"id",
|
|
4
|
+
"time_created",
|
|
5
|
+
"time_updated",
|
|
6
|
+
"price",
|
|
7
|
+
"currency",
|
|
8
|
+
"game_time",
|
|
9
|
+
"timezone",
|
|
10
|
+
"vk_link",
|
|
11
|
+
"vk_comment",
|
|
12
|
+
"tg_link",
|
|
13
|
+
"tg_login",
|
|
14
|
+
"tg_password",
|
|
15
|
+
"tg_comment",
|
|
16
|
+
"inst_link",
|
|
17
|
+
"inst_login",
|
|
18
|
+
"inst_password",
|
|
19
|
+
"inst_comment",
|
|
20
|
+
"is_franchise",
|
|
21
|
+
"min_members_count",
|
|
22
|
+
"max_members_count",
|
|
23
|
+
"custom_script",
|
|
24
|
+
"custom_html",
|
|
25
|
+
"alias",
|
|
26
|
+
"vk_group_id",
|
|
27
|
+
"chatapp_line",
|
|
28
|
+
"chatapp_user",
|
|
29
|
+
"chatapp_tag",
|
|
30
|
+
"chatapp_category",
|
|
31
|
+
"telegram_chat_id",
|
|
32
|
+
"title",
|
|
33
|
+
"description",
|
|
34
|
+
"region",
|
|
35
|
+
"country",
|
|
36
|
+
"is_default",
|
|
37
|
+
"yandex_metrica",
|
|
38
|
+
"meta_title",
|
|
39
|
+
"meta_description",
|
|
40
|
+
"chatapp_legacy",
|
|
41
|
+
"phone",
|
|
42
|
+
"email",
|
|
43
|
+
"address",
|
|
44
|
+
"timezone_name",
|
|
45
|
+
"currency_name",
|
|
46
|
+
"affilation",
|
|
47
|
+
"chatapp_version",
|
|
48
|
+
"telegram_channel_id"
|
|
49
|
+
]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[
|
|
2
|
+
"name",
|
|
3
|
+
"description",
|
|
4
|
+
"number",
|
|
5
|
+
"status",
|
|
6
|
+
"event_time",
|
|
7
|
+
"price",
|
|
8
|
+
"created_by_id",
|
|
9
|
+
"image_id",
|
|
10
|
+
"location_id",
|
|
11
|
+
"theme_id",
|
|
12
|
+
"game_pack_id",
|
|
13
|
+
"id",
|
|
14
|
+
"time_created",
|
|
15
|
+
"time_updated",
|
|
16
|
+
"currency",
|
|
17
|
+
"short_description",
|
|
18
|
+
"personal_comment",
|
|
19
|
+
"weekday",
|
|
20
|
+
"owner_id",
|
|
21
|
+
"timezone",
|
|
22
|
+
"min_members_count",
|
|
23
|
+
"max_members_count",
|
|
24
|
+
"alias",
|
|
25
|
+
"city_id"
|
|
26
|
+
]
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[
|
|
2
|
+
"human_name",
|
|
3
|
+
"email",
|
|
4
|
+
"phone",
|
|
5
|
+
"team_name",
|
|
6
|
+
"people_count",
|
|
7
|
+
"is_first",
|
|
8
|
+
"is_birthday",
|
|
9
|
+
"is_extensible",
|
|
10
|
+
"ads_from",
|
|
11
|
+
"comment",
|
|
12
|
+
"promocode",
|
|
13
|
+
"event_id",
|
|
14
|
+
"id",
|
|
15
|
+
"time_created",
|
|
16
|
+
"time_updated",
|
|
17
|
+
"is_reserve",
|
|
18
|
+
"is_alone",
|
|
19
|
+
"channel",
|
|
20
|
+
"vkontakte",
|
|
21
|
+
"telegramBot",
|
|
22
|
+
"is_canceled",
|
|
23
|
+
"is_actual_presence",
|
|
24
|
+
"is_confirm",
|
|
25
|
+
"change_people_count",
|
|
26
|
+
"fact_people_count",
|
|
27
|
+
"chatapp_id",
|
|
28
|
+
"utm_term",
|
|
29
|
+
"utm_source",
|
|
30
|
+
"utm_medium",
|
|
31
|
+
"utm_content",
|
|
32
|
+
"utm_campaign",
|
|
33
|
+
"last_broadcast",
|
|
34
|
+
"status",
|
|
35
|
+
"celebrant",
|
|
36
|
+
"note",
|
|
37
|
+
"lineup",
|
|
38
|
+
"mailing",
|
|
39
|
+
"confirmed_channel"
|
|
40
|
+
]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[
|
|
2
|
+
"role_id",
|
|
3
|
+
"id",
|
|
4
|
+
"time_created",
|
|
5
|
+
"time_updated",
|
|
6
|
+
"first_name",
|
|
7
|
+
"last_name",
|
|
8
|
+
"email",
|
|
9
|
+
"is_active",
|
|
10
|
+
"is_superuser",
|
|
11
|
+
"is_verified",
|
|
12
|
+
"hashed_password",
|
|
13
|
+
"image_id",
|
|
14
|
+
"third_name",
|
|
15
|
+
"phone",
|
|
16
|
+
"gmail_link",
|
|
17
|
+
"mailru_link",
|
|
18
|
+
"telegram_id",
|
|
19
|
+
"telegram_data"
|
|
20
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[
|
|
2
|
+
"name",
|
|
3
|
+
"comment",
|
|
4
|
+
"comment_responsible",
|
|
5
|
+
"comment_equipment",
|
|
6
|
+
"latitude",
|
|
7
|
+
"longitude",
|
|
8
|
+
"street",
|
|
9
|
+
"people_capacity",
|
|
10
|
+
"team_capacity",
|
|
11
|
+
"is_adult",
|
|
12
|
+
"id",
|
|
13
|
+
"time_created",
|
|
14
|
+
"time_updated",
|
|
15
|
+
"game_time",
|
|
16
|
+
"city_id",
|
|
17
|
+
"floor",
|
|
18
|
+
"metro",
|
|
19
|
+
"location_info",
|
|
20
|
+
"house_number",
|
|
21
|
+
"status",
|
|
22
|
+
"href",
|
|
23
|
+
"audience"
|
|
24
|
+
]
|
package/source/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import POST_checkin_Unknown from './fields/POST/checkin/Unknown.json' with { type: 'json' }
|
|
2
|
+
import POST_city_admin from './fields/POST/city/admin.json' with { type: 'json' }
|
|
3
|
+
import POST_game_admin from './fields/POST/game/admin.json' with { type: 'json' }
|
|
4
|
+
import POST_game_organizer from './fields/POST/game/organizer.json' with { type: 'json' }
|
|
5
|
+
import POST_registration_Unknown from './fields/POST/registration/Unknown.json' with { type: 'json' }
|
|
6
|
+
import POST_theme_admin from './fields/POST/theme/admin.json' with { type: 'json' }
|
|
7
|
+
import POST_user_admin from './fields/POST/user/admin.json' with { type: 'json' }
|
|
8
|
+
import POST_venue_admin from './fields/POST/venue/admin.json' with { type: 'json' }
|
|
9
|
+
import POST_venue_organizer from './fields/POST/venue/organizer.json' with { type: 'json' }
|
|
10
|
+
import PATCH_user_admin from './fields/PATCH/user/admin.json' with { type: 'json' }
|
|
11
|
+
|
|
12
|
+
export const Field = Object.freeze({ 'POST/checkin/Unknown': 'POST/checkin/Unknown', 'POST/city/admin': 'POST/city/admin', 'POST/game/admin': 'POST/game/admin', 'POST/game/organizer': 'POST/game/organizer', 'POST/registration/Unknown': 'POST/registration/Unknown', 'POST/theme/admin': 'POST/theme/admin', 'POST/user/admin': 'POST/user/admin', 'POST/venue/admin': 'POST/venue/admin', 'POST/venue/organizer': 'POST/venue/organizer', 'PATCH/user/admin': 'PATCH/user/admin'})
|
|
13
|
+
|
|
14
|
+
export const Fields = Object.freeze(Object.values(Field))
|
|
15
|
+
|
|
16
|
+
export const inferField = Object.freeze(
|
|
17
|
+
/** @returns {typeof Field[keyof typeof Field] | 'Unknown'} */
|
|
18
|
+
x => Field[x] ?? 'Unknown',
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
export const FieldSchema = Object.freeze({ 'POST/checkin/Unknown': POST_checkin_Unknown, 'POST/city/admin': POST_city_admin, 'POST/game/admin': POST_game_admin, 'POST/game/organizer': POST_game_organizer, 'POST/registration/Unknown': POST_registration_Unknown, 'POST/theme/admin': POST_theme_admin, 'POST/user/admin': POST_user_admin, 'POST/venue/admin': POST_venue_admin, 'POST/venue/organizer': POST_venue_organizer, 'PATCH/user/admin': PATCH_user_admin})
|
|
22
|
+
|
|
23
|
+
export const inferFieldSchema = Object.freeze(
|
|
24
|
+
/** @returns {typeof FieldSchema[keyof typeof FieldSchema] | 'Unknown'} */
|
|
25
|
+
x => FieldSchema[x] ?? 'Unknown',
|
|
26
|
+
)
|