@saltcorn/data 0.9.3-beta.2 → 0.9.3-beta.4

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.
@@ -393,7 +393,100 @@ export const types: ({
393
393
  show: {
394
394
  isEdit: boolean;
395
395
  description: string;
396
- run: (s: any) => any;
396
+ run: (v: any) => any;
397
+ };
398
+ checkboxes: {
399
+ isEdit: boolean;
400
+ description: string;
401
+ run: (v: any) => any;
402
+ };
403
+ TrueFalse: {
404
+ isEdit: boolean;
405
+ description: string;
406
+ run: (v: any) => "" | "True" | "False";
407
+ };
408
+ edit: {
409
+ isEdit: boolean;
410
+ description: string;
411
+ configFields: {
412
+ name: string;
413
+ label: string;
414
+ type: string;
415
+ attributes: {
416
+ options: string[];
417
+ };
418
+ }[];
419
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
420
+ };
421
+ switch: {
422
+ isEdit: boolean;
423
+ description: string;
424
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
425
+ };
426
+ show_with_html: {
427
+ configFields: {
428
+ input_type: string;
429
+ name: string;
430
+ label: string;
431
+ sublabel: string;
432
+ default: string;
433
+ attributes: {
434
+ mode: string;
435
+ };
436
+ }[];
437
+ isEdit: boolean;
438
+ description: string;
439
+ run: (v: any, req: any, attrs?: {}) => any;
440
+ };
441
+ tristate: {
442
+ isEdit: boolean;
443
+ description: string;
444
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
445
+ };
446
+ };
447
+ attributes: object[];
448
+ readFromFormRecord: (rec: any, name: string) => boolean | null;
449
+ read: (v: object) => boolean | null;
450
+ readFromDB: (v: object) => object;
451
+ listAs: (v: object) => object;
452
+ validate: () => boolean;
453
+ } | {
454
+ name: string;
455
+ sql_name: string;
456
+ js_type: string;
457
+ contract: () => Function;
458
+ attributes: object[];
459
+ fieldviews: {
460
+ show: {
461
+ isEdit: boolean;
462
+ description: string;
463
+ run: (d: any, req: any, attrs?: {}) => any;
464
+ };
465
+ showDay: {
466
+ isEdit: boolean;
467
+ description: string;
468
+ run: (d: any, req: any) => any;
469
+ };
470
+ format: {
471
+ isEdit: boolean;
472
+ description: string;
473
+ configFields: {
474
+ name: string;
475
+ label: string;
476
+ type: string;
477
+ sublabel: string;
478
+ }[];
479
+ run: (d: any, req: any, options: any) => any;
480
+ };
481
+ relative: {
482
+ isEdit: boolean;
483
+ description: string;
484
+ run: (d: any, req: any) => string;
485
+ };
486
+ yearsAgo: {
487
+ isEdit: boolean;
488
+ description: string;
489
+ run: (d: any, req: any) => string;
397
490
  };
398
491
  show_with_html: {
399
492
  configFields: {
@@ -416,9 +509,17 @@ export const types: ({
416
509
  description: string;
417
510
  run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
418
511
  };
512
+ editDay: {
513
+ isEdit: boolean;
514
+ blockDisplay: boolean;
515
+ description: string;
516
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
517
+ };
419
518
  };
420
- attributes: object[];
421
- read: (v: object) => object;
519
+ presets: {
520
+ Now: () => Date;
521
+ };
522
+ read: (v: object, attrs: object) => object;
422
523
  validate: () => boolean;
423
524
  } | {
424
525
  name: string;
@@ -551,38 +652,11 @@ export const types: ({
551
652
  sql_name: string;
552
653
  js_type: string;
553
654
  contract: () => Function;
554
- attributes: object[];
555
655
  fieldviews: {
556
656
  show: {
557
657
  isEdit: boolean;
558
658
  description: string;
559
- run: (d: any, req: any, attrs?: {}) => any;
560
- };
561
- showDay: {
562
- isEdit: boolean;
563
- description: string;
564
- run: (d: any, req: any) => any;
565
- };
566
- format: {
567
- isEdit: boolean;
568
- description: string;
569
- configFields: {
570
- name: string;
571
- label: string;
572
- type: string;
573
- sublabel: string;
574
- }[];
575
- run: (d: any, req: any, options: any) => any;
576
- };
577
- relative: {
578
- isEdit: boolean;
579
- description: string;
580
- run: (d: any, req: any) => string;
581
- };
582
- yearsAgo: {
583
- isEdit: boolean;
584
- description: string;
585
- run: (d: any, req: any) => string;
659
+ run: (s: any) => any;
586
660
  };
587
661
  show_with_html: {
588
662
  configFields: {
@@ -605,122 +679,12 @@ export const types: ({
605
679
  description: string;
606
680
  run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
607
681
  };
608
- editDay: {
609
- isEdit: boolean;
610
- blockDisplay: boolean;
611
- description: string;
612
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
613
- };
614
- };
615
- presets: {
616
- Now: () => Date;
617
- };
618
- read: (v: object, attrs: object) => object;
619
- validate: () => boolean;
620
- } | {
621
- name: string;
622
- sql_name: string;
623
- js_type: string;
624
- contract: () => Function;
625
- fieldviews: {
626
- show: {
627
- isEdit: boolean;
628
- description: string;
629
- run: (v: any) => any;
630
- };
631
- checkboxes: {
632
- isEdit: boolean;
633
- description: string;
634
- run: (v: any) => any;
635
- };
636
- TrueFalse: {
637
- isEdit: boolean;
638
- description: string;
639
- run: (v: any) => "" | "True" | "False";
640
- };
641
- edit: {
642
- isEdit: boolean;
643
- description: string;
644
- configFields: {
645
- name: string;
646
- label: string;
647
- type: string;
648
- attributes: {
649
- options: string[];
650
- };
651
- }[];
652
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
653
- };
654
- switch: {
655
- isEdit: boolean;
656
- description: string;
657
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
658
- };
659
- show_with_html: {
660
- configFields: {
661
- input_type: string;
662
- name: string;
663
- label: string;
664
- sublabel: string;
665
- default: string;
666
- attributes: {
667
- mode: string;
668
- };
669
- }[];
670
- isEdit: boolean;
671
- description: string;
672
- run: (v: any, req: any, attrs?: {}) => any;
673
- };
674
- tristate: {
675
- isEdit: boolean;
676
- description: string;
677
- run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
678
- };
679
682
  };
680
683
  attributes: object[];
681
- readFromFormRecord: (rec: any, name: string) => boolean | null;
682
- read: (v: object) => boolean | null;
683
- readFromDB: (v: object) => object;
684
- listAs: (v: object) => object;
684
+ read: (v: object) => object;
685
685
  validate: () => boolean;
686
686
  })[];
687
687
  export const viewtemplates: ({
688
- name: string;
689
- description: string;
690
- configuration_workflow: (req: object) => import("../models/workflow");
691
- run: (table_id: string, viewname: string, { list_view, show_view, list_width, subtables }: {
692
- list_view: string;
693
- show_view: string;
694
- subtables: object;
695
- }, state: any, extraArgs: any, { getRowQuery }: {
696
- getRowQuery: any;
697
- }) => Promise<div>;
698
- get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
699
- list_view: string;
700
- show_view: any;
701
- }) => Promise<object[]>;
702
- display_state_form: ({ list_view, _omit_state_form }: {
703
- list_view: string;
704
- _omit_state_form: boolean;
705
- }) => boolean;
706
- queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
707
- table_id: any;
708
- viewname: any;
709
- configuration: {
710
- columns: any;
711
- default_state: any;
712
- };
713
- req: any;
714
- }) => {
715
- getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
716
- };
717
- connectedObjects: ({ list_view, subtables }: {
718
- list_view: any;
719
- subtables: any;
720
- }) => Promise<{
721
- embeddedViews: import("../models/view")[];
722
- }>;
723
- } | {
724
688
  name: string;
725
689
  description: string;
726
690
  configuration_workflow: (req: object) => import("../models/workflow");
@@ -783,82 +747,8 @@ export const viewtemplates: ({
783
747
  } | {
784
748
  name: string;
785
749
  description: string;
786
- get_state_fields: () => object[];
787
750
  configuration_workflow: (req: object) => import("../models/workflow");
788
- run: (table_id: string, viewname: string, { columns, layout, page_title, page_title_formula }: {
789
- columns: object[];
790
- layout: object;
791
- page_title?: string | undefined;
792
- page_title_formula: boolean;
793
- }, state: object, extra: object, { showQuery }: {
794
- showQuery: any;
795
- }) => Promise<string>;
796
- runMany: (table_id: number, viewname: string, { columns, layout }: {
797
- columns: object[];
798
- layout: object;
799
- }, state: object, extra: object, { runManyQuery }: {
800
- runManyQuery: any;
801
- }) => Promise<object[]>;
802
- renderRows: (table: object, viewname: string, { columns, layout }: {
803
- columns: object[];
804
- layout: object;
805
- }, extra: object, rows: object[], state: any) => Promise<string>;
806
- initial_config: Function;
807
- display_state_form: boolean;
808
- routes: {
809
- run_action: (table_id: number, viewname: any, { columns, layout }: {
810
- columns: object[];
811
- layout: any;
812
- }, body: any, { req, res }: {
813
- req: object;
814
- res: any;
815
- }, { actionQuery }: {
816
- actionQuery: any;
817
- }) => Promise<object>;
818
- };
819
- getStringsForI18n({ layout }: {
820
- layout: object;
821
- }): string[];
822
- queries: ({ table_id, exttable_name, name, configuration: { columns, layout }, req, res, }: {
823
- table_id: any;
824
- exttable_name: any;
825
- name: any;
826
- configuration: {
827
- columns: any;
828
- layout: any;
829
- };
830
- req: any;
831
- res: any;
832
- }) => {
833
- showQuery(state: any, fields: any): Promise<{
834
- rows: null;
835
- message: string;
836
- } | {
837
- rows: import("@saltcorn/db-common/internal").Row[];
838
- message: null;
839
- }>;
840
- runManyQuery(state: any, { where, limit, offset, joinFieldsExtra, orderBy, orderDesc }: {
841
- where: any;
842
- limit: any;
843
- offset: any;
844
- joinFieldsExtra: any;
845
- orderBy: any;
846
- orderDesc: any;
847
- }): Promise<import("@saltcorn/db-common/internal").Row[]>;
848
- actionQuery(): Promise<{
849
- json: any;
850
- }>;
851
- };
852
- configCheck: (view: any) => Promise<{
853
- errors: string[];
854
- warnings: string[];
855
- }>;
856
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
857
- } | {
858
- name: string;
859
- description: string;
860
- configuration_workflow: (req: object) => import("../models/workflow");
861
- run: (table_id: number, viewname: string, { show_view, order_field, descending, view_to_create, create_view_display, in_card, view_decoration, initial_open_accordions, title_formula, masonry_columns, rows_per_page, hide_pagination, create_view_label, create_view_location, create_link_style, create_link_size, always_create_view, include_fml, empty_view, groupby, ...cols }: {
751
+ run: (table_id: number, viewname: string, { show_view, order_field, descending, view_to_create, create_view_display, in_card, view_decoration, initial_open_accordions, title_formula, masonry_columns, rows_per_page, hide_pagination, create_view_label, create_view_location, create_link_style, create_link_size, always_create_view, include_fml, exclusion_relation, exclusion_where, empty_view, groupby, ...cols }: {
862
752
  show_view: string;
863
753
  order_field: void;
864
754
  descending: boolean;
@@ -894,106 +784,6 @@ export const viewtemplates: ({
894
784
  countRowsQuery(state: any): Promise<number>;
895
785
  };
896
786
  connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
897
- } | {
898
- name: string;
899
- description: string;
900
- configuration_workflow: (req: object) => import("../models/workflow");
901
- run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
902
- participant_field: string;
903
- msg_relation: string;
904
- msgsender_field: any;
905
- msgview: string;
906
- msgform: string;
907
- participant_maxread_field: string;
908
- }, state: object, { req, res }: {
909
- req: object;
910
- res: object;
911
- }, { getRowQuery, updateQuery, optionsQuery }: {
912
- getRowQuery: any;
913
- updateQuery: any;
914
- optionsQuery: any;
915
- }) => Promise<div>;
916
- get_state_fields: () => object[];
917
- display_state_form: boolean;
918
- routes: {
919
- submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
920
- participant_field: string;
921
- msg_relation: string;
922
- msgsender_field: any;
923
- msgview: string;
924
- msgform: string;
925
- participant_maxread_field: string;
926
- }, body: any, { req, res }: {
927
- req: object;
928
- res: object;
929
- }, { submitAjaxQuery }: {
930
- submitAjaxQuery: any;
931
- }) => Promise<object>;
932
- ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
933
- participant_field: string;
934
- participant_maxread_field: string;
935
- }, body: any, { req, res }: {
936
- req: object;
937
- res: object;
938
- }, { ackReadQuery }: {
939
- ackReadQuery: any;
940
- }) => Promise<void>;
941
- 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>;
942
- };
943
- noAutoTest: boolean;
944
- authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
945
- participant_field: object;
946
- }, room_id: string, user: object) => Promise<object>;
947
- virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
948
- participant_field: any;
949
- msg_relation: string;
950
- msgsender_field: string;
951
- msgview: string;
952
- msgform: any;
953
- participant_maxread_field: any;
954
- }) => object[];
955
- getStringsForI18n(): object[];
956
- queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
957
- table_id: any;
958
- viewname: any;
959
- configuration: {
960
- columns: any;
961
- default_state: any;
962
- };
963
- req: any;
964
- }) => {
965
- 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>;
966
- updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
967
- submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
968
- json: {
969
- msgid: {
970
- error: string;
971
- } | {
972
- success: any;
973
- };
974
- error?: undefined;
975
- };
976
- } | {
977
- json: {
978
- error: any;
979
- msgid?: undefined;
980
- };
981
- }>;
982
- ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
983
- json: {
984
- error: string;
985
- success?: undefined;
986
- };
987
- } | {
988
- json: {
989
- success: string;
990
- error?: undefined;
991
- };
992
- }>;
993
- fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
994
- optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
995
- };
996
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
997
787
  } | {
998
788
  name: string;
999
789
  description: string;
@@ -1143,6 +933,116 @@ export const viewtemplates: ({
1143
933
  warnings: string[];
1144
934
  }>;
1145
935
  connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
936
+ } | {
937
+ name: string;
938
+ description: string;
939
+ get_state_fields: () => object[];
940
+ configuration_workflow: (req: object) => import("../models/workflow");
941
+ run: (table_id: string, viewname: string, { columns, layout, page_title, page_title_formula }: {
942
+ columns: object[];
943
+ layout: object;
944
+ page_title?: string | undefined;
945
+ page_title_formula: boolean;
946
+ }, state: object, extra: object, { showQuery }: {
947
+ showQuery: any;
948
+ }) => Promise<string>;
949
+ runMany: (table_id: number, viewname: string, { columns, layout }: {
950
+ columns: object[];
951
+ layout: object;
952
+ }, state: object, extra: object, { runManyQuery }: {
953
+ runManyQuery: any;
954
+ }) => Promise<object[]>;
955
+ renderRows: (table: object, viewname: string, { columns, layout }: {
956
+ columns: object[];
957
+ layout: object;
958
+ }, extra: object, rows: object[], state: any) => Promise<string>;
959
+ initial_config: Function;
960
+ display_state_form: boolean;
961
+ routes: {
962
+ run_action: (table_id: number, viewname: any, { columns, layout }: {
963
+ columns: object[];
964
+ layout: any;
965
+ }, body: any, { req, res }: {
966
+ req: object;
967
+ res: any;
968
+ }, { actionQuery }: {
969
+ actionQuery: any;
970
+ }) => Promise<object>;
971
+ };
972
+ getStringsForI18n({ layout }: {
973
+ layout: object;
974
+ }): string[];
975
+ queries: ({ table_id, exttable_name, name, configuration: { columns, layout }, req, res, }: {
976
+ table_id: any;
977
+ exttable_name: any;
978
+ name: any;
979
+ configuration: {
980
+ columns: any;
981
+ layout: any;
982
+ };
983
+ req: any;
984
+ res: any;
985
+ }) => {
986
+ showQuery(state: any, fields: any): Promise<{
987
+ rows: null;
988
+ message: string;
989
+ } | {
990
+ rows: import("@saltcorn/db-common/internal").Row[];
991
+ message: null;
992
+ }>;
993
+ runManyQuery(state: any, { where, limit, offset, joinFieldsExtra, orderBy, orderDesc }: {
994
+ where: any;
995
+ limit: any;
996
+ offset: any;
997
+ joinFieldsExtra: any;
998
+ orderBy: any;
999
+ orderDesc: any;
1000
+ }): Promise<import("@saltcorn/db-common/internal").Row[]>;
1001
+ actionQuery(): Promise<{
1002
+ json: any;
1003
+ }>;
1004
+ };
1005
+ configCheck: (view: any) => Promise<{
1006
+ errors: string[];
1007
+ warnings: string[];
1008
+ }>;
1009
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1010
+ } | {
1011
+ name: string;
1012
+ description: string;
1013
+ configuration_workflow: (req: object) => import("../models/workflow");
1014
+ run: (table_id: string, viewname: string, { list_view, show_view, list_width, subtables }: {
1015
+ list_view: string;
1016
+ show_view: string;
1017
+ subtables: object;
1018
+ }, state: any, extraArgs: any, { getRowQuery }: {
1019
+ getRowQuery: any;
1020
+ }) => Promise<div>;
1021
+ get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
1022
+ list_view: string;
1023
+ show_view: any;
1024
+ }) => Promise<object[]>;
1025
+ display_state_form: ({ list_view, _omit_state_form }: {
1026
+ list_view: string;
1027
+ _omit_state_form: boolean;
1028
+ }) => boolean;
1029
+ queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
1030
+ table_id: any;
1031
+ viewname: any;
1032
+ configuration: {
1033
+ columns: any;
1034
+ default_state: any;
1035
+ };
1036
+ req: any;
1037
+ }) => {
1038
+ getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
1039
+ };
1040
+ connectedObjects: ({ list_view, subtables }: {
1041
+ list_view: any;
1042
+ subtables: any;
1043
+ }) => Promise<{
1044
+ embeddedViews: import("../models/view")[];
1045
+ }>;
1146
1046
  } | {
1147
1047
  name: string;
1148
1048
  description: string;
@@ -1185,6 +1085,106 @@ export const viewtemplates: ({
1185
1085
  role: any;
1186
1086
  }>;
1187
1087
  };
1088
+ } | {
1089
+ name: string;
1090
+ description: string;
1091
+ configuration_workflow: (req: object) => import("../models/workflow");
1092
+ run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1093
+ participant_field: string;
1094
+ msg_relation: string;
1095
+ msgsender_field: any;
1096
+ msgview: string;
1097
+ msgform: string;
1098
+ participant_maxread_field: string;
1099
+ }, state: object, { req, res }: {
1100
+ req: object;
1101
+ res: object;
1102
+ }, { getRowQuery, updateQuery, optionsQuery }: {
1103
+ getRowQuery: any;
1104
+ updateQuery: any;
1105
+ optionsQuery: any;
1106
+ }) => Promise<div>;
1107
+ get_state_fields: () => object[];
1108
+ display_state_form: boolean;
1109
+ routes: {
1110
+ submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1111
+ participant_field: string;
1112
+ msg_relation: string;
1113
+ msgsender_field: any;
1114
+ msgview: string;
1115
+ msgform: string;
1116
+ participant_maxread_field: string;
1117
+ }, body: any, { req, res }: {
1118
+ req: object;
1119
+ res: object;
1120
+ }, { submitAjaxQuery }: {
1121
+ submitAjaxQuery: any;
1122
+ }) => Promise<object>;
1123
+ ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
1124
+ participant_field: string;
1125
+ participant_maxread_field: string;
1126
+ }, body: any, { req, res }: {
1127
+ req: object;
1128
+ res: object;
1129
+ }, { ackReadQuery }: {
1130
+ ackReadQuery: any;
1131
+ }) => Promise<void>;
1132
+ 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>;
1133
+ };
1134
+ noAutoTest: boolean;
1135
+ authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
1136
+ participant_field: object;
1137
+ }, room_id: string, user: object) => Promise<object>;
1138
+ virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1139
+ participant_field: any;
1140
+ msg_relation: string;
1141
+ msgsender_field: string;
1142
+ msgview: string;
1143
+ msgform: any;
1144
+ participant_maxread_field: any;
1145
+ }) => object[];
1146
+ getStringsForI18n(): object[];
1147
+ queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
1148
+ table_id: any;
1149
+ viewname: any;
1150
+ configuration: {
1151
+ columns: any;
1152
+ default_state: any;
1153
+ };
1154
+ req: any;
1155
+ }) => {
1156
+ 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>;
1157
+ updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
1158
+ submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
1159
+ json: {
1160
+ msgid: {
1161
+ error: string;
1162
+ } | {
1163
+ success: any;
1164
+ };
1165
+ error?: undefined;
1166
+ };
1167
+ } | {
1168
+ json: {
1169
+ error: any;
1170
+ msgid?: undefined;
1171
+ };
1172
+ }>;
1173
+ ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
1174
+ json: {
1175
+ error: string;
1176
+ success?: undefined;
1177
+ };
1178
+ } | {
1179
+ json: {
1180
+ success: string;
1181
+ error?: undefined;
1182
+ };
1183
+ }>;
1184
+ fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
1185
+ optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
1186
+ };
1187
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1188
1188
  })[];
1189
1189
  import fileviews = require("./fileviews");
1190
1190
  import actions = require("./actions");
@@ -24,7 +24,7 @@ export function configuration_workflow(req: object): Workflow;
24
24
  * @param {*} extraArgs
25
25
  * @returns {Promise<div>}
26
26
  */
27
- export function run(table_id: number, viewname: string, { show_view, order_field, descending, view_to_create, create_view_display, in_card, view_decoration, initial_open_accordions, title_formula, masonry_columns, rows_per_page, hide_pagination, create_view_label, create_view_location, create_link_style, create_link_size, always_create_view, include_fml, empty_view, groupby, ...cols }: {
27
+ export function run(table_id: number, viewname: string, { show_view, order_field, descending, view_to_create, create_view_display, in_card, view_decoration, initial_open_accordions, title_formula, masonry_columns, rows_per_page, hide_pagination, create_view_label, create_view_location, create_link_style, create_link_size, always_create_view, include_fml, exclusion_relation, exclusion_where, empty_view, groupby, ...cols }: {
28
28
  show_view: string;
29
29
  order_field: void;
30
30
  descending: boolean;