@saltcorn/data 0.9.0-beta.0 → 0.9.0-beta.1

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.
@@ -1,4 +1,98 @@
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
+ } | {
2
96
  name: string;
3
97
  sql_name: string;
4
98
  js_type: string;
@@ -322,100 +416,6 @@ export const types: ({
322
416
  validate_attributes: ({ min, max }: object) => boolean;
323
417
  read: (v: object) => object;
324
418
  validate: ({ min, max }: object) => boolean;
325
- } | {
326
- name: string;
327
- sql_name: string;
328
- js_type: string;
329
- contract: () => Function;
330
- fieldviews: {
331
- show: {
332
- isEdit: boolean;
333
- run: (v: any) => any;
334
- };
335
- checkboxes: {
336
- isEdit: boolean;
337
- run: (v: any) => any;
338
- };
339
- TrueFalse: {
340
- isEdit: boolean;
341
- run: (v: any) => "" | "True" | "False";
342
- };
343
- edit: {
344
- isEdit: boolean;
345
- configFields: {
346
- name: string;
347
- label: string;
348
- type: string;
349
- attributes: {
350
- options: string[];
351
- };
352
- }[];
353
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
354
- };
355
- switch: {
356
- isEdit: boolean;
357
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
358
- };
359
- tristate: {
360
- isEdit: boolean;
361
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
362
- };
363
- };
364
- attributes: object[];
365
- readFromFormRecord: (rec: any, name: string) => boolean | null;
366
- read: (v: object) => boolean | null;
367
- readFromDB: (v: object) => object;
368
- listAs: (v: object) => object;
369
- validate: () => boolean;
370
- } | {
371
- name: string;
372
- sql_name: string;
373
- js_type: string;
374
- contract: () => Function;
375
- attributes: object[];
376
- fieldviews: {
377
- show: {
378
- isEdit: boolean;
379
- run: (d: any, req: any) => any;
380
- };
381
- showDay: {
382
- isEdit: boolean;
383
- run: (d: any, req: any) => any;
384
- };
385
- format: {
386
- isEdit: boolean;
387
- configFields: {
388
- name: string;
389
- label: string;
390
- type: string;
391
- sublabel: string;
392
- }[];
393
- run: (d: any, req: any, options: any) => any;
394
- };
395
- relative: {
396
- isEdit: boolean;
397
- run: (d: any, req: any) => string;
398
- };
399
- yearsAgo: {
400
- isEdit: boolean;
401
- run: (d: any, req: any) => string;
402
- };
403
- edit: {
404
- isEdit: boolean;
405
- blockDisplay: boolean;
406
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
407
- };
408
- editDay: {
409
- isEdit: boolean;
410
- blockDisplay: boolean;
411
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
412
- };
413
- };
414
- presets: {
415
- Now: () => Date;
416
- };
417
- read: (v: object, attrs: object) => object;
418
- validate: () => boolean;
419
419
  } | {
420
420
  name: string;
421
421
  sql_name: string;
@@ -544,63 +544,45 @@ export const types: ({
544
544
  export const viewtemplates: ({
545
545
  name: string;
546
546
  description: string;
547
- configuration_workflow: (req: object) => import("../models/workflow");
548
- 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, }: {
549
- columns: object[];
550
- view_to_create?: string | undefined;
551
- create_view_display: string;
552
- create_view_label?: string | undefined;
553
- default_state?: object | undefined;
554
- create_view_location?: string | undefined;
555
- }, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
556
- listQuery: any;
557
- }) => Promise<any>;
558
- view_quantity: string;
559
- get_state_fields: (table_id: string, viewname: any, { columns }: {
547
+ get_state_fields: () => object[];
548
+ configuration_workflow: () => import("../models/workflow");
549
+ run: (table_id: number, viewname: string, { columns, layout }: {
560
550
  columns: object[];
561
- }) => Function;
562
- initial_config: Function;
563
- on_delete: (table_id: any, viewname: string, { default_state }: {
564
- default_state: any;
565
- }) => Promise<void>;
551
+ layout: object;
552
+ }, state: object, extra: object, { distinctValuesQuery }: {
553
+ distinctValuesQuery: any;
554
+ }) => Promise<Layout>;
555
+ initial_config: () => Promise<object>;
556
+ display_state_form: boolean;
557
+ getStringsForI18n({ layout }: {
558
+ layout: any;
559
+ }): string[];
566
560
  routes: {
567
- run_action: (table_id: number, viewname: any, { columns, layout }: {
568
- columns: object[];
569
- layout: any;
570
- }, body: object, { req, res }: {
571
- req: object;
561
+ run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
562
+ req: any;
572
563
  res: any;
573
- }, { getRowQuery }: {
574
- getRowQuery: any;
575
- }) => Promise<object>;
564
+ }, { actionQuery }: {
565
+ actionQuery: any;
566
+ }) => Promise<any>;
576
567
  };
577
- display_state_form: (opts: object) => boolean;
578
- default_state_form: ({ default_state }: object) => boolean;
579
- getStringsForI18n({ columns, create_view_label }: {
580
- columns: any;
581
- create_view_label: any;
582
- }): string[];
583
- queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
568
+ queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
584
569
  table_id: any;
585
- exttable_name: any;
586
- name: any;
570
+ viewname: any;
587
571
  configuration: {
588
572
  columns: any;
589
- default_state: any;
590
573
  };
591
574
  req: any;
575
+ res: any;
576
+ exttable_name: any;
592
577
  }) => {
593
- listQuery(state: any, stateHash: any): Promise<{
594
- rows: import("@saltcorn/db-common/internal").Row[];
595
- rowCount: number;
578
+ actionQuery(state: any, rndid: any): Promise<{
579
+ json: any;
580
+ }>;
581
+ distinctValuesQuery(state: any): Promise<{
582
+ distinct_values: {};
583
+ role: any;
596
584
  }>;
597
- getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
598
585
  };
599
- configCheck: (view: any) => Promise<{
600
- errors: string[];
601
- warnings: string[];
602
- }>;
603
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
604
586
  } | {
605
587
  name: string;
606
588
  description: string;
@@ -750,6 +732,146 @@ export const viewtemplates: ({
750
732
  warnings: string[];
751
733
  }>;
752
734
  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>;
753
875
  } | {
754
876
  name: string;
755
877
  description: string;
@@ -827,179 +949,81 @@ export const viewtemplates: ({
827
949
  name: string;
828
950
  description: string;
829
951
  configuration_workflow: (req: object) => import("../models/workflow");
830
- run: (table_id: string, viewname: string, { list_view, show_view, list_width, subtables }: {
831
- list_view: string;
832
- show_view: string;
833
- subtables: object;
834
- }, state: any, extraArgs: any, { getRowQuery }: {
835
- getRowQuery: any;
836
- }) => Promise<div>;
837
- get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
838
- list_view: string;
839
- show_view: any;
840
- }) => Promise<object[]>;
841
- display_state_form: ({ list_view, _omit_state_form }: {
842
- list_view: string;
843
- _omit_state_form: boolean;
844
- }) => boolean;
845
- queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
846
- table_id: any;
847
- viewname: any;
848
- configuration: {
849
- columns: any;
850
- default_state: any;
851
- };
852
- req: any;
853
- }) => {
854
- getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
855
- };
856
- connectedObjects: ({ list_view, subtables }: {
857
- list_view: any;
858
- subtables: any;
859
- }) => Promise<{
860
- embeddedViews: import("../models/view")[];
861
- }>;
862
- } | {
863
- name: string;
864
- description: string;
865
- configuration_workflow: (req: object) => import("../models/workflow");
866
- run: (table_id: number, viewname: string, { show_view, order_field, descending, view_to_create, create_view_display, in_card, view_decoration, title_formula, masonry_columns, rows_per_page, hide_pagination, create_view_label, create_view_location, create_link_style, create_link_size, always_create_view, include_fml, empty_view, ...cols }: {
867
- show_view: string;
868
- order_field: name;
869
- descending: boolean;
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[];
870
954
  view_to_create?: string | undefined;
871
955
  create_view_display: string;
872
- in_card: boolean;
873
- masonry_columns: string;
874
- rows_per_page?: number | undefined;
875
- hide_pagination: boolean;
876
956
  create_view_label?: string | undefined;
957
+ default_state?: object | undefined;
877
958
  create_view_location?: string | undefined;
878
- always_create_view: boolean;
879
- cols: any;
880
- }, state: object, extraArgs: any, { countRowsQuery }: {
881
- countRowsQuery: any;
882
- }) => Promise<div>;
883
- get_state_fields: (table_id: number, viewname: any, { show_view }: {
884
- show_view: any;
885
- }) => Promise<import("../models/field")>;
886
- display_state_form: boolean;
887
- getStringsForI18n({ create_view_label }: {
888
- create_view_label: any;
889
- }): string[] | Object[];
890
- queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
891
- table_id: any;
892
- viewname: any;
893
- configuration: {
894
- columns: any;
895
- default_state: any;
896
- };
897
- req: any;
898
- }) => {
899
- countRowsQuery(state: any): Promise<number>;
900
- };
901
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
902
- } | {
903
- name: string;
904
- description: string;
905
- get_state_fields: () => object[];
906
- configuration_workflow: () => import("../models/workflow");
907
- run: (table_id: number, viewname: string, { columns, layout }: {
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 }: {
908
964
  columns: object[];
909
- layout: object;
910
- }, state: object, extra: object, { distinctValuesQuery }: {
911
- distinctValuesQuery: any;
912
- }) => Promise<Layout>;
913
- initial_config: () => Promise<object>;
914
- display_state_form: boolean;
915
- getStringsForI18n({ layout }: {
916
- layout: any;
917
- }): string[];
965
+ }) => Function;
966
+ initial_config: Function;
967
+ on_delete: (table_id: any, viewname: string, { default_state }: {
968
+ default_state: any;
969
+ }) => Promise<void>;
918
970
  routes: {
919
- run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
920
- req: any;
971
+ run_action: (table_id: number, viewname: any, { columns, layout }: {
972
+ columns: object[];
973
+ layout: any;
974
+ }, body: object, { req, res }: {
975
+ req: object;
921
976
  res: any;
922
- }, { actionQuery }: {
923
- actionQuery: any;
924
- }) => Promise<any>;
977
+ }, { getRowQuery }: {
978
+ getRowQuery: any;
979
+ }) => Promise<object>;
925
980
  };
