shred-api-client 2.6.2-rc.0 → 2.6.2-rc.2
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 +153 -25
- package/dist/index.js +8 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1526,21 +1526,156 @@ declare const MemberSchema: z.ZodObject<{
|
|
|
1526
1526
|
name: string;
|
|
1527
1527
|
isActive: boolean;
|
|
1528
1528
|
}>;
|
|
1529
|
-
declare
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1529
|
+
declare const TenantUpdateSchema: z.ZodObject<{
|
|
1530
|
+
preferences: z.ZodOptional<z.ZodObject<{
|
|
1531
|
+
iconUrl: z.ZodString;
|
|
1532
|
+
logoUrl: z.ZodString;
|
|
1533
|
+
primaryColor: z.ZodString;
|
|
1534
|
+
secondaryColor: z.ZodString;
|
|
1535
|
+
guidelinesUrl: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
industry: z.ZodOptional<z.ZodString>;
|
|
1538
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1539
|
+
assetId: z.ZodString;
|
|
1540
|
+
fileName: z.ZodString;
|
|
1541
|
+
extension: z.ZodString;
|
|
1542
|
+
fileSize: z.ZodNumber;
|
|
1543
|
+
assetUrl: z.ZodString;
|
|
1544
|
+
thumbnailUrl: z.ZodString;
|
|
1545
|
+
type: z.ZodString;
|
|
1546
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1547
|
+
progress: z.ZodOptional<z.ZodNumber>;
|
|
1548
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1549
|
+
authorId: z.ZodString;
|
|
1550
|
+
uploadedAt: z.ZodNumber;
|
|
1551
|
+
}, "strip", z.ZodTypeAny, {
|
|
1552
|
+
type: string;
|
|
1553
|
+
assetId: string;
|
|
1554
|
+
fileName: string;
|
|
1555
|
+
extension: string;
|
|
1556
|
+
fileSize: number;
|
|
1557
|
+
assetUrl: string;
|
|
1558
|
+
thumbnailUrl: string;
|
|
1559
|
+
authorId: string;
|
|
1560
|
+
uploadedAt: number;
|
|
1561
|
+
error?: string | undefined;
|
|
1562
|
+
duration?: number | undefined;
|
|
1563
|
+
progress?: number | undefined;
|
|
1564
|
+
}, {
|
|
1565
|
+
type: string;
|
|
1566
|
+
assetId: string;
|
|
1567
|
+
fileName: string;
|
|
1568
|
+
extension: string;
|
|
1569
|
+
fileSize: number;
|
|
1570
|
+
assetUrl: string;
|
|
1571
|
+
thumbnailUrl: string;
|
|
1572
|
+
authorId: string;
|
|
1573
|
+
uploadedAt: number;
|
|
1574
|
+
error?: string | undefined;
|
|
1575
|
+
duration?: number | undefined;
|
|
1576
|
+
progress?: number | undefined;
|
|
1577
|
+
}>, "many">>;
|
|
1578
|
+
}, "strip", z.ZodTypeAny, {
|
|
1579
|
+
iconUrl: string;
|
|
1580
|
+
logoUrl: string;
|
|
1581
|
+
primaryColor: string;
|
|
1582
|
+
secondaryColor: string;
|
|
1583
|
+
description?: string | undefined;
|
|
1584
|
+
guidelinesUrl?: string | undefined;
|
|
1585
|
+
industry?: string | undefined;
|
|
1586
|
+
assets?: {
|
|
1587
|
+
type: string;
|
|
1588
|
+
assetId: string;
|
|
1589
|
+
fileName: string;
|
|
1590
|
+
extension: string;
|
|
1591
|
+
fileSize: number;
|
|
1592
|
+
assetUrl: string;
|
|
1593
|
+
thumbnailUrl: string;
|
|
1594
|
+
authorId: string;
|
|
1595
|
+
uploadedAt: number;
|
|
1596
|
+
error?: string | undefined;
|
|
1597
|
+
duration?: number | undefined;
|
|
1598
|
+
progress?: number | undefined;
|
|
1599
|
+
}[] | undefined;
|
|
1600
|
+
}, {
|
|
1601
|
+
iconUrl: string;
|
|
1602
|
+
logoUrl: string;
|
|
1603
|
+
primaryColor: string;
|
|
1604
|
+
secondaryColor: string;
|
|
1605
|
+
description?: string | undefined;
|
|
1606
|
+
guidelinesUrl?: string | undefined;
|
|
1607
|
+
industry?: string | undefined;
|
|
1608
|
+
assets?: {
|
|
1609
|
+
type: string;
|
|
1610
|
+
assetId: string;
|
|
1611
|
+
fileName: string;
|
|
1612
|
+
extension: string;
|
|
1613
|
+
fileSize: number;
|
|
1614
|
+
assetUrl: string;
|
|
1615
|
+
thumbnailUrl: string;
|
|
1616
|
+
authorId: string;
|
|
1617
|
+
uploadedAt: number;
|
|
1618
|
+
error?: string | undefined;
|
|
1619
|
+
duration?: number | undefined;
|
|
1620
|
+
progress?: number | undefined;
|
|
1621
|
+
}[] | undefined;
|
|
1622
|
+
}>>;
|
|
1623
|
+
reportUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1624
|
+
reportViewers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1536
1625
|
}, "strip", z.ZodTypeAny, {
|
|
1537
|
-
|
|
1538
|
-
|
|
1626
|
+
preferences?: {
|
|
1627
|
+
iconUrl: string;
|
|
1628
|
+
logoUrl: string;
|
|
1629
|
+
primaryColor: string;
|
|
1630
|
+
secondaryColor: string;
|
|
1631
|
+
description?: string | undefined;
|
|
1632
|
+
guidelinesUrl?: string | undefined;
|
|
1633
|
+
industry?: string | undefined;
|
|
1634
|
+
assets?: {
|
|
1635
|
+
type: string;
|
|
1636
|
+
assetId: string;
|
|
1637
|
+
fileName: string;
|
|
1638
|
+
extension: string;
|
|
1639
|
+
fileSize: number;
|
|
1640
|
+
assetUrl: string;
|
|
1641
|
+
thumbnailUrl: string;
|
|
1642
|
+
authorId: string;
|
|
1643
|
+
uploadedAt: number;
|
|
1644
|
+
error?: string | undefined;
|
|
1645
|
+
duration?: number | undefined;
|
|
1646
|
+
progress?: number | undefined;
|
|
1647
|
+
}[] | undefined;
|
|
1648
|
+
} | undefined;
|
|
1649
|
+
reportUrl?: string | undefined;
|
|
1650
|
+
reportViewers?: string[] | undefined;
|
|
1539
1651
|
}, {
|
|
1540
|
-
|
|
1541
|
-
|
|
1652
|
+
preferences?: {
|
|
1653
|
+
iconUrl: string;
|
|
1654
|
+
logoUrl: string;
|
|
1655
|
+
primaryColor: string;
|
|
1656
|
+
secondaryColor: string;
|
|
1657
|
+
description?: string | undefined;
|
|
1658
|
+
guidelinesUrl?: string | undefined;
|
|
1659
|
+
industry?: string | undefined;
|
|
1660
|
+
assets?: {
|
|
1661
|
+
type: string;
|
|
1662
|
+
assetId: string;
|
|
1663
|
+
fileName: string;
|
|
1664
|
+
extension: string;
|
|
1665
|
+
fileSize: number;
|
|
1666
|
+
assetUrl: string;
|
|
1667
|
+
thumbnailUrl: string;
|
|
1668
|
+
authorId: string;
|
|
1669
|
+
uploadedAt: number;
|
|
1670
|
+
error?: string | undefined;
|
|
1671
|
+
duration?: number | undefined;
|
|
1672
|
+
progress?: number | undefined;
|
|
1673
|
+
}[] | undefined;
|
|
1674
|
+
} | undefined;
|
|
1675
|
+
reportUrl?: string | undefined;
|
|
1676
|
+
reportViewers?: string[] | undefined;
|
|
1542
1677
|
}>;
|
|
1543
|
-
type
|
|
1678
|
+
type TenantUpdate = z.infer<typeof TenantUpdateSchema>;
|
|
1544
1679
|
type Tenant = z.infer<typeof TenantSchema>;
|
|
1545
1680
|
type Member = z.infer<typeof MemberSchema>;
|
|
1546
1681
|
type Preferences = z.infer<typeof PreferencesSchema>;
|
|
@@ -1551,8 +1686,7 @@ interface IAPI$9 {
|
|
|
1551
1686
|
list: (context: Context) => Promise<Tenant[]>;
|
|
1552
1687
|
getTenant: (context: Context, tenantId?: string) => Promise<Tenant | null>;
|
|
1553
1688
|
getMembers: (context: Context, tenantId: string) => Promise<Member[]>;
|
|
1554
|
-
update: (tenantId: string, data:
|
|
1555
|
-
updateReportViewers: (tenantId: string, reportViewerUpdate: ReportViewerUpdate, context: Context) => Promise<boolean>;
|
|
1689
|
+
update: (tenantId: string, data: TenantUpdate, context: Context) => Promise<boolean>;
|
|
1556
1690
|
}
|
|
1557
1691
|
declare const Endpoints$8: {
|
|
1558
1692
|
GetByInviteCode: {
|
|
@@ -1583,23 +1717,17 @@ declare const Endpoints$8: {
|
|
|
1583
1717
|
uri: string;
|
|
1584
1718
|
method: string;
|
|
1585
1719
|
};
|
|
1586
|
-
UpdateReportViewers: {
|
|
1587
|
-
uri: string;
|
|
1588
|
-
method: string;
|
|
1589
|
-
};
|
|
1590
1720
|
};
|
|
1591
1721
|
|
|
1592
|
-
type index$a_Action = Action;
|
|
1593
|
-
declare const index$a_Action: typeof Action;
|
|
1594
1722
|
type index$a_Member = Member;
|
|
1595
1723
|
declare const index$a_MemberSchema: typeof MemberSchema;
|
|
1596
1724
|
type index$a_Preferences = Preferences;
|
|
1597
1725
|
declare const index$a_PreferencesSchema: typeof PreferencesSchema;
|
|
1598
|
-
type index$a_ReportViewerUpdate = ReportViewerUpdate;
|
|
1599
|
-
declare const index$a_ReportViewerUpdateSchema: typeof ReportViewerUpdateSchema;
|
|
1600
1726
|
declare const index$a_TenantSchema: typeof TenantSchema;
|
|
1727
|
+
type index$a_TenantUpdate = TenantUpdate;
|
|
1728
|
+
declare const index$a_TenantUpdateSchema: typeof TenantUpdateSchema;
|
|
1601
1729
|
declare namespace index$a {
|
|
1602
|
-
export {
|
|
1730
|
+
export { 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, index$a_TenantSchema as TenantSchema, type index$a_TenantUpdate as TenantUpdate, index$a_TenantUpdateSchema as TenantUpdateSchema };
|
|
1603
1731
|
}
|
|
1604
1732
|
|
|
1605
1733
|
declare const TrackParamSchema: z.ZodObject<{
|
|
@@ -1628,16 +1756,16 @@ declare const TrackSchema: z.ZodObject<{
|
|
|
1628
1756
|
}>, "many">>;
|
|
1629
1757
|
}, "strip", z.ZodTypeAny, {
|
|
1630
1758
|
label: string;
|
|
1631
|
-
action: string;
|
|
1632
1759
|
category: string;
|
|
1760
|
+
action: string;
|
|
1633
1761
|
params?: {
|
|
1634
1762
|
value: string | number;
|
|
1635
1763
|
name: string;
|
|
1636
1764
|
}[] | undefined;
|
|
1637
1765
|
}, {
|
|
1638
1766
|
label: string;
|
|
1639
|
-
action: string;
|
|
1640
1767
|
category: string;
|
|
1768
|
+
action: string;
|
|
1641
1769
|
params?: {
|
|
1642
1770
|
value: string | number;
|
|
1643
1771
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -4773,19 +4773,6 @@ var TenantAPI = class {
|
|
|
4773
4773
|
);
|
|
4774
4774
|
return data;
|
|
4775
4775
|
}
|
|
4776
|
-
async updateReportViewers(tenantId, reportViewerUpdate, context) {
|
|
4777
|
-
const endpointInfo = tenant_exports.Endpoints.UpdateReportViewers;
|
|
4778
|
-
const endpointData = tenant_exports.Endpoints.UpdateReportViewers;
|
|
4779
|
-
const endpoint = endpointData.uri.replace(":tenantId", tenantId);
|
|
4780
|
-
const data = await this.clientHTTP.makeRequest(
|
|
4781
|
-
this.env,
|
|
4782
|
-
`${endpoint}`,
|
|
4783
|
-
endpointInfo.method,
|
|
4784
|
-
{ data: reportViewerUpdate, context },
|
|
4785
|
-
context
|
|
4786
|
-
);
|
|
4787
|
-
return data;
|
|
4788
|
-
}
|
|
4789
4776
|
};
|
|
4790
4777
|
var Tenant_api_default = TenantAPI;
|
|
4791
4778
|
|
|
@@ -6071,12 +6058,11 @@ var Endpoints9 = {
|
|
|
6071
6058
|
// src/model/tenant/index.ts
|
|
6072
6059
|
var tenant_exports = {};
|
|
6073
6060
|
__export(tenant_exports, {
|
|
6074
|
-
Action: () => Action,
|
|
6075
6061
|
Endpoints: () => Endpoints10,
|
|
6076
6062
|
MemberSchema: () => MemberSchema,
|
|
6077
6063
|
PreferencesSchema: () => PreferencesSchema,
|
|
6078
|
-
|
|
6079
|
-
|
|
6064
|
+
TenantSchema: () => TenantSchema,
|
|
6065
|
+
TenantUpdateSchema: () => TenantUpdateSchema
|
|
6080
6066
|
});
|
|
6081
6067
|
|
|
6082
6068
|
// src/model/subscription/Subscription.schema.ts
|
|
@@ -6173,7 +6159,7 @@ var TenantSchema = external_exports.object({
|
|
|
6173
6159
|
subscription: external_exports.optional(external_exports.lazy(() => SubscriptionSchema)),
|
|
6174
6160
|
totalSubscriptions: external_exports.number().optional(),
|
|
6175
6161
|
totalUsers: external_exports.number().optional(),
|
|
6176
|
-
reportUrl: external_exports.string().optional(),
|
|
6162
|
+
reportUrl: external_exports.string().url().optional(),
|
|
6177
6163
|
reportViewers: external_exports.array(external_exports.string()).optional()
|
|
6178
6164
|
});
|
|
6179
6165
|
var MemberSchema = external_exports.object({
|
|
@@ -6182,15 +6168,11 @@ var MemberSchema = external_exports.object({
|
|
|
6182
6168
|
pictureUrl: external_exports.string(),
|
|
6183
6169
|
isActive: external_exports.boolean()
|
|
6184
6170
|
});
|
|
6185
|
-
var
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
})(
|
|
6190
|
-
var ReportViewerUpdateSchema = external_exports.object({
|
|
6191
|
-
userId: external_exports.string(),
|
|
6192
|
-
action: external_exports.nativeEnum(Action)
|
|
6193
|
-
});
|
|
6171
|
+
var TenantUpdateSchema = TenantSchema.pick({
|
|
6172
|
+
reportUrl: true,
|
|
6173
|
+
reportViewers: true,
|
|
6174
|
+
preferences: true
|
|
6175
|
+
}).partial();
|
|
6194
6176
|
|
|
6195
6177
|
// src/model/tenant/Tenant.api.ts
|
|
6196
6178
|
var Endpoints10 = {
|
|
@@ -6221,10 +6203,6 @@ var Endpoints10 = {
|
|
|
6221
6203
|
Members: {
|
|
6222
6204
|
uri: "/tenants/:tenantId/members",
|
|
6223
6205
|
method: "GET"
|
|
6224
|
-
},
|
|
6225
|
-
UpdateReportViewers: {
|
|
6226
|
-
uri: "/tenants/:tenantId/report-viewers",
|
|
6227
|
-
method: "PUT"
|
|
6228
6206
|
}
|
|
6229
6207
|
};
|
|
6230
6208
|
|