shred-api-client 2.9.6 → 2.9.7
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 +3 -22
- package/dist/index.js +0 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1539,25 +1539,15 @@ declare enum Action$1 {
|
|
|
1539
1539
|
ADD = "ADD",
|
|
1540
1540
|
REMOVE = "REMOVE"
|
|
1541
1541
|
}
|
|
1542
|
-
declare const ReportViewerUpdateSchema: z.ZodObject<{
|
|
1543
|
-
userId: z.ZodString;
|
|
1544
|
-
action: z.ZodNativeEnum<typeof Action$1>;
|
|
1545
|
-
}, "strip", z.ZodTypeAny, {
|
|
1546
|
-
userId: string;
|
|
1547
|
-
action: Action$1;
|
|
1548
|
-
}, {
|
|
1549
|
-
userId: string;
|
|
1550
|
-
action: Action$1;
|
|
1551
|
-
}>;
|
|
1552
1542
|
declare const MemberUpdateSchema: z.ZodObject<{
|
|
1553
1543
|
userIds: z.ZodArray<z.ZodString, "many">;
|
|
1554
1544
|
action: z.ZodNativeEnum<typeof Action$1>;
|
|
1555
1545
|
}, "strip", z.ZodTypeAny, {
|
|
1556
|
-
action: Action$1;
|
|
1557
1546
|
userIds: string[];
|
|
1558
|
-
}, {
|
|
1559
1547
|
action: Action$1;
|
|
1548
|
+
}, {
|
|
1560
1549
|
userIds: string[];
|
|
1550
|
+
action: Action$1;
|
|
1561
1551
|
}>;
|
|
1562
1552
|
declare const TenantUpdateSchema: z.ZodObject<{
|
|
1563
1553
|
preferences: z.ZodOptional<z.ZodObject<{
|
|
@@ -1705,7 +1695,6 @@ declare const TenantUpdateSchema: z.ZodObject<{
|
|
|
1705
1695
|
} | undefined;
|
|
1706
1696
|
reportUrl?: string | undefined;
|
|
1707
1697
|
}>;
|
|
1708
|
-
type ReportViewerUpdate = z.infer<typeof ReportViewerUpdateSchema>;
|
|
1709
1698
|
type MemberUpdate = z.infer<typeof MemberUpdateSchema>;
|
|
1710
1699
|
type TenantUpdate = z.infer<typeof TenantUpdateSchema>;
|
|
1711
1700
|
type Tenant = z.infer<typeof TenantSchema>;
|
|
@@ -1719,7 +1708,6 @@ interface IAPI$a {
|
|
|
1719
1708
|
getTenant: (context: Context, tenantId?: string) => Promise<Tenant | null>;
|
|
1720
1709
|
getMembers: (context: Context, tenantId: string) => Promise<Member[]>;
|
|
1721
1710
|
update: (tenantId: string, data: TenantUpdate, context: Context) => Promise<boolean>;
|
|
1722
|
-
updateReportViewers: (tenantId: string, reportViewerUpdate: ReportViewerUpdate, context: Context) => Promise<boolean>;
|
|
1723
1711
|
updateMembers: (tenantId: string, memberUpdate: MemberUpdate, context: Context) => Promise<boolean>;
|
|
1724
1712
|
}
|
|
1725
1713
|
declare const Endpoints$9: {
|
|
@@ -1751,10 +1739,6 @@ declare const Endpoints$9: {
|
|
|
1751
1739
|
uri: string;
|
|
1752
1740
|
method: string;
|
|
1753
1741
|
};
|
|
1754
|
-
UpdateReportViewers: {
|
|
1755
|
-
uri: string;
|
|
1756
|
-
method: string;
|
|
1757
|
-
};
|
|
1758
1742
|
UpdateMembers: {
|
|
1759
1743
|
uri: string;
|
|
1760
1744
|
method: string;
|
|
@@ -1767,13 +1751,11 @@ type index$b_MemberUpdate = MemberUpdate;
|
|
|
1767
1751
|
declare const index$b_MemberUpdateSchema: typeof MemberUpdateSchema;
|
|
1768
1752
|
type index$b_Preferences = Preferences;
|
|
1769
1753
|
declare const index$b_PreferencesSchema: typeof PreferencesSchema;
|
|
1770
|
-
type index$b_ReportViewerUpdate = ReportViewerUpdate;
|
|
1771
|
-
declare const index$b_ReportViewerUpdateSchema: typeof ReportViewerUpdateSchema;
|
|
1772
1754
|
declare const index$b_TenantSchema: typeof TenantSchema;
|
|
1773
1755
|
type index$b_TenantUpdate = TenantUpdate;
|
|
1774
1756
|
declare const index$b_TenantUpdateSchema: typeof TenantUpdateSchema;
|
|
1775
1757
|
declare namespace index$b {
|
|
1776
|
-
export { Action$1 as Action, Endpoints$9 as Endpoints, type Tenant as Entity, type IAPI$a as IAPI, type index$b_Member as Member, index$b_MemberSchema as MemberSchema, type index$b_MemberUpdate as MemberUpdate, index$b_MemberUpdateSchema as MemberUpdateSchema, type index$b_Preferences as Preferences, index$b_PreferencesSchema as PreferencesSchema,
|
|
1758
|
+
export { Action$1 as Action, Endpoints$9 as Endpoints, type Tenant as Entity, type IAPI$a as IAPI, type index$b_Member as Member, index$b_MemberSchema as MemberSchema, type index$b_MemberUpdate as MemberUpdate, index$b_MemberUpdateSchema as MemberUpdateSchema, type index$b_Preferences as Preferences, index$b_PreferencesSchema as PreferencesSchema, index$b_TenantSchema as TenantSchema, type index$b_TenantUpdate as TenantUpdate, index$b_TenantUpdateSchema as TenantUpdateSchema };
|
|
1777
1759
|
}
|
|
1778
1760
|
|
|
1779
1761
|
declare const TrackParamSchema: z.ZodObject<{
|
|
@@ -3468,7 +3450,6 @@ declare const Actions: {
|
|
|
3468
3450
|
readonly TENANT_UPDATE: "tenant.update";
|
|
3469
3451
|
readonly TENANT_VIEW_MEMBERS: "tenant.view_members";
|
|
3470
3452
|
readonly TENANT_UPDATE_MEMBERS: "tenant.update_members";
|
|
3471
|
-
readonly TENANT_UPDATE_REPORT_VIEWERS: "tenant.update_report_viewers";
|
|
3472
3453
|
readonly TENANT_VIEW_REPORT: "tenant.view_report";
|
|
3473
3454
|
readonly TENANT_VIEW_MINE: "tenant.view_mine";
|
|
3474
3455
|
readonly OFFER_LIST: "offer.list";
|
package/dist/index.js
CHANGED
|
@@ -4774,18 +4774,6 @@ var TenantAPI = class {
|
|
|
4774
4774
|
);
|
|
4775
4775
|
return data;
|
|
4776
4776
|
}
|
|
4777
|
-
async updateReportViewers(tenantId, reportViewerUpdate, context) {
|
|
4778
|
-
const endpointInfo = tenant_exports.Endpoints.UpdateReportViewers;
|
|
4779
|
-
const endpoint = endpointInfo.uri.replace(":tenantId", tenantId);
|
|
4780
|
-
const data = await this.clientHTTP.makeRequest(
|
|
4781
|
-
this.env,
|
|
4782
|
-
`${endpoint}`,
|
|
4783
|
-
endpointInfo.method,
|
|
4784
|
-
reportViewerUpdate,
|
|
4785
|
-
context
|
|
4786
|
-
);
|
|
4787
|
-
return data;
|
|
4788
|
-
}
|
|
4789
4777
|
async updateMembers(tenantId, memberUpdate, context) {
|
|
4790
4778
|
const endpointInfo = tenant_exports.Endpoints.UpdateMembers;
|
|
4791
4779
|
const endpoint = endpointInfo.uri.replace(":tenantId", tenantId);
|
|
@@ -6095,7 +6083,6 @@ var Actions = {
|
|
|
6095
6083
|
TENANT_UPDATE: "tenant.update",
|
|
6096
6084
|
TENANT_VIEW_MEMBERS: "tenant.view_members",
|
|
6097
6085
|
TENANT_UPDATE_MEMBERS: "tenant.update_members",
|
|
6098
|
-
TENANT_UPDATE_REPORT_VIEWERS: "tenant.update_report_viewers",
|
|
6099
6086
|
TENANT_VIEW_REPORT: "tenant.view_report",
|
|
6100
6087
|
TENANT_VIEW_MINE: "tenant.view_mine",
|
|
6101
6088
|
// — Offers —
|
|
@@ -6183,7 +6170,6 @@ var ActionCatalog = {
|
|
|
6183
6170
|
[Actions.TENANT_UPDATE]: { label: "Update any tenant", group: "Tenants" },
|
|
6184
6171
|
[Actions.TENANT_VIEW_MEMBERS]: { label: "View a tenant's members", group: "Tenants" },
|
|
6185
6172
|
[Actions.TENANT_UPDATE_MEMBERS]: { label: "Manage a tenant's members", group: "Tenants" },
|
|
6186
|
-
[Actions.TENANT_UPDATE_REPORT_VIEWERS]: { label: "Manage a tenant's report viewers", group: "Tenants" },
|
|
6187
6173
|
[Actions.TENANT_VIEW_REPORT]: { label: "View a tenant's report", group: "Tenants", scopeable: true },
|
|
6188
6174
|
[Actions.TENANT_VIEW_MINE]: { label: "View your own tenant", group: "Tenants" },
|
|
6189
6175
|
// Offers
|
|
@@ -6440,7 +6426,6 @@ __export(tenant_exports, {
|
|
|
6440
6426
|
MemberSchema: () => MemberSchema,
|
|
6441
6427
|
MemberUpdateSchema: () => MemberUpdateSchema,
|
|
6442
6428
|
PreferencesSchema: () => PreferencesSchema,
|
|
6443
|
-
ReportViewerUpdateSchema: () => ReportViewerUpdateSchema,
|
|
6444
6429
|
TenantSchema: () => TenantSchema,
|
|
6445
6430
|
TenantUpdateSchema: () => TenantUpdateSchema
|
|
6446
6431
|
});
|
|
@@ -6555,10 +6540,6 @@ var Action = /* @__PURE__ */ ((Action2) => {
|
|
|
6555
6540
|
Action2["REMOVE"] = "REMOVE";
|
|
6556
6541
|
return Action2;
|
|
6557
6542
|
})(Action || {});
|
|
6558
|
-
var ReportViewerUpdateSchema = external_exports.object({
|
|
6559
|
-
userId: external_exports.string(),
|
|
6560
|
-
action: external_exports.nativeEnum(Action)
|
|
6561
|
-
});
|
|
6562
6543
|
var MemberUpdateSchema = external_exports.object({
|
|
6563
6544
|
userIds: external_exports.array(external_exports.string()),
|
|
6564
6545
|
action: external_exports.nativeEnum(Action)
|
|
@@ -6598,10 +6579,6 @@ var Endpoints11 = {
|
|
|
6598
6579
|
uri: "/tenants/:tenantId/members",
|
|
6599
6580
|
method: "GET"
|
|
6600
6581
|
},
|
|
6601
|
-
UpdateReportViewers: {
|
|
6602
|
-
uri: "/tenants/:tenantId/report-viewers",
|
|
6603
|
-
method: "PUT"
|
|
6604
|
-
},
|
|
6605
6582
|
UpdateMembers: {
|
|
6606
6583
|
uri: "/tenants/:tenantId/members",
|
|
6607
6584
|
method: "PUT"
|