shred-api-client 2.1.5 → 2.1.6
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 +1517 -123
- package/dist/index.d.ts +1517 -123
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -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.
|
|
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(),
|
|
@@ -890,8 +890,8 @@ var CaptionStyle = /* @__PURE__ */ ((CaptionStyle2) => {
|
|
|
890
890
|
CaptionStyle2[CaptionStyle2["HOME_HIGHLIGHT"] = 4] = "HOME_HIGHLIGHT";
|
|
891
891
|
return CaptionStyle2;
|
|
892
892
|
})(CaptionStyle || {});
|
|
893
|
-
var StatusSchema = z4.
|
|
894
|
-
var CaptionStyleStatus = z4.
|
|
893
|
+
var StatusSchema = z4.nativeEnum(Status2);
|
|
894
|
+
var CaptionStyleStatus = z4.nativeEnum(CaptionStyle);
|
|
895
895
|
var Styles = [
|
|
896
896
|
{ value: 1 /* ONE_LINE */, label: "One Line" },
|
|
897
897
|
{ value: 2 /* ONE_LINE_EMOJIS */, label: "One Line + Emojis" },
|
|
@@ -900,11 +900,11 @@ var Styles = [
|
|
|
900
900
|
{ value: 4 /* HOME_HIGHLIGHT */, label: "Home Tour" }
|
|
901
901
|
];
|
|
902
902
|
var TimelineItemSchema = z4.object({
|
|
903
|
-
status: z4.
|
|
903
|
+
status: z4.nativeEnum(Status2),
|
|
904
904
|
title: z4.string(),
|
|
905
905
|
description: z4.string(),
|
|
906
906
|
timestamp: z4.number(),
|
|
907
|
-
metadata: z4.any()
|
|
907
|
+
metadata: z4.record(z4.any())
|
|
908
908
|
});
|
|
909
909
|
var FeedbackSchema = z4.object({
|
|
910
910
|
criteria: z4.array(
|
|
@@ -922,7 +922,7 @@ var ProjectSchema = z4.object({
|
|
|
922
922
|
title: z4.string(),
|
|
923
923
|
instructions: z4.string(),
|
|
924
924
|
submitMonth: z4.string(),
|
|
925
|
-
captionStyle: z4.
|
|
925
|
+
captionStyle: z4.nativeEnum(CaptionStyle),
|
|
926
926
|
finalVideoId: z4.string().optional(),
|
|
927
927
|
thumbnailUrl: z4.string().optional(),
|
|
928
928
|
modified: z4.number(),
|
|
@@ -936,7 +936,7 @@ var ProjectSchema = z4.object({
|
|
|
936
936
|
timeline: z4.array(TimelineItemSchema),
|
|
937
937
|
submitTimestamp: z4.number(),
|
|
938
938
|
tenantId: z4.string().optional(),
|
|
939
|
-
status: z4.
|
|
939
|
+
status: z4.nativeEnum(Status2)
|
|
940
940
|
});
|
|
941
941
|
|
|
942
942
|
// src/model/project/Project.api.ts
|
|
@@ -1509,13 +1509,13 @@ var Type = /* @__PURE__ */ ((Type2) => {
|
|
|
1509
1509
|
Type2[Type2["TENANT_SUBSCRIPTION"] = 1] = "TENANT_SUBSCRIPTION";
|
|
1510
1510
|
return Type2;
|
|
1511
1511
|
})(Type || {});
|
|
1512
|
-
var SubscriptionTypeSchema = z8.
|
|
1512
|
+
var SubscriptionTypeSchema = z8.nativeEnum(Type);
|
|
1513
1513
|
var PlanSchema = z8.object({
|
|
1514
1514
|
id: z8.string(),
|
|
1515
1515
|
currency: z8.string(),
|
|
1516
1516
|
price: z8.number(),
|
|
1517
1517
|
interval: z8.string(),
|
|
1518
|
-
metadata: z8.record(z8.string()
|
|
1518
|
+
metadata: z8.record(z8.string()),
|
|
1519
1519
|
subscriptionItemId: z8.string()
|
|
1520
1520
|
});
|
|
1521
1521
|
var DescriptionSchema = z8.object({
|
|
@@ -1551,7 +1551,7 @@ var SubscriptionSchema = z8.object({
|
|
|
1551
1551
|
currentPeriodEnd: z8.number().optional(),
|
|
1552
1552
|
paymentMethodId: z8.string().optional(),
|
|
1553
1553
|
product: ProductSchema,
|
|
1554
|
-
type: z8.
|
|
1554
|
+
type: z8.nativeEnum(Type).optional(),
|
|
1555
1555
|
plan: PlanSchema.optional()
|
|
1556
1556
|
});
|
|
1557
1557
|
|