@saltcorn/data 1.6.0-alpha.0 → 1.6.0-alpha.10

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.
Files changed (208) hide show
  1. package/dist/base-plugin/actions.d.ts +1850 -1653
  2. package/dist/base-plugin/actions.d.ts.map +1 -1
  3. package/dist/base-plugin/actions.js +130 -104
  4. package/dist/base-plugin/actions.js.map +1 -1
  5. package/dist/base-plugin/fieldviews.d.ts +284 -114
  6. package/dist/base-plugin/fieldviews.d.ts.map +1 -1
  7. package/dist/base-plugin/fieldviews.js +23 -69
  8. package/dist/base-plugin/fieldviews.js.map +1 -1
  9. package/dist/base-plugin/fileviews.d.ts +18 -14
  10. package/dist/base-plugin/fileviews.d.ts.map +1 -1
  11. package/dist/base-plugin/fileviews.js +35 -23
  12. package/dist/base-plugin/fileviews.js.map +1 -1
  13. package/dist/base-plugin/index.d.ts +3369 -1299
  14. package/dist/base-plugin/index.d.ts.map +1 -1
  15. package/dist/base-plugin/index.js +39 -25
  16. package/dist/base-plugin/index.js.map +1 -1
  17. package/dist/base-plugin/types.d.ts +1438 -1029
  18. package/dist/base-plugin/types.d.ts.map +1 -1
  19. package/dist/base-plugin/types.js +3 -2
  20. package/dist/base-plugin/types.js.map +1 -1
  21. package/dist/base-plugin/viewtemplates/edit.d.ts +133 -257
  22. package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
  23. package/dist/base-plugin/viewtemplates/edit.js +306 -348
  24. package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
  25. package/dist/base-plugin/viewtemplates/feed.d.ts +30 -81
  26. package/dist/base-plugin/viewtemplates/feed.d.ts.map +1 -1
  27. package/dist/base-plugin/viewtemplates/feed.js +37 -30
  28. package/dist/base-plugin/viewtemplates/feed.js.map +1 -1
  29. package/dist/base-plugin/viewtemplates/filter.d.ts +42 -64
  30. package/dist/base-plugin/viewtemplates/filter.d.ts.map +1 -1
  31. package/dist/base-plugin/viewtemplates/filter.js +100 -81
  32. package/dist/base-plugin/viewtemplates/filter.js.map +1 -1
  33. package/dist/base-plugin/viewtemplates/list.d.ts +40 -118
  34. package/dist/base-plugin/viewtemplates/list.d.ts.map +1 -1
  35. package/dist/base-plugin/viewtemplates/list.js +169 -168
  36. package/dist/base-plugin/viewtemplates/list.js.map +1 -1
  37. package/dist/base-plugin/viewtemplates/listshowlist.d.ts +65 -49
  38. package/dist/base-plugin/viewtemplates/listshowlist.d.ts.map +1 -1
  39. package/dist/base-plugin/viewtemplates/listshowlist.js +33 -58
  40. package/dist/base-plugin/viewtemplates/listshowlist.js.map +1 -1
  41. package/dist/base-plugin/viewtemplates/room.d.ts +102 -109
  42. package/dist/base-plugin/viewtemplates/room.d.ts.map +1 -1
  43. package/dist/base-plugin/viewtemplates/room.js +53 -50
  44. package/dist/base-plugin/viewtemplates/room.js.map +1 -1
  45. package/dist/base-plugin/viewtemplates/show.d.ts +72 -136
  46. package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
  47. package/dist/base-plugin/viewtemplates/show.js +86 -181
  48. package/dist/base-plugin/viewtemplates/show.js.map +1 -1
  49. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts +2 -187
  50. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
  51. package/dist/base-plugin/viewtemplates/viewable_fields.js +3 -1897
  52. package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
  53. package/dist/base-plugin/viewtemplates/workflow-room.d.ts +37 -61
  54. package/dist/base-plugin/viewtemplates/workflow-room.d.ts.map +1 -1
  55. package/dist/base-plugin/viewtemplates/workflow-room.js +42 -65
  56. package/dist/base-plugin/viewtemplates/workflow-room.js.map +1 -1
  57. package/dist/contracts.d.ts +4 -48
  58. package/dist/contracts.d.ts.map +1 -1
  59. package/dist/contracts.js +18 -2
  60. package/dist/contracts.js.map +1 -1
  61. package/dist/db/connect.d.ts.map +1 -1
  62. package/dist/db/connect.js +20 -2
  63. package/dist/db/connect.js.map +1 -1
  64. package/dist/db/fixtures.d.ts +2 -7
  65. package/dist/db/fixtures.d.ts.map +1 -1
  66. package/dist/db/fixtures.js +2349 -2352
  67. package/dist/db/fixtures.js.map +1 -1
  68. package/dist/db/reset_schema.d.ts +3 -3
  69. package/dist/db/reset_schema.d.ts.map +1 -1
  70. package/dist/db/reset_schema.js +10 -10
  71. package/dist/db/reset_schema.js.map +1 -1
  72. package/dist/db/state.d.ts +31 -28
  73. package/dist/db/state.d.ts.map +1 -1
  74. package/dist/db/state.js +9 -32
  75. package/dist/db/state.js.map +1 -1
  76. package/dist/diagram/node_extract_utils.js +1 -1
  77. package/dist/diagram/node_extract_utils.js.map +1 -1
  78. package/dist/index.d.ts +5 -1
  79. package/dist/index.d.ts.map +1 -1
  80. package/dist/index.js +1 -1
  81. package/dist/index.js.map +1 -1
  82. package/dist/migrate.d.ts +9 -3
  83. package/dist/migrate.d.ts.map +1 -1
  84. package/dist/migrate.js +26 -20
  85. package/dist/migrate.js.map +1 -1
  86. package/dist/mobile-mocks/npm/apns2.d.ts +1 -0
  87. package/dist/mobile-mocks/npm/apns2.d.ts.map +1 -0
  88. package/dist/mobile-mocks/npm/apns2.js +2 -0
  89. package/dist/mobile-mocks/npm/apns2.js.map +1 -0
  90. package/dist/mobile-mocks/npm/vm2.d.ts +1 -0
  91. package/dist/mobile-mocks/npm/vm2.d.ts.map +1 -0
  92. package/dist/mobile-mocks/npm/vm2.js +2 -0
  93. package/dist/mobile-mocks/npm/vm2.js.map +1 -0
  94. package/dist/mobile-mocks/npm/xml2js.d.ts +1 -0
  95. package/dist/mobile-mocks/npm/xml2js.d.ts.map +1 -0
  96. package/dist/mobile-mocks/npm/xml2js.js +2 -0
  97. package/dist/mobile-mocks/npm/xml2js.js.map +1 -0
  98. package/dist/model-helper.d.ts +18 -17
  99. package/dist/model-helper.d.ts.map +1 -1
  100. package/dist/model-helper.js +46 -29
  101. package/dist/model-helper.js.map +1 -1
  102. package/dist/models/config.d.ts +5 -0
  103. package/dist/models/config.d.ts.map +1 -1
  104. package/dist/models/config.js +32 -0
  105. package/dist/models/config.js.map +1 -1
  106. package/dist/models/field.d.ts +1 -1
  107. package/dist/models/field.d.ts.map +1 -1
  108. package/dist/models/field.js +3 -2
  109. package/dist/models/field.js.map +1 -1
  110. package/dist/models/file.d.ts +2 -2
  111. package/dist/models/file.d.ts.map +1 -1
  112. package/dist/models/file.js.map +1 -1
  113. package/dist/models/form.d.ts +2 -0
  114. package/dist/models/form.d.ts.map +1 -1
  115. package/dist/models/form.js +2 -1
  116. package/dist/models/form.js.map +1 -1
  117. package/dist/models/index.d.ts +5 -0
  118. package/dist/models/index.d.ts.map +1 -1
  119. package/dist/models/internal/push_message_helper.d.ts +63 -24
  120. package/dist/models/internal/push_message_helper.d.ts.map +1 -1
  121. package/dist/models/internal/push_message_helper.js +218 -42
  122. package/dist/models/internal/push_message_helper.js.map +1 -1
  123. package/dist/models/layout.d.ts +1 -1
  124. package/dist/models/layout.d.ts.map +1 -1
  125. package/dist/models/layout.js +12 -0
  126. package/dist/models/layout.js.map +1 -1
  127. package/dist/models/page.d.ts.map +1 -1
  128. package/dist/models/page.js +28 -1
  129. package/dist/models/page.js.map +1 -1
  130. package/dist/models/plugin.d.ts +5 -2
  131. package/dist/models/plugin.d.ts.map +1 -1
  132. package/dist/models/plugin.js +15 -1
  133. package/dist/models/plugin.js.map +1 -1
  134. package/dist/models/scheduler.js +1 -1
  135. package/dist/models/scheduler.js.map +1 -1
  136. package/dist/models/table.d.ts.map +1 -1
  137. package/dist/models/table.js +13 -4
  138. package/dist/models/table.js.map +1 -1
  139. package/dist/models/trigger.d.ts +2 -1
  140. package/dist/models/trigger.d.ts.map +1 -1
  141. package/dist/models/trigger.js +3 -1
  142. package/dist/models/trigger.js.map +1 -1
  143. package/dist/models/view.js +4 -4
  144. package/dist/models/view.js.map +1 -1
  145. package/dist/models/workflow_step.d.ts +5 -0
  146. package/dist/models/workflow_step.d.ts.map +1 -1
  147. package/dist/models/workflow_step.js +142 -0
  148. package/dist/models/workflow_step.js.map +1 -1
  149. package/dist/plugin-helper.d.ts +218 -191
  150. package/dist/plugin-helper.d.ts.map +1 -1
  151. package/dist/plugin-helper.js +259 -192
  152. package/dist/plugin-helper.js.map +1 -1
  153. package/dist/plugin-testing.d.ts +6 -6
  154. package/dist/plugin-testing.d.ts.map +1 -1
  155. package/dist/plugin-testing.js +66 -31
  156. package/dist/plugin-testing.js.map +1 -1
  157. package/dist/standard-menu.d.ts +6 -1
  158. package/dist/standard-menu.d.ts.map +1 -1
  159. package/dist/standard-menu.js +20 -0
  160. package/dist/standard-menu.js.map +1 -1
  161. package/dist/tests/actions.test.js +76 -0
  162. package/dist/tests/actions.test.js.map +1 -1
  163. package/dist/tests/auth.test.js +34 -0
  164. package/dist/tests/auth.test.js.map +1 -1
  165. package/dist/tests/auxtest.test.js +6 -0
  166. package/dist/tests/auxtest.test.js.map +1 -1
  167. package/dist/tests/calc.test.js +1 -1
  168. package/dist/tests/calc.test.js.map +1 -1
  169. package/dist/tests/edit.test.js +2 -2
  170. package/dist/tests/edit.test.js.map +1 -1
  171. package/dist/tests/exact_views.test.js +4 -4
  172. package/dist/tests/exact_views.test.js.map +1 -1
  173. package/dist/tests/form.test.js +65 -0
  174. package/dist/tests/form.test.js.map +1 -1
  175. package/dist/tests/user.test.js +52 -1
  176. package/dist/tests/user.test.js.map +1 -1
  177. package/dist/tests/workflow_run.test.js +96 -0
  178. package/dist/tests/workflow_run.test.js.map +1 -1
  179. package/dist/utils.d.ts +6 -0
  180. package/dist/utils.d.ts.map +1 -1
  181. package/dist/utils.js +69 -5
  182. package/dist/utils.js.map +1 -1
  183. package/dist/viewable_fields.d.ts +151 -96
  184. package/dist/viewable_fields.d.ts.map +1 -1
  185. package/dist/viewable_fields.js +452 -91
  186. package/dist/viewable_fields.js.map +1 -1
  187. package/dist/web-mobile-commons.d.ts +1 -2
  188. package/dist/web-mobile-commons.d.ts.map +1 -1
  189. package/dist/web-mobile-commons.js +4 -4
  190. package/dist/web-mobile-commons.js.map +1 -1
  191. package/package.json +12 -9
  192. package/webpack.config.js +3 -0
  193. package/dist/models/s3_helpers.d.ts +0 -54
  194. package/dist/models/s3_helpers.d.ts.map +0 -1
  195. package/dist/models/s3_helpers.js +0 -505
  196. package/dist/models/s3_helpers.js.map +0 -1
  197. package/dist/test-utils/mocks.d.ts +0 -203
  198. package/dist/test-utils/mocks.d.ts.map +0 -1
  199. package/dist/test-utils/mocks.js +0 -329
  200. package/dist/test-utils/mocks.js.map +0 -1
  201. package/dist/tests/mail_queue.test.d.ts +0 -2
  202. package/dist/tests/mail_queue.test.d.ts.map +0 -1
  203. package/dist/tests/mail_queue.test.js +0 -122
  204. package/dist/tests/mail_queue.test.js.map +0 -1
  205. package/dist/tests/table_sync_info.test.d.ts +0 -2
  206. package/dist/tests/table_sync_info.test.d.ts.map +0 -1
  207. package/dist/tests/table_sync_info.test.js +0 -62
  208. package/dist/tests/table_sync_info.test.js.map +0 -1
@@ -1,1678 +1,1875 @@
1
1
  /**
2
- * @param opts
3
- * @param opts.row
4
- * @param opts.table
5
- * @param opts.channel
6
- * @param opts.configuration
7
- * @param opts.user
8
- * @param opts.rest
9
- * @returns
2
+ * Action description
3
+ * @category saltcorn-data
4
+ * @module base-plugin/actions
5
+ * @subcategory base-plugin
10
6
  */
