shred-api-client 2.6.2-rc.0 → 2.6.2-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 +151 -2
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1540,7 +1540,154 @@ declare const ReportViewerUpdateSchema: z.ZodObject<{
|
|
|
1540
1540
|
userId: string;
|
|
1541
1541
|
action: Action;
|
|
1542
1542
|
}>;
|
|
1543
|
+
declare const TenantUpdateSchema: z.ZodObject<{
|
|
1544
|
+
preferences: z.ZodOptional<z.ZodObject<{
|
|
1545
|
+
iconUrl: z.ZodString;
|
|
1546
|
+
logoUrl: z.ZodString;
|
|
1547
|
+
primaryColor: z.ZodString;
|
|
1548
|
+
secondaryColor: z.ZodString;
|
|
1549
|
+
guidelinesUrl: z.ZodOptional<z.ZodString>;
|
|
1550
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
industry: z.ZodOptional<z.ZodString>;
|
|
1552
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1553
|
+
assetId: z.ZodString;
|
|
1554
|
+
fileName: z.ZodString;
|
|
1555
|
+
extension: z.ZodString;
|
|
1556
|
+
fileSize: z.ZodNumber;
|
|
1557
|
+
assetUrl: z.ZodString;
|
|
1558
|
+
thumbnailUrl: z.ZodString;
|
|
1559
|
+
type: z.ZodString;
|
|
1560
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1561
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1562
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1563
|
+
authorId: z.ZodString;
|
|
1564
|
+
uploadedAt: z.ZodNumber;
|
|
1565
|
+
}, "strip", z.ZodTypeAny, {
|
|
1566
|
+
type: string;
|
|
1567
|
+
assetId: string;
|
|
1568
|
+
fileName: string;
|
|
1569
|
+
extension: string;
|
|
1570
|
+
fileSize: number;
|
|
1571
|
+
assetUrl: string;
|
|
1572
|
+
thumbnailUrl: string;
|
|
1573
|
+
authorId: string;
|
|
1574
|
+
uploadedAt: number;
|
|
1575
|
+
error?: string | undefined;
|
|
1576
|
+
duration?: number | undefined;
|
|
1577
|
+
progress?: number | undefined;
|
|
1578
|
+
}, {
|
|
1579
|
+
type: string;
|
|
1580
|
+
assetId: string;
|
|
1581
|
+
fileName: string;
|
|
1582
|
+
extension: string;
|
|
1583
|
+
fileSize: number;
|
|
1584
|
+
assetUrl: string;
|
|
1585
|
+
thumbnailUrl: string;
|
|
1586
|
+
authorId: string;
|
|
1587
|
+
uploadedAt: number;
|
|
1588
|
+
error?: string | undefined;
|
|
1589
|
+
duration?: number | undefined;
|
|
1590
|
+
progress?: number | undefined;
|
|
1591
|
+
}>, "many">>;
|
|
1592
|
+
}, "strip", z.ZodTypeAny, {
|
|
1593
|
+
iconUrl: string;
|
|
1594
|
+
logoUrl: string;
|
|
1595
|
+
primaryColor: string;
|
|
1596
|
+
secondaryColor: string;
|
|
1597
|
+
description?: string | undefined;
|
|
1598
|
+
guidelinesUrl?: string | undefined;
|
|
1599
|
+
industry?: string | undefined;
|
|
1600
|
+
assets?: {
|
|
1601
|
+
type: string;
|
|
1602
|
+
assetId: string;
|
|
1603
|
+
fileName: string;
|
|
1604
|
+
extension: string;
|
|
1605
|
+
fileSize: number;
|
|
1606
|
+
assetUrl: string;
|
|
1607
|
+
thumbnailUrl: string;
|
|
1608
|
+
authorId: string;
|
|
1609
|
+
uploadedAt: number;
|
|
1610
|
+
error?: string | undefined;
|
|
1611
|
+
duration?: number | undefined;
|
|
1612
|
+
progress?: number | undefined;
|
|
1613
|
+
}[] | undefined;
|
|
1614
|
+
}, {
|
|
1615
|
+
iconUrl: string;
|
|
1616
|
+
logoUrl: string;
|
|
1617
|
+
primaryColor: string;
|
|
1618
|
+
secondaryColor: string;
|
|
1619
|
+
description?: string | undefined;
|
|
1620
|
+
guidelinesUrl?: string | undefined;
|
|
1621
|
+
industry?: string | undefined;
|
|
1622
|
+
assets?: {
|
|
1623
|
+
type: string;
|
|
1624
|
+
assetId: string;
|
|
1625
|
+
fileName: string;
|
|
1626
|
+
extension: string;
|
|
1627
|
+
fileSize: number;
|
|
1628
|
+
assetUrl: string;
|
|
1629
|
+
thumbnailUrl: string;
|
|
1630
|
+
authorId: string;
|
|
1631
|
+
uploadedAt: number;
|
|
1632
|
+
error?: string | undefined;
|
|
1633
|
+
duration?: number | undefined;
|
|
1634
|
+
progress?: number | undefined;
|
|
1635
|
+
}[] | undefined;
|
|
1636
|
+
}>>;
|
|
1637
|
+
reportUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1638
|
+
}, "strip", z.ZodTypeAny, {
|
|
1639
|
+
preferences?: {
|
|
1640
|
+
iconUrl: string;
|
|
1641
|
+
logoUrl: string;
|
|
1642
|
+
primaryColor: string;
|
|
1643
|
+
secondaryColor: string;
|
|
1644
|
+
description?: string | undefined;
|
|
1645
|
+
guidelinesUrl?: string | undefined;
|
|
1646
|
+
industry?: string | undefined;
|
|
1647
|
+
assets?: {
|
|
1648
|
+
type: string;
|
|
1649
|
+
assetId: string;
|
|
1650
|
+
fileName: string;
|
|
1651
|
+
extension: string;
|
|
1652
|
+
fileSize: number;
|
|
1653
|
+
assetUrl: string;
|
|
1654
|
+
thumbnailUrl: string;
|
|
1655
|
+
authorId: string;
|
|
1656
|
+
uploadedAt: number;
|
|
1657
|
+
error?: string | undefined;
|
|
1658
|
+
duration?: number | undefined;
|
|
1659
|
+
progress?: number | undefined;
|
|
1660
|
+
}[] | undefined;
|
|
1661
|
+
} | undefined;
|
|
1662
|
+
reportUrl?: string | undefined;
|
|
1663
|
+
}, {
|
|
1664
|
+
preferences?: {
|
|
1665
|
+
iconUrl: string;
|
|
1666
|
+
logoUrl: string;
|
|
1667
|
+
primaryColor: string;
|
|
1668
|
+
secondaryColor: string;
|
|
1669
|
+
description?: string | undefined;
|
|
1670
|
+
guidelinesUrl?: string | undefined;
|
|
1671
|
+
industry?: string | undefined;
|
|
1672
|
+
assets?: {
|
|
1673
|
+
type: string;
|
|
1674
|
+
assetId: string;
|
|
1675
|
+
fileName: string;
|
|
1676
|
+
extension: string;
|
|
1677
|
+
fileSize: number;
|
|
1678
|
+
assetUrl: string;
|
|
1679
|
+
thumbnailUrl: string;
|
|
1680
|
+
authorId: string;
|
|
1681
|
+
uploadedAt: number;
|
|
1682
|
+
error?: string | undefined;
|
|
1683
|
+
duration?: number | undefined;
|
|
1684
|
+
progress?: number | undefined;
|
|
1685
|
+
}[] | undefined;
|
|
1686
|
+
} | undefined;
|
|
1687
|
+
reportUrl?: string | undefined;
|
|
1688
|
+
}>;
|
|
1543
1689
|
type ReportViewerUpdate = z.infer<typeof ReportViewerUpdateSchema>;
|
|
1690
|
+
type TenantUpdate = z.infer<typeof TenantUpdateSchema>;
|
|
1544
1691
|
type Tenant = z.infer<typeof TenantSchema>;
|
|
1545
1692
|
type Member = z.infer<typeof MemberSchema>;
|
|
1546
1693
|
type Preferences = z.infer<typeof PreferencesSchema>;
|
|
@@ -1551,7 +1698,7 @@ interface IAPI$9 {
|
|
|
1551
1698
|
list: (context: Context) => Promise<Tenant[]>;
|
|
1552
1699
|
getTenant: (context: Context, tenantId?: string) => Promise<Tenant | null>;
|
|
1553
1700
|
getMembers: (context: Context, tenantId: string) => Promise<Member[]>;
|
|
1554
|
-
update: (tenantId: string, data:
|
|
1701
|
+
update: (tenantId: string, data: TenantUpdate, context: Context) => Promise<boolean>;
|
|
1555
1702
|
updateReportViewers: (tenantId: string, reportViewerUpdate: ReportViewerUpdate, context: Context) => Promise<boolean>;
|
|
1556
1703
|
}
|
|
1557
1704
|
declare const Endpoints$8: {
|
|
@@ -1598,8 +1745,10 @@ declare const index$a_PreferencesSchema: typeof PreferencesSchema;
|
|
|
1598
1745
|
type index$a_ReportViewerUpdate = ReportViewerUpdate;
|
|
1599
1746
|
declare const index$a_ReportViewerUpdateSchema: typeof ReportViewerUpdateSchema;
|
|
1600
1747
|
declare const index$a_TenantSchema: typeof TenantSchema;
|
|
1748
|
+
type index$a_TenantUpdate = TenantUpdate;
|
|
1749
|
+
declare const index$a_TenantUpdateSchema: typeof TenantUpdateSchema;
|
|
1601
1750
|
declare namespace index$a {
|
|
1602
|
-
export { index$a_Action as Action, Endpoints$8 as Endpoints, type Tenant as Entity, type IAPI$9 as IAPI, type index$a_Member as Member, index$a_MemberSchema as MemberSchema, type index$a_Preferences as Preferences, index$a_PreferencesSchema as PreferencesSchema, type index$a_ReportViewerUpdate as ReportViewerUpdate, index$a_ReportViewerUpdateSchema as ReportViewerUpdateSchema, index$a_TenantSchema as TenantSchema };
|
|
1751
|
+
export { index$a_Action as Action, Endpoints$8 as Endpoints, type Tenant as Entity, type IAPI$9 as IAPI, type index$a_Member as Member, index$a_MemberSchema as MemberSchema, type index$a_Preferences as Preferences, index$a_PreferencesSchema as PreferencesSchema, type index$a_ReportViewerUpdate as ReportViewerUpdate, index$a_ReportViewerUpdateSchema as ReportViewerUpdateSchema, index$a_TenantSchema as TenantSchema, type index$a_TenantUpdate as TenantUpdate, index$a_TenantUpdateSchema as TenantUpdateSchema };
|
|
1603
1752
|
}
|
|
1604
1753
|
|
|
1605
1754
|
declare const TrackParamSchema: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -4775,8 +4775,7 @@ var TenantAPI = class {
|
|
|
4775
4775
|
}
|
|
4776
4776
|
async updateReportViewers(tenantId, reportViewerUpdate, context) {
|
|
4777
4777
|
const endpointInfo = tenant_exports.Endpoints.UpdateReportViewers;
|
|
4778
|
-
const
|
|
4779
|
-
const endpoint = endpointData.uri.replace(":tenantId", tenantId);
|
|
4778
|
+
const endpoint = endpointInfo.uri.replace(":tenantId", tenantId);
|
|
4780
4779
|
const data = await this.clientHTTP.makeRequest(
|
|
4781
4780
|
this.env,
|
|
4782
4781
|
`${endpoint}`,
|
|
@@ -6076,7 +6075,8 @@ __export(tenant_exports, {
|
|
|
6076
6075
|
MemberSchema: () => MemberSchema,
|
|
6077
6076
|
PreferencesSchema: () => PreferencesSchema,
|
|
6078
6077
|
ReportViewerUpdateSchema: () => ReportViewerUpdateSchema,
|
|
6079
|
-
TenantSchema: () => TenantSchema
|
|
6078
|
+
TenantSchema: () => TenantSchema,
|
|
6079
|
+
TenantUpdateSchema: () => TenantUpdateSchema
|
|
6080
6080
|
});
|
|
6081
6081
|
|
|
6082
6082
|
// src/model/subscription/Subscription.schema.ts
|
|
@@ -6173,7 +6173,7 @@ var TenantSchema = external_exports.object({
|
|
|
6173
6173
|
subscription: external_exports.optional(external_exports.lazy(() => SubscriptionSchema)),
|
|
6174
6174
|
totalSubscriptions: external_exports.number().optional(),
|
|
6175
6175
|
totalUsers: external_exports.number().optional(),
|
|
6176
|
-
reportUrl: external_exports.string().optional(),
|
|
6176
|
+
reportUrl: external_exports.string().url().optional(),
|
|
6177
6177
|
reportViewers: external_exports.array(external_exports.string()).optional()
|
|
6178
6178
|
});
|
|
6179
6179
|
var MemberSchema = external_exports.object({
|
|
@@ -6191,6 +6191,10 @@ var ReportViewerUpdateSchema = external_exports.object({
|
|
|
6191
6191
|
userId: external_exports.string(),
|
|
6192
6192
|
action: external_exports.nativeEnum(Action)
|
|
6193
6193
|
});
|
|
6194
|
+
var TenantUpdateSchema = TenantSchema.pick({
|
|
6195
|
+
reportUrl: true,
|
|
6196
|
+
preferences: true
|
|
6197
|
+
}).partial();
|
|
6194
6198
|
|
|
6195
6199
|
// src/model/tenant/Tenant.api.ts
|
|
6196
6200
|
var Endpoints10 = {
|