@saltcorn/data 0.9.6-beta.9 → 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 +371 -344
- package/dist/base-plugin/index.d.ts.map +1 -1
- package/dist/base-plugin/types.d.ts +317 -285
- package/dist/base-plugin/types.d.ts.map +1 -1
- package/dist/base-plugin/types.js +109 -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 +2 -1
- 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 }: {
|
|
@@ -515,6 +533,7 @@ export const types: ({
|
|
|
515
533
|
validate: ({ min, max }: object) => boolean;
|
|
516
534
|
} | {
|
|
517
535
|
name: string;
|
|
536
|
+
description: string;
|
|
518
537
|
sql_name: string;
|
|
519
538
|
js_type: string;
|
|
520
539
|
contract: () => Function;
|
|
@@ -522,7 +541,111 @@ export const types: ({
|
|
|
522
541
|
show: {
|
|
523
542
|
isEdit: boolean;
|
|
524
543
|
description: string;
|
|
525
|
-
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;
|
|
526
649
|
};
|
|
527
650
|
show_with_html: {
|
|
528
651
|
configFields: {
|
|
@@ -545,12 +668,21 @@ export const types: ({
|
|
|
545
668
|
description: string;
|
|
546
669
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
547
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
|
+
};
|
|
548
677
|
};
|
|
549
|
-
|
|
550
|
-
|
|
678
|
+
presets: {
|
|
679
|
+
Now: () => Date;
|
|
680
|
+
};
|
|
681
|
+
read: (v: object, attrs: object) => object;
|
|
551
682
|
validate: () => boolean;
|
|
552
683
|
} | {
|
|
553
684
|
name: string;
|
|
685
|
+
description: string;
|
|
554
686
|
sql_name: string;
|
|
555
687
|
js_type: string;
|
|
556
688
|
contract: ({ min, max }: {
|
|
@@ -784,41 +916,15 @@ export const types: ({
|
|
|
784
916
|
validate: ({ min, max }: object) => boolean | object;
|
|
785
917
|
} | {
|
|
786
918
|
name: string;
|
|
919
|
+
description: string;
|
|
787
920
|
sql_name: string;
|
|
788
921
|
js_type: string;
|
|
789
922
|
contract: () => Function;
|
|
790
|
-
attributes: object[];
|
|
791
923
|
fieldviews: {
|
|
792
924
|
show: {
|
|
793
925
|
isEdit: boolean;
|
|
794
926
|
description: string;
|
|
795
|
-
run: (
|
|
796
|
-
};
|
|
797
|
-
showDay: {
|
|
798
|
-
isEdit: boolean;
|
|
799
|
-
description: string;
|
|
800
|
-
run: (d: any, req: any) => any;
|
|
801
|
-
};
|
|
802
|
-
format: {
|
|
803
|
-
isEdit: boolean;
|
|
804
|
-
description: string;
|
|
805
|
-
configFields: {
|
|
806
|
-
name: string;
|
|
807
|
-
label: string;
|
|
808
|
-
type: string;
|
|
809
|
-
sublabel: string;
|
|
810
|
-
}[];
|
|
811
|
-
run: (d: any, req: any, options: any) => any;
|
|
812
|
-
};
|
|
813
|
-
relative: {
|
|
814
|
-
isEdit: boolean;
|
|
815
|
-
description: string;
|
|
816
|
-
run: (d: any, req: any) => string;
|
|
817
|
-
};
|
|
818
|
-
yearsAgo: {
|
|
819
|
-
isEdit: boolean;
|
|
820
|
-
description: string;
|
|
821
|
-
run: (d: any, req: any) => string;
|
|
927
|
+
run: (s: any) => any;
|
|
822
928
|
};
|
|
823
929
|
show_with_html: {
|
|
824
930
|
configFields: {
|
|
@@ -841,156 +947,53 @@ export const types: ({
|
|
|
841
947
|
description: string;
|
|
842
948
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
843
949
|
};
|
|
844
|
-
editDay: {
|
|
845
|
-
isEdit: boolean;
|
|
846
|
-
blockDisplay: boolean;
|
|
847
|
-
description: string;
|
|
848
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
849
|
-
};
|
|
850
|
-
};
|
|
851
|
-
presets: {
|
|
852
|
-
Now: () => Date;
|
|
853
|
-
};
|
|
854
|
-
read: (v: object, attrs: object) => object;
|
|
855
|
-
validate: () => boolean;
|
|
856
|
-
} | {
|
|
857
|
-
name: string;
|
|
858
|
-
sql_name: string;
|
|
859
|
-
js_type: string;
|
|
860
|
-
contract: () => Function;
|
|
861
|
-
fieldviews: {
|
|
862
|
-
show: {
|
|
863
|
-
isEdit: boolean;
|
|
864
|
-
description: string;
|
|
865
|
-
run: (v: any, req: any) => any;
|
|
866
|
-
};
|
|
867
|
-
checkboxes: {
|
|
868
|
-
isEdit: boolean;
|
|
869
|
-
description: string;
|
|
870
|
-
run: (v: any) => any;
|
|
871
|
-
};
|
|
872
|
-
TrueFalse: {
|
|
873
|
-
isEdit: boolean;
|
|
874
|
-
description: string;
|
|
875
|
-
run: (v: any) => "" | "True" | "False";
|
|
876
|
-
};
|
|
877
|
-
edit: {
|
|
878
|
-
isEdit: boolean;
|
|
879
|
-
description: string;
|
|
880
|
-
configFields: ({
|
|
881
|
-
name: string;
|
|
882
|
-
label: string;
|
|
883
|
-
type: string;
|
|
884
|
-
attributes: {
|
|
885
|
-
options: string[];
|
|
886
|
-
};
|
|
887
|
-
} | {
|
|
888
|
-
name: string;
|
|
889
|
-
label: string;
|
|
890
|
-
type: string;
|
|
891
|
-
attributes?: undefined;
|
|
892
|
-
})[];
|
|
893
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
894
|
-
};
|
|
895
|
-
switch: {
|
|
896
|
-
isEdit: boolean;
|
|
897
|
-
description: string;
|
|
898
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
899
|
-
};
|
|
900
|
-
show_with_html: {
|
|
901
|
-
configFields: {
|
|
902
|
-
input_type: string;
|
|
903
|
-
name: string;
|
|
904
|
-
label: string;
|
|
905
|
-
sublabel: string;
|
|
906
|
-
default: string;
|
|
907
|
-
attributes: {
|
|
908
|
-
mode: string;
|
|
909
|
-
};
|
|
910
|
-
}[];
|
|
911
|
-
isEdit: boolean;
|
|
912
|
-
description: string;
|
|
913
|
-
run: (v: any, req: any, attrs?: {}) => any;
|
|
914
|
-
};
|
|
915
|
-
tristate: {
|
|
916
|
-
isEdit: boolean;
|
|
917
|
-
description: string;
|
|
918
|
-
configFields: {
|
|
919
|
-
name: string;
|
|
920
|
-
label: string;
|
|
921
|
-
type: string;
|
|
922
|
-
}[];
|
|
923
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
924
|
-
};
|
|
925
950
|
};
|
|
926
951
|
attributes: object[];
|
|
927
|
-
|
|
928
|
-
read: (v: object) => boolean | null;
|
|
929
|
-
readFromDB: (v: object) => object;
|
|
930
|
-
listAs: (v: object) => object;
|
|
952
|
+
read: (v: object) => object;
|
|
931
953
|
validate: () => boolean;
|
|
932
954
|
})[];
|
|
933
955
|
export const viewtemplates: ({
|
|
934
956
|
name: string;
|
|
935
957
|
description: string;
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
view_to_create?: string | undefined;
|
|
940
|
-
create_view_display: string;
|
|
941
|
-
create_view_label?: string | undefined;
|
|
942
|
-
default_state?: object | undefined;
|
|
943
|
-
create_view_location?: string | undefined;
|
|
944
|
-
}, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
|
|
945
|
-
listQuery: any;
|
|
946
|
-
}) => Promise<any>;
|
|
947
|
-
view_quantity: string;
|
|
948
|
-
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
958
|
+
get_state_fields: () => object[];
|
|
959
|
+
configuration_workflow: () => import("../models/workflow");
|
|
960
|
+
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
949
961
|
columns: object[];
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
962
|
+
layout: object;
|
|
963
|
+
}, state: object, extra: object, { distinctValuesQuery }: {
|
|
964
|
+
distinctValuesQuery: any;
|
|
965
|
+
}) => Promise<Layout>;
|
|
966
|
+
initial_config: () => Promise<object>;
|
|
967
|
+
display_state_form: boolean;
|
|
968
|
+
getStringsForI18n({ layout }: {
|
|
969
|
+
layout: any;
|
|
970
|
+
}): string[];
|
|
955
971
|
routes: {
|
|
956
|
-
run_action: (table_id:
|
|
957
|
-
|
|
958
|
-
layout: any;
|
|
959
|
-
}, body: object, { req, res }: {
|
|
960
|
-
req: object;
|
|
972
|
+
run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
|
|
973
|
+
req: any;
|
|
961
974
|
res: any;
|
|
962
|
-
}, {
|
|
963
|
-
|
|
964
|
-
}) => Promise<
|
|
975
|
+
}, { actionQuery }: {
|
|
976
|
+
actionQuery: any;
|
|
977
|
+
}) => Promise<any>;
|
|
965
978
|
};
|
|
966
|
-
|
|
967
|
-
default_state_form: ({ default_state }: object) => boolean;
|
|
968
|
-
getStringsForI18n({ columns, create_view_label }: {
|
|
969
|
-
columns: any;
|
|
970
|
-
create_view_label: any;
|
|
971
|
-
}): string[];
|
|
972
|
-
queries: ({ table_id, exttable_name, name, configuration: { columns, layout, default_state }, req, }: {
|
|
979
|
+
queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
|
|
973
980
|
table_id: any;
|
|
974
|
-
|
|
975
|
-
name: any;
|
|
981
|
+
viewname: any;
|
|
976
982
|
configuration: {
|
|
977
983
|
columns: any;
|
|
978
|
-
layout: any;
|
|
979
|
-
default_state: any;
|
|
980
984
|
};
|
|
981
985
|
req: any;
|
|
986
|
+
res: any;
|
|
987
|
+
exttable_name: any;
|
|
982
988
|
}) => {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
989
|
+
actionQuery(state: any, rndid: any): Promise<{
|
|
990
|
+
json: any;
|
|
991
|
+
}>;
|
|
992
|
+
distinctValuesQuery(state: any): Promise<{
|
|
993
|
+
distinct_values: {};
|
|
994
|
+
role: any;
|
|
986
995
|
}>;
|
|
987
|
-
getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
988
996
|
};
|
|
989
|
-
configCheck: (view: any) => Promise<{
|
|
990
|
-
errors: string[];
|
|
991
|
-
warnings: string[];
|
|
992
|
-
}>;
|
|
993
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
994
997
|
} | {
|
|
995
998
|
name: string;
|
|
996
999
|
description: string;
|
|
@@ -1148,6 +1151,212 @@ export const viewtemplates: ({
|
|
|
1148
1151
|
warnings: string[];
|
|
1149
1152
|
}>;
|
|
1150
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>;
|
|
1299
|
+
} | {
|
|
1300
|
+
name: string;
|
|
1301
|
+
description: string;
|
|
1302
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1303
|
+
run: (table_id: string | number, viewname: string, { columns, layout, view_to_create, create_view_display, create_view_label, default_state, create_view_location, create_link_style, create_link_size, create_view_showif, }: {
|
|
1304
|
+
columns: object[];
|
|
1305
|
+
view_to_create?: string | undefined;
|
|
1306
|
+
create_view_display: string;
|
|
1307
|
+
create_view_label?: string | undefined;
|
|
1308
|
+
default_state?: object | undefined;
|
|
1309
|
+
create_view_location?: string | undefined;
|
|
1310
|
+
}, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
|
|
1311
|
+
listQuery: any;
|
|
1312
|
+
}) => Promise<any>;
|
|
1313
|
+
view_quantity: string;
|
|
1314
|
+
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
1315
|
+
columns: object[];
|
|
1316
|
+
}) => Function;
|
|
1317
|
+
initial_config: Function;
|
|
1318
|
+
on_delete: (table_id: any, viewname: string, { default_state }: {
|
|
1319
|
+
default_state: any;
|
|
1320
|
+
}) => Promise<void>;
|
|
1321
|
+
routes: {
|
|
1322
|
+
run_action: (table_id: number, viewname: any, { columns, layout }: {
|
|
1323
|
+
columns: object[];
|
|
1324
|
+
layout: any;
|
|
1325
|
+
}, body: object, { req, res }: {
|
|
1326
|
+
req: object;
|
|
1327
|
+
res: any;
|
|
1328
|
+
}, { getRowQuery }: {
|
|
1329
|
+
getRowQuery: any;
|
|
1330
|
+
}) => Promise<object>;
|
|
1331
|
+
};
|
|
1332
|
+
display_state_form: (opts: object) => boolean;
|
|
1333
|
+
default_state_form: ({ default_state }: object) => boolean;
|
|
1334
|
+
getStringsForI18n({ columns, create_view_label }: {
|
|
1335
|
+
columns: any;
|
|
1336
|
+
create_view_label: any;
|
|
1337
|
+
}): string[];
|
|
1338
|
+
queries: ({ table_id, exttable_name, name, configuration: { columns, layout, default_state }, req, }: {
|
|
1339
|
+
table_id: any;
|
|
1340
|
+
exttable_name: any;
|
|
1341
|
+
name: any;
|
|
1342
|
+
configuration: {
|
|
1343
|
+
columns: any;
|
|
1344
|
+
layout: any;
|
|
1345
|
+
default_state: any;
|
|
1346
|
+
};
|
|
1347
|
+
req: any;
|
|
1348
|
+
}) => {
|
|
1349
|
+
listQuery(state: any, stateHash: any): Promise<{
|
|
1350
|
+
rows: import("@saltcorn/db-common/internal").Row[];
|
|
1351
|
+
rowCount: number;
|
|
1352
|
+
}>;
|
|
1353
|
+
getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1354
|
+
};
|
|
1355
|
+
configCheck: (view: any) => Promise<{
|
|
1356
|
+
errors: string[];
|
|
1357
|
+
warnings: string[];
|
|
1358
|
+
}>;
|
|
1359
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1151
1360
|
} | {
|
|
1152
1361
|
name: string;
|
|
1153
1362
|
description: string;
|
|
@@ -1259,188 +1468,6 @@ export const viewtemplates: ({
|
|
|
1259
1468
|
}) => Promise<{
|
|
1260
1469
|
embeddedViews: import("../models/view")[];
|
|
1261
1470
|
}>;
|
|
1262
|
-
} | {
|
|
1263
|
-
name: string;
|
|
1264
|
-
description: string;
|
|
1265
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1266
|
-
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 }: {
|
|
1267
|
-
show_view: string;
|
|
1268
|
-
order_field: void;
|
|
1269
|
-
descending: boolean;
|
|
1270
|
-
view_to_create?: string | undefined;
|
|
1271
|
-
create_view_display: string;
|
|
1272
|
-
in_card: boolean;
|
|
1273
|
-
masonry_columns: string;
|
|
1274
|
-
rows_per_page?: number | undefined;
|
|
1275
|
-
hide_pagination: boolean;
|
|
1276
|
-
create_view_label?: string | undefined;
|
|
1277
|
-
create_view_location?: string | undefined;
|
|
1278
|
-
always_create_view: boolean;
|
|
1279
|
-
cols: any;
|
|
1280
|
-
}, state: object, extraArgs: any, { countRowsQuery }: {
|
|
1281
|
-
countRowsQuery: any;
|
|
1282
|
-
}) => Promise<div>;
|
|
1283
|
-
get_state_fields: (table_id: number, viewname: any, { show_view }: {
|
|
1284
|
-
show_view: any;
|
|
1285
|
-
}) => Promise<import("../models/field")>;
|
|
1286
|
-
display_state_form: boolean;
|
|
1287
|
-
getStringsForI18n({ create_view_label }: {
|
|
1288
|
-
create_view_label: any;
|
|
1289
|
-
}): string[] | Object[];
|
|
1290
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1291
|
-
table_id: any;
|
|
1292
|
-
viewname: any;
|
|
1293
|
-
configuration: {
|
|
1294
|
-
columns: any;
|
|
1295
|
-
default_state: any;
|
|
1296
|
-
};
|
|
1297
|
-
req: any;
|
|
1298
|
-
}) => {
|
|
1299
|
-
countRowsQuery(state: any): Promise<number>;
|
|
1300
|
-
};
|
|
1301
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1302
|
-
} | {
|
|
1303
|
-
name: string;
|
|
1304
|
-
description: string;
|
|
1305
|
-
get_state_fields: () => object[];
|
|
1306
|
-
configuration_workflow: () => import("../models/workflow");
|
|
1307
|
-
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
1308
|
-
columns: object[];
|
|
1309
|
-
layout: object;
|
|
1310
|
-
}, state: object, extra: object, { distinctValuesQuery }: {
|
|
1311
|
-
distinctValuesQuery: any;
|
|
1312
|
-
}) => Promise<Layout>;
|
|
1313
|
-
initial_config: () => Promise<object>;
|
|
1314
|
-
display_state_form: boolean;
|
|
1315
|
-
getStringsForI18n({ layout }: {
|
|
1316
|
-
layout: any;
|
|
1317
|
-
}): string[];
|
|
1318
|
-
routes: {
|
|
1319
|
-
run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
|
|
1320
|
-
req: any;
|
|
1321
|
-
res: any;
|
|
1322
|
-
}, { actionQuery }: {
|
|
1323
|
-
actionQuery: any;
|
|
1324
|
-
}) => Promise<any>;
|
|
1325
|
-
};
|
|
1326
|
-
queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
|
|
1327
|
-
table_id: any;
|
|
1328
|
-
viewname: any;
|
|
1329
|
-
configuration: {
|
|
1330
|
-
columns: any;
|
|
1331
|
-
};
|
|
1332
|
-
req: any;
|
|
1333
|
-
res: any;
|
|
1334
|
-
exttable_name: any;
|
|
1335
|
-
}) => {
|
|
1336
|
-
actionQuery(state: any, rndid: any): Promise<{
|
|
1337
|
-
json: any;
|
|
1338
|
-
}>;
|
|
1339
|
-
distinctValuesQuery(state: any): Promise<{
|
|
1340
|
-
distinct_values: {};
|
|
1341
|
-
role: any;
|
|
1342
|
-
}>;
|
|
1343
|
-
};
|
|
1344
|
-
} | {
|
|
1345
|
-
name: string;
|
|
1346
|
-
description: string;
|
|
1347
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1348
|
-
run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1349
|
-
participant_field: string;
|
|
1350
|
-
msg_relation: string;
|
|
1351
|
-
msgsender_field: any;
|
|
1352
|
-
msgview: string;
|
|
1353
|
-
msgform: string;
|
|
1354
|
-
participant_maxread_field: string;
|
|
1355
|
-
}, state: object, { req, res }: {
|
|
1356
|
-
req: object;
|
|
1357
|
-
res: object;
|
|
1358
|
-
}, { getRowQuery, updateQuery, optionsQuery }: {
|
|
1359
|
-
getRowQuery: any;
|
|
1360
|
-
updateQuery: any;
|
|
1361
|
-
optionsQuery: any;
|
|
1362
|
-
}) => Promise<div>;
|
|
1363
|
-
get_state_fields: () => object[];
|
|
1364
|
-
display_state_form: boolean;
|
|
1365
|
-
routes: {
|
|
1366
|
-
submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1367
|
-
participant_field: string;
|
|
1368
|
-
msg_relation: string;
|
|
1369
|
-
msgsender_field: any;
|
|
1370
|
-
msgview: string;
|
|
1371
|
-
msgform: string;
|
|
1372
|
-
participant_maxread_field: string;
|
|
1373
|
-
}, body: any, { req, res }: {
|
|
1374
|
-
req: object;
|
|
1375
|
-
res: object;
|
|
1376
|
-
}, { submitAjaxQuery }: {
|
|
1377
|
-
submitAjaxQuery: any;
|
|
1378
|
-
}) => Promise<object>;
|
|
1379
|
-
ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
|
|
1380
|
-
participant_field: string;
|
|
1381
|
-
participant_maxread_field: string;
|
|
1382
|
-
}, body: any, { req, res }: {
|
|
1383
|
-
req: object;
|
|
1384
|
-
res: object;
|
|
1385
|
-
}, { ackReadQuery }: {
|
|
1386
|
-
ackReadQuery: any;
|
|
1387
|
-
}) => Promise<void>;
|
|
1388
|
-
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>;
|
|
1389
|
-
};
|
|
1390
|
-
noAutoTest: boolean;
|
|
1391
|
-
authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
|
|
1392
|
-
participant_field: object;
|
|
1393
|
-
}, room_id: string, user: object) => Promise<object>;
|
|
1394
|
-
virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1395
|
-
participant_field: any;
|
|
1396
|
-
msg_relation: string;
|
|
1397
|
-
msgsender_field: string;
|
|
1398
|
-
msgview: string;
|
|
1399
|
-
msgform: any;
|
|
1400
|
-
participant_maxread_field: any;
|
|
1401
|
-
}) => object[];
|
|
1402
|
-
getStringsForI18n(): object[];
|
|
1403
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1404
|
-
table_id: any;
|
|
1405
|
-
viewname: any;
|
|
1406
|
-
configuration: {
|
|
1407
|
-
columns: any;
|
|
1408
|
-
default_state: any;
|
|
1409
|
-
};
|
|
1410
|
-
req: any;
|
|
1411
|
-
}) => {
|
|
1412
|
-
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>;
|
|
1413
|
-
updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
|
|
1414
|
-
submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
|
|
1415
|
-
json: {
|
|
1416
|
-
msgid: {
|
|
1417
|
-
error: string;
|
|
1418
|
-
} | {
|
|
1419
|
-
success: any;
|
|
1420
|
-
};
|
|
1421
|
-
error?: undefined;
|
|
1422
|
-
};
|
|
1423
|
-
} | {
|
|
1424
|
-
json: {
|
|
1425
|
-
error: any;
|
|
1426
|
-
msgid?: undefined;
|
|
1427
|
-
};
|
|
1428
|
-
}>;
|
|
1429
|
-
ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
|
|
1430
|
-
json: {
|
|
1431
|
-
error: string;
|
|
1432
|
-
success?: undefined;
|
|
1433
|
-
};
|
|
1434
|
-
} | {
|
|
1435
|
-
json: {
|
|
1436
|
-
success: string;
|
|
1437
|
-
error?: undefined;
|
|
1438
|
-
};
|
|
1439
|
-
}>;
|
|
1440
|
-
fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1441
|
-
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1442
|
-
};
|
|
1443
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1444
1471
|
})[];
|
|
1445
1472
|
import fileviews = require("./fileviews");
|
|
1446
1473
|
import actions = require("./actions");
|