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

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: {
@@ -1526,13 +1542,17 @@ declare const Endpoints$6: {
1526
1542
  };
1527
1543
  };
1528
1544
 
1545
+ type index$8_Action = Action;
1546
+ declare const index$8_Action: typeof Action;
1529
1547
  type index$8_Member = Member;
1530
1548
  declare const index$8_MemberSchema: typeof MemberSchema;
1531
1549
  type index$8_Preferences = Preferences;
1532
1550
  declare const index$8_PreferencesSchema: typeof PreferencesSchema;
1551
+ type index$8_ReportViewerUpdate = ReportViewerUpdate;
1552
+ declare const index$8_ReportViewerUpdateSchema: typeof ReportViewerUpdateSchema;
1533
1553
  declare const index$8_TenantSchema: typeof TenantSchema;
1534
1554
  declare namespace index$8 {
1535
- export { Endpoints$6 as Endpoints, type Tenant as Entity, type IAPI$7 as IAPI, type index$8_Member as Member, index$8_MemberSchema as MemberSchema, type index$8_Preferences as Preferences, index$8_PreferencesSchema as PreferencesSchema, index$8_TenantSchema as TenantSchema };
1555
+ export { index$8_Action as Action, Endpoints$6 as Endpoints, type Tenant as Entity, type IAPI$7 as IAPI, type index$8_Member as Member, index$8_MemberSchema as MemberSchema, type index$8_Preferences as Preferences, index$8_PreferencesSchema as PreferencesSchema, type index$8_ReportViewerUpdate as ReportViewerUpdate, index$8_ReportViewerUpdateSchema as ReportViewerUpdateSchema, index$8_TenantSchema as TenantSchema };
1536
1556
  }
1537
1557
 
1538
1558
  declare const TrackParamSchema: z.ZodObject<{
@@ -1561,16 +1581,16 @@ declare const TrackSchema: z.ZodObject<{
1561
1581
  }>, "many">>;
1562
1582
  }, "strip", z.ZodTypeAny, {
1563
1583
  label: string;
1564
- category: string;
1565
1584
  action: string;
1585
+ category: string;
1566
1586
  params?: {
1567
1587
  value: string | number;
1568
1588
  name: string;
1569
1589
  }[] | undefined;
1570
1590
  }, {
1571
1591
  label: string;
1572
- category: string;
1573
1592
  action: string;
1593
+ category: string;
1574
1594
  params?: {
1575
1595
  value: string | number;
1576
1596
  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
+ { data: reportViewerUpdate, context },
4720
+ context
4721
+ );
4722
+ return data;
4723
+ }
4711
4724
  };
4712
4725
  var Tenant_api_default = TenantAPI;
4713
4726
 
@@ -5885,6 +5898,7 @@ __export(tenant_exports, {
5885
5898
  Endpoints: () => Endpoints8,
5886
5899
  MemberSchema: () => MemberSchema,
5887
5900
  PreferencesSchema: () => PreferencesSchema,
5901
+ ReportViewerUpdateSchema: () => ReportViewerUpdateSchema,
5888
5902
  TenantSchema: () => TenantSchema
5889
5903
  });
5890
5904
 
@@ -5984,6 +5998,15 @@ var MemberSchema = external_exports.object({
5984
5998
  pictureUrl: external_exports.string(),
5985
5999
  isActive: external_exports.boolean()
5986
6000
  });
6001
+ var Action = /* @__PURE__ */ ((Action2) => {
6002
+ Action2["ADD"] = "add";
6003
+ Action2["REMOVE"] = "remove";
6004
+ return Action2;
6005
+ })(Action || {});
6006
+ var ReportViewerUpdateSchema = external_exports.object({
6007
+ userId: external_exports.string(),
6008
+ action: external_exports.nativeEnum(Action)
6009
+ });
5987
6010
 
5988
6011
  // src/model/tenant/Tenant.api.ts
5989
6012
  var Endpoints8 = {