shred-api-client 2.3.7-rc.0 → 2.3.8
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 +57 -101
- package/dist/index.js +25 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -896,8 +896,6 @@ declare const PreferencesSchema: z.ZodObject<{
|
|
|
896
896
|
declare const TenantSchema: z.ZodObject<{
|
|
897
897
|
id: z.ZodString;
|
|
898
898
|
name: z.ZodString;
|
|
899
|
-
industry: z.ZodString;
|
|
900
|
-
description: z.ZodString;
|
|
901
899
|
isActive: z.ZodBoolean;
|
|
902
900
|
isSubscriptionActive: z.ZodBoolean;
|
|
903
901
|
preferences: z.ZodObject<{
|
|
@@ -1105,51 +1103,11 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1105
1103
|
subscriptionItemId: string;
|
|
1106
1104
|
} | undefined;
|
|
1107
1105
|
}>>>;
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
fileName: z.ZodString;
|
|
1111
|
-
extension: z.ZodString;
|
|
1112
|
-
fileSize: z.ZodNumber;
|
|
1113
|
-
assetUrl: z.ZodString;
|
|
1114
|
-
thumbnailUrl: z.ZodString;
|
|
1115
|
-
type: z.ZodString;
|
|
1116
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
1117
|
-
progress: z.ZodOptional<z.ZodNumber>;
|
|
1118
|
-
error: z.ZodOptional<z.ZodString>;
|
|
1119
|
-
authorId: z.ZodString;
|
|
1120
|
-
uploadedAt: z.ZodNumber;
|
|
1121
|
-
}, "strip", z.ZodTypeAny, {
|
|
1122
|
-
type: string;
|
|
1123
|
-
assetId: string;
|
|
1124
|
-
fileName: string;
|
|
1125
|
-
extension: string;
|
|
1126
|
-
fileSize: number;
|
|
1127
|
-
assetUrl: string;
|
|
1128
|
-
thumbnailUrl: string;
|
|
1129
|
-
authorId: string;
|
|
1130
|
-
uploadedAt: number;
|
|
1131
|
-
error?: string | undefined;
|
|
1132
|
-
duration?: number | undefined;
|
|
1133
|
-
progress?: number | undefined;
|
|
1134
|
-
}, {
|
|
1135
|
-
type: string;
|
|
1136
|
-
assetId: string;
|
|
1137
|
-
fileName: string;
|
|
1138
|
-
extension: string;
|
|
1139
|
-
fileSize: number;
|
|
1140
|
-
assetUrl: string;
|
|
1141
|
-
thumbnailUrl: string;
|
|
1142
|
-
authorId: string;
|
|
1143
|
-
uploadedAt: number;
|
|
1144
|
-
error?: string | undefined;
|
|
1145
|
-
duration?: number | undefined;
|
|
1146
|
-
progress?: number | undefined;
|
|
1147
|
-
}>, "many">>;
|
|
1106
|
+
totalSubscriptions: z.ZodOptional<z.ZodNumber>;
|
|
1107
|
+
totalUsers: z.ZodOptional<z.ZodNumber>;
|
|
1148
1108
|
}, "strip", z.ZodTypeAny, {
|
|
1149
1109
|
id: string;
|
|
1150
|
-
description: string;
|
|
1151
1110
|
name: string;
|
|
1152
|
-
industry: string;
|
|
1153
1111
|
isActive: boolean;
|
|
1154
1112
|
isSubscriptionActive: boolean;
|
|
1155
1113
|
preferences: {
|
|
@@ -1205,25 +1163,11 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1205
1163
|
subscriptionItemId: string;
|
|
1206
1164
|
} | undefined;
|
|
1207
1165
|
} | undefined;
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
assetId: string;
|
|
1211
|
-
fileName: string;
|
|
1212
|
-
extension: string;
|
|
1213
|
-
fileSize: number;
|
|
1214
|
-
assetUrl: string;
|
|
1215
|
-
thumbnailUrl: string;
|
|
1216
|
-
authorId: string;
|
|
1217
|
-
uploadedAt: number;
|
|
1218
|
-
error?: string | undefined;
|
|
1219
|
-
duration?: number | undefined;
|
|
1220
|
-
progress?: number | undefined;
|
|
1221
|
-
}[] | undefined;
|
|
1166
|
+
totalSubscriptions?: number | undefined;
|
|
1167
|
+
totalUsers?: number | undefined;
|
|
1222
1168
|
}, {
|
|
1223
1169
|
id: string;
|
|
1224
|
-
description: string;
|
|
1225
1170
|
name: string;
|
|
1226
|
-
industry: string;
|
|
1227
1171
|
isActive: boolean;
|
|
1228
1172
|
isSubscriptionActive: boolean;
|
|
1229
1173
|
preferences: {
|
|
@@ -1279,22 +1223,27 @@ declare const TenantSchema: z.ZodObject<{
|
|
|
1279
1223
|
subscriptionItemId: string;
|
|
1280
1224
|
} | undefined;
|
|
1281
1225
|
} | undefined;
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1226
|
+
totalSubscriptions?: number | undefined;
|
|
1227
|
+
totalUsers?: number | undefined;
|
|
1228
|
+
}>;
|
|
1229
|
+
declare const MemberSchema: z.ZodObject<{
|
|
1230
|
+
name: z.ZodString;
|
|
1231
|
+
email: z.ZodString;
|
|
1232
|
+
pictureUrl: z.ZodString;
|
|
1233
|
+
isActive: z.ZodBoolean;
|
|
1234
|
+
}, "strip", z.ZodTypeAny, {
|
|
1235
|
+
email: string;
|
|
1236
|
+
pictureUrl: string;
|
|
1237
|
+
name: string;
|
|
1238
|
+
isActive: boolean;
|
|
1239
|
+
}, {
|
|
1240
|
+
email: string;
|
|
1241
|
+
pictureUrl: string;
|
|
1242
|
+
name: string;
|
|
1243
|
+
isActive: boolean;
|
|
1296
1244
|
}>;
|
|
1297
1245
|
type Tenant = z.infer<typeof TenantSchema>;
|
|
1246
|
+
type Member = z.infer<typeof MemberSchema>;
|
|
1298
1247
|
type Preferences = z.infer<typeof PreferencesSchema>;
|
|
1299
1248
|
|
|
1300
1249
|
interface IAPI$7 {
|
|
@@ -1302,6 +1251,7 @@ interface IAPI$7 {
|
|
|
1302
1251
|
create: (tenant: Tenant, context: Context) => Promise<boolean>;
|
|
1303
1252
|
list: (context: Context) => Promise<Tenant[]>;
|
|
1304
1253
|
getTenant: (context: Context, tenantId?: string) => Promise<Tenant | null>;
|
|
1254
|
+
getMembers: (context: Context, tenantId: string) => Promise<Member[]>;
|
|
1305
1255
|
update: (tenantId: string, data: Pick<Tenant, "preferences">, context: Context) => Promise<boolean>;
|
|
1306
1256
|
}
|
|
1307
1257
|
declare const Endpoints$6: {
|
|
@@ -1329,13 +1279,19 @@ declare const Endpoints$6: {
|
|
|
1329
1279
|
uri: string;
|
|
1330
1280
|
method: string;
|
|
1331
1281
|
};
|
|
1282
|
+
Members: {
|
|
1283
|
+
uri: string;
|
|
1284
|
+
method: string;
|
|
1285
|
+
};
|
|
1332
1286
|
};
|
|
1333
1287
|
|
|
1288
|
+
type index$8_Member = Member;
|
|
1289
|
+
declare const index$8_MemberSchema: typeof MemberSchema;
|
|
1334
1290
|
type index$8_Preferences = Preferences;
|
|
1335
1291
|
declare const index$8_PreferencesSchema: typeof PreferencesSchema;
|
|
1336
1292
|
declare const index$8_TenantSchema: typeof TenantSchema;
|
|
1337
1293
|
declare namespace index$8 {
|
|
1338
|
-
export { Endpoints$6 as Endpoints, type Tenant as Entity, type IAPI$7 as IAPI, type index$8_Preferences as Preferences, index$8_PreferencesSchema as PreferencesSchema, index$8_TenantSchema as TenantSchema };
|
|
1294
|
+
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 };
|
|
1339
1295
|
}
|
|
1340
1296
|
|
|
1341
1297
|
declare const TrackParamSchema: z.ZodObject<{
|
|
@@ -1635,7 +1591,19 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
1635
1591
|
}[];
|
|
1636
1592
|
submitTimestamp: number;
|
|
1637
1593
|
tenantId?: string | undefined;
|
|
1594
|
+
editorId?: string | undefined;
|
|
1638
1595
|
thumbnailUrl?: string | undefined;
|
|
1596
|
+
finalVideoId?: string | undefined;
|
|
1597
|
+
feedback?: {
|
|
1598
|
+
criteria: {
|
|
1599
|
+
id: string;
|
|
1600
|
+
label: string;
|
|
1601
|
+
score: number;
|
|
1602
|
+
comment?: string | undefined;
|
|
1603
|
+
}[];
|
|
1604
|
+
comment?: string | undefined;
|
|
1605
|
+
} | undefined;
|
|
1606
|
+
captionSuggestion?: string | undefined;
|
|
1639
1607
|
assets?: {
|
|
1640
1608
|
type: string;
|
|
1641
1609
|
assetId: string;
|
|
@@ -1650,18 +1618,6 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
1650
1618
|
duration?: number | undefined;
|
|
1651
1619
|
progress?: number | undefined;
|
|
1652
1620
|
}[] | undefined;
|
|
1653
|
-
editorId?: string | undefined;
|
|
1654
|
-
finalVideoId?: string | undefined;
|
|
1655
|
-
feedback?: {
|
|
1656
|
-
criteria: {
|
|
1657
|
-
id: string;
|
|
1658
|
-
label: string;
|
|
1659
|
-
score: number;
|
|
1660
|
-
comment?: string | undefined;
|
|
1661
|
-
}[];
|
|
1662
|
-
comment?: string | undefined;
|
|
1663
|
-
} | undefined;
|
|
1664
|
-
captionSuggestion?: string | undefined;
|
|
1665
1621
|
isFree?: boolean | undefined;
|
|
1666
1622
|
}, {
|
|
1667
1623
|
id: string;
|
|
@@ -1682,7 +1638,19 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
1682
1638
|
}[];
|
|
1683
1639
|
submitTimestamp: number;
|
|
1684
1640
|
tenantId?: string | undefined;
|
|
1641
|
+
editorId?: string | undefined;
|
|
1685
1642
|
thumbnailUrl?: string | undefined;
|
|
1643
|
+
finalVideoId?: string | undefined;
|
|
1644
|
+
feedback?: {
|
|
1645
|
+
criteria: {
|
|
1646
|
+
id: string;
|
|
1647
|
+
label: string;
|
|
1648
|
+
score: number;
|
|
1649
|
+
comment?: string | undefined;
|
|
1650
|
+
}[];
|
|
1651
|
+
comment?: string | undefined;
|
|
1652
|
+
} | undefined;
|
|
1653
|
+
captionSuggestion?: string | undefined;
|
|
1686
1654
|
assets?: {
|
|
1687
1655
|
type: string;
|
|
1688
1656
|
assetId: string;
|
|
@@ -1697,18 +1665,6 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
1697
1665
|
duration?: number | undefined;
|
|
1698
1666
|
progress?: number | undefined;
|
|
1699
1667
|
}[] | undefined;
|
|
1700
|
-
editorId?: string | undefined;
|
|
1701
|
-
finalVideoId?: string | undefined;
|
|
1702
|
-
feedback?: {
|
|
1703
|
-
criteria: {
|
|
1704
|
-
id: string;
|
|
1705
|
-
label: string;
|
|
1706
|
-
score: number;
|
|
1707
|
-
comment?: string | undefined;
|
|
1708
|
-
}[];
|
|
1709
|
-
comment?: string | undefined;
|
|
1710
|
-
} | undefined;
|
|
1711
|
-
captionSuggestion?: string | undefined;
|
|
1712
1668
|
isFree?: boolean | undefined;
|
|
1713
1669
|
}>;
|
|
1714
1670
|
type ProjectCreation = Pick<Project, "title" | "instructions" | "captionStyle" | "assets">;
|
|
@@ -1909,8 +1865,8 @@ declare const GoalSchema: z.ZodObject<{
|
|
|
1909
1865
|
}, "strip", z.ZodTypeAny, {
|
|
1910
1866
|
id: string;
|
|
1911
1867
|
createdAt: number;
|
|
1912
|
-
progress: number;
|
|
1913
1868
|
editorId: string;
|
|
1869
|
+
progress: number;
|
|
1914
1870
|
target: number;
|
|
1915
1871
|
isoWeek: string;
|
|
1916
1872
|
dailyMilestones: {
|
|
@@ -1922,8 +1878,8 @@ declare const GoalSchema: z.ZodObject<{
|
|
|
1922
1878
|
}, {
|
|
1923
1879
|
id: string;
|
|
1924
1880
|
createdAt: number;
|
|
1925
|
-
progress: number;
|
|
1926
1881
|
editorId: string;
|
|
1882
|
+
progress: number;
|
|
1927
1883
|
target: number;
|
|
1928
1884
|
isoWeek: string;
|
|
1929
1885
|
dailyMilestones: {
|
package/dist/index.js
CHANGED
|
@@ -4661,6 +4661,18 @@ var TenantAPI = class {
|
|
|
4661
4661
|
);
|
|
4662
4662
|
return data;
|
|
4663
4663
|
}
|
|
4664
|
+
async getMembers(context, tenantId) {
|
|
4665
|
+
const endpointData = tenant_exports.Endpoints.Members;
|
|
4666
|
+
const uri = endpointData.uri.replace(":tenantId", tenantId);
|
|
4667
|
+
const data = await this.clientHTTP.makeRequest(
|
|
4668
|
+
this.env,
|
|
4669
|
+
uri,
|
|
4670
|
+
endpointData.method,
|
|
4671
|
+
null,
|
|
4672
|
+
context
|
|
4673
|
+
);
|
|
4674
|
+
return data;
|
|
4675
|
+
}
|
|
4664
4676
|
};
|
|
4665
4677
|
var Tenant_api_default = TenantAPI;
|
|
4666
4678
|
|
|
@@ -5795,6 +5807,7 @@ var Endpoints7 = {
|
|
|
5795
5807
|
var tenant_exports = {};
|
|
5796
5808
|
__export(tenant_exports, {
|
|
5797
5809
|
Endpoints: () => Endpoints8,
|
|
5810
|
+
MemberSchema: () => MemberSchema,
|
|
5798
5811
|
PreferencesSchema: () => PreferencesSchema,
|
|
5799
5812
|
TenantSchema: () => TenantSchema
|
|
5800
5813
|
});
|
|
@@ -5862,8 +5875,6 @@ var PreferencesSchema = external_exports.object({
|
|
|
5862
5875
|
var TenantSchema = external_exports.object({
|
|
5863
5876
|
id: external_exports.string(),
|
|
5864
5877
|
name: external_exports.string(),
|
|
5865
|
-
industry: external_exports.string(),
|
|
5866
|
-
description: external_exports.string(),
|
|
5867
5878
|
isActive: external_exports.boolean(),
|
|
5868
5879
|
isSubscriptionActive: external_exports.boolean(),
|
|
5869
5880
|
preferences: PreferencesSchema,
|
|
@@ -5877,7 +5888,14 @@ var TenantSchema = external_exports.object({
|
|
|
5877
5888
|
allowedProducts: external_exports.array(external_exports.string()).optional(),
|
|
5878
5889
|
useOwnScripts: external_exports.boolean().optional(),
|
|
5879
5890
|
subscription: external_exports.optional(external_exports.lazy(() => SubscriptionSchema)),
|
|
5880
|
-
|
|
5891
|
+
totalSubscriptions: external_exports.number().optional(),
|
|
5892
|
+
totalUsers: external_exports.number().optional()
|
|
5893
|
+
});
|
|
5894
|
+
var MemberSchema = external_exports.object({
|
|
5895
|
+
name: external_exports.string(),
|
|
5896
|
+
email: external_exports.string(),
|
|
5897
|
+
pictureUrl: external_exports.string(),
|
|
5898
|
+
isActive: external_exports.boolean()
|
|
5881
5899
|
});
|
|
5882
5900
|
|
|
5883
5901
|
// src/model/tenant/Tenant.api.ts
|
|
@@ -5905,6 +5923,10 @@ var Endpoints8 = {
|
|
|
5905
5923
|
ListAll: {
|
|
5906
5924
|
uri: "/tenants/list",
|
|
5907
5925
|
method: "GET"
|
|
5926
|
+
},
|
|
5927
|
+
Members: {
|
|
5928
|
+
uri: "/tenants/:tenantId/members",
|
|
5929
|
+
method: "GET"
|
|
5908
5930
|
}
|
|
5909
5931
|
};
|
|
5910
5932
|
|