controlresell 2.16.6 → 2.17.1
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/package.json +1 -1
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts +3 -0
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.d.ts.map +1 -1
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js +2 -1
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js.map +1 -1
- package/src/com/controlresell/api/requests/items/republish/RepublishRequest.ts +2 -1
- package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts +11 -0
- package/src/com/controlresell/api/responses/items/ItemsWithFilters.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/items/ListedItem.d.ts +9 -0
- package/src/com/controlresell/api/responses/items/ListedItem.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +0 -203
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts.map +1 -1
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js +1 -3
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js.map +1 -1
- package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.ts +1 -3
- package/src/com/controlresell/auth/models/preferences/CreatePreferencePayload.d.ts +3 -3
- package/src/com/controlresell/auth/models/preferences/Preference.d.ts +3 -3
- package/src/com/controlresell/auth/models/preferences/PreferenceType.d.ts +1 -1
- package/src/com/controlresell/auth/models/preferences/PreferenceType.d.ts.map +1 -1
- package/src/com/controlresell/auth/models/preferences/PreferenceType.js +1 -1
- package/src/com/controlresell/auth/models/preferences/PreferenceType.js.map +1 -1
- package/src/com/controlresell/auth/models/preferences/PreferenceType.ts +1 -1
- package/src/com/controlresell/auth/models/preferences/PreferenceWithCase.d.ts +5 -5
- package/src/com/controlresell/auth/models/preferences/PreferenceWithChildren.d.ts +8 -8
- package/src/com/controlresell/auth/models/preferences/queue/PreferenceNextActionPayload.d.ts +7 -7
- package/src/com/controlresell/models/conversations/Conversation.d.ts +7 -4
- package/src/com/controlresell/models/conversations/Conversation.d.ts.map +1 -1
- package/src/com/controlresell/models/conversations/Conversation.js +1 -0
- package/src/com/controlresell/models/conversations/Conversation.js.map +1 -1
- package/src/com/controlresell/models/conversations/Conversation.ts +1 -0
- package/src/com/controlresell/models/conversations/ConversationUpdate.d.ts +15 -10
- package/src/com/controlresell/models/conversations/ConversationUpdate.d.ts.map +1 -1
- package/src/com/controlresell/models/conversations/UserConversations.d.ts +11 -6
- package/src/com/controlresell/models/conversations/UserConversations.d.ts.map +1 -1
- package/src/com/controlresell/models/conversations/favorites/ConversationFavorite.d.ts +3 -0
- package/src/com/controlresell/models/conversations/favorites/ConversationFavorite.d.ts.map +1 -1
- package/src/com/controlresell/models/conversations/favorites/ConversationFavorite.js +1 -0
- package/src/com/controlresell/models/conversations/favorites/ConversationFavorite.js.map +1 -1
- package/src/com/controlresell/models/conversations/favorites/ConversationFavorite.ts +1 -0
- package/src/com/controlresell/models/conversations/favorites/ReportRateLimitOnFavorites.d.ts +5 -0
- package/src/com/controlresell/models/conversations/favorites/ReportRateLimitOnFavorites.d.ts.map +1 -1
- package/src/com/controlresell/models/conversations/favorites/SubmitFavoritesResponse.d.ts +5 -0
- package/src/com/controlresell/models/conversations/favorites/SubmitFavoritesResponse.d.ts.map +1 -1
- package/src/com/controlresell/models/conversations/messages/ConversationMessage.d.ts +2 -2
- package/src/com/controlresell/models/conversations/messages/ConversationMessageRequest.d.ts +2 -2
- package/src/com/controlresell/models/conversations/messages/CreateConversationMessagePayload.d.ts +2 -2
- package/src/com/controlresell/models/conversations/messages/PaginatedConversationMessages.d.ts +4 -4
- package/src/com/controlresell/models/conversations/offers/ConversationOfferRequest.d.ts +2 -2
- package/src/com/controlresell/models/items/CreatedItems.d.ts +22 -0
- package/src/com/controlresell/models/items/CreatedItems.d.ts.map +1 -1
- package/src/com/controlresell/models/items/Item.d.ts +18 -0
- package/src/com/controlresell/models/items/Item.d.ts.map +1 -1
- package/src/com/controlresell/models/items/ItemUpdate.d.ts +11 -0
- package/src/com/controlresell/models/items/ItemUpdate.d.ts.map +1 -1
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +22 -0
- package/src/com/controlresell/models/items/UpdatedItem.d.ts.map +1 -1
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +7 -0
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts +7 -0
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts.map +1 -1
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +10 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishingPayload.d.ts +3 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishingPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishingPayload.js +2 -1
- package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishingPayload.js.map +1 -1
- package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishingPayload.ts +2 -1
- package/src/com/controlresell/models/orders/preferences/CreateOrderLabelPreferencePayload.d.ts +3 -0
- package/src/com/controlresell/models/orders/preferences/CreateOrderLabelPreferencePayload.d.ts.map +1 -1
- package/src/com/controlresell/models/orders/preferences/CreateOrderLabelPreferencePayload.js +1 -0
- package/src/com/controlresell/models/orders/preferences/CreateOrderLabelPreferencePayload.js.map +1 -1
- package/src/com/controlresell/models/orders/preferences/CreateOrderLabelPreferencePayload.ts +1 -0
- package/src/com/controlresell/models/orders/preferences/OrderLabelPreference.d.ts +3 -0
- package/src/com/controlresell/models/orders/preferences/OrderLabelPreference.d.ts.map +1 -1
- package/src/com/controlresell/models/orders/preferences/OrderLabelPreference.js +1 -0
- package/src/com/controlresell/models/orders/preferences/OrderLabelPreference.js.map +1 -1
- package/src/com/controlresell/models/orders/preferences/OrderLabelPreference.ts +1 -0
- package/src/com/controlresell/models/orders/preferences/UpdateOrderLabelPreferencePayload.d.ts +3 -0
- package/src/com/controlresell/models/orders/preferences/UpdateOrderLabelPreferencePayload.d.ts.map +1 -1
- package/src/com/controlresell/models/orders/preferences/UpdateOrderLabelPreferencePayload.js +1 -0
- package/src/com/controlresell/models/orders/preferences/UpdateOrderLabelPreferencePayload.js.map +1 -1
- package/src/com/controlresell/models/orders/preferences/UpdateOrderLabelPreferencePayload.ts +1 -0
- package/src/com/controlresell/models/platforms/labels/CreateOrderLabelPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/labels/LabelCarrier.d.ts +1 -1
- package/src/com/controlresell/models/platforms/labels/LabelCarrier.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/labels/LabelCarrier.js +1 -1
- package/src/com/controlresell/models/platforms/labels/LabelCarrier.js.map +1 -1
- package/src/com/controlresell/models/platforms/labels/LabelCarrier.ts +1 -1
- package/src/com/controlresell/models/platforms/labels/OrderLabel.d.ts +3 -3
- package/src/com/controlresell/models/platforms/labels/UpdateOrderLabelPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/OrderLabelUpdate.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +22 -9
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +18 -7
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
- package/src/com/controlresell/models/transactions/items/TransactionWithItems.d.ts +11 -0
- package/src/com/controlresell/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +62 -30
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -122,6 +122,7 @@ export declare const RepublishRequestSchema: z.ZodObject<{
|
|
|
122
122
|
cancelBeforeProceeding: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
123
123
|
targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
124
|
allowIfDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
125
|
+
rewriteForRepublish: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
125
126
|
}, "strip", z.ZodTypeAny, {
|
|
126
127
|
items: ({
|
|
127
128
|
type: "AUTOMATIC";
|
|
@@ -150,6 +151,7 @@ export declare const RepublishRequestSchema: z.ZodObject<{
|
|
|
150
151
|
} | null | undefined;
|
|
151
152
|
targetAccountId?: string | null | undefined;
|
|
152
153
|
allowIfDeleted?: boolean | null | undefined;
|
|
154
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
153
155
|
accountsId?: string[] | null | undefined;
|
|
154
156
|
visionPayload?: {
|
|
155
157
|
doRemoveBackground: boolean;
|
|
@@ -195,6 +197,7 @@ export declare const RepublishRequestSchema: z.ZodObject<{
|
|
|
195
197
|
} | null | undefined;
|
|
196
198
|
targetAccountId?: string | null | undefined;
|
|
197
199
|
allowIfDeleted?: boolean | null | undefined;
|
|
200
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
198
201
|
accountsId?: string[] | null | undefined;
|
|
199
202
|
visionPayload?: {
|
|
200
203
|
doRemoveBackground: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepublishRequest.d.ts","sourceRoot":"","sources":["RepublishRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAKrB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"RepublishRequest.d.ts","sourceRoot":"","sources":["RepublishRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAKrB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -10,6 +10,7 @@ export const RepublishRequestSchema = z.object({
|
|
|
10
10
|
publishingDate: z.coerce.date().nullish(),
|
|
11
11
|
cancelBeforeProceeding: z.boolean().nullish(),
|
|
12
12
|
targetAccountId: z.string().uuid().nullish(),
|
|
13
|
-
allowIfDeleted: z.boolean().nullish()
|
|
13
|
+
allowIfDeleted: z.boolean().nullish(),
|
|
14
|
+
rewriteForRepublish: z.boolean().nullish()
|
|
14
15
|
});
|
|
15
16
|
//# sourceMappingURL=RepublishRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepublishRequest.js","sourceRoot":"","sources":["RepublishRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAA;AACxE,OAAO,EAAC,4BAA4B,EAAC,MAAM,gEAAgE,CAAA;AAC3G,OAAO,EAAC,6BAA6B,EAAC,MAAM,6EAA6E,CAAA;AAEzH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CA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CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;IACrC,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;CAC7C,CAAC,CAAA"}
|
|
@@ -11,6 +11,7 @@ export const RepublishRequestSchema = z.object({
|
|
|
11
11
|
publishingDate: z.coerce.date().nullish(),
|
|
12
12
|
cancelBeforeProceeding: z.boolean().nullish(),
|
|
13
13
|
targetAccountId: z.string().uuid().nullish(),
|
|
14
|
-
allowIfDeleted: z.boolean().nullish()
|
|
14
|
+
allowIfDeleted: z.boolean().nullish(),
|
|
15
|
+
rewriteForRepublish: z.boolean().nullish()
|
|
15
16
|
})
|
|
16
17
|
export type RepublishRequest = z.infer<typeof RepublishRequestSchema>
|
|
@@ -814,6 +814,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
814
814
|
isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
815
815
|
targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
816
816
|
allowIfDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
817
|
+
rewriteForRepublish: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
817
818
|
}, "strip", z.ZodTypeAny, {
|
|
818
819
|
platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
|
|
819
820
|
publishingDate?: Date | null | undefined;
|
|
@@ -828,6 +829,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
828
829
|
isTransfer?: boolean | null | undefined;
|
|
829
830
|
targetAccountId?: string | null | undefined;
|
|
830
831
|
allowIfDeleted?: boolean | null | undefined;
|
|
832
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
831
833
|
}, {
|
|
832
834
|
platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
|
|
833
835
|
publishingDate?: Date | null | undefined;
|
|
@@ -842,6 +844,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
842
844
|
isTransfer?: boolean | null | undefined;
|
|
843
845
|
targetAccountId?: string | null | undefined;
|
|
844
846
|
allowIfDeleted?: boolean | null | undefined;
|
|
847
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
845
848
|
}>;
|
|
846
849
|
type: z.ZodLiteral<"REPUBLISHING">;
|
|
847
850
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -860,6 +863,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
860
863
|
isTransfer?: boolean | null | undefined;
|
|
861
864
|
targetAccountId?: string | null | undefined;
|
|
862
865
|
allowIfDeleted?: boolean | null | undefined;
|
|
866
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
863
867
|
};
|
|
864
868
|
}, {
|
|
865
869
|
type: "REPUBLISHING";
|
|
@@ -877,6 +881,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
877
881
|
isTransfer?: boolean | null | undefined;
|
|
878
882
|
targetAccountId?: string | null | undefined;
|
|
879
883
|
allowIfDeleted?: boolean | null | undefined;
|
|
884
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
880
885
|
};
|
|
881
886
|
}>, z.ZodObject<{
|
|
882
887
|
data: z.ZodObject<{
|
|
@@ -1454,6 +1459,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
1454
1459
|
isTransfer?: boolean | null | undefined;
|
|
1455
1460
|
targetAccountId?: string | null | undefined;
|
|
1456
1461
|
allowIfDeleted?: boolean | null | undefined;
|
|
1462
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
1457
1463
|
};
|
|
1458
1464
|
} | {
|
|
1459
1465
|
type: "REPUBLISHING_RETRY";
|
|
@@ -1664,6 +1670,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
1664
1670
|
isTransfer?: boolean | null | undefined;
|
|
1665
1671
|
targetAccountId?: string | null | undefined;
|
|
1666
1672
|
allowIfDeleted?: boolean | null | undefined;
|
|
1673
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
1667
1674
|
};
|
|
1668
1675
|
} | {
|
|
1669
1676
|
type: "REPUBLISHING_RETRY";
|
|
@@ -2170,6 +2177,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
2170
2177
|
isTransfer?: boolean | null | undefined;
|
|
2171
2178
|
targetAccountId?: string | null | undefined;
|
|
2172
2179
|
allowIfDeleted?: boolean | null | undefined;
|
|
2180
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
2173
2181
|
};
|
|
2174
2182
|
} | {
|
|
2175
2183
|
type: "REPUBLISHING_RETRY";
|
|
@@ -2493,6 +2501,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
2493
2501
|
isTransfer?: boolean | null | undefined;
|
|
2494
2502
|
targetAccountId?: string | null | undefined;
|
|
2495
2503
|
allowIfDeleted?: boolean | null | undefined;
|
|
2504
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
2496
2505
|
};
|
|
2497
2506
|
} | {
|
|
2498
2507
|
type: "REPUBLISHING_RETRY";
|
|
@@ -2821,6 +2830,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
2821
2830
|
isTransfer?: boolean | null | undefined;
|
|
2822
2831
|
targetAccountId?: string | null | undefined;
|
|
2823
2832
|
allowIfDeleted?: boolean | null | undefined;
|
|
2833
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
2824
2834
|
};
|
|
2825
2835
|
} | {
|
|
2826
2836
|
type: "REPUBLISHING_RETRY";
|
|
@@ -3150,6 +3160,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
3150
3160
|
isTransfer?: boolean | null | undefined;
|
|
3151
3161
|
targetAccountId?: string | null | undefined;
|
|
3152
3162
|
allowIfDeleted?: boolean | null | undefined;
|
|
3163
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
3153
3164
|
};
|
|
3154
3165
|
} | {
|
|
3155
3166
|
type: "REPUBLISHING_RETRY";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemsWithFilters.d.ts","sourceRoot":"","sources":["ItemsWithFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"ItemsWithFilters.d.ts","sourceRoot":"","sources":["ItemsWithFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -811,6 +811,7 @@ export declare const ListedItemSchema: z.ZodObject<{
|
|
|
811
811
|
isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
812
812
|
targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
813
813
|
allowIfDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
814
|
+
rewriteForRepublish: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
814
815
|
}, "strip", z.ZodTypeAny, {
|
|
815
816
|
platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
|
|
816
817
|
publishingDate?: Date | null | undefined;
|
|
@@ -825,6 +826,7 @@ export declare const ListedItemSchema: z.ZodObject<{
|
|
|
825
826
|
isTransfer?: boolean | null | undefined;
|
|
826
827
|
targetAccountId?: string | null | undefined;
|
|
827
828
|
allowIfDeleted?: boolean | null | undefined;
|
|
829
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
828
830
|
}, {
|
|
829
831
|
platform: "EBAY" | "ETSY" | "SHOPIFY" | "VINTED" | "VESTIAIRE";
|
|
830
832
|
publishingDate?: Date | null | undefined;
|
|
@@ -839,6 +841,7 @@ export declare const ListedItemSchema: z.ZodObject<{
|
|
|
839
841
|
isTransfer?: boolean | null | undefined;
|
|
840
842
|
targetAccountId?: string | null | undefined;
|
|
841
843
|
allowIfDeleted?: boolean | null | undefined;
|
|
844
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
842
845
|
}>;
|
|
843
846
|
type: z.ZodLiteral<"REPUBLISHING">;
|
|
844
847
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -857,6 +860,7 @@ export declare const ListedItemSchema: z.ZodObject<{
|
|
|
857
860
|
isTransfer?: boolean | null | undefined;
|
|
858
861
|
targetAccountId?: string | null | undefined;
|
|
859
862
|
allowIfDeleted?: boolean | null | undefined;
|
|
863
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
860
864
|
};
|
|
861
865
|
}, {
|
|
862
866
|
type: "REPUBLISHING";
|
|
@@ -874,6 +878,7 @@ export declare const ListedItemSchema: z.ZodObject<{
|
|
|
874
878
|
isTransfer?: boolean | null | undefined;
|
|
875
879
|
targetAccountId?: string | null | undefined;
|
|
876
880
|
allowIfDeleted?: boolean | null | undefined;
|
|
881
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
877
882
|
};
|
|
878
883
|
}>, z.ZodObject<{
|
|
879
884
|
data: z.ZodObject<{
|
|
@@ -1451,6 +1456,7 @@ export declare const ListedItemSchema: z.ZodObject<{
|
|
|
1451
1456
|
isTransfer?: boolean | null | undefined;
|
|
1452
1457
|
targetAccountId?: string | null | undefined;
|
|
1453
1458
|
allowIfDeleted?: boolean | null | undefined;
|
|
1459
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
1454
1460
|
};
|
|
1455
1461
|
} | {
|
|
1456
1462
|
type: "REPUBLISHING_RETRY";
|
|
@@ -1661,6 +1667,7 @@ export declare const ListedItemSchema: z.ZodObject<{
|
|
|
1661
1667
|
isTransfer?: boolean | null | undefined;
|
|
1662
1668
|
targetAccountId?: string | null | undefined;
|
|
1663
1669
|
allowIfDeleted?: boolean | null | undefined;
|
|
1670
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
1664
1671
|
};
|
|
1665
1672
|
} | {
|
|
1666
1673
|
type: "REPUBLISHING_RETRY";
|
|
@@ -2167,6 +2174,7 @@ export declare const ListedItemSchema: z.ZodObject<{
|
|
|
2167
2174
|
isTransfer?: boolean | null | undefined;
|
|
2168
2175
|
targetAccountId?: string | null | undefined;
|
|
2169
2176
|
allowIfDeleted?: boolean | null | undefined;
|
|
2177
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
2170
2178
|
};
|
|
2171
2179
|
} | {
|
|
2172
2180
|
type: "REPUBLISHING_RETRY";
|
|
@@ -2490,6 +2498,7 @@ export declare const ListedItemSchema: z.ZodObject<{
|
|
|
2490
2498
|
isTransfer?: boolean | null | undefined;
|
|
2491
2499
|
targetAccountId?: string | null | undefined;
|
|
2492
2500
|
allowIfDeleted?: boolean | null | undefined;
|
|
2501
|
+
rewriteForRepublish?: boolean | null | undefined;
|
|
2493
2502
|
};
|
|
2494
2503
|
} | {
|
|
2495
2504
|
type: "REPUBLISHING_RETRY";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListedItem.d.ts","sourceRoot":"","sources":["ListedItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AASrB,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"ListedItem.d.ts","sourceRoot":"","sources":["ListedItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AASrB,eAAO,MAAM,gBAAgB;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgC3B,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -3,216 +3,13 @@ export declare const SubscriptionStatusSchema: z.ZodObject<{
|
|
|
3
3
|
state: z.ZodEnum<["NONE", "TRIAL", "TRIAL_ENDED", "ACTIVE", "CANCELING", "GRACE_PERIOD", "EXPIRED"]>;
|
|
4
4
|
isEligibleToTrial: z.ZodBoolean;
|
|
5
5
|
trialDaysRemaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
-
history: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
userId: z.ZodNumber;
|
|
9
|
-
type: z.ZodEnum<["TRIAL_STARTED", "TRIAL_UPGRADED", "TRIAL_EXPIRED", "LEVEL_ADDED", "LEVEL_REMOVED", "MULTIPLIER_CHANGED", "SUBSCRIPTION_PAUSED", "SUBSCRIPTION_RESUMED", "SUBSCRIPTION_CANCELED", "PAYMENT_SUCCEEDED", "PAYMENT_FAILED"]>;
|
|
10
|
-
levelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
-
levelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
multiplierBefore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
-
multiplierAfter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
-
source: z.ZodEnum<["STRIPE_WEBHOOK", "MANUAL_SYNC", "USER_ACTION"]>;
|
|
15
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
16
|
-
reason: z.ZodEnum<["USER_REQUESTED", "PAYMENT_FAILED", "DOWNGRADED", "SWITCHED_PLAN", "OTHER"]>;
|
|
17
|
-
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
type: z.ZodLiteral<"CANCELLATION">;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
type: "CANCELLATION";
|
|
21
|
-
reason: "PAYMENT_FAILED" | "USER_REQUESTED" | "DOWNGRADED" | "SWITCHED_PLAN" | "OTHER";
|
|
22
|
-
comment?: string | null | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
type: "CANCELLATION";
|
|
25
|
-
reason: "PAYMENT_FAILED" | "USER_REQUESTED" | "DOWNGRADED" | "SWITCHED_PLAN" | "OTHER";
|
|
26
|
-
comment?: string | null | undefined;
|
|
27
|
-
}>, z.ZodObject<{
|
|
28
|
-
amount: z.ZodNumber;
|
|
29
|
-
currency: z.ZodString;
|
|
30
|
-
interval: z.ZodString;
|
|
31
|
-
priceId: z.ZodString;
|
|
32
|
-
type: z.ZodLiteral<"PRICE_CHANGE">;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
type: "PRICE_CHANGE";
|
|
35
|
-
currency: string;
|
|
36
|
-
amount: number;
|
|
37
|
-
interval: string;
|
|
38
|
-
priceId: string;
|
|
39
|
-
}, {
|
|
40
|
-
type: "PRICE_CHANGE";
|
|
41
|
-
currency: string;
|
|
42
|
-
amount: number;
|
|
43
|
-
interval: string;
|
|
44
|
-
priceId: string;
|
|
45
|
-
}>, z.ZodObject<{
|
|
46
|
-
eventId: z.ZodString;
|
|
47
|
-
subscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
-
type: z.ZodLiteral<"STRIPE_EVENT">;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
type: "STRIPE_EVENT";
|
|
52
|
-
eventId: string;
|
|
53
|
-
invoiceId?: string | null | undefined;
|
|
54
|
-
subscriptionId?: string | null | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
type: "STRIPE_EVENT";
|
|
57
|
-
eventId: string;
|
|
58
|
-
invoiceId?: string | null | undefined;
|
|
59
|
-
subscriptionId?: string | null | undefined;
|
|
60
|
-
}>, z.ZodObject<{
|
|
61
|
-
startDate: z.ZodDate;
|
|
62
|
-
endDate: z.ZodDate;
|
|
63
|
-
convertedToPaid: z.ZodBoolean;
|
|
64
|
-
type: z.ZodLiteral<"TRIAL">;
|
|
65
|
-
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
type: "TRIAL";
|
|
67
|
-
startDate: Date;
|
|
68
|
-
endDate: Date;
|
|
69
|
-
convertedToPaid: boolean;
|
|
70
|
-
}, {
|
|
71
|
-
type: "TRIAL";
|
|
72
|
-
startDate: Date;
|
|
73
|
-
endDate: Date;
|
|
74
|
-
convertedToPaid: boolean;
|
|
75
|
-
}>]>>>;
|
|
76
|
-
createdAt: z.ZodDate;
|
|
77
|
-
requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
-
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
type: "PAYMENT_FAILED" | "TRIAL_STARTED" | "TRIAL_UPGRADED" | "TRIAL_EXPIRED" | "LEVEL_ADDED" | "LEVEL_REMOVED" | "MULTIPLIER_CHANGED" | "SUBSCRIPTION_PAUSED" | "SUBSCRIPTION_RESUMED" | "SUBSCRIPTION_CANCELED" | "PAYMENT_SUCCEEDED";
|
|
80
|
-
id: string;
|
|
81
|
-
createdAt: Date;
|
|
82
|
-
userId: number;
|
|
83
|
-
source: "STRIPE_WEBHOOK" | "MANUAL_SYNC" | "USER_ACTION";
|
|
84
|
-
requestId?: string | null | undefined;
|
|
85
|
-
levelId?: number | null | undefined;
|
|
86
|
-
levelName?: string | null | undefined;
|
|
87
|
-
multiplierBefore?: number | null | undefined;
|
|
88
|
-
multiplierAfter?: number | null | undefined;
|
|
89
|
-
metadata?: {
|
|
90
|
-
type: "CANCELLATION";
|
|
91
|
-
reason: "PAYMENT_FAILED" | "USER_REQUESTED" | "DOWNGRADED" | "SWITCHED_PLAN" | "OTHER";
|
|
92
|
-
comment?: string | null | undefined;
|
|
93
|
-
} | {
|
|
94
|
-
type: "PRICE_CHANGE";
|
|
95
|
-
currency: string;
|
|
96
|
-
amount: number;
|
|
97
|
-
interval: string;
|
|
98
|
-
priceId: string;
|
|
99
|
-
} | {
|
|
100
|
-
type: "STRIPE_EVENT";
|
|
101
|
-
eventId: string;
|
|
102
|
-
invoiceId?: string | null | undefined;
|
|
103
|
-
subscriptionId?: string | null | undefined;
|
|
104
|
-
} | {
|
|
105
|
-
type: "TRIAL";
|
|
106
|
-
startDate: Date;
|
|
107
|
-
endDate: Date;
|
|
108
|
-
convertedToPaid: boolean;
|
|
109
|
-
} | null | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
type: "PAYMENT_FAILED" | "TRIAL_STARTED" | "TRIAL_UPGRADED" | "TRIAL_EXPIRED" | "LEVEL_ADDED" | "LEVEL_REMOVED" | "MULTIPLIER_CHANGED" | "SUBSCRIPTION_PAUSED" | "SUBSCRIPTION_RESUMED" | "SUBSCRIPTION_CANCELED" | "PAYMENT_SUCCEEDED";
|
|
112
|
-
id: string;
|
|
113
|
-
createdAt: Date;
|
|
114
|
-
userId: number;
|
|
115
|
-
source: "STRIPE_WEBHOOK" | "MANUAL_SYNC" | "USER_ACTION";
|
|
116
|
-
requestId?: string | null | undefined;
|
|
117
|
-
levelId?: number | null | undefined;
|
|
118
|
-
levelName?: string | null | undefined;
|
|
119
|
-
multiplierBefore?: number | null | undefined;
|
|
120
|
-
multiplierAfter?: number | null | undefined;
|
|
121
|
-
metadata?: {
|
|
122
|
-
type: "CANCELLATION";
|
|
123
|
-
reason: "PAYMENT_FAILED" | "USER_REQUESTED" | "DOWNGRADED" | "SWITCHED_PLAN" | "OTHER";
|
|
124
|
-
comment?: string | null | undefined;
|
|
125
|
-
} | {
|
|
126
|
-
type: "PRICE_CHANGE";
|
|
127
|
-
currency: string;
|
|
128
|
-
amount: number;
|
|
129
|
-
interval: string;
|
|
130
|
-
priceId: string;
|
|
131
|
-
} | {
|
|
132
|
-
type: "STRIPE_EVENT";
|
|
133
|
-
eventId: string;
|
|
134
|
-
invoiceId?: string | null | undefined;
|
|
135
|
-
subscriptionId?: string | null | undefined;
|
|
136
|
-
} | {
|
|
137
|
-
type: "TRIAL";
|
|
138
|
-
startDate: Date;
|
|
139
|
-
endDate: Date;
|
|
140
|
-
convertedToPaid: boolean;
|
|
141
|
-
} | null | undefined;
|
|
142
|
-
}>, "many">>>;
|
|
143
6
|
}, "strip", z.ZodTypeAny, {
|
|
144
7
|
state: "NONE" | "ACTIVE" | "TRIAL" | "TRIAL_ENDED" | "CANCELING" | "GRACE_PERIOD" | "EXPIRED";
|
|
145
8
|
isEligibleToTrial: boolean;
|
|
146
|
-
history?: {
|
|
147
|
-
type: "PAYMENT_FAILED" | "TRIAL_STARTED" | "TRIAL_UPGRADED" | "TRIAL_EXPIRED" | "LEVEL_ADDED" | "LEVEL_REMOVED" | "MULTIPLIER_CHANGED" | "SUBSCRIPTION_PAUSED" | "SUBSCRIPTION_RESUMED" | "SUBSCRIPTION_CANCELED" | "PAYMENT_SUCCEEDED";
|
|
148
|
-
id: string;
|
|
149
|
-
createdAt: Date;
|
|
150
|
-
userId: number;
|
|
151
|
-
source: "STRIPE_WEBHOOK" | "MANUAL_SYNC" | "USER_ACTION";
|
|
152
|
-
requestId?: string | null | undefined;
|
|
153
|
-
levelId?: number | null | undefined;
|
|
154
|
-
levelName?: string | null | undefined;
|
|
155
|
-
multiplierBefore?: number | null | undefined;
|
|
156
|
-
multiplierAfter?: number | null | undefined;
|
|
157
|
-
metadata?: {
|
|
158
|
-
type: "CANCELLATION";
|
|
159
|
-
reason: "PAYMENT_FAILED" | "USER_REQUESTED" | "DOWNGRADED" | "SWITCHED_PLAN" | "OTHER";
|
|
160
|
-
comment?: string | null | undefined;
|
|
161
|
-
} | {
|
|
162
|
-
type: "PRICE_CHANGE";
|
|
163
|
-
currency: string;
|
|
164
|
-
amount: number;
|
|
165
|
-
interval: string;
|
|
166
|
-
priceId: string;
|
|
167
|
-
} | {
|
|
168
|
-
type: "STRIPE_EVENT";
|
|
169
|
-
eventId: string;
|
|
170
|
-
invoiceId?: string | null | undefined;
|
|
171
|
-
subscriptionId?: string | null | undefined;
|
|
172
|
-
} | {
|
|
173
|
-
type: "TRIAL";
|
|
174
|
-
startDate: Date;
|
|
175
|
-
endDate: Date;
|
|
176
|
-
convertedToPaid: boolean;
|
|
177
|
-
} | null | undefined;
|
|
178
|
-
}[] | null | undefined;
|
|
179
9
|
trialDaysRemaining?: number | null | undefined;
|
|
180
10
|
}, {
|
|
181
11
|
state: "NONE" | "ACTIVE" | "TRIAL" | "TRIAL_ENDED" | "CANCELING" | "GRACE_PERIOD" | "EXPIRED";
|
|
182
12
|
isEligibleToTrial: boolean;
|
|
183
|
-
history?: {
|
|
184
|
-
type: "PAYMENT_FAILED" | "TRIAL_STARTED" | "TRIAL_UPGRADED" | "TRIAL_EXPIRED" | "LEVEL_ADDED" | "LEVEL_REMOVED" | "MULTIPLIER_CHANGED" | "SUBSCRIPTION_PAUSED" | "SUBSCRIPTION_RESUMED" | "SUBSCRIPTION_CANCELED" | "PAYMENT_SUCCEEDED";
|
|
185
|
-
id: string;
|
|
186
|
-
createdAt: Date;
|
|
187
|
-
userId: number;
|
|
188
|
-
source: "STRIPE_WEBHOOK" | "MANUAL_SYNC" | "USER_ACTION";
|
|
189
|
-
requestId?: string | null | undefined;
|
|
190
|
-
levelId?: number | null | undefined;
|
|
191
|
-
levelName?: string | null | undefined;
|
|
192
|
-
multiplierBefore?: number | null | undefined;
|
|
193
|
-
multiplierAfter?: number | null | undefined;
|
|
194
|
-
metadata?: {
|
|
195
|
-
type: "CANCELLATION";
|
|
196
|
-
reason: "PAYMENT_FAILED" | "USER_REQUESTED" | "DOWNGRADED" | "SWITCHED_PLAN" | "OTHER";
|
|
197
|
-
comment?: string | null | undefined;
|
|
198
|
-
} | {
|
|
199
|
-
type: "PRICE_CHANGE";
|
|
200
|
-
currency: string;
|
|
201
|
-
amount: number;
|
|
202
|
-
interval: string;
|
|
203
|
-
priceId: string;
|
|
204
|
-
} | {
|
|
205
|
-
type: "STRIPE_EVENT";
|
|
206
|
-
eventId: string;
|
|
207
|
-
invoiceId?: string | null | undefined;
|
|
208
|
-
subscriptionId?: string | null | undefined;
|
|
209
|
-
} | {
|
|
210
|
-
type: "TRIAL";
|
|
211
|
-
startDate: Date;
|
|
212
|
-
endDate: Date;
|
|
213
|
-
convertedToPaid: boolean;
|
|
214
|
-
} | null | undefined;
|
|
215
|
-
}[] | null | undefined;
|
|
216
13
|
trialDaysRemaining?: number | null | undefined;
|
|
217
14
|
}>;
|
|
218
15
|
export type SubscriptionStatus = z.infer<typeof SubscriptionStatusSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionStatus.d.ts","sourceRoot":"","sources":["SubscriptionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"SubscriptionStatus.d.ts","sourceRoot":"","sources":["SubscriptionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { SubscriptionStateSchema } from "../../../models/subscriptions/SubscriptionState";
|
|
3
|
-
import { SubscriptionHistorySchema } from "../../../models/subscriptions/SubscriptionHistory";
|
|
4
3
|
export const SubscriptionStatusSchema = z.object({
|
|
5
4
|
state: SubscriptionStateSchema,
|
|
6
5
|
isEligibleToTrial: z.boolean(),
|
|
7
|
-
trialDaysRemaining: z.number().int().nullish()
|
|
8
|
-
history: z.array(SubscriptionHistorySchema).nullish()
|
|
6
|
+
trialDaysRemaining: z.number().int().nullish()
|
|
9
7
|
});
|
|
10
8
|
//# sourceMappingURL=SubscriptionStatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionStatus.js","sourceRoot":"","sources":["SubscriptionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,uBAAuB,EAAC,MAAM,iDAAiD,CAAA;
|
|
1
|
+
{"version":3,"file":"SubscriptionStatus.js","sourceRoot":"","sources":["SubscriptionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AACrB,OAAO,EAAC,uBAAuB,EAAC,MAAM,iDAAiD,CAAA;AAEvF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,uBAAuB;IAC9B,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC9B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE;CACjD,CAAC,CAAA"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
import {SubscriptionStateSchema} from "../../../models/subscriptions/SubscriptionState"
|
|
3
|
-
import {SubscriptionHistorySchema} from "../../../models/subscriptions/SubscriptionHistory"
|
|
4
3
|
|
|
5
4
|
export const SubscriptionStatusSchema = z.object({
|
|
6
5
|
state: SubscriptionStateSchema,
|
|
7
6
|
isEligibleToTrial: z.boolean(),
|
|
8
|
-
trialDaysRemaining: z.number().int().nullish()
|
|
9
|
-
history: z.array(SubscriptionHistorySchema).nullish()
|
|
7
|
+
trialDaysRemaining: z.number().int().nullish()
|
|
10
8
|
})
|
|
11
9
|
export type SubscriptionStatus = z.infer<typeof SubscriptionStatusSchema>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CreatePreferencePayloadSchema: z.ZodObject<{
|
|
3
3
|
parentPreferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
-
type: z.ZodEnum<["
|
|
4
|
+
type: z.ZodEnum<["PHOTO_ADDING", "TEMPLATE", "TITLE", "DESCRIPTION", "RETRY", "LIFECYCLE", "FEES"]>;
|
|
5
5
|
enabled: z.ZodBoolean;
|
|
6
6
|
testMode: z.ZodBoolean;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
type: "
|
|
8
|
+
type: "PHOTO_ADDING" | "TEMPLATE" | "TITLE" | "DESCRIPTION" | "RETRY" | "LIFECYCLE" | "FEES";
|
|
9
9
|
enabled: boolean;
|
|
10
10
|
testMode: boolean;
|
|
11
11
|
parentPreferenceId?: string | null | undefined;
|
|
12
12
|
}, {
|
|
13
|
-
type: "
|
|
13
|
+
type: "PHOTO_ADDING" | "TEMPLATE" | "TITLE" | "DESCRIPTION" | "RETRY" | "LIFECYCLE" | "FEES";
|
|
14
14
|
enabled: boolean;
|
|
15
15
|
testMode: boolean;
|
|
16
16
|
parentPreferenceId?: string | null | undefined;
|
|
@@ -3,7 +3,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
parentPreferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
userId: z.ZodNumber;
|
|
6
|
-
type: z.ZodEnum<["
|
|
6
|
+
type: z.ZodEnum<["PHOTO_ADDING", "TEMPLATE", "TITLE", "DESCRIPTION", "RETRY", "LIFECYCLE", "FEES"]>;
|
|
7
7
|
enabled: z.ZodBoolean;
|
|
8
8
|
testMode: z.ZodBoolean;
|
|
9
9
|
cases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -1344,7 +1344,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1344
1344
|
}[] | null | undefined;
|
|
1345
1345
|
}>, "many">>>;
|
|
1346
1346
|
}, "strip", z.ZodTypeAny, {
|
|
1347
|
-
type: "
|
|
1347
|
+
type: "PHOTO_ADDING" | "TEMPLATE" | "TITLE" | "DESCRIPTION" | "RETRY" | "LIFECYCLE" | "FEES";
|
|
1348
1348
|
enabled: boolean;
|
|
1349
1349
|
testMode: boolean;
|
|
1350
1350
|
id: string;
|
|
@@ -1494,7 +1494,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1494
1494
|
}[] | null | undefined;
|
|
1495
1495
|
}[] | null | undefined;
|
|
1496
1496
|
}, {
|
|
1497
|
-
type: "
|
|
1497
|
+
type: "PHOTO_ADDING" | "TEMPLATE" | "TITLE" | "DESCRIPTION" | "RETRY" | "LIFECYCLE" | "FEES";
|
|
1498
1498
|
enabled: boolean;
|
|
1499
1499
|
testMode: boolean;
|
|
1500
1500
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const PreferenceTypeSchema: z.ZodEnum<["
|
|
2
|
+
export declare const PreferenceTypeSchema: z.ZodEnum<["PHOTO_ADDING", "TEMPLATE", "TITLE", "DESCRIPTION", "RETRY", "LIFECYCLE", "FEES"]>;
|
|
3
3
|
export type PreferenceType = z.infer<typeof PreferenceTypeSchema>;
|
|
4
4
|
//# sourceMappingURL=PreferenceType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreferenceType.d.ts","sourceRoot":"","sources":["PreferenceType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"PreferenceType.d.ts","sourceRoot":"","sources":["PreferenceType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,oBAAoB,+FAE/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export const PreferenceTypeSchema = z.enum([
|
|
3
|
-
"
|
|
3
|
+
"PHOTO_ADDING", "TEMPLATE", "TITLE", "DESCRIPTION", "RETRY", "LIFECYCLE", "FEES"
|
|
4
4
|
]);
|
|
5
5
|
//# sourceMappingURL=PreferenceType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreferenceType.js","sourceRoot":"","sources":["PreferenceType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC,
|
|
1
|
+
{"version":3,"file":"PreferenceType.js","sourceRoot":"","sources":["PreferenceType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC,cAAc,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM;CACnF,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
export const PreferenceTypeSchema = z.enum([
|
|
4
|
-
"
|
|
4
|
+
"PHOTO_ADDING", "TEMPLATE", "TITLE", "DESCRIPTION", "RETRY", "LIFECYCLE", "FEES"
|
|
5
5
|
])
|
|
6
6
|
export type PreferenceType = z.infer<typeof PreferenceTypeSchema>
|