@prostgles/app 2.3.6-dev.1792579748 → 2.3.6-dev.1792682663
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/client/build/js/733.bundle.js +1 -1
- package/client/build/js/main.bundle.js +2 -2
- package/dist/common/DBGeneratedSchema.d.ts +4 -0
- package/dist/common/DBGeneratedSchema.d.ts.map +1 -1
- package/dist/common/DashboardTypes.d.ts +2 -0
- package/dist/common/DashboardTypes.d.ts.map +1 -1
- package/dist/common/resolveActionFunction.d.ts +4 -3
- package/dist/common/resolveActionFunction.d.ts.map +1 -1
- package/dist/common/resolveActionFunction.js +14 -5
- package/dist/common/resolveActionFunction.js.map +1 -1
- package/dist/server/package.json +5 -2
- package/dist/server/src/Alerts/getAlertConfig.d.ts.map +1 -1
- package/dist/server/src/Alerts/getAlertConfig.js +4 -2
- package/dist/server/src/Alerts/getAlertConfig.js.map +1 -1
- package/dist/server/src/ConnectionManager/fetchUserAccessControlRules.js +2 -2
- package/dist/server/src/ConnectionManager/fetchUserAccessControlRules.js.map +1 -1
- package/dist/server/src/ConnectionManager/getConnectionUser.d.ts.map +1 -1
- package/dist/server/src/ConnectionManager/getConnectionUser.js +2 -5
- package/dist/server/src/ConnectionManager/getConnectionUser.js.map +1 -1
- package/dist/server/src/ConnectionManager/modifyClientSchema.js +3 -1
- package/dist/server/src/ConnectionManager/modifyClientSchema.js.map +1 -1
- package/dist/server/src/Emails/EmailTypes.d.ts +32 -0
- package/dist/server/src/Emails/EmailTypes.d.ts.map +1 -0
- package/dist/server/src/Emails/EmailTypes.js +3 -0
- package/dist/server/src/Emails/EmailTypes.js.map +1 -0
- package/dist/server/src/Emails/checkDmarc.d.ts +2 -0
- package/dist/server/src/Emails/checkDmarc.d.ts.map +1 -0
- package/dist/server/src/Emails/checkDmarc.js +22 -0
- package/dist/server/src/Emails/checkDmarc.js.map +1 -0
- package/dist/server/src/Emails/sendEmail.d.ts +6 -0
- package/dist/server/src/Emails/sendEmail.d.ts.map +1 -0
- package/dist/server/src/Emails/sendEmail.js +122 -0
- package/dist/server/src/Emails/sendEmail.js.map +1 -0
- package/dist/server/src/authConfig/emailProvider/getEmailSenderWithMockTest.d.ts +1 -1
- package/dist/server/src/authConfig/emailProvider/getEmailSenderWithMockTest.d.ts.map +1 -1
- package/dist/server/src/authConfig/emailProvider/getEmailSenderWithMockTest.js +2 -2
- package/dist/server/src/authConfig/emailProvider/getEmailSenderWithMockTest.js.map +1 -1
- package/dist/server/src/authConfig/getAuth.d.ts.map +1 -1
- package/dist/server/src/authConfig/getAuth.js +0 -10
- package/dist/server/src/authConfig/getAuth.js.map +1 -1
- package/dist/server/src/electronConfig.d.ts +3 -0
- package/dist/server/src/electronConfig.d.ts.map +1 -1
- package/dist/server/src/electronConfig.js +6 -1
- package/dist/server/src/electronConfig.js.map +1 -1
- package/dist/server/src/publish/getAllowedConnectionsFilter.d.ts +89 -0
- package/dist/server/src/publish/getAllowedConnectionsFilter.d.ts.map +1 -0
- package/dist/server/src/publish/{businessAccessFilters.js → getAllowedConnectionsFilter.js} +10 -16
- package/dist/server/src/publish/getAllowedConnectionsFilter.js.map +1 -0
- package/dist/server/src/publish/getBusinessAccessPublish.d.ts +444 -374
- package/dist/server/src/publish/getBusinessAccessPublish.d.ts.map +1 -1
- package/dist/server/src/publish/getBusinessAccessPublish.js +18 -10
- package/dist/server/src/publish/getBusinessAccessPublish.js.map +1 -1
- package/dist/server/src/publish/publish.d.ts.map +1 -1
- package/dist/server/src/publish/publish.js +7 -13
- package/dist/server/src/publish/publish.js.map +1 -1
- package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts +13 -0
- package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.d.ts.map +1 -1
- package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.js +31 -0
- package/dist/server/src/serverFunctions/adminServerFunctions/stateServerAdminFunctions.js.map +1 -1
- package/dist/server/src/serverFunctions/askLLM/agentConstants.d.ts +1 -1
- package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.d.ts +1 -0
- package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.d.ts.map +1 -1
- package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.js +1 -0
- package/dist/server/src/serverFunctions/loadGeneratedWorkspaces/loadGeneratedTable.js.map +1 -1
- package/dist/server/src/serverFunctions/stateServerFunctions.d.ts +13 -0
- package/dist/server/src/serverFunctions/stateServerFunctions.d.ts.map +1 -1
- package/dist/server/src/tableConfig/tableConfigUsers.d.ts +2 -2
- package/dist/server/src/tableConfig/tableConfigUsers.js +2 -2
- package/dist/server/src/tableConfig/tableConfigUsers.js.map +1 -1
- package/dist/server/src/testElectron.js +3 -0
- package/dist/server/src/testElectron.js.map +1 -1
- package/package.json +5 -2
- package/sample_schemas/crypto/dist/index.js +9 -0
- package/sample_schemas/crypto/dist/onMount.js +747 -0
- package/sample_schemas/crypto/dist/tableConfig.js +81 -0
- package/sample_schemas/crypto/dist/workspaceConfig.js +263 -0
- package/dist/server/src/publish/businessAccessFilters.d.ts +0 -87
- package/dist/server/src/publish/businessAccessFilters.d.ts.map +0 -1
- package/dist/server/src/publish/businessAccessFilters.js.map +0 -1
|
@@ -6,34 +6,39 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
6
6
|
select: {
|
|
7
7
|
fields: "*";
|
|
8
8
|
forcedFilter: {
|
|
9
|
-
$and:
|
|
10
|
-
$existsJoined: {
|
|
11
|
-
access_control_connections: {};
|
|
9
|
+
readonly $and: [{
|
|
10
|
+
readonly $existsJoined: {
|
|
11
|
+
readonly access_control_connections: {};
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
is_state_db: boolean;
|
|
13
|
+
}, {
|
|
14
|
+
readonly $notExistsJoined: {
|
|
15
|
+
readonly path: ["database_configs", "connections"];
|
|
16
|
+
readonly filter: {
|
|
17
|
+
readonly is_state_db: true;
|
|
19
18
|
};
|
|
20
19
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
}, {
|
|
21
|
+
readonly $notExistsJoined: {
|
|
22
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
23
|
+
readonly filter: {
|
|
24
|
+
readonly is_state_db: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
readonly $or: [{
|
|
29
|
+
readonly dbPermissions: {
|
|
30
|
+
readonly "@>": {
|
|
31
|
+
readonly type: "Custom";
|
|
27
32
|
};
|
|
28
33
|
};
|
|
29
|
-
}
|
|
30
|
-
dbPermissions: {
|
|
31
|
-
"@>": {
|
|
32
|
-
type: "All views/tables";
|
|
34
|
+
}, {
|
|
35
|
+
readonly dbPermissions: {
|
|
36
|
+
readonly "@>": {
|
|
37
|
+
readonly type: "All views/tables";
|
|
33
38
|
};
|
|
34
39
|
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
40
|
+
}];
|
|
41
|
+
}];
|
|
37
42
|
};
|
|
38
43
|
};
|
|
39
44
|
insert: {
|
|
@@ -52,64 +57,74 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
52
57
|
llm_daily_limit: 1;
|
|
53
58
|
};
|
|
54
59
|
forcedFilter: {
|
|
55
|
-
$and:
|
|
56
|
-
$existsJoined: {
|
|
57
|
-
access_control_connections: {};
|
|
60
|
+
readonly $and: [{
|
|
61
|
+
readonly $existsJoined: {
|
|
62
|
+
readonly access_control_connections: {};
|
|
58
63
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
is_state_db: boolean;
|
|
64
|
+
}, {
|
|
65
|
+
readonly $notExistsJoined: {
|
|
66
|
+
readonly path: ["database_configs", "connections"];
|
|
67
|
+
readonly filter: {
|
|
68
|
+
readonly is_state_db: true;
|
|
65
69
|
};
|
|
66
70
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
}, {
|
|
72
|
+
readonly $notExistsJoined: {
|
|
73
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
74
|
+
readonly filter: {
|
|
75
|
+
readonly is_state_db: true;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
readonly $or: [{
|
|
80
|
+
readonly dbPermissions: {
|
|
81
|
+
readonly "@>": {
|
|
82
|
+
readonly type: "Custom";
|
|
73
83
|
};
|
|
74
84
|
};
|
|
75
|
-
}
|
|
76
|
-
dbPermissions: {
|
|
77
|
-
"@>": {
|
|
78
|
-
type: "All views/tables";
|
|
85
|
+
}, {
|
|
86
|
+
readonly dbPermissions: {
|
|
87
|
+
readonly "@>": {
|
|
88
|
+
readonly type: "All views/tables";
|
|
79
89
|
};
|
|
80
90
|
};
|
|
81
|
-
}
|
|
82
|
-
}
|
|
91
|
+
}];
|
|
92
|
+
}];
|
|
83
93
|
};
|
|
84
94
|
checkFilter: {
|
|
85
|
-
$and:
|
|
86
|
-
$existsJoined: {
|
|
87
|
-
access_control_connections: {};
|
|
95
|
+
readonly $and: [{
|
|
96
|
+
readonly $existsJoined: {
|
|
97
|
+
readonly access_control_connections: {};
|
|
88
98
|
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
is_state_db: boolean;
|
|
99
|
+
}, {
|
|
100
|
+
readonly $notExistsJoined: {
|
|
101
|
+
readonly path: ["database_configs", "connections"];
|
|
102
|
+
readonly filter: {
|
|
103
|
+
readonly is_state_db: true;
|
|
95
104
|
};
|
|
96
105
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
}, {
|
|
107
|
+
readonly $notExistsJoined: {
|
|
108
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
109
|
+
readonly filter: {
|
|
110
|
+
readonly is_state_db: true;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}, {
|
|
114
|
+
readonly $or: [{
|
|
115
|
+
readonly dbPermissions: {
|
|
116
|
+
readonly "@>": {
|
|
117
|
+
readonly type: "Custom";
|
|
103
118
|
};
|
|
104
119
|
};
|
|
105
|
-
}
|
|
106
|
-
dbPermissions: {
|
|
107
|
-
"@>": {
|
|
108
|
-
type: "All views/tables";
|
|
120
|
+
}, {
|
|
121
|
+
readonly dbPermissions: {
|
|
122
|
+
readonly "@>": {
|
|
123
|
+
readonly type: "All views/tables";
|
|
109
124
|
};
|
|
110
125
|
};
|
|
111
|
-
}
|
|
112
|
-
}
|
|
126
|
+
}];
|
|
127
|
+
}];
|
|
113
128
|
};
|
|
114
129
|
postValidate: ({ row, dbx }: import("prostgles-server/dist/PublishParser/publishTypesAndUtils").ValidateRowArgs<Required<{
|
|
115
130
|
created?: null | string;
|
|
@@ -176,34 +191,39 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
176
191
|
delete: {
|
|
177
192
|
filterFields: "*";
|
|
178
193
|
forcedFilter: {
|
|
179
|
-
$and:
|
|
180
|
-
$existsJoined: {
|
|
181
|
-
access_control_connections: {};
|
|
194
|
+
readonly $and: [{
|
|
195
|
+
readonly $existsJoined: {
|
|
196
|
+
readonly access_control_connections: {};
|
|
182
197
|
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
is_state_db: boolean;
|
|
198
|
+
}, {
|
|
199
|
+
readonly $notExistsJoined: {
|
|
200
|
+
readonly path: ["database_configs", "connections"];
|
|
201
|
+
readonly filter: {
|
|
202
|
+
readonly is_state_db: true;
|
|
189
203
|
};
|
|
190
204
|
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
205
|
+
}, {
|
|
206
|
+
readonly $notExistsJoined: {
|
|
207
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
208
|
+
readonly filter: {
|
|
209
|
+
readonly is_state_db: true;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
}, {
|
|
213
|
+
readonly $or: [{
|
|
214
|
+
readonly dbPermissions: {
|
|
215
|
+
readonly "@>": {
|
|
216
|
+
readonly type: "Custom";
|
|
197
217
|
};
|
|
198
218
|
};
|
|
199
|
-
}
|
|
200
|
-
dbPermissions: {
|
|
201
|
-
"@>": {
|
|
202
|
-
type: "All views/tables";
|
|
219
|
+
}, {
|
|
220
|
+
readonly dbPermissions: {
|
|
221
|
+
readonly "@>": {
|
|
222
|
+
readonly type: "All views/tables";
|
|
203
223
|
};
|
|
204
224
|
};
|
|
205
|
-
}
|
|
206
|
-
}
|
|
225
|
+
}];
|
|
226
|
+
}];
|
|
207
227
|
};
|
|
208
228
|
};
|
|
209
229
|
};
|
|
@@ -211,36 +231,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
211
231
|
select: {
|
|
212
232
|
fields: "*";
|
|
213
233
|
forcedFilter: {
|
|
214
|
-
$existsJoined: {
|
|
215
|
-
access_control: {
|
|
216
|
-
$and:
|
|
217
|
-
$existsJoined: {
|
|
218
|
-
access_control_connections: {};
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
$
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
+
readonly $existsJoined: {
|
|
235
|
+
readonly access_control: {
|
|
236
|
+
readonly $and: [{
|
|
237
|
+
readonly $existsJoined: {
|
|
238
|
+
readonly access_control_connections: {};
|
|
239
|
+
};
|
|
240
|
+
}, {
|
|
241
|
+
readonly $notExistsJoined: {
|
|
242
|
+
readonly path: ["database_configs", "connections"];
|
|
243
|
+
readonly filter: {
|
|
244
|
+
readonly is_state_db: true;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
}, {
|
|
248
|
+
readonly $notExistsJoined: {
|
|
249
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
250
|
+
readonly filter: {
|
|
251
|
+
readonly is_state_db: true;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
}, {
|
|
255
|
+
readonly $or: [{
|
|
256
|
+
readonly dbPermissions: {
|
|
257
|
+
readonly "@>": {
|
|
258
|
+
readonly type: "Custom";
|
|
234
259
|
};
|
|
235
260
|
};
|
|
236
|
-
}
|
|
237
|
-
dbPermissions: {
|
|
238
|
-
"@>": {
|
|
239
|
-
type: "All views/tables";
|
|
261
|
+
}, {
|
|
262
|
+
readonly dbPermissions: {
|
|
263
|
+
readonly "@>": {
|
|
264
|
+
readonly type: "All views/tables";
|
|
240
265
|
};
|
|
241
266
|
};
|
|
242
|
-
}
|
|
243
|
-
}
|
|
267
|
+
}];
|
|
268
|
+
}];
|
|
244
269
|
};
|
|
245
270
|
};
|
|
246
271
|
};
|
|
@@ -261,36 +286,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
261
286
|
select: {
|
|
262
287
|
fields: "*";
|
|
263
288
|
forcedFilter: {
|
|
264
|
-
$existsJoined: {
|
|
265
|
-
access_control: {
|
|
266
|
-
$and:
|
|
267
|
-
$existsJoined: {
|
|
268
|
-
access_control_connections: {};
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
$
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
289
|
+
readonly $existsJoined: {
|
|
290
|
+
readonly access_control: {
|
|
291
|
+
readonly $and: [{
|
|
292
|
+
readonly $existsJoined: {
|
|
293
|
+
readonly access_control_connections: {};
|
|
294
|
+
};
|
|
295
|
+
}, {
|
|
296
|
+
readonly $notExistsJoined: {
|
|
297
|
+
readonly path: ["database_configs", "connections"];
|
|
298
|
+
readonly filter: {
|
|
299
|
+
readonly is_state_db: true;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
}, {
|
|
303
|
+
readonly $notExistsJoined: {
|
|
304
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
305
|
+
readonly filter: {
|
|
306
|
+
readonly is_state_db: true;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
}, {
|
|
310
|
+
readonly $or: [{
|
|
311
|
+
readonly dbPermissions: {
|
|
312
|
+
readonly "@>": {
|
|
313
|
+
readonly type: "Custom";
|
|
284
314
|
};
|
|
285
315
|
};
|
|
286
|
-
}
|
|
287
|
-
dbPermissions: {
|
|
288
|
-
"@>": {
|
|
289
|
-
type: "All views/tables";
|
|
316
|
+
}, {
|
|
317
|
+
readonly dbPermissions: {
|
|
318
|
+
readonly "@>": {
|
|
319
|
+
readonly type: "All views/tables";
|
|
290
320
|
};
|
|
291
321
|
};
|
|
292
|
-
}
|
|
293
|
-
}
|
|
322
|
+
}];
|
|
323
|
+
}];
|
|
294
324
|
};
|
|
295
325
|
};
|
|
296
326
|
};
|
|
@@ -298,36 +328,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
298
328
|
insert: {
|
|
299
329
|
fields: ("access_control_id" | "user_type")[];
|
|
300
330
|
checkFilter: {
|
|
301
|
-
$existsJoined: {
|
|
302
|
-
access_control: {
|
|
303
|
-
$and:
|
|
304
|
-
$existsJoined: {
|
|
305
|
-
access_control_connections: {};
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
$
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
331
|
+
readonly $existsJoined: {
|
|
332
|
+
readonly access_control: {
|
|
333
|
+
readonly $and: [{
|
|
334
|
+
readonly $existsJoined: {
|
|
335
|
+
readonly access_control_connections: {};
|
|
336
|
+
};
|
|
337
|
+
}, {
|
|
338
|
+
readonly $notExistsJoined: {
|
|
339
|
+
readonly path: ["database_configs", "connections"];
|
|
340
|
+
readonly filter: {
|
|
341
|
+
readonly is_state_db: true;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
}, {
|
|
345
|
+
readonly $notExistsJoined: {
|
|
346
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
347
|
+
readonly filter: {
|
|
348
|
+
readonly is_state_db: true;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
}, {
|
|
352
|
+
readonly $or: [{
|
|
353
|
+
readonly dbPermissions: {
|
|
354
|
+
readonly "@>": {
|
|
355
|
+
readonly type: "Custom";
|
|
321
356
|
};
|
|
322
357
|
};
|
|
323
|
-
}
|
|
324
|
-
dbPermissions: {
|
|
325
|
-
"@>": {
|
|
326
|
-
type: "All views/tables";
|
|
358
|
+
}, {
|
|
359
|
+
readonly dbPermissions: {
|
|
360
|
+
readonly "@>": {
|
|
361
|
+
readonly type: "All views/tables";
|
|
327
362
|
};
|
|
328
363
|
};
|
|
329
|
-
}
|
|
330
|
-
}
|
|
364
|
+
}];
|
|
365
|
+
}];
|
|
331
366
|
};
|
|
332
367
|
};
|
|
333
368
|
};
|
|
@@ -335,36 +370,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
335
370
|
delete: {
|
|
336
371
|
filterFields: "*";
|
|
337
372
|
forcedFilter: {
|
|
338
|
-
$existsJoined: {
|
|
339
|
-
access_control: {
|
|
340
|
-
$and:
|
|
341
|
-
$existsJoined: {
|
|
342
|
-
access_control_connections: {};
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
$
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
373
|
+
readonly $existsJoined: {
|
|
374
|
+
readonly access_control: {
|
|
375
|
+
readonly $and: [{
|
|
376
|
+
readonly $existsJoined: {
|
|
377
|
+
readonly access_control_connections: {};
|
|
378
|
+
};
|
|
379
|
+
}, {
|
|
380
|
+
readonly $notExistsJoined: {
|
|
381
|
+
readonly path: ["database_configs", "connections"];
|
|
382
|
+
readonly filter: {
|
|
383
|
+
readonly is_state_db: true;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
}, {
|
|
387
|
+
readonly $notExistsJoined: {
|
|
388
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
389
|
+
readonly filter: {
|
|
390
|
+
readonly is_state_db: true;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
}, {
|
|
394
|
+
readonly $or: [{
|
|
395
|
+
readonly dbPermissions: {
|
|
396
|
+
readonly "@>": {
|
|
397
|
+
readonly type: "Custom";
|
|
358
398
|
};
|
|
359
399
|
};
|
|
360
|
-
}
|
|
361
|
-
dbPermissions: {
|
|
362
|
-
"@>": {
|
|
363
|
-
type: "All views/tables";
|
|
400
|
+
}, {
|
|
401
|
+
readonly dbPermissions: {
|
|
402
|
+
readonly "@>": {
|
|
403
|
+
readonly type: "All views/tables";
|
|
364
404
|
};
|
|
365
405
|
};
|
|
366
|
-
}
|
|
367
|
-
}
|
|
406
|
+
}];
|
|
407
|
+
}];
|
|
368
408
|
};
|
|
369
409
|
};
|
|
370
410
|
};
|
|
@@ -374,36 +414,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
374
414
|
select: {
|
|
375
415
|
fields: "*";
|
|
376
416
|
forcedFilter: {
|
|
377
|
-
$existsJoined: {
|
|
378
|
-
access_control: {
|
|
379
|
-
$and:
|
|
380
|
-
$existsJoined: {
|
|
381
|
-
access_control_connections: {};
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
$
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
417
|
+
readonly $existsJoined: {
|
|
418
|
+
readonly access_control: {
|
|
419
|
+
readonly $and: [{
|
|
420
|
+
readonly $existsJoined: {
|
|
421
|
+
readonly access_control_connections: {};
|
|
422
|
+
};
|
|
423
|
+
}, {
|
|
424
|
+
readonly $notExistsJoined: {
|
|
425
|
+
readonly path: ["database_configs", "connections"];
|
|
426
|
+
readonly filter: {
|
|
427
|
+
readonly is_state_db: true;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
}, {
|
|
431
|
+
readonly $notExistsJoined: {
|
|
432
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
433
|
+
readonly filter: {
|
|
434
|
+
readonly is_state_db: true;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
}, {
|
|
438
|
+
readonly $or: [{
|
|
439
|
+
readonly dbPermissions: {
|
|
440
|
+
readonly "@>": {
|
|
441
|
+
readonly type: "Custom";
|
|
397
442
|
};
|
|
398
443
|
};
|
|
399
|
-
}
|
|
400
|
-
dbPermissions: {
|
|
401
|
-
"@>": {
|
|
402
|
-
type: "All views/tables";
|
|
444
|
+
}, {
|
|
445
|
+
readonly dbPermissions: {
|
|
446
|
+
readonly "@>": {
|
|
447
|
+
readonly type: "All views/tables";
|
|
403
448
|
};
|
|
404
449
|
};
|
|
405
|
-
}
|
|
406
|
-
}
|
|
450
|
+
}];
|
|
451
|
+
}];
|
|
407
452
|
};
|
|
408
453
|
};
|
|
409
454
|
};
|
|
@@ -411,36 +456,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
411
456
|
insert: {
|
|
412
457
|
fields: ("access_control_id" | "published_method_id")[];
|
|
413
458
|
checkFilter: {
|
|
414
|
-
$existsJoined: {
|
|
415
|
-
access_control: {
|
|
416
|
-
$and:
|
|
417
|
-
$existsJoined: {
|
|
418
|
-
access_control_connections: {};
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
$
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
459
|
+
readonly $existsJoined: {
|
|
460
|
+
readonly access_control: {
|
|
461
|
+
readonly $and: [{
|
|
462
|
+
readonly $existsJoined: {
|
|
463
|
+
readonly access_control_connections: {};
|
|
464
|
+
};
|
|
465
|
+
}, {
|
|
466
|
+
readonly $notExistsJoined: {
|
|
467
|
+
readonly path: ["database_configs", "connections"];
|
|
468
|
+
readonly filter: {
|
|
469
|
+
readonly is_state_db: true;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
}, {
|
|
473
|
+
readonly $notExistsJoined: {
|
|
474
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
475
|
+
readonly filter: {
|
|
476
|
+
readonly is_state_db: true;
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
}, {
|
|
480
|
+
readonly $or: [{
|
|
481
|
+
readonly dbPermissions: {
|
|
482
|
+
readonly "@>": {
|
|
483
|
+
readonly type: "Custom";
|
|
434
484
|
};
|
|
435
485
|
};
|
|
436
|
-
}
|
|
437
|
-
dbPermissions: {
|
|
438
|
-
"@>": {
|
|
439
|
-
type: "All views/tables";
|
|
486
|
+
}, {
|
|
487
|
+
readonly dbPermissions: {
|
|
488
|
+
readonly "@>": {
|
|
489
|
+
readonly type: "All views/tables";
|
|
440
490
|
};
|
|
441
491
|
};
|
|
442
|
-
}
|
|
443
|
-
}
|
|
492
|
+
}];
|
|
493
|
+
}];
|
|
444
494
|
};
|
|
445
495
|
};
|
|
446
496
|
};
|
|
@@ -452,36 +502,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
452
502
|
delete: {
|
|
453
503
|
filterFields: "*";
|
|
454
504
|
forcedFilter: {
|
|
455
|
-
$existsJoined: {
|
|
456
|
-
access_control: {
|
|
457
|
-
$and:
|
|
458
|
-
$existsJoined: {
|
|
459
|
-
access_control_connections: {};
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
$
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
505
|
+
readonly $existsJoined: {
|
|
506
|
+
readonly access_control: {
|
|
507
|
+
readonly $and: [{
|
|
508
|
+
readonly $existsJoined: {
|
|
509
|
+
readonly access_control_connections: {};
|
|
510
|
+
};
|
|
511
|
+
}, {
|
|
512
|
+
readonly $notExistsJoined: {
|
|
513
|
+
readonly path: ["database_configs", "connections"];
|
|
514
|
+
readonly filter: {
|
|
515
|
+
readonly is_state_db: true;
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
}, {
|
|
519
|
+
readonly $notExistsJoined: {
|
|
520
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
521
|
+
readonly filter: {
|
|
522
|
+
readonly is_state_db: true;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
}, {
|
|
526
|
+
readonly $or: [{
|
|
527
|
+
readonly dbPermissions: {
|
|
528
|
+
readonly "@>": {
|
|
529
|
+
readonly type: "Custom";
|
|
475
530
|
};
|
|
476
531
|
};
|
|
477
|
-
}
|
|
478
|
-
dbPermissions: {
|
|
479
|
-
"@>": {
|
|
480
|
-
type: "All views/tables";
|
|
532
|
+
}, {
|
|
533
|
+
readonly dbPermissions: {
|
|
534
|
+
readonly "@>": {
|
|
535
|
+
readonly type: "All views/tables";
|
|
481
536
|
};
|
|
482
537
|
};
|
|
483
|
-
}
|
|
484
|
-
}
|
|
538
|
+
}];
|
|
539
|
+
}];
|
|
485
540
|
};
|
|
486
541
|
};
|
|
487
542
|
};
|
|
@@ -491,36 +546,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
491
546
|
select: {
|
|
492
547
|
fields: "*";
|
|
493
548
|
forcedFilter: {
|
|
494
|
-
$existsJoined: {
|
|
495
|
-
access_control: {
|
|
496
|
-
$and:
|
|
497
|
-
$existsJoined: {
|
|
498
|
-
access_control_connections: {};
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
$
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
549
|
+
readonly $existsJoined: {
|
|
550
|
+
readonly access_control: {
|
|
551
|
+
readonly $and: [{
|
|
552
|
+
readonly $existsJoined: {
|
|
553
|
+
readonly access_control_connections: {};
|
|
554
|
+
};
|
|
555
|
+
}, {
|
|
556
|
+
readonly $notExistsJoined: {
|
|
557
|
+
readonly path: ["database_configs", "connections"];
|
|
558
|
+
readonly filter: {
|
|
559
|
+
readonly is_state_db: true;
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
}, {
|
|
563
|
+
readonly $notExistsJoined: {
|
|
564
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
565
|
+
readonly filter: {
|
|
566
|
+
readonly is_state_db: true;
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
}, {
|
|
570
|
+
readonly $or: [{
|
|
571
|
+
readonly dbPermissions: {
|
|
572
|
+
readonly "@>": {
|
|
573
|
+
readonly type: "Custom";
|
|
514
574
|
};
|
|
515
575
|
};
|
|
516
|
-
}
|
|
517
|
-
dbPermissions: {
|
|
518
|
-
"@>": {
|
|
519
|
-
type: "All views/tables";
|
|
576
|
+
}, {
|
|
577
|
+
readonly dbPermissions: {
|
|
578
|
+
readonly "@>": {
|
|
579
|
+
readonly type: "All views/tables";
|
|
520
580
|
};
|
|
521
581
|
};
|
|
522
|
-
}
|
|
523
|
-
}
|
|
582
|
+
}];
|
|
583
|
+
}];
|
|
524
584
|
};
|
|
525
585
|
};
|
|
526
586
|
};
|
|
@@ -528,36 +588,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
528
588
|
insert: {
|
|
529
589
|
fields: ("access_control_id" | "llm_credential_id" | "llm_prompt_id")[];
|
|
530
590
|
checkFilter: {
|
|
531
|
-
$existsJoined: {
|
|
532
|
-
access_control: {
|
|
533
|
-
$and:
|
|
534
|
-
$existsJoined: {
|
|
535
|
-
access_control_connections: {};
|
|
536
|
-
};
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
$
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
591
|
+
readonly $existsJoined: {
|
|
592
|
+
readonly access_control: {
|
|
593
|
+
readonly $and: [{
|
|
594
|
+
readonly $existsJoined: {
|
|
595
|
+
readonly access_control_connections: {};
|
|
596
|
+
};
|
|
597
|
+
}, {
|
|
598
|
+
readonly $notExistsJoined: {
|
|
599
|
+
readonly path: ["database_configs", "connections"];
|
|
600
|
+
readonly filter: {
|
|
601
|
+
readonly is_state_db: true;
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
}, {
|
|
605
|
+
readonly $notExistsJoined: {
|
|
606
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
607
|
+
readonly filter: {
|
|
608
|
+
readonly is_state_db: true;
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
}, {
|
|
612
|
+
readonly $or: [{
|
|
613
|
+
readonly dbPermissions: {
|
|
614
|
+
readonly "@>": {
|
|
615
|
+
readonly type: "Custom";
|
|
551
616
|
};
|
|
552
617
|
};
|
|
553
|
-
}
|
|
554
|
-
dbPermissions: {
|
|
555
|
-
"@>": {
|
|
556
|
-
type: "All views/tables";
|
|
618
|
+
}, {
|
|
619
|
+
readonly dbPermissions: {
|
|
620
|
+
readonly "@>": {
|
|
621
|
+
readonly type: "All views/tables";
|
|
557
622
|
};
|
|
558
623
|
};
|
|
559
|
-
}
|
|
560
|
-
}
|
|
624
|
+
}];
|
|
625
|
+
}];
|
|
561
626
|
};
|
|
562
627
|
};
|
|
563
628
|
};
|
|
@@ -574,36 +639,41 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
574
639
|
delete: {
|
|
575
640
|
filterFields: "*";
|
|
576
641
|
forcedFilter: {
|
|
577
|
-
$existsJoined: {
|
|
578
|
-
access_control: {
|
|
579
|
-
$and:
|
|
580
|
-
$existsJoined: {
|
|
581
|
-
access_control_connections: {};
|
|
582
|
-
};
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
$
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
642
|
+
readonly $existsJoined: {
|
|
643
|
+
readonly access_control: {
|
|
644
|
+
readonly $and: [{
|
|
645
|
+
readonly $existsJoined: {
|
|
646
|
+
readonly access_control_connections: {};
|
|
647
|
+
};
|
|
648
|
+
}, {
|
|
649
|
+
readonly $notExistsJoined: {
|
|
650
|
+
readonly path: ["database_configs", "connections"];
|
|
651
|
+
readonly filter: {
|
|
652
|
+
readonly is_state_db: true;
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
}, {
|
|
656
|
+
readonly $notExistsJoined: {
|
|
657
|
+
readonly path: ["access_control_connections", "connections", "database_configs", "connections"];
|
|
658
|
+
readonly filter: {
|
|
659
|
+
readonly is_state_db: true;
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
}, {
|
|
663
|
+
readonly $or: [{
|
|
664
|
+
readonly dbPermissions: {
|
|
665
|
+
readonly "@>": {
|
|
666
|
+
readonly type: "Custom";
|
|
597
667
|
};
|
|
598
668
|
};
|
|
599
|
-
}
|
|
600
|
-
dbPermissions: {
|
|
601
|
-
"@>": {
|
|
602
|
-
type: "All views/tables";
|
|
669
|
+
}, {
|
|
670
|
+
readonly dbPermissions: {
|
|
671
|
+
readonly "@>": {
|
|
672
|
+
readonly type: "All views/tables";
|
|
603
673
|
};
|
|
604
674
|
};
|
|
605
|
-
}
|
|
606
|
-
}
|
|
675
|
+
}];
|
|
676
|
+
}];
|
|
607
677
|
};
|
|
608
678
|
};
|
|
609
679
|
};
|
|
@@ -643,12 +713,12 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
643
713
|
forcedFilter: {
|
|
644
714
|
$or: ({
|
|
645
715
|
$notExistsJoined: {
|
|
646
|
-
path: string[];
|
|
647
|
-
filter: {
|
|
648
|
-
dbPermissions: {
|
|
649
|
-
"@>": {
|
|
650
|
-
type:
|
|
651
|
-
allowSQL:
|
|
716
|
+
readonly path: readonly [...string[], "access_control_user_types", "access_control"];
|
|
717
|
+
readonly filter: {
|
|
718
|
+
readonly dbPermissions: {
|
|
719
|
+
readonly "@>": {
|
|
720
|
+
readonly type: "Run SQL";
|
|
721
|
+
readonly allowSQL: true;
|
|
652
722
|
};
|
|
653
723
|
};
|
|
654
724
|
};
|
|
@@ -674,12 +744,12 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
674
744
|
};
|
|
675
745
|
checkFilter: {
|
|
676
746
|
$notExistsJoined: {
|
|
677
|
-
path: string[];
|
|
678
|
-
filter: {
|
|
679
|
-
dbPermissions: {
|
|
680
|
-
"@>": {
|
|
681
|
-
type:
|
|
682
|
-
allowSQL:
|
|
747
|
+
readonly path: readonly [...string[], "access_control_user_types", "access_control"];
|
|
748
|
+
readonly filter: {
|
|
749
|
+
readonly dbPermissions: {
|
|
750
|
+
readonly "@>": {
|
|
751
|
+
readonly type: "Run SQL";
|
|
752
|
+
readonly allowSQL: true;
|
|
683
753
|
};
|
|
684
754
|
};
|
|
685
755
|
};
|
|
@@ -697,12 +767,12 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
697
767
|
};
|
|
698
768
|
forcedFilter: {
|
|
699
769
|
$notExistsJoined: {
|
|
700
|
-
path: string[];
|
|
701
|
-
filter: {
|
|
702
|
-
dbPermissions: {
|
|
703
|
-
"@>": {
|
|
704
|
-
type:
|
|
705
|
-
allowSQL:
|
|
770
|
+
readonly path: readonly [...string[], "access_control_user_types", "access_control"];
|
|
771
|
+
readonly filter: {
|
|
772
|
+
readonly dbPermissions: {
|
|
773
|
+
readonly "@>": {
|
|
774
|
+
readonly type: "Run SQL";
|
|
775
|
+
readonly allowSQL: true;
|
|
706
776
|
};
|
|
707
777
|
};
|
|
708
778
|
};
|
|
@@ -713,12 +783,12 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
713
783
|
};
|
|
714
784
|
checkFilter: {
|
|
715
785
|
$notExistsJoined: {
|
|
716
|
-
path: string[];
|
|
717
|
-
filter: {
|
|
718
|
-
dbPermissions: {
|
|
719
|
-
"@>": {
|
|
720
|
-
type:
|
|
721
|
-
allowSQL:
|
|
786
|
+
readonly path: readonly [...string[], "access_control_user_types", "access_control"];
|
|
787
|
+
readonly filter: {
|
|
788
|
+
readonly dbPermissions: {
|
|
789
|
+
readonly "@>": {
|
|
790
|
+
readonly type: "Run SQL";
|
|
791
|
+
readonly allowSQL: true;
|
|
722
792
|
};
|
|
723
793
|
};
|
|
724
794
|
};
|
|
@@ -746,12 +816,12 @@ export declare const getBusinessAccessPublish: (userId: string) => {
|
|
|
746
816
|
$ne: string;
|
|
747
817
|
};
|
|
748
818
|
$notExistsJoined: {
|
|
749
|
-
path: string[];
|
|
750
|
-
filter: {
|
|
751
|
-
dbPermissions: {
|
|
752
|
-
"@>": {
|
|
753
|
-
type:
|
|
754
|
-
allowSQL:
|
|
819
|
+
readonly path: readonly [...string[], "access_control_user_types", "access_control"];
|
|
820
|
+
readonly filter: {
|
|
821
|
+
readonly dbPermissions: {
|
|
822
|
+
readonly "@>": {
|
|
823
|
+
readonly type: "Run SQL";
|
|
824
|
+
readonly allowSQL: true;
|
|
755
825
|
};
|
|
756
826
|
};
|
|
757
827
|
};
|