@shakerquiz/forms 0.0.172 → 0.0.174

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@shakerquiz/forms",
4
- "version": "0.0.172",
4
+ "version": "0.0.174",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "exports": "./source/index.js",
18
18
  "devDependencies": {
19
- "@shakerquiz/contracts": "0.0.196",
19
+ "@shakerquiz/contracts": "0.0.197",
20
20
  "@shakerquiz/utilities": "4.0.82",
21
21
  "@types/bun": "1.3.7"
22
22
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "state": "interactive",
2
+ "state": "readonly",
3
3
  "fields": [
4
4
  {
5
5
  "name": "name",
@@ -1,5 +1,5 @@
1
1
  {
2
- "state": "interactive",
2
+ "state": "readonly",
3
3
  "fields": [
4
4
  {
5
5
  "name": "id",
@@ -1,5 +1,5 @@
1
1
  {
2
- "state": "interactive",
2
+ "state": "readonly",
3
3
  "fields": [
4
4
  {
5
5
  "name": "id",
@@ -1,5 +1,5 @@
1
1
  {
2
- "state": "interactive",
2
+ "state": "readonly",
3
3
  "fields": [
4
4
  {
5
5
  "name": "vk_group_token",
@@ -1,5 +1,5 @@
1
1
  {
2
- "state": "interactive",
2
+ "state": "readonly",
3
3
  "fields": [
4
4
  {
5
5
  "name": "name",
@@ -0,0 +1,4 @@
1
+ {
2
+ "state": "readonly",
3
+ "fields": []
4
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "state": "readonly",
3
+ "fields": [
4
+ {
5
+ "name": "vk_group_token",
6
+ "kind": "string"
7
+ }
8
+ ]
9
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "state": "readonly",
3
+ "fields": []
4
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "state": "readonly",
3
+ "fields": [
4
+ {
5
+ "name": "file",
6
+ "kind": "file"
7
+ }
8
+ ]
9
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "state": "interactive",
2
+ "state": "readonly",
3
3
  "fields": [
4
4
  {
5
5
  "name": "cover",
package/source/index.js CHANGED
@@ -1,4 +1,6 @@
1
+ import POST_theme_Organizer from './forms/POST/theme/Organizer.json' with { type: 'json' }
1
2
  import POST_theme_Admin from './forms/POST/theme/Admin.json' with { type: 'json' }
3
+ import POST_theme_cover_Organizer from './forms/POST/theme/cover/Organizer.json' with { type: 'json' }
2
4
  import POST_theme_cover_Admin from './forms/POST/theme/cover/Admin.json' with { type: 'json' }
3
5
  import POST_checkin_Organizer from './forms/POST/checkin/Organizer.json' with { type: 'json' }
4
6
  import POST_checkin_Admin from './forms/POST/checkin/Admin.json' with { type: 'json' }
@@ -9,13 +11,14 @@ import POST_user_city_Admin from './forms/POST/user/city/Admin.json' with { type
9
11
  import POST_user_password_Admin from './forms/POST/user/password/Admin.json' with { type: 'json' }
10
12
  import POST_game_Organizer from './forms/POST/game/Organizer.json' with { type: 'json' }
11
13
  import POST_game_Admin from './forms/POST/game/Admin.json' with { type: 'json' }
14
+ import POST_city_Organizer from './forms/POST/city/Organizer.json' with { type: 'json' }
12
15
  import POST_city_Admin from './forms/POST/city/Admin.json' with { type: 'json' }
16
+ import POST_city_vk_group_token_Organizer from './forms/POST/city/vk_group_token/Organizer.json' with { type: 'json' }
13
17
  import POST_city_vk_group_token_Admin from './forms/POST/city/vk_group_token/Admin.json' with { type: 'json' }
14
18
  import POST_venue_Organizer from './forms/POST/venue/Organizer.json' with { type: 'json' }
15
19
  import POST_venue_Admin from './forms/POST/venue/Admin.json' with { type: 'json' }
16
20
  import POST_registration_Organizer from './forms/POST/registration/Organizer.json' with { type: 'json' }
17
21
  import POST_registration_Admin from './forms/POST/registration/Admin.json' with { type: 'json' }
18
- import POST_registration_Unknown from './forms/POST/registration/Unknown.json' with { type: 'json' }
19
22
  import PATCH_theme_Organizer from './forms/PATCH/theme/Organizer.json' with { type: 'json' }
20
23
  import PATCH_theme_Admin from './forms/PATCH/theme/Admin.json' with { type: 'json' }
21
24
  import PATCH_user_role_Admin from './forms/PATCH/user/role/Admin.json' with { type: 'json' }
@@ -37,16 +40,14 @@ import PATCH_venue_Organizer from './forms/PATCH/venue/Organizer.json' with { ty
37
40
  import PATCH_venue_Admin from './forms/PATCH/venue/Admin.json' with { type: 'json' }
38
41
  import PATCH_registration_Organizer from './forms/PATCH/registration/Organizer.json' with { type: 'json' }
39
42
  import PATCH_registration_Admin from './forms/PATCH/registration/Admin.json' with { type: 'json' }
40
- import PATCH_registration_channel_Admin from './forms/PATCH/registration/channel/Admin.json' with { type: 'json' }
41
- import PATCH_registration_attributes_Admin from './forms/PATCH/registration/attributes/Admin.json' with { type: 'json' }
42
- import PATCH_registration_status_Admin from './forms/PATCH/registration/status/Admin.json' with { type: 'json' }
43
- import PATCH_registration_lineup_Admin from './forms/PATCH/registration/lineup/Admin.json' with { type: 'json' }
44
43
  import PUT_theme_cover_Organizer from './forms/PUT/theme/cover/Organizer.json' with { type: 'json' }
45
44
  import PUT_theme_cover_Admin from './forms/PUT/theme/cover/Admin.json' with { type: 'json' }
46
45
 
47
46
  export const FormSchema = Object.freeze(
48
47
  /** @type {const} */ ({
48
+ 'POST/theme/Organizer': POST_theme_Organizer,
49
49
  'POST/theme/Admin': POST_theme_Admin,
50
+ 'POST/theme/cover/Organizer': POST_theme_cover_Organizer,
50
51
  'POST/theme/cover/Admin': POST_theme_cover_Admin,
51
52
  'POST/checkin/Organizer': POST_checkin_Organizer,
52
53
  'POST/checkin/Admin': POST_checkin_Admin,
@@ -57,13 +58,14 @@ export const FormSchema = Object.freeze(
57
58
  'POST/user/password/Admin': POST_user_password_Admin,
58
59
  'POST/game/Organizer': POST_game_Organizer,
59
60
  'POST/game/Admin': POST_game_Admin,
61
+ 'POST/city/Organizer': POST_city_Organizer,
60
62
  'POST/city/Admin': POST_city_Admin,
63
+ 'POST/city/vk_group_token/Organizer': POST_city_vk_group_token_Organizer,
61
64
  'POST/city/vk_group_token/Admin': POST_city_vk_group_token_Admin,
62
65
  'POST/venue/Organizer': POST_venue_Organizer,
63
66
  'POST/venue/Admin': POST_venue_Admin,
64
67
  'POST/registration/Organizer': POST_registration_Organizer,
65
68
  'POST/registration/Admin': POST_registration_Admin,
66
- 'POST/registration/Unknown': POST_registration_Unknown,
67
69
  'PATCH/theme/Organizer': PATCH_theme_Organizer,
68
70
  'PATCH/theme/Admin': PATCH_theme_Admin,
69
71
  'PATCH/user/role/Admin': PATCH_user_role_Admin,
@@ -85,10 +87,6 @@ export const FormSchema = Object.freeze(
85
87
  'PATCH/venue/Admin': PATCH_venue_Admin,
86
88
  'PATCH/registration/Organizer': PATCH_registration_Organizer,
87
89
  'PATCH/registration/Admin': PATCH_registration_Admin,
88
- 'PATCH/registration/channel/Admin': PATCH_registration_channel_Admin,
89
- 'PATCH/registration/attributes/Admin': PATCH_registration_attributes_Admin,
90
- 'PATCH/registration/status/Admin': PATCH_registration_status_Admin,
91
- 'PATCH/registration/lineup/Admin': PATCH_registration_lineup_Admin,
92
90
  'PUT/theme/cover/Organizer': PUT_theme_cover_Organizer,
93
91
  'PUT/theme/cover/Admin': PUT_theme_cover_Admin
94
92
  }),
@@ -96,7 +94,9 @@ export const FormSchema = Object.freeze(
96
94
 
97
95
  export const FormKind = Object.freeze(
98
96
  /** @type {const} */ ({
97
+ 'POST/theme/Organizer': 'Schema',
99
98
  'POST/theme/Admin': 'Schema',
99
+ 'POST/theme/cover/Organizer': 'Schema',
100
100
  'POST/theme/cover/Admin': 'Schema',
101
101
  'POST/checkin/Organizer': 'Schema',
102
102
  'POST/checkin/Admin': 'Schema',
@@ -107,14 +107,15 @@ export const FormKind = Object.freeze(
107
107
  'POST/user/password/Admin': 'Schema',
108
108
  'POST/game/Organizer': 'Schema',
109
109
  'POST/game/Admin': 'Schema',
110
+ 'POST/city/Organizer': 'Schema',
110
111
  'POST/city/Admin': 'Schema',
112
+ 'POST/city/vk_group_token/Organizer': 'Schema',
111
113
  'POST/city/vk_group_token/Admin': 'Schema',
112
114
  'POST/venue/Organizer': 'Schema',
113
115
  'POST/venue/Admin': 'Schema',
114
116
  'POST/registration/Organizer': 'Schema',
115
117
  'POST/registration/Admin': 'Schema',
116
- 'POST/registration/Unknown': 'Schema',
117
- 'PATCH/theme/Organizer': 'Unknown',
118
+ 'PATCH/theme/Organizer': 'Schema',
118
119
  'PATCH/theme/Admin': 'Schema',
119
120
  'PATCH/user/role/Admin': 'Schema',
120
121
  'PATCH/user/Admin': 'Schema',
@@ -135,10 +136,6 @@ export const FormKind = Object.freeze(
135
136
  'PATCH/venue/Admin': 'Schema',
136
137
  'PATCH/registration/Organizer': 'Schema',
137
138
  'PATCH/registration/Admin': 'Schema',
138
- 'PATCH/registration/channel/Admin': 'Schema',
139
- 'PATCH/registration/attributes/Admin': 'Unknown',
140
- 'PATCH/registration/status/Admin': 'Schema',
141
- 'PATCH/registration/lineup/Admin': 'Schema',
142
139
  'PUT/theme/cover/Organizer': 'Schema',
143
140
  'PUT/theme/cover/Admin': 'Schema'
144
141
  }),
@@ -1,21 +0,0 @@
1
- {
2
- "state": "interactive",
3
- "fields": [
4
- {
5
- "name": "is_alone",
6
- "kind": "checkbox"
7
- },
8
- {
9
- "name": "is_birthday",
10
- "kind": "checkbox"
11
- },
12
- {
13
- "name": "is_extensible",
14
- "kind": "checkbox"
15
- },
16
- {
17
- "name": "is_first",
18
- "kind": "checkbox"
19
- }
20
- ]
21
- }
@@ -1,25 +0,0 @@
1
- {
2
- "state": "interactive",
3
- "fields": [
4
- {
5
- "name": "channel",
6
- "kind": "autocomplete-static"
7
- },
8
- {
9
- "name": "confirmed_channel",
10
- "kind": "autocomplete-static"
11
- },
12
- {
13
- "name": "email",
14
- "kind": "email"
15
- },
16
- {
17
- "name": "vkontakte",
18
- "kind": "string"
19
- },
20
- {
21
- "name": "telegram",
22
- "kind": "string"
23
- }
24
- ]
25
- }
@@ -1,9 +0,0 @@
1
- {
2
- "state": "interactive",
3
- "fields": [
4
- {
5
- "name": "lineup",
6
- "kind": "autocomplete-static"
7
- }
8
- ]
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "state": "interactive",
3
- "fields": [
4
- {
5
- "name": "status",
6
- "kind": "autocomplete-static"
7
- }
8
- ]
9
- }
@@ -1,57 +0,0 @@
1
- {
2
- "state": "interactive",
3
- "fields": [
4
- {
5
- "name": "human_name",
6
- "kind": "string"
7
- },
8
- {
9
- "name": "team_name",
10
- "kind": "string"
11
- },
12
- {
13
- "name": "email",
14
- "kind": "email"
15
- },
16
- {
17
- "name": "phone",
18
- "kind": "phone"
19
- },
20
- {
21
- "name": "people_count",
22
- "kind": "number"
23
- },
24
- {
25
- "name": "is_alone",
26
- "kind": "checkbox"
27
- },
28
- {
29
- "name": "is_first",
30
- "kind": "checkbox"
31
- },
32
- {
33
- "name": "is_birthday",
34
- "kind": "checkbox"
35
- },
36
- {
37
- "name": "is_extensible",
38
- "kind": "checkbox"
39
- },
40
- {
41
- "name": "celebrant",
42
- "kind": "string"
43
- },
44
- {
45
- "name": "promocode",
46
- "kind": "string"
47
- },
48
- {
49
- "name": "comment",
50
- "kind": "text"
51
- },
52
- {
53
- "name": "ads_from",
54
- "kind": "autocomplete-static"
55
- }
56
- ]
57
- }