@saltcorn/data 0.9.4-beta.12 → 0.9.4-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-plugin/actions.d.ts +0 -45
- package/dist/base-plugin/actions.d.ts.map +1 -1
- package/dist/base-plugin/actions.js +20 -2
- package/dist/base-plugin/actions.js.map +1 -1
- package/dist/base-plugin/fileviews.d.ts +13 -0
- package/dist/base-plugin/fileviews.js +42 -2
- package/dist/base-plugin/fileviews.js.map +1 -1
- package/dist/base-plugin/index.d.ts +227 -227
- package/dist/base-plugin/viewtemplates/edit.js +1 -1
- package/dist/base-plugin/viewtemplates/edit.js.map +1 -1
- package/dist/base-plugin/viewtemplates/filter.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/filter.js +2 -0
- package/dist/base-plugin/viewtemplates/filter.js.map +1 -1
- package/dist/base-plugin/viewtemplates/show.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/show.js +11 -3
- package/dist/base-plugin/viewtemplates/show.js.map +1 -1
- package/dist/db/state.d.ts +3 -0
- package/dist/db/state.d.ts.map +1 -1
- package/dist/db/state.js +16 -0
- package/dist/db/state.js.map +1 -1
- package/dist/models/config.d.ts.map +1 -1
- package/dist/models/config.js +21 -0
- package/dist/models/config.js.map +1 -1
- package/dist/models/file.d.ts +1 -0
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/file.js +4 -0
- package/dist/models/file.js.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/table.d.ts.map +1 -1
- package/dist/models/table.js +6 -2
- package/dist/models/table.js.map +1 -1
- package/dist/plugin-helper.d.ts +0 -1
- package/dist/tests/table.test.js +23 -0
- package/dist/tests/table.test.js.map +1 -1
- package/dist/utils.d.ts +3 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +6 -0
- package/dist/utils.js.map +1 -1
- package/package.json +8 -8
|
@@ -805,63 +805,45 @@ export const types: ({
|
|
|
805
805
|
export const viewtemplates: ({
|
|
806
806
|
name: string;
|
|
807
807
|
description: string;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
view_to_create?: string | undefined;
|
|
812
|
-
create_view_display: string;
|
|
813
|
-
create_view_label?: string | undefined;
|
|
814
|
-
default_state?: object | undefined;
|
|
815
|
-
create_view_location?: string | undefined;
|
|
816
|
-
}, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
|
|
817
|
-
listQuery: any;
|
|
818
|
-
}) => Promise<any>;
|
|
819
|
-
view_quantity: string;
|
|
820
|
-
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
808
|
+
get_state_fields: () => object[];
|
|
809
|
+
configuration_workflow: () => import("../models/workflow");
|
|
810
|
+
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
821
811
|
columns: object[];
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
812
|
+
layout: object;
|
|
813
|
+
}, state: object, extra: object, { distinctValuesQuery }: {
|
|
814
|
+
distinctValuesQuery: any;
|
|
815
|
+
}) => Promise<Layout>;
|
|
816
|
+
initial_config: () => Promise<object>;
|
|
817
|
+
display_state_form: boolean;
|
|
818
|
+
getStringsForI18n({ layout }: {
|
|
819
|
+
layout: any;
|
|
820
|
+
}): string[];
|
|
827
821
|
routes: {
|
|
828
|
-
run_action: (table_id:
|
|
829
|
-
|
|
830
|
-
layout: any;
|
|
831
|
-
}, body: object, { req, res }: {
|
|
832
|
-
req: object;
|
|
822
|
+
run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
|
|
823
|
+
req: any;
|
|
833
824
|
res: any;
|
|
834
|
-
}, {
|
|
835
|
-
|
|
836
|
-
}) => Promise<
|
|
825
|
+
}, { actionQuery }: {
|
|
826
|
+
actionQuery: any;
|
|
827
|
+
}) => Promise<any>;
|
|
837
828
|
};
|
|
838
|
-
|
|
839
|
-
default_state_form: ({ default_state }: object) => boolean;
|
|
840
|
-
getStringsForI18n({ columns, create_view_label }: {
|
|
841
|
-
columns: any;
|
|
842
|
-
create_view_label: any;
|
|
843
|
-
}): string[];
|
|
844
|
-
queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
|
|
829
|
+
queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
|
|
845
830
|
table_id: any;
|
|
846
|
-
|
|
847
|
-
name: any;
|
|
831
|
+
viewname: any;
|
|
848
832
|
configuration: {
|
|
849
833
|
columns: any;
|
|
850
|
-
default_state: any;
|
|
851
834
|
};
|
|
852
835
|
req: any;
|
|
836
|
+
res: any;
|
|
837
|
+
exttable_name: any;
|
|
853
838
|
}) => {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
839
|
+
actionQuery(state: any, rndid: any): Promise<{
|
|
840
|
+
json: any;
|
|
841
|
+
}>;
|
|
842
|
+
distinctValuesQuery(state: any): Promise<{
|
|
843
|
+
distinct_values: {};
|
|
844
|
+
role: any;
|
|
857
845
|
}>;
|
|
858
|
-
getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
859
846
|
};
|
|
860
|
-
configCheck: (view: any) => Promise<{
|
|
861
|
-
errors: string[];
|
|
862
|
-
warnings: string[];
|
|
863
|
-
}>;
|
|
864
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
865
847
|
} | {
|
|
866
848
|
name: string;
|
|
867
849
|
description: string;
|
|
@@ -1013,6 +995,146 @@ export const viewtemplates: ({
|
|
|
1013
995
|
warnings: string[];
|
|
1014
996
|
}>;
|
|
1015
997
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
998
|
+
} | {
|
|
999
|
+
name: string;
|
|
1000
|
+
description: string;
|
|
1001
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1002
|
+
run: (table_id: string, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1003
|
+
participant_field: string;
|
|
1004
|
+
msg_relation: string;
|
|
1005
|
+
msgsender_field: any;
|
|
1006
|
+
msgview: string;
|
|
1007
|
+
msgform: string;
|
|
1008
|
+
participant_maxread_field: string;
|
|
1009
|
+
}, state: object, { req, res }: {
|
|
1010
|
+
req: object;
|
|
1011
|
+
res: object;
|
|
1012
|
+
}, { getRowQuery, updateQuery, optionsQuery }: {
|
|
1013
|
+
getRowQuery: any;
|
|
1014
|
+
updateQuery: any;
|
|
1015
|
+
optionsQuery: any;
|
|
1016
|
+
}) => Promise<div>;
|
|
1017
|
+
get_state_fields: () => object[];
|
|
1018
|
+
display_state_form: boolean;
|
|
1019
|
+
routes: {
|
|
1020
|
+
submit_msg_ajax: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1021
|
+
participant_field: string;
|
|
1022
|
+
msg_relation: string;
|
|
1023
|
+
msgsender_field: any;
|
|
1024
|
+
msgview: string;
|
|
1025
|
+
msgform: string;
|
|
1026
|
+
participant_maxread_field: string;
|
|
1027
|
+
}, body: any, { req, res }: {
|
|
1028
|
+
req: object;
|
|
1029
|
+
res: object;
|
|
1030
|
+
}, { submitAjaxQuery }: {
|
|
1031
|
+
submitAjaxQuery: any;
|
|
1032
|
+
}) => Promise<object>;
|
|
1033
|
+
ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
|
|
1034
|
+
participant_field: string;
|
|
1035
|
+
participant_maxread_field: string;
|
|
1036
|
+
}, body: any, { req, res }: {
|
|
1037
|
+
req: object;
|
|
1038
|
+
res: object;
|
|
1039
|
+
}, { ackReadQuery }: {
|
|
1040
|
+
ackReadQuery: any;
|
|
1041
|
+
}) => Promise<void>;
|
|
1042
|
+
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>;
|
|
1043
|
+
};
|
|
1044
|
+
noAutoTest: boolean;
|
|
1045
|
+
authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
|
|
1046
|
+
participant_field: object;
|
|
1047
|
+
}, room_id: string, user: object) => Promise<object>;
|
|
1048
|
+
virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1049
|
+
participant_field: any;
|
|
1050
|
+
msg_relation: string;
|
|
1051
|
+
msgsender_field: string;
|
|
1052
|
+
msgview: string;
|
|
1053
|
+
msgform: any;
|
|
1054
|
+
participant_maxread_field: any;
|
|
1055
|
+
}) => object[];
|
|
1056
|
+
getStringsForI18n(): object[];
|
|
1057
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1058
|
+
table_id: any;
|
|
1059
|
+
viewname: any;
|
|
1060
|
+
configuration: {
|
|
1061
|
+
columns: any;
|
|
1062
|
+
default_state: any;
|
|
1063
|
+
};
|
|
1064
|
+
req: any;
|
|
1065
|
+
}) => {
|
|
1066
|
+
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>;
|
|
1067
|
+
updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
|
|
1068
|
+
submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
|
|
1069
|
+
json: {
|
|
1070
|
+
msgid: {
|
|
1071
|
+
error: string;
|
|
1072
|
+
} | {
|
|
1073
|
+
success: any;
|
|
1074
|
+
};
|
|
1075
|
+
error?: undefined;
|
|
1076
|
+
};
|
|
1077
|
+
} | {
|
|
1078
|
+
json: {
|
|
1079
|
+
error: any;
|
|
1080
|
+
msgid?: undefined;
|
|
1081
|
+
};
|
|
1082
|
+
}>;
|
|
1083
|
+
ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
|
|
1084
|
+
json: {
|
|
1085
|
+
error: string;
|
|
1086
|
+
success?: undefined;
|
|
1087
|
+
};
|
|
1088
|
+
} | {
|
|
1089
|
+
json: {
|
|
1090
|
+
success: string;
|
|
1091
|
+
error?: undefined;
|
|
1092
|
+
};
|
|
1093
|
+
}>;
|
|
1094
|
+
fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1095
|
+
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1096
|
+
};
|
|
1097
|
+
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: 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 }: {
|
|
1103
|
+
show_view: string;
|
|
1104
|
+
order_field: void;
|
|
1105
|
+
descending: boolean;
|
|
1106
|
+
view_to_create?: string | undefined;
|
|
1107
|
+
create_view_display: string;
|
|
1108
|
+
in_card: boolean;
|
|
1109
|
+
masonry_columns: string;
|
|
1110
|
+
rows_per_page?: number | undefined;
|
|
1111
|
+
hide_pagination: boolean;
|
|
1112
|
+
create_view_label?: string | undefined;
|
|
1113
|
+
create_view_location?: string | undefined;
|
|
1114
|
+
always_create_view: boolean;
|
|
1115
|
+
cols: any;
|
|
1116
|
+
}, state: object, extraArgs: any, { countRowsQuery }: {
|
|
1117
|
+
countRowsQuery: any;
|
|
1118
|
+
}) => Promise<div>;
|
|
1119
|
+
get_state_fields: (table_id: number, viewname: any, { show_view }: {
|
|
1120
|
+
show_view: any;
|
|
1121
|
+
}) => Promise<import("../models/field")>;
|
|
1122
|
+
display_state_form: boolean;
|
|
1123
|
+
getStringsForI18n({ create_view_label }: {
|
|
1124
|
+
create_view_label: any;
|
|
1125
|
+
}): string[] | Object[];
|
|
1126
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1127
|
+
table_id: any;
|
|
1128
|
+
viewname: any;
|
|
1129
|
+
configuration: {
|
|
1130
|
+
columns: any;
|
|
1131
|
+
default_state: any;
|
|
1132
|
+
};
|
|
1133
|
+
req: any;
|
|
1134
|
+
}) => {
|
|
1135
|
+
countRowsQuery(state: any): Promise<number>;
|
|
1136
|
+
};
|
|
1137
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1016
1138
|
} | {
|
|
1017
1139
|
name: string;
|
|
1018
1140
|
description: string;
|
|
@@ -1092,179 +1214,81 @@ export const viewtemplates: ({
|
|
|
1092
1214
|
name: string;
|
|
1093
1215
|
description: string;
|
|
1094
1216
|
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1095
|
-
run: (table_id: string, viewname: string, {
|
|
1096
|
-
|
|
1097
|
-
show_view: string;
|
|
1098
|
-
subtables: object;
|
|
1099
|
-
}, state: any, extraArgs: any, { getRowQuery }: {
|
|
1100
|
-
getRowQuery: any;
|
|
1101
|
-
}) => Promise<div>;
|
|
1102
|
-
get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
|
|
1103
|
-
list_view: string;
|
|
1104
|
-
show_view: any;
|
|
1105
|
-
}) => Promise<object[]>;
|
|
1106
|
-
display_state_form: ({ list_view, _omit_state_form }: {
|
|
1107
|
-
list_view: string;
|
|
1108
|
-
_omit_state_form: boolean;
|
|
1109
|
-
}) => boolean;
|
|
1110
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1111
|
-
table_id: any;
|
|
1112
|
-
viewname: any;
|
|
1113
|
-
configuration: {
|
|
1114
|
-
columns: any;
|
|
1115
|
-
default_state: any;
|
|
1116
|
-
};
|
|
1117
|
-
req: any;
|
|
1118
|
-
}) => {
|
|
1119
|
-
getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1120
|
-
};
|
|
1121
|
-
connectedObjects: ({ list_view, subtables }: {
|
|
1122
|
-
list_view: any;
|
|
1123
|
-
subtables: any;
|
|
1124
|
-
}) => Promise<{
|
|
1125
|
-
embeddedViews: import("../models/view")[];
|
|
1126
|
-
}>;
|
|
1127
|
-
} | {
|
|
1128
|
-
name: string;
|
|
1129
|
-
description: string;
|
|
1130
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1131
|
-
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 }: {
|
|
1132
|
-
show_view: string;
|
|
1133
|
-
order_field: void;
|
|
1134
|
-
descending: boolean;
|
|
1217
|
+
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, }: {
|
|
1218
|
+
columns: object[];
|
|
1135
1219
|
view_to_create?: string | undefined;
|
|
1136
1220
|
create_view_display: string;
|
|
1137
|
-
in_card: boolean;
|
|
1138
|
-
masonry_columns: string;
|
|
1139
|
-
rows_per_page?: number | undefined;
|
|
1140
|
-
hide_pagination: boolean;
|
|
1141
1221
|
create_view_label?: string | undefined;
|
|
1222
|
+
default_state?: object | undefined;
|
|
1142
1223
|
create_view_location?: string | undefined;
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
}
|
|
1148
|
-
get_state_fields: (table_id: number, viewname: any, { show_view }: {
|
|
1149
|
-
show_view: any;
|
|
1150
|
-
}) => Promise<import("../models/field")>;
|
|
1151
|
-
display_state_form: boolean;
|
|
1152
|
-
getStringsForI18n({ create_view_label }: {
|
|
1153
|
-
create_view_label: any;
|
|
1154
|
-
}): string[] | Object[];
|
|
1155
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1156
|
-
table_id: any;
|
|
1157
|
-
viewname: any;
|
|
1158
|
-
configuration: {
|
|
1159
|
-
columns: any;
|
|
1160
|
-
default_state: any;
|
|
1161
|
-
};
|
|
1162
|
-
req: any;
|
|
1163
|
-
}) => {
|
|
1164
|
-
countRowsQuery(state: any): Promise<number>;
|
|
1165
|
-
};
|
|
1166
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1167
|
-
} | {
|
|
1168
|
-
name: string;
|
|
1169
|
-
description: string;
|
|
1170
|
-
get_state_fields: () => object[];
|
|
1171
|
-
configuration_workflow: () => import("../models/workflow");
|
|
1172
|
-
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
1224
|
+
}, stateWithId?: object | undefined, extraOpts: object, { listQuery }: {
|
|
1225
|
+
listQuery: any;
|
|
1226
|
+
}) => Promise<any>;
|
|
1227
|
+
view_quantity: string;
|
|
1228
|
+
get_state_fields: (table_id: string, viewname: any, { columns }: {
|
|
1173
1229
|
columns: object[];
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
display_state_form: boolean;
|
|
1180
|
-
getStringsForI18n({ layout }: {
|
|
1181
|
-
layout: any;
|
|
1182
|
-
}): string[];
|
|
1230
|
+
}) => Function;
|
|
1231
|
+
initial_config: Function;
|
|
1232
|
+
on_delete: (table_id: any, viewname: string, { default_state }: {
|
|
1233
|
+
default_state: any;
|
|
1234
|
+
}) => Promise<void>;
|
|
1183
1235
|
routes: {
|
|
1184
|
-
run_action: (table_id:
|
|
1185
|
-
|
|
1236
|
+
run_action: (table_id: number, viewname: any, { columns, layout }: {
|
|
1237
|
+
columns: object[];
|
|
1238
|
+
layout: any;
|
|
1239
|
+
}, body: object, { req, res }: {
|
|
1240
|
+
req: object;
|
|
1186
1241
|
res: any;
|
|
1187
|
-
}, {
|
|
1188
|
-
|
|
1189
|
-
}) => Promise<
|
|
1242
|
+
}, { getRowQuery }: {
|
|
1243
|
+
getRowQuery: any;
|
|
1244
|
+
}) => Promise<object>;
|
|
1190
1245
|
};
|
|
1191
|
-
|
|
1246
|
+
display_state_form: (opts: object) => boolean;
|
|
1247
|
+
default_state_form: ({ default_state }: object) => boolean;
|
|
1248
|
+
getStringsForI18n({ columns, create_view_label }: {
|
|
1249
|
+
columns: any;
|
|
1250
|
+
create_view_label: any;
|
|
1251
|
+
}): string[];
|
|
1252
|
+
queries: ({ table_id, exttable_name, name, configuration: { columns, default_state }, req, }: {
|
|
1192
1253
|
table_id: any;
|
|
1193
|
-
|
|
1254
|
+
exttable_name: any;
|
|
1255
|
+
name: any;
|
|
1194
1256
|
configuration: {
|
|
1195
1257
|
columns: any;
|
|
1258
|
+
default_state: any;
|
|
1196
1259
|
};
|
|
1197
1260
|
req: any;
|
|
1198
|
-
res: any;
|
|
1199
|
-
exttable_name: any;
|
|
1200
1261
|
}) => {
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
distinctValuesQuery(state: any): Promise<{
|
|
1205
|
-
distinct_values: {};
|
|
1206
|
-
role: any;
|
|
1262
|
+
listQuery(state: any, stateHash: any): Promise<{
|
|
1263
|
+
rows: import("@saltcorn/db-common/internal").Row[];
|
|
1264
|
+
rowCount: number;
|
|
1207
1265
|
}>;
|
|
1266
|
+
getRowQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1208
1267
|
};
|
|
1268
|
+
configCheck: (view: any) => Promise<{
|
|
1269
|
+
errors: string[];
|
|
1270
|
+
warnings: string[];
|
|
1271
|
+
}>;
|
|
1272
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1209
1273
|
} | {
|
|
1210
1274
|
name: string;
|
|
1211
1275
|
description: string;
|
|
1212
1276
|
configuration_workflow: (req: object) => import("../models/workflow");
|
|
1213
|
-
run: (table_id: string, viewname: string, {
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
msgform: string;
|
|
1219
|
-
participant_maxread_field: string;
|
|
1220
|
-
}, state: object, { req, res }: {
|
|
1221
|
-
req: object;
|
|
1222
|
-
res: object;
|
|
1223
|
-
}, { getRowQuery, updateQuery, optionsQuery }: {
|
|
1277
|
+
run: (table_id: string, viewname: string, { list_view, show_view, list_width, subtables }: {
|
|
1278
|
+
list_view: string;
|
|
1279
|
+
show_view: string;
|
|
1280
|
+
subtables: object;
|
|
1281
|
+
}, state: any, extraArgs: any, { getRowQuery }: {
|
|
1224
1282
|
getRowQuery: any;
|
|
1225
|
-
updateQuery: any;
|
|
1226
|
-
optionsQuery: any;
|
|
1227
1283
|
}) => Promise<div>;
|
|
1228
|
-
get_state_fields: (
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
msgform: string;
|
|
1237
|
-
participant_maxread_field: string;
|
|
1238
|
-
}, body: any, { req, res }: {
|
|
1239
|
-
req: object;
|
|
1240
|
-
res: object;
|
|
1241
|
-
}, { submitAjaxQuery }: {
|
|
1242
|
-
submitAjaxQuery: any;
|
|
1243
|
-
}) => Promise<object>;
|
|
1244
|
-
ack_read: (table_id: any, viewname: any, { participant_field, participant_maxread_field }: {
|
|
1245
|
-
participant_field: string;
|
|
1246
|
-
participant_maxread_field: string;
|
|
1247
|
-
}, body: any, { req, res }: {
|
|
1248
|
-
req: object;
|
|
1249
|
-
res: object;
|
|
1250
|
-
}, { ackReadQuery }: {
|
|
1251
|
-
ackReadQuery: any;
|
|
1252
|
-
}) => Promise<void>;
|
|
1253
|
-
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>;
|
|
1254
|
-
};
|
|
1255
|
-
noAutoTest: boolean;
|
|
1256
|
-
authorize_join: ({ table_id, min_role, configuration: { participant_field } }: {
|
|
1257
|
-
participant_field: object;
|
|
1258
|
-
}, room_id: string, user: object) => Promise<object>;
|
|
1259
|
-
virtual_triggers: (table_id: any, viewname: string, { participant_field, msg_relation, msgsender_field, msgview, msgform, participant_maxread_field, }: {
|
|
1260
|
-
participant_field: any;
|
|
1261
|
-
msg_relation: string;
|
|
1262
|
-
msgsender_field: string;
|
|
1263
|
-
msgview: string;
|
|
1264
|
-
msgform: any;
|
|
1265
|
-
participant_maxread_field: any;
|
|
1266
|
-
}) => object[];
|
|
1267
|
-
getStringsForI18n(): object[];
|
|
1284
|
+
get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
|
|
1285
|
+
list_view: string;
|
|
1286
|
+
show_view: any;
|
|
1287
|
+
}) => Promise<object[]>;
|
|
1288
|
+
display_state_form: ({ list_view, _omit_state_form }: {
|
|
1289
|
+
list_view: string;
|
|
1290
|
+
_omit_state_form: boolean;
|
|
1291
|
+
}) => boolean;
|
|
1268
1292
|
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
1269
1293
|
table_id: any;
|
|
1270
1294
|
viewname: any;
|
|
@@ -1274,38 +1298,14 @@ export const viewtemplates: ({
|
|
|
1274
1298
|
};
|
|
1275
1299
|
req: any;
|
|
1276
1300
|
}) => {
|
|
1277
|
-
getRowQuery(
|
|
1278
|
-
updateQuery(partRow: any, part_table_name: any, max_read_id: any, part_maxread_field: any): Promise<void>;
|
|
1279
|
-
submitAjaxQuery(msg_relation: any, participant_field: any, body: any, msgform: any, msgsender_field: any, participant_maxread_field: any): Promise<{
|
|
1280
|
-
json: {
|
|
1281
|
-
msgid: {
|
|
1282
|
-
error: string;
|
|
1283
|
-
} | {
|
|
1284
|
-
success: any;
|
|
1285
|
-
};
|
|
1286
|
-
error?: undefined;
|
|
1287
|
-
};
|
|
1288
|
-
} | {
|
|
1289
|
-
json: {
|
|
1290
|
-
error: any;
|
|
1291
|
-
msgid?: undefined;
|
|
1292
|
-
};
|
|
1293
|
-
}>;
|
|
1294
|
-
ackReadQuery(participant_field: any, participant_maxread_field: any, body: any): Promise<{
|
|
1295
|
-
json: {
|
|
1296
|
-
error: string;
|
|
1297
|
-
success?: undefined;
|
|
1298
|
-
};
|
|
1299
|
-
} | {
|
|
1300
|
-
json: {
|
|
1301
|
-
success: string;
|
|
1302
|
-
error?: undefined;
|
|
1303
|
-
};
|
|
1304
|
-
}>;
|
|
1305
|
-
fetchOlderMsgQuery(participant_field: any, body: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1306
|
-
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1301
|
+
getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1307
1302
|
};
|
|
1308
|
-
connectedObjects: (
|
|
1303
|
+
connectedObjects: ({ list_view, subtables }: {
|
|
1304
|
+
list_view: any;
|
|
1305
|
+
subtables: any;
|
|
1306
|
+
}) => Promise<{
|
|
1307
|
+
embeddedViews: import("../models/view")[];
|
|
1308
|
+
}>;
|
|
1309
1309
|
})[];
|
|
1310
1310
|
import fileviews = require("./fileviews");
|
|
1311
1311
|
import actions = require("./actions");
|