@saltcorn/data 0.9.3-beta.8 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/base-plugin/actions.js +1 -1
  2. package/dist/base-plugin/actions.js.map +1 -1
  3. package/dist/base-plugin/fieldviews.d.ts.map +1 -1
  4. package/dist/base-plugin/fieldviews.js +25 -1
  5. package/dist/base-plugin/fieldviews.js.map +1 -1
  6. package/dist/base-plugin/index.d.ts +244 -229
  7. package/dist/base-plugin/index.d.ts.map +1 -1
  8. package/dist/base-plugin/types.d.ts +46 -29
  9. package/dist/base-plugin/types.d.ts.map +1 -1
  10. package/dist/base-plugin/types.js +37 -1
  11. package/dist/base-plugin/types.js.map +1 -1
  12. package/dist/base-plugin/viewtemplates/edit.d.ts.map +1 -1
  13. package/dist/base-plugin/viewtemplates/edit.js +5 -19
  14. package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
  15. package/dist/base-plugin/viewtemplates/feed.d.ts +1 -1
  16. package/dist/base-plugin/viewtemplates/feed.d.ts.map +1 -1
  17. package/dist/base-plugin/viewtemplates/feed.js +15 -3
  18. package/dist/base-plugin/viewtemplates/feed.js.map +1 -1
  19. package/dist/base-plugin/viewtemplates/filter.js +3 -3
  20. package/dist/base-plugin/viewtemplates/filter.js.map +1 -1
  21. package/dist/base-plugin/viewtemplates/list.d.ts +1 -1
  22. package/dist/base-plugin/viewtemplates/list.d.ts.map +1 -1
  23. package/dist/base-plugin/viewtemplates/list.js +34 -7
  24. package/dist/base-plugin/viewtemplates/list.js.map +1 -1
  25. package/dist/base-plugin/viewtemplates/listshowlist.d.ts.map +1 -1
  26. package/dist/base-plugin/viewtemplates/listshowlist.js +13 -3
  27. package/dist/base-plugin/viewtemplates/listshowlist.js.map +1 -1
  28. package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
  29. package/dist/base-plugin/viewtemplates/show.js +7 -21
  30. package/dist/base-plugin/viewtemplates/show.js.map +1 -1
  31. package/dist/base-plugin/viewtemplates/viewable_fields.d.ts.map +1 -1
  32. package/dist/base-plugin/viewtemplates/viewable_fields.js +58 -18
  33. package/dist/base-plugin/viewtemplates/viewable_fields.js.map +1 -1
  34. package/dist/db/fixtures.d.ts.map +1 -1
  35. package/dist/db/fixtures.js +376 -2
  36. package/dist/db/fixtures.js.map +1 -1
  37. package/dist/db/state.d.ts.map +1 -1
  38. package/dist/db/state.js +10 -4
  39. package/dist/db/state.js.map +1 -1
  40. package/dist/models/field.d.ts +5 -0
  41. package/dist/models/field.d.ts.map +1 -1
  42. package/dist/models/field.js +22 -0
  43. package/dist/models/field.js.map +1 -1
  44. package/dist/models/scheduler.d.ts.map +1 -1
  45. package/dist/models/scheduler.js +25 -1
  46. package/dist/models/scheduler.js.map +1 -1
  47. package/dist/plugin-helper.d.ts +24 -0
  48. package/dist/plugin-helper.d.ts.map +1 -1
  49. package/dist/plugin-helper.js +97 -30
  50. package/dist/plugin-helper.js.map +1 -1
  51. package/dist/tests/auxtest.test.js +2 -2
  52. package/dist/tests/auxtest.test.js.map +1 -1
  53. package/dist/tests/calc.test.js +2 -1
  54. package/dist/tests/calc.test.js.map +1 -1
  55. package/package.json +7 -7
  56. package/dist/migrations/202311231355.d.ts +0 -2
  57. package/dist/migrations/202311231355.d.ts.map +0 -1
  58. package/dist/migrations/202311231355.js +0 -19
  59. package/dist/migrations/202311231355.js.map +0 -1