926
- queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
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, }: {
927
988
  table_id: any;
928
- viewname: any;
989
+ exttable_name: any;
990
+ name: any;
929
991
  configuration: {
930
992
  columns: any;
993
+ default_state: any;
931
994
  };
932
995
  req: any;
933
- res: any;
934
- exttable_name: any;
935
996
  }) => {
936
- actionQuery(state: any, rndid: any): Promise<{
937
- json: any;
938
- }>;
939
- distinctValuesQuery(state: any): Promise<{
940
- distinct_values: {};
941
- role: any;
997
+ listQuery(state: any, stateHash: any): Promise<{
998
+ rows: import("@saltcorn/db-common/internal").Row[];
999
+ rowCount: number;
942
1000
  }>;
1001
+ getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
943
1002
  };
1003
+ configCheck: (view: any) => Promise<{
1004
+ errors: string[];
1005
+ warnings: string[];
1006
+ }>;
1007
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
944
1008
  } | {
945
1009
  name: string;
946
1010
  description: string;
947
1011
  configuration_workflow: (req: object) => import("../models/workflow");
948
- run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
949
- participant_field: string;
950
- msg_relation: string;
951
- msgsender_field: any;
952
- msgview: string;
953
- msgform: string;
954
- participant_maxread_field: string;
955
- }, state: object, { req, res }: {
956
- req: object;
957
- res: object;
958
- }, { getRowQuery, updateQuery, optionsQuery }: {
1012
+ run: (table_id: string, viewname: string, { list_view, show_view, list_width, subtables }: {
1013
+ list_view: string;
1014
+ show_view: string;
1015
+ subtables: object;
1016
+ }, state: any, extraArgs: any, { getRowQuery }: {
959
1017
  getRowQuery: any;
960
- updateQuery: any;
961
- optionsQuery: any;
962
1018
  }) => Promise<div>;
963
- get_state_fields: () => object[];
964
- display_state_form: boolean;
965
- routes: {
966
- submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
967
- participant_field: string;
968
- msg_relation: string;
969
- msgsender_field: any;
970
- msgview: string;
971
- msgform: string;
972
- participant_maxread_field: string;
973
- }, body: any, { req, res }: {
974
- req: object;
975
- res: object;
976
- }, { submitAjaxQuery }: {
977
- submitAjaxQuery: any;
978
- }) => Promise<object>;
979
- ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
980
- participant_field: string;
981
- participant_maxread_field: string;
982
- }, body: any, { req, res }: {
983
- req: object;
984
- res: object;
985
- }, { ackReadQuery }: {
986
- ackReadQuery: any;
987
- }) => Promise<void>;
988
- 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>;
989
- };
990
- noAutoTest: boolean;
991
- authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
992
- participant_field: object;
993
- }, room_id: string, user: object) => Promise<object>;
994
- virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
995
- participant_field: any;
996
- msg_relation: string;
997
- msgsender_field: string;
998
- msgview: string;
999
- msgform: any;
1000
- participant_maxread_field: any;
1001
- }) => object[];
1002
- getStringsForI18n(): object[];
1019
+ get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
1020
+ list_view: string;
1021
+ show_view: any;
1022
+ }) => Promise<object[]>;
1023
+ display_state_form: ({ list_view, _omit_state_form }: {
1024
+ list_view: string;
1025
+ _omit_state_form: boolean;
1026
+ }) => boolean;
1003
1027
  queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
1004
1028
  table_id: any;
1005
1029
  viewname: any;
@@ -1009,38 +1033,14 @@ export const viewtemplates: ({
1009
1033
  };
1010
1034
  req: any;
1011
1035
  }) => {
1012
- 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>;
1013
- updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
1014
- submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
1015
- json: {
1016
- msgid: {
1017
- error: string;
1018
- } | {
1019
- success: any;
1020
- };
1021
- error?: undefined;
1022
- };
1023
- } | {
1024
- json: {
1025
- error: any;
1026
- msgid?: undefined;
1027
- };
1028
- }>;
1029
- ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
1030
- json: {
1031
- error: string;
1032
- success?: undefined;
1033
- };
1034
- } | {
1035
- json: {
1036
- success: string;
1037
- error?: undefined;
1038
- };
1039
- }>;
1040
- fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
1041
- optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
1036
+ getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
1042
1037
  };
1043
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1038
+ connectedObjects: ({ list_view, subtables }: {
1039
+ list_view: any;
1040
+ subtables: any;
1041
+ }) => Promise<{
1042
+ embeddedViews: import("../models/view")[];
1043
+ }>;
1044
1044
  })[];
1045
1045
  import fileviews = require("./fileviews");
1046
1046
  import actions = require("./actions");