@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.d.cts CHANGED
@@ -1436,6 +1436,7 @@ interface Dashboard {
1436
1436
  dashboard?: DSLRendererProps$2;
1437
1437
  createdBy?: number;
1438
1438
  updatedBy?: number;
1439
+ allowedUsers?: number[];
1439
1440
  createdAt?: string;
1440
1441
  updatedAt?: string;
1441
1442
  }
@@ -1449,6 +1450,7 @@ interface CreateDashboardOptions {
1449
1450
  description?: string;
1450
1451
  published?: boolean;
1451
1452
  createdBy?: number;
1453
+ allowedUsers?: number[];
1452
1454
  dashboard?: DSLRendererProps$2;
1453
1455
  }
1454
1456
  /**
@@ -1461,6 +1463,7 @@ interface UpdateDashboardOptions {
1461
1463
  published?: boolean;
1462
1464
  createdBy?: number;
1463
1465
  updatedBy?: number;
1466
+ allowedUsers?: number[];
1464
1467
  dashboard?: DSLRendererProps$2;
1465
1468
  }
1466
1469
  /**
package/dist/index.d.ts CHANGED
@@ -1436,6 +1436,7 @@ interface Dashboard {
1436
1436
  dashboard?: DSLRendererProps$2;
1437
1437
  createdBy?: number;
1438
1438
  updatedBy?: number;
1439
+ allowedUsers?: number[];
1439
1440
  createdAt?: string;
1440
1441
  updatedAt?: string;
1441
1442
  }
@@ -1449,6 +1450,7 @@ interface CreateDashboardOptions {
1449
1450
  description?: string;
1450
1451
  published?: boolean;
1451
1452
  createdBy?: number;
1453
+ allowedUsers?: number[];
1452
1454
  dashboard?: DSLRendererProps$2;
1453
1455
  }
1454
1456
  /**
@@ -1461,6 +1463,7 @@ interface UpdateDashboardOptions {
1461
1463
  published?: boolean;
1462
1464
  createdBy?: number;
1463
1465
  updatedBy?: number;
1466
+ allowedUsers?: number[];
1464
1467
  dashboard?: DSLRendererProps$2;
1465
1468
  }
1466
1469
  /**
package/dist/index.js CHANGED
@@ -568,6 +568,7 @@ var DashboardsRequestPayloadSchema = z.object({
568
568
  published: z.boolean().optional(),
569
569
  createdBy: z.number().optional(),
570
570
  updatedBy: z.number().optional(),
571
+ allowedUsers: z.array(z.number()).optional(),
571
572
  dashboard: DSLRendererPropsSchema.optional(),
572
573
  // Query operation fields
573
574
  filters: DashboardQueryFiltersSchema.optional(),
@@ -1286,7 +1287,7 @@ async function queryUsers(client, options = {}, timeout) {
1286
1287
 
1287
1288
  // src/services/dashboards/index.ts
1288
1289
  async function createDashboard(client, options, timeout) {
1289
- const { dashboardId, projectId, name, description, published, createdBy, dashboard } = options;
1290
+ const { dashboardId, projectId, name, description, published, createdBy, allowedUsers, dashboard } = options;
1290
1291
  const messageId = `dashboards_create_${Date.now()}`;
1291
1292
  const message = DashboardsRequestMessageSchema.parse({
1292
1293
  id: messageId,
@@ -1302,6 +1303,7 @@ async function createDashboard(client, options, timeout) {
1302
1303
  description,
1303
1304
  published,
1304
1305
  createdBy,
1306
+ allowedUsers,
1305
1307
  dashboard
1306
1308
  }
1307
1309
  }
@@ -1318,7 +1320,7 @@ async function createDashboard(client, options, timeout) {
1318
1320
  };
1319
1321
  }
1320
1322
  async function updateDashboard(client, options, timeout) {
1321
- const { id, name, description, published, createdBy, updatedBy, dashboard } = options;
1323
+ const { id, name, description, published, createdBy, updatedBy, allowedUsers, dashboard } = options;
1322
1324
  const messageId = `dashboards_update_${Date.now()}`;
1323
1325
  const message = DashboardsRequestMessageSchema.parse({
1324
1326
  id: messageId,
@@ -1334,6 +1336,7 @@ async function updateDashboard(client, options, timeout) {
1334
1336
  published,
1335
1337
  createdBy,
1336
1338
  updatedBy,
1339
+ allowedUsers,
1337
1340
  dashboard
1338
1341
  }
1339
1342
  }