11
- declare function run_code({ row, table, channel, configuration: { code, run_where }, user, ...rest }: {
12
- [x: string]: any;
13
- row: any;
14
- table: any;
15
- channel: any;
16
- configuration: {
17
- code: any;
18
- run_where: any;
19
- };
20
- user: any;
21
- }): Promise<any>;
22
- export namespace blocks {
23
- export let disableInBuilder: boolean;
24
- export let disableInList: boolean;
25
- export let disableInWorkflow: boolean;
26
- export let description: string;
27
- export let configFields: {
28
- name: string;
29
- input_type: string;
30
- }[];
31
- export { run_code as run };
32
- export let namespace: string;
33
- }
34
- export namespace emit_event {
35
- let description_1: string;
36
- export { description_1 as description };
37
- export function configFields_1(): ({
38
- name: string;
39
- label: string;
40
- required: boolean;
41
- input_type: string;
42
- options: string[];
43
- type?: undefined;
44
- fieldview?: undefined;
45
- sublabel?: undefined;
46
- } | {
47
- name: string;
48
- label: string;
49
- type: string;
50
- fieldview: string;
51
- required?: undefined;
52
- input_type?: undefined;
53
- options?: undefined;
54
- sublabel?: undefined;
55
- } | {
56
- name: string;
57
- label: string;
58
- sublabel: string;
59
- type: string;
60
- fieldview: string;
61
- required?: undefined;
62
- input_type?: undefined;
63
- options?: undefined;
64
- })[];
65
- export { configFields_1 as configFields };
66
- export function run({ row, configuration: { eventType, channel, payload }, user, }: {
67
- row: object;
68
- configuration: object;
69
- user: object;
70
- }): Promise<void>;
71
- let namespace_1: string;
72
- export { namespace_1 as namespace };
73
- }
74
- export namespace loop_rows {
75
- let description_2: string;
76
- export { description_2 as description };
77
- export function configFields_2(): Promise<({
78
- name: string;
79
- label: string;
80
- sublabel: string;
81
- input_type: string;
82
- options: string[];
83
- attributes?: undefined;
84
- type?: undefined;
85
- } | {
86
- name: string;
87
- label: string;
88
- sublabel: string;
89
- input_type: string;
90
- attributes: {
91
- mode: string;
92
- singleline: boolean;
93
- expression_type: string;
94
- calcOptions?: undefined;
95
- min?: undefined;
96
- };
97
- options?: undefined;
98
- type?: undefined;
99
- } | {
100
- name: string;
101
- label: string;
102
- type: string;
103
- sublabel: string;
104
- input_type?: undefined;
105
- options?: undefined;
106
- attributes?: undefined;
107
- } | {
108
- name: string;
109
- label: string;
110
- type: string;
111
- attributes: {
112
- calcOptions: {}[];
113
- mode?: undefined;
114
- singleline?: undefined;
115
- expression_type?: undefined;
116
- min?: undefined;
117
- };
118
- sublabel?: undefined;
119
- input_type?: undefined;
120
- options?: undefined;
121
- } | {
122
- name: string;
123
- label: string;
124
- type: string;
125
- sublabel?: undefined;
126
- input_type?: undefined;
127
- options?: undefined;
128
- attributes?: undefined;
129
- } | {
130
- name: string;
131
- label: string;
132
- sublabel: string;
133
- type: string;
134
- attributes: {
135
- min: number;
136
- mode?: undefined;
137
- singleline?: undefined;
138
- expression_type?: undefined;
139
- calcOptions?: undefined;
140
- };
141
- input_type?: undefined;
142
- options?: undefined;
143
- } | {
144
- name: string;
145
- label: string;
146
- sublabel: string;
147
- input_type: string;
148
- options: {
149
- label: string | undefined;
150
- value: number | null | undefined;
7
+ import Table from "../models/table";
8
+ import User from "../models/user";
9
+ import { Where } from "@saltcorn/db-common/internal";
10
+ import { AbstractUser } from "@saltcorn/types/model-abstracts/abstract_user";
11
+ import type { GenObj } from "@saltcorn/types/common_types";
12
+ import type { Req, Res } from "@saltcorn/types/base_types";
13
+ import type { Row } from "@saltcorn/db-common/internal";
14
+ declare const _default: {
15
+ /**
16
+ * @namespace
17
+ * @category saltcorn-data
18
+ * @subcategory actions
19
+ */
20
+ blocks: {
21
+ disableInBuilder: boolean;
22
+ disableInList: boolean;
23
+ disableInWorkflow: boolean;
24
+ description: string;
25
+ configFields: {
26
+ name: string;
27
+ input_type: string;
151
28
  }[];
152
- attributes?: undefined;
153
- type?: undefined;
154
- })[]>;
155
- export { configFields_2 as configFields };
156
- export function run_1({ row, configuration: { table_name, where, limit, orderBy, orderDesc, trigger_id, interval, }, user, ...rest }: {
157
- row: object;
158
- configuration: object;
159
- user: object;
160
- }): Promise<void>;
161
- export { run_1 as run };
162
- let namespace_2: string;
163
- export { namespace_2 as namespace };
164
- }
165
- export namespace webhook {
166
- let description_3: string;
167
- export { description_3 as description };
168
- export function configFields_3({ table, mode }: {
169
- table: any;
170
- mode: any;
171
- }): Promise<({
172
- name: string;
173
- label: string;
174
- type: string;
175
- sublabel: string;
176
- required?: undefined;
177
- attributes?: undefined;
178
- fieldview?: undefined;
179
- showIf?: undefined;
180
- } | {
181
- name: string;
182
- label: string;
183
- type: string;
184
- required: boolean;
185
- attributes: {
29
+ /**
30
+ * @type {base-plugin/actions~run_code}
31
+ * @see base-plugin/actions~run_code
32
+ */
33
+ run: ({ row, table, channel, configuration: { code, run_where }, user, ...rest }: {
34
+ row?: Row;
35
+ table?: Table;
36
+ channel?: string;
37
+ configuration: {
38
+ code: string;
39
+ run_where: string;
40
+ };
41
+ user?: User | AbstractUser;
42
+ [key: string]: any;
43
+ }) => Promise<any>;
44
+ namespace: string;
45
+ };
46
+ /**
47
+ * @namespace
48
+ * @category saltcorn-data
49
+ * @subcategory actions
50
+ */
51
+ emit_event: {
52
+ /**
53
+ * @returns {object[]}
54
+ */
55
+ description: string;
56
+ configFields: () => ({
57
+ name: string;
58
+ label: string;
59
+ required: boolean;
60
+ input_type: string;
186
61
  options: string[];
187
- };
188
- sublabel?: undefined;
189
- fieldview?: undefined;
190
- showIf?: undefined;
191
- } | {
192
- name: string;
193
- label: string;
194
- sublabel: string;
195
- type: string;
196
- fieldview: string;
197
- showIf: {
198
- method: string[];
199
- };
200
- required?: undefined;
201
- attributes?: undefined;
202
- } | {
203
- name: string;
204
- label: string;
205
- type: string;
206
- attributes: {
207
- options: any;
208
- };
209
- sublabel?: undefined;
210
- required?: undefined;
211
- fieldview?: undefined;
212
- showIf?: undefined;
213
- })[]>;
214
- export { configFields_3 as configFields };
215
- export function run_2({ row, user, table, configuration: { url, body, authorization, response_field, response_var, method, }, }: {
216
- url: string;
217
- body: object;
218
- }): Promise<object>;
219
- export { run_2 as run };
220
- }
221
- export namespace find_or_create_dm_room {
222
- let description_4: string;
223
- export { description_4 as description };
224
- export function configFields_4(): Promise<{
225
- name: string;
226
- label: string;
227
- sublabel: string;
228
- input_type: string;
229
- options: string[];
230
- }[]>;
231
- export { configFields_4 as configFields };
232
- export function run_3({ row, table, configuration: { viewname }, user }: {
233
- row: object;
234
- table: any;
235
- configuration: object;
236
- user: object;
237
- }): Promise<object>;
238
- export { run_3 as run };
239
- let namespace_3: string;
240
- export { namespace_3 as namespace };
241
- }
242
- export namespace send_email {
243
- let description_5: string;
244
- export { description_5 as description };
245
- export function configFields_5({ table, mode }: {
246
- table: any;
247
- mode: any;
248
- }): Promise<({
249
- name: string;
250
- label: string;
251
- sublabel: string;
252
- type: string;
253
- required?: undefined;
254
- fieldview?: undefined;
255
- } | {
256
- name: string;
257
- label: string;
258
- sublabel: string;
259
- type: string;
260
- required: boolean;
261
- fieldview?: undefined;
262
- } | {
263
- name: string;
264
- label: string;
265
- type: string;
266
- fieldview: string;
267
- required: boolean;
268
- sublabel?: undefined;
269
- })[] | ({
270
- name: string;
271
- label: string;
272
- type: string;
273
- required: boolean;
274
- attributes: {
62
+ type?: undefined;
63
+ fieldview?: undefined;
64
+ sublabel?: undefined;
65
+ } | {
66
+ name: string;
67
+ label: string;
68
+ type: string;
69
+ fieldview: string;
70
+ required?: undefined;
71
+ input_type?: undefined;
72
+ options?: undefined;
73
+ sublabel?: undefined;
74
+ } | {
75
+ name: string;
76
+ label: string;
77
+ sublabel: string;
78
+ type: string;
79
+ fieldview: string;
80
+ required?: undefined;
81
+ input_type?: undefined;
82
+ options?: undefined;
83
+ })[];
84
+ /**
85
+ * @param {object} opts
86
+ * @param {object} opts.row
87
+ * @param {object} opts.configuration
88
+ * @param {object} opts.user
89
+ * @returns {Promise<void>}
90
+ */
91
+ run: ({ row, configuration: { eventType, channel, payload }, user, }: {
92
+ row: Row;
93
+ configuration: {
94
+ eventType: string;
95
+ channel?: string;
96
+ payload?: any;
97
+ };
98
+ user?: User | AbstractUser;
99
+ }) => Promise<void>;
100
+ namespace: string;
101
+ };
102
+ loop_rows: {
103
+ /**
104
+ * @returns {object[]}
105
+ */
106
+ description: string;
107
+ configFields: () => Promise<({
108
+ name: string;
109
+ label: string;
110
+ sublabel: string;
111
+ input_type: string;
275
112
  options: string[];
276
- };
277
- showIf?: undefined;
278
- sublabel?: undefined;
279
- input_type?: undefined;
280
- options?: undefined;
281
- class?: undefined;
282
- default?: undefined;
283
- } | {
284
- name: string;
285
- label: string;
286
- type: string;
287
- required: boolean;
288
- attributes: {
289
- options: any;
290
- };
291
- showIf: {
292
- body_type: string[];
293
- to_email?: undefined;
294
- };
295
- sublabel?: undefined;
296
- input_type?: undefined;
297
- options?: undefined;
298
- class?: undefined;
299
- default?: undefined;
300
- } | {
301
- name: string;
302
- label: string;
303
- sublabel: string;
304
- input_type: string;
305
- options: string[];
306
- showIf: {
307
- body_type: string;
308
- to_email?: undefined;
309
- };
310
- type?: undefined;
311
- required?: undefined;
312
- attributes?: undefined;
313
- class?: undefined;
314
- default?: undefined;
315
- } | {
316
- name: string;
317
- label: string;
318
- sublabel: string;
319
- input_type: string;
320
- required: boolean;
321
- options: string[];
322
- type?: undefined;
323
- attributes?: undefined;
324
- showIf?: undefined;
325
- class?: undefined;
326
- default?: undefined;
327
- } | {
328
- name: string;
329
- label: string;
330
- sublabel: string;
331
- input_type: string;
332
- options: any;
333
- showIf: {
334
- to_email: string;
335
- body_type?: undefined;
336
- };
337
- type?: undefined;
338
- required?: undefined;
339
- attributes?: undefined;
340
- class?: undefined;
341
- default?: undefined;
342
- } | {
343
- name: string;
344
- label: string;
345
- sublabel: string;
346
- type: string;
347
- showIf: {
348
- to_email: string;
349
- body_type?: undefined;
350
- };
351
- required?: undefined;
352
- attributes?: undefined;
353
- input_type?: undefined;
354
- options?: undefined;
355
- class?: undefined;
356
- default?: undefined;
357
- } | {
358
- name: string;
359
- label: string;
360
- sublabel: string;
361
- type: string;
362
- required?: undefined;
363
- attributes?: undefined;
364
- showIf?: undefined;
365
- input_type?: undefined;
366
- options?: undefined;
367
- class?: undefined;
368
- default?: undefined;
369
- } | {
370
- name: string;
371
- label: string;
372
- sublabel: string;
373
- type: string;
374
- class: string;
375
- required: boolean;
376
- attributes?: undefined;
377
- showIf?: undefined;
378
- input_type?: undefined;
379
- options?: undefined;
380
- default?: undefined;
381
- } | {
382
- name: string;
383
- label: string;
384
- type: string;
385
- required: boolean;
386
- attributes?: undefined;
387
- showIf?: undefined;
388
- sublabel?: undefined;
389
- input_type?: undefined;
390
- options?: undefined;
391
- class?: undefined;
392
- default?: undefined;
393
- } | {
394
- name: string;
395
- label: string;
396
- sublabel: string;
397
- input_type: string;
398
- options: string[];
399
- type: string;
400
- default: string;
401
- required?: undefined;
402
- attributes?: undefined;
403
- showIf?: undefined;
404
- class?: undefined;
405
- } | {
406
- name: string;
407
- label: string;
408
- type: string;
409
- required?: undefined;
410
- attributes?: undefined;
411
- showIf?: undefined;
412
- sublabel?: undefined;
413
- input_type?: undefined;
414
- options?: undefined;
415
- class?: undefined;
416
- default?: undefined;
417
- } | {
418
- name: string;
419
- label: string;
420
- type: string;
421
- sublabel: string;
422
- attributes: {
423
- options: any;
424
- };
425
- required?: undefined;
426
- showIf?: undefined;
427
- input_type?: undefined;
428
- options?: undefined;
429
- class?: undefined;
430
- default?: undefined;
431
- })[]>;
432
- export { configFields_5 as configFields };
433
- export let requireRow: boolean;
434
- export function run_4({ row, table, configuration: { body_type, body_field, viewname, subject, subject_formula, to_email, to_email_field, to_email_fixed, cc_email, bcc_email, only_if, attachment_path, disable_notify, confirm_field, body, locale, }, user, mode, }: {
435
- row: object;
436
- table: object;
437
- configuration: object;
438
- user: object;
439
- }): Promise<object>;
440
- export { run_4 as run };
441
- let namespace_4: string;
442
- export { namespace_4 as namespace };
443
- }
444
- export namespace insert_joined_row {
445
- let description_6: string;
446
- export { description_6 as description };
447
- export function configFields_6({ table }: {
448
- table: any;
449
- }): Promise<{
450
- name: string;
451
- label: string;
452
- sublabel: string;
453
- input_type: string;
454
- options: any;
455
- }[]>;
456
- export { configFields_6 as configFields };
457
- let disableInWorkflow_1: boolean;
458
- export { disableInWorkflow_1 as disableInWorkflow };
459
- let requireRow_1: boolean;
460
- export { requireRow_1 as requireRow };
461
- export function run_5({ row, table, configuration: { joined_table }, user }: {
462
- row: object;
463
- table: object;
464
- configuration: object;
465
- user: object;
466
- }): Promise<object>;
467
- export { run_5 as run };
468
- let namespace_5: string;
469
- export { namespace_5 as namespace };
470
- }
471
- export namespace duplicate_row {
472
- let description_7: string;
473
- export { description_7 as description };
474
- export function configFields_7(): never[];
475
- export { configFields_7 as configFields };
476
- let disableInWorkflow_2: boolean;
477
- export { disableInWorkflow_2 as disableInWorkflow };
478
- let requireRow_2: boolean;
479
- export { requireRow_2 as requireRow };
480
- export function run_6({ row, table, user }: {
481
- row: object;
482
- table: object;
483
- user: any;
484
- }): Promise<object>;
485
- export { run_6 as run };
486
- let namespace_6: string;
487
- export { namespace_6 as namespace };
488
- }
489
- export namespace recalculate_stored_fields {
490
- let description_8: string;
491
- export { description_8 as description };
492
- export function configFields_8({ table }: {
493
- table: any;
494
- }): Promise<({
495
- name: string;
496
- label: string;
497
- sublabel: string;
498
- input_type: string;
499
- options: string[];
500
- type?: undefined;
501
- showIf?: undefined;
502
- attributes?: undefined;
503
- } | {
504
- name: string;
505
- label: string;
506
- type: string;
507
- showIf: {
508
- table: any;
509
- } | {
510
- table?: undefined;
511
- };
512
- sublabel?: undefined;
513
- input_type?: undefined;
514
- options?: undefined;
515
- attributes?: undefined;
516
- } | {
517
- name: string;
518
- label: string;
519
- sublabel: string;
520
- input_type: string;
521
- attributes: {
522
- mode: string;
523
- singleline: boolean;
524
- expression_type: string;
525
- };
526
- options?: undefined;
527
- type?: undefined;
528
- showIf?: undefined;
529
- })[]>;
530
- export { configFields_8 as configFields };
531
- export function run_7({ table, row, configuration, user }: {
532
- configuration: object;
533
- }): Promise<void>;
534
- export { run_7 as run };
535
- let namespace_7: string;
536
- export { namespace_7 as namespace };
537
- }
538
- export namespace insert_any_row {
539
- let description_9: string;
540
- export { description_9 as description };
541
- export function configFields_9({ mode }: {
542
- mode: any;
543
- }): Promise<({
544
- name: string;
545
- label: string;
546
- sublabel: string;
547
- input_type: string;
548
- options: string[];
549
- type?: undefined;
550
- fieldview?: undefined;
551
- class?: undefined;
552
- attributes?: undefined;
553
- } | {
554
- name: string;
555
- label: string;
556
- sublabel: string;
557
- type: string;
558
- fieldview: string;
559
- class: string;
560
- attributes: {
561
- spellcheck: boolean;
562
- };
563
- input_type?: undefined;
564
- options?: undefined;
565
- } | {
566
- name: string;
567
- label: string;
568
- sublabel: string;
569
- type: string;
570
- input_type?: undefined;
571
- options?: undefined;
572
- fieldview?: undefined;
573
- class?: undefined;
574
- attributes?: undefined;
575
- })[]>;
576
- export { configFields_9 as configFields };
577
- export function run_8({ row, table, configuration, user, referrer, ...rest }: {
578
- row: object;
579
- table?: object | undefined;
580
- configuration: object;
581
- user: object;
582
- rest?: any[];
583
- }): Promise<object | boolean>;
584
- export { run_8 as run };
585
- let namespace_8: string;
586
- export { namespace_8 as namespace };
587
- }
588
- export namespace modify_row {
589
- let description_10: string;
590
- export { description_10 as description };
591
- export function configFields_10({ mode, when_trigger }: {
592
- mode: any;
593
- when_trigger: any;
594
- }): Promise<({
595
- name: string;
596
- label: string;
597
- sublabel: string;
598
- input_type: string;
599
- attributes: {
600
- mode: string;
601
- compact: boolean;
602
- expression_type: string;
113
+ attributes?: undefined;
114
+ type?: undefined;
115
+ } | {
116
+ name: string;
117
+ label: string;
118
+ sublabel: string;
119
+ input_type: string;
120
+ attributes: {
121
+ mode: string;
122
+ singleline: boolean;
123
+ expression_type: string;
124
+ calcOptions?: undefined;
125
+ min?: undefined;
126
+ };
127
+ options?: undefined;
128
+ type?: undefined;
129
+ } | {
130
+ name: string;
131
+ label: string;
132
+ type: string;
133
+ sublabel: string;
134
+ input_type?: undefined;
135
+ options?: undefined;
136
+ attributes?: undefined;
137
+ } | {
138
+ name: string;
139
+ label: string;
140
+ type: string;
141
+ attributes: {
142
+ calcOptions: (string | Record<string, string[]>)[];
143
+ mode?: undefined;
144
+ singleline?: undefined;
145
+ expression_type?: undefined;
146
+ min?: undefined;
147
+ };
148
+ sublabel?: undefined;
149
+ input_type?: undefined;
150
+ options?: undefined;
151
+ } | {
152
+ name: string;
153
+ label: string;
154
+ type: string;
155
+ sublabel?: undefined;
156
+ input_type?: undefined;
157
+ options?: undefined;
158
+ attributes?: undefined;
159
+ } | {
160
+ name: string;
161
+ label: string;
162
+ sublabel: string;
163
+ type: string;
164
+ attributes: {
165
+ min: number;
166
+ mode?: undefined;
167
+ singleline?: undefined;
168
+ expression_type?: undefined;
169
+ calcOptions?: undefined;
170
+ };
171
+ input_type?: undefined;
603
172
  options?: undefined;
173
+ } | {
174
+ name: string;
175
+ label: string;
176
+ sublabel: string;
177
+ input_type: string;
178
+ options: {
179
+ label: string | undefined;
180
+ value: number | null | undefined;
181
+ }[];
182
+ attributes?: undefined;
183
+ type?: undefined;
184
+ })[]>;
185
+ /**
186
+ * @param {object} opts
187
+ * @param {object} opts.row
188
+ * @param {object} opts.configuration
189
+ * @param {object} opts.user
190
+ * @returns {Promise<void>}
191
+ */
192
+ run: ({ row, configuration: { table_name, where, limit, orderBy, orderDesc, trigger_id, interval, }, user, ...rest }: {
193
+ row: Row;
194
+ configuration: {
195
+ table_name: string;
196
+ where?: Where;
197
+ limit?: number;
198
+ orderBy?: string;
199
+ orderDesc?: boolean;
200
+ trigger_id?: number;
201
+ interval?: number;
202
+ };
203
+ user?: User | AbstractUser;
204
+ [key: string]: unknown;
205
+ }) => Promise<{}>;
206
+ namespace: string;
207
+ };
208
+ /**
209
+ * @namespace
210
+ * @category saltcorn-data
211
+ * @subcategory actions
212
+ */
213
+ webhook: {
214
+ description: string;
215
+ configFields: ({ table, mode }: {
216
+ table: Table;
217
+ mode: string;
218
+ }) => Promise<({
219
+ name: string;
220
+ label: string;
221
+ type: string;
222
+ sublabel: string;
223
+ required?: undefined;
224
+ attributes?: undefined;
225
+ fieldview?: undefined;
604
226
  showIf?: undefined;
605
- singleline?: undefined;
606
- };
607
- type?: undefined;
608
- required?: undefined;
609
- showIf?: undefined;
610
- } | {
611
- name: string;
612
- label: string;
613
- type: string;
614
- required: boolean;
615
- attributes: {
227
+ } | {
228
+ name: string;
229
+ label: string;
230
+ type: string;
231
+ required: boolean;
232
+ attributes: {
233
+ options: string[];
234
+ };
235
+ sublabel?: undefined;
236
+ fieldview?: undefined;
237
+ showIf?: undefined;
238
+ } | {
239
+ name: string;
240
+ label: string;
241
+ sublabel: string;
242
+ type: string;
243
+ fieldview: string;
244
+ showIf: {
245
+ method: string[];
246
+ };
247
+ required?: undefined;
248
+ attributes?: undefined;
249
+ } | {
250
+ name: string;
251
+ label: string;
252
+ type: string;
253
+ attributes: {
254
+ options: string[];
255
+ };
256
+ sublabel?: undefined;
257
+ required?: undefined;
258
+ fieldview?: undefined;
259
+ showIf?: undefined;
260
+ })[]>;
261
+ /**
262
+ * @param {object} opts
263
+ * @param {string} opts.url
264
+ * @param {object} opts.body
265
+ * @returns {Promise<object>}
266
+ */
267
+ run: ({ row, user, table, configuration: { url, body, authorization, response_field, response_var, method, }, }: {
268
+ row?: Row;
269
+ user?: User | AbstractUser;
270
+ table?: Table;
271
+ configuration: {
272
+ url: string;
273
+ body?: string;
274
+ authorization?: string;
275
+ response_field?: string;
276
+ response_var?: string;
277
+ method?: string;
278
+ };
279
+ }) => Promise<{
280
+ [x: string]: any;
281
+ } | undefined>;
282
+ };
283
+ /**
284
+ * @namespace
285
+ * @category saltcorn-data
286
+ * @subcategory actions
287
+ */
288
+ find_or_create_dm_room: {
289
+ /**
290
+ * @returns {Promise<object[]>}
291
+ */
292
+ description: string;
293
+ configFields: () => Promise<{
294
+ name: string;
295
+ label: string;
296
+ sublabel: string;
297
+ input_type: string;
616
298
  options: string[];
617
- mode?: undefined;
618
- compact?: undefined;
619
- expression_type?: undefined;
299
+ }[]>;
300
+ /**
301
+ * @param {object} opts
302
+ * @param {object} opts.row
303
+ * @param {*} opts.table
304
+ * @param {object} opts.configuration
305
+ * @param {object} opts.user
306
+ * @returns {Promise<object>}
307
+ */
308
+ run: ({ row, table, configuration: { viewname }, user, }: {
309
+ row: Row;
310
+ table?: Table;
311
+ configuration: {
312
+ viewname: string;
313
+ };
314
+ user: User;
315
+ }) => Promise<{
316
+ goto: string;
317
+ }>;
318
+ namespace: string;
319
+ };
320
+ /**
321
+ * @namespace
322
+ * @category saltcorn-data
323
+ * @subcategory actions
324
+ */
325
+ send_email: {
326
+ /**
327
+ * @param {object} opts
328
+ * @param {object} opts.table
329
+ * @returns {Promise<object[]>}
330
+ */
331
+ description: string;
332
+ configFields: ({ table, mode }: {
333
+ table?: Table;
334
+ mode?: string;
335
+ }) => Promise<({
336
+ name: string;
337
+ label: string;
338
+ sublabel: string;
339
+ type: string;
340
+ required?: undefined;
341
+ fieldview?: undefined;
342
+ } | {
343
+ name: string;
344
+ label: string;
345
+ sublabel: string;
346
+ type: string;
347
+ required: boolean;
348
+ fieldview?: undefined;
349
+ } | {
350
+ name: string;
351
+ label: string;
352
+ type: string;
353
+ fieldview: string;
354
+ required: boolean;
355
+ sublabel?: undefined;
356
+ })[] | ({
357
+ name: string;
358
+ label: string;
359
+ type: string;
360
+ required: boolean;
361
+ attributes: {
362
+ options: string[];
363
+ };
620
364
  showIf?: undefined;
621
- singleline?: undefined;
622
- };
623
- sublabel?: undefined;
624
- input_type?: undefined;
625
- showIf?: undefined;
626
- } | {
627
- name: string;
628
- label: string;
629
- type: string;
630
- required: boolean;
631
- attributes: {
365
+ sublabel?: undefined;
366
+ input_type?: undefined;
367
+ options?: undefined;
368
+ class?: undefined;
369
+ default?: undefined;
370
+ } | {
371
+ name: string;
372
+ label: string;
373
+ type: string;
374
+ required: boolean;
375
+ attributes: {
376
+ options: string[];
377
+ };
378
+ showIf: {
379
+ body_type: string[];
380
+ to_email?: undefined;
381
+ };
382
+ sublabel?: undefined;
383
+ input_type?: undefined;
384
+ options?: undefined;
385
+ class?: undefined;
386
+ default?: undefined;
387
+ } | {
388
+ name: string;
389
+ label: string;
390
+ sublabel: string;
391
+ input_type: string;
632
392
  options: string[];
633
393
  showIf: {
634
- where: string;
394
+ body_type: string;
395
+ to_email?: undefined;
635
396
  };
636
- mode?: undefined;
637
- compact?: undefined;
638
- expression_type?: undefined;
639
- singleline?: undefined;
640
- };
641
- sublabel?: undefined;
642
- input_type?: undefined;
643
- showIf?: undefined;
644
- } | {
645
- name: string;
646
- label: string;
647
- input_type: string;
648
- attributes: {
397
+ type?: undefined;
398
+ required?: undefined;
399
+ attributes?: undefined;
400
+ class?: undefined;
401
+ default?: undefined;
402
+ } | {
403
+ name: string;
404
+ label: string;
405
+ sublabel: string;
406
+ input_type: string;
407
+ required: boolean;
408
+ options: string[];
409
+ type?: undefined;
410
+ attributes?: undefined;
411
+ showIf?: undefined;
412
+ class?: undefined;
413
+ default?: undefined;
414
+ } | {
415
+ name: string;
416
+ label: string;
417
+ sublabel: string;
418
+ input_type: string;
419
+ options: string[];
420
+ showIf: {
421
+ to_email: string;
422
+ body_type?: undefined;
423
+ };
424
+ type?: undefined;
425
+ required?: undefined;
426
+ attributes?: undefined;
427
+ class?: undefined;
428
+ default?: undefined;
429
+ } | {
430
+ name: string;
431
+ label: string;
432
+ sublabel: string;
433
+ type: string;
434
+ showIf: {
435
+ to_email: string;
436
+ body_type?: undefined;
437
+ };
438
+ required?: undefined;
439
+ attributes?: undefined;
440
+ input_type?: undefined;
441
+ options?: undefined;
442
+ class?: undefined;
443
+ default?: undefined;
444
+ } | {
445
+ name: string;
446
+ label: string;
447
+ sublabel: string;
448
+ type: string;
449
+ required?: undefined;
450
+ attributes?: undefined;
451
+ showIf?: undefined;
452
+ input_type?: undefined;
453
+ options?: undefined;
454
+ class?: undefined;
455
+ default?: undefined;
456
+ } | {
457
+ name: string;
458
+ label: string;
459
+ sublabel: string;
460
+ type: string;
461
+ class: string;
462
+ required: boolean;
463
+ attributes?: undefined;
464
+ showIf?: undefined;
465
+ input_type?: undefined;
466
+ options?: undefined;
467
+ default?: undefined;
468
+ } | {
469
+ name: string;
470
+ label: string;
471
+ type: string;
472
+ required: boolean;
473
+ attributes?: undefined;
474
+ showIf?: undefined;
475
+ sublabel?: undefined;
476
+ input_type?: undefined;
477
+ options?: undefined;
478
+ class?: undefined;
479
+ default?: undefined;
480
+ } | {
481
+ name: string;
482
+ label: string;
483
+ sublabel: string;
484
+ input_type: string;
485
+ options: string[];
486
+ type: string;
487
+ default: string;
488
+ required?: undefined;
489
+ attributes?: undefined;
490
+ showIf?: undefined;
491
+ class?: undefined;
492
+ } | {
493
+ name: string;
494
+ label: string;
495
+ type: string;
496
+ required?: undefined;
497
+ attributes?: undefined;
498
+ showIf?: undefined;
499
+ sublabel?: undefined;
500
+ input_type?: undefined;
501
+ options?: undefined;
502
+ class?: undefined;
503
+ default?: undefined;
504
+ } | {
505
+ name: string;
506
+ label: string;
507
+ type: string;
508
+ sublabel: string;
509
+ attributes: {
510
+ options: string[];
511
+ };
512
+ required?: undefined;
513
+ showIf?: undefined;
514
+ input_type?: undefined;
515
+ options?: undefined;
516
+ class?: undefined;
517
+ default?: undefined;
518
+ })[]>;
519
+ requireRow: boolean;
520
+ /**
521
+ * @param {object} opts
522
+ * @param {object} opts.row
523
+ * @param {object} opts.table
524
+ * @param {object} opts.configuration
525
+ * @param {object} opts.user
526
+ * @returns {Promise<object>}
527
+ */
528
+ run: ({ row, table, configuration: { body_type, body_field, viewname, subject, subject_formula, to_email, to_email_field, to_email_fixed, cc_email, bcc_email, only_if, attachment_path, disable_notify, confirm_field, body, locale, }, user, mode, }: {
529
+ row: Row;
530
+ table: Table;
531
+ configuration: {
532
+ body_type?: string;
533
+ body_field?: string;
534
+ viewname?: string;
535
+ subject?: string;
536
+ subject_formula?: string;
537
+ to_email: string;
538
+ to_email_field?: string;
539
+ to_email_fixed?: string;
540
+ cc_email?: string;
541
+ bcc_email?: string;
542
+ only_if?: string;
543
+ attachment_path?: string;
544
+ disable_notify?: boolean;
545
+ confirm_field?: string;
546
+ body?: string;
547
+ locale?: string;
548
+ };
549
+ user: User;
649
550
  mode: string;
650
- singleline: boolean;
651
- expression_type: string;
652
- compact?: undefined;
551
+ }) => Promise<{
552
+ [x: string]: boolean;
553
+ notify?: undefined;
554
+ } | {
555
+ notify: string;
556
+ } | undefined>;
557
+ namespace: string;
558
+ };
559
+ /**
560
+ * @namespace
561
+ * @category saltcorn-data
562
+ * @subcategory actions
563
+ */
564
+ insert_joined_row: {
565
+ /**
566
+ * @param {object} opts
567
+ * @param {object} opts.table
568
+ * @returns {Promise<object[]>}
569
+ */
570
+ description: string;
571
+ configFields: ({ table }: any) => Promise<{
572
+ name: string;
573
+ label: string;
574
+ sublabel: string;
575
+ input_type: string;
576
+ options: any;
577
+ }[]>;
578
+ disableInWorkflow: boolean;
579
+ requireRow: boolean;
580
+ /**
581
+ * @param {object} opts
582
+ * @param {object} opts.row
583
+ * @param {object} opts.table
584
+ * @param {object} opts.configuration
585
+ * @param {object} opts.user
586
+ * @returns {Promise<object>}
587
+ */
588
+ run: ({ row, table, configuration: { joined_table }, user, }: {
589
+ row: Row;
590
+ table: Table;
591
+ configuration: {
592
+ joined_table: string;
593
+ };
594
+ user?: User | AbstractUser;
595
+ }) => Promise<any>;
596
+ namespace: string;
597
+ };
598
+ /**
599
+ * @namespace
600
+ * @category saltcorn-data
601
+ * @subcategory actions
602
+ */
603
+ duplicate_row: {
604
+ /**
605
+ * @returns {Promise<object[]>}
606
+ */
607
+ description: string;
608
+ configFields: () => never[];
609
+ disableInWorkflow: boolean;
610
+ requireRow: boolean;
611
+ /**
612
+ * @param {object} opts
613
+ * @param {object} opts.row
614
+ * @param {object} opts.table
615
+ * @param {*} opts.user
616
+ * @returns {Promise<object>}
617
+ */
618
+ run: ({ row, table, user, }: {
619
+ row: Row;
620
+ table: Table;
621
+ user?: User | AbstractUser;
622
+ }) => Promise<void>;
623
+ namespace: string;
624
+ };
625
+ /**
626
+ * @namespace
627
+ * @category saltcorn-data
628
+ * @subcategory actions
629
+ */
630
+ recalculate_stored_fields: {
631
+ /**
632
+ * @param {object} opts
633
+ * @param {object} opts.table
634
+ * @returns {Promise<object[]>}
635
+ */
636
+ description: string;
637
+ configFields: ({ table }: any) => Promise<({
638
+ name: string;
639
+ label: string;
640
+ sublabel: string;
641
+ input_type: string;
642
+ options: string[];
643
+ type?: undefined;
644
+ showIf?: undefined;
645
+ attributes?: undefined;
646
+ } | {
647
+ name: string;
648
+ label: string;
649
+ type: string;
650
+ showIf: {
651
+ table: any;
652
+ } | {
653
+ table?: undefined;
654
+ };
655
+ sublabel?: undefined;
656
+ input_type?: undefined;
653
657
  options?: undefined;
658
+ attributes?: undefined;
659
+ } | {
660
+ name: string;
661
+ label: string;
662
+ sublabel: string;
663
+ input_type: string;
664
+ attributes: {
665
+ mode: string;
666
+ singleline: boolean;
667
+ expression_type: string;
668
+ };
669
+ options?: undefined;
670
+ type?: undefined;
654
671
  showIf?: undefined;
655
- };
656
- required: boolean;
657
- showIf: {
658
- where: string;
659
- };
660
- sublabel?: undefined;
661
- type?: undefined;
662
- })[]>;
663
- export { configFields_10 as configFields };
664
- let requireRow_3: boolean;
665
- export { requireRow_3 as requireRow };
666
- export function run_9({ row, table, configuration: { row_expr, where, select_table, query }, user, ...rest }: {
667
- [x: string]: any;
668
- row: any;
669
- table: any;
670
- configuration: {
671
- row_expr: any;
672
- where: any;
673
- select_table: any;
674
- query: any;
675
- };
676
- user: any;
677
- }): Promise<any>;
678
- export { run_9 as run };
679
- let namespace_9: string;
680
- export { namespace_9 as namespace };
681
- }
682
- export namespace delete_rows {
683
- let description_11: string;
684
- export { description_11 as description };
685
- export function configFields_11({ mode, when_trigger }: {
686
- mode: any;
687
- when_trigger: any;
688
- }): Promise<({
689
- name: string;
690
- label: string;
691
- type: string;
692
- sublabel?: undefined;
693
- input_type?: undefined;
694
- showIf?: undefined;
695
- options?: undefined;
696
- required?: undefined;
697
- class?: undefined;
698
- } | {
699
- name: string;
700
- label: string;
701
- sublabel: string;
702
- input_type: string;
703
- showIf: {
704
- delete_triggering_row: boolean;
705
- } | undefined;
706
- options: string[];
707
- type?: undefined;
708
- required?: undefined;
709
- class?: undefined;
710
- } | {
711
- name: string;
712
- label: string;
713
- type: string;
714
- sublabel: string;
715
- required: boolean;
716
- class: string;
717
- showIf: {
718
- delete_triggering_row: boolean;
719
- } | undefined;
720
- input_type?: undefined;
721
- options?: undefined;
722
- })[]>;
723
- export { configFields_11 as configFields };
724
- export function run_10({ row, table, configuration: { delete_triggering_row, delete_where, table_name }, user, ...rest }: {
725
- [x: string]: any;
726
- row: any;
727
- table: any;
728
- configuration: {
729
- delete_triggering_row: any;
730
- delete_where: any;
731
- table_name: any;
732
- };
733
- user: any;
734
- }): Promise<{}>;
735
- export { run_10 as run };
736
- let namespace_10: string;
737
- export { namespace_10 as namespace };
738
- }
739
- export namespace navigate {
740
- let description_12: string;
741
- export { description_12 as description };
742
- export function configFields_12(): Promise<({
743
- name: string;
744
- label: string;
745
- type: string;
746
- required: boolean;
747
- attributes: {
672
+ })[]>;
673
+ /**
674
+ * @param {object} opts
675
+ * @param {object} opts.configuration
676
+ * @returns {Promise<void>}
677
+ */
678
+ run: ({ table, row, configuration, user, }: {
679
+ table?: Table;
680
+ row?: Row;
681
+ configuration: {
682
+ table: string;
683
+ only_triggering_row?: boolean;
684
+ where?: string;
685
+ };
686
+ user?: User | AbstractUser;
687
+ }) => Promise<{
688
+ error: string;
689
+ } | undefined>;
690
+ namespace: string;
691
+ };
692
+ /**
693
+ * @namespace
694
+ * @category saltcorn-data
695
+ * @subcategory actions
696
+ */
697
+ insert_any_row: {
698
+ /**
699
+ * @param {object} opts
700
+ * @param {*} opts.table
701
+ * @returns {Promise<object[]>}
702
+ */
703
+ description: string;
704
+ configFields: ({ mode }: any) => Promise<({
705
+ name: string;
706
+ label: string;
707
+ sublabel: string;
708
+ input_type: string;
748
709
  options: string[];
749
- };
750
- showIf?: undefined;
751
- input_type?: undefined;
752
- options?: undefined;
753
- class?: undefined;
754
- } | {
755
- name: string;
756
- label: string;
757
- type: string;
758
- required: boolean;
759
- showIf: {
760
- nav_action: string[];
761
- };
762
- attributes?: undefined;
763
- input_type?: undefined;
764
- options?: undefined;
765
- class?: undefined;
766
- } | {
767
- name: string;
768
- label: string;
769
- input_type: string;
770
- options: string[];
771
- showIf: {
772
- nav_action: string;
773
- };
774
- type?: undefined;
775
- required?: undefined;
776
- attributes?: undefined;
777
- class?: undefined;
778
- } | {
779
- name: string;
780
- label: string;
781
- type: string;
782
- class: string;
783
- showIf: {
784
- nav_action: string[];
785
- };
786
- required?: undefined;
787
- attributes?: undefined;
788
- input_type?: undefined;
789
- options?: undefined;
790
- } | {
791
- name: string;
792
- label: string;
793
- type: string;
794
- showIf: {
795
- nav_action: string[];
796
- };
797
- required?: undefined;
798
- attributes?: undefined;
799
- input_type?: undefined;
800
- options?: undefined;
801
- class?: undefined;
802
- })[]>;
803
- export { configFields_12 as configFields };
804
- export function run_11({ row, user, configuration: { nav_action, url, state_formula, new_tab, view, page, in_popup, }, req, }: {
805
- row: any;
806
- user: any;
807
- configuration: {
808
- nav_action: any;
809
- url: any;
810
- state_formula: any;
811
- new_tab: any;
812
- view: any;
813
- page: any;
814
- in_popup: any;
815
- };
816
- req: any;
817
- }): Promise<{
818
- target?: string | undefined;
819
- popup?: undefined;
820
- eval_js?: undefined;
821
- reload_page?: undefined;
822
- } | {
823
- popup: string;
824
- eval_js?: undefined;
825
- reload_page?: undefined;
826
- } | {
827
- eval_js: string;
828
- popup?: undefined;
829
- reload_page?: undefined;
830
- } | {
831
- reload_page: boolean;
832
- popup?: undefined;
833
- eval_js?: undefined;
834
- } | undefined>;
835
- export { run_11 as run };
836
- let namespace_11: string;
837
- export { namespace_11 as namespace };
838
- }
839
- export namespace step_control_flow {
840
- let description_13: string;
841
- export { description_13 as description };
842
- let disableInWorkflow_3: boolean;
843
- export { disableInWorkflow_3 as disableInWorkflow };
844
- let configFields_13: ({
845
- name: string;
846
- label: string;
847
- type: string;
848
- required: boolean;
849
- attributes: {
710
+ type?: undefined;
711
+ fieldview?: undefined;
712
+ class?: undefined;
713
+ attributes?: undefined;
714
+ } | {
715
+ name: string;
716
+ label: string;
717
+ sublabel: string;
718
+ type: string;
719
+ fieldview: string;
720
+ class: string;
721
+ attributes: {
722
+ spellcheck: boolean;
723
+ };
724
+ input_type?: undefined;
725
+ options?: undefined;
726
+ } | {
727
+ name: string;
728
+ label: string;
729
+ sublabel: string;
730
+ type: string;
731
+ input_type?: undefined;
732
+ options?: undefined;
733
+ fieldview?: undefined;
734
+ class?: undefined;
735
+ attributes?: undefined;
736
+ })[]>;
737
+ /**
738
+ * @param {object} opts
739
+ * @param {object} opts.row
740
+ * @param {object} [opts.table]
741
+ * @param {object} opts.configuration
742
+ * @param {object} opts.user
743
+ * @param {...*} [opts.rest]
744
+ * @returns {Promise<object|boolean>}
745
+ */
746
+ run: ({ row, table, configuration, user, referrer, ...rest }: {
747
+ row?: Row;
748
+ table?: Table;
749
+ configuration: {
750
+ table: string;
751
+ row_expr: string;
752
+ id_variable?: string;
753
+ };
754
+ user?: User | AbstractUser;
755
+ referrer?: string;
756
+ [key: string]: any;
757
+ }) => Promise<GenObj>;
758
+ namespace: string;
759
+ };
760
+ /**
761
+ * @namespace
762
+ * @category saltcorn-data
763
+ * @subcategory actions
764
+ */
765
+ modify_row: {
766
+ description: string;
767
+ configFields: ({ mode, when_trigger, }: {
768
+ mode: string;
769
+ when_trigger: string;
770
+ }) => Promise<({
771
+ name: string;
772
+ label: string;
773
+ sublabel: string;
774
+ input_type: string;
775
+ attributes: {
776
+ mode: string;
777
+ compact: boolean;
778
+ expression_type: string;
779
+ options?: undefined;
780
+ showIf?: undefined;
781
+ singleline?: undefined;
782
+ };
783
+ type?: undefined;
784
+ required?: undefined;
785
+ showIf?: undefined;
786
+ } | {
787
+ name: string;
788
+ label: string;
789
+ type: string;
790
+ required: boolean;
791
+ attributes: {
792
+ options: string[];
793
+ mode?: undefined;
794
+ compact?: undefined;
795
+ expression_type?: undefined;
796
+ showIf?: undefined;
797
+ singleline?: undefined;
798
+ };
799
+ sublabel?: undefined;
800
+ input_type?: undefined;
801
+ showIf?: undefined;
802
+ } | {
803
+ name: string;
804
+ label: string;
805
+ type: string;
806
+ required: boolean;
807
+ attributes: {
808
+ options: string[];
809
+ showIf: {
810
+ where: string;
811
+ };
812
+ mode?: undefined;
813
+ compact?: undefined;
814
+ expression_type?: undefined;
815
+ singleline?: undefined;
816
+ };
817
+ sublabel?: undefined;
818
+ input_type?: undefined;
819
+ showIf?: undefined;
820
+ } | {
821
+ name: string;
822
+ label: string;
823
+ input_type: string;
824
+ attributes: {
825
+ mode: string;
826
+ singleline: boolean;
827
+ expression_type: string;
828
+ compact?: undefined;
829
+ options?: undefined;
830
+ showIf?: undefined;
831
+ };
832
+ required: boolean;
833
+ showIf: {
834
+ where: string;
835
+ };
836
+ sublabel?: undefined;
837
+ type?: undefined;
838
+ })[]>;
839
+ requireRow: boolean;
840
+ run: ({ row, table, configuration: { row_expr, where, select_table, query }, user, ...rest }: {
841
+ row?: Row;
842
+ table?: Table;
843
+ configuration: {
844
+ row_expr: string;
845
+ where?: string;
846
+ select_table?: string;
847
+ query?: string;
848
+ };
849
+ user?: User | AbstractUser;
850
+ [key: string]: any;
851
+ }) => Promise<import("@saltcorn/types/common_types").ErrorMessage | import("@saltcorn/types/common_types").SuccessMessage | {
852
+ set_fields: any;
853
+ } | undefined>;
854
+ namespace: string;
855
+ };
856
+ delete_rows: {
857
+ /**
858
+ * @param {object} opts
859
+ * @param {*} opts.table
860
+ * @returns {Promise<object[]>}
861
+ */
862
+ description: string;
863
+ configFields: ({ mode, when_trigger }: any) => Promise<({
864
+ name: string;
865
+ label: string;
866
+ type: string;
867
+ sublabel?: undefined;
868
+ input_type?: undefined;
869
+ showIf?: undefined;
870
+ options?: undefined;
871
+ required?: undefined;
872
+ class?: undefined;
873
+ } | {
874
+ name: string;
875
+ label: string;
876
+ sublabel: string;
877
+ input_type: string;
878
+ showIf: {
879
+ delete_triggering_row: boolean;
880
+ } | undefined;
850
881
  options: string[];
851
- };
852
- showIf?: undefined;
853
- } | {
854
- name: string;
855
- label: string;
856
- type: string;
857
- required: boolean;
858
- showIf: {
859
- control_action: string[];
860
- };
861
- attributes?: undefined;
862
- })[];
863
- export { configFields_13 as configFields };
864
- export function run_12({ row, user, configuration: { control_action, step } }: {
865
- row: any;
866
- user: any;
867
- configuration: {
868
- control_action: any;
869
- step: any;
870
- };
871
- }): Promise<{
872
- halt_steps: boolean;
873
- goto_step?: undefined;
874
- clear_return_values?: undefined;
875
- } | {
876
- goto_step: any;
877
- halt_steps?: undefined;
878
- clear_return_values?: undefined;
879
- } | {
880
- clear_return_values: boolean;
881
- halt_steps?: undefined;
882
- goto_step?: undefined;
883
- } | undefined>;
884
- export { run_12 as run };
885
- let namespace_12: string;
886
- export { namespace_12 as namespace };
887
- }
888
- export namespace form_action {
889
- let description_14: string;
890
- export { description_14 as description };
891
- let requireRow_4: boolean;
892
- export { requireRow_4 as requireRow };
893
- let configFields_14: {
894
- name: string;
895
- label: string;
896
- type: string;
897
- required: boolean;
898
- attributes: {
882
+ type?: undefined;
883
+ required?: undefined;
884
+ class?: undefined;
885
+ } | {
886
+ name: string;
887
+ label: string;
888
+ type: string;
889
+ sublabel: string;
890
+ required: boolean;
891
+ class: string;
892
+ showIf: {
893
+ delete_triggering_row: boolean;
894
+ } | undefined;
895
+ input_type?: undefined;
896
+ options?: undefined;
897
+ })[]>;
898
+ run: ({ row, table, configuration: { delete_triggering_row, delete_where, table_name }, user, ...rest }: {
899
+ row?: Row;
900
+ table?: Table;
901
+ configuration: {
902
+ delete_triggering_row?: boolean;
903
+ delete_where?: string;
904
+ table_name?: string;
905
+ };
906
+ user?: User | AbstractUser;
907
+ [key: string]: any;
908
+ }) => Promise<{}>;
909
+ namespace: string;
910
+ };
911
+ /**
912
+ * @namespace
913
+ * @category saltcorn-data
914
+ * @subcategory actions
915
+ */
916
+ navigate: {
917
+ /**
918
+ * @param {object} opts
919
+ * @param {*} opts.table
920
+ * @returns {Promise<object[]>}
921
+ */
922
+ description: string;
923
+ configFields: () => Promise<({
924
+ name: string;
925
+ label: string;
926
+ type: string;
927
+ required: boolean;
928
+ attributes: {
929
+ options: string[];
930
+ };
931
+ showIf?: undefined;
932
+ input_type?: undefined;
933
+ options?: undefined;
934
+ class?: undefined;
935
+ } | {
936
+ name: string;
937
+ label: string;
938
+ type: string;
939
+ required: boolean;
940
+ showIf: {
941
+ nav_action: string[];
942
+ };
943
+ attributes?: undefined;
944
+ input_type?: undefined;
945
+ options?: undefined;
946
+ class?: undefined;
947
+ } | {
948
+ name: string;
949
+ label: string;
950
+ input_type: string;
899
951
  options: string[];
900
- };
901
- }[];
902
- export { configFields_14 as configFields };
903
- export function run_13({ row, table, user, req, configuration: { form_action }, ...rest }: {
904
- [x: string]: any;
905
- row: any;
906
- table: any;
907
- user: any;
908
- req: any;
909
- configuration: {
910
- form_action: any;
911
- };
912
- }): Promise<{
913
- eval_js: string;
914
- notify_success?: undefined;
915
- set_fields?: undefined;
916
- } | {
917
- notify_success: any;
918
- set_fields: {
919
- [x: number]: any;
920
- };
921
- eval_js?: undefined;
922
- } | {
923
- notify_success: any;
924
- eval_js?: undefined;
925
- set_fields?: undefined;
926
- }>;
927
- export { run_13 as run };
928
- let namespace_13: string;
929
- export { namespace_13 as namespace };
930
- }
931
- export namespace copy_to_clipboard {
932
- let description_15: string;
933
- export { description_15 as description };
934
- let requireRow_5: boolean;
935
- export { requireRow_5 as requireRow };
936
- let configFields_15: {
937
- name: string;
938
- label: string;
939
- sublabel: string;
940
- type: string;
941
- required: boolean;
942
- }[];
943
- export { configFields_15 as configFields };
944
- export function run_14({ row, table, user, req, configuration: { text_template }, ...rest }: {
945
- [x: string]: any;
946
- row: any;
947
- table: any;
948
- user: any;
949
- req: any;
950
- configuration: {
951
- text_template: any;
952
- };
953
- }): Promise<{
954
- eval_js: string;
955
- }>;
956
- export { run_14 as run };
957
- let namespace_14: string;
958
- export { namespace_14 as namespace };
959
- }
960
- export namespace toast {
961
- let description_16: string;
962
- export { description_16 as description };
963
- let configFields_16: ({
964
- name: string;
965
- label: string;
966
- type: string;
967
- required: boolean;
968
- attributes: {
952
+ showIf: {
953
+ nav_action: string;
954
+ };
955
+ type?: undefined;
956
+ required?: undefined;
957
+ attributes?: undefined;
958
+ class?: undefined;
959
+ } | {
960
+ name: string;
961
+ label: string;
962
+ type: string;
963
+ class: string;
964
+ showIf: {
965
+ nav_action: string[];
966
+ };
967
+ required?: undefined;
968
+ attributes?: undefined;
969
+ input_type?: undefined;
970
+ options?: undefined;
971
+ } | {
972
+ name: string;
973
+ label: string;
974
+ type: string;
975
+ showIf: {
976
+ nav_action: string[];
977
+ };
978
+ required?: undefined;
979
+ attributes?: undefined;
980
+ input_type?: undefined;
981
+ options?: undefined;
982
+ class?: undefined;
983
+ })[]>;
984
+ run: ({ row, user, configuration: { nav_action, url, state_formula, new_tab, view, page, in_popup, }, req, }: {
985
+ row?: Row;
986
+ user?: User | AbstractUser;
987
+ configuration: {
988
+ nav_action: string;
989
+ url?: string;
990
+ state_formula?: string;
991
+ new_tab?: boolean;
992
+ view?: string;
993
+ page?: string;
994
+ in_popup?: boolean;
995
+ };
996
+ req?: Req;
997
+ }) => Promise<{
998
+ target?: string | undefined;
999
+ popup?: undefined;
1000
+ eval_js?: undefined;
1001
+ reload_page?: undefined;
1002
+ } | {
1003
+ popup: any;
1004
+ eval_js?: undefined;
1005
+ reload_page?: undefined;
1006
+ } | {
1007
+ eval_js: string;
1008
+ popup?: undefined;
1009
+ reload_page?: undefined;
1010
+ } | {
1011
+ reload_page: boolean;
1012
+ popup?: undefined;
1013
+ eval_js?: undefined;
1014
+ } | undefined>;
1015
+ namespace: string;
1016
+ };
1017
+ step_control_flow: {
1018
+ /**
1019
+ * @param {object} opts
1020
+ * @param {*} opts.table
1021
+ * @returns {Promise<object[]>}
1022
+ */
1023
+ description: string;
1024
+ disableInWorkflow: boolean;
1025
+ configFields: ({
1026
+ name: string;
1027
+ label: string;
1028
+ type: string;
1029
+ required: boolean;
1030
+ attributes: {
1031
+ options: string[];
1032
+ };
1033
+ showIf?: undefined;
1034
+ } | {
1035
+ name: string;
1036
+ label: string;
1037
+ type: string;
1038
+ required: boolean;
1039
+ showIf: {
1040
+ control_action: string[];
1041
+ };
1042
+ attributes?: undefined;
1043
+ })[];
1044
+ run: ({ row, user, configuration: { control_action, step }, }: {
1045
+ row?: Row;
1046
+ user?: User | AbstractUser;
1047
+ configuration: {
1048
+ control_action: string;
1049
+ step?: string;
1050
+ };
1051
+ }) => Promise<{
1052
+ halt_steps: boolean;
1053
+ goto_step?: undefined;
1054
+ clear_return_values?: undefined;
1055
+ } | {
1056
+ goto_step: string | undefined;
1057
+ halt_steps?: undefined;
1058
+ clear_return_values?: undefined;
1059
+ } | {
1060
+ clear_return_values: boolean;
1061
+ halt_steps?: undefined;
1062
+ goto_step?: undefined;
1063
+ } | undefined>;
1064
+ namespace: string;
1065
+ };
1066
+ form_action: {
1067
+ /**
1068
+ * @param {object} opts
1069
+ * @param {*} opts.table
1070
+ * @returns {Promise<object[]>}
1071
+ */
1072
+ description: string;
1073
+ requireRow: boolean;
1074
+ configFields: {
1075
+ name: string;
1076
+ label: string;
1077
+ type: string;
1078
+ required: boolean;
1079
+ attributes: {
1080
+ options: string[];
1081
+ };
1082
+ }[];
1083
+ run: ({ row, table, user, req, configuration: { form_action }, ...rest }: {
1084
+ row?: Row;
1085
+ table: Table;
1086
+ user?: User | AbstractUser;
1087
+ req?: Req;
1088
+ configuration: {
1089
+ form_action: string;
1090
+ };
1091
+ [key: string]: any;
1092
+ }) => Promise<{
1093
+ eval_js: string;
1094
+ notify_success?: undefined;
1095
+ set_fields?: undefined;
1096
+ } | {
1097
+ notify_success: string;
1098
+ set_fields: {
1099
+ [x: string]: any;
1100
+ };
1101
+ eval_js?: undefined;
1102
+ } | {
1103
+ notify_success: string;
1104
+ eval_js?: undefined;
1105
+ set_fields?: undefined;
1106
+ }>;
1107
+ namespace: string;
1108
+ };
1109
+ copy_to_clipboard: {
1110
+ /**
1111
+ * @param {object} opts
1112
+ * @param {*} opts.table
1113
+ * @returns {Promise<object[]>}
1114
+ */
1115
+ description: string;
1116
+ requireRow: boolean;
1117
+ configFields: {
1118
+ name: string;
1119
+ label: string;
1120
+ sublabel: string;
1121
+ type: string;
1122
+ required: boolean;
1123
+ }[];
1124
+ run: ({ row, table, user, req, configuration: { text_template }, ...rest }: {
1125
+ row?: Row;
1126
+ table?: Table;
1127
+ user?: User | AbstractUser;
1128
+ req?: Req;
1129
+ configuration: {
1130
+ text_template?: string;
1131
+ };
1132
+ [key: string]: any;
1133
+ }) => Promise<{
1134
+ eval_js: string;
1135
+ }>;
1136
+ namespace: string;
1137
+ };
1138
+ toast: {
1139
+ /**
1140
+ * @param {object} opts
1141
+ * @param {*} opts.table
1142
+ * @returns {Promise<object[]>}
1143
+ */
1144
+ description: string;
1145
+ configFields: ({
1146
+ name: string;
1147
+ label: string;
1148
+ type: string;
1149
+ required: boolean;
1150
+ attributes: {
1151
+ options: string[];
1152
+ };
1153
+ sublabel?: undefined;
1154
+ } | {
1155
+ name: string;
1156
+ label: string;
1157
+ type: string;
1158
+ required: boolean;
1159
+ attributes?: undefined;
1160
+ sublabel?: undefined;
1161
+ } | {
1162
+ name: string;
1163
+ label: string;
1164
+ sublabel: string;
1165
+ type: string;
1166
+ required?: undefined;
1167
+ attributes?: undefined;
1168
+ } | {
1169
+ name: string;
1170
+ label: string;
1171
+ type: string;
1172
+ required?: undefined;
1173
+ attributes?: undefined;
1174
+ sublabel?: undefined;
1175
+ })[];
1176
+ run: ({ row, user, configuration: { type, notify_type, text, title, remove_delay }, }: {
1177
+ row?: Row;
1178
+ user?: User | AbstractUser;
1179
+ configuration: {
1180
+ type?: string;
1181
+ notify_type?: string;
1182
+ text: string;
1183
+ title?: string;
1184
+ remove_delay?: number;
1185
+ };
1186
+ }) => Promise<{
1187
+ error: any;
1188
+ } | {
1189
+ notify_success: any;
1190
+ } | {
1191
+ notify: any;
1192
+ notify_type: string;
1193
+ } | {
1194
+ notify: any;
1195
+ }>;
1196
+ namespace: string;
1197
+ };
1198
+ /**
1199
+ * @namespace
1200
+ * @category saltcorn-data
1201
+ * @subcategory actions
1202
+ */
1203
+ run_js_code: {
1204
+ /**
1205
+ * @param {object} opts
1206
+ * @param {object} opts.table
1207
+ * @returns {Promise<object[]>}
1208
+ */
1209
+ description: string;
1210
+ configuration_summary: (cfg?: GenObj) => string;
1211
+ configFormOptions: {
1212
+ formStyle: string;
1213
+ };
1214
+ configFields: ({ table, when_trigger, mode }: any) => Promise<({
1215
+ name: string;
1216
+ label: string;
1217
+ input_type: string;
1218
+ attributes: {
1219
+ mode: string;
1220
+ table: any;
1221
+ user: string | undefined;
1222
+ workflow: boolean;
1223
+ secondColHoriz?: undefined;
1224
+ };
1225
+ class: (string | false)[];
1226
+ validator(s: any): any;
1227
+ sublabel?: undefined;
1228
+ help?: undefined;
1229
+ showIf?: undefined;
1230
+ options?: undefined;
1231
+ } | {
1232
+ input_type: string;
1233
+ label: string;
1234
+ sublabel: any;
1235
+ help: {
1236
+ topic: string;
1237
+ };
1238
+ showIf: {
1239
+ run_where: string;
1240
+ };
1241
+ attributes: {
1242
+ secondColHoriz: boolean;
1243
+ mode?: undefined;
1244
+ table?: undefined;
1245
+ user?: undefined;
1246
+ workflow?: undefined;
1247
+ };
1248
+ name?: undefined;
1249
+ class?: undefined;
1250
+ validator?: undefined;
1251
+ options?: undefined;
1252
+ } | {
1253
+ name: string;
1254
+ label: string;
1255
+ input_type: string;
969
1256
  options: string[];
970
- };
971
- sublabel?: undefined;
972
- } | {
973
- name: string;
974
- label: string;
975
- type: string;
976
- required: boolean;
977
- attributes?: undefined;
978
- sublabel?: undefined;
979
- } | {
980
- name: string;
981
- label: string;
982
- sublabel: string;
983
- type: string;
984
- required?: undefined;
985
- attributes?: undefined;
986
- } | {
987
- name: string;
988
- label: string;
989
- type: string;
990
- required?: undefined;
991
- attributes?: undefined;
992
- sublabel?: undefined;
993
- })[];
994
- export { configFields_16 as configFields };
995
- export function run_15({ row, user, configuration: { type, notify_type, text, title, remove_delay }, }: {
996
- row: any;
997
- user: any;
998
- configuration: {
999
- type: any;
1000
- notify_type: any;
1001
- text: any;
1002
- title: any;
1003
- remove_delay: any;
1004
- };
1005
- }): Promise<{
1006
- toast_title: string;
1007
- error: string;
1008
- } | {
1009
- toast_title?: undefined;
1010
- error: string;
1011
- } | {
1012
- toast_title: string;
1013
- notify_success: string;
1014
- } | {
1015
- toast_title?: undefined;
1016
- notify_success: string;
1017
- } | {
1018
- toast_title: string;
1019
- notify: string;
1020
- notify_type: string;
1021
- } | {
1022
- toast_title?: undefined;
1023
- notify: string;
1024
- notify_type: string;
1025
- } | {
1026
- toast_title: string;
1027
- notify: string;
1028
- } | {
1029
- toast_title?: undefined;
1030
- notify: string;
1031
- }>;
1032
- export { run_15 as run };
1033
- let namespace_15: string;
1034
- export { namespace_15 as namespace };
1035
- }
1036
- export namespace run_js_code {
1037
- let description_17: string;
1038
- export { description_17 as description };
1039
- export namespace configFormOptions {
1040
- let formStyle: string;
1041
- }
1042
- export function configFields_17({ table, when_trigger, mode }: {
1043
- table: any;
1044
- when_trigger: any;
1045
- mode: any;
1046
- }): Promise<({
1047
- name: string;
1048
- label: string;
1049
- input_type: string;
1050
- attributes: {
1257
+ attributes?: undefined;
1258
+ class?: undefined;
1259
+ validator?: undefined;
1260
+ sublabel?: undefined;
1261
+ help?: undefined;
1262
+ showIf?: undefined;
1263
+ })[]>;
1264
+ /**
1265
+ * @type {base-plugin/actions~run_code}
1266
+ * @see base-plugin/actions~run_code
1267
+ **/
1268
+ run: ({ row, table, channel, configuration: { code, run_where }, user, ...rest }: {
1269
+ row?: Row;
1270
+ table?: Table;
1271
+ channel?: string;
1272
+ configuration: {
1273
+ code: string;
1274
+ run_where: string;
1275
+ };
1276
+ user?: User | AbstractUser;
1277
+ [key: string]: any;
1278
+ }) => Promise<any>;
1279
+ namespace: string;
1280
+ };
1281
+ run_js_code_in_field: {
1282
+ /**
1283
+ * @param {object} opts
1284
+ * @param {object} opts.table
1285
+ * @returns {Promise<object[]>}
1286
+ */
1287
+ description: string;
1288
+ configuration_summary: (cfg?: GenObj) => string;
1289
+ configFields: ({ table, mode }: {
1290
+ table: Table;
1051
1291
  mode: string;
1052
- table: any;
1053
- user: string | undefined;
1054
- workflow: boolean;
1055
- secondColHoriz?: undefined;
1056
- };
1057
- class: (string | false)[];
1058
- validator(s: any): any;
1059
- sublabel?: undefined;
1060
- help?: undefined;
1061
- showIf?: undefined;
1062
- options?: undefined;
1063
- } | {
1064
- input_type: string;
1065
- label: string;
1066
- sublabel: string;
1067
- help: {
1068
- topic: string;
1069
- };
1070
- showIf: {
1071
- run_where: string;
1072
- };
1073
- attributes: {
1074
- secondColHoriz: boolean;
1075
- mode?: undefined;
1076
- table?: undefined;
1077
- user?: undefined;
1078
- workflow?: undefined;
1079
- };
1080
- name?: undefined;
1081
- class?: undefined;
1082
- validator?: undefined;
1083
- options?: undefined;
1084
- } | {
1085
- name: string;
1086
- label: string;
1087
- input_type: string;
1088
- options: string[];
1089
- attributes?: undefined;
1090
- class?: undefined;
1091
- validator?: undefined;
1092
- sublabel?: undefined;
1093
- help?: undefined;
1094
- showIf?: undefined;
1095
- })[]>;
1096
- export { configFields_17 as configFields };
1097
- export { run_code as run };
1098
- let namespace_16: string;
1099
- export { namespace_16 as namespace };
1100
- }
1101
- export namespace run_js_code_in_field {
1102
- let description_18: string;
1103
- export { description_18 as description };
1104
- export function configFields_18({ table, mode }: {
1105
- table: any;
1106
- mode: any;
1107
- }): Promise<({
1108
- name: string;
1109
- label: string;
1110
- sublabel: string;
1111
- type: string;
1112
- required: boolean;
1113
- input_type?: undefined;
1114
- options?: undefined;
1115
- } | {
1116
- name: string;
1117
- label: string;
1118
- input_type: string;
1119
- options: string[];
1120
- sublabel?: undefined;
1121
- type?: undefined;
1122
- required?: undefined;
1123
- })[] | ({
1124
- name: string;
1125
- label: string;
1126
- sublabel: string;
1127
- type: string;
1128
- required: boolean;
1129
- attributes: {
1130
- options: any;
1131
- };
1132
- input_type?: undefined;
1133
- options?: undefined;
1134
- } | {
1135
- name: string;
1136
- label: string;
1137
- input_type: string;
1138
- options: string[];
1139
- sublabel?: undefined;
1140
- type?: undefined;
1141
- required?: undefined;
1142
- attributes?: undefined;
1143
- })[]>;
1144
- export { configFields_18 as configFields };
1145
- let requireRow_6: boolean;
1146
- export { requireRow_6 as requireRow };
1147
- let run_16: base;
1148
- export { run_16 as run };
1149
- let namespace_17: string;
1150
- export { namespace_17 as namespace };
1151
- }
1152
- export namespace duplicate_row_prefill_edit {
1153
- export function configFields_19({ table }: {
1154
- table: any;
1155
- }): Promise<any[]>;
1156
- export { configFields_19 as configFields };
1157
- let disableInWorkflow_4: boolean;
1158
- export { disableInWorkflow_4 as disableInWorkflow };
1159
- let requireRow_7: boolean;
1160
- export { requireRow_7 as requireRow };
1161
- export function run_17({ row, table, configuration: { viewname, ...flds }, user }: {
1162
- row: any;
1163
- table: any;
1164
- configuration: {
1165
- [x: string]: any;
1166
- viewname: any;
1167
- };
1168
- user: any;
1169
- }): Promise<{
1170
- goto: string;
1171
- }>;
1172
- export { run_17 as run };
1173
- let namespace_18: string;
1174
- export { namespace_18 as namespace };
1175
- }
1176
- export namespace set_user_language {
1177
- let description_19: string;
1178
- export { description_19 as description };
1179
- export function configFields_20({ table }: {
1180
- table: any;
1181
- }): Promise<{
1182
- name: string;
1183
- type: string;
1184
- required: boolean;
1185
- attributes: {
1292
+ }) => Promise<({
1293
+ name: string;
1294
+ label: string;
1295
+ sublabel: string;
1296
+ type: string;
1297
+ required: boolean;
1298
+ input_type?: undefined;
1299
+ options?: undefined;
1300
+ } | {
1301
+ name: string;
1302
+ label: string;
1303
+ input_type: string;
1304
+ options: string[];
1305
+ sublabel?: undefined;
1306
+ type?: undefined;
1307
+ required?: undefined;
1308
+ })[] | ({
1309
+ name: string;
1310
+ label: string;
1311
+ sublabel: string;
1312
+ type: string;
1313
+ required: boolean;
1314
+ attributes: {
1315
+ options: string[];
1316
+ };
1317
+ input_type?: undefined;
1318
+ options?: undefined;
1319
+ } | {
1320
+ name: string;
1321
+ label: string;
1322
+ input_type: string;
1323
+ options: string[];
1324
+ sublabel?: undefined;
1325
+ type?: undefined;
1326
+ required?: undefined;
1327
+ attributes?: undefined;
1328
+ })[]>;
1329
+ requireRow: boolean;
1330
+ /**
1331
+ * @type {base-plugin/actions~run_code}
1332
+ * @see base-plugin/actions~run_code
1333
+ **/
1334
+ run: ({ table, configuration: { code_field, run_where }, row, mode, ...rest }: {
1335
+ table: Table;
1336
+ configuration: {
1337
+ code_field: string;
1338
+ run_where?: string;
1339
+ };
1340
+ row: Row;
1341
+ mode?: string;
1342
+ [key: string]: any;
1343
+ }) => Promise<any>;
1344
+ namespace: string;
1345
+ };
1346
+ duplicate_row_prefill_edit: {
1347
+ configFields: ({ table }: any) => Promise<({
1348
+ label: string;
1349
+ name: string;
1350
+ default: boolean;
1351
+ type: string;
1352
+ } | {
1353
+ name: string;
1354
+ label: string;
1355
+ input_type: string;
1356
+ options: string[];
1357
+ })[]>;
1358
+ disableInWorkflow: boolean;
1359
+ requireRow: boolean;
1360
+ run: ({ row, table, configuration: { viewname, ...flds }, user, }: {
1361
+ row: Row;
1362
+ table: Table;
1363
+ configuration: {
1364
+ viewname: string;
1365
+ [key: string]: any;
1366
+ };
1367
+ user?: User | AbstractUser;
1368
+ }) => Promise<{
1369
+ goto: string;
1370
+ }>;
1371
+ namespace: string;
1372
+ };
1373
+ /**
1374
+ * @namespace
1375
+ * @category saltcorn-data
1376
+ * @subcategory actions
1377
+ */
1378
+ set_user_language: {
1379
+ description: string;
1380
+ configFields: ({ table }: any) => Promise<{
1381
+ name: string;
1382
+ type: string;
1383
+ required: boolean;
1384
+ attributes: {
1385
+ options: {
1386
+ label: unknown;
1387
+ name: string;
1388
+ }[];
1389
+ };
1390
+ }[]>;
1391
+ run: ({ configuration: { language }, user, req, res, }: {
1392
+ configuration: {
1393
+ language: string;
1394
+ };
1395
+ user?: User | AbstractUser;
1396
+ req: Req;
1397
+ res?: Res;
1398
+ }) => Promise<{
1399
+ reload_page: boolean;
1400
+ }>;
1401
+ namespace: string;
1402
+ };
1403
+ /**
1404
+ * @namespace
1405
+ * @category saltcorn-data
1406
+ * @subcategory actions
1407
+ */
1408
+ sync_table_from_external: {
1409
+ /**
1410
+ * @param {object} opts
1411
+ * @param {*} opts.table
1412
+ * @returns {Promise<object[]>}
1413
+ */
1414
+ description: string;
1415
+ configFields: ({ table }: any) => Promise<({
1416
+ name: string;
1417
+ label: string;
1418
+ sublabel: string;
1419
+ input_type: string;
1420
+ options: string[];
1421
+ attributes?: undefined;
1422
+ type?: undefined;
1423
+ required?: undefined;
1424
+ default?: undefined;
1425
+ fieldview?: undefined;
1426
+ showIf?: undefined;
1427
+ } | {
1428
+ name: string;
1429
+ label: string;
1430
+ sublabel: string;
1431
+ input_type: string;
1432
+ attributes: {
1433
+ mode: string;
1434
+ singleline: boolean;
1435
+ expression_type: string;
1436
+ calcOptions?: undefined;
1437
+ };
1438
+ options?: undefined;
1439
+ type?: undefined;
1440
+ required?: undefined;
1441
+ default?: undefined;
1442
+ fieldview?: undefined;
1443
+ showIf?: undefined;
1444
+ } | {
1445
+ name: string;
1446
+ label: string;
1447
+ sublabel: string;
1448
+ type: string;
1449
+ required: boolean;
1450
+ attributes: {
1451
+ calcOptions: (string | Record<string, string[]>)[];
1452
+ mode?: undefined;
1453
+ singleline?: undefined;
1454
+ expression_type?: undefined;
1455
+ };
1456
+ input_type?: undefined;
1457
+ options?: undefined;
1458
+ default?: undefined;
1459
+ fieldview?: undefined;
1460
+ showIf?: undefined;
1461
+ } | {
1462
+ name: string;
1463
+ label: string;
1464
+ sublabel: string;
1465
+ type: string;
1466
+ default: boolean;
1467
+ input_type?: undefined;
1468
+ options?: undefined;
1469
+ attributes?: undefined;
1470
+ required?: undefined;
1471
+ fieldview?: undefined;
1472
+ showIf?: undefined;
1473
+ } | {
1474
+ name: string;
1475
+ label: string;
1476
+ sublabel: string;
1477
+ type: string;
1478
+ fieldview: string;
1479
+ showIf: {
1480
+ match_field_names: boolean;
1481
+ };
1482
+ input_type?: undefined;
1483
+ options?: undefined;
1484
+ attributes?: undefined;
1485
+ required?: undefined;
1486
+ default?: undefined;
1487
+ })[]>;
1488
+ /**
1489
+ * @param {object} opts
1490
+ * @param {object} opts.row
1491
+ * @param {object} opts.configuration
1492
+ * @param {object} opts.user
1493
+ * @param {...*} opts.rest
1494
+ * @returns {Promise<object|boolean>}
1495
+ */
1496
+ run: ({ configuration: { row_expr, table_src, table_dest, pk_field, delete_rows, match_field_names, where, }, user, ...rest }: {
1497
+ configuration: {
1498
+ row_expr?: string;
1499
+ table_src: string;
1500
+ table_dest: string;
1501
+ pk_field?: string;
1502
+ delete_rows?: boolean;
1503
+ match_field_names?: boolean;
1504
+ where?: string;
1505
+ };
1506
+ user?: User | AbstractUser;
1507
+ [key: string]: any;
1508
+ }) => Promise<{
1509
+ error: string;
1510
+ } | undefined>;
1511
+ namespace: string;
1512
+ };
1513
+ reload_embedded_view: {
1514
+ description: string;
1515
+ configFields: () => Promise<({
1516
+ name: string;
1517
+ label: string;
1518
+ class: string;
1519
+ type: string;
1520
+ required: boolean;
1521
+ attributes: {
1522
+ options: any[];
1523
+ };
1524
+ sublabel?: undefined;
1525
+ } | {
1526
+ name: string;
1527
+ label: string;
1528
+ type: string;
1529
+ class: string;
1530
+ required?: undefined;
1531
+ attributes?: undefined;
1532
+ sublabel?: undefined;
1533
+ } | {
1534
+ name: string;
1535
+ label: string;
1536
+ sublabel: string;
1537
+ type: string;
1538
+ class?: undefined;
1539
+ required?: undefined;
1540
+ attributes?: undefined;
1541
+ })[]>;
1542
+ run: ({ row, user, configuration: { view, new_state_fml, interval }, }: {
1543
+ row?: Row;
1544
+ user?: User | AbstractUser;
1545
+ configuration: {
1546
+ view: string;
1547
+ new_state_fml?: string;
1548
+ interval?: number;
1549
+ };
1550
+ }) => Promise<{
1551
+ eval_js: string;
1552
+ }>;
1553
+ namespace: string;
1554
+ };
1555
+ progress_bar: {
1556
+ description: string;
1557
+ configFields: ({
1558
+ name: string;
1559
+ label: string;
1560
+ sublabel: string;
1561
+ type: string;
1562
+ class?: undefined;
1563
+ required?: undefined;
1564
+ showIf?: undefined;
1565
+ } | {
1566
+ name: string;
1567
+ label: string;
1568
+ type: string;
1569
+ class: string;
1570
+ required: boolean;
1571
+ sublabel: string;
1572
+ showIf: {
1573
+ blocking: boolean;
1574
+ close?: undefined;
1575
+ };
1576
+ } | {
1577
+ name: string;
1578
+ label: string;
1579
+ type: string;
1580
+ sublabel: string;
1581
+ showIf: {
1582
+ blocking: boolean;
1583
+ close: boolean;
1584
+ };
1585
+ class?: undefined;
1586
+ required?: undefined;
1587
+ } | {
1588
+ name: string;
1589
+ label: string;
1590
+ type: string;
1591
+ showIf: {
1592
+ blocking: boolean;
1593
+ close: boolean;
1594
+ };
1595
+ sublabel?: undefined;
1596
+ class?: undefined;
1597
+ required?: undefined;
1598
+ } | {
1599
+ name: string;
1600
+ label: string;
1601
+ type: string;
1602
+ showIf: {
1603
+ close: boolean;
1604
+ blocking?: undefined;
1605
+ };
1606
+ sublabel?: undefined;
1607
+ class?: undefined;
1608
+ required?: undefined;
1609
+ } | {
1610
+ name: string;
1611
+ label: string;
1612
+ type: string;
1613
+ sublabel: string;
1614
+ showIf: {
1615
+ close: boolean;
1616
+ blocking?: undefined;
1617
+ };
1618
+ class?: undefined;
1619
+ required?: undefined;
1620
+ })[];
1621
+ run: ({ row, user, configuration: { blocking, id, close, title, message, percent, maxHeight, popupWidth, }, req, }: {
1622
+ row?: Row;
1623
+ user?: User | AbstractUser;
1624
+ configuration: {
1625
+ blocking?: boolean;
1626
+ id?: string;
1627
+ close?: boolean;
1628
+ title?: string;
1629
+ message?: string;
1630
+ percent?: string;
1631
+ maxHeight?: string;
1632
+ popupWidth?: string;
1633
+ };
1634
+ req?: Req;
1635
+ }) => Promise<{
1636
+ page_load_tag: any;
1637
+ progress_bar_update: {
1638
+ blocking: boolean | undefined;
1639
+ id: any;
1640
+ close: boolean | undefined;
1641
+ message: any;
1642
+ title: any;
1643
+ percent: number;
1644
+ maxHeight: string | undefined;
1645
+ popupWidth: string | undefined;
1646
+ };
1647
+ }>;
1648
+ namespace: string;
1649
+ };
1650
+ sleep: {
1651
+ description: string;
1652
+ configFields: ({
1653
+ name: string;
1654
+ label: string;
1655
+ type: string;
1656
+ required: boolean;
1657
+ input_type?: undefined;
1658
+ options?: undefined;
1659
+ } | {
1660
+ name: string;
1661
+ label: string;
1662
+ input_type: string;
1663
+ options: string[];
1664
+ type?: undefined;
1665
+ required?: undefined;
1666
+ })[];
1667
+ run: ({ configuration: { seconds, sleep_where }, }: {
1668
+ configuration: {
1669
+ seconds?: number;
1670
+ sleep_where?: string;
1671
+ };
1672
+ }) => Promise<{
1673
+ eval_js: string;
1674
+ } | undefined>;
1675
+ namespace: string;
1676
+ };
1677
+ refresh_user_session: {
1678
+ description: string;
1679
+ run: ({ user, req }: {
1680
+ user?: User;
1681
+ req: Req;
1682
+ }) => Promise<void>;
1683
+ namespace: string;
1684
+ };
1685
+ notify_user: {
1686
+ description: string;
1687
+ configFields: () => ({
1688
+ name: string;
1689
+ label: string;
1690
+ type: string;
1691
+ required?: undefined;
1692
+ } | {
1693
+ name: string;
1694
+ label: string;
1695
+ required: boolean;
1696
+ type: string;
1697
+ })[];
1698
+ /**
1699
+ * @param {object} opts
1700
+ * @param {object} opts.row
1701
+ * @param {object} opts.configuration
1702
+ * @param {object} opts.user
1703
+ * @returns {Promise<void>}
1704
+ */
1705
+ run: ({ row, user, configuration: { title, body, link, user_spec }, }: {
1706
+ row?: Row;
1707
+ user?: User | AbstractUser;
1708
+ configuration: {
1709
+ title: string;
1710
+ body?: string;
1711
+ link?: string;
1712
+ user_spec: string | number | GenObj;
1713
+ };
1714
+ }) => Promise<void>;
1715
+ namespace: string;
1716
+ };
1717
+ convert_session_to_user: {
1718
+ description: string;
1719
+ configFields: ({ table }: any) => Promise<({
1720
+ name: string;
1721
+ label: string;
1722
+ sublabel: string;
1723
+ input_type: string;
1724
+ options: string[];
1725
+ type?: undefined;
1726
+ attributes?: undefined;
1727
+ } | {
1728
+ name: string;
1729
+ label: string;
1730
+ sublabel: string;
1731
+ type: string;
1732
+ attributes: {
1733
+ calcOptions: (string | Record<string, string[]>)[];
1734
+ };
1735
+ input_type?: undefined;
1736
+ options?: undefined;
1737
+ })[]>;
1738
+ run: ({ row, configuration: { table_name, session_field, user_field }, user, }: {
1739
+ row?: Row & {
1740
+ old_session_id?: string;
1741
+ };
1742
+ configuration: {
1743
+ table_name: string;
1744
+ session_field: string;
1745
+ user_field: string;
1746
+ };
1747
+ user?: User | AbstractUser;
1748
+ }) => Promise<void>;
1749
+ namespace: string;
1750
+ };
1751
+ train_model_instance: {
1752
+ description: string;
1753
+ disableIf: () => boolean;
1754
+ configFields: () => Promise<({
1755
+ name: string;
1756
+ label: string;
1757
+ input_type: string;
1758
+ required: boolean;
1186
1759
  options: {
1187
1760
  label: string;
1188
- name: string;
1761
+ value: number | undefined;
1189
1762
  }[];
1190
- };
1191
- }[]>;
1192
- export { configFields_20 as configFields };
1193
- export function run_18({ configuration: { language }, user, req, res }: {
1194
- configuration: {
1195
- language: any;
1196
- };
1197
- user: any;
1198
- req: any;
1199
- res: any;
1200
- }): Promise<{
1201
- reload_page: boolean;
1202
- }>;
1203
- export { run_18 as run };
1204
- let namespace_19: string;
1205
- export { namespace_19 as namespace };
1206
- }
1207
- export namespace sync_table_from_external {
1208
- let description_20: string;
1209
- export { description_20 as description };
1210
- export function configFields_21({ table }: {
1211
- table: any;
1212
- }): Promise<({
1213
- name: string;
1214
- label: string;
1215
- sublabel: string;
1216
- input_type: string;
1217
- options: string[];
1218
- attributes?: undefined;
1219
- type?: undefined;
1220
- required?: undefined;
1221
- default?: undefined;
1222
- fieldview?: undefined;
1223
- showIf?: undefined;
1224
- } | {
1225
- name: string;
1226
- label: string;
1227
- sublabel: string;
1228
- input_type: string;
1229
- attributes: {
1230
- mode: string;
1231
- singleline: boolean;
1232
- expression_type: string;
1233
- calcOptions?: undefined;
1234
- };
1235
- options?: undefined;
1236
- type?: undefined;
1237
- required?: undefined;
1238
- default?: undefined;
1239
- fieldview?: undefined;
1240
- showIf?: undefined;
1241
- } | {
1242
- name: string;
1243
- label: string;
1244
- sublabel: string;
1245
- type: string;
1246
- required: boolean;
1247
- attributes: {
1248
- calcOptions: {}[];
1249
- mode?: undefined;
1250
- singleline?: undefined;
1251
- expression_type?: undefined;
1252
- };
1253
- input_type?: undefined;
1254
- options?: undefined;
1255
- default?: undefined;
1256
- fieldview?: undefined;
1257
- showIf?: undefined;
1258
- } | {
1259
- name: string;
1260
- label: string;
1261
- sublabel: string;
1262
- type: string;
1263
- default: boolean;
1264
- input_type?: undefined;
1265
- options?: undefined;
1266
- attributes?: undefined;
1267
- required?: undefined;
1268
- fieldview?: undefined;
1269
- showIf?: undefined;
1270
- } | {
1271
- name: string;
1272
- label: string;
1273
- sublabel: string;
1274
- type: string;
1275
- fieldview: string;
1276
- showIf: {
1277
- match_field_names: boolean;
1278
- };
1279
- input_type?: undefined;
1280
- options?: undefined;
1281
- attributes?: undefined;
1282
- required?: undefined;
1283
- default?: undefined;
1284
- })[]>;
1285
- export { configFields_21 as configFields };
1286
- export function run_19({ configuration: { row_expr, table_src, table_dest, pk_field, delete_rows, match_field_names, where, }, user, ...rest }: {
1287
- row: object;
1288
- configuration: object;
1289
- user: object;
1290
- rest: any[];
1291
- }): Promise<object | boolean>;
1292
- export { run_19 as run };
1293
- let namespace_20: string;
1294
- export { namespace_20 as namespace };
1295
- }
1296
- export namespace reload_embedded_view {
1297
- let description_21: string;
1298
- export { description_21 as description };
1299
- export function configFields_22(): Promise<({
1300
- name: string;
1301
- label: string;
1302
- class: string;
1303
- type: string;
1304
- required: boolean;
1305
- attributes: {
1306
- options: any[];
1307
- };
1308
- sublabel?: undefined;
1309
- } | {
1310
- name: string;
1311
- label: string;
1312
- type: string;
1313
- class: string;
1314
- required?: undefined;
1315
- attributes?: undefined;
1316
- sublabel?: undefined;
1317
- } | {
1318
- name: string;
1319
- label: string;
1320
- sublabel: string;
1321
- type: string;
1322
- class?: undefined;
1323
- required?: undefined;
1324
- attributes?: undefined;
1325
- })[]>;
1326
- export { configFields_22 as configFields };
1327
- export function run_20({ row, user, configuration: { view, new_state_fml, interval }, }: {
1328
- row: any;
1329
- user: any;
1330
- configuration: {
1331
- view: any;
1332
- new_state_fml: any;
1333
- interval: any;
1334
- };
1335
- }): Promise<{
1336
- eval_js: string;
1337
- }>;
1338
- export { run_20 as run };
1339
- let namespace_21: string;
1340
- export { namespace_21 as namespace };
1341
- }
1342
- export namespace progress_bar {
1343
- let description_22: string;
1344
- export { description_22 as description };
1345
- let configFields_23: ({
1346
- name: string;
1347
- label: string;
1348
- sublabel: string;
1349
- type: string;
1350
- class?: undefined;
1351
- required?: undefined;
1352
- showIf?: undefined;
1353
- } | {
1354
- name: string;
1355
- label: string;
1356
- type: string;
1357
- class: string;
1358
- required: boolean;
1359
- sublabel: string;
1360
- showIf: {
1361
- blocking: boolean;
1362
- close?: undefined;
1363
- };
1364
- } | {
1365
- name: string;
1366
- label: string;
1367
- type: string;
1368
- sublabel: string;
1369
- showIf: {
1370
- blocking: boolean;
1371
- close: boolean;
1372
- };
1373
- class?: undefined;
1374
- required?: undefined;
1375
- } | {
1376
- name: string;
1377
- label: string;
1378
- type: string;
1379
- showIf: {
1380
- blocking: boolean;
1381
- close: boolean;
1382
- };
1383
- sublabel?: undefined;
1384
- class?: undefined;
1385
- required?: undefined;
1386
- } | {
1387
- name: string;
1388
- label: string;
1389
- type: string;
1390
- showIf: {
1391
- close: boolean;
1392
- blocking?: undefined;
1393
- };
1394
- sublabel?: undefined;
1395
- class?: undefined;
1396
- required?: undefined;
1397
- } | {
1398
- name: string;
1399
- label: string;
1400
- type: string;
1401
- sublabel: string;
1402
- showIf: {
1403
- close: boolean;
1404
- blocking?: undefined;
1405
- };
1406
- class?: undefined;
1407
- required?: undefined;
1408
- })[];
1409
- export { configFields_23 as configFields };
1410
- export function run_21({ row, user, configuration: { blocking, id, close, title, message, percent, maxHeight, popupWidth, }, req, }: {
1411
- row: any;
1412
- user: any;
1413
- configuration: {
1414
- blocking: any;
1415
- id: any;
1416
- close: any;
1417
- title: any;
1418
- message: any;
1419
- percent: any;
1420
- maxHeight: any;
1421
- popupWidth: any;
1422
- };
1423
- req: any;
1424
- }): Promise<{
1425
- page_load_tag: any;
1426
- progress_bar_update: {
1427
- blocking: any;
1428
- id: string;
1429
- close: any;
1430
- message: string;
1431
- title: string;
1432
- percent: number;
1433
- maxHeight: any;
1434
- popupWidth: any;
1435
- };
1436
- }>;
1437
- export { run_21 as run };
1438
- let namespace_22: string;
1439
- export { namespace_22 as namespace };
1440
- }
1441
- export namespace sleep {
1442
- let description_23: string;
1443
- export { description_23 as description };
1444
- let configFields_24: ({
1445
- name: string;
1446
- label: string;
1447
- type: string;
1448
- required: boolean;
1449
- input_type?: undefined;
1450
- options?: undefined;
1451
- } | {
1452
- name: string;
1453
- label: string;
1454
- input_type: string;
1455
- options: string[];
1456
- type?: undefined;
1457
- required?: undefined;
1458
- })[];
1459
- export { configFields_24 as configFields };
1460
- export function run_22({ configuration: { seconds, sleep_where } }: {
1461
- configuration: {
1462
- seconds: any;
1463
- sleep_where: any;
1464
- };
1465
- }): Promise<{
1466
- eval_js: string;
1467
- } | undefined>;
1468
- export { run_22 as run };
1469
- let namespace_23: string;
1470
- export { namespace_23 as namespace };
1471
- }
1472
- export namespace refresh_user_session {
1473
- let description_24: string;
1474
- export { description_24 as description };
1475
- export function run_23({ user, req }: {
1476
- user: any;
1477
- req: any;
1478
- }): Promise<void>;
1479
- export { run_23 as run };
1480
- let namespace_24: string;
1481
- export { namespace_24 as namespace };
1482
- }
1483
- export namespace notify_user {
1484
- let description_25: string;
1485
- export { description_25 as description };
1486
- export function configFields_25(): ({
1487
- name: string;
1488
- label: string;
1489
- type: string;
1490
- required?: undefined;
1491
- } | {
1492
- name: string;
1493
- label: string;
1494
- required: boolean;
1495
- type: string;
1496
- })[];
1497
- export { configFields_25 as configFields };
1498
- export function run_24({ row, user, configuration: { title, body, link, user_spec }, }: {
1499
- row: object;
1500
- configuration: object;
1501
- user: object;
1502
- }): Promise<void>;
1503
- export { run_24 as run };
1504
- let namespace_25: string;
1505
- export { namespace_25 as namespace };
1506
- }
1507
- export namespace convert_session_to_user {
1508
- let description_26: string;
1509
- export { description_26 as description };
1510
- export function configFields_26({ table }: {
1511
- table: any;
1512
- }): Promise<({
1513
- name: string;
1514
- label: string;
1515
- sublabel: string;
1516
- input_type: string;
1517
- options: string[];
1518
- type?: undefined;
1519
- attributes?: undefined;
1520
- } | {
1521
- name: string;
1522
- label: string;
1523
- sublabel: string;
1524
- type: string;
1525
- attributes: {
1526
- calcOptions: {}[];
1527
- };
1528
- input_type?: undefined;
1529
- options?: undefined;
1530
- })[]>;
1531
- export { configFields_26 as configFields };
1532
- export function run_25({ row, configuration: { table_name, session_field, user_field }, user, }: {
1533
- row: any;
1534
- configuration: {
1535
- table_name: any;
1536
- session_field: any;
1537
- user_field: any;
1538
- };
1539
- user: any;
1540
- }): Promise<void>;
1541
- export { run_25 as run };
1542
- let namespace_26: string;
1543
- export { namespace_26 as namespace };
1544
- }
1545
- export namespace train_model_instance {
1546
- let description_27: string;
1547
- export { description_27 as description };
1548
- export function disableIf(): boolean;
1549
- export function configFields_27(): Promise<({
1550
- name: string;
1551
- label: string;
1552
- input_type: string;
1553
- required: boolean;
1554
- options: {
1555
- label: string;
1556
- value: number | undefined;
1557
- }[];
1558
- attributes: {
1559
- explainers: {};
1560
- mode?: undefined;
1561
- singleline?: undefined;
1562
- expression_type?: undefined;
1563
- };
1564
- type?: undefined;
1565
- sublabel?: undefined;
1566
- fieldview?: undefined;
1567
- class?: undefined;
1568
- } | {
1569
- name: string;
1570
- label: string;
1571
- required: boolean;
1572
- type: string;
1573
- sublabel: string;
1574
- input_type?: undefined;
1575
- options?: undefined;
1576
- attributes?: undefined;
1577
- fieldview?: undefined;
1578
- class?: undefined;
1579
- } | {
1580
- name: string;
1581
- label: string;
1582
- fieldview: string;
1583
- sublabel: string;
1584
- input_type: string;
1585
- attributes: {
1763
+ attributes: {
1764
+ explainers: Record<string, string>;
1765
+ mode?: undefined;
1766
+ singleline?: undefined;
1767
+ expression_type?: undefined;
1768
+ };
1769
+ type?: undefined;
1770
+ sublabel?: undefined;
1771
+ fieldview?: undefined;
1772
+ class?: undefined;
1773
+ } | {
1774
+ name: string;
1775
+ label: string;
1776
+ required: boolean;
1777
+ type: string;
1778
+ sublabel: string;
1779
+ input_type?: undefined;
1780
+ options?: undefined;
1781
+ attributes?: undefined;
1782
+ fieldview?: undefined;
1783
+ class?: undefined;
1784
+ } | {
1785
+ name: string;
1786
+ label: string;
1787
+ fieldview: string;
1788
+ sublabel: string;
1789
+ input_type: string;
1790
+ attributes: {
1791
+ mode: string;
1792
+ singleline: boolean;
1793
+ expression_type: string;
1794
+ explainers?: undefined;
1795
+ };
1796
+ required?: undefined;
1797
+ options?: undefined;
1798
+ type?: undefined;
1799
+ class?: undefined;
1800
+ } | {
1801
+ name: string;
1802
+ label: string;
1803
+ sublabel: string;
1804
+ type: string;
1805
+ fieldview: string;
1806
+ class: string;
1807
+ input_type?: undefined;
1808
+ required?: undefined;
1809
+ options?: undefined;
1810
+ attributes?: undefined;
1811
+ })[]>;
1812
+ run: ({ row, configuration: { model_id, instance_name, where, hyperparameters }, user, }: {
1813
+ row?: Row;
1814
+ configuration: {
1815
+ model_id: number;
1816
+ instance_name: string;
1817
+ where?: string;
1818
+ hyperparameters?: string;
1819
+ };
1820
+ user?: User | AbstractUser;
1821
+ }) => Promise<void>;
1822
+ namespace: string;
1823
+ };
1824
+ download_file_to_browser: {
1825
+ description: string;
1826
+ configFields: ({ table, mode }: {
1827
+ table: Table;
1586
1828
  mode: string;
1587
- singleline: boolean;
1588
- expression_type: string;
1589
- explainers?: undefined;
1590
- };
1591
- required?: undefined;
1592
- options?: undefined;
1593
- type?: undefined;
1594
- class?: undefined;
1595
- } | {
1596
- name: string;
1597
- label: string;
1598
- sublabel: string;
1599
- type: string;
1600
- fieldview: string;
1601
- class: string;
1602
- input_type?: undefined;
1603
- required?: undefined;
1604
- options?: undefined;
1605
- attributes?: undefined;
1606
- })[]>;
1607
- export { configFields_27 as configFields };
1608
- export function run_26({ row, configuration: { model_id, instance_name, where, hyperparameters }, user, }: {
1609
- row: any;
1610
- configuration: {
1611
- model_id: any;
1612
- instance_name: any;
1613
- where: any;
1614
- hyperparameters: any;
1615
- };
1616
- user: any;
1617
- }): Promise<void>;
1618
- export { run_26 as run };
1619
- let namespace_27: string;
1620
- export { namespace_27 as namespace };
1621
- }
1622
- export namespace download_file_to_browser {
1623
- let description_28: string;
1624
- export { description_28 as description };
1625
- export function configFields_28({ table, mode }: {
1626
- table: any;
1627
- mode: any;
1628
- }): Promise<{
1629
- name: string;
1630
- label: string;
1631
- class: string;
1632
- sublabel: string;
1633
- type: string;
1634
- }[] | {
1635
- name: string;
1636
- label: string;
1637
- type: string;
1638
- required: boolean;
1639
- attributes: {
1640
- options: any;
1641
- };
1642
- }[]>;
1643
- export { configFields_28 as configFields };
1644
- export function run_27({ row, configuration: { filepath_expr, file_field }, user, mode, }: {
1645
- row: any;
1646
- configuration: {
1647
- filepath_expr: any;
1648
- file_field: any;
1649
- };
1650
- user: any;
1651
- mode: any;
1652
- }): Promise<{
1653
- download: {
1654
- filename: string;
1655
- mimetype: string;
1656
- blob: Buffer<ArrayBufferLike>;
1657
- };
1658
- } | undefined>;
1659
- export { run_27 as run };
1660
- }
1661
- export namespace install_progressive_web_app {
1662
- let description_29: string;
1663
- export { description_29 as description };
1664
- export function configFields_29(): never[];
1665
- export { configFields_29 as configFields };
1666
- export function run_28({ req }: {
1667
- req: any;
1668
- }): Promise<{
1669
- eval_js: string;
1670
- error?: undefined;
1671
- } | {
1672
- error: any;
1673
- eval_js?: undefined;
1674
- }>;
1675
- export { run_28 as run };
1676
- }
1677
- export {};
1829
+ }) => Promise<{
1830
+ name: string;
1831
+ label: string;
1832
+ class: string;
1833
+ sublabel: string;
1834
+ type: string;
1835
+ }[] | {
1836
+ name: string;
1837
+ label: string;
1838
+ type: string;
1839
+ required: boolean;
1840
+ attributes: {
1841
+ options: string[];
1842
+ };
1843
+ }[]>;
1844
+ run: ({ row, configuration: { filepath_expr, file_field }, user, mode, }: {
1845
+ row?: Row;
1846
+ configuration: {
1847
+ filepath_expr?: string;
1848
+ file_field?: string;
1849
+ };
1850
+ user?: User | AbstractUser;
1851
+ mode?: string;
1852
+ }) => Promise<{
1853
+ download: {
1854
+ filename: string;
1855
+ mimetype: string;
1856
+ blob: string | Buffer<ArrayBufferLike>;
1857
+ };
1858
+ } | undefined>;
1859
+ };
1860
+ install_progressive_web_app: {
1861
+ description: string;
1862
+ configFields: () => never[];
1863
+ run: ({ req }: {
1864
+ req: Req;
1865
+ }) => Promise<{
1866
+ eval_js: string;
1867
+ error?: undefined;
1868
+ } | {
1869
+ error: string;
1870
+ eval_js?: undefined;
1871
+ }>;
1872
+ };
1873
+ };
1874
+ export = _default;
1678
1875
  //# sourceMappingURL=actions.d.ts.map