@saltcorn/data 0.9.0-beta.1 → 0.9.0-beta.2
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/fieldviews.d.ts +9 -0
- package/dist/base-plugin/fieldviews.d.ts.map +1 -1
- package/dist/base-plugin/fieldviews.js +10 -0
- 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 +364 -322
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/base-plugin/types.d.ts +75 -0
- package/dist/base-plugin/types.d.ts.map +1 -1
- package/dist/base-plugin/types.js +54 -4
- package/dist/base-plugin/types.js.map +1 -1
- package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/show.js +6 -0
- package/dist/base-plugin/viewtemplates/show.js.map +1 -1
- package/dist/db/state.d.ts +3 -1
- package/dist/db/state.d.ts.map +1 -1
- package/dist/db/state.js +5 -0
- 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/plugin-helper.d.ts.map +1 -1
- package/dist/plugin-helper.js +10 -0
- package/dist/plugin-helper.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,98 +1,4 @@
|
|
|
1
1
|
export const types: ({
|
|
2
|
-
name: string;
|
|
3
|
-
sql_name: string;
|
|
4
|
-
js_type: string;
|
|
5
|
-
contract: () => Function;
|
|
6
|
-
fieldviews: {
|
|
7
|
-
show: {
|
|
8
|
-
isEdit: boolean;
|
|
9
|
-
run: (v: any) => any;
|
|
10
|
-
};
|
|
11
|
-
checkboxes: {
|
|
12
|
-
isEdit: boolean;
|
|
13
|
-
run: (v: any) => any;
|
|
14
|
-
};
|
|
15
|
-
TrueFalse: {
|
|
16
|
-
isEdit: boolean;
|
|
17
|
-
run: (v: any) => "" | "True" | "False";
|
|
18
|
-
};
|
|
19
|
-
edit: {
|
|
20
|
-
isEdit: boolean;
|
|
21
|
-
configFields: {
|
|
22
|
-
name: string;
|
|
23
|
-
label: string;
|
|
24
|
-
type: string;
|
|
25
|
-
attributes: {
|
|
26
|
-
options: string[];
|
|
27
|
-
};
|
|
28
|
-
}[];
|
|
29
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
30
|
-
};
|
|
31
|
-
switch: {
|
|
32
|
-
isEdit: boolean;
|
|
33
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
34
|
-
};
|
|
35
|
-
tristate: {
|
|
36
|
-
isEdit: boolean;
|
|
37
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
attributes: object[];
|
|
41
|
-
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
42
|
-
read: (v: object) => boolean | null;
|
|
43
|
-
readFromDB: (v: object) => object;
|
|
44
|
-
listAs: (v: object) => object;
|
|
45
|
-
validate: () => boolean;
|
|
46
|
-
} | {
|
|
47
|
-
name: string;
|
|
48
|
-
sql_name: string;
|
|
49
|
-
js_type: string;
|
|
50
|
-
contract: () => Function;
|
|
51
|
-
attributes: object[];
|
|
52
|
-
fieldviews: {
|
|
53
|
-
show: {
|
|
54
|
-
isEdit: boolean;
|
|
55
|
-
run: (d: any, req: any) => any;
|
|
56
|
-
};
|
|
57
|
-
showDay: {
|
|
58
|
-
isEdit: boolean;
|
|
59
|
-
run: (d: any, req: any) => any;
|
|
60
|
-
};
|
|
61
|
-
format: {
|
|
62
|
-
isEdit: boolean;
|
|
63
|
-
configFields: {
|
|
64
|
-
name: string;
|
|
65
|
-
label: string;
|
|
66
|
-
type: string;
|
|
67
|
-
sublabel: string;
|
|
68
|
-
}[];
|
|
69
|
-
run: (d: any, req: any, options: any) => any;
|
|
70
|
-
};
|
|
71
|
-
relative: {
|
|
72
|
-
isEdit: boolean;
|
|
73
|
-
run: (d: any, req: any) => string;
|
|
74
|
-
};
|
|
75
|
-
yearsAgo: {
|
|
76
|
-
isEdit: boolean;
|
|
77
|
-
run: (d: any, req: any) => string;
|
|
78
|
-
};
|
|
79
|
-
edit: {
|
|
80
|
-
isEdit: boolean;
|
|
81
|
-
blockDisplay: boolean;
|
|
82
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
83
|
-
};
|
|
84
|
-
editDay: {
|
|
85
|
-
isEdit: boolean;
|
|
86
|
-
blockDisplay: boolean;
|
|
87
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
presets: {
|
|
91
|
-
Now: () => Date;
|
|
92
|
-
};
|
|
93
|
-
read: (v: object, attrs: object) => object;
|
|
94
|
-
validate: () => boolean;
|
|
95
|
-
} | {
|
|
96
2
|
name: string;
|
|
97
3
|
sql_name: string;
|
|
98
4
|
js_type: string;
|
|
@@ -103,14 +9,17 @@ export const types: ({
|
|
|
103
9
|
fieldviews: {
|
|
104
10
|
as_text: {
|
|
105
11
|
isEdit: boolean;
|
|
12
|
+
description: string;
|
|
106
13
|
run: (s: any) => string;
|
|
107
14
|
};
|
|
108
15
|
preFormatted: {
|
|
109
16
|
isEdit: boolean;
|
|
17
|
+
description: string;
|
|
110
18
|
run: (s: any) => any;
|
|
111
19
|
};
|
|
112
20
|
code: {
|
|
113
21
|
isEdit: boolean;
|
|
22
|
+
description: string;
|
|
114
23
|
run: (s: any) => any;
|
|
115
24
|
};
|
|
116
25
|
as_link: {
|
|
@@ -120,20 +29,24 @@ export const types: ({
|
|
|
120
29
|
type: string;
|
|
121
30
|
sublabel: string;
|
|
122
31
|
}[];
|
|
32
|
+
description: string;
|
|
123
33
|
isEdit: boolean;
|
|
124
34
|
run: (s: any, req: any, attrs?: {}) => any;
|
|
125
35
|
};
|
|
126
36
|
img_from_url: {
|
|
127
37
|
isEdit: boolean;
|
|
38
|
+
description: string;
|
|
128
39
|
run: (s: any, req: any, attrs: any) => any;
|
|
129
40
|
};
|
|
130
41
|
as_header: {
|
|
131
42
|
isEdit: boolean;
|
|
43
|
+
description: string;
|
|
132
44
|
run: (s: any) => any;
|
|
133
45
|
};
|
|
134
46
|
edit: {
|
|
135
47
|
isEdit: boolean;
|
|
136
48
|
blockDisplay: boolean;
|
|
49
|
+
description: string;
|
|
137
50
|
configFields: (field: any) => ({
|
|
138
51
|
name: string;
|
|
139
52
|
label: string;
|
|
@@ -161,6 +74,7 @@ export const types: ({
|
|
|
161
74
|
fill_formula_btn: {
|
|
162
75
|
isEdit: boolean;
|
|
163
76
|
blockDisplay: boolean;
|
|
77
|
+
description: string;
|
|
164
78
|
configFields: ({
|
|
165
79
|
name: string;
|
|
166
80
|
label: string;
|
|
@@ -205,6 +119,7 @@ export const types: ({
|
|
|
205
119
|
make_unique: {
|
|
206
120
|
isEdit: boolean;
|
|
207
121
|
blockDisplay: boolean;
|
|
122
|
+
description: string;
|
|
208
123
|
configFields: ({
|
|
209
124
|
name: string;
|
|
210
125
|
label: string;
|
|
@@ -232,6 +147,7 @@ export const types: ({
|
|
|
232
147
|
textarea: {
|
|
233
148
|
isEdit: boolean;
|
|
234
149
|
blockDisplay: boolean;
|
|
150
|
+
description: string;
|
|
235
151
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
236
152
|
};
|
|
237
153
|
radio_group: {
|
|
@@ -241,11 +157,13 @@ export const types: ({
|
|
|
241
157
|
name: string;
|
|
242
158
|
label: string;
|
|
243
159
|
}[];
|
|
160
|
+
description: string;
|
|
244
161
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
245
162
|
};
|
|
246
163
|
checkbox_group: {
|
|
247
164
|
isEdit: boolean;
|
|
248
165
|
isFilter: boolean;
|
|
166
|
+
description: string;
|
|
249
167
|
configFields: {
|
|
250
168
|
type: string;
|
|
251
169
|
name: string;
|
|
@@ -256,6 +174,7 @@ export const types: ({
|
|
|
256
174
|
password: {
|
|
257
175
|
isEdit: boolean;
|
|
258
176
|
blockDisplay: boolean;
|
|
177
|
+
description: string;
|
|
259
178
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
260
179
|
};
|
|
261
180
|
};
|
|
@@ -284,11 +203,13 @@ export const types: ({
|
|
|
284
203
|
fieldviews: {
|
|
285
204
|
show: {
|
|
286
205
|
isEdit: boolean;
|
|
206
|
+
description: string;
|
|
287
207
|
run: (s: any) => string;
|
|
288
208
|
};
|
|
289
209
|
edit: {
|
|
290
210
|
isEdit: boolean;
|
|
291
211
|
blockDisplay: boolean;
|
|
212
|
+
description: string;
|
|
292
213
|
configFields: {
|
|
293
214
|
name: string;
|
|
294
215
|
label: string;
|
|
@@ -303,6 +224,7 @@ export const types: ({
|
|
|
303
224
|
required: boolean;
|
|
304
225
|
}[];
|
|
305
226
|
isEdit: boolean;
|
|
227
|
+
description: string;
|
|
306
228
|
blockDisplay: boolean;
|
|
307
229
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any) => any;
|
|
308
230
|
};
|
|
@@ -315,6 +237,7 @@ export const types: ({
|
|
|
315
237
|
isEdit: boolean;
|
|
316
238
|
isFilter: boolean;
|
|
317
239
|
blockDisplay: boolean;
|
|
240
|
+
description: string;
|
|
318
241
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
319
242
|
};
|
|
320
243
|
progress_bar: {
|
|
@@ -330,6 +253,7 @@ export const types: ({
|
|
|
330
253
|
required?: undefined;
|
|
331
254
|
})[];
|
|
332
255
|
isEdit: boolean;
|
|
256
|
+
description: string;
|
|
333
257
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
334
258
|
};
|
|
335
259
|
heat_cell: {
|
|
@@ -365,6 +289,7 @@ export const types: ({
|
|
|
365
289
|
attributes?: undefined;
|
|
366
290
|
})[];
|
|
367
291
|
isEdit: boolean;
|
|
292
|
+
description: string;
|
|
368
293
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
369
294
|
};
|
|
370
295
|
above_input: {
|
|
@@ -390,6 +315,7 @@ export const types: ({
|
|
|
390
315
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
391
316
|
};
|
|
392
317
|
show_star_rating: {
|
|
318
|
+
description: string;
|
|
393
319
|
configFields: (field: any) => {
|
|
394
320
|
name: string;
|
|
395
321
|
type: string;
|
|
@@ -401,6 +327,7 @@ export const types: ({
|
|
|
401
327
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
402
328
|
};
|
|
403
329
|
edit_star_rating: {
|
|
330
|
+
description: string;
|
|
404
331
|
configFields: (field: any) => {
|
|
405
332
|
name: string;
|
|
406
333
|
type: string;
|
|
@@ -416,6 +343,113 @@ export const types: ({
|
|
|
416
343
|
validate_attributes: ({ min, max }: object) => boolean;
|
|
417
344
|
read: (v: object) => object;
|
|
418
345
|
validate: ({ min, max }: object) => boolean;
|
|
346
|
+
} | {
|
|
347
|
+
name: string;
|
|
348
|
+
sql_name: string;
|
|
349
|
+
js_type: string;
|
|
350
|
+
contract: () => Function;
|
|
351
|
+
fieldviews: {
|
|
352
|
+
show: {
|
|
353
|
+
isEdit: boolean;
|
|
354
|
+
description: string;
|
|
355
|
+
run: (v: any) => any;
|
|
356
|
+
};
|
|
357
|
+
checkboxes: {
|
|
358
|
+
isEdit: boolean;
|
|
359
|
+
description: string;
|
|
360
|
+
run: (v: any) => any;
|
|
361
|
+
};
|
|
362
|
+
TrueFalse: {
|
|
363
|
+
isEdit: boolean;
|
|
364
|
+
description: string;
|
|
365
|
+
run: (v: any) => "" | "True" | "False";
|
|
366
|
+
};
|
|
367
|
+
edit: {
|
|
368
|
+
isEdit: boolean;
|
|
369
|
+
description: string;
|
|
370
|
+
configFields: {
|
|
371
|
+
name: string;
|
|
372
|
+
label: string;
|
|
373
|
+
type: string;
|
|
374
|
+
attributes: {
|
|
375
|
+
options: string[];
|
|
376
|
+
};
|
|
377
|
+
}[];
|
|
378
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
379
|
+
};
|
|
380
|
+
switch: {
|
|
381
|
+
isEdit: boolean;
|
|
382
|
+
description: string;
|
|
383
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
384
|
+
};
|
|
385
|
+
tristate: {
|
|
386
|
+
isEdit: boolean;
|
|
387
|
+
description: string;
|
|
388
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
attributes: object[];
|
|
392
|
+
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
393
|
+
read: (v: object) => boolean | null;
|
|
394
|
+
readFromDB: (v: object) => object;
|
|
395
|
+
listAs: (v: object) => object;
|
|
396
|
+
validate: () => boolean;
|
|
397
|
+
} | {
|
|
398
|
+
name: string;
|
|
399
|
+
sql_name: string;
|
|
400
|
+
js_type: string;
|
|
401
|
+
contract: () => Function;
|
|
402
|
+
attributes: object[];
|
|
403
|
+
fieldviews: {
|
|
404
|
+
show: {
|
|
405
|
+
isEdit: boolean;
|
|
406
|
+
description: string;
|
|
407
|
+
run: (d: any, req: any) => any;
|
|
408
|
+
};
|
|
409
|
+
showDay: {
|
|
410
|
+
isEdit: boolean;
|
|
411
|
+
description: string;
|
|
412
|
+
run: (d: any, req: any) => any;
|
|
413
|
+
};
|
|
414
|
+
format: {
|
|
415
|
+
isEdit: boolean;
|
|
416
|
+
description: string;
|
|
417
|
+
configFields: {
|
|
418
|
+
name: string;
|
|
419
|
+
label: string;
|
|
420
|
+
type: string;
|
|
421
|
+
sublabel: string;
|
|
422
|
+
}[];
|
|
423
|
+
run: (d: any, req: any, options: any) => any;
|
|
424
|
+
};
|
|
425
|
+
relative: {
|
|
426
|
+
isEdit: boolean;
|
|
427
|
+
description: string;
|
|
428
|
+
run: (d: any, req: any) => string;
|
|
429
|
+
};
|
|
430
|
+
yearsAgo: {
|
|
431
|
+
isEdit: boolean;
|
|
432
|
+
description: string;
|
|
433
|
+
run: (d: any, req: any) => string;
|
|
434
|
+
};
|
|
435
|
+
edit: {
|
|
436
|
+
isEdit: boolean;
|
|
437
|
+
blockDisplay: boolean;
|
|
438
|
+
description: string;
|
|
439
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
440
|
+
};
|
|
441
|
+
editDay: {
|
|
442
|
+
isEdit: boolean;
|
|
443
|
+
blockDisplay: boolean;
|
|
444
|
+
description: string;
|
|
445
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
presets: {
|
|
449
|
+
Now: () => Date;
|
|
450
|
+
};
|
|
451
|
+
read: (v: object, attrs: object) => object;
|
|
452
|
+
validate: () => boolean;
|
|
419
453
|
} | {
|
|
420
454
|
name: string;
|
|
421
455
|
sql_name: string;
|
|
@@ -427,11 +461,13 @@ export const types: ({
|
|
|
427
461
|
fieldviews: {
|
|
428
462
|
show: {
|
|
429
463
|
isEdit: boolean;
|
|
464
|
+
description: string;
|
|
430
465
|
run: (s: any) => string;
|
|
431
466
|
};
|
|
432
467
|
edit: {
|
|
433
468
|
isEdit: boolean;
|
|
434
469
|
blockDisplay: boolean;
|
|
470
|
+
description: string;
|
|
435
471
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
436
472
|
};
|
|
437
473
|
number_slider: {
|
|
@@ -441,6 +477,7 @@ export const types: ({
|
|
|
441
477
|
required: boolean;
|
|
442
478
|
}[];
|
|
443
479
|
isEdit: boolean;
|
|
480
|
+
description: string;
|
|
444
481
|
blockDisplay: boolean;
|
|
445
482
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any) => any;
|
|
446
483
|
};
|
|
@@ -453,6 +490,7 @@ export const types: ({
|
|
|
453
490
|
isEdit: boolean;
|
|
454
491
|
isFilter: boolean;
|
|
455
492
|
blockDisplay: boolean;
|
|
493
|
+
description: string;
|
|
456
494
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
457
495
|
};
|
|
458
496
|
progress_bar: {
|
|
@@ -468,6 +506,7 @@ export const types: ({
|
|
|
468
506
|
required?: undefined;
|
|
469
507
|
})[];
|
|
470
508
|
isEdit: boolean;
|
|
509
|
+
description: string;
|
|
471
510
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
472
511
|
};
|
|
473
512
|
heat_cell: {
|
|
@@ -503,6 +542,7 @@ export const types: ({
|
|
|
503
542
|
attributes?: undefined;
|
|
504
543
|
})[];
|
|
505
544
|
isEdit: boolean;
|
|
545
|
+
description: string;
|
|
506
546
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
507
547
|
};
|
|
508
548
|
above_input: {
|
|
@@ -529,11 +569,13 @@ export const types: ({
|
|
|
529
569
|
fieldviews: {
|
|
530
570
|
show: {
|
|
531
571
|
isEdit: boolean;
|
|
572
|
+
description: string;
|
|
532
573
|
run: (s: any) => any;
|
|
533
574
|
};
|
|
534
575
|
edit: {
|
|
535
576
|
isEdit: boolean;
|
|
536
577
|
blockDisplay: boolean;
|
|
578
|
+
description: string;
|
|
537
579
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
538
580
|
};
|
|
539
581
|
};
|
|
@@ -544,46 +586,64 @@ export const types: ({
|
|
|
544
586
|
export const viewtemplates: ({
|
|
545
587
|
name: string;
|
|
546
588
|
description: string;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
589
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
590
|
+
run: (table_id: string | number, viewname: string, { columns, view_to_create, create_view_display, create_view_label, default_state, create_view_location, create_link_style, create_link_size, }: {
|
|
550
591
|
columns: object[];
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
592
|
+
view_to_create?: string | undefined;
|
|
593
|
+
create_view_display: string;
|
|
594
|
+
create_view_label?: string | undefined;
|
|
595
|
+
default_state?: object | undefined;
|
|
596
|
+
create_view_location?: string | undefined;
|
|
597
|
+
}, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
|
|
598
|
+
listQuery: any;
|
|
599
|
+
}) => Promise<any>;
|
|
600
|
+
view_quantity: string;
|
|
601
|
+
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
602
|
+
columns: object[];
|
|
603
|
+
}) => Function;
|
|
604
|
+
initial_config: Function;
|
|
605
|
+
on_delete: (table_id: any, viewname: string, { default_state }: {
|
|
606
|
+
default_state: any;
|
|
607
|
+
}) => Promise<void>;
|
|
560
608
|
routes: {
|
|
561
|
-
run_action: (table_id:
|
|
562
|
-
|
|
609
|
+
run_action: (table_id: number, viewname: any, { columns, layout }: {
|
|
610
|
+
columns: object[];
|
|
611
|
+
layout: any;
|
|
612
|
+
}, body: object, { req, res }: {
|
|
613
|
+
req: object;
|
|
563
614
|
res: any;
|
|
564
|
-
}, {
|
|
565
|
-
|
|
566
|
-
}) => Promise<
|
|
615
|
+
}, { getRowQuery }: {
|
|
616
|
+
getRowQuery: any;
|
|
617
|
+
}) => Promise<object>;
|
|
567
618
|
};
|
|
568
|
-
|
|
619
|
+
display_state_form: (opts: object) => boolean;
|
|
620
|
+
default_state_form: ({ default_state }: object) => boolean;
|
|
621
|
+
getStringsForI18n({ columns, create_view_label }: {
|
|
622
|
+
columns: any;
|
|
623
|
+
create_view_label: any;
|
|
624
|
+
}): string[];
|
|
625
|
+
queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
|
|
569
626
|
table_id: any;
|
|
570
|
-
|
|
627
|
+
exttable_name: any;
|
|
628
|
+
name: any;
|
|
571
629
|
configuration: {
|
|
572
630
|
columns: any;
|
|
631
|
+
default_state: any;
|
|
573
632
|
};
|
|
574
633
|
req: any;
|
|
575
|
-
res: any;
|
|
576
|
-
exttable_name: any;
|
|
577
634
|
}) => {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
distinctValuesQuery(state: any): Promise<{
|
|
582
|
-
distinct_values: {};
|
|
583
|
-
role: any;
|
|
635
|
+
listQuery(state: any, stateHash: any): Promise<{
|
|
636
|
+
rows: import("@saltcorn/db-common/internal").Row[];
|
|
637
|
+
rowCount: number;
|
|
584
638
|
}>;
|
|
639
|
+
getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
585
640
|
};
|
|
586
|
-
|
|
641
|
+
configCheck: (view: any) => Promise<{
|
|
642
|
+
errors: string[];
|
|
643
|
+
warnings: string[];
|
|
644
|
+
}>;
|
|
645
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
646
|
+
} | {
|
|
587
647
|
name: string;
|
|
588
648
|
description: string;
|
|
589
649
|
configuration_workflow: (req: object) => import("../models/workflow");
|
|
@@ -732,146 +792,6 @@ export const viewtemplates: ({
|
|
|
732
792
|
warnings: string[];
|
|
733
793
|
}>;
|
|
734
794
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
735
|
-
} | {
|
|
736
|
-
name: string;
|
|
737
|
-
description: string;
|
|
738
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
739
|
-
run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
740
|
-
participant_field: string;
|
|
741
|
-
msg_relation: string;
|
|
742
|
-
msgsender_field: any;
|
|
743
|
-
msgview: string;
|
|
744
|
-
msgform: string;
|
|
745
|
-
participant_maxread_field: string;
|
|
746
|
-
}, state: object, { req, res }: {
|
|
747
|
-
req: object;
|
|
748
|
-
res: object;
|
|
749
|
-
}, { getRowQuery, updateQuery, optionsQuery }: {
|
|
750
|
-
getRowQuery: any;
|
|
751
|
-
updateQuery: any;
|
|
752
|
-
optionsQuery: any;
|
|
753
|
-
}) => Promise<div>;
|
|
754
|
-
get_state_fields: () => object[];
|
|
755
|
-
display_state_form: boolean;
|
|
756
|
-
routes: {
|
|
757
|
-
submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
758
|
-
participant_field: string;
|
|
759
|
-
msg_relation: string;
|
|
760
|
-
msgsender_field: any;
|
|
761
|
-
msgview: string;
|
|
762
|
-
msgform: string;
|
|
763
|
-
participant_maxread_field: string;
|
|
764
|
-
}, body: any, { req, res }: {
|
|
765
|
-
req: object;
|
|
766
|
-
res: object;
|
|
767
|
-
}, { submitAjaxQuery }: {
|
|
768
|
-
submitAjaxQuery: any;
|
|
769
|
-
}) => Promise<object>;
|
|
770
|
-
ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
|
|
771
|
-
participant_field: string;
|
|
772
|
-
participant_maxread_field: string;
|
|
773
|
-
}, body: any, { req, res }: {
|
|
774
|
-
req: object;
|
|
775
|
-
res: object;
|
|
776
|
-
}, { ackReadQuery }: {
|
|
777
|
-
ackReadQuery: any;
|
|
778
|
-
}) => Promise<void>;
|
|
779
|
-
fetch_older_msg: (table_id: any, viewname: any, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: object, body: object, { req, res }: string, { fetchOlderMsgQuery }: any) => Promise<object>;
|
|
780
|
-
};
|
|
781
|
-
noAutoTest: boolean;
|
|
782
|
-
authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
|
|
783
|
-
participant_field: object;
|
|
784
|
-
}, room_id: string, user: object) => Promise<object>;
|
|
785
|
-
virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
786
|
-
participant_field: any;
|
|
787
|
-
msg_relation: string;
|
|
788
|
-
msgsender_field: string;
|
|
789
|
-
msgview: string;
|
|
790
|
-
msgform: any;
|
|
791
|
-
participant_maxread_field: any;
|
|
792
|
-
}) => object[];
|
|
793
|
-
getStringsForI18n(): object[];
|
|
794
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
795
|
-
table_id: any;
|
|
796
|
-
viewname: any;
|
|
797
|
-
configuration: {
|
|
798
|
-
columns: any;
|
|
799
|
-
default_state: any;
|
|
800
|
-
};
|
|
801
|
-
req: any;
|
|
802
|
-
}) => {
|
|
803
|
-
getRowQuery(state_id: any, part_table_name: any, part_user_field: any, part_key_to_room: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
804
|
-
updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
|
|
805
|
-
submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
|
|
806
|
-
json: {
|
|
807
|
-
msgid: {
|
|
808
|
-
error: string;
|
|
809
|
-
} | {
|
|
810
|
-
success: any;
|
|
811
|
-
};
|
|
812
|
-
error?: undefined;
|
|
813
|
-
};
|
|
814
|
-
} | {
|
|
815
|
-
json: {
|
|
816
|
-
error: any;
|
|
817
|
-
msgid?: undefined;
|
|
818
|
-
};
|
|
819
|
-
}>;
|
|
820
|
-
ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
|
|
821
|
-
json: {
|
|
822
|
-
error: string;
|
|
823
|
-
success?: undefined;
|
|
824
|
-
};
|
|
825
|
-
} | {
|
|
826
|
-
json: {
|
|
827
|
-
success: string;
|
|
828
|
-
error?: undefined;
|
|
829
|
-
};
|
|
830
|
-
}>;
|
|
831
|
-
fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
832
|
-
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
833
|
-
};
|
|
834
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
835
|
-
} | {
|
|
836
|
-
name: string;
|
|
837
|
-
description: string;
|
|
838
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
839
|
-
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 }: {
|
|
840
|
-
show_view: string;
|
|
841
|
-
order_field: name;
|
|
842
|
-
descending: boolean;
|
|
843
|
-
view_to_create?: string | undefined;
|
|
844
|
-
create_view_display: string;
|
|
845
|
-
in_card: boolean;
|
|
846
|
-
masonry_columns: string;
|
|
847
|
-
rows_per_page?: number | undefined;
|
|
848
|
-
hide_pagination: boolean;
|
|
849
|
-
create_view_label?: string | undefined;
|
|
850
|
-
create_view_location?: string | undefined;
|
|
851
|
-
always_create_view: boolean;
|
|
852
|
-
cols: any;
|
|
853
|
-
}, state: object, extraArgs: any, { countRowsQuery }: {
|
|
854
|
-
countRowsQuery: any;
|
|
855
|
-
}) => Promise<div>;
|
|
856
|
-
get_state_fields: (table_id: number, viewname: any, { show_view }: {
|
|
857
|
-
show_view: any;
|
|
858
|
-
}) => Promise<import("../models/field")>;
|
|
859
|
-
display_state_form: boolean;
|
|
860
|
-
getStringsForI18n({ create_view_label }: {
|
|
861
|
-
create_view_label: any;
|
|
862
|
-
}): string[] | Object[];
|
|
863
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
864
|
-
table_id: any;
|
|
865
|
-
viewname: any;
|
|
866
|
-
configuration: {
|
|
867
|
-
columns: any;
|
|
868
|
-
default_state: any;
|
|
869
|
-
};
|
|
870
|
-
req: any;
|
|
871
|
-
}) => {
|
|
872
|
-
countRowsQuery(state: any): Promise<number>;
|
|
873
|
-
};
|
|
874
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
875
795
|
} | {
|
|
876
796
|
name: string;
|
|
877
797
|
description: string;
|
|
@@ -945,66 +865,6 @@ export const viewtemplates: ({
|
|
|
945
865
|
warnings: string[];
|
|
946
866
|
}>;
|
|
947
867
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
948
|
-
} | {
|
|
949
|
-
name: string;
|
|
950
|
-
description: string;
|
|
951
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
952
|
-
run: (table_id: string | number, viewname: string, { columns, view_to_create, create_view_display, create_view_label, default_state, create_view_location, create_link_style, create_link_size, }: {
|
|
953
|
-
columns: object[];
|
|
954
|
-
view_to_create?: string | undefined;
|
|
955
|
-
create_view_display: string;
|
|
956
|
-
create_view_label?: string | undefined;
|
|
957
|
-
default_state?: object | undefined;
|
|
958
|
-
create_view_location?: string | undefined;
|
|
959
|
-
}, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
|
|
960
|
-
listQuery: any;
|
|
961
|
-
}) => Promise<any>;
|
|
962
|
-
view_quantity: string;
|
|
963
|
-
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
964
|
-
columns: object[];
|
|
965
|
-
}) => Function;
|
|
966
|
-
initial_config: Function;
|
|
967
|
-
on_delete: (table_id: any, viewname: string, { default_state }: {
|
|
968
|
-
default_state: any;
|
|
969
|
-
}) => Promise<void>;
|
|
970
|
-
routes: {
|
|
971
|
-
run_action: (table_id: number, viewname: any, { columns, layout }: {
|
|
972
|
-
columns: object[];
|
|
973
|
-
layout: any;
|
|
974
|
-
}, body: object, { req, res }: {
|
|
975
|
-
req: object;
|
|
976
|
-
res: any;
|
|
977
|
-
}, { getRowQuery }: {
|
|
978
|
-
getRowQuery: any;
|
|
979
|
-
}) => Promise<object>;
|
|
980
|
-
};
|
|
981
|
-
display_state_form: (opts: object) => boolean;
|
|
982
|
-
default_state_form: ({ default_state }: object) => boolean;
|
|
983
|
-
getStringsForI18n({ columns, create_view_label }: {
|
|
984
|
-
columns: any;
|
|
985
|
-
create_view_label: any;
|
|
986
|
-
}): string[];
|
|
987
|
-
queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
|
|
988
|
-
table_id: any;
|
|
989
|
-
exttable_name: any;
|
|
990
|
-
name: any;
|
|
991
|
-
configuration: {
|
|
992
|
-
columns: any;
|
|
993
|
-
default_state: any;
|
|
994
|
-
};
|
|
995
|
-
req: any;
|
|
996
|
-
}) => {
|
|
997
|
-
listQuery(state: any, stateHash: any): Promise<{
|
|
998
|
-
rows: import("@saltcorn/db-common/internal").Row[];
|
|
999
|
-
rowCount: number;
|
|
1000
|
-
}>;
|
|
1001
|
-
getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1002
|
-
};
|
|
1003
|
-
configCheck: (view: any) => Promise<{
|
|
1004
|
-
errors: string[];
|
|
1005
|
-
warnings: string[];
|
|
1006
|
-
}>;
|
|
1007
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1008
868
|
} | {
|
|
1009
869
|
name: string;
|
|
1010
870
|
description: string;
|
|
@@ -1041,6 +901,188 @@ export const viewtemplates: ({
|
|
|
1041
901
|
}) => Promise<{
|
|
1042
902
|
embeddedViews: import("../models/view")[];
|
|
1043
903
|
}>;
|
|
904
|
+
} | {
|
|
905
|
+
name: string;
|
|
906
|
+
description: string;
|
|
907
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
908
|
+
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 }: {
|
|
909
|
+
show_view: string;
|
|
910
|
+
order_field: name;
|
|
911
|
+
descending: boolean;
|
|
912
|
+
view_to_create?: string | undefined;
|
|
913
|
+
create_view_display: string;
|
|
914
|
+
in_card: boolean;
|
|
915
|
+
masonry_columns: string;
|
|
916
|
+
rows_per_page?: number | undefined;
|
|
917
|
+
hide_pagination: boolean;
|
|
918
|
+
create_view_label?: string | undefined;
|
|
919
|
+
create_view_location?: string | undefined;
|
|
920
|
+
always_create_view: boolean;
|
|
921
|
+
cols: any;
|
|
922
|
+
}, state: object, extraArgs: any, { countRowsQuery }: {
|
|
923
|
+
countRowsQuery: any;
|
|
924
|
+
}) => Promise<div>;
|
|
925
|
+
get_state_fields: (table_id: number, viewname: any, { show_view }: {
|
|
926
|
+
show_view: any;
|
|
927
|
+
}) => Promise<import("../models/field")>;
|
|
928
|
+
display_state_form: boolean;
|
|
929
|
+
getStringsForI18n({ create_view_label }: {
|
|
930
|
+
create_view_label: any;
|
|
931
|
+
}): string[] | Object[];
|
|
932
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
933
|
+
table_id: any;
|
|
934
|
+
viewname: any;
|
|
935
|
+
configuration: {
|
|
936
|
+
columns: any;
|
|
937
|
+
default_state: any;
|
|
938
|
+
};
|
|
939
|
+
req: any;
|
|
940
|
+
}) => {
|
|
941
|
+
countRowsQuery(state: any): Promise<number>;
|
|
942
|
+
};
|
|
943
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
944
|
+
} | {
|
|
945
|
+
name: string;
|
|
946
|
+
description: string;
|
|
947
|
+
get_state_fields: () => object[];
|
|
948
|
+
configuration_workflow: () => import("../models/workflow");
|
|
949
|
+
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
950
|
+
columns: object[];
|
|
951
|
+
layout: object;
|
|
952
|
+
}, state: object, extra: object, { distinctValuesQuery }: {
|
|
953
|
+
distinctValuesQuery: any;
|
|
954
|
+
}) => Promise<Layout>;
|
|
955
|
+
initial_config: () => Promise<object>;
|
|
956
|
+
display_state_form: boolean;
|
|
957
|
+
getStringsForI18n({ layout }: {
|
|
958
|
+
layout: any;
|
|
959
|
+
}): string[];
|
|
960
|
+
routes: {
|
|
961
|
+
run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
|
|
962
|
+
req: any;
|
|
963
|
+
res: any;
|
|
964
|
+
}, { actionQuery }: {
|
|
965
|
+
actionQuery: any;
|
|
966
|
+
}) => Promise<any>;
|
|
967
|
+
};
|
|
968
|
+
queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
|
|
969
|
+
table_id: any;
|
|
970
|
+
viewname: any;
|
|
971
|
+
configuration: {
|
|
972
|
+
columns: any;
|
|
973
|
+
};
|
|
974
|
+
req: any;
|
|
975
|
+
res: any;
|
|
976
|
+
exttable_name: any;
|
|
977
|
+
}) => {
|
|
978
|
+
actionQuery(state: any, rndid: any): Promise<{
|
|
979
|
+
json: any;
|
|
980
|
+
}>;
|
|
981
|
+
distinctValuesQuery(state: any): Promise<{
|
|
982
|
+
distinct_values: {};
|
|
983
|
+
role: any;
|
|
984
|
+
}>;
|
|
985
|
+
};
|
|
986
|
+
} | {
|
|
987
|
+
name: string;
|
|
988
|
+
description: string;
|
|
989
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
990
|
+
run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
991
|
+
participant_field: string;
|
|
992
|
+
msg_relation: string;
|
|
993
|
+
msgsender_field: any;
|
|
994
|
+
msgview: string;
|
|
995
|
+
msgform: string;
|
|
996
|
+
participant_maxread_field: string;
|
|
997
|
+
}, state: object, { req, res }: {
|
|
998
|
+
req: object;
|
|
999
|
+
res: object;
|
|
1000
|
+
}, { getRowQuery, updateQuery, optionsQuery }: {
|
|
1001
|
+
getRowQuery: any;
|
|
1002
|
+
updateQuery: any;
|
|
1003
|
+
optionsQuery: any;
|
|
1004
|
+
}) => Promise<div>;
|
|
1005
|
+
get_state_fields: () => object[];
|
|
1006
|
+
display_state_form: boolean;
|
|
1007
|
+
routes: {
|
|
1008
|
+
submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1009
|
+
participant_field: string;
|
|
1010
|
+
msg_relation: string;
|
|
1011
|
+
msgsender_field: any;
|
|
1012
|
+
msgview: string;
|
|
1013
|
+
msgform: string;
|
|
1014
|
+
participant_maxread_field: string;
|
|
1015
|
+
}, body: any, { req, res }: {
|
|
1016
|
+
req: object;
|
|
1017
|
+
res: object;
|
|
1018
|
+
}, { submitAjaxQuery }: {
|
|
1019
|
+
submitAjaxQuery: any;
|
|
1020
|
+
}) => Promise<object>;
|
|
1021
|
+
ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
|
|
1022
|
+
participant_field: string;
|
|
1023
|
+
participant_maxread_field: string;
|
|
1024
|
+
}, body: any, { req, res }: {
|
|
1025
|
+
req: object;
|
|
1026
|
+
res: object;
|
|
1027
|
+
}, { ackReadQuery }: {
|
|
1028
|
+
ackReadQuery: any;
|
|
1029
|
+
}) => Promise<void>;
|
|
1030
|
+
fetch_older_msg: (table_id: any, viewname: any, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: object, body: object, { req, res }: string, { fetchOlderMsgQuery }: any) => Promise<object>;
|
|
1031
|
+
};
|
|
1032
|
+
noAutoTest: boolean;
|
|
1033
|
+
authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
|
|
1034
|
+
participant_field: object;
|
|
1035
|
+
}, room_id: string, user: object) => Promise<object>;
|
|
1036
|
+
virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1037
|
+
participant_field: any;
|
|
1038
|
+
msg_relation: string;
|
|
1039
|
+
msgsender_field: string;
|
|
1040
|
+
msgview: string;
|
|
1041
|
+
msgform: any;
|
|
1042
|
+
participant_maxread_field: any;
|
|
1043
|
+
}) => object[];
|
|
1044
|
+
getStringsForI18n(): object[];
|
|
1045
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1046
|
+
table_id: any;
|
|
1047
|
+
viewname: any;
|
|
1048
|
+
configuration: {
|
|
1049
|
+
columns: any;
|
|
1050
|
+
default_state: any;
|
|
1051
|
+
};
|
|
1052
|
+
req: any;
|
|
1053
|
+
}) => {
|
|
1054
|
+
getRowQuery(state_id: any, part_table_name: any, part_user_field: any, part_key_to_room: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1055
|
+
updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
|
|
1056
|
+
submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
|
|
1057
|
+
json: {
|
|
1058
|
+
msgid: {
|
|
1059
|
+
error: string;
|
|
1060
|
+
} | {
|
|
1061
|
+
success: any;
|
|
1062
|
+
};
|
|
1063
|
+
error?: undefined;
|
|
1064
|
+
};
|
|
1065
|
+
} | {
|
|
1066
|
+
json: {
|
|
1067
|
+
error: any;
|
|
1068
|
+
msgid?: undefined;
|
|
1069
|
+
};
|
|
1070
|
+
}>;
|
|
1071
|
+
ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
|
|
1072
|
+
json: {
|
|
1073
|
+
error: string;
|
|
1074
|
+
success?: undefined;
|
|
1075
|
+
};
|
|
1076
|
+
} | {
|
|
1077
|
+
json: {
|
|
1078
|
+
success: string;
|
|
1079
|
+
error?: undefined;
|
|
1080
|
+
};
|
|
1081
|
+
}>;
|
|
1082
|
+
fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1083
|
+
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1084
|
+
};
|
|
1085
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1044
1086
|
})[];
|
|
1045
1087
|
import fileviews = require("./fileviews");
|
|
1046
1088
|
import actions = require("./actions");
|