@superatomai/sdk-web 0.0.19 → 0.0.20

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/index.cjs CHANGED
@@ -570,6 +570,7 @@ var DashboardsRequestPayloadSchema = zod.z.object({
570
570
  published: zod.z.boolean().optional(),
571
571
  createdBy: zod.z.number().optional(),
572
572
  updatedBy: zod.z.number().optional(),
573
+ allowedUsers: zod.z.array(zod.z.number()).optional(),
573
574
  dashboard: DSLRendererPropsSchema.optional(),
574
575
  // Query operation fields
575
576
  filters: DashboardQueryFiltersSchema.optional(),
@@ -1288,7 +1289,7 @@ async function queryUsers(client, options = {}, timeout) {
1288
1289
 
1289
1290
  // src/services/dashboards/index.ts
1290
1291
  async function createDashboard(client, options, timeout) {
1291
- const { dashboardId, projectId, name, description, published, createdBy, dashboard } = options;
1292
+ const { dashboardId, projectId, name, description, published, createdBy, allowedUsers, dashboard } = options;
1292
1293
  const messageId = `dashboards_create_${Date.now()}`;
1293
1294
  const message = DashboardsRequestMessageSchema.parse({
1294
1295
  id: messageId,
@@ -1304,6 +1305,7 @@ async function createDashboard(client, options, timeout) {
1304
1305
  description,
1305
1306
  published,
1306
1307
  createdBy,
1308
+ allowedUsers,
1307
1309
  dashboard
1308
1310
  }
1309
1311
  }
@@ -1320,7 +1322,7 @@ async function createDashboard(client, options, timeout) {
1320
1322
  };
1321
1323
  }
1322
1324
  async function updateDashboard(client, options, timeout) {
1323
- const { id, name, description, published, createdBy, updatedBy, dashboard } = options;
1325
+ const { id, name, description, published, createdBy, updatedBy, allowedUsers, dashboard } = options;
1324
1326
  const messageId = `dashboards_update_${Date.now()}`;
1325
1327
  const message = DashboardsRequestMessageSchema.parse({
1326
1328
  id: messageId,
@@ -1336,6 +1338,7 @@ async function updateDashboard(client, options, timeout) {
1336
1338
  published,
1337
1339
  createdBy,
1338
1340
  updatedBy,
1341
+ allowedUsers,
1339
1342
  dashboard
1340
1343
  }
1341
1344
  }