shred-api-client 2.1.3 → 2.1.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.mts +141 -1444
- package/dist/index.d.ts +141 -1444
- package/dist/index.js +28 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -136,7 +136,7 @@ var NotificationItemSchema = z.object({
|
|
|
136
136
|
openedAt: z.number().optional(),
|
|
137
137
|
deletedAt: z.number().optional(),
|
|
138
138
|
cta: z.object({ label: z.string(), url: z.string().url() }).optional(),
|
|
139
|
-
metadata: z.record(z.union([z.string(), z.number()])),
|
|
139
|
+
metadata: z.record(z.string(), z.union([z.string(), z.number()])),
|
|
140
140
|
error: z.string().optional()
|
|
141
141
|
});
|
|
142
142
|
var NotificationDetailSchema = NotificationItemSchema.pick({
|
|
@@ -147,7 +147,7 @@ var NotificationDetailSchema = NotificationItemSchema.pick({
|
|
|
147
147
|
});
|
|
148
148
|
var CriteriaSchema = z.object({
|
|
149
149
|
type: z.nativeEnum(CriteriaType),
|
|
150
|
-
params: z.record(z.any())
|
|
150
|
+
params: z.record(z.string(), z.any())
|
|
151
151
|
});
|
|
152
152
|
var HistorySchema = z.object({
|
|
153
153
|
batchId: z.string(),
|
|
@@ -168,9 +168,9 @@ var HistorySchema = z.object({
|
|
|
168
168
|
executionTimeDuration: z.number().optional()
|
|
169
169
|
});
|
|
170
170
|
var RecurrenceRuleSchema = z.object({
|
|
171
|
-
frequency: z.
|
|
171
|
+
frequency: z.enum(Frequency),
|
|
172
172
|
interval: z.number(),
|
|
173
|
-
weekDays: z.array(z.
|
|
173
|
+
weekDays: z.array(z.enum(WeekDay)).optional(),
|
|
174
174
|
dayOfMonth: z.number().optional(),
|
|
175
175
|
endDate: z.string().optional(),
|
|
176
176
|
ocurrences: z.number().optional()
|
|
@@ -179,10 +179,10 @@ var TriggerSchema = z.object({
|
|
|
179
179
|
id: z.string(),
|
|
180
180
|
title: z.string(),
|
|
181
181
|
description: z.string(),
|
|
182
|
-
transportType: z.array(z.
|
|
182
|
+
transportType: z.array(z.enum(TransportType)),
|
|
183
183
|
notification: NotificationDetailSchema,
|
|
184
184
|
history: z.array(HistorySchema).optional(),
|
|
185
|
-
status: z.
|
|
185
|
+
status: z.enum(Status),
|
|
186
186
|
recurrence: RecurrenceRuleSchema.optional(),
|
|
187
187
|
timezone: z.string().nullable().optional(),
|
|
188
188
|
tenantIds: z.array(z.string()).optional(),
|
|
@@ -837,6 +837,7 @@ var project_exports = {};
|
|
|
837
837
|
__export(project_exports, {
|
|
838
838
|
CaptionStyle: () => CaptionStyle,
|
|
839
839
|
Endpoints: () => Endpoints3,
|
|
840
|
+
FeedbackSchema: () => FeedbackSchema,
|
|
840
841
|
ProjectSchema: () => ProjectSchema,
|
|
841
842
|
Status: () => Status2,
|
|
842
843
|
Styles: () => Styles,
|
|
@@ -889,8 +890,8 @@ var CaptionStyle = /* @__PURE__ */ ((CaptionStyle2) => {
|
|
|
889
890
|
CaptionStyle2[CaptionStyle2["HOME_HIGHLIGHT"] = 4] = "HOME_HIGHLIGHT";
|
|
890
891
|
return CaptionStyle2;
|
|
891
892
|
})(CaptionStyle || {});
|
|
892
|
-
var StatusSchema = z4.
|
|
893
|
-
var CaptionStyleStatus = z4.
|
|
893
|
+
var StatusSchema = z4.enum(Status2);
|
|
894
|
+
var CaptionStyleStatus = z4.enum(CaptionStyle);
|
|
894
895
|
var Styles = [
|
|
895
896
|
{ value: 1 /* ONE_LINE */, label: "One Line" },
|
|
896
897
|
{ value: 2 /* ONE_LINE_EMOJIS */, label: "One Line + Emojis" },
|
|
@@ -899,31 +900,43 @@ var Styles = [
|
|
|
899
900
|
{ value: 4 /* HOME_HIGHLIGHT */, label: "Home Tour" }
|
|
900
901
|
];
|
|
901
902
|
var TimelineItemSchema = z4.object({
|
|
902
|
-
status: z4.
|
|
903
|
+
status: z4.enum(Status2),
|
|
903
904
|
title: z4.string(),
|
|
904
905
|
description: z4.string(),
|
|
905
906
|
timestamp: z4.number(),
|
|
906
|
-
metadata: z4.
|
|
907
|
+
metadata: z4.any()
|
|
908
|
+
});
|
|
909
|
+
var FeedbackSchema = z4.object({
|
|
910
|
+
criteria: z4.array(
|
|
911
|
+
z4.object({
|
|
912
|
+
id: z4.string(),
|
|
913
|
+
label: z4.string(),
|
|
914
|
+
score: z4.number().min(0).max(10),
|
|
915
|
+
comment: z4.string().optional()
|
|
916
|
+
})
|
|
917
|
+
),
|
|
918
|
+
comment: z4.string().optional()
|
|
907
919
|
});
|
|
908
920
|
var ProjectSchema = z4.object({
|
|
909
921
|
id: z4.string(),
|
|
910
922
|
title: z4.string(),
|
|
911
923
|
instructions: z4.string(),
|
|
912
924
|
submitMonth: z4.string(),
|
|
913
|
-
captionStyle: z4.
|
|
925
|
+
captionStyle: z4.enum(CaptionStyle),
|
|
914
926
|
finalVideoId: z4.string().optional(),
|
|
915
927
|
thumbnailUrl: z4.string().optional(),
|
|
916
928
|
modified: z4.number(),
|
|
917
929
|
captionSuggestion: z4.string().optional(),
|
|
918
930
|
editorId: z4.string().optional(),
|
|
919
931
|
userId: z4.string(),
|
|
932
|
+
feedback: FeedbackSchema.optional(),
|
|
920
933
|
assets: z4.array(AssetSchema).optional(),
|
|
921
934
|
expirationTimestamp: z4.number(),
|
|
922
935
|
isFree: z4.boolean().optional(),
|
|
923
936
|
timeline: z4.array(TimelineItemSchema),
|
|
924
937
|
submitTimestamp: z4.number(),
|
|
925
938
|
tenantId: z4.string().optional(),
|
|
926
|
-
status: z4.
|
|
939
|
+
status: z4.enum(Status2)
|
|
927
940
|
});
|
|
928
941
|
|
|
929
942
|
// src/model/project/Project.api.ts
|
|
@@ -1496,13 +1509,13 @@ var Type = /* @__PURE__ */ ((Type2) => {
|
|
|
1496
1509
|
Type2[Type2["TENANT_SUBSCRIPTION"] = 1] = "TENANT_SUBSCRIPTION";
|
|
1497
1510
|
return Type2;
|
|
1498
1511
|
})(Type || {});
|
|
1499
|
-
var SubscriptionTypeSchema = z8.
|
|
1512
|
+
var SubscriptionTypeSchema = z8.enum(Type);
|
|
1500
1513
|
var PlanSchema = z8.object({
|
|
1501
1514
|
id: z8.string(),
|
|
1502
1515
|
currency: z8.string(),
|
|
1503
1516
|
price: z8.number(),
|
|
1504
1517
|
interval: z8.string(),
|
|
1505
|
-
metadata: z8.record(z8.string()),
|
|
1518
|
+
metadata: z8.record(z8.string(), z8.string()),
|
|
1506
1519
|
subscriptionItemId: z8.string()
|
|
1507
1520
|
});
|
|
1508
1521
|
var DescriptionSchema = z8.object({
|
|
@@ -1538,7 +1551,7 @@ var SubscriptionSchema = z8.object({
|
|
|
1538
1551
|
currentPeriodEnd: z8.number().optional(),
|
|
1539
1552
|
paymentMethodId: z8.string().optional(),
|
|
1540
1553
|
product: ProductSchema,
|
|
1541
|
-
type: z8.
|
|
1554
|
+
type: z8.enum(Type).optional(),
|
|
1542
1555
|
plan: PlanSchema.optional()
|
|
1543
1556
|
});
|
|
1544
1557
|
|