@saltcorn/data 0.9.0-beta.1 → 0.9.0-beta.3
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 +376 -322
- 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 +73 -4
- package/dist/base-plugin/types.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 +24 -4
- package/dist/base-plugin/viewtemplates/feed.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 +9 -1
- 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 +12 -10
- package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
- package/dist/db/state.d.ts +4 -1
- package/dist/db/state.d.ts.map +1 -1
- package/dist/db/state.js +6 -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/models/table.js +1 -1
- package/dist/models/table.js.map +1 -1
- package/dist/models/workflow.js +1 -1
- package/dist/models/workflow.js.map +1 -1
- package/dist/plugin-helper.d.ts.map +1 -1
- package/dist/plugin-helper.js +40 -0
- package/dist/plugin-helper.js.map +1 -1
- package/dist/tests/exact_views.test.js +1 -1
- package/dist/tests/exact_views.test.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,16 +9,30 @@ 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
|
};
|
|
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
|
+
};
|
|
116
36
|
as_link: {
|
|
117
37
|
configFields: {
|
|
118
38
|
name: string;
|
|
@@ -120,20 +40,24 @@ export const types: ({
|
|
|
120
40
|
type: string;
|
|
121
41
|
sublabel: string;
|
|
122
42
|
}[];
|
|
43
|
+
description: string;
|
|
123
44
|
isEdit: boolean;
|
|
124
45
|
run: (s: any, req: any, attrs?: {}) => any;
|
|
125
46
|
};
|
|
126
47
|
img_from_url: {
|
|
127
48
|
isEdit: boolean;
|
|
49
|
+
description: string;
|
|
128
50
|
run: (s: any, req: any, attrs: any) => any;
|
|
129
51
|
};
|
|
130
52
|
as_header: {
|
|
131
53
|
isEdit: boolean;
|
|
54
|
+
description: string;
|
|
132
55
|
run: (s: any) => any;
|
|
133
56
|
};
|
|
134
57
|
edit: {
|
|
135
58
|
isEdit: boolean;
|
|
136
59
|
blockDisplay: boolean;
|
|
60
|
+
description: string;
|
|
137
61
|
configFields: (field: any) => ({
|
|
138
62
|
name: string;
|
|
139
63
|
label: string;
|
|
@@ -161,6 +85,7 @@ export const types: ({
|
|
|
161
85
|
fill_formula_btn: {
|
|
162
86
|
isEdit: boolean;
|
|
163
87
|
blockDisplay: boolean;
|
|
88
|
+
description: string;
|
|
164
89
|
configFields: ({
|
|
165
90
|
name: string;
|
|
166
91
|
label: string;
|
|
@@ -205,6 +130,7 @@ export const types: ({
|
|
|
205
130
|
make_unique: {
|
|
206
131
|
isEdit: boolean;
|
|
207
132
|
blockDisplay: boolean;
|
|
133
|
+
description: string;
|
|
208
134
|
configFields: ({
|
|
209
135
|
name: string;
|
|
210
136
|
label: string;
|
|
@@ -232,6 +158,7 @@ export const types: ({
|
|
|
232
158
|
textarea: {
|
|
233
159
|
isEdit: boolean;
|
|
234
160
|
blockDisplay: boolean;
|
|
161
|
+
description: string;
|
|
235
162
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
236
163
|
};
|
|
237
164
|
radio_group: {
|
|
@@ -241,11 +168,13 @@ export const types: ({
|
|
|
241
168
|
name: string;
|
|
242
169
|
label: string;
|
|
243
170
|
}[];
|
|
171
|
+
description: string;
|
|
244
172
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
245
173
|
};
|
|
246
174
|
checkbox_group: {
|
|
247
175
|
isEdit: boolean;
|
|
248
176
|
isFilter: boolean;
|
|
177
|
+
description: string;
|
|
249
178
|
configFields: {
|
|
250
179
|
type: string;
|
|
251
180
|
name: string;
|
|
@@ -256,6 +185,7 @@ export const types: ({
|
|
|
256
185
|
password: {
|
|
257
186
|
isEdit: boolean;
|
|
258
187
|
blockDisplay: boolean;
|
|
188
|
+
description: string;
|
|
259
189
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
260
190
|
};
|
|
261
191
|
};
|
|
@@ -284,11 +214,13 @@ export const types: ({
|
|
|
284
214
|
fieldviews: {
|
|
285
215
|
show: {
|
|
286
216
|
isEdit: boolean;
|
|
217
|
+
description: string;
|
|
287
218
|
run: (s: any) => string;
|
|
288
219
|
};
|
|
289
220
|
edit: {
|
|
290
221
|
isEdit: boolean;
|
|
291
222
|
blockDisplay: boolean;
|
|
223
|
+
description: string;
|
|
292
224
|
configFields: {
|
|
293
225
|
name: string;
|
|
294
226
|
label: string;
|
|
@@ -303,6 +235,7 @@ export const types: ({
|
|
|
303
235
|
required: boolean;
|
|
304
236
|
}[];
|
|
305
237
|
isEdit: boolean;
|
|
238
|
+
description: string;
|
|
306
239
|
blockDisplay: boolean;
|
|
307
240
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any) => any;
|
|
308
241
|
};
|
|
@@ -315,6 +248,7 @@ export const types: ({
|
|
|
315
248
|
isEdit: boolean;
|
|
316
249
|
isFilter: boolean;
|
|
317
250
|
blockDisplay: boolean;
|
|
251
|
+
description: string;
|
|
318
252
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
319
253
|
};
|
|
320
254
|
progress_bar: {
|
|
@@ -330,6 +264,7 @@ export const types: ({
|
|
|
330
264
|
required?: undefined;
|
|
331
265
|
})[];
|
|
332
266
|
isEdit: boolean;
|
|
267
|
+
description: string;
|
|
333
268
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
334
269
|
};
|
|
335
270
|
heat_cell: {
|
|
@@ -365,6 +300,7 @@ export const types: ({
|
|
|
365
300
|
attributes?: undefined;
|
|
366
301
|
})[];
|
|
367
302
|
isEdit: boolean;
|
|
303
|
+
description: string;
|
|
368
304
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
369
305
|
};
|
|
370
306
|
above_input: {
|
|
@@ -390,6 +326,7 @@ export const types: ({
|
|
|
390
326
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
391
327
|
};
|
|
392
328
|
show_star_rating: {
|
|
329
|
+
description: string;
|
|
393
330
|
configFields: (field: any) => {
|
|
394
331
|
name: string;
|
|
395
332
|
type: string;
|
|
@@ -401,6 +338,7 @@ export const types: ({
|
|
|
401
338
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
402
339
|
};
|
|
403
340
|
edit_star_rating: {
|
|
341
|
+
description: string;
|
|
404
342
|
configFields: (field: any) => {
|
|
405
343
|
name: string;
|
|
406
344
|
type: string;
|
|
@@ -416,6 +354,113 @@ export const types: ({
|
|
|
416
354
|
validate_attributes: ({ min, max }: object) => boolean;
|
|
417
355
|
read: (v: object) => object;
|
|
418
356
|
validate: ({ min, max }: object) => boolean;
|
|
357
|
+
} | {
|
|
358
|
+
name: string;
|
|
359
|
+
sql_name: string;
|
|
360
|
+
js_type: string;
|
|
361
|
+
contract: () => Function;
|
|
362
|
+
fieldviews: {
|
|
363
|
+
show: {
|
|
364
|
+
isEdit: boolean;
|
|
365
|
+
description: string;
|
|
366
|
+
run: (v: any) => any;
|
|
367
|
+
};
|
|
368
|
+
checkboxes: {
|
|
369
|
+
isEdit: boolean;
|
|
370
|
+
description: string;
|
|
371
|
+
run: (v: any) => any;
|
|
372
|
+
};
|
|
373
|
+
TrueFalse: {
|
|
374
|
+
isEdit: boolean;
|
|
375
|
+
description: string;
|
|
376
|
+
run: (v: any) => "" | "True" | "False";
|
|
377
|
+
};
|
|
378
|
+
edit: {
|
|
379
|
+
isEdit: boolean;
|
|
380
|
+
description: string;
|
|
381
|
+
configFields: {
|
|
382
|
+
name: string;
|
|
383
|
+
label: string;
|
|
384
|
+
type: string;
|
|
385
|
+
attributes: {
|
|
386
|
+
options: string[];
|
|
387
|
+
};
|
|
388
|
+
}[];
|
|
389
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
390
|
+
};
|
|
391
|
+
switch: {
|
|
392
|
+
isEdit: boolean;
|
|
393
|
+
description: string;
|
|
394
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
395
|
+
};
|
|
396
|
+
tristate: {
|
|
397
|
+
isEdit: boolean;
|
|
398
|
+
description: string;
|
|
399
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
attributes: object[];
|
|
403
|
+
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
404
|
+
read: (v: object) => boolean | null;
|
|
405
|
+
readFromDB: (v: object) => object;
|
|
406
|
+
listAs: (v: object) => object;
|
|
407
|
+
validate: () => boolean;
|
|
408
|
+
} | {
|
|
409
|
+
name: string;
|
|
410
|
+
sql_name: string;
|
|
411
|
+
js_type: string;
|
|
412
|
+
contract: () => Function;
|
|
413
|
+
attributes: object[];
|
|
414
|
+
fieldviews: {
|
|
415
|
+
show: {
|
|
416
|
+
isEdit: boolean;
|
|
417
|
+
description: string;
|
|
418
|
+
run: (d: any, req: any) => any;
|
|
419
|
+
};
|
|
420
|
+
showDay: {
|
|
421
|
+
isEdit: boolean;
|
|
422
|
+
description: string;
|
|
423
|
+
run: (d: any, req: any) => any;
|
|
424
|
+
};
|
|
425
|
+
format: {
|
|
426
|
+
isEdit: boolean;
|
|
427
|
+
description: string;
|
|
428
|
+
configFields: {
|
|
429
|
+
name: string;
|
|
430
|
+
label: string;
|
|
431
|
+
type: string;
|
|
432
|
+
sublabel: string;
|
|
433
|
+
}[];
|
|
434
|
+
run: (d: any, req: any, options: any) => any;
|
|
435
|
+
};
|
|
436
|
+
relative: {
|
|
437
|
+
isEdit: boolean;
|
|
438
|
+
description: string;
|
|
439
|
+
run: (d: any, req: any) => string;
|
|
440
|
+
};
|
|
441
|
+
yearsAgo: {
|
|
442
|
+
isEdit: boolean;
|
|
443
|
+
description: string;
|
|
444
|
+
run: (d: any, req: any) => string;
|
|
445
|
+
};
|
|
446
|
+
edit: {
|
|
447
|
+
isEdit: boolean;
|
|
448
|
+
blockDisplay: boolean;
|
|
449
|
+
description: string;
|
|
450
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
451
|
+
};
|
|
452
|
+
editDay: {
|
|
453
|
+
isEdit: boolean;
|
|
454
|
+
blockDisplay: boolean;
|
|
455
|
+
description: string;
|
|
456
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
presets: {
|
|
460
|
+
Now: () => Date;
|
|
461
|
+
};
|
|
462
|
+
read: (v: object, attrs: object) => object;
|
|
463
|
+
validate: () => boolean;
|
|
419
464
|
} | {
|
|
420
465
|
name: string;
|
|
421
466
|
sql_name: string;
|
|
@@ -427,11 +472,13 @@ export const types: ({
|
|
|
427
472
|
fieldviews: {
|
|
428
473
|
show: {
|
|
429
474
|
isEdit: boolean;
|
|
475
|
+
description: string;
|
|
430
476
|
run: (s: any) => string;
|
|
431
477
|
};
|
|
432
478
|
edit: {
|
|
433
479
|
isEdit: boolean;
|
|
434
480
|
blockDisplay: boolean;
|
|
481
|
+
description: string;
|
|
435
482
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
436
483
|
};
|
|
437
484
|
number_slider: {
|
|
@@ -441,6 +488,7 @@ export const types: ({
|
|
|
441
488
|
required: boolean;
|
|
442
489
|
}[];
|
|
443
490
|
isEdit: boolean;
|
|
491
|
+
description: string;
|
|
444
492
|
blockDisplay: boolean;
|
|
445
493
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any) => any;
|
|
446
494
|
};
|
|
@@ -453,6 +501,7 @@ export const types: ({
|
|
|
453
501
|
isEdit: boolean;
|
|
454
502
|
isFilter: boolean;
|
|
455
503
|
blockDisplay: boolean;
|
|
504
|
+
description: string;
|
|
456
505
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
457
506
|
};
|
|
458
507
|
progress_bar: {
|
|
@@ -468,6 +517,7 @@ export const types: ({
|
|
|
468
517
|
required?: undefined;
|
|
469
518
|
})[];
|
|
470
519
|
isEdit: boolean;
|
|
520
|
+
description: string;
|
|
471
521
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
472
522
|
};
|
|
473
523
|
heat_cell: {
|
|
@@ -503,6 +553,7 @@ export const types: ({
|
|
|
503
553
|
attributes?: undefined;
|
|
504
554
|
})[];
|
|
505
555
|
isEdit: boolean;
|
|
556
|
+
description: string;
|
|
506
557
|
run: (v: any, req: any, attrs?: {}) => any;
|
|
507
558
|
};
|
|
508
559
|
above_input: {
|
|
@@ -529,11 +580,13 @@ export const types: ({
|
|
|
529
580
|
fieldviews: {
|
|
530
581
|
show: {
|
|
531
582
|
isEdit: boolean;
|
|
583
|
+
description: string;
|
|
532
584
|
run: (s: any) => any;
|
|
533
585
|
};
|
|
534
586
|
edit: {
|
|
535
587
|
isEdit: boolean;
|
|
536
588
|
blockDisplay: boolean;
|
|
589
|
+
description: string;
|
|
537
590
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
538
591
|
};
|
|
539
592
|
};
|
|
@@ -544,45 +597,63 @@ export const types: ({
|
|
|
544
597
|
export const viewtemplates: ({
|
|
545
598
|
name: string;
|
|
546
599
|
description: string;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
600
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
601
|
+
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
602
|
columns: object[];
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
603
|
+
view_to_create?: string | undefined;
|
|
604
|
+
create_view_display: string;
|
|
605
|
+
create_view_label?: string | undefined;
|
|
606
|
+
default_state?: object | undefined;
|
|
607
|
+
create_view_location?: string | undefined;
|
|
608
|
+
}, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
|
|
609
|
+
listQuery: any;
|
|
610
|
+
}) => Promise<any>;
|
|
611
|
+
view_quantity: string;
|
|
612
|
+
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
613
|
+
columns: object[];
|
|
614
|
+
}) => Function;
|
|
615
|
+
initial_config: Function;
|
|
616
|
+
on_delete: (table_id: any, viewname: string, { default_state }: {
|
|
617
|
+
default_state: any;
|
|
618
|
+
}) => Promise<void>;
|
|
560
619
|
routes: {
|
|
561
|
-
run_action: (table_id:
|
|
562
|
-
|
|
620
|
+
run_action: (table_id: number, viewname: any, { columns, layout }: {
|
|
621
|
+
columns: object[];
|
|
622
|
+
layout: any;
|
|
623
|
+
}, body: object, { req, res }: {
|
|
624
|
+
req: object;
|
|
563
625
|
res: any;
|
|
564
|
-
}, {
|
|
565
|
-
|
|
566
|
-
}) => Promise<
|
|
626
|
+
}, { getRowQuery }: {
|
|
627
|
+
getRowQuery: any;
|
|
628
|
+
}) => Promise<object>;
|
|
567
629
|
};
|
|
568
|
-
|
|
630
|
+
display_state_form: (opts: object) => boolean;
|
|
631
|
+
default_state_form: ({ default_state }: object) => boolean;
|
|
632
|
+
getStringsForI18n({ columns, create_view_label }: {
|
|
633
|
+
columns: any;
|
|
634
|
+
create_view_label: any;
|
|
635
|
+
}): string[];
|
|
636
|
+
queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
|
|
569
637
|
table_id: any;
|
|
570
|
-
|
|
638
|
+
exttable_name: any;
|
|
639
|
+
name: any;
|
|
571
640
|
configuration: {
|
|
572
641
|
columns: any;
|
|
642
|
+
default_state: any;
|
|
573
643
|
};
|
|
574
644
|
req: any;
|
|
575
|
-
res: any;
|
|
576
|
-
exttable_name: any;
|
|
577
645
|
}) => {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
distinctValuesQuery(state: any): Promise<{
|
|
582
|
-
distinct_values: {};
|
|
583
|
-
role: any;
|
|
646
|
+
listQuery(state: any, stateHash: any): Promise<{
|
|
647
|
+
rows: import("@saltcorn/db-common/internal").Row[];
|
|
648
|
+
rowCount: number;
|
|
584
649
|
}>;
|
|
650
|
+
getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
585
651
|
};
|
|
652
|
+
configCheck: (view: any) => Promise<{
|
|
653
|
+
errors: string[];
|
|
654
|
+
warnings: string[];
|
|
655
|
+
}>;
|
|
656
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
586
657
|
} | {
|
|
587
658
|
name: string;
|
|
588
659
|
description: string;
|
|
@@ -732,146 +803,6 @@ export const viewtemplates: ({
|
|
|
732
803
|
warnings: string[];
|
|
733
804
|
}>;
|
|
734
805
|
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
806
|
} | {
|
|
876
807
|
name: string;
|
|
877
808
|
description: string;
|
|
@@ -929,10 +860,11 @@ export const viewtemplates: ({
|
|
|
929
860
|
rows: import("@saltcorn/db-common/internal").Row[];
|
|
930
861
|
message: null;
|
|
931
862
|
}>;
|
|
932
|
-
runManyQuery(state: any, { where, limit, offset, orderBy, orderDesc }: {
|
|
863
|
+
runManyQuery(state: any, { where, limit, offset, joinFieldsExtra, orderBy, orderDesc }: {
|
|
933
864
|
where: any;
|
|
934
865
|
limit: any;
|
|
935
866
|
offset: any;
|
|
867
|
+
joinFieldsExtra: any;
|
|
936
868
|
orderBy: any;
|
|
937
869
|
orderDesc: any;
|
|
938
870
|
}): Promise<import("@saltcorn/db-common/internal").Row[]>;
|
|
@@ -945,66 +877,6 @@ export const viewtemplates: ({
|
|
|
945
877
|
warnings: string[];
|
|
946
878
|
}>;
|
|
947
879
|
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
880
|
} | {
|
|
1009
881
|
name: string;
|
|
1010
882
|
description: string;
|
|
@@ -1041,6 +913,188 @@ export const viewtemplates: ({
|
|
|
1041
913
|
}) => Promise<{
|
|
1042
914
|
embeddedViews: import("../models/view")[];
|
|
1043
915
|
}>;
|
|
916
|
+
} | {
|
|
917
|
+
name: string;
|
|
918
|
+
description: string;
|
|
919
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
920
|
+
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 }: {
|
|
921
|
+
show_view: string;
|
|
922
|
+
order_field: name;
|
|
923
|
+
descending: boolean;
|
|
924
|
+
view_to_create?: string | undefined;
|
|
925
|
+
create_view_display: string;
|
|
926
|
+
in_card: boolean;
|
|
927
|
+
masonry_columns: string;
|
|
928
|
+
rows_per_page?: number | undefined;
|
|
929
|
+
hide_pagination: boolean;
|
|
930
|
+
create_view_label?: string | undefined;
|
|
931
|
+
create_view_location?: string | undefined;
|
|
932
|
+
always_create_view: boolean;
|
|
933
|
+
cols: any;
|
|
934
|
+
}, state: object, extraArgs: any, { countRowsQuery }: {
|
|
935
|
+
countRowsQuery: any;
|
|
936
|
+
}) => Promise<div>;
|
|
937
|
+
get_state_fields: (table_id: number, viewname: any, { show_view }: {
|
|
938
|
+
show_view: any;
|
|
939
|
+
}) => Promise<import("../models/field")>;
|
|
940
|
+
display_state_form: boolean;
|
|
941
|
+
getStringsForI18n({ create_view_label }: {
|
|
942
|
+
create_view_label: any;
|
|
943
|
+
}): string[] | Object[];
|
|
944
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
945
|
+
table_id: any;
|
|
946
|
+
viewname: any;
|
|
947
|
+
configuration: {
|
|
948
|
+
columns: any;
|
|
949
|
+
default_state: any;
|
|
950
|
+
};
|
|
951
|
+
req: any;
|
|
952
|
+
}) => {
|
|
953
|
+
countRowsQuery(state: any): Promise<number>;
|
|
954
|
+
};
|
|
955
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
956
|
+
} | {
|
|
957
|
+
name: string;
|
|
958
|
+
description: string;
|
|
959
|
+
get_state_fields: () => object[];
|
|
960
|
+
configuration_workflow: () => import("../models/workflow");
|
|
961
|
+
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
962
|
+
columns: object[];
|
|
963
|
+
layout: object;
|
|
964
|
+
}, state: object, extra: object, { distinctValuesQuery }: {
|
|
965
|
+
distinctValuesQuery: any;
|
|
966
|
+
}) => Promise<Layout>;
|
|
967
|
+
initial_config: () => Promise<object>;
|
|
968
|
+
display_state_form: boolean;
|
|
969
|
+
getStringsForI18n({ layout }: {
|
|
970
|
+
layout: any;
|
|
971
|
+
}): string[];
|
|
972
|
+
routes: {
|
|
973
|
+
run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
|
|
974
|
+
req: any;
|
|
975
|
+
res: any;
|
|
976
|
+
}, { actionQuery }: {
|
|
977
|
+
actionQuery: any;
|
|
978
|
+
}) => Promise<any>;
|
|
979
|
+
};
|
|
980
|
+
queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
|
|
981
|
+
table_id: any;
|
|
982
|
+
viewname: any;
|
|
983
|
+
configuration: {
|
|
984
|
+
columns: any;
|
|
985
|
+
};
|
|
986
|
+
req: any;
|
|
987
|
+
res: any;
|
|
988
|
+
exttable_name: any;
|
|
989
|
+
}) => {
|
|
990
|
+
actionQuery(state: any, rndid: any): Promise<{
|
|
991
|
+
json: any;
|
|
992
|
+
}>;
|
|
993
|
+
distinctValuesQuery(state: any): Promise<{
|
|
994
|
+
distinct_values: {};
|
|
995
|
+
role: any;
|
|
996
|
+
}>;
|
|
997
|
+
};
|
|
998
|
+
} | {
|
|
999
|
+
name: string;
|
|
1000
|
+
description: string;
|
|
1001
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1002
|
+
run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1003
|
+
participant_field: string;
|
|
1004
|
+
msg_relation: string;
|
|
1005
|
+
msgsender_field: any;
|
|
1006
|
+
msgview: string;
|
|
1007
|
+
msgform: string;
|
|
1008
|
+
participant_maxread_field: string;
|
|
1009
|
+
}, state: object, { req, res }: {
|
|
1010
|
+
req: object;
|
|
1011
|
+
res: object;
|
|
1012
|
+
}, { getRowQuery, updateQuery, optionsQuery }: {
|
|
1013
|
+
getRowQuery: any;
|
|
1014
|
+
updateQuery: any;
|
|
1015
|
+
optionsQuery: any;
|
|
1016
|
+
}) => Promise<div>;
|
|
1017
|
+
get_state_fields: () => object[];
|
|
1018
|
+
display_state_form: boolean;
|
|
1019
|
+
routes: {
|
|
1020
|
+
submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1021
|
+
participant_field: string;
|
|
1022
|
+
msg_relation: string;
|
|
1023
|
+
msgsender_field: any;
|
|
1024
|
+
msgview: string;
|
|
1025
|
+
msgform: string;
|
|
1026
|
+
participant_maxread_field: string;
|
|
1027
|
+
}, body: any, { req, res }: {
|
|
1028
|
+
req: object;
|
|
1029
|
+
res: object;
|
|
1030
|
+
}, { submitAjaxQuery }: {
|
|
1031
|
+
submitAjaxQuery: any;
|
|
1032
|
+
}) => Promise<object>;
|
|
1033
|
+
ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
|
|
1034
|
+
participant_field: string;
|
|
1035
|
+
participant_maxread_field: string;
|
|
1036
|
+
}, body: any, { req, res }: {
|
|
1037
|
+
req: object;
|
|
1038
|
+
res: object;
|
|
1039
|
+
}, { ackReadQuery }: {
|
|
1040
|
+
ackReadQuery: any;
|
|
1041
|
+
}) => Promise<void>;
|
|
1042
|
+
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>;
|
|
1043
|
+
};
|
|
1044
|
+
noAutoTest: boolean;
|
|
1045
|
+
authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
|
|
1046
|
+
participant_field: object;
|
|
1047
|
+
}, room_id: string, user: object) => Promise<object>;
|
|
1048
|
+
virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1049
|
+
participant_field: any;
|
|
1050
|
+
msg_relation: string;
|
|
1051
|
+
msgsender_field: string;
|
|
1052
|
+
msgview: string;
|
|
1053
|
+
msgform: any;
|
|
1054
|
+
participant_maxread_field: any;
|
|
1055
|
+
}) => object[];
|
|
1056
|
+
getStringsForI18n(): object[];
|
|
1057
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1058
|
+
table_id: any;
|
|
1059
|
+
viewname: any;
|
|
1060
|
+
configuration: {
|
|
1061
|
+
columns: any;
|
|
1062
|
+
default_state: any;
|
|
1063
|
+
};
|
|
1064
|
+
req: any;
|
|
1065
|
+
}) => {
|
|
1066
|
+
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>;
|
|
1067
|
+
updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
|
|
1068
|
+
submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
|
|
1069
|
+
json: {
|
|
1070
|
+
msgid: {
|
|
1071
|
+
error: string;
|
|
1072
|
+
} | {
|
|
1073
|
+
success: any;
|
|
1074
|
+
};
|
|
1075
|
+
error?: undefined;
|
|
1076
|
+
};
|
|
1077
|
+
} | {
|
|
1078
|
+
json: {
|
|
1079
|
+
error: any;
|
|
1080
|
+
msgid?: undefined;
|
|
1081
|
+
};
|
|
1082
|
+
}>;
|
|
1083
|
+
ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
|
|
1084
|
+
json: {
|
|
1085
|
+
error: string;
|
|
1086
|
+
success?: undefined;
|
|
1087
|
+
};
|
|
1088
|
+
} | {
|
|
1089
|
+
json: {
|
|
1090
|
+
success: string;
|
|
1091
|
+
error?: undefined;
|
|
1092
|
+
};
|
|
1093
|
+
}>;
|
|
1094
|
+
fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1095
|
+
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1096
|
+
};
|
|
1097
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1044
1098
|
})[];
|
|
1045
1099
|
import fileviews = require("./fileviews");
|
|
1046
1100
|
import actions = require("./actions");
|