@@ -174,6 +174,11 @@ export const types: ({
174
174
  isEdit: boolean;
175
175
  blockDisplay: boolean;
176
176
  description: string;
177
+ configFields: {
178
+ type: string;
179
+ name: string;
180
+ label: string;
181
+ }[];
177
182
  run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
178
183
  };
179
184
  radio_group: {
@@ -408,14 +413,19 @@ export const types: ({
408
413
  edit: {
409
414
  isEdit: boolean;
410
415
  description: string;
411
- configFields: {
416
+ configFields: ({
412
417
  name: string;
413
418
  label: string;
414
419
  type: string;
415
420
  attributes: {
416
421
  options: string[];
417
422
  };
418
- }[];
423
+ } | {
424
+ name: string;
425
+ label: string;
426
+ type: string;
427
+ attributes?: undefined;
428
+ })[];
419
429
  run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
420
430
  };
421
431
  switch: {
@@ -544,6 +554,11 @@ export const types: ({
544
554
  isEdit: boolean;
545
555
  blockDisplay: boolean;
546
556
  description: string;
557
+ configFields: {
558
+ name: string;
559
+ label: string;
560
+ type: string;
561
+ }[];
547
562
  run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
548
563
  };
549
564
  number_slider: {
@@ -692,45 +707,63 @@ export const types: ({
692
707
  export const viewtemplates: ({
693
708
  name: string;
694
709
  description: string;
695
- get_state_fields: () => object[];
696
- configuration_workflow: () => import("../models/workflow");
697
- run: (table_id: number, viewname: string, { columns, layout }: {
710
+ configuration_workflow: (req: object) => import("../models/workflow");
711
+ 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, create_view_showif, }: {
698
712
  columns: object[];
699
- layout: object;
700
- }, state: object, extra: object, { distinctValuesQuery }: {
701
- distinctValuesQuery: any;
702
- }) => Promise<Layout>;
703
- initial_config: () => Promise<object>;
704
- display_state_form: boolean;
705
- getStringsForI18n({ layout }: {
706
- layout: any;
707
- }): string[];
713
+ view_to_create?: string | undefined;
714
+ create_view_display: string;
715
+ create_view_label?: string | undefined;
716
+ default_state?: object | undefined;
717
+ create_view_location?: string | undefined;
718
+ }, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
719
+ listQuery: any;
720
+ }) => Promise<any>;
721
+ view_quantity: string;
722
+ get_state_fields: (table_id: string, viewname: any, { columns }: {
723
+ columns: object[];
724
+ }) => Function;
725
+ initial_config: Function;
726
+ on_delete: (table_id: any, viewname: string, { default_state }: {
727
+ default_state: any;
728
+ }) => Promise<void>;
708
729
  routes: {
709
- run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
710
- req: any;
730
+ run_action: (table_id: number, viewname: any, { columns, layout }: {
731
+ columns: object[];
732
+ layout: any;
733
+ }, body: object, { req, res }: {
734
+ req: object;
711
735
  res: any;
712
- }, { actionQuery }: {
713
- actionQuery: any;
714
- }) => Promise<any>;
736
+ }, { getRowQuery }: {
737
+ getRowQuery: any;
738
+ }) => Promise<object>;
715
739
  };
716
- queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
740
+ display_state_form: (opts: object) => boolean;
741
+ default_state_form: ({ default_state }: object) => boolean;
742
+ getStringsForI18n({ columns, create_view_label }: {
743
+ columns: any;
744
+ create_view_label: any;
745
+ }): string[];
746
+ queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
717
747
  table_id: any;
718
- viewname: any;
748
+ exttable_name: any;
749
+ name: any;
719
750
  configuration: {
720
751
  columns: any;
752
+ default_state: any;
721
753
  };
722
754
  req: any;
723
- res: any;
724
- exttable_name: any;
725
755
  }) => {
726
- actionQuery(state: any, rndid: any): Promise<{
727
- json: any;
728
- }>;
729
- distinctValuesQuery(state: any): Promise<{
730
- distinct_values: {};
731
- role: any;
756
+ listQuery(state: any, stateHash: any): Promise<{
757
+ rows: import("@saltcorn/db-common/internal").Row[];
758
+ rowCount: number;
732
759
  }>;
760
+ getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
733
761
  };
762
+ configCheck: (view: any) => Promise<{
763
+ errors: string[];
764
+ warnings: string[];
765
+ }>;
766
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
734
767
  } | {
735
768
  name: string;
736
769
  description: string;
@@ -881,146 +914,6 @@ export const viewtemplates: ({
881
914
  warnings: string[];
882
915
  }>;
883
916
  connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
884
- } | {
885
- name: string;
886
- description: string;
887
- configuration_workflow: (req: object) => import("../models/workflow");
888
- run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
889
- participant_field: string;
890
- msg_relation: string;
891
- msgsender_field: any;
892
- msgview: string;
893
- msgform: string;
894
- participant_maxread_field: string;
895
- }, state: object, { req, res }: {
896
- req: object;
897
- res: object;
898
- }, { getRowQuery, updateQuery, optionsQuery }: {
899
- getRowQuery: any;
900
- updateQuery: any;
901
- optionsQuery: any;
902
- }) => Promise<div>;
903
- get_state_fields: () => object[];
904
- display_state_form: boolean;
905
- routes: {
906
- submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
907
- participant_field: string;
908
- msg_relation: string;
909
- msgsender_field: any;
910
- msgview: string;
911
- msgform: string;
912
- participant_maxread_field: string;
913
- }, body: any, { req, res }: {
914
- req: object;
915
- res: object;
916
- }, { submitAjaxQuery }: {
917
- submitAjaxQuery: any;
918
- }) => Promise<object>;
919
- ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
920
- participant_field: string;
921
- participant_maxread_field: string;
922
- }, body: any, { req, res }: {
923
- req: object;
924
- res: object;
925
- }, { ackReadQuery }: {
926
- ackReadQuery: any;
927
- }) => Promise<void>;
928
- 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>;
929
- };
930
- noAutoTest: boolean;
931
- authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
932
- participant_field: object;
933
- }, room_id: string, user: object) => Promise<object>;
934
- virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
935
- participant_field: any;
936
- msg_relation: string;
937
- msgsender_field: string;
938
- msgview: string;
939
- msgform: any;
940
- participant_maxread_field: any;
941
- }) => object[];
942
- getStringsForI18n(): object[];
943
- queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
944
- table_id: any;
945
- viewname: any;
946
- configuration: {
947
- columns: any;
948
- default_state: any;
949
- };
950
- req: any;
951
- }) => {
952
- 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>;
953
- updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
954
- submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
955
- json: {
956
- msgid: {
957
- error: string;
958
- } | {
959
- success: any;
960
- };
961
- error?: undefined;
962
- };
963
- } | {
964
- json: {
965
- error: any;
966
- msgid?: undefined;
967
- };
968
- }>;
969
- ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
970
- json: {
971
- error: string;
972
- success?: undefined;
973
- };
974
- } | {
975
- json: {
976
- success: string;
977
- error?: undefined;
978
- };
979
- }>;
980
- fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
981
- optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
982
- };
983
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
984
- } | {
985
- name: string;
986
- description: string;
987
- configuration_workflow: (req: object) => import("../models/workflow");
988
- 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 }: {
989
- show_view: string;
990
- order_field: void;
991
- descending: boolean;
992
- view_to_create?: string | undefined;
993
- create_view_display: string;
994
- in_card: boolean;
995
- masonry_columns: string;
996
- rows_per_page?: number | undefined;
997
- hide_pagination: boolean;
998
- create_view_label?: string | undefined;
999
- create_view_location?: string | undefined;
1000
- always_create_view: boolean;
1001
- cols: any;
1002
- }, state: object, extraArgs: any, { countRowsQuery }: {
1003
- countRowsQuery: any;
1004
- }) => Promise<div>;
1005
- get_state_fields: (table_id: number, viewname: any, { show_view }: {
1006
- show_view: any;
1007
- }) => Promise<import("../models/field")>;
1008
- display_state_form: boolean;
1009
- getStringsForI18n({ create_view_label }: {
1010
- create_view_label: any;
1011
- }): string[] | Object[];
1012
- queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
1013
- table_id: any;
1014
- viewname: any;
1015
- configuration: {
1016
- columns: any;
1017
- default_state: any;
1018
- };
1019
- req: any;
1020
- }) => {
1021
- countRowsQuery(state: any): Promise<number>;
1022
- };
1023
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1024
917
  } | {
1025
918
  name: string;
1026
919
  description: string;
@@ -1095,66 +988,6 @@ export const viewtemplates: ({
1095
988
  warnings: string[];
1096
989
  }>;
1097
990
  connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1098
- } | {
1099
- name: string;
1100
- description: string;
1101
- configuration_workflow: (req: object) => import("../models/workflow");
1102
- 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, }: {
1103
- columns: object[];
1104
- view_to_create?: string | undefined;
1105
- create_view_display: string;
1106
- create_view_label?: string | undefined;
1107
- default_state?: object | undefined;
1108
- create_view_location?: string | undefined;
1109
- }, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
1110
- listQuery: any;
1111
- }) => Promise<any>;
1112
- view_quantity: string;
1113
- get_state_fields: (table_id: string, viewname: any, { columns }: {
1114
- columns: object[];
1115
- }) => Function;
1116
- initial_config: Function;
1117
- on_delete: (table_id: any, viewname: string, { default_state }: {
1118
- default_state: any;
1119
- }) => Promise<void>;
1120
- routes: {
1121
- run_action: (table_id: number, viewname: any, { columns, layout }: {
1122
- columns: object[];
1123
- layout: any;
1124
- }, body: object, { req, res }: {
1125
- req: object;
1126
- res: any;
1127
- }, { getRowQuery }: {
1128
- getRowQuery: any;
1129
- }) => Promise<object>;
1130
- };
1131
- display_state_form: (opts: object) => boolean;
1132
- default_state_form: ({ default_state }: object) => boolean;
1133
- getStringsForI18n({ columns, create_view_label }: {
1134
- columns: any;
1135
- create_view_label: any;
1136
- }): string[];
1137
- queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
1138
- table_id: any;
1139
- exttable_name: any;
1140
- name: any;
1141
- configuration: {
1142
- columns: any;
1143
- default_state: any;
1144
- };
1145
- req: any;
1146
- }) => {
1147
- listQuery(state: any, stateHash: any): Promise<{
1148
- rows: import("@saltcorn/db-common/internal").Row[];
1149
- rowCount: number;
1150
- }>;
1151
- getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
1152
- };
1153
- configCheck: (view: any) => Promise<{
1154
- errors: string[];
1155
- warnings: string[];
1156
- }>;
1157
- connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1158
991
  } | {
1159
992
  name: string;
1160
993
  description: string;
@@ -1191,6 +1024,188 @@ export const viewtemplates: ({
1191
1024
  }) => Promise<{
1192
1025
  embeddedViews: import("../models/view")[];
1193
1026
  }>;
1027
+ } | {
1028
+ name: string;
1029
+ description: string;
1030
+ configuration_workflow: (req: object) => import("../models/workflow");
1031
+ 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, ...cols }: {
1032
+ show_view: string;
1033
+ order_field: void;
1034
+ descending: boolean;
1035
+ view_to_create?: string | undefined;
1036
+ create_view_display: string;
1037
+ in_card: boolean;
1038
+ masonry_columns: string;
1039
+ rows_per_page?: number | undefined;
1040
+ hide_pagination: boolean;
1041
+ create_view_label?: string | undefined;
1042
+ create_view_location?: string | undefined;
1043
+ always_create_view: boolean;
1044
+ cols: any;
1045
+ }, state: object, extraArgs: any, { countRowsQuery }: {
1046
+ countRowsQuery: any;
1047
+ }) => Promise<div>;
1048
+ get_state_fields: (table_id: number, viewname: any, { show_view }: {
1049
+ show_view: any;
1050
+ }) => Promise<import("../models/field")>;
1051
+ display_state_form: boolean;
1052
+ getStringsForI18n({ create_view_label }: {
1053
+ create_view_label: any;
1054
+ }): string[] | Object[];
1055
+ queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
1056
+ table_id: any;
1057
+ viewname: any;
1058
+ configuration: {
1059
+ columns: any;
1060
+ default_state: any;
1061
+ };
1062
+ req: any;
1063
+ }) => {
1064
+ countRowsQuery(state: any): Promise<number>;
1065
+ };
1066
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1067
+ } | {
1068
+ name: string;
1069
+ description: string;
1070
+ get_state_fields: () => object[];
1071
+ configuration_workflow: () => import("../models/workflow");
1072
+ run: (table_id: number, viewname: string, { columns, layout }: {
1073
+ columns: object[];
1074
+ layout: object;
1075
+ }, state: object, extra: object, { distinctValuesQuery }: {
1076
+ distinctValuesQuery: any;
1077
+ }) => Promise<Layout>;
1078
+ initial_config: () => Promise<object>;
1079
+ display_state_form: boolean;
1080
+ getStringsForI18n({ layout }: {
1081
+ layout: any;
1082
+ }): string[];
1083
+ routes: {
1084
+ run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
1085
+ req: any;
1086
+ res: any;
1087
+ }, { actionQuery }: {
1088
+ actionQuery: any;
1089
+ }) => Promise<any>;
1090
+ };
1091
+ queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
1092
+ table_id: any;
1093
+ viewname: any;
1094
+ configuration: {
1095
+ columns: any;
1096
+ };
1097
+ req: any;
1098
+ res: any;
1099
+ exttable_name: any;
1100
+ }) => {
1101
+ actionQuery(state: any, rndid: any): Promise<{
1102
+ json: any;
1103
+ }>;
1104
+ distinctValuesQuery(state: any): Promise<{
1105
+ distinct_values: {};
1106
+ role: any;
1107
+ }>;
1108
+ };
1109
+ } | {
1110
+ name: string;
1111
+ description: string;
1112
+ configuration_workflow: (req: object) => import("../models/workflow");
1113
+ run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1114
+ participant_field: string;
1115
+ msg_relation: string;
1116
+ msgsender_field: any;
1117
+ msgview: string;
1118
+ msgform: string;
1119
+ participant_maxread_field: string;
1120
+ }, state: object, { req, res }: {
1121
+ req: object;
1122
+ res: object;
1123
+ }, { getRowQuery, updateQuery, optionsQuery }: {
1124
+ getRowQuery: any;
1125
+ updateQuery: any;
1126
+ optionsQuery: any;
1127
+ }) => Promise<div>;
1128
+ get_state_fields: () => object[];
1129
+ display_state_form: boolean;
1130
+ routes: {
1131
+ submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1132
+ participant_field: string;
1133
+ msg_relation: string;
1134
+ msgsender_field: any;
1135
+ msgview: string;
1136
+ msgform: string;
1137
+ participant_maxread_field: string;
1138
+ }, body: any, { req, res }: {
1139
+ req: object;
1140
+ res: object;
1141
+ }, { submitAjaxQuery }: {
1142
+ submitAjaxQuery: any;
1143
+ }) => Promise<object>;
1144
+ ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
1145
+ participant_field: string;
1146
+ participant_maxread_field: string;
1147
+ }, body: any, { req, res }: {
1148
+ req: object;
1149
+ res: object;
1150
+ }, { ackReadQuery }: {
1151
+ ackReadQuery: any;
1152
+ }) => Promise<void>;
1153
+ 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>;
1154
+ };
1155
+ noAutoTest: boolean;
1156
+ authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
1157
+ participant_field: object;
1158
+ }, room_id: string, user: object) => Promise<object>;
1159
+ virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1160
+ participant_field: any;
1161
+ msg_relation: string;
1162
+ msgsender_field: string;
1163
+ msgview: string;
1164
+ msgform: any;
1165
+ participant_maxread_field: any;
1166
+ }) => object[];
1167
+ getStringsForI18n(): object[];
1168
+ queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
1169
+ table_id: any;
1170
+ viewname: any;
1171
+ configuration: {
1172
+ columns: any;
1173
+ default_state: any;
1174
+ };
1175
+ req: any;
1176
+ }) => {
1177
+ 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>;
1178
+ updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
1179
+ submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
1180
+ json: {
1181
+ msgid: {
1182
+ error: string;
1183
+ } | {
1184
+ success: any;
1185
+ };
1186
+ error?: undefined;
1187
+ };
1188
+ } | {
1189
+ json: {
1190
+ error: any;
1191
+ msgid?: undefined;
1192
+ };
1193
+ }>;
1194
+ ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
1195
+ json: {
1196
+ error: string;
1197
+ success?: undefined;
1198
+ };
1199
+ } | {
1200
+ json: {
1201
+ success: string;
1202
+ error?: undefined;
1203
+ };
1204
+ }>;
1205
+ fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
1206
+ optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
1207
+ };
1208
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1194
1209
  })[];
1195
1210
  import fileviews = require("./fileviews");
1196
1211
  import actions = require("./actions");
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../base-plugin/index.js"],"names":[],"mappings":"AAuCA;;;;;;;;;;;;;;;;;;;;;;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