shred-api-client 2.1.5 → 2.2.0
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 +1493 -137
- package/dist/index.d.ts +1493 -137
- package/dist/index.js +16 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -17
- 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.
|
|
139
|
+
metadata: z.record(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.
|
|
150
|
+
params: z.record(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.nativeEnum(Frequency),
|
|
172
172
|
interval: z.number(),
|
|
173
|
-
weekDays: z.array(z.
|
|
173
|
+
weekDays: z.array(z.nativeEnum(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.nativeEnum(TransportType)),
|
|
183
183
|
notification: NotificationDetailSchema,
|
|
184
184
|
history: z.array(HistorySchema).optional(),
|
|
185
|
-
status: z.
|
|
185
|
+
status: z.nativeEnum(Status),
|
|
186
186
|
recurrence: RecurrenceRuleSchema.optional(),
|
|
187
187
|
timezone: z.string().nullable().optional(),
|
|
188
188
|
tenantIds: z.array(z.string()).optional(),
|
|
@@ -837,7 +837,6 @@ var project_exports = {};
|
|
|
837
837
|
__export(project_exports, {
|
|
838
838
|
CaptionStyle: () => CaptionStyle,
|
|
839
839
|
Endpoints: () => Endpoints3,
|
|
840
|
-
FeedbackSchema: () => FeedbackSchema,
|
|
841
840
|
ProjectSchema: () => ProjectSchema,
|
|
842
841
|
Status: () => Status2,
|
|
843
842
|
Styles: () => Styles,
|
|
@@ -890,8 +889,8 @@ var CaptionStyle = /* @__PURE__ */ ((CaptionStyle2) => {
|
|
|
890
889
|
CaptionStyle2[CaptionStyle2["HOME_HIGHLIGHT"] = 4] = "HOME_HIGHLIGHT";
|
|
891
890
|
return CaptionStyle2;
|
|
892
891
|
})(CaptionStyle || {});
|
|
893
|
-
var StatusSchema = z4.
|
|
894
|
-
var CaptionStyleStatus = z4.
|
|
892
|
+
var StatusSchema = z4.nativeEnum(Status2);
|
|
893
|
+
var CaptionStyleStatus = z4.nativeEnum(CaptionStyle);
|
|
895
894
|
var Styles = [
|
|
896
895
|
{ value: 1 /* ONE_LINE */, label: "One Line" },
|
|
897
896
|
{ value: 2 /* ONE_LINE_EMOJIS */, label: "One Line + Emojis" },
|
|
@@ -900,11 +899,11 @@ var Styles = [
|
|
|
900
899
|
{ value: 4 /* HOME_HIGHLIGHT */, label: "Home Tour" }
|
|
901
900
|
];
|
|
902
901
|
var TimelineItemSchema = z4.object({
|
|
903
|
-
status: z4.
|
|
902
|
+
status: z4.nativeEnum(Status2),
|
|
904
903
|
title: z4.string(),
|
|
905
904
|
description: z4.string(),
|
|
906
905
|
timestamp: z4.number(),
|
|
907
|
-
metadata: z4.any()
|
|
906
|
+
metadata: z4.record(z4.any())
|
|
908
907
|
});
|
|
909
908
|
var FeedbackSchema = z4.object({
|
|
910
909
|
criteria: z4.array(
|
|
@@ -922,21 +921,21 @@ var ProjectSchema = z4.object({
|
|
|
922
921
|
title: z4.string(),
|
|
923
922
|
instructions: z4.string(),
|
|
924
923
|
submitMonth: z4.string(),
|
|
925
|
-
captionStyle: z4.
|
|
924
|
+
captionStyle: z4.nativeEnum(CaptionStyle),
|
|
926
925
|
finalVideoId: z4.string().optional(),
|
|
927
926
|
thumbnailUrl: z4.string().optional(),
|
|
928
927
|
modified: z4.number(),
|
|
928
|
+
feedback: FeedbackSchema.optional(),
|
|
929
929
|
captionSuggestion: z4.string().optional(),
|
|
930
930
|
editorId: z4.string().optional(),
|
|
931
931
|
userId: z4.string(),
|
|
932
|
-
feedback: FeedbackSchema.optional(),
|
|
933
932
|
assets: z4.array(AssetSchema).optional(),
|
|
934
933
|
expirationTimestamp: z4.number(),
|
|
935
934
|
isFree: z4.boolean().optional(),
|
|
936
935
|
timeline: z4.array(TimelineItemSchema),
|
|
937
936
|
submitTimestamp: z4.number(),
|
|
938
937
|
tenantId: z4.string().optional(),
|
|
939
|
-
status: z4.
|
|
938
|
+
status: z4.nativeEnum(Status2)
|
|
940
939
|
});
|
|
941
940
|
|
|
942
941
|
// src/model/project/Project.api.ts
|
|
@@ -1509,13 +1508,13 @@ var Type = /* @__PURE__ */ ((Type2) => {
|
|
|
1509
1508
|
Type2[Type2["TENANT_SUBSCRIPTION"] = 1] = "TENANT_SUBSCRIPTION";
|
|
1510
1509
|
return Type2;
|
|
1511
1510
|
})(Type || {});
|
|
1512
|
-
var SubscriptionTypeSchema = z8.
|
|
1511
|
+
var SubscriptionTypeSchema = z8.nativeEnum(Type);
|
|
1513
1512
|
var PlanSchema = z8.object({
|
|
1514
1513
|
id: z8.string(),
|
|
1515
1514
|
currency: z8.string(),
|
|
1516
1515
|
price: z8.number(),
|
|
1517
1516
|
interval: z8.string(),
|
|
1518
|
-
metadata: z8.record(z8.string()
|
|
1517
|
+
metadata: z8.record(z8.string()),
|
|
1519
1518
|
subscriptionItemId: z8.string()
|
|
1520
1519
|
});
|
|
1521
1520
|
var DescriptionSchema = z8.object({
|
|
@@ -1551,7 +1550,7 @@ var SubscriptionSchema = z8.object({
|
|
|
1551
1550
|
currentPeriodEnd: z8.number().optional(),
|
|
1552
1551
|
paymentMethodId: z8.string().optional(),
|
|
1553
1552
|
product: ProductSchema,
|
|
1554
|
-
type: z8.
|
|
1553
|
+
type: z8.nativeEnum(Type).optional(),
|
|
1555
1554
|
plan: PlanSchema.optional()
|
|
1556
1555
|
});
|
|
1557
1556
|
|