@saltcorn/data 0.9.8 → 1.0.0-beta.0

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.
@@ -541,111 +541,7 @@ export const types: ({
541
541
  show: {
542
542
  isEdit: boolean;
543
543
  description: string;
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;
544
+ run: (s: any) => any;
649
545
  };
650
546
  show_with_html: {
651
547
  configFields: {
@@ -668,17 +564,9 @@ export const types: ({
668
564
  description: string;
669
565
  run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
670
566
  };
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
- };
677
567
  };
678
- presets: {
679
- Now: () => Date;
680
- };
681
- read: (v: object, attrs: object) => object;
568
+ attributes: object[];
569
+ read: (v: object) => object;
682
570
  validate: () => boolean;
683
571
  } | {
684
572
  name: string;
@@ -920,11 +808,38 @@ export const types: ({
920
808
  sql_name: string;
921
809
  js_type: string;
922
810
  contract: () => Function;
811
+ attributes: object[];
923
812
  fieldviews: {
924
813
  show: {
925
814
  isEdit: boolean;
926
815
  description: string;
927
- run: (s: any) => any;
816
+ run: (d: any, req: any, attrs?: {}) => any;
817
+ };
818
+ showDay: {
819
+ isEdit: boolean;
820
+ description: string;
821
+ run: (d: any, req: any) => any;
822
+ };
823
+ format: {
824
+ isEdit: boolean;
825
+ description: string;
826
+ configFields: {
827
+ name: string;
828
+ label: string;
829
+ type: string;
830
+ sublabel: string;
831
+ }[];
832
+ run: (d: any, req: any, options: any) => any;
833
+ };
834
+ relative: {
835
+ isEdit: boolean;
836
+ description: string;
837
+ run: (d: any, req: any) => string;
838
+ };
839
+ yearsAgo: {
840
+ isEdit: boolean;
841
+ description: string;
842
+ run: (d: any, req: any) => string;
928
843
  };
929
844
  show_with_html: {
930
845
  configFields: {
@@ -947,53 +862,157 @@ export const types: ({
947
862
  description: string;
948
863
  run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
949
864
  };
865
+ editDay: {
866
+ isEdit: boolean;
867
+ blockDisplay: boolean;
868
+ description: string;
869
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
870
+ };
871
+ };
872
+ presets: {
873
+ Now: () => Date;
874
+ };
875
+ read: (v: object, attrs: object) => object;
876
+ validate: () => boolean;
877
+ } | {
878
+ name: string;
879
+ description: string;
880
+ sql_name: string;
881
+ js_type: string;
882
+ contract: () => Function;
883
+ fieldviews: {
884
+ show: {
885
+ isEdit: boolean;
886
+ description: string;
887
+ run: (v: any, req: any) => any;
888
+ };
889
+ checkboxes: {
890
+ isEdit: boolean;
891
+ description: string;
892
+ run: (v: any) => any;
893
+ };
894
+ TrueFalse: {
895
+ isEdit: boolean;
896
+ description: string;
897
+ run: (v: any) => "" | "True" | "False";
898
+ };
899
+ edit: {
900
+ isEdit: boolean;
901
+ description: string;
902
+ configFields: ({
903
+ name: string;
904
+ label: string;
905
+ type: string;
906
+ attributes: {
907
+ options: string[];
908
+ };
909
+ } | {
910
+ name: string;
911
+ label: string;
912
+ type: string;
913
+ attributes?: undefined;
914
+ })[];
915
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
916
+ };
917
+ switch: {
918
+ isEdit: boolean;
919
+ description: string;
920
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
921
+ };
922
+ show_with_html: {
923
+ configFields: {
924
+ input_type: string;
925
+ name: string;
926
+ label: string;
927
+ sublabel: string;
928
+ default: string;
929
+ attributes: {
930
+ mode: string;
931
+ };
932
+ }[];
933
+ isEdit: boolean;
934
+ description: string;
935
+ run: (v: any, req: any, attrs?: {}) => any;
936
+ };
937
+ tristate: {
938
+ isEdit: boolean;
939
+ description: string;
940
+ configFields: {
941
+ name: string;
942
+ label: string;
943
+ type: string;
944
+ }[];
945
+ run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
946
+ };
950
947
  };
951
948
  attributes: object[];
952
- read: (v: object) => object;
949
+ readFromFormRecord: (rec: any, name: string) => boolean | null;
950
+ read: (v: object) => boolean | null;
951
+ readFromDB: (v: object) => object;
952
+ listAs: (v: object) => object;
953
953
  validate: () => boolean;
954
954
  })[];
955
955
  export const viewtemplates: ({
956
956
  name: string;
957
957
  description: string;
958
- get_state_fields: () => object[];
959
- configuration_workflow: () => import("../models/workflow");
960
- run: (table_id: number, viewname: string, { columns, layout }: {
958
+ configuration_workflow: (req: object) => import("../models/workflow");
959
+ 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, }: {
961
960
  columns: object[];
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[];
971
- routes: {
972
- run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
973
- req: any;
974
- res: any;
975
- }, { actionQuery }: {
976
- actionQuery: any;
977
- }) => Promise<any>;
978
- };
979
- queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
961
+ view_to_create?: string | undefined;
962
+ create_view_display: string;
963
+ create_view_label?: string | undefined;
964
+ default_state?: object | undefined;
965
+ create_view_location?: string | undefined;
966
+ }, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
967
+ listQuery: any;
968
+ }) => Promise<any>;
969
+ view_quantity: string;
970
+ get_state_fields: (table_id: string, viewname: any, { columns }: {
971
+ columns: object[];
972
+ }) => Function;
973
+ initial_config: Function;
974
+ on_delete: (table_id: any, viewname: string, { default_state }: {
975
+ default_state: any;
976
+ }) => Promise<void>;
977
+ routes: {
978
+ run_action: (table_id: number, viewname: any, { columns, layout }: {
979
+ columns: object[];
980
+ layout: any;
981
+ }, body: object, { req, res }: {
982
+ req: object;
983
+ res: any;
984
+ }, { getRowQuery }: {
985
+ getRowQuery: any;
986
+ }) => Promise<object>;
987
+ };
988
+ display_state_form: (opts: object) => boolean;
989
+ default_state_form: ({ default_state }: object) => boolean;
990
+ getStringsForI18n({ columns, create_view_label }: {
991
+ columns: any;
992
+ create_view_label: any;
993
+ }): string[];
994
+ queries: ({ table_id, exttable_name, name, configuration: { columns, layout, default_state }, req, }: {
980
995
  table_id: any;
981
- viewname: any;
996
+ exttable_name: any;
997
+ name: any;
982
998
  configuration: {
983
999
  columns: any;
1000
+ layout: any;
1001
+ default_state: any;
984
1002
  };
985
1003
  req: any;
986
- res: any;
987
- exttable_name: any;
988
1004
  }) => {
989
- actionQuery(state: any, rndid: any): Promise<{
990
- json: any;
991
- }>;
992
- distinctValuesQuery(state: any): Promise<{
993
- distinct_values: {};
994
- role: any;
1005
+ listQuery(state: any, stateHash: any): Promise<{
1006
+ rows: import("@saltcorn/db-common/internal").Row[];
1007
+ rowCount: number;
995
1008
  }>;
1009
+ getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
996
1010
  };
1011
+ configCheck: (view: any) => Promise<{
1012
+ errors: string[];
1013
+ warnings: string[];
1014
+ }>;
1015
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
997
1016
  } | {
998
1017
  name: string;
999
1018
  description: string;
@@ -1151,212 +1170,6 @@ export const viewtemplates: ({
1151
1170
  warnings: string[];
1152
1171
  }>;
1153
1172
  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>;
1360
1173
  } | {
1361
1174
  name: string;
1362
1175
  description: string;
@@ -1468,6 +1281,193 @@ export const viewtemplates: ({
1468
1281
  }) => Promise<{
1469
1282
  embeddedViews: import("../models/view")[];
1470
1283
  }>;
1284
+ } | {
1285
+ name: string;
1286
+ description: string;
1287
+ configuration_workflow: (req: object) => import("../models/workflow");
1288
+ 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 }: {
1289
+ show_view: string;
1290
+ order_field: void;
1291
+ descending: boolean;
1292
+ view_to_create?: string | undefined;
1293
+ create_view_display: string;
1294
+ in_card: boolean;
1295
+ masonry_columns: string;
1296
+ rows_per_page?: number | undefined;
1297
+ hide_pagination: boolean;
1298
+ create_view_label?: string | undefined;
1299
+ create_view_location?: string | undefined;
1300
+ always_create_view: boolean;
1301
+ cols: any;
1302
+ }, state: object, extraArgs: any, { countRowsQuery, runManyQuery }: {
1303
+ countRowsQuery: any;
1304
+ runManyQuery: any;
1305
+ }) => Promise<div>;
1306
+ get_state_fields: (table_id: number, viewname: any, { show_view }: {
1307
+ show_view: any;
1308
+ }) => Promise<import("../models/field")>;
1309
+ display_state_form: boolean;
1310
+ getStringsForI18n({ create_view_label }: {
1311
+ create_view_label: any;
1312
+ }): string[] | Object[];
1313
+ queries: ({ table_id, viewname, configuration: { show_view }, req, res, }: {
1314
+ table_id: any;
1315
+ viewname: any;
1316
+ configuration: {
1317
+ show_view: any;
1318
+ };
1319
+ req: any;
1320
+ res: any;
1321
+ }) => {
1322
+ countRowsQuery(state: any): Promise<number>;
1323
+ runManyQuery(state: any, qextra: any, selectOpts: any): Promise<string[] | {
1324
+ html: string;
1325
+ row: any;
1326
+ }[]>;
1327
+ };
1328
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1329
+ } | {
1330
+ name: string;
1331
+ description: string;
1332
+ get_state_fields: () => object[];
1333
+ configuration_workflow: () => import("../models/workflow");
1334
+ run: (table_id: number, viewname: string, { columns, layout }: {
1335
+ columns: object[];
1336
+ layout: object;
1337
+ }, state: object, extra: object, { distinctValuesQuery }: {
1338
+ distinctValuesQuery: any;
1339
+ }) => Promise<Layout>;
1340
+ initial_config: () => Promise<object>;
1341
+ display_state_form: boolean;
1342
+ getStringsForI18n({ layout }: {
1343
+ layout: any;
1344
+ }): string[];
1345
+ routes: {
1346
+ run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
1347
+ req: any;
1348
+ res: any;
1349
+ }, { actionQuery }: {
1350
+ actionQuery: any;
1351
+ }) => Promise<any>;
1352
+ };
1353
+ queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
1354
+ table_id: any;
1355
+ viewname: any;
1356
+ configuration: {
1357
+ columns: any;
1358
+ };
1359
+ req: any;
1360
+ res: any;
1361
+ exttable_name: any;
1362
+ }) => {
1363
+ actionQuery(state: any, rndid: any): Promise<{
1364
+ json: any;
1365
+ }>;
1366
+ distinctValuesQuery(state: any): Promise<{
1367
+ distinct_values: {};
1368
+ role: any;
1369
+ }>;
1370
+ };
1371
+ } | {
1372
+ name: string;
1373
+ description: string;
1374
+ configuration_workflow: (req: object) => import("../models/workflow");
1375
+ run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1376
+ participant_field: string;
1377
+ msg_relation: string;
1378
+ msgsender_field: any;
1379
+ msgview: string;
1380
+ msgform: string;
1381
+ participant_maxread_field: string;
1382
+ }, state: object, { req, res }: {
1383
+ req: object;
1384
+ res: object;
1385
+ }, { getRowQuery, updateQuery, optionsQuery }: {
1386
+ getRowQuery: any;
1387
+ updateQuery: any;
1388
+ optionsQuery: any;
1389
+ }) => Promise<div>;
1390
+ get_state_fields: () => object[];
1391
+ display_state_form: boolean;
1392
+ routes: {
1393
+ submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1394
+ participant_field: string;
1395
+ msg_relation: string;
1396
+ msgsender_field: any;
1397
+ msgview: string;
1398
+ msgform: string;
1399
+ participant_maxread_field: string;
1400
+ }, body: any, { req, res }: {
1401
+ req: object;
1402
+ res: object;
1403
+ }, { submitAjaxQuery }: {
1404
+ submitAjaxQuery: any;
1405
+ }) => Promise<object>;
1406
+ ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
1407
+ participant_field: string;
1408
+ participant_maxread_field: string;
1409
+ }, body: any, { req, res }: {
1410
+ req: object;
1411
+ res: object;
1412
+ }, { ackReadQuery }: {
1413
+ ackReadQuery: any;
1414
+ }) => Promise<void>;
1415
+ 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>;
1416
+ };
1417
+ noAutoTest: boolean;
1418
+ authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
1419
+ participant_field: object;
1420
+ }, room_id: string, user: object) => Promise<object>;
1421
+ virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
1422
+ participant_field: any;
1423
+ msg_relation: string;
1424
+ msgsender_field: string;
1425
+ msgview: string;
1426
+ msgform: any;
1427
+ participant_maxread_field: any;
1428
+ }) => object[];
1429
+ getStringsForI18n(): object[];
1430
+ queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
1431
+ table_id: any;
1432
+ viewname: any;
1433
+ configuration: {
1434
+ columns: any;
1435
+ default_state: any;
1436
+ };
1437
+ req: any;
1438
+ }) => {
1439
+ 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>;
1440
+ updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
1441
+ submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
1442
+ json: {
1443
+ msgid: {
1444
+ error: string;
1445
+ } | {
1446
+ success: any;
1447
+ };
1448
+ error?: undefined;
1449
+ };
1450
+ } | {
1451
+ json: {
1452
+ error: any;
1453
+ msgid?: undefined;
1454
+ };
1455
+ }>;
1456
+ ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
1457
+ json: {
1458
+ error: string;
1459
+ success?: undefined;
1460
+ };
1461
+ } | {
1462
+ json: {
1463
+ success: string;
1464
+ error?: undefined;
1465
+ };
1466
+ }>;
1467
+ fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
1468
+ optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
1469
+ };
1470
+ connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
1471
1471
  })[];
1472
1472
  import fileviews = require("./fileviews");
1473
1473
  import actions = require("./actions");