@superatomai/sdk-node 0.0.36 → 0.0.37
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/README.md +942 -942
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +49 -48
package/dist/index.js
CHANGED
|
@@ -2028,6 +2028,7 @@ var DashboardsRequestPayloadSchema = import_zod3.z.object({
|
|
|
2028
2028
|
published: import_zod3.z.boolean().optional(),
|
|
2029
2029
|
createdBy: import_zod3.z.number().optional(),
|
|
2030
2030
|
updatedBy: import_zod3.z.number().optional(),
|
|
2031
|
+
allowedUsers: import_zod3.z.array(import_zod3.z.number()).optional(),
|
|
2031
2032
|
dashboard: DSLRendererPropsSchema.optional(),
|
|
2032
2033
|
// Query operation fields
|
|
2033
2034
|
filters: DashboardQueryFiltersSchema.optional(),
|
|
@@ -7524,6 +7525,7 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
|
|
|
7524
7525
|
const published = requestData?.published;
|
|
7525
7526
|
const createdBy = requestData?.createdBy;
|
|
7526
7527
|
const updatedBy = requestData?.updatedBy;
|
|
7528
|
+
const allowedUsers = requestData?.allowedUsers;
|
|
7527
7529
|
const numericId = requestData?.id;
|
|
7528
7530
|
const filters = requestData?.filters;
|
|
7529
7531
|
const limit = requestData?.limit;
|
|
@@ -7539,10 +7541,10 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
|
|
|
7539
7541
|
const dashboardManager2 = getDashboardManager();
|
|
7540
7542
|
switch (operation) {
|
|
7541
7543
|
case "create":
|
|
7542
|
-
await handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, executeCollection, dashboardManager2, sendMessage, from.id);
|
|
7544
|
+
await handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, from.id);
|
|
7543
7545
|
break;
|
|
7544
7546
|
case "update":
|
|
7545
|
-
await handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, executeCollection, dashboardManager2, sendMessage, from.id);
|
|
7547
|
+
await handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, from.id);
|
|
7546
7548
|
break;
|
|
7547
7549
|
case "delete":
|
|
7548
7550
|
await handleDelete2(id, numericId, dashboardId, executeCollection, dashboardManager2, sendMessage, from.id);
|
|
@@ -7570,7 +7572,7 @@ async function handleDashboardsRequest(data, collections, sendMessage) {
|
|
|
7570
7572
|
}, sendMessage);
|
|
7571
7573
|
}
|
|
7572
7574
|
}
|
|
7573
|
-
async function handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, executeCollection, dashboardManager2, sendMessage, clientId) {
|
|
7575
|
+
async function handleCreate2(id, dashboardId, dashboard, projectId, name, description, published, createdBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, clientId) {
|
|
7574
7576
|
if (!dashboardId || dashboardId.trim().length === 0) {
|
|
7575
7577
|
sendResponse4(id, {
|
|
7576
7578
|
success: false,
|
|
@@ -7593,7 +7595,8 @@ async function handleCreate2(id, dashboardId, dashboard, projectId, name, descri
|
|
|
7593
7595
|
description,
|
|
7594
7596
|
dashboard,
|
|
7595
7597
|
published,
|
|
7596
|
-
createdBy
|
|
7598
|
+
createdBy,
|
|
7599
|
+
allowedUsers
|
|
7597
7600
|
});
|
|
7598
7601
|
if (result && result.success) {
|
|
7599
7602
|
logger.info(`[DB] Dashboard created successfully, ID: ${result.data?.id}`);
|
|
@@ -7632,7 +7635,7 @@ async function handleCreate2(id, dashboardId, dashboard, projectId, name, descri
|
|
|
7632
7635
|
}, sendMessage, clientId);
|
|
7633
7636
|
}
|
|
7634
7637
|
}
|
|
7635
|
-
async function handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, executeCollection, dashboardManager2, sendMessage, clientId) {
|
|
7638
|
+
async function handleUpdate2(id, numericId, dashboardId, dashboard, name, description, published, updatedBy, allowedUsers, executeCollection, dashboardManager2, sendMessage, clientId) {
|
|
7636
7639
|
if (!numericId) {
|
|
7637
7640
|
sendResponse4(id, {
|
|
7638
7641
|
success: false,
|
|
@@ -7647,7 +7650,8 @@ async function handleUpdate2(id, numericId, dashboardId, dashboard, name, descri
|
|
|
7647
7650
|
description,
|
|
7648
7651
|
dashboard,
|
|
7649
7652
|
published,
|
|
7650
|
-
updatedBy
|
|
7653
|
+
updatedBy,
|
|
7654
|
+
allowedUsers
|
|
7651
7655
|
});
|
|
7652
7656
|
if (result && result.success) {
|
|
7653
7657
|
logger.info(`[DB] Dashboard updated successfully, ID: ${numericId}`);
|