@shakerquiz/forms 0.0.25 → 0.0.27

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.25",
4
+ "version": "0.0.27",
5
5
  "author": "yurkimus <yurkimus@gmail.com>",
6
6
  "license": "ISC",
7
7
  "repository": {
@@ -15,55 +15,11 @@
15
15
  },
16
16
  {
17
17
  "name": "phone",
18
- "kind": "tel"
19
- },
20
- {
21
- "name": "email",
22
- "kind": "email"
23
- },
24
- {
25
- "name": "channel",
26
- "kind": "static-autocomplete"
27
- },
28
- {
29
- "name": "confirmed_channel",
30
- "kind": "static-autocomplete"
31
- },
32
- {
33
- "name": "vkontakte",
34
- "kind": "string"
35
- },
36
- {
37
- "name": "telegramBot",
38
- "kind": "string"
39
- },
40
- {
41
- "name": "status",
42
- "kind": "static-autocomplete"
43
- },
44
- {
45
- "name": "lineup",
46
- "kind": "static-autocomplete"
47
- },
48
- {
49
- "name": "is_alone",
50
- "kind": "checkbox"
51
- },
52
- {
53
- "name": "is_birthday",
54
- "kind": "checkbox"
18
+ "kind": "phone"
55
19
  },
56
20
  {
57
21
  "name": "celebrant",
58
22
  "kind": "string"
59
- },
60
- {
61
- "name": "is_extensible",
62
- "kind": "checkbox"
63
- },
64
- {
65
- "name": "is_first",
66
- "kind": "checkbox"
67
23
  }
68
24
  ]
69
25
  }
@@ -0,0 +1,21 @@
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
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "state": "Interactive",
3
+ "fields": [
4
+ {
5
+ "name": "channel",
6
+ "kind": "static-autocomplete"
7
+ },
8
+ {
9
+ "name": "confirmed_channel",
10
+ "kind": "static-autocomplete"
11
+ },
12
+ {
13
+ "name": "email",
14
+ "kind": "email"
15
+ },
16
+ {
17
+ "name": "vkontakte",
18
+ "kind": "string"
19
+ },
20
+ {
21
+ "name": "telegramBot",
22
+ "kind": "string"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "state": "Interactive",
3
+ "fields": [
4
+ {
5
+ "name": "lineup",
6
+ "kind": "static-autocomplete"
7
+ }
8
+ ]
9
+ }
@@ -15,7 +15,7 @@
15
15
  },
16
16
  {
17
17
  "name": "phone",
18
- "kind": "tel"
18
+ "kind": "phone"
19
19
  },
20
20
  {
21
21
  "name": "email",
@@ -0,0 +1,9 @@
1
+ {
2
+ "state": "Interactive",
3
+ "fields": [
4
+ {
5
+ "name": "status",
6
+ "kind": "static-autocomplete"
7
+ }
8
+ ]
9
+ }
package/source/index.js CHANGED
@@ -11,6 +11,7 @@ import PATCH_theme_admin from './forms/PATCH/theme/admin.json' with { type: 'jso
11
11
  import PATCH_game_admin from './forms/PATCH/game/admin.json' with { type: 'json' }
12
12
  import PATCH_registration_admin from './forms/PATCH/registration/admin.json' with { type: 'json' }
13
13
  import PATCH_registration_Unknown from './forms/PATCH/registration/Unknown.json' with { type: 'json' }
14
+ import PATCH_registration_channel_admin from './forms/PATCH/registration/channel/admin.json' with { type: 'json' }
14
15
  import POST_user_admin from './forms/POST/user/admin.json' with { type: 'json' }
15
16
  import POST_user_password_admin from './forms/POST/user/password/admin.json' with { type: 'json' }
16
17
  import POST_user_role_admin from './forms/POST/user/role/admin.json' with { type: 'json' }
@@ -41,6 +42,7 @@ export const Forms = Object.freeze(
41
42
  'PATCH/game/admin',
42
43
  'PATCH/registration/admin',
43
44
  'PATCH/registration/Unknown',
45
+ 'PATCH/registration/channel/admin',
44
46
  'POST/user/admin',
45
47
  'POST/user/password/admin',
46
48
  'POST/user/role/admin',
@@ -73,6 +75,7 @@ export const Schemas = Object.freeze(
73
75
  PATCH_game_admin,
74
76
  PATCH_registration_admin,
75
77
  PATCH_registration_Unknown,
78
+ PATCH_registration_channel_admin,
76
79
  POST_user_admin,
77
80
  POST_user_password_admin,
78
81
  POST_user_role_admin,
@@ -105,6 +108,7 @@ export const FormSchema = Object.freeze(
105
108
  'PATCH/game/admin': PATCH_game_admin,
106
109
  'PATCH/registration/admin': PATCH_registration_admin,
107
110
  'PATCH/registration/Unknown': PATCH_registration_Unknown,
111
+ 'PATCH/registration/channel/admin': PATCH_registration_channel_admin,
108
112
  'POST/user/admin': POST_user_admin,
109
113
  'POST/user/password/admin': POST_user_password_admin,
110
114
  'POST/user/role/admin': POST_user_role_admin,
@@ -137,6 +141,7 @@ export const FormKind = Object.freeze(
137
141
  'PATCH/game/admin': 'Schema',
138
142
  'PATCH/registration/admin': 'Schema',
139
143
  'PATCH/registration/Unknown': 'Schema',
144
+ 'PATCH/registration/channel/admin': 'Unknown',
140
145
  'POST/user/admin': 'Schema',
141
146
  'POST/user/password/admin': 'Schema',
142
147
  'POST/user/role/admin': 'Schema',