@saltcorn/data 0.9.0-beta.0 → 0.9.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-plugin/actions.d.ts +294 -14
- package/dist/base-plugin/actions.d.ts.map +1 -1
- package/dist/base-plugin/actions.js +20 -3
- package/dist/base-plugin/actions.js.map +1 -1
- package/dist/base-plugin/fieldviews.d.ts +9 -0
- package/dist/base-plugin/fieldviews.d.ts.map +1 -1
- package/dist/base-plugin/fieldviews.js +33 -1
- package/dist/base-plugin/fieldviews.js.map +1 -1
- package/dist/base-plugin/fileviews.d.ts +8 -0
- package/dist/base-plugin/fileviews.js +8 -0
- package/dist/base-plugin/fileviews.js.map +1 -1
- package/dist/base-plugin/index.d.ts +380 -326
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/base-plugin/types.d.ts +252 -162
- package/dist/base-plugin/types.d.ts.map +1 -1
- package/dist/base-plugin/types.js +78 -6
- package/dist/base-plugin/types.js.map +1 -1
- package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/edit.js +72 -37
- package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
- package/dist/base-plugin/viewtemplates/feed.d.ts +1 -1
- package/dist/base-plugin/viewtemplates/feed.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/feed.js +27 -6
- package/dist/base-plugin/viewtemplates/feed.js.map +1 -1
- package/dist/base-plugin/viewtemplates/list.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/list.js +1 -0
- package/dist/base-plugin/viewtemplates/list.js.map +1 -1
- package/dist/base-plugin/viewtemplates/show.d.ts +2 -1
- package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/show.js +17 -3
- 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 +45 -15
- package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
- package/dist/db/fixtures.d.ts.map +1 -1
- package/dist/db/fixtures.js +33 -3
- package/dist/db/fixtures.js.map +1 -1
- package/dist/db/state.d.ts +5 -2
- package/dist/db/state.d.ts.map +1 -1
- package/dist/db/state.js +14 -2
- package/dist/db/state.js.map +1 -1
- package/dist/diagram/node_extract_utils.d.ts.map +1 -1
- package/dist/diagram/node_extract_utils.js +3 -1
- package/dist/diagram/node_extract_utils.js.map +1 -1
- package/dist/models/config.d.ts.map +1 -1
- package/dist/models/config.js +21 -0
- package/dist/models/config.js.map +1 -1
- package/dist/models/eventlog.d.ts +1 -0
- package/dist/models/eventlog.d.ts.map +1 -1
- package/dist/models/eventlog.js +4 -0
- package/dist/models/eventlog.js.map +1 -1
- package/dist/models/field.d.ts.map +1 -1
- package/dist/models/field.js +6 -2
- package/dist/models/field.js.map +1 -1
- package/dist/models/file.js +1 -1
- package/dist/models/file.js.map +1 -1
- package/dist/models/model.d.ts.map +1 -1
- package/dist/models/model.js +12 -2
- package/dist/models/model.js.map +1 -1
- package/dist/models/model_instance.d.ts +1 -1
- package/dist/models/model_instance.d.ts.map +1 -1
- package/dist/models/model_instance.js +24 -1
- package/dist/models/model_instance.js.map +1 -1
- package/dist/models/table.d.ts +2 -2
- package/dist/models/table.d.ts.map +1 -1
- package/dist/models/table.js +40 -23
- package/dist/models/table.js.map +1 -1
- package/dist/models/tag_entry.d.ts +2 -1
- package/dist/models/tag_entry.d.ts.map +1 -1
- package/dist/models/tag_entry.js.map +1 -1
- package/dist/models/workflow.d.ts +2 -0
- package/dist/models/workflow.d.ts.map +1 -1
- package/dist/models/workflow.js +6 -2
- package/dist/models/workflow.js.map +1 -1
- package/dist/plugin-helper.d.ts +1 -1
- package/dist/plugin-helper.d.ts.map +1 -1
- package/dist/plugin-helper.js +67 -3
- package/dist/plugin-helper.js.map +1 -1
- package/dist/tests/exact_views.test.js +15 -15
- package/dist/tests/exact_views.test.js.map +1 -1
- package/dist/web-mobile-commons.d.ts +6 -1
- package/dist/web-mobile-commons.d.ts.map +1 -1
- package/dist/web-mobile-commons.js +205 -1
- package/dist/web-mobile-commons.js.map +1 -1
- package/package.json +7 -7
- package/webpack.config.js +2 -0
|
@@ -9,16 +9,30 @@ export const types: ({
|
|
|
9
9
|
fieldviews: {
|
|
10
10
|
as_text: {
|
|
11
11
|
isEdit: boolean;
|
|
12
|
+
description: string;
|
|
12
13
|
run: (s: any) => string;
|
|
13
14
|
};
|
|
14
15
|
preFormatted: {
|
|
15
16
|
isEdit: boolean;
|
|
17
|
+
description: string;
|
|
16
18
|
run: (s: any) => any;
|
|
17
19
|
};
|
|
18
20
|
code: {
|
|
19
21
|
isEdit: boolean;
|
|
22
|
+
description: string;
|
|
20
23
|
run: (s: any) => any;
|
|
21
24
|
};
|
|
25
|
+
ellipsize: {
|
|
26
|
+
isEdit: boolean;
|
|
27
|
+
configFields: {
|
|
28
|
+
name: string;
|
|
29
|
+
label: string;
|
|
30
|
+
type: string;
|
|
31
|
+
default: number;
|
|
32
|
+
}[];
|
|
33
|
+
description: string;
|
|
34
|
+
run: (s: any, req: any, attrs?: {}) => string;
|
|
35
|
+
};
|
|
22
36
|
as_link: {
|
|
23
37
|
configFields: {
|
|
24
38
|
name: string;
|
|
@@ -26,20 +40,24 @@ export const types: ({
|
|
|
26
40
|
type: string;
|
|
27
41
|
sublabel: string;
|
|
28
42
|
}[];
|
|
43
|
+
description: string;
|
|
29
44
|
isEdit: boolean;
|
|
30
45
|
run: (s: any, req: any, attrs?: {}) => any;
|
|
31
46
|
};
|
|
32
47
|
img_from_url: {
|
|
33
48
|
isEdit: boolean;
|
|
49
|
+
description: string;
|
|
34
50
|
run: (s: any, req: any, attrs: any) => any;
|
|
35
51
|
};
|
|
36
52
|
as_header: {
|
|
37
53
|
isEdit: boolean;
|
|
54
|
+
description: string;
|
|
38
55
|
run: (s: any) => any;
|
|
39
56
|
};
|
|
40
57
|
edit: {
|
|
41
58
|
isEdit: boolean;
|
|
42
59
|
blockDisplay: boolean;
|
|
60
|
+
description: string;
|
|
43
61
|
configFields: (field: any) => ({
|
|
44
62
|
name: string;
|
|
45
63
|
label: string;
|
|
@@ -67,6 +85,7 @@ export const types: ({
|
|
|
67
85
|
fill_formula_btn: {
|
|
68
86
|
isEdit: boolean;
|
|
69
87
|
blockDisplay: boolean;
|
|
88
|
+
description: string;
|
|
70
89
|
configFields: ({
|
|
71
90
|
name: string;
|
|
72
91
|
label: string;
|
|
@@ -111,6 +130,7 @@ export const types: ({
|
|
|
111
130
|
make_unique: {
|
|
112
131
|
isEdit: boolean;
|
|
113
132
|
blockDisplay: boolean;
|
|
133
|
+
description: string;
|
|
114
134
|
configFields: ({
|
|
115
135
|
name: string;
|
|
116
136
|
label: string;
|
|
@@ -138,6 +158,7 @@ export const types: ({
|
|
|
138
158
|
textarea: {
|
|
139
159
|
isEdit: boolean;
|
|
140
160
|
blockDisplay: boolean;
|
|
161
|
+
description: string;
|
|
141
162
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
142
163
|
};
|
|
143
164
|
radio_group: {
|
|
@@ -147,11 +168,13 @@ export const types: ({
|
|
|
147
168
|
name: string;
|
|
148
169
|
label: string;
|
|
149
170
|
}[];
|
|
171
|
+
description: string;
|
|
150
172
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
151
173
|
};
|
|
152
174
|
checkbox_group: {
|
|
153
175
|
isEdit: boolean;
|
|
154
176
|
isFilter: boolean;
|
|
177
|
+
description: string;
|
|
155
178
|
configFields: {
|
|
156
179
|
type: string;
|
|
157
180
|
name: string;
|
|
@@ -162,6 +185,7 @@ export const types: ({
|
|
|
162
185
|
password: {
|
|
163
186
|
isEdit: boolean;
|
|
164
187
|
blockDisplay: boolean;
|
|
188
|
+
description: string;
|
|
165
189
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
166
190
|
};
|
|
167
191
|
};
|
|
@@ -190,11 +214,13 @@ export const types: ({
|
|
|
190
214
|
fieldviews: {
|
|
191
215
|
show: {
|
|
192
216
|
isEdit: boolean;
|
|
217
|
+
description: string;
|
|
193
218
|
run: (s: any) => string;
|
|
194
219
|
};
|
|
195
220
|
edit: {
|
|
196
221
|
isEdit: boolean;
|
|
197
222
|
blockDisplay: boolean;
|
|
223
|
+
description: string;
|
|
198
224
|
configFields: {
|
|
199
225
|
name: string;
|
|
200
226
|
label: string;
|
|
@@ -209,6 +235,7 @@ export const types: ({
|
|
|
209
235
|
required: boolean;
|
|
210
236
|
}[];
|
|
211
237
|
isEdit: boolean;
|
|
238
|
+
description: string;
|
|
212
239
|
blockDisplay: boolean;
|
|
213
240
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any) => any;
|
|
214
241
|
};
|
|
@@ -221,6 +248,7 @@ export const types: ({
|
|
|
221
248
|
isEdit: boolean;
|
|
222
249
|
isFilter: boolean;
|
|
223
250
|
blockDisplay: boolean;
|
|
251
|
+
description: string;
|
|
224
252
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
225
253
|
};
|
|
226
254
|
progress_bar: {
|
|
@@ -236,6 +264,7 @@ export const types: ({
|
|
|
236
264
|
required?: undefined;
|
|
237
265
|
})[];
|
|
238
266
|
isEdit: boolean;
|
|
267
|
+
description: string;
|
|
239
268
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
240
269
|
};
|
|
241
270
|
heat_cell: {
|
|
@@ -271,6 +300,7 @@ export const types: ({
|
|
|
271
300
|
attributes?: undefined;
|
|
272
301
|
})[];
|
|
273
302
|
isEdit: boolean;
|
|
303
|
+
description: string;
|
|
274
304
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
275
305
|
};
|
|
276
306
|
above_input: {
|
|
@@ -296,6 +326,7 @@ export const types: ({
|
|
|
296
326
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
297
327
|
};
|
|
298
328
|
show_star_rating: {
|
|
329
|
+
description: string;
|
|
299
330
|
configFields: (field: any) => {
|
|
300
331
|
name: string;
|
|
301
332
|
type: string;
|
|
@@ -307,6 +338,7 @@ export const types: ({
|
|
|
307
338
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
308
339
|
};
|
|
309
340
|
edit_star_rating: {
|
|
341
|
+
description: string;
|
|
310
342
|
configFields: (field: any) => {
|
|
311
343
|
name: string;
|
|
312
344
|
type: string;
|
|
@@ -330,91 +362,18 @@ export const types: ({
|
|
|
330
362
|
fieldviews: {
|
|
331
363
|
show: {
|
|
332
364
|
isEdit: boolean;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
checkboxes: {
|
|
336
|
-
isEdit: boolean;
|
|
337
|
-
run: (v: any) => any;
|
|
338
|
-
};
|
|
339
|
-
TrueFalse: {
|
|
340
|
-
isEdit: boolean;
|
|
341
|
-
run: (v: any) => "" | "True" | "False";
|
|
342
|
-
};
|
|
343
|
-
edit: {
|
|
344
|
-
isEdit: boolean;
|
|
345
|
-
configFields: {
|
|
346
|
-
name: string;
|
|
347
|
-
label: string;
|
|
348
|
-
type: string;
|
|
349
|
-
attributes: {
|
|
350
|
-
options: string[];
|
|
351
|
-
};
|
|
352
|
-
}[];
|
|
353
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
354
|
-
};
|
|
355
|
-
switch: {
|
|
356
|
-
isEdit: boolean;
|
|
357
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
358
|
-
};
|
|
359
|
-
tristate: {
|
|
360
|
-
isEdit: boolean;
|
|
361
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
attributes: object[];
|
|
365
|
-
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
366
|
-
read: (v: object) => boolean | null;
|
|
367
|
-
readFromDB: (v: object) => object;
|
|
368
|
-
listAs: (v: object) => object;
|
|
369
|
-
validate: () => boolean;
|
|
370
|
-
} | {
|
|
371
|
-
name: string;
|
|
372
|
-
sql_name: string;
|
|
373
|
-
js_type: string;
|
|
374
|
-
contract: () => Function;
|
|
375
|
-
attributes: object[];
|
|
376
|
-
fieldviews: {
|
|
377
|
-
show: {
|
|
378
|
-
isEdit: boolean;
|
|
379
|
-
run: (d: any, req: any) => any;
|
|
380
|
-
};
|
|
381
|
-
showDay: {
|
|
382
|
-
isEdit: boolean;
|
|
383
|
-
run: (d: any, req: any) => any;
|
|
384
|
-
};
|
|
385
|
-
format: {
|
|
386
|
-
isEdit: boolean;
|
|
387
|
-
configFields: {
|
|
388
|
-
name: string;
|
|
389
|
-
label: string;
|
|
390
|
-
type: string;
|
|
391
|
-
sublabel: string;
|
|
392
|
-
}[];
|
|
393
|
-
run: (d: any, req: any, options: any) => any;
|
|
394
|
-
};
|
|
395
|
-
relative: {
|
|
396
|
-
isEdit: boolean;
|
|
397
|
-
run: (d: any, req: any) => string;
|
|
398
|
-
};
|
|
399
|
-
yearsAgo: {
|
|
400
|
-
isEdit: boolean;
|
|
401
|
-
run: (d: any, req: any) => string;
|
|
365
|
+
description: string;
|
|
366
|
+
run: (s: any) => any;
|
|
402
367
|
};
|
|
403
368
|
edit: {
|
|
404
369
|
isEdit: boolean;
|
|
405
370
|
blockDisplay: boolean;
|
|
371
|
+
description: string;
|
|
406
372
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
407
373
|
};
|
|
408
|
-
editDay: {
|
|
409
|
-
isEdit: boolean;
|
|
410
|
-
blockDisplay: boolean;
|
|
411
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
412
|
-
};
|
|
413
|
-
};
|
|
414
|
-
presets: {
|
|
415
|
-
Now: () => Date;
|
|
416
374
|
};
|
|
417
|
-
|
|
375
|
+
attributes: object[];
|
|
376
|
+
read: (v: object) => object;
|
|
418
377
|
validate: () => boolean;
|
|
419
378
|
} | {
|
|
420
379
|
name: string;
|
|
@@ -427,11 +386,13 @@ export const types: ({
|
|
|
427
386
|
fieldviews: {
|
|
428
387
|
show: {
|
|
429
388
|
isEdit: boolean;
|
|
389
|
+
description: string;
|
|
430
390
|
run: (s: any) => string;
|
|
431
391
|
};
|
|
432
392
|
edit: {
|
|
433
393
|
isEdit: boolean;
|
|
434
394
|
blockDisplay: boolean;
|
|
395
|
+
description: string;
|
|
435
396
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
436
397
|
};
|
|
437
398
|
number_slider: {
|
|
@@ -441,6 +402,7 @@ export const types: ({
|
|
|
441
402
|
required: boolean;
|
|
442
403
|
}[];
|
|
443
404
|
isEdit: boolean;
|
|
405
|
+
description: string;
|
|
444
406
|
blockDisplay: boolean;
|
|
445
407
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any) => any;
|
|
446
408
|
};
|
|
@@ -453,6 +415,7 @@ export const types: ({
|
|
|
453
415
|
isEdit: boolean;
|
|
454
416
|
isFilter: boolean;
|
|
455
417
|
blockDisplay: boolean;
|
|
418
|
+
description: string;
|
|
456
419
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
457
420
|
};
|
|
458
421
|
progress_bar: {
|
|
@@ -468,6 +431,7 @@ export const types: ({
|
|
|
468
431
|
required?: undefined;
|
|
469
432
|
})[];
|
|
470
433
|
isEdit: boolean;
|
|
434
|
+
description: string;
|
|
471
435
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
472
436
|
};
|
|
473
437
|
heat_cell: {
|
|
@@ -503,6 +467,7 @@ export const types: ({
|
|
|
503
467
|
attributes?: undefined;
|
|
504
468
|
})[];
|
|
505
469
|
isEdit: boolean;
|
|
470
|
+
description: string;
|
|
506
471
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
507
472
|
};
|
|
508
473
|
above_input: {
|
|
@@ -526,22 +491,146 @@ export const types: ({
|
|
|
526
491
|
sql_name: string;
|
|
527
492
|
js_type: string;
|
|
528
493
|
contract: () => Function;
|
|
494
|
+
attributes: object[];
|
|
529
495
|
fieldviews: {
|
|
530
496
|
show: {
|
|
531
497
|
isEdit: boolean;
|
|
532
|
-
|
|
498
|
+
description: string;
|
|
499
|
+
run: (d: any, req: any) => any;
|
|
500
|
+
};
|
|
501
|
+
showDay: {
|
|
502
|
+
isEdit: boolean;
|
|
503
|
+
description: string;
|
|
504
|
+
run: (d: any, req: any) => any;
|
|
505
|
+
};
|
|
506
|
+
format: {
|
|
507
|
+
isEdit: boolean;
|
|
508
|
+
description: string;
|
|
509
|
+
configFields: {
|
|
510
|
+
name: string;
|
|
511
|
+
label: string;
|
|
512
|
+
type: string;
|
|
513
|
+
sublabel: string;
|
|
514
|
+
}[];
|
|
515
|
+
run: (d: any, req: any, options: any) => any;
|
|
516
|
+
};
|
|
517
|
+
relative: {
|
|
518
|
+
isEdit: boolean;
|
|
519
|
+
description: string;
|
|
520
|
+
run: (d: any, req: any) => string;
|
|
521
|
+
};
|
|
522
|
+
yearsAgo: {
|
|
523
|
+
isEdit: boolean;
|
|
524
|
+
description: string;
|
|
525
|
+
run: (d: any, req: any) => string;
|
|
533
526
|
};
|
|
534
527
|
edit: {
|
|
535
528
|
isEdit: boolean;
|
|
536
529
|
blockDisplay: boolean;
|
|
530
|
+
description: string;
|
|
531
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
532
|
+
};
|
|
533
|
+
editDay: {
|
|
534
|
+
isEdit: boolean;
|
|
535
|
+
blockDisplay: boolean;
|
|
536
|
+
description: string;
|
|
537
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
presets: {
|
|
541
|
+
Now: () => Date;
|
|
542
|
+
};
|
|
543
|
+
read: (v: object, attrs: object) => object;
|
|
544
|
+
validate: () => boolean;
|
|
545
|
+
} | {
|
|
546
|
+
name: string;
|
|
547
|
+
sql_name: string;
|
|
548
|
+
js_type: string;
|
|
549
|
+
contract: () => Function;
|
|
550
|
+
fieldviews: {
|
|
551
|
+
show: {
|
|
552
|
+
isEdit: boolean;
|
|
553
|
+
description: string;
|
|
554
|
+
run: (v: any) => any;
|
|
555
|
+
};
|
|
556
|
+
checkboxes: {
|
|
557
|
+
isEdit: boolean;
|
|
558
|
+
description: string;
|
|
559
|
+
run: (v: any) => any;
|
|
560
|
+
};
|
|
561
|
+
TrueFalse: {
|
|
562
|
+
isEdit: boolean;
|
|
563
|
+
description: string;
|
|
564
|
+
run: (v: any) => "" | "True" | "False";
|
|
565
|
+
};
|
|
566
|
+
edit: {
|
|
567
|
+
isEdit: boolean;
|
|
568
|
+
description: string;
|
|
569
|
+
configFields: {
|
|
570
|
+
name: string;
|
|
571
|
+
label: string;
|
|
572
|
+
type: string;
|
|
573
|
+
attributes: {
|
|
574
|
+
options: string[];
|
|
575
|
+
};
|
|
576
|
+
}[];
|
|
577
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
578
|
+
};
|
|
579
|
+
switch: {
|
|
580
|
+
isEdit: boolean;
|
|
581
|
+
description: string;
|
|
582
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
583
|
+
};
|
|
584
|
+
tristate: {
|
|
585
|
+
isEdit: boolean;
|
|
586
|
+
description: string;
|
|
537
587
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
538
588
|
};
|
|
539
589
|
};
|
|
540
590
|
attributes: object[];
|
|
541
|
-
|
|
591
|
+
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
592
|
+
read: (v: object) => boolean | null;
|
|
593
|
+
readFromDB: (v: object) => object;
|
|
594
|
+
listAs: (v: object) => object;
|
|
542
595
|
validate: () => boolean;
|
|
543
596
|
})[];
|
|
544
597
|
export const viewtemplates: ({
|
|
598
|
+
name: string;
|
|
599
|
+
description: string;
|
|
600
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
601
|
+
run: (table_id: string, viewname: string, { list_view, show_view, list_width, subtables }: {
|
|
602
|
+
list_view: string;
|
|
603
|
+
show_view: string;
|
|
604
|
+
subtables: object;
|
|
605
|
+
}, state: any, extraArgs: any, { getRowQuery }: {
|
|
606
|
+
getRowQuery: any;
|
|
607
|
+
}) => Promise<div>;
|
|
608
|
+
get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
|
|
609
|
+
list_view: string;
|
|
610
|
+
show_view: any;
|
|
611
|
+
}) => Promise<object[]>;
|
|
612
|
+
display_state_form: ({ list_view, _omit_state_form }: {
|
|
613
|
+
list_view: string;
|
|
614
|
+
_omit_state_form: boolean;
|
|
615
|
+
}) => boolean;
|
|
616
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
617
|
+
table_id: any;
|
|
618
|
+
viewname: any;
|
|
619
|
+
configuration: {
|
|
620
|
+
columns: any;
|
|
621
|
+
default_state: any;
|
|
622
|
+
};
|
|
623
|
+
req: any;
|
|
624
|
+
}) => {
|
|
625
|
+
getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
626
|
+
};
|
|
627
|
+
connectedObjects: ({ list_view, subtables }: {
|
|
628
|
+
list_view: any;
|
|
629
|
+
subtables: any;
|
|
630
|
+
}) => Promise<{
|
|
631
|
+
embeddedViews: import("../models/view")[];
|
|
632
|
+
}>;
|
|
633
|
+
} | {
|
|
545
634
|
name: string;
|
|
546
635
|
description: string;
|
|
547
636
|
configuration_workflow: (req: object) => import("../models/workflow");
|
|
@@ -604,175 +693,26 @@ export const viewtemplates: ({
|
|
|
604
693
|
} | {
|
|
605
694
|
name: string;
|
|
606
695
|
description: string;
|
|
696
|
+
get_state_fields: () => object[];
|
|
607
697
|
configuration_workflow: (req: object) => import("../models/workflow");
|
|
608
|
-
run: (table_id:
|
|
609
|
-
req: object;
|
|
610
|
-
res: object;
|
|
611
|
-
}, { editQuery }: {
|
|
612
|
-
editQuery: any;
|
|
613
|
-
}) => Promise<import("../models/form")>;
|
|
614
|
-
runMany: (table_id: number, viewname: string, { columns, layout, auto_save, split_paste }: {
|
|
615
|
-
columns: any;
|
|
616
|
-
layout: any;
|
|
617
|
-
}, state: State, extra: object, { editManyQuery, getRowQuery, optionsQuery }: {
|
|
618
|
-
editManyQuery: any;
|
|
619
|
-
getRowQuery: any;
|
|
620
|
-
optionsQuery: any;
|
|
621
|
-
}) => Promise<import("../models/form")[]>;
|
|
622
|
-
runPost: (table_id: number, viewname: string, { columns, layout, fixed, view_when_done, formula_destinations, auto_save, destination_type, dest_url_formula, page_when_done, }: {
|
|
698
|
+
run: (table_id: string, viewname: string, { columns, layout, page_title, page_title_formula }: {
|
|
623
699
|
columns: object[];
|
|
624
|
-
layout:
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
getRowQuery: any;
|
|
636
|
-
saveFileQuery: any;
|
|
637
|
-
optionsQuery: any;
|
|
638
|
-
getRowByIdQuery: any;
|
|
639
|
-
}, remote: any) => Promise<void>;
|
|
640
|
-
get_state_fields: (table_id: any, viewname: any, { columns }: {
|
|
641
|
-
columns: any;
|
|
700
|
+
layout: object;
|
|
701
|
+
page_title?: string | undefined;
|
|
702
|
+
page_title_formula: boolean;
|
|
703
|
+
}, state: object, extra: object, { showQuery }: {
|
|
704
|
+
showQuery: any;
|
|
705
|
+
}) => Promise<string>;
|
|
706
|
+
runMany: (table_id: number, viewname: string, { columns, layout }: {
|
|
707
|
+
columns: object[];
|
|
708
|
+
layout: object;
|
|
709
|
+
}, state: object, extra: object, { runManyQuery }: {
|
|
710
|
+
runManyQuery: any;
|
|
642
711
|
}) => Promise<object[]>;
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
table_id: string;
|
|
648
|
-
req: object;
|
|
649
|
-
}, { authorizePostQuery }: {
|
|
650
|
-
authorizePostQuery: any;
|
|
651
|
-
}) => Promise<boolean>;
|
|
652
|
-
authorise_get: ({ query, table_id, req }: {
|
|
653
|
-
query: object;
|
|
654
|
-
rest: any;
|
|
655
|
-
}, { authorizeGetQuery }: {
|
|
656
|
-
authorizeGetQuery: any;
|
|
657
|
-
}) => Promise<boolean>;
|
|
658
|
-
getStringsForI18n({ layout }: {
|
|
659
|
-
layout: Layout;
|
|
660
|
-
}): string[];
|
|
661
|
-
queries: ({ table_id, name, configuration: { columns, default_state, layout, auto_save, split_paste, destination_type, }, req, res, }: {
|
|
662
|
-
table_id: any;
|
|
663
|
-
name: any;
|
|
664
|
-
configuration: {
|
|
665
|
-
columns: any;
|
|
666
|
-
default_state: any;
|
|
667
|
-
layout: any;
|
|
668
|
-
auto_save: any;
|
|
669
|
-
split_paste: any;
|
|
670
|
-
destination_type: any;
|
|
671
|
-
};
|
|
672
|
-
req: any;
|
|
673
|
-
res: any;
|
|
674
|
-
}) => {
|
|
675
|
-
editQuery(state: any, mobileReferrer: any): Promise<import("../models/form")>;
|
|
676
|
-
editManyQuery(state: any, { limit, offset, orderBy, orderDesc, where }: {
|
|
677
|
-
limit: any;
|
|
678
|
-
offset: any;
|
|
679
|
-
orderBy: any;
|
|
680
|
-
orderDesc: any;
|
|
681
|
-
where: any;
|
|
682
|
-
}): Promise<{
|
|
683
|
-
table: import("../models/table") | null;
|
|
684
|
-
fields: import("../models/field")[];
|
|
685
|
-
rows: import("@saltcorn/db-common/internal").Row[];
|
|
686
|
-
}>;
|
|
687
|
-
tryInsertQuery(row: any): Promise<{
|
|
688
|
-
error: string;
|
|
689
|
-
} | {
|
|
690
|
-
success: any;
|
|
691
|
-
}>;
|
|
692
|
-
tryUpdateQuery(row: any, id: any): Promise<any>;
|
|
693
|
-
saveFileQuery(fieldVal: any, fieldId: any, fieldView: any, row: any): Promise<string | number>;
|
|
694
|
-
authorizePostQuery(body: any, table_id: any): Promise<boolean | "" | null | undefined>;
|
|
695
|
-
authorizeGetQuery(query: any, table_id: any): Promise<string | boolean | null | undefined>;
|
|
696
|
-
getRowQuery(table_id: any, view_select: any, row_id: any): Promise<import("@saltcorn/db-common/internal").Row[]>;
|
|
697
|
-
getRowByIdQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
698
|
-
actionQuery(): Promise<{
|
|
699
|
-
json: any;
|
|
700
|
-
}>;
|
|
701
|
-
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
702
|
-
updateMatchingQuery(where: any, updateVals: any, repeatFields: any, childRows: any): Promise<any[] | {
|
|
703
|
-
rowError: any;
|
|
704
|
-
inEditError?: undefined;
|
|
705
|
-
error?: undefined;
|
|
706
|
-
} | {
|
|
707
|
-
inEditError: any;
|
|
708
|
-
rowError?: undefined;
|
|
709
|
-
error?: undefined;
|
|
710
|
-
} | {
|
|
711
|
-
error: any;
|
|
712
|
-
rowError?: undefined;
|
|
713
|
-
inEditError?: undefined;
|
|
714
|
-
}>;
|
|
715
|
-
};
|
|
716
|
-
routes: {
|
|
717
|
-
run_action: (table_id: number, viewname: any, { columns, layout }: {
|
|
718
|
-
columns: object[];
|
|
719
|
-
layout: any;
|
|
720
|
-
}, body: any, { req, res }: {
|
|
721
|
-
req: object;
|
|
722
|
-
res: any;
|
|
723
|
-
}, { actionQuery }: {
|
|
724
|
-
actionQuery: any;
|
|
725
|
-
}) => Promise<object>;
|
|
726
|
-
update_matching_rows: (table_id: any, viewname: any, { columns, layout, fixed, view_when_done, formula_destinations, auto_save, destination_type, dest_url_formula, page_when_done, }: {
|
|
727
|
-
columns: any;
|
|
728
|
-
layout: any;
|
|
729
|
-
fixed: any;
|
|
730
|
-
view_when_done: any;
|
|
731
|
-
formula_destinations: any;
|
|
732
|
-
auto_save: any;
|
|
733
|
-
destination_type: any;
|
|
734
|
-
dest_url_formula: any;
|
|
735
|
-
page_when_done: any;
|
|
736
|
-
}, body: any, { req, res, redirect }: {
|
|
737
|
-
req: any;
|
|
738
|
-
res: any;
|
|
739
|
-
redirect: any;
|
|
740
|
-
}, { updateMatchingQuery, getRowQuery, saveFileQuery, optionsQuery, getRowByIdQuery, }: {
|
|
741
|
-
updateMatchingQuery: any;
|
|
742
|
-
getRowQuery: any;
|
|
743
|
-
saveFileQuery: any;
|
|
744
|
-
optionsQuery: any;
|
|
745
|
-
getRowByIdQuery: any;
|
|
746
|
-
}) => Promise<void>;
|
|
747
|
-
};
|
|
748
|
-
configCheck: (view: any) => Promise<{
|
|
749
|
-
errors: string[];
|
|
750
|
-
warnings: string[];
|
|
751
|
-
}>;
|
|
752
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
753
|
-
} | {
|
|
754
|
-
name: string;
|
|
755
|
-
description: string;
|
|
756
|
-
get_state_fields: () => object[];
|
|
757
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
758
|
-
run: (table_id: string, viewname: string, { columns, layout, page_title, page_title_formula }: {
|
|
759
|
-
columns: object[];
|
|
760
|
-
layout: object;
|
|
761
|
-
page_title?: string | undefined;
|
|
762
|
-
page_title_formula: boolean;
|
|
763
|
-
}, state: object, extra: object, { showQuery }: {
|
|
764
|
-
showQuery: any;
|
|
765
|
-
}) => Promise<string>;
|
|
766
|
-
runMany: (table_id: number, viewname: string, { columns, layout }: {
|
|
767
|
-
columns: object[];
|
|
768
|
-
layout: object;
|
|
769
|
-
}, state: object, extra: object, { runManyQuery }: {
|
|
770
|
-
runManyQuery: any;
|
|
771
|
-
}) => Promise<object[]>;
|
|
772
|
-
renderRows: (table: object, viewname: string, { columns, layout }: {
|
|
773
|
-
columns: object[];
|
|
774
|
-
layout: object;
|
|
775
|
-
}, extra: object, rows: object[], state: any) => Promise<string>;
|
|
712
|
+
renderRows: (table: object, viewname: string, { columns, layout }: {
|
|
713
|
+
columns: object[];
|
|
714
|
+
layout: object;
|
|
715
|
+
}, extra: object, rows: object[], state: any) => Promise<string>;
|
|
776
716
|
initial_config: Function;
|
|
777
717
|
display_state_form: boolean;
|
|
778
718
|
routes: {
|
|
@@ -807,10 +747,11 @@ export const viewtemplates: ({
|
|
|
807
747
|
rows: import("@saltcorn/db-common/internal").Row[];
|
|
808
748
|
message: null;
|
|
809
749
|
}>;
|
|
810
|
-
runManyQuery(state: any, { where, limit, offset, orderBy, orderDesc }: {
|
|
750
|
+
runManyQuery(state: any, { where, limit, offset, joinFieldsExtra, orderBy, orderDesc }: {
|
|
811
751
|
where: any;
|
|
812
752
|
limit: any;
|
|
813
753
|
offset: any;
|
|
754
|
+
joinFieldsExtra: any;
|
|
814
755
|
orderBy: any;
|
|
815
756
|
orderDesc: any;
|
|
816
757
|
}): Promise<import("@saltcorn/db-common/internal").Row[]>;
|
|
@@ -827,43 +768,7 @@ export const viewtemplates: ({
|
|
|
827
768
|
name: string;
|
|
828
769
|
description: string;
|
|
829
770
|
configuration_workflow: (req: object) => import("../models/workflow");
|
|
830
|
-
run: (table_id:
|
|
831
|
-
list_view: string;
|
|
832
|
-
show_view: string;
|
|
833
|
-
subtables: object;
|
|
834
|
-
}, state: any, extraArgs: any, { getRowQuery }: {
|
|
835
|
-
getRowQuery: any;
|
|
836
|
-
}) => Promise<div>;
|
|
837
|
-
get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
|
|
838
|
-
list_view: string;
|
|
839
|
-
show_view: any;
|
|
840
|
-
}) => Promise<object[]>;
|
|
841
|
-
display_state_form: ({ list_view, _omit_state_form }: {
|
|
842
|
-
list_view: string;
|
|
843
|
-
_omit_state_form: boolean;
|
|
844
|
-
}) => boolean;
|
|
845
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
846
|
-
table_id: any;
|
|
847
|
-
viewname: any;
|
|
848
|
-
configuration: {
|
|
849
|
-
columns: any;
|
|
850
|
-
default_state: any;
|
|
851
|
-
};
|
|
852
|
-
req: any;
|
|
853
|
-
}) => {
|
|
854
|
-
getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
855
|
-
};
|
|
856
|
-
connectedObjects: ({ list_view, subtables }: {
|
|
857
|
-
list_view: any;
|
|
858
|
-
subtables: any;
|
|
859
|
-
}) => Promise<{
|
|
860
|
-
embeddedViews: import("../models/view")[];
|
|
861
|
-
}>;
|
|
862
|
-
} | {
|
|
863
|
-
name: string;
|
|
864
|
-
description: string;
|
|
865
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
866
|
-
run: (table_id: number, viewname: string, { show_view, order_field, descending, view_to_create, create_view_display, in_card, view_decoration, title_formula, masonry_columns, rows_per_page, hide_pagination, create_view_label, create_view_location, create_link_style, create_link_size, always_create_view, include_fml, empty_view, ...cols }: {
|
|
771
|
+
run: (table_id: number, viewname: string, { show_view, order_field, descending, view_to_create, create_view_display, in_card, view_decoration, initial_open_accordions, title_formula, masonry_columns, rows_per_page, hide_pagination, create_view_label, create_view_location, create_link_style, create_link_size, always_create_view, include_fml, empty_view, ...cols }: {
|
|
867
772
|
show_view: string;
|
|
868
773
|
order_field: name;
|
|
869
774
|
descending: boolean;
|
|
@@ -899,48 +804,6 @@ export const viewtemplates: ({
|
|
|
899
804
|
countRowsQuery(state: any): Promise<number>;
|
|
900
805
|
};
|
|
901
806
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
902
|
-
} | {
|
|
903
|
-
name: string;
|
|
904
|
-
description: string;
|
|
905
|
-
get_state_fields: () => object[];
|
|
906
|
-
configuration_workflow: () => import("../models/workflow");
|
|
907
|
-
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
908
|
-
columns: object[];
|
|
909
|
-
layout: object;
|
|
910
|
-
}, state: object, extra: object, { distinctValuesQuery }: {
|
|
911
|
-
distinctValuesQuery: any;
|
|
912
|
-
}) => Promise<Layout>;
|
|
913
|
-
initial_config: () => Promise<object>;
|
|
914
|
-
display_state_form: boolean;
|
|
915
|
-
getStringsForI18n({ layout }: {
|
|
916
|
-
layout: any;
|
|
917
|
-
}): string[];
|
|
918
|
-
routes: {
|
|
919
|
-
run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
|
|
920
|
-
req: any;
|
|
921
|
-
res: any;
|
|
922
|
-
}, { actionQuery }: {
|
|
923
|
-
actionQuery: any;
|
|
924
|
-
}) => Promise<any>;
|
|
925
|
-
};
|
|
926
|
-
queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
|
|
927
|
-
table_id: any;
|
|
928
|
-
viewname: any;
|
|
929
|
-
configuration: {
|
|
930
|
-
columns: any;
|
|
931
|
-
};
|
|
932
|
-
req: any;
|
|
933
|
-
res: any;
|
|
934
|
-
exttable_name: any;
|
|
935
|
-
}) => {
|
|
936
|
-
actionQuery(state: any, rndid: any): Promise<{
|
|
937
|
-
json: any;
|
|
938
|
-
}>;
|
|
939
|
-
distinctValuesQuery(state: any): Promise<{
|
|
940
|
-
distinct_values: {};
|
|
941
|
-
role: any;
|
|
942
|
-
}>;
|
|
943
|
-
};
|
|
944
807
|
} | {
|
|
945
808
|
name: string;
|
|
946
809
|
description: string;
|
|
@@ -1041,6 +904,197 @@ export const viewtemplates: ({
|
|
|
1041
904
|
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1042
905
|
};
|
|
1043
906
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
907
|
+
} | {
|
|
908
|
+
name: string;
|
|
909
|
+
description: string;
|
|
910
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
911
|
+
run: (table_id: number, viewname: string, cfg: any, state: string, { res, req }: {
|
|
912
|
+
req: object;
|
|
913
|
+
res: object;
|
|
914
|
+
}, { editQuery }: {
|
|
915
|
+
editQuery: any;
|
|
916
|
+
}) => Promise<import("../models/form")>;
|
|
917
|
+
runMany: (table_id: number, viewname: string, { columns, layout, auto_save, split_paste }: {
|
|
918
|
+
columns: any;
|
|
919
|
+
layout: any;
|
|
920
|
+
}, state: State, extra: object, { editManyQuery, getRowQuery, optionsQuery }: {
|
|
921
|
+
editManyQuery: any;
|
|
922
|
+
getRowQuery: any;
|
|
923
|
+
optionsQuery: any;
|
|
924
|
+
}) => Promise<import("../models/form")[]>;
|
|
925
|
+
runPost: (table_id: number, viewname: string, { columns, layout, fixed, view_when_done, formula_destinations, auto_save, destination_type, dest_url_formula, page_when_done, }: {
|
|
926
|
+
columns: object[];
|
|
927
|
+
layout: Layout;
|
|
928
|
+
fixed: object;
|
|
929
|
+
view_when_done: boolean;
|
|
930
|
+
formula_destinations: object[];
|
|
931
|
+
}, state: object, body: any, { res, req, redirect }: {
|
|
932
|
+
res: object;
|
|
933
|
+
req: object;
|
|
934
|
+
redirect: string;
|
|
935
|
+
}, { tryInsertQuery, tryUpdateQuery, getRowQuery, saveFileQuery, optionsQuery, getRowByIdQuery, }: {
|
|
936
|
+
tryInsertQuery: any;
|
|
937
|
+
tryUpdateQuery: any;
|
|
938
|
+
getRowQuery: any;
|
|
939
|
+
saveFileQuery: any;
|
|
940
|
+
optionsQuery: any;
|
|
941
|
+
getRowByIdQuery: any;
|
|
942
|
+
}, remote: any) => Promise<void>;
|
|
943
|
+
get_state_fields: (table_id: any, viewname: any, { columns }: {
|
|
944
|
+
columns: any;
|
|
945
|
+
}) => Promise<object[]>;
|
|
946
|
+
initial_config: Function;
|
|
947
|
+
display_state_form: boolean;
|
|
948
|
+
authorise_post: ({ body, table_id, req }: {
|
|
949
|
+
body: object;
|
|
950
|
+
table_id: string;
|
|
951
|
+
req: object;
|
|
952
|
+
}, { authorizePostQuery }: {
|
|
953
|
+
authorizePostQuery: any;
|
|
954
|
+
}) => Promise<boolean>;
|
|
955
|
+
authorise_get: ({ query, table_id, req }: {
|
|
956
|
+
query: object;
|
|
957
|
+
rest: any;
|
|
958
|
+
}, { authorizeGetQuery }: {
|
|
959
|
+
authorizeGetQuery: any;
|
|
960
|
+
}) => Promise<boolean>;
|
|
961
|
+
getStringsForI18n({ layout }: {
|
|
962
|
+
layout: Layout;
|
|
963
|
+
}): string[];
|
|
964
|
+
queries: ({ table_id, name, configuration: { columns, default_state, layout, auto_save, split_paste, destination_type, }, req, res, }: {
|
|
965
|
+
table_id: any;
|
|
966
|
+
name: any;
|
|
967
|
+
configuration: {
|
|
968
|
+
columns: any;
|
|
969
|
+
default_state: any;
|
|
970
|
+
layout: any;
|
|
971
|
+
auto_save: any;
|
|
972
|
+
split_paste: any;
|
|
973
|
+
destination_type: any;
|
|
974
|
+
};
|
|
975
|
+
req: any;
|
|
976
|
+
res: any;
|
|
977
|
+
}) => {
|
|
978
|
+
editQuery(state: any, mobileReferrer: any): Promise<import("../models/form")>;
|
|
979
|
+
editManyQuery(state: any, { limit, offset, orderBy, orderDesc, where }: {
|
|
980
|
+
limit: any;
|
|
981
|
+
offset: any;
|
|
982
|
+
orderBy: any;
|
|
983
|
+
orderDesc: any;
|
|
984
|
+
where: any;
|
|
985
|
+
}): Promise<{
|
|
986
|
+
table: import("../models/table") | null;
|
|
987
|
+
fields: import("../models/field")[];
|
|
988
|
+
rows: import("@saltcorn/db-common/internal").Row[];
|
|
989
|
+
}>;
|
|
990
|
+
tryInsertQuery(row: any): Promise<{
|
|
991
|
+
error: string;
|
|
992
|
+
} | {
|
|
993
|
+
success: any;
|
|
994
|
+
}>;
|
|
995
|
+
tryUpdateQuery(row: any, id: any): Promise<any>;
|
|
996
|
+
saveFileQuery(fieldVal: any, fieldId: any, fieldView: any, row: any): Promise<string | number>;
|
|
997
|
+
authorizePostQuery(body: any, table_id: any): Promise<boolean | "" | null | undefined>;
|
|
998
|
+
authorizeGetQuery(query: any, table_id: any): Promise<string | boolean | null | undefined>;
|
|
999
|
+
getRowQuery(table_id: any, view_select: any, row_id: any): Promise<import("@saltcorn/db-common/internal").Row[]>;
|
|
1000
|
+
getRowByIdQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1001
|
+
actionQuery(): Promise<{
|
|
1002
|
+
json: any;
|
|
1003
|
+
}>;
|
|
1004
|
+
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1005
|
+
updateMatchingQuery(where: any, updateVals: any, repeatFields: any, childRows: any): Promise<any[] | {
|
|
1006
|
+
rowError: any;
|
|
1007
|
+
inEditError?: undefined;
|
|
1008
|
+
error?: undefined;
|
|
1009
|
+
} | {
|
|
1010
|
+
inEditError: any;
|
|
1011
|
+
rowError?: undefined;
|
|
1012
|
+
error?: undefined;
|
|
1013
|
+
} | {
|
|
1014
|
+
error: any;
|
|
1015
|
+
rowError?: undefined;
|
|
1016
|
+
inEditError?: undefined;
|
|
1017
|
+
}>;
|
|
1018
|
+
};
|
|
1019
|
+
routes: {
|
|
1020
|
+
run_action: (table_id: number, viewname: any, { columns, layout }: {
|
|
1021
|
+
columns: object[];
|
|
1022
|
+
layout: any;
|
|
1023
|
+
}, body: any, { req, res }: {
|
|
1024
|
+
req: object;
|
|
1025
|
+
res: any;
|
|
1026
|
+
}, { actionQuery }: {
|
|
1027
|
+
actionQuery: any;
|
|
1028
|
+
}) => Promise<object>;
|
|
1029
|
+
update_matching_rows: (table_id: any, viewname: any, { columns, layout, fixed, view_when_done, formula_destinations, auto_save, destination_type, dest_url_formula, page_when_done, }: {
|
|
1030
|
+
columns: any;
|
|
1031
|
+
layout: any;
|
|
1032
|
+
fixed: any;
|
|
1033
|
+
view_when_done: any;
|
|
1034
|
+
formula_destinations: any;
|
|
1035
|
+
auto_save: any;
|
|
1036
|
+
destination_type: any;
|
|
1037
|
+
dest_url_formula: any;
|
|
1038
|
+
page_when_done: any;
|
|
1039
|
+
}, body: any, { req, res, redirect }: {
|
|
1040
|
+
req: any;
|
|
1041
|
+
res: any;
|
|
1042
|
+
redirect: any;
|
|
1043
|
+
}, { updateMatchingQuery, getRowQuery, saveFileQuery, optionsQuery, getRowByIdQuery, }: {
|
|
1044
|
+
updateMatchingQuery: any;
|
|
1045
|
+
getRowQuery: any;
|
|
1046
|
+
saveFileQuery: any;
|
|
1047
|
+
optionsQuery: any;
|
|
1048
|
+
getRowByIdQuery: any;
|
|
1049
|
+
}) => Promise<void>;
|
|
1050
|
+
};
|
|
1051
|
+
configCheck: (view: any) => Promise<{
|
|
1052
|
+
errors: string[];
|
|
1053
|
+
warnings: string[];
|
|
1054
|
+
}>;
|
|
1055
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1056
|
+
} | {
|
|
1057
|
+
name: string;
|
|
1058
|
+
description: string;
|
|
1059
|
+
get_state_fields: () => object[];
|
|
1060
|
+
configuration_workflow: () => import("../models/workflow");
|
|
1061
|
+
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
1062
|
+
columns: object[];
|
|
1063
|
+
layout: object;
|
|
1064
|
+
}, state: object, extra: object, { distinctValuesQuery }: {
|
|
1065
|
+
distinctValuesQuery: any;
|
|
1066
|
+
}) => Promise<Layout>;
|
|
1067
|
+
initial_config: () => Promise<object>;
|
|
1068
|
+
display_state_form: boolean;
|
|
1069
|
+
getStringsForI18n({ layout }: {
|
|
1070
|
+
layout: any;
|
|
1071
|
+
}): string[];
|
|
1072
|
+
routes: {
|
|
1073
|
+
run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
|
|
1074
|
+
req: any;
|
|
1075
|
+
res: any;
|
|
1076
|
+
}, { actionQuery }: {
|
|
1077
|
+
actionQuery: any;
|
|
1078
|
+
}) => Promise<any>;
|
|
1079
|
+
};
|
|
1080
|
+
queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
|
|
1081
|
+
table_id: any;
|
|
1082
|
+
viewname: any;
|
|
1083
|
+
configuration: {
|
|
1084
|
+
columns: any;
|
|
1085
|
+
};
|
|
1086
|
+
req: any;
|
|
1087
|
+
res: any;
|
|
1088
|
+
exttable_name: any;
|
|
1089
|
+
}) => {
|
|
1090
|
+
actionQuery(state: any, rndid: any): Promise<{
|
|
1091
|
+
json: any;
|
|
1092
|
+
}>;
|
|
1093
|
+
distinctValuesQuery(state: any): Promise<{
|
|
1094
|
+
distinct_values: {};
|
|
1095
|
+
role: any;
|
|
1096
|
+
}>;
|
|
1097
|
+
};
|
|
1044
1098
|
})[];
|
|
1045
1099
|
import fileviews = require("./fileviews");
|
|
1046
1100
|
import actions = require("./actions");
|