shred-api-client 2.4.14-rc.2 → 2.4.14-rc.4

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.ts CHANGED
@@ -1479,6 +1479,21 @@ declare const MemberSchema: z.ZodObject<{
1479
1479
  name: string;
1480
1480
  isActive: boolean;
1481
1481
  }>;
1482
+ declare enum Action {
1483
+ ADD = "add",
1484
+ REMOVE = "remove"
1485
+ }
1486
+ declare const ReportViewerUpdateSchema: z.ZodObject<{
1487
+ userId: z.ZodString;
1488
+ action: z.ZodNativeEnum<typeof Action>;
1489
+ }, "strip", z.ZodTypeAny, {
1490
+ userId: string;
1491
+ action: Action;
1492
+ }, {
1493
+ userId: string;
1494
+ action: Action;
1495
+ }>;
1496
+ type ReportViewerUpdate = z.infer<typeof ReportViewerUpdateSchema>;
1482
1497
  type Tenant = z.infer<typeof TenantSchema>;
1483
1498
  type Member = z.infer<typeof MemberSchema>;
1484
1499
  type Preferences = z.infer<typeof PreferencesSchema>;
@@ -1490,6 +1505,7 @@ interface IAPI$7 {
1490
1505
  getTenant: (context: Context, tenantId?: string) => Promise<Tenant | null>;
1491
1506
  getMembers: (context: Context, tenantId: string) => Promise<Member[]>;
1492
1507
  update: (tenantId: string, data: Pick<Tenant, "preferences">, context: Context) => Promise<boolean>;
1508
+ updateReportViewers: (tenantId: string, reportViewerUpdate: ReportViewerUpdate, context: Context) => Promise<boolean>;
1493
1509
  }
1494
1510
  declare const Endpoints$6: {
1495
1511
  GetByInviteCode: {
@@ -1561,16 +1577,16 @@ declare const TrackSchema: z.ZodObject<{
1561
1577
  }>, "many">>;
1562
1578
  }, "strip", z.ZodTypeAny, {
1563
1579
  label: string;
1564
- category: string;
1565
1580
  action: string;
1581
+ category: string;
1566
1582
  params?: {
1567
1583
  value: string | number;
1568
1584
  name: string;
1569
1585
  }[] | undefined;
1570
1586
  }, {
1571
1587
  label: string;
1572
- category: string;
1573
1588
  action: string;
1589
+ category: string;
1574
1590
  params?: {
1575
1591
  value: string | number;
1576
1592
  name: string;
package/dist/index.js CHANGED
@@ -4708,6 +4708,19 @@ var TenantAPI = class {
4708
4708
  );
4709
4709
  return data;
4710
4710
  }
4711
+ async updateReportViewers(tenantId, reportViewerUpdate, context) {
4712
+ const endpointInfo = tenant_exports.Endpoints.UpdateReportViewers;
4713
+ const endpointData = tenant_exports.Endpoints.UpdateReportViewers;
4714
+ const endpoint = endpointData.uri.replace(":tenantId", tenantId);
4715
+ const data = await this.clientHTTP.makeRequest(
4716
+ this.env,
4717
+ `${endpoint}`,
4718
+ endpointInfo.method,
4719
+ { tenantId, reportViewerUpdate, context },
4720
+ context
4721
+ );
4722
+ return data;
4723
+ }
4711
4724
  };
4712
4725
  var Tenant_api_default = TenantAPI;
4713
4726
 
@@ -5984,6 +5997,15 @@ var MemberSchema = external_exports.object({
5984
5997
  pictureUrl: external_exports.string(),
5985
5998
  isActive: external_exports.boolean()
5986
5999
  });
6000
+ var Action = /* @__PURE__ */ ((Action2) => {
6001
+ Action2["ADD"] = "add";
6002
+ Action2["REMOVE"] = "remove";
6003
+ return Action2;
6004
+ })(Action || {});
6005
+ var ReportViewerUpdateSchema = external_exports.object({
6006
+ userId: external_exports.string(),
6007
+ action: external_exports.nativeEnum(Action)
6008
+ });
5987
6009
 
5988
6010
  // src/model/tenant/Tenant.api.ts
5989
6011
  var Endpoints8 = {