@saltcorn/data 1.6.0-alpha.7 → 1.6.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-plugin/actions.d.ts +1850 -1656
- package/dist/base-plugin/actions.d.ts.map +1 -1
- package/dist/base-plugin/actions.js +122 -104
- package/dist/base-plugin/actions.js.map +1 -1
- package/dist/base-plugin/fieldviews.d.ts +284 -114
- package/dist/base-plugin/fieldviews.d.ts.map +1 -1
- package/dist/base-plugin/fieldviews.js +23 -69
- package/dist/base-plugin/fieldviews.js.map +1 -1
- package/dist/base-plugin/fileviews.d.ts +15 -14
- package/dist/base-plugin/fileviews.d.ts.map +1 -1
- package/dist/base-plugin/fileviews.js +22 -18
- package/dist/base-plugin/fileviews.js.map +1 -1
- package/dist/base-plugin/index.d.ts +3369 -1293
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/base-plugin/index.js +39 -25
- package/dist/base-plugin/index.js.map +1 -1
- package/dist/base-plugin/types.d.ts +1438 -1029
- package/dist/base-plugin/types.d.ts.map +1 -1
- package/dist/base-plugin/types.js +3 -2
- package/dist/base-plugin/types.js.map +1 -1
- package/dist/base-plugin/viewtemplates/edit.d.ts +133 -257
- package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/edit.js +292 -349
- package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
- package/dist/base-plugin/viewtemplates/feed.d.ts +30 -81
- package/dist/base-plugin/viewtemplates/feed.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/feed.js +37 -30
- package/dist/base-plugin/viewtemplates/feed.js.map +1 -1
- package/dist/base-plugin/viewtemplates/filter.d.ts +42 -64
- package/dist/base-plugin/viewtemplates/filter.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/filter.js +86 -82
- package/dist/base-plugin/viewtemplates/filter.js.map +1 -1
- package/dist/base-plugin/viewtemplates/list.d.ts +40 -115
- package/dist/base-plugin/viewtemplates/list.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/list.js +143 -162
- package/dist/base-plugin/viewtemplates/list.js.map +1 -1
- package/dist/base-plugin/viewtemplates/listshowlist.d.ts +65 -49
- package/dist/base-plugin/viewtemplates/listshowlist.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/listshowlist.js +33 -58
- package/dist/base-plugin/viewtemplates/listshowlist.js.map +1 -1
- package/dist/base-plugin/viewtemplates/room.d.ts +102 -109
- package/dist/base-plugin/viewtemplates/room.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/room.js +53 -50
- package/dist/base-plugin/viewtemplates/room.js.map +1 -1
- package/dist/base-plugin/viewtemplates/show.d.ts +72 -133
- package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/show.js +72 -182
- package/dist/base-plugin/viewtemplates/show.js.map +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.d.ts +2 -2
- package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.js +2 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
- package/dist/base-plugin/viewtemplates/workflow-room.d.ts +37 -61
- package/dist/base-plugin/viewtemplates/workflow-room.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/workflow-room.js +42 -65
- package/dist/base-plugin/viewtemplates/workflow-room.js.map +1 -1
- package/dist/contracts.d.ts +4 -48
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +18 -2
- package/dist/contracts.js.map +1 -1
- package/dist/db/connect.d.ts.map +1 -1
- package/dist/db/connect.js +1 -0
- package/dist/db/connect.js.map +1 -1
- package/dist/db/state.d.ts +31 -28
- package/dist/db/state.d.ts.map +1 -1
- package/dist/db/state.js +5 -2
- package/dist/db/state.js.map +1 -1
- package/dist/model-helper.d.ts +4 -16
- package/dist/model-helper.d.ts.map +1 -1
- package/dist/model-helper.js +3 -3
- package/dist/model-helper.js.map +1 -1
- package/dist/models/config.d.ts +5 -0
- package/dist/models/config.d.ts.map +1 -1
- package/dist/models/config.js +5 -0
- package/dist/models/config.js.map +1 -1
- package/dist/models/field.d.ts +1 -1
- package/dist/models/field.d.ts.map +1 -1
- package/dist/models/field.js +3 -2
- package/dist/models/field.js.map +1 -1
- package/dist/models/file.d.ts +1 -1
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/file.js.map +1 -1
- package/dist/models/form.js +1 -1
- package/dist/models/form.js.map +1 -1
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/layout.d.ts +1 -1
- package/dist/models/layout.d.ts.map +1 -1
- package/dist/models/layout.js +12 -0
- package/dist/models/layout.js.map +1 -1
- package/dist/models/plugin.d.ts +3 -2
- package/dist/models/plugin.d.ts.map +1 -1
- package/dist/models/plugin.js +7 -0
- package/dist/models/plugin.js.map +1 -1
- package/dist/models/table.d.ts.map +1 -1
- package/dist/models/table.js +6 -1
- package/dist/models/table.js.map +1 -1
- package/dist/plugin-testing.d.ts +3 -63
- package/dist/plugin-testing.d.ts.map +1 -1
- package/dist/plugin-testing.js +34 -15
- package/dist/plugin-testing.js.map +1 -1
- package/dist/standard-menu.d.ts.map +1 -1
- package/dist/standard-menu.js +15 -0
- package/dist/standard-menu.js.map +1 -1
- package/dist/tests/actions.test.d.ts +2 -0
- package/dist/tests/actions.test.d.ts.map +1 -0
- package/dist/tests/actions.test.js +936 -0
- package/dist/tests/actions.test.js.map +1 -0
- package/dist/tests/auth.test.d.ts +2 -0
- package/dist/tests/auth.test.d.ts.map +1 -0
- package/dist/tests/auth.test.js +824 -0
- package/dist/tests/auth.test.js.map +1 -0
- package/dist/tests/auxtest.test.d.ts +2 -0
- package/dist/tests/auxtest.test.d.ts.map +1 -0
- package/dist/tests/auxtest.test.js +562 -0
- package/dist/tests/auxtest.test.js.map +1 -0
- package/dist/tests/base.test.d.ts +2 -0
- package/dist/tests/base.test.d.ts.map +1 -0
- package/dist/tests/base.test.js +30 -0
- package/dist/tests/base.test.js.map +1 -0
- package/dist/tests/calc.test.d.ts +2 -0
- package/dist/tests/calc.test.d.ts.map +1 -0
- package/dist/tests/calc.test.js +1081 -0
- package/dist/tests/calc.test.js.map +1 -0
- package/dist/tests/composite_pk.test.d.ts +2 -0
- package/dist/tests/composite_pk.test.d.ts.map +1 -0
- package/dist/tests/composite_pk.test.js +98 -0
- package/dist/tests/composite_pk.test.js.map +1 -0
- package/dist/tests/config.test.d.ts +2 -0
- package/dist/tests/config.test.d.ts.map +1 -0
- package/dist/tests/config.test.js +86 -0
- package/dist/tests/config.test.js.map +1 -0
- package/dist/tests/db.test.d.ts +2 -0
- package/dist/tests/db.test.d.ts.map +1 -0
- package/dist/tests/db.test.js +178 -0
- package/dist/tests/db.test.js.map +1 -0
- package/dist/tests/discover.test.d.ts +2 -0
- package/dist/tests/discover.test.d.ts.map +1 -0
- package/dist/tests/discover.test.js +245 -0
- package/dist/tests/discover.test.js.map +1 -0
- package/dist/tests/edit.test.d.ts +2 -0
- package/dist/tests/edit.test.d.ts.map +1 -0
- package/dist/tests/edit.test.js +1161 -0
- package/dist/tests/edit.test.js.map +1 -0
- package/dist/tests/email.test.d.ts +2 -0
- package/dist/tests/email.test.d.ts.map +1 -0
- package/dist/tests/email.test.js +255 -0
- package/dist/tests/email.test.js.map +1 -0
- package/dist/tests/exact_views.test.d.ts +2 -0
- package/dist/tests/exact_views.test.d.ts.map +1 -0
- package/dist/tests/exact_views.test.js +1363 -0
- package/dist/tests/exact_views.test.js.map +1 -0
- package/dist/tests/field.test.d.ts +2 -0
- package/dist/tests/field.test.d.ts.map +1 -0
- package/dist/tests/field.test.js +588 -0
- package/dist/tests/field.test.js.map +1 -0
- package/dist/tests/fieldviews.test.d.ts +2 -0
- package/dist/tests/fieldviews.test.d.ts.map +1 -0
- package/dist/tests/fieldviews.test.js +74 -0
- package/dist/tests/fieldviews.test.js.map +1 -0
- package/dist/tests/file.test.d.ts +2 -0
- package/dist/tests/file.test.d.ts.map +1 -0
- package/dist/tests/file.test.js +148 -0
- package/dist/tests/file.test.js.map +1 -0
- package/dist/tests/filter.test.d.ts +2 -0
- package/dist/tests/filter.test.d.ts.map +1 -0
- package/dist/tests/filter.test.js +496 -0
- package/dist/tests/filter.test.js.map +1 -0
- package/dist/tests/form.test.d.ts +2 -0
- package/dist/tests/form.test.d.ts.map +1 -0
- package/dist/tests/form.test.js +264 -0
- package/dist/tests/form.test.js.map +1 -0
- package/dist/tests/list.test.d.ts +2 -0
- package/dist/tests/list.test.d.ts.map +1 -0
- package/dist/tests/list.test.js +1037 -0
- package/dist/tests/list.test.js.map +1 -0
- package/dist/tests/models.test.d.ts +2 -0
- package/dist/tests/models.test.d.ts.map +1 -0
- package/dist/tests/models.test.js +417 -0
- package/dist/tests/models.test.js.map +1 -0
- package/dist/tests/page.test.d.ts +2 -0
- package/dist/tests/page.test.d.ts.map +1 -0
- package/dist/tests/page.test.js +26 -0
- package/dist/tests/page.test.js.map +1 -0
- package/dist/tests/page_group.test.d.ts +2 -0
- package/dist/tests/page_group.test.d.ts.map +1 -0
- package/dist/tests/page_group.test.js +51 -0
- package/dist/tests/page_group.test.js.map +1 -0
- package/dist/tests/plugin.test.d.ts +2 -0
- package/dist/tests/plugin.test.d.ts.map +1 -0
- package/dist/tests/plugin.test.js +60 -0
- package/dist/tests/plugin.test.js.map +1 -0
- package/dist/tests/show.test.d.ts +2 -0
- package/dist/tests/show.test.d.ts.map +1 -0
- package/dist/tests/show.test.js +561 -0
- package/dist/tests/show.test.js.map +1 -0
- package/dist/tests/state.test.d.ts +2 -0
- package/dist/tests/state.test.d.ts.map +1 -0
- package/dist/tests/state.test.js +82 -0
- package/dist/tests/state.test.js.map +1 -0
- package/dist/tests/table.test.d.ts +2 -0
- package/dist/tests/table.test.d.ts.map +1 -0
- package/dist/tests/table.test.js +2717 -0
- package/dist/tests/table.test.js.map +1 -0
- package/dist/tests/table_history.test.d.ts +2 -0
- package/dist/tests/table_history.test.d.ts.map +1 -0
- package/dist/tests/table_history.test.js +413 -0
- package/dist/tests/table_history.test.js.map +1 -0
- package/dist/tests/tag.test.d.ts +2 -0
- package/dist/tests/tag.test.d.ts.map +1 -0
- package/dist/tests/tag.test.js +97 -0
- package/dist/tests/tag.test.js.map +1 -0
- package/dist/tests/user.test.d.ts +2 -0
- package/dist/tests/user.test.d.ts.map +1 -0
- package/dist/tests/user.test.js +441 -0
- package/dist/tests/user.test.js.map +1 -0
- package/dist/tests/view.test.d.ts +2 -0
- package/dist/tests/view.test.d.ts.map +1 -0
- package/dist/tests/view.test.js +699 -0
- package/dist/tests/view.test.js.map +1 -0
- package/dist/tests/workflow.test.d.ts +2 -0
- package/dist/tests/workflow.test.d.ts.map +1 -0
- package/dist/tests/workflow.test.js +303 -0
- package/dist/tests/workflow.test.js.map +1 -0
- package/dist/tests/workflow_run.test.d.ts +2 -0
- package/dist/tests/workflow_run.test.d.ts.map +1 -0
- package/dist/tests/workflow_run.test.js +922 -0
- package/dist/tests/workflow_run.test.js.map +1 -0
- package/dist/viewable_fields.d.ts +5 -4
- package/dist/viewable_fields.d.ts.map +1 -1
- package/dist/viewable_fields.js +12 -6
- package/dist/viewable_fields.js.map +1 -1
- package/dist/web-mobile-commons.d.ts.map +1 -1
- package/dist/web-mobile-commons.js +1 -0
- package/dist/web-mobile-commons.js.map +1 -1
- package/package.json +8 -8
|
@@ -1,1681 +1,1875 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @
|
|
4
|
-
* @
|
|
5
|
-
* @
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
options
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
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
|
-
|
|
618
|
-
|
|
619
|
-
|
|
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
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
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
|
-
|
|
394
|
+
body_type: string;
|
|
395
|
+
to_email?: undefined;
|
|
635
396
|
};
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
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
|
-
|
|
651
|
-
|
|
652
|
-
|
|
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
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
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
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
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
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
configuration: {
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
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
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
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
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
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 function configuration_summary(cfg?: {}): string;
|
|
1040
|
-
export namespace configFormOptions {
|
|
1041
|
-
let formStyle: string;
|
|
1042
|
-
}
|
|
1043
|
-
export function configFields_17({ table, when_trigger, mode }: {
|
|
1044
|
-
table: any;
|
|
1045
|
-
when_trigger: any;
|
|
1046
|
-
mode: any;
|
|
1047
|
-
}): Promise<({
|
|
1048
|
-
name: string;
|
|
1049
|
-
label: string;
|
|
1050
|
-
input_type: string;
|
|
1051
|
-
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;
|
|
1052
1291
|
mode: string;
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
table: any
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
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;
|
|
1189
1759
|
options: {
|
|
1190
1760
|
label: string;
|
|
1191
|
-
|
|
1761
|
+
value: number | undefined;
|
|
1192
1762
|
}[];
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
default?: undefined;
|
|
1259
|
-
fieldview?: undefined;
|
|
1260
|
-
showIf?: undefined;
|
|
1261
|
-
} | {
|
|
1262
|
-
name: string;
|
|
1263
|
-
label: string;
|
|
1264
|
-
sublabel: string;
|
|
1265
|
-
type: string;
|
|
1266
|
-
default: boolean;
|
|
1267
|
-
input_type?: undefined;
|
|
1268
|
-
options?: undefined;
|
|
1269
|
-
attributes?: undefined;
|
|
1270
|
-
required?: undefined;
|
|
1271
|
-
fieldview?: undefined;
|
|
1272
|
-
showIf?: undefined;
|
|
1273
|
-
} | {
|
|
1274
|
-
name: string;
|
|
1275
|
-
label: string;
|
|
1276
|
-
sublabel: string;
|
|
1277
|
-
type: string;
|
|
1278
|
-
fieldview: string;
|
|
1279
|
-
showIf: {
|
|
1280
|
-
match_field_names: boolean;
|
|
1281
|
-
};
|
|
1282
|
-
input_type?: undefined;
|
|
1283
|
-
options?: undefined;
|
|
1284
|
-
attributes?: undefined;
|
|
1285
|
-
required?: undefined;
|
|
1286
|
-
default?: undefined;
|
|
1287
|
-
})[]>;
|
|
1288
|
-
export { configFields_21 as configFields };
|
|
1289
|
-
export function run_19({ configuration: { row_expr, table_src, table_dest, pk_field, delete_rows, match_field_names, where, }, user, ...rest }: {
|
|
1290
|
-
row: object;
|
|
1291
|
-
configuration: object;
|
|
1292
|
-
user: object;
|
|
1293
|
-
rest: any[];
|
|
1294
|
-
}): Promise<object | boolean>;
|
|
1295
|
-
export { run_19 as run };
|
|
1296
|
-
let namespace_20: string;
|
|
1297
|
-
export { namespace_20 as namespace };
|
|
1298
|
-
}
|
|
1299
|
-
export namespace reload_embedded_view {
|
|
1300
|
-
let description_21: string;
|
|
1301
|
-
export { description_21 as description };
|
|
1302
|
-
export function configFields_22(): Promise<({
|
|
1303
|
-
name: string;
|
|
1304
|
-
label: string;
|
|
1305
|
-
class: string;
|
|
1306
|
-
type: string;
|
|
1307
|
-
required: boolean;
|
|
1308
|
-
attributes: {
|
|
1309
|
-
options: any[];
|
|
1310
|
-
};
|
|
1311
|
-
sublabel?: undefined;
|
|
1312
|
-
} | {
|
|
1313
|
-
name: string;
|
|
1314
|
-
label: string;
|
|
1315
|
-
type: string;
|
|
1316
|
-
class: string;
|
|
1317
|
-
required?: undefined;
|
|
1318
|
-
attributes?: undefined;
|
|
1319
|
-
sublabel?: undefined;
|
|
1320
|
-
} | {
|
|
1321
|
-
name: string;
|
|
1322
|
-
label: string;
|
|
1323
|
-
sublabel: string;
|
|
1324
|
-
type: string;
|
|
1325
|
-
class?: undefined;
|
|
1326
|
-
required?: undefined;
|
|
1327
|
-
attributes?: undefined;
|
|
1328
|
-
})[]>;
|
|
1329
|
-
export { configFields_22 as configFields };
|
|
1330
|
-
export function run_20({ row, user, configuration: { view, new_state_fml, interval }, }: {
|
|
1331
|
-
row: any;
|
|
1332
|
-
user: any;
|
|
1333
|
-
configuration: {
|
|
1334
|
-
view: any;
|
|
1335
|
-
new_state_fml: any;
|
|
1336
|
-
interval: any;
|
|
1337
|
-
};
|
|
1338
|
-
}): Promise<{
|
|
1339
|
-
eval_js: string;
|
|
1340
|
-
}>;
|
|
1341
|
-
export { run_20 as run };
|
|
1342
|
-
let namespace_21: string;
|
|
1343
|
-
export { namespace_21 as namespace };
|
|
1344
|
-
}
|
|
1345
|
-
export namespace progress_bar {
|
|
1346
|
-
let description_22: string;
|
|
1347
|
-
export { description_22 as description };
|
|
1348
|
-
let configFields_23: ({
|
|
1349
|
-
name: string;
|
|
1350
|
-
label: string;
|
|
1351
|
-
sublabel: string;
|
|
1352
|
-
type: string;
|
|
1353
|
-
class?: undefined;
|
|
1354
|
-
required?: undefined;
|
|
1355
|
-
showIf?: undefined;
|
|
1356
|
-
} | {
|
|
1357
|
-
name: string;
|
|
1358
|
-
label: string;
|
|
1359
|
-
type: string;
|
|
1360
|
-
class: string;
|
|
1361
|
-
required: boolean;
|
|
1362
|
-
sublabel: string;
|
|
1363
|
-
showIf: {
|
|
1364
|
-
blocking: boolean;
|
|
1365
|
-
close?: undefined;
|
|
1366
|
-
};
|
|
1367
|
-
} | {
|
|
1368
|
-
name: string;
|
|
1369
|
-
label: string;
|
|
1370
|
-
type: string;
|
|
1371
|
-
sublabel: string;
|
|
1372
|
-
showIf: {
|
|
1373
|
-
blocking: boolean;
|
|
1374
|
-
close: boolean;
|
|
1375
|
-
};
|
|
1376
|
-
class?: undefined;
|
|
1377
|
-
required?: undefined;
|
|
1378
|
-
} | {
|
|
1379
|
-
name: string;
|
|
1380
|
-
label: string;
|
|
1381
|
-
type: string;
|
|
1382
|
-
showIf: {
|
|
1383
|
-
blocking: boolean;
|
|
1384
|
-
close: boolean;
|
|
1385
|
-
};
|
|
1386
|
-
sublabel?: undefined;
|
|
1387
|
-
class?: undefined;
|
|
1388
|
-
required?: undefined;
|
|
1389
|
-
} | {
|
|
1390
|
-
name: string;
|
|
1391
|
-
label: string;
|
|
1392
|
-
type: string;
|
|
1393
|
-
showIf: {
|
|
1394
|
-
close: boolean;
|
|
1395
|
-
blocking?: undefined;
|
|
1396
|
-
};
|
|
1397
|
-
sublabel?: undefined;
|
|
1398
|
-
class?: undefined;
|
|
1399
|
-
required?: undefined;
|
|
1400
|
-
} | {
|
|
1401
|
-
name: string;
|
|
1402
|
-
label: string;
|
|
1403
|
-
type: string;
|
|
1404
|
-
sublabel: string;
|
|
1405
|
-
showIf: {
|
|
1406
|
-
close: boolean;
|
|
1407
|
-
blocking?: undefined;
|
|
1408
|
-
};
|
|
1409
|
-
class?: undefined;
|
|
1410
|
-
required?: undefined;
|
|
1411
|
-
})[];
|
|
1412
|
-
export { configFields_23 as configFields };
|
|
1413
|
-
export function run_21({ row, user, configuration: { blocking, id, close, title, message, percent, maxHeight, popupWidth, }, req, }: {
|
|
1414
|
-
row: any;
|
|
1415
|
-
user: any;
|
|
1416
|
-
configuration: {
|
|
1417
|
-
blocking: any;
|
|
1418
|
-
id: any;
|
|
1419
|
-
close: any;
|
|
1420
|
-
title: any;
|
|
1421
|
-
message: any;
|
|
1422
|
-
percent: any;
|
|
1423
|
-
maxHeight: any;
|
|
1424
|
-
popupWidth: any;
|
|
1425
|
-
};
|
|
1426
|
-
req: any;
|
|
1427
|
-
}): Promise<{
|
|
1428
|
-
page_load_tag: any;
|
|
1429
|
-
progress_bar_update: {
|
|
1430
|
-
blocking: any;
|
|
1431
|
-
id: string;
|
|
1432
|
-
close: any;
|
|
1433
|
-
message: string;
|
|
1434
|
-
title: string;
|
|
1435
|
-
percent: number;
|
|
1436
|
-
maxHeight: any;
|
|
1437
|
-
popupWidth: any;
|
|
1438
|
-
};
|
|
1439
|
-
}>;
|
|
1440
|
-
export { run_21 as run };
|
|
1441
|
-
let namespace_22: string;
|
|
1442
|
-
export { namespace_22 as namespace };
|
|
1443
|
-
}
|
|
1444
|
-
export namespace sleep {
|
|
1445
|
-
let description_23: string;
|
|
1446
|
-
export { description_23 as description };
|
|
1447
|
-
let configFields_24: ({
|
|
1448
|
-
name: string;
|
|
1449
|
-
label: string;
|
|
1450
|
-
type: string;
|
|
1451
|
-
required: boolean;
|
|
1452
|
-
input_type?: undefined;
|
|
1453
|
-
options?: undefined;
|
|
1454
|
-
} | {
|
|
1455
|
-
name: string;
|
|
1456
|
-
label: string;
|
|
1457
|
-
input_type: string;
|
|
1458
|
-
options: string[];
|
|
1459
|
-
type?: undefined;
|
|
1460
|
-
required?: undefined;
|
|
1461
|
-
})[];
|
|
1462
|
-
export { configFields_24 as configFields };
|
|
1463
|
-
export function run_22({ configuration: { seconds, sleep_where } }: {
|
|
1464
|
-
configuration: {
|
|
1465
|
-
seconds: any;
|
|
1466
|
-
sleep_where: any;
|
|
1467
|
-
};
|
|
1468
|
-
}): Promise<{
|
|
1469
|
-
eval_js: string;
|
|
1470
|
-
} | undefined>;
|
|
1471
|
-
export { run_22 as run };
|
|
1472
|
-
let namespace_23: string;
|
|
1473
|
-
export { namespace_23 as namespace };
|
|
1474
|
-
}
|
|
1475
|
-
export namespace refresh_user_session {
|
|
1476
|
-
let description_24: string;
|
|
1477
|
-
export { description_24 as description };
|
|
1478
|
-
export function run_23({ user, req }: {
|
|
1479
|
-
user: any;
|
|
1480
|
-
req: any;
|
|
1481
|
-
}): Promise<void>;
|
|
1482
|
-
export { run_23 as run };
|
|
1483
|
-
let namespace_24: string;
|
|
1484
|
-
export { namespace_24 as namespace };
|
|
1485
|
-
}
|
|
1486
|
-
export namespace notify_user {
|
|
1487
|
-
let description_25: string;
|
|
1488
|
-
export { description_25 as description };
|
|
1489
|
-
export function configFields_25(): ({
|
|
1490
|
-
name: string;
|
|
1491
|
-
label: string;
|
|
1492
|
-
type: string;
|
|
1493
|
-
required?: undefined;
|
|
1494
|
-
} | {
|
|
1495
|
-
name: string;
|
|
1496
|
-
label: string;
|
|
1497
|
-
required: boolean;
|
|
1498
|
-
type: string;
|
|
1499
|
-
})[];
|
|
1500
|
-
export { configFields_25 as configFields };
|
|
1501
|
-
export function run_24({ row, user, configuration: { title, body, link, user_spec }, }: {
|
|
1502
|
-
row: object;
|
|
1503
|
-
configuration: object;
|
|
1504
|
-
user: object;
|
|
1505
|
-
}): Promise<void>;
|
|
1506
|
-
export { run_24 as run };
|
|
1507
|
-
let namespace_25: string;
|
|
1508
|
-
export { namespace_25 as namespace };
|
|
1509
|
-
}
|
|
1510
|
-
export namespace convert_session_to_user {
|
|
1511
|
-
let description_26: string;
|
|
1512
|
-
export { description_26 as description };
|
|
1513
|
-
export function configFields_26({ table }: {
|
|
1514
|
-
table: any;
|
|
1515
|
-
}): Promise<({
|
|
1516
|
-
name: string;
|
|
1517
|
-
label: string;
|
|
1518
|
-
sublabel: string;
|
|
1519
|
-
input_type: string;
|
|
1520
|
-
options: string[];
|
|
1521
|
-
type?: undefined;
|
|
1522
|
-
attributes?: undefined;
|
|
1523
|
-
} | {
|
|
1524
|
-
name: string;
|
|
1525
|
-
label: string;
|
|
1526
|
-
sublabel: string;
|
|
1527
|
-
type: string;
|
|
1528
|
-
attributes: {
|
|
1529
|
-
calcOptions: {}[];
|
|
1530
|
-
};
|
|
1531
|
-
input_type?: undefined;
|
|
1532
|
-
options?: undefined;
|
|
1533
|
-
})[]>;
|
|
1534
|
-
export { configFields_26 as configFields };
|
|
1535
|
-
export function run_25({ row, configuration: { table_name, session_field, user_field }, user, }: {
|
|
1536
|
-
row: any;
|
|
1537
|
-
configuration: {
|
|
1538
|
-
table_name: any;
|
|
1539
|
-
session_field: any;
|
|
1540
|
-
user_field: any;
|
|
1541
|
-
};
|
|
1542
|
-
user: any;
|
|
1543
|
-
}): Promise<void>;
|
|
1544
|
-
export { run_25 as run };
|
|
1545
|
-
let namespace_26: string;
|
|
1546
|
-
export { namespace_26 as namespace };
|
|
1547
|
-
}
|
|
1548
|
-
export namespace train_model_instance {
|
|
1549
|
-
let description_27: string;
|
|
1550
|
-
export { description_27 as description };
|
|
1551
|
-
export function disableIf(): boolean;
|
|
1552
|
-
export function configFields_27(): Promise<({
|
|
1553
|
-
name: string;
|
|
1554
|
-
label: string;
|
|
1555
|
-
input_type: string;
|
|
1556
|
-
required: boolean;
|
|
1557
|
-
options: {
|
|
1558
|
-
label: string;
|
|
1559
|
-
value: number | undefined;
|
|
1560
|
-
}[];
|
|
1561
|
-
attributes: {
|
|
1562
|
-
explainers: {};
|
|
1563
|
-
mode?: undefined;
|
|
1564
|
-
singleline?: undefined;
|
|
1565
|
-
expression_type?: undefined;
|
|
1566
|
-
};
|
|
1567
|
-
type?: undefined;
|
|
1568
|
-
sublabel?: undefined;
|
|
1569
|
-
fieldview?: undefined;
|
|
1570
|
-
class?: undefined;
|
|
1571
|
-
} | {
|
|
1572
|
-
name: string;
|
|
1573
|
-
label: string;
|
|
1574
|
-
required: boolean;
|
|
1575
|
-
type: string;
|
|
1576
|
-
sublabel: string;
|
|
1577
|
-
input_type?: undefined;
|
|
1578
|
-
options?: undefined;
|
|
1579
|
-
attributes?: undefined;
|
|
1580
|
-
fieldview?: undefined;
|
|
1581
|
-
class?: undefined;
|
|
1582
|
-
} | {
|
|
1583
|
-
name: string;
|
|
1584
|
-
label: string;
|
|
1585
|
-
fieldview: string;
|
|
1586
|
-
sublabel: string;
|
|
1587
|
-
input_type: string;
|
|
1588
|
-
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;
|
|
1589
1828
|
mode: string;
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
type: string;
|
|
1637
|
-
}[] | {
|
|
1638
|
-
name: string;
|
|
1639
|
-
label: string;
|
|
1640
|
-
type: string;
|
|
1641
|
-
required: boolean;
|
|
1642
|
-
attributes: {
|
|
1643
|
-
options: any;
|
|
1644
|
-
};
|
|
1645
|
-
}[]>;
|
|
1646
|
-
export { configFields_28 as configFields };
|
|
1647
|
-
export function run_27({ row, configuration: { filepath_expr, file_field }, user, mode, }: {
|
|
1648
|
-
row: any;
|
|
1649
|
-
configuration: {
|
|
1650
|
-
filepath_expr: any;
|
|
1651
|
-
file_field: any;
|
|
1652
|
-
};
|
|
1653
|
-
user: any;
|
|
1654
|
-
mode: any;
|
|
1655
|
-
}): Promise<{
|
|
1656
|
-
download: {
|
|
1657
|
-
filename: string;
|
|
1658
|
-
mimetype: string;
|
|
1659
|
-
blob: string | Buffer<ArrayBufferLike>;
|
|
1660
|
-
};
|
|
1661
|
-
} | undefined>;
|
|
1662
|
-
export { run_27 as run };
|
|
1663
|
-
}
|
|
1664
|
-
export namespace install_progressive_web_app {
|
|
1665
|
-
let description_29: string;
|
|
1666
|
-
export { description_29 as description };
|
|
1667
|
-
export function configFields_29(): never[];
|
|
1668
|
-
export { configFields_29 as configFields };
|
|
1669
|
-
export function run_28({ req }: {
|
|
1670
|
-
req: any;
|
|
1671
|
-
}): Promise<{
|
|
1672
|
-
eval_js: string;
|
|
1673
|
-
error?: undefined;
|
|
1674
|
-
} | {
|
|
1675
|
-
error: any;
|
|
1676
|
-
eval_js?: undefined;
|
|
1677
|
-
}>;
|
|
1678
|
-
export { run_28 as run };
|
|
1679
|
-
}
|
|
1680
|
-
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;
|
|
1681
1875
|
//# sourceMappingURL=actions.d.ts.map
|