@saltcorn/data 0.9.6-beta.8 → 0.9.6
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 +30 -2
- package/dist/base-plugin/actions.d.ts.map +1 -1
- package/dist/base-plugin/actions.js +36 -14
- package/dist/base-plugin/actions.js.map +1 -1
- package/dist/base-plugin/index.d.ts +382 -256
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/base-plugin/types.d.ts +382 -287
- package/dist/base-plugin/types.d.ts.map +1 -1
- package/dist/base-plugin/types.js +259 -18
- 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 +7 -8
- package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
- package/dist/base-plugin/viewtemplates/feed.d.ts +9 -4
- package/dist/base-plugin/viewtemplates/feed.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/feed.js +20 -9
- 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 +18 -2
- package/dist/base-plugin/viewtemplates/list.js.map +1 -1
- package/dist/base-plugin/viewtemplates/room.js +1 -1
- package/dist/base-plugin/viewtemplates/room.js.map +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.js +1 -1
- package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
- package/dist/db/state.d.ts +1 -0
- package/dist/db/state.d.ts.map +1 -1
- package/dist/db/state.js +3 -0
- package/dist/db/state.js.map +1 -1
- package/dist/models/config.d.ts.map +1 -1
- package/dist/models/config.js +15 -1
- package/dist/models/config.js.map +1 -1
- package/dist/models/expression.d.ts.map +1 -1
- package/dist/models/expression.js +17 -7
- package/dist/models/expression.js.map +1 -1
- package/dist/models/field.d.ts.map +1 -1
- package/dist/models/field.js +8 -3
- package/dist/models/field.js.map +1 -1
- package/dist/models/notification.d.ts +2 -0
- package/dist/models/notification.d.ts.map +1 -1
- package/dist/models/notification.js +6 -0
- package/dist/models/notification.js.map +1 -1
- package/dist/models/page.d.ts.map +1 -1
- package/dist/models/page.js +5 -11
- package/dist/models/page.js.map +1 -1
- package/dist/models/table.d.ts +1 -1
- package/dist/models/table.d.ts.map +1 -1
- package/dist/models/table.js +42 -10
- package/dist/models/table.js.map +1 -1
- package/dist/models/trigger.d.ts +6 -1
- package/dist/models/trigger.d.ts.map +1 -1
- package/dist/models/trigger.js +17 -2
- package/dist/models/trigger.js.map +1 -1
- package/dist/models/view.d.ts.map +1 -1
- package/dist/models/view.js +5 -10
- package/dist/models/view.js.map +1 -1
- package/dist/tests/actions.test.js +14 -4
- package/dist/tests/actions.test.js.map +1 -1
- package/dist/tests/auxtest.test.js +7 -1
- package/dist/tests/auxtest.test.js.map +1 -1
- package/dist/tests/calc.test.js +78 -2
- package/dist/tests/calc.test.js.map +1 -1
- package/dist/tests/exact_views.test.js +3 -3
- package/dist/tests/exact_views.test.js.map +1 -1
- package/dist/tests/models.test.js +1 -1
- package/dist/tests/table.test.js +17 -1
- package/dist/tests/table.test.js.map +1 -1
- package/dist/tests/view.test.js +5 -1
- package/dist/tests/view.test.js.map +1 -1
- package/dist/utils.d.ts +4 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +33 -0
- package/dist/utils.js.map +1 -1
- package/dist/web-mobile-commons.d.ts.map +1 -1
- package/dist/web-mobile-commons.js +7 -1
- package/dist/web-mobile-commons.js.map +1 -1
- package/package.json +8 -8
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export const types: ({
|
|
2
2
|
name: string;
|
|
3
|
+
description: string;
|
|
3
4
|
sql_name: string;
|
|
4
5
|
js_type: string;
|
|
5
6
|
attributes: ({ table }: object) => object;
|
|
@@ -22,6 +23,22 @@ export const types: ({
|
|
|
22
23
|
description: string;
|
|
23
24
|
run: (s: any) => any;
|
|
24
25
|
};
|
|
26
|
+
monospace_block: {
|
|
27
|
+
isEdit: boolean;
|
|
28
|
+
configFields: ({
|
|
29
|
+
name: string;
|
|
30
|
+
label: string;
|
|
31
|
+
sublabel: string;
|
|
32
|
+
type: string;
|
|
33
|
+
} | {
|
|
34
|
+
name: string;
|
|
35
|
+
label: string;
|
|
36
|
+
type: string;
|
|
37
|
+
sublabel?: undefined;
|
|
38
|
+
})[];
|
|
39
|
+
description: string;
|
|
40
|
+
run: (s: any, req: any, attrs?: {}) => any;
|
|
41
|
+
};
|
|
25
42
|
ellipsize: {
|
|
26
43
|
isEdit: boolean;
|
|
27
44
|
configFields: {
|
|
@@ -237,6 +254,7 @@ export const types: ({
|
|
|
237
254
|
validate_attributes: ({ min_length, max_length, regexp }: object) => object;
|
|
238
255
|
} | {
|
|
239
256
|
name: string;
|
|
257
|
+
description: string;
|
|
240
258
|
sql_name: string;
|
|
241
259
|
js_type: string;
|
|
242
260
|
contract: ({ min, max }: {
|
|
@@ -455,6 +473,59 @@ export const types: ({
|
|
|
455
473
|
blockDisplay: boolean;
|
|
456
474
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
457
475
|
};
|
|
476
|
+
to_locale_string: {
|
|
477
|
+
description: string;
|
|
478
|
+
configFields: (field: any) => ({
|
|
479
|
+
type: string;
|
|
480
|
+
name: string;
|
|
481
|
+
label: string;
|
|
482
|
+
sublabel: string;
|
|
483
|
+
required?: undefined;
|
|
484
|
+
attributes?: undefined;
|
|
485
|
+
showIf?: undefined;
|
|
486
|
+
} | {
|
|
487
|
+
type: string;
|
|
488
|
+
name: string;
|
|
489
|
+
label: string;
|
|
490
|
+
required: boolean;
|
|
491
|
+
attributes: {
|
|
492
|
+
options: string[];
|
|
493
|
+
};
|
|
494
|
+
sublabel?: undefined;
|
|
495
|
+
showIf?: undefined;
|
|
496
|
+
} | {
|
|
497
|
+
type: string;
|
|
498
|
+
name: string;
|
|
499
|
+
label: string;
|
|
500
|
+
sublabel: string;
|
|
501
|
+
required: boolean;
|
|
502
|
+
showIf: {
|
|
503
|
+
style: string;
|
|
504
|
+
};
|
|
505
|
+
attributes?: undefined;
|
|
506
|
+
} | {
|
|
507
|
+
type: string;
|
|
508
|
+
name: string;
|
|
509
|
+
label: string;
|
|
510
|
+
required: boolean;
|
|
511
|
+
showIf: {
|
|
512
|
+
style: string;
|
|
513
|
+
};
|
|
514
|
+
attributes: {
|
|
515
|
+
options: string[];
|
|
516
|
+
};
|
|
517
|
+
sublabel?: undefined;
|
|
518
|
+
})[];
|
|
519
|
+
isEdit: boolean;
|
|
520
|
+
run: (v: any, req: any, attrs?: {}) => string;
|
|
521
|
+
};
|
|
522
|
+
role_select: {
|
|
523
|
+
isEdit: boolean;
|
|
524
|
+
blockDisplay: boolean;
|
|
525
|
+
description: string;
|
|
526
|
+
fill_options: (field: any) => Promise<void>;
|
|
527
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
528
|
+
};
|
|
458
529
|
};
|
|
459
530
|
attributes: object[];
|
|
460
531
|
validate_attributes: ({ min, max }: object) => boolean;
|
|
@@ -462,6 +533,7 @@ export const types: ({
|
|
|
462
533
|
validate: ({ min, max }: object) => boolean;
|
|
463
534
|
} | {
|
|
464
535
|
name: string;
|
|
536
|
+
description: string;
|
|
465
537
|
sql_name: string;
|
|
466
538
|
js_type: string;
|
|
467
539
|
contract: () => Function;
|
|
@@ -469,7 +541,111 @@ export const types: ({
|
|
|
469
541
|
show: {
|
|
470
542
|
isEdit: boolean;
|
|
471
543
|
description: string;
|
|
472
|
-
run: (
|
|
544
|
+
run: (v: any, req: any) => any;
|
|
545
|
+
};
|
|
546
|
+
checkboxes: {
|
|
547
|
+
isEdit: boolean;
|
|
548
|
+
description: string;
|
|
549
|
+
run: (v: any) => any;
|
|
550
|
+
};
|
|
551
|
+
TrueFalse: {
|
|
552
|
+
isEdit: boolean;
|
|
553
|
+
description: string;
|
|
554
|
+
run: (v: any) => "" | "True" | "False";
|
|
555
|
+
};
|
|
556
|
+
edit: {
|
|
557
|
+
isEdit: boolean;
|
|
558
|
+
description: string;
|
|
559
|
+
configFields: ({
|
|
560
|
+
name: string;
|
|
561
|
+
label: string;
|
|
562
|
+
type: string;
|
|
563
|
+
attributes: {
|
|
564
|
+
options: string[];
|
|
565
|
+
};
|
|
566
|
+
} | {
|
|
567
|
+
name: string;
|
|
568
|
+
label: string;
|
|
569
|
+
type: string;
|
|
570
|
+
attributes?: undefined;
|
|
571
|
+
})[];
|
|
572
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
573
|
+
};
|
|
574
|
+
switch: {
|
|
575
|
+
isEdit: boolean;
|
|
576
|
+
description: string;
|
|
577
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
578
|
+
};
|
|
579
|
+
show_with_html: {
|
|
580
|
+
configFields: {
|
|
581
|
+
input_type: string;
|
|
582
|
+
name: string;
|
|
583
|
+
label: string;
|
|
584
|
+
sublabel: string;
|
|
585
|
+
default: string;
|
|
586
|
+
attributes: {
|
|
587
|
+
mode: string;
|
|
588
|
+
};
|
|
589
|
+
}[];
|
|
590
|
+
isEdit: boolean;
|
|
591
|
+
description: string;
|
|
592
|
+
run: (v: any, req: any, attrs?: {}) => any;
|
|
593
|
+
};
|
|
594
|
+
tristate: {
|
|
595
|
+
isEdit: boolean;
|
|
596
|
+
description: string;
|
|
597
|
+
configFields: {
|
|
598
|
+
name: string;
|
|
599
|
+
label: string;
|
|
600
|
+
type: string;
|
|
601
|
+
}[];
|
|
602
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
attributes: object[];
|
|
606
|
+
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
607
|
+
read: (v: object) => boolean | null;
|
|
608
|
+
readFromDB: (v: object) => object;
|
|
609
|
+
listAs: (v: object) => object;
|
|
610
|
+
validate: () => boolean;
|
|
611
|
+
} | {
|
|
612
|
+
name: string;
|
|
613
|
+
description: string;
|
|
614
|
+
sql_name: string;
|
|
615
|
+
js_type: string;
|
|
616
|
+
contract: () => Function;
|
|
617
|
+
attributes: object[];
|
|
618
|
+
fieldviews: {
|
|
619
|
+
show: {
|
|
620
|
+
isEdit: boolean;
|
|
621
|
+
description: string;
|
|
622
|
+
run: (d: any, req: any, attrs?: {}) => any;
|
|
623
|
+
};
|
|
624
|
+
showDay: {
|
|
625
|
+
isEdit: boolean;
|
|
626
|
+
description: string;
|
|
627
|
+
run: (d: any, req: any) => any;
|
|
628
|
+
};
|
|
629
|
+
format: {
|
|
630
|
+
isEdit: boolean;
|
|
631
|
+
description: string;
|
|
632
|
+
configFields: {
|
|
633
|
+
name: string;
|
|
634
|
+
label: string;
|
|
635
|
+
type: string;
|
|
636
|
+
sublabel: string;
|
|
637
|
+
}[];
|
|
638
|
+
run: (d: any, req: any, options: any) => any;
|
|
639
|
+
};
|
|
640
|
+
relative: {
|
|
641
|
+
isEdit: boolean;
|
|
642
|
+
description: string;
|
|
643
|
+
run: (d: any, req: any) => string;
|
|
644
|
+
};
|
|
645
|
+
yearsAgo: {
|
|
646
|
+
isEdit: boolean;
|
|
647
|
+
description: string;
|
|
648
|
+
run: (d: any, req: any) => string;
|
|
473
649
|
};
|
|
474
650
|
show_with_html: {
|
|
475
651
|
configFields: {
|
|
@@ -492,12 +668,21 @@ export const types: ({
|
|
|
492
668
|
description: string;
|
|
493
669
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
494
670
|
};
|
|
671
|
+
editDay: {
|
|
672
|
+
isEdit: boolean;
|
|
673
|
+
blockDisplay: boolean;
|
|
674
|
+
description: string;
|
|
675
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
676
|
+
};
|
|
495
677
|
};
|
|
496
|
-
|
|
497
|
-
|
|
678
|
+
presets: {
|
|
679
|
+
Now: () => Date;
|
|
680
|
+
};
|
|
681
|
+
read: (v: object, attrs: object) => object;
|
|
498
682
|
validate: () => boolean;
|
|
499
683
|
} | {
|
|
500
684
|
name: string;
|
|
685
|
+
description: string;
|
|
501
686
|
sql_name: string;
|
|
502
687
|
js_type: string;
|
|
503
688
|
contract: ({ min, max }: {
|
|
@@ -664,6 +849,52 @@ export const types: ({
|
|
|
664
849
|
blockDisplay: boolean;
|
|
665
850
|
run: (nm: any, v: any, attrs: {} | undefined, cls: any, required: any, field: any, state?: {}) => any;
|
|
666
851
|
};
|
|
852
|
+
to_locale_string: {
|
|
853
|
+
description: string;
|
|
854
|
+
configFields: (field: any) => ({
|
|
855
|
+
type: string;
|
|
856
|
+
name: string;
|
|
857
|
+
label: string;
|
|
858
|
+
sublabel: string;
|
|
859
|
+
required?: undefined;
|
|
860
|
+
attributes?: undefined;
|
|
861
|
+
showIf?: undefined;
|
|
862
|
+
} | {
|
|
863
|
+
type: string;
|
|
864
|
+
name: string;
|
|
865
|
+
label: string;
|
|
866
|
+
required: boolean;
|
|
867
|
+
attributes: {
|
|
868
|
+
options: string[];
|
|
869
|
+
};
|
|
870
|
+
sublabel?: undefined;
|
|
871
|
+
showIf?: undefined;
|
|
872
|
+
} | {
|
|
873
|
+
type: string;
|
|
874
|
+
name: string;
|
|
875
|
+
label: string;
|
|
876
|
+
sublabel: string;
|
|
877
|
+
required: boolean;
|
|
878
|
+
showIf: {
|
|
879
|
+
style: string;
|
|
880
|
+
};
|
|
881
|
+
attributes?: undefined;
|
|
882
|
+
} | {
|
|
883
|
+
type: string;
|
|
884
|
+
name: string;
|
|
885
|
+
label: string;
|
|
886
|
+
required: boolean;
|
|
887
|
+
showIf: {
|
|
888
|
+
style: string;
|
|
889
|
+
};
|
|
890
|
+
attributes: {
|
|
891
|
+
options: string[];
|
|
892
|
+
};
|
|
893
|
+
sublabel?: undefined;
|
|
894
|
+
})[];
|
|
895
|
+
isEdit: boolean;
|
|
896
|
+
run: (v: any, req: any, attrs?: {}) => string;
|
|
897
|
+
};
|
|
667
898
|
show_with_html: {
|
|
668
899
|
configFields: {
|
|
669
900
|
input_type: string;
|
|
@@ -685,41 +916,15 @@ export const types: ({
|
|
|
685
916
|
validate: ({ min, max }: object) => boolean | object;
|
|
686
917
|
} | {
|
|
687
918
|
name: string;
|
|
919
|
+
description: string;
|
|
688
920
|
sql_name: string;
|
|
689
921
|
js_type: string;
|
|
690
922
|
contract: () => Function;
|
|
691
|
-
attributes: object[];
|
|
692
923
|
fieldviews: {
|
|
693
924
|
show: {
|
|
694
925
|
isEdit: boolean;
|
|
695
926
|
description: string;
|
|
696
|
-
run: (
|
|
697
|
-
};
|
|
698
|
-
showDay: {
|
|
699
|
-
isEdit: boolean;
|
|
700
|
-
description: string;
|
|
701
|
-
run: (d: any, req: any) => any;
|
|
702
|
-
};
|
|
703
|
-
format: {
|
|
704
|
-
isEdit: boolean;
|
|
705
|
-
description: string;
|
|
706
|
-
configFields: {
|
|
707
|
-
name: string;
|
|
708
|
-
label: string;
|
|
709
|
-
type: string;
|
|
710
|
-
sublabel: string;
|
|
711
|
-
}[];
|
|
712
|
-
run: (d: any, req: any, options: any) => any;
|
|
713
|
-
};
|
|
714
|
-
relative: {
|
|
715
|
-
isEdit: boolean;
|
|
716
|
-
description: string;
|
|
717
|
-
run: (d: any, req: any) => string;
|
|
718
|
-
};
|
|
719
|
-
yearsAgo: {
|
|
720
|
-
isEdit: boolean;
|
|
721
|
-
description: string;
|
|
722
|
-
run: (d: any, req: any) => string;
|
|
927
|
+
run: (s: any) => any;
|
|
723
928
|
};
|
|
724
929
|
show_with_html: {
|
|
725
930
|
configFields: {
|
|
@@ -742,93 +947,9 @@ export const types: ({
|
|
|
742
947
|
description: string;
|
|
743
948
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
744
949
|
};
|
|
745
|
-
editDay: {
|
|
746
|
-
isEdit: boolean;
|
|
747
|
-
blockDisplay: boolean;
|
|
748
|
-
description: string;
|
|
749
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
750
|
-
};
|
|
751
|
-
};
|
|
752
|
-
presets: {
|
|
753
|
-
Now: () => Date;
|
|
754
|
-
};
|
|
755
|
-
read: (v: object, attrs: object) => object;
|
|
756
|
-
validate: () => boolean;
|
|
757
|
-
} | {
|
|
758
|
-
name: string;
|
|
759
|
-
sql_name: string;
|
|
760
|
-
js_type: string;
|
|
761
|
-
contract: () => Function;
|
|
762
|
-
fieldviews: {
|
|
763
|
-
show: {
|
|
764
|
-
isEdit: boolean;
|
|
765
|
-
description: string;
|
|
766
|
-
run: (v: any, req: any) => any;
|
|
767
|
-
};
|
|
768
|
-
checkboxes: {
|
|
769
|
-
isEdit: boolean;
|
|
770
|
-
description: string;
|
|
771
|
-
run: (v: any) => any;
|
|
772
|
-
};
|
|
773
|
-
TrueFalse: {
|
|
774
|
-
isEdit: boolean;
|
|
775
|
-
description: string;
|
|
776
|
-
run: (v: any) => "" | "True" | "False";
|
|
777
|
-
};
|
|
778
|
-
edit: {
|
|
779
|
-
isEdit: boolean;
|
|
780
|
-
description: string;
|
|
781
|
-
configFields: ({
|
|
782
|
-
name: string;
|
|
783
|
-
label: string;
|
|
784
|
-
type: string;
|
|
785
|
-
attributes: {
|
|
786
|
-
options: string[];
|
|
787
|
-
};
|
|
788
|
-
} | {
|
|
789
|
-
name: string;
|
|
790
|
-
label: string;
|
|
791
|
-
type: string;
|
|
792
|
-
attributes?: undefined;
|
|
793
|
-
})[];
|
|
794
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
795
|
-
};
|
|
796
|
-
switch: {
|
|
797
|
-
isEdit: boolean;
|
|
798
|
-
description: string;
|
|
799
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
800
|
-
};
|
|
801
|
-
show_with_html: {
|
|
802
|
-
configFields: {
|
|
803
|
-
input_type: string;
|
|
804
|
-
name: string;
|
|
805
|
-
label: string;
|
|
806
|
-
sublabel: string;
|
|
807
|
-
default: string;
|
|
808
|
-
attributes: {
|
|
809
|
-
mode: string;
|
|
810
|
-
};
|
|
811
|
-
}[];
|
|
812
|
-
isEdit: boolean;
|
|
813
|
-
description: string;
|
|
814
|
-
run: (v: any, req: any, attrs?: {}) => any;
|
|
815
|
-
};
|
|
816
|
-
tristate: {
|
|
817
|
-
isEdit: boolean;
|
|
818
|
-
description: string;
|
|
819
|
-
configFields: {
|
|
820
|
-
name: string;
|
|
821
|
-
label: string;
|
|
822
|
-
type: string;
|
|
823
|
-
}[];
|
|
824
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
825
|
-
};
|
|
826
950
|
};
|
|
827
951
|
attributes: object[];
|
|
828
|
-
|
|
829
|
-
read: (v: object) => boolean | null;
|
|
830
|
-
readFromDB: (v: object) => object;
|
|
831
|
-
listAs: (v: object) => object;
|
|
952
|
+
read: (v: object) => object;
|
|
832
953
|
validate: () => boolean;
|
|
833
954
|
})[];
|
|
834
955
|
export const viewtemplates: ({
|
|
@@ -1030,6 +1151,151 @@ export const viewtemplates: ({
|
|
|
1030
1151
|
warnings: string[];
|
|
1031
1152
|
}>;
|
|
1032
1153
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1154
|
+
} | {
|
|
1155
|
+
name: string;
|
|
1156
|
+
description: string;
|
|
1157
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1158
|
+
run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1159
|
+
participant_field: string;
|
|
1160
|
+
msg_relation: string;
|
|
1161
|
+
msgsender_field: any;
|
|
1162
|
+
msgview: string;
|
|
1163
|
+
msgform: string;
|
|
1164
|
+
participant_maxread_field: string;
|
|
1165
|
+
}, state: object, { req, res }: {
|
|
1166
|
+
req: object;
|
|
1167
|
+
res: object;
|
|
1168
|
+
}, { getRowQuery, updateQuery, optionsQuery }: {
|
|
1169
|
+
getRowQuery: any;
|
|
1170
|
+
updateQuery: any;
|
|
1171
|
+
optionsQuery: any;
|
|
1172
|
+
}) => Promise<div>;
|
|
1173
|
+
get_state_fields: () => object[];
|
|
1174
|
+
display_state_form: boolean;
|
|
1175
|
+
routes: {
|
|
1176
|
+
submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1177
|
+
participant_field: string;
|
|
1178
|
+
msg_relation: string;
|
|
1179
|
+
msgsender_field: any;
|
|
1180
|
+
msgview: string;
|
|
1181
|
+
msgform: string;
|
|
1182
|
+
participant_maxread_field: string;
|
|
1183
|
+
}, body: any, { req, res }: {
|
|
1184
|
+
req: object;
|
|
1185
|
+
res: object;
|
|
1186
|
+
}, { submitAjaxQuery }: {
|
|
1187
|
+
submitAjaxQuery: any;
|
|
1188
|
+
}) => Promise<object>;
|
|
1189
|
+
ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
|
|
1190
|
+
participant_field: string;
|
|
1191
|
+
participant_maxread_field: string;
|
|
1192
|
+
}, body: any, { req, res }: {
|
|
1193
|
+
req: object;
|
|
1194
|
+
res: object;
|
|
1195
|
+
}, { ackReadQuery }: {
|
|
1196
|
+
ackReadQuery: any;
|
|
1197
|
+
}) => Promise<void>;
|
|
1198
|
+
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>;
|
|
1199
|
+
};
|
|
1200
|
+
noAutoTest: boolean;
|
|
1201
|
+
authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
|
|
1202
|
+
participant_field: object;
|
|
1203
|
+
}, room_id: string, user: object) => Promise<object>;
|
|
1204
|
+
virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1205
|
+
participant_field: any;
|
|
1206
|
+
msg_relation: string;
|
|
1207
|
+
msgsender_field: string;
|
|
1208
|
+
msgview: string;
|
|
1209
|
+
msgform: any;
|
|
1210
|
+
participant_maxread_field: any;
|
|
1211
|
+
}) => object[];
|
|
1212
|
+
getStringsForI18n(): object[];
|
|
1213
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1214
|
+
table_id: any;
|
|
1215
|
+
viewname: any;
|
|
1216
|
+
configuration: {
|
|
1217
|
+
columns: any;
|
|
1218
|
+
default_state: any;
|
|
1219
|
+
};
|
|
1220
|
+
req: any;
|
|
1221
|
+
}) => {
|
|
1222
|
+
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>;
|
|
1223
|
+
updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
|
|
1224
|
+
submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
|
|
1225
|
+
json: {
|
|
1226
|
+
msgid: {
|
|
1227
|
+
error: string;
|
|
1228
|
+
} | {
|
|
1229
|
+
success: any;
|
|
1230
|
+
};
|
|
1231
|
+
error?: undefined;
|
|
1232
|
+
};
|
|
1233
|
+
} | {
|
|
1234
|
+
json: {
|
|
1235
|
+
error: any;
|
|
1236
|
+
msgid?: undefined;
|
|
1237
|
+
};
|
|
1238
|
+
}>;
|
|
1239
|
+
ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
|
|
1240
|
+
json: {
|
|
1241
|
+
error: string;
|
|
1242
|
+
success?: undefined;
|
|
1243
|
+
};
|
|
1244
|
+
} | {
|
|
1245
|
+
json: {
|
|
1246
|
+
success: string;
|
|
1247
|
+
error?: undefined;
|
|
1248
|
+
};
|
|
1249
|
+
}>;
|
|
1250
|
+
fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1251
|
+
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1252
|
+
};
|
|
1253
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1254
|
+
} | {
|
|
1255
|
+
name: string;
|
|
1256
|
+
description: string;
|
|
1257
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1258
|
+
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, create_view_showif, always_create_view, include_fml, exclusion_relation, exclusion_where, empty_view, groupby, lazy_accordions, ...cols }: {
|
|
1259
|
+
show_view: string;
|
|
1260
|
+
order_field: void;
|
|
1261
|
+
descending: boolean;
|
|
1262
|
+
view_to_create?: string | undefined;
|
|
1263
|
+
create_view_display: string;
|
|
1264
|
+
in_card: boolean;
|
|
1265
|
+
masonry_columns: string;
|
|
1266
|
+
rows_per_page?: number | undefined;
|
|
1267
|
+
hide_pagination: boolean;
|
|
1268
|
+
create_view_label?: string | undefined;
|
|
1269
|
+
create_view_location?: string | undefined;
|
|
1270
|
+
always_create_view: boolean;
|
|
1271
|
+
cols: any;
|
|
1272
|
+
}, state: object, extraArgs: any, { countRowsQuery, runManyQuery }: {
|
|
1273
|
+
countRowsQuery: any;
|
|
1274
|
+
runManyQuery: any;
|
|
1275
|
+
}) => Promise<div>;
|
|
1276
|
+
get_state_fields: (table_id: number, viewname: any, { show_view }: {
|
|
1277
|
+
show_view: any;
|
|
1278
|
+
}) => Promise<import("../models/field")>;
|
|
1279
|
+
display_state_form: boolean;
|
|
1280
|
+
getStringsForI18n({ create_view_label }: {
|
|
1281
|
+
create_view_label: any;
|
|
1282
|
+
}): string[] | Object[];
|
|
1283
|
+
queries: ({ table_id, viewname, configuration: { show_view }, req, res, }: {
|
|
1284
|
+
table_id: any;
|
|
1285
|
+
viewname: any;
|
|
1286
|
+
configuration: {
|
|
1287
|
+
show_view: any;
|
|
1288
|
+
};
|
|
1289
|
+
req: any;
|
|
1290
|
+
res: any;
|
|
1291
|
+
}) => {
|
|
1292
|
+
countRowsQuery(state: any): Promise<number>;
|
|
1293
|
+
runManyQuery(state: any, qextra: any, selectOpts: any): Promise<string[] | {
|
|
1294
|
+
html: string;
|
|
1295
|
+
row: any;
|
|
1296
|
+
}[]>;
|
|
1297
|
+
};
|
|
1298
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1033
1299
|
} | {
|
|
1034
1300
|
name: string;
|
|
1035
1301
|
description: string;
|
|
@@ -1202,146 +1468,6 @@ export const viewtemplates: ({
|
|
|
1202
1468
|
}) => Promise<{
|
|
1203
1469
|
embeddedViews: import("../models/view")[];
|
|
1204
1470
|
}>;
|
|
1205
|
-
} | {
|
|
1206
|
-
name: string;
|
|
1207
|
-
description: string;
|
|
1208
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1209
|
-
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, create_view_showif, always_create_view, include_fml, exclusion_relation, exclusion_where, empty_view, groupby, lazy_accordions, ...cols }: {
|
|
1210
|
-
show_view: string;
|
|
1211
|
-
order_field: void;
|
|
1212
|
-
descending: boolean;
|
|
1213
|
-
view_to_create?: string | undefined;
|
|
1214
|
-
create_view_display: string;
|
|
1215
|
-
in_card: boolean;
|
|
1216
|
-
masonry_columns: string;
|
|
1217
|
-
rows_per_page?: number | undefined;
|
|
1218
|
-
hide_pagination: boolean;
|
|
1219
|
-
create_view_label?: string | undefined;
|
|
1220
|
-
create_view_location?: string | undefined;
|
|
1221
|
-
always_create_view: boolean;
|
|
1222
|
-
cols: any;
|
|
1223
|
-
}, state: object, extraArgs: any, { countRowsQuery }: {
|
|
1224
|
-
countRowsQuery: any;
|
|
1225
|
-
}) => Promise<div>;
|
|
1226
|
-
get_state_fields: (table_id: number, viewname: any, { show_view }: {
|
|
1227
|
-
show_view: any;
|
|
1228
|
-
}) => Promise<import("../models/field")>;
|
|
1229
|
-
display_state_form: boolean;
|
|
1230
|
-
getStringsForI18n({ create_view_label }: {
|
|
1231
|
-
create_view_label: any;
|
|
1232
|
-
}): string[] | Object[];
|
|
1233
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1234
|
-
table_id: any;
|
|
1235
|
-
viewname: any;
|
|
1236
|
-
configuration: {
|
|
1237
|
-
columns: any;
|
|
1238
|
-
default_state: any;
|
|
1239
|
-
};
|
|
1240
|
-
req: any;
|
|
1241
|
-
}) => {
|
|
1242
|
-
countRowsQuery(state: any): Promise<number>;
|
|
1243
|
-
};
|
|
1244
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1245
|
-
} | {
|
|
1246
|
-
name: string;
|
|
1247
|
-
description: string;
|
|
1248
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1249
|
-
run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1250
|
-
participant_field: string;
|
|
1251
|
-
msg_relation: string;
|
|
1252
|
-
msgsender_field: any;
|
|
1253
|
-
msgview: string;
|
|
1254
|
-
msgform: string;
|
|
1255
|
-
participant_maxread_field: string;
|
|
1256
|
-
}, state: object, { req, res }: {
|
|
1257
|
-
req: object;
|
|
1258
|
-
res: object;
|
|
1259
|
-
}, { getRowQuery, updateQuery, optionsQuery }: {
|
|
1260
|
-
getRowQuery: any;
|
|
1261
|
-
updateQuery: any;
|
|
1262
|
-
optionsQuery: any;
|
|
1263
|
-
}) => Promise<div>;
|
|
1264
|
-
get_state_fields: () => object[];
|
|
1265
|
-
display_state_form: boolean;
|
|
1266
|
-
routes: {
|
|
1267
|
-
submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1268
|
-
participant_field: string;
|
|
1269
|
-
msg_relation: string;
|
|
1270
|
-
msgsender_field: any;
|
|
1271
|
-
msgview: string;
|
|
1272
|
-
msgform: string;
|
|
1273
|
-
participant_maxread_field: string;
|
|
1274
|
-
}, body: any, { req, res }: {
|
|
1275
|
-
req: object;
|
|
1276
|
-
res: object;
|
|
1277
|
-
}, { submitAjaxQuery }: {
|
|
1278
|
-
submitAjaxQuery: any;
|
|
1279
|
-
}) => Promise<object>;
|
|
1280
|
-
ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
|
|
1281
|
-
participant_field: string;
|
|
1282
|
-
participant_maxread_field: string;
|
|
1283
|
-
}, body: any, { req, res }: {
|
|
1284
|
-
req: object;
|
|
1285
|
-
res: object;
|
|
1286
|
-
}, { ackReadQuery }: {
|
|
1287
|
-
ackReadQuery: any;
|
|
1288
|
-
}) => Promise<void>;
|
|
1289
|
-
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>;
|
|
1290
|
-
};
|
|
1291
|
-
noAutoTest: boolean;
|
|
1292
|
-
authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
|
|
1293
|
-
participant_field: object;
|
|
1294
|
-
}, room_id: string, user: object) => Promise<object>;
|
|
1295
|
-
virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1296
|
-
participant_field: any;
|
|
1297
|
-
msg_relation: string;
|
|
1298
|
-
msgsender_field: string;
|
|
1299
|
-
msgview: string;
|
|
1300
|
-
msgform: any;
|
|
1301
|
-
participant_maxread_field: any;
|
|
1302
|
-
}) => object[];
|
|
1303
|
-
getStringsForI18n(): object[];
|
|
1304
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1305
|
-
table_id: any;
|
|
1306
|
-
viewname: any;
|
|
1307
|
-
configuration: {
|
|
1308
|
-
columns: any;
|
|
1309
|
-
default_state: any;
|
|
1310
|
-
};
|
|
1311
|
-
req: any;
|
|
1312
|
-
}) => {
|
|
1313
|
-
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>;
|
|
1314
|
-
updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
|
|
1315
|
-
submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
|
|
1316
|
-
json: {
|
|
1317
|
-
msgid: {
|
|
1318
|
-
error: string;
|
|
1319
|
-
} | {
|
|
1320
|
-
success: any;
|
|
1321
|
-
};
|
|
1322
|
-
error?: undefined;
|
|
1323
|
-
};
|
|
1324
|
-
} | {
|
|
1325
|
-
json: {
|
|
1326
|
-
error: any;
|
|
1327
|
-
msgid?: undefined;
|
|
1328
|
-
};
|
|
1329
|
-
}>;
|
|
1330
|
-
ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
|
|
1331
|
-
json: {
|
|
1332
|
-
error: string;
|
|
1333
|
-
success?: undefined;
|
|
1334
|
-
};
|
|
1335
|
-
} | {
|
|
1336
|
-
json: {
|
|
1337
|
-
success: string;
|
|
1338
|
-
error?: undefined;
|
|
1339
|
-
};
|
|
1340
|
-
}>;
|
|
1341
|
-
fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1342
|
-
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1343
|
-
};
|
|
1344
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1345
1471
|
})[];
|
|
1346
1472
|
import fileviews = require("./fileviews");
|
|
1347
1473
|
import actions = require("./actions");
|