controlresell 2.2.8 → 2.2.10

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.
Files changed (44) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +1 -1
  3. package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
  4. package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
  5. package/src/com/controlresell/models/filters/SavedFilters.d.ts +5 -5
  6. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +5 -5
  7. package/src/com/controlresell/models/items/CreatedItems.d.ts +127 -7
  8. package/src/com/controlresell/models/items/Item.d.ts +101 -5
  9. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -3
  10. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +127 -7
  11. package/src/com/controlresell/models/items/UpdatedItem.d.ts +127 -7
  12. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +75 -3
  13. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +75 -3
  14. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +48 -0
  15. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +10 -0
  16. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +10 -0
  17. package/src/com/controlresell/models/items/history/ItemHistoryType.d.ts +1 -1
  18. package/src/com/controlresell/models/items/history/ItemHistoryType.js +1 -1
  19. package/src/com/controlresell/models/items/history/ItemHistoryType.ts +1 -1
  20. package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.d.ts +3 -3
  21. package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishing.d.ts +9 -0
  22. package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishing.js +8 -0
  23. package/src/com/controlresell/models/items/history/data/ItemHistoryRepublishing.ts +7 -0
  24. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
  25. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +1 -0
  26. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +1 -0
  27. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +8 -0
  28. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.js +2 -1
  29. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.ts +2 -1
  30. package/src/com/controlresell/models/items/platforms/PlatformInfo.d.ts +3 -0
  31. package/src/com/controlresell/models/items/platforms/PlatformInfo.js +2 -1
  32. package/src/com/controlresell/models/items/platforms/PlatformInfo.ts +2 -1
  33. package/src/com/controlresell/models/items/platforms/RepublishRequestWithItem.d.ts +131 -0
  34. package/src/com/controlresell/models/items/platforms/RepublishRequestWithItem.js +11 -0
  35. package/src/com/controlresell/models/items/platforms/RepublishRequestWithItem.ts +10 -0
  36. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +127 -7
  37. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +127 -7
  38. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +127 -7
  39. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +3 -0
  40. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +2 -1
  41. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +2 -1
  42. package/src/index.d.ts +2 -0
  43. package/src/index.js +7 -3
  44. package/src/index.ts +2 -0
@@ -77,5 +77,53 @@ export declare const ItemHistoryDecodedPayloadSchema: z.ZodDiscriminatedUnion<"t
77
77
  soldOrderId: string;
78
78
  soldConversationId?: string | null | undefined;
79
79
  };
80
+ }>, z.ZodObject<{
81
+ type: z.ZodLiteral<"DELIVERED">;
82
+ data: z.ZodObject<{
83
+ soldAccountId: z.ZodString;
84
+ soldOrderId: z.ZodString;
85
+ soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ soldAccountId: string;
88
+ soldOrderId: string;
89
+ soldConversationId?: string | null | undefined;
90
+ }, {
91
+ soldAccountId: string;
92
+ soldOrderId: string;
93
+ soldConversationId?: string | null | undefined;
94
+ }>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ type: "DELIVERED";
97
+ data: {
98
+ soldAccountId: string;
99
+ soldOrderId: string;
100
+ soldConversationId?: string | null | undefined;
101
+ };
102
+ }, {
103
+ type: "DELIVERED";
104
+ data: {
105
+ soldAccountId: string;
106
+ soldOrderId: string;
107
+ soldConversationId?: string | null | undefined;
108
+ };
109
+ }>, z.ZodObject<{
110
+ type: z.ZodLiteral<"REPUBLISHING">;
111
+ data: z.ZodObject<{
112
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ platform: "VINTED" | "SHOPIFY";
115
+ }, {
116
+ platform: "VINTED" | "SHOPIFY";
117
+ }>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type: "REPUBLISHING";
120
+ data: {
121
+ platform: "VINTED" | "SHOPIFY";
122
+ };
123
+ }, {
124
+ type: "REPUBLISHING";
125
+ data: {
126
+ platform: "VINTED" | "SHOPIFY";
127
+ };
80
128
  }>]>;
81
129
  export type ItemHistoryDecodedPayload = z.infer<typeof ItemHistoryDecodedPayloadSchema>;
@@ -5,6 +5,8 @@ const zod_1 = require("zod");
5
5
  const ItemHistoryScheduledPayload_1 = require("./data/ItemHistoryScheduledPayload");
6
6
  const ItemHistoryFailedToPublishPayload_1 = require("./data/ItemHistoryFailedToPublishPayload");
7
7
  const ItemHistoryBuyerPaidPayload_1 = require("./data/ItemHistoryBuyerPaidPayload");
8
+ const ItemHistoryDeliveredPayload_1 = require("./data/ItemHistoryDeliveredPayload");
9
+ const ItemHistoryRepublishing_1 = require("./data/ItemHistoryRepublishing");
8
10
  exports.ItemHistoryDecodedPayloadSchema = zod_1.z.discriminatedUnion("type", [
9
11
  zod_1.z.object({
10
12
  type: zod_1.z.literal("EMPTY"),
@@ -21,4 +23,12 @@ exports.ItemHistoryDecodedPayloadSchema = zod_1.z.discriminatedUnion("type", [
21
23
  type: zod_1.z.literal("BUYER_PAID"),
22
24
  data: ItemHistoryBuyerPaidPayload_1.ItemHistoryBuyerPaidPayloadSchema,
23
25
  }),
26
+ zod_1.z.object({
27
+ type: zod_1.z.literal("DELIVERED"),
28
+ data: ItemHistoryDeliveredPayload_1.ItemHistoryDeliveredPayloadSchema,
29
+ }),
30
+ zod_1.z.object({
31
+ type: zod_1.z.literal("REPUBLISHING"),
32
+ data: ItemHistoryRepublishing_1.ItemHistoryRepublishingSchema,
33
+ }),
24
34
  ]);
@@ -3,6 +3,8 @@ import {z} from "zod"
3
3
  import {ItemHistoryScheduledPayloadSchema} from "./data/ItemHistoryScheduledPayload"
4
4
  import {ItemHistoryFailedToPublishPayloadSchema} from "./data/ItemHistoryFailedToPublishPayload"
5
5
  import {ItemHistoryBuyerPaidPayloadSchema} from "./data/ItemHistoryBuyerPaidPayload"
6
+ import {ItemHistoryDeliveredPayloadSchema} from "./data/ItemHistoryDeliveredPayload"
7
+ import {ItemHistoryRepublishingSchema} from "./data/ItemHistoryRepublishing"
6
8
 
7
9
  export const ItemHistoryDecodedPayloadSchema = z.discriminatedUnion("type", [
8
10
  z.object({
@@ -20,5 +22,13 @@ export const ItemHistoryDecodedPayloadSchema = z.discriminatedUnion("type", [
20
22
  type: z.literal("BUYER_PAID"),
21
23
  data: ItemHistoryBuyerPaidPayloadSchema,
22
24
  }),
25
+ z.object({
26
+ type: z.literal("DELIVERED"),
27
+ data: ItemHistoryDeliveredPayloadSchema,
28
+ }),
29
+ z.object({
30
+ type: z.literal("REPUBLISHING"),
31
+ data: ItemHistoryRepublishingSchema,
32
+ }),
23
33
  ])
24
34
  export type ItemHistoryDecodedPayload = z.infer<typeof ItemHistoryDecodedPayloadSchema>
@@ -1,3 +1,3 @@
1
1
  import { z } from "zod";
2
- export declare const ItemHistoryTypeSchema: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
2
+ export declare const ItemHistoryTypeSchema: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
3
3
  export type ItemHistoryType = z.infer<typeof ItemHistoryTypeSchema>;
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ItemHistoryTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.ItemHistoryTypeSchema = zod_1.z.enum([
6
- "IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"
6
+ "IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"
7
7
  ]);
@@ -1,6 +1,6 @@
1
1
  import {z} from "zod"
2
2
 
3
3
  export const ItemHistoryTypeSchema = z.enum([
4
- "IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"
4
+ "IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"
5
5
  ])
6
6
  export type ItemHistoryType = z.infer<typeof ItemHistoryTypeSchema>
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  export declare const ItemHistoryTypeWithCountSchema: z.ZodObject<{
3
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
3
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "REPUBLISHING", "REPUBLISHED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
4
4
  count: z.ZodNumber;
5
5
  }, "strip", z.ZodTypeAny, {
6
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
6
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
7
7
  count: number;
8
8
  }, {
9
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
9
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
10
10
  count: number;
11
11
  }>;
12
12
  export type ItemHistoryTypeWithCount = z.infer<typeof ItemHistoryTypeWithCountSchema>;
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export declare const ItemHistoryRepublishingSchema: z.ZodObject<{
3
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ platform: "VINTED" | "SHOPIFY";
6
+ }, {
7
+ platform: "VINTED" | "SHOPIFY";
8
+ }>;
9
+ export type ItemHistoryRepublishing = z.infer<typeof ItemHistoryRepublishingSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemHistoryRepublishingSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const controlresell_connector_1 = require("controlresell-connector");
6
+ exports.ItemHistoryRepublishingSchema = zod_1.z.object({
7
+ platform: controlresell_connector_1.AccountPlatformSchema
8
+ });
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+ import {AccountPlatformSchema} from "controlresell-connector"
3
+
4
+ export const ItemHistoryRepublishingSchema = z.object({
5
+ platform: AccountPlatformSchema
6
+ })
7
+ export type ItemHistoryRepublishing = z.infer<typeof ItemHistoryRepublishingSchema>
@@ -1,17 +1,20 @@
1
1
  import { z } from "zod";
2
2
  export declare const ItemOnPlatformsRequestSchema: z.ZodObject<{
3
3
  accountsId: z.ZodArray<z.ZodString, "many">;
4
+ overrideFileIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
4
5
  publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
5
6
  disableGetDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6
7
  locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
8
  }, "strip", z.ZodTypeAny, {
8
9
  accountsId: string[];
9
10
  publishingDate?: Date | null | undefined;
11
+ overrideFileIds?: string[] | null | undefined;
10
12
  disableGetDraft?: boolean | null | undefined;
11
13
  locale?: string | null | undefined;
12
14
  }, {
13
15
  accountsId: string[];
14
16
  publishingDate?: Date | null | undefined;
17
+ overrideFileIds?: string[] | null | undefined;
15
18
  disableGetDraft?: boolean | null | undefined;
16
19
  locale?: string | null | undefined;
17
20
  }>;
@@ -4,6 +4,7 @@ exports.ItemOnPlatformsRequestSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.ItemOnPlatformsRequestSchema = zod_1.z.object({
6
6
  accountsId: zod_1.z.array(zod_1.z.string().uuid()),
7
+ overrideFileIds: zod_1.z.array(zod_1.z.string().uuid()).nullish(),
7
8
  publishingDate: zod_1.z.coerce.date().nullish(),
8
9
  disableGetDraft: zod_1.z.boolean().nullish(),
9
10
  locale: zod_1.z.string().nullish()
@@ -2,6 +2,7 @@ import {z} from "zod"
2
2
 
3
3
  export const ItemOnPlatformsRequestSchema = z.object({
4
4
  accountsId: z.array(z.string().uuid()),
5
+ overrideFileIds: z.array(z.string().uuid()).nullish(),
5
6
  publishingDate: z.coerce.date().nullish(),
6
7
  disableGetDraft: z.boolean().nullish(),
7
8
  locale: z.string().nullish()
@@ -2,39 +2,47 @@ import { z } from "zod";
2
2
  export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
3
3
  request: z.ZodObject<{
4
4
  accountsId: z.ZodArray<z.ZodString, "many">;
5
+ overrideFileIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
5
6
  publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
7
  disableGetDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7
8
  locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
9
  }, "strip", z.ZodTypeAny, {
9
10
  accountsId: string[];
10
11
  publishingDate?: Date | null | undefined;
12
+ overrideFileIds?: string[] | null | undefined;
11
13
  disableGetDraft?: boolean | null | undefined;
12
14
  locale?: string | null | undefined;
13
15
  }, {
14
16
  accountsId: string[];
15
17
  publishingDate?: Date | null | undefined;
18
+ overrideFileIds?: string[] | null | undefined;
16
19
  disableGetDraft?: boolean | null | undefined;
17
20
  locale?: string | null | undefined;
18
21
  }>;
19
22
  itemId: z.ZodNumber;
20
23
  userId: z.ZodNumber;
24
+ platformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
25
  }, "strip", z.ZodTypeAny, {
22
26
  userId: number;
23
27
  itemId: number;
24
28
  request: {
25
29
  accountsId: string[];
26
30
  publishingDate?: Date | null | undefined;
31
+ overrideFileIds?: string[] | null | undefined;
27
32
  disableGetDraft?: boolean | null | undefined;
28
33
  locale?: string | null | undefined;
29
34
  };
35
+ platformId?: string | null | undefined;
30
36
  }, {
31
37
  userId: number;
32
38
  itemId: number;
33
39
  request: {
34
40
  accountsId: string[];
35
41
  publishingDate?: Date | null | undefined;
42
+ overrideFileIds?: string[] | null | undefined;
36
43
  disableGetDraft?: boolean | null | undefined;
37
44
  locale?: string | null | undefined;
38
45
  };
46
+ platformId?: string | null | undefined;
39
47
  }>;
40
48
  export type ItemOnPlatformsRequestWithItem = z.infer<typeof ItemOnPlatformsRequestWithItemSchema>;
@@ -6,5 +6,6 @@ const ItemOnPlatformsRequest_1 = require("./ItemOnPlatformsRequest");
6
6
  exports.ItemOnPlatformsRequestWithItemSchema = zod_1.z.object({
7
7
  request: ItemOnPlatformsRequest_1.ItemOnPlatformsRequestSchema,
8
8
  itemId: zod_1.z.number(),
9
- userId: zod_1.z.number()
9
+ userId: zod_1.z.number(),
10
+ platformId: zod_1.z.string().nullish()
10
11
  });
@@ -4,6 +4,7 @@ import {ItemOnPlatformsRequestSchema} from "./ItemOnPlatformsRequest"
4
4
  export const ItemOnPlatformsRequestWithItemSchema = z.object({
5
5
  request: ItemOnPlatformsRequestSchema,
6
6
  itemId: z.number(),
7
- userId: z.number()
7
+ userId: z.number(),
8
+ platformId: z.string().nullish()
8
9
  })
9
10
  export type ItemOnPlatformsRequestWithItem = z.infer<typeof ItemOnPlatformsRequestWithItemSchema>
@@ -3,13 +3,16 @@ export declare const PlatformInfoSchema: z.ZodObject<{
3
3
  platformId: z.ZodString;
4
4
  platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  platformPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
+ previousPlatformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
7
  }, "strip", z.ZodTypeAny, {
7
8
  platformId: string;
8
9
  platformUrl?: string | null | undefined;
9
10
  platformPrice?: number | null | undefined;
11
+ previousPlatformId?: string | null | undefined;
10
12
  }, {
11
13
  platformId: string;
12
14
  platformUrl?: string | null | undefined;
13
15
  platformPrice?: number | null | undefined;
16
+ previousPlatformId?: string | null | undefined;
14
17
  }>;
15
18
  export type PlatformInfo = z.infer<typeof PlatformInfoSchema>;
@@ -5,5 +5,6 @@ const zod_1 = require("zod");
5
5
  exports.PlatformInfoSchema = zod_1.z.object({
6
6
  platformId: zod_1.z.string(),
7
7
  platformUrl: zod_1.z.string().nullish(),
8
- platformPrice: zod_1.z.number().nullish()
8
+ platformPrice: zod_1.z.number().nullish(),
9
+ previousPlatformId: zod_1.z.string().nullish()
9
10
  });
@@ -3,6 +3,7 @@ import {z} from "zod"
3
3
  export const PlatformInfoSchema = z.object({
4
4
  platformId: z.string(),
5
5
  platformUrl: z.string().nullish(),
6
- platformPrice: z.number().nullish()
6
+ platformPrice: z.number().nullish(),
7
+ previousPlatformId: z.string().nullish()
7
8
  })
8
9
  export type PlatformInfo = z.infer<typeof PlatformInfoSchema>
@@ -0,0 +1,131 @@
1
+ import { z } from "zod";
2
+ export declare const RepublishRequestWithItemSchema: z.ZodObject<{
3
+ request: z.ZodObject<{
4
+ visionPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5
+ doRemoveBackground: z.ZodBoolean;
6
+ doSmartCrop: z.ZodBoolean;
7
+ doChangeBackground: z.ZodBoolean;
8
+ doRotate: z.ZodBoolean;
9
+ doAddBorders: z.ZodBoolean;
10
+ shadow: z.ZodBoolean;
11
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ doRemoveBackground: boolean;
20
+ doSmartCrop: boolean;
21
+ doChangeBackground: boolean;
22
+ doRotate: boolean;
23
+ doAddBorders: boolean;
24
+ shadow: boolean;
25
+ targetWidth?: number | null | undefined;
26
+ targetHeight?: number | null | undefined;
27
+ newBackgroundColor?: string | null | undefined;
28
+ newBackgroundUrl?: string | null | undefined;
29
+ rotationAngle?: number | null | undefined;
30
+ borderSize?: number | null | undefined;
31
+ borderColor?: string | null | undefined;
32
+ }, {
33
+ doRemoveBackground: boolean;
34
+ doSmartCrop: boolean;
35
+ doChangeBackground: boolean;
36
+ doRotate: boolean;
37
+ doAddBorders: boolean;
38
+ shadow: boolean;
39
+ targetWidth?: number | null | undefined;
40
+ targetHeight?: number | null | undefined;
41
+ newBackgroundColor?: string | null | undefined;
42
+ newBackgroundUrl?: string | null | undefined;
43
+ rotationAngle?: number | null | undefined;
44
+ borderSize?: number | null | undefined;
45
+ borderColor?: string | null | undefined;
46
+ }>>>;
47
+ accountsId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ accountsId?: string[] | null | undefined;
50
+ visionPayload?: {
51
+ doRemoveBackground: boolean;
52
+ doSmartCrop: boolean;
53
+ doChangeBackground: boolean;
54
+ doRotate: boolean;
55
+ doAddBorders: boolean;
56
+ shadow: boolean;
57
+ targetWidth?: number | null | undefined;
58
+ targetHeight?: number | null | undefined;
59
+ newBackgroundColor?: string | null | undefined;
60
+ newBackgroundUrl?: string | null | undefined;
61
+ rotationAngle?: number | null | undefined;
62
+ borderSize?: number | null | undefined;
63
+ borderColor?: string | null | undefined;
64
+ } | null | undefined;
65
+ }, {
66
+ accountsId?: string[] | null | undefined;
67
+ visionPayload?: {
68
+ doRemoveBackground: boolean;
69
+ doSmartCrop: boolean;
70
+ doChangeBackground: boolean;
71
+ doRotate: boolean;
72
+ doAddBorders: boolean;
73
+ shadow: boolean;
74
+ targetWidth?: number | null | undefined;
75
+ targetHeight?: number | null | undefined;
76
+ newBackgroundColor?: string | null | undefined;
77
+ newBackgroundUrl?: string | null | undefined;
78
+ rotationAngle?: number | null | undefined;
79
+ borderSize?: number | null | undefined;
80
+ borderColor?: string | null | undefined;
81
+ } | null | undefined;
82
+ }>;
83
+ itemId: z.ZodNumber;
84
+ userId: z.ZodNumber;
85
+ platformId: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ userId: number;
88
+ itemId: number;
89
+ platformId: string;
90
+ request: {
91
+ accountsId?: string[] | null | undefined;
92
+ visionPayload?: {
93
+ doRemoveBackground: boolean;
94
+ doSmartCrop: boolean;
95
+ doChangeBackground: boolean;
96
+ doRotate: boolean;
97
+ doAddBorders: boolean;
98
+ shadow: boolean;
99
+ targetWidth?: number | null | undefined;
100
+ targetHeight?: number | null | undefined;
101
+ newBackgroundColor?: string | null | undefined;
102
+ newBackgroundUrl?: string | null | undefined;
103
+ rotationAngle?: number | null | undefined;
104
+ borderSize?: number | null | undefined;
105
+ borderColor?: string | null | undefined;
106
+ } | null | undefined;
107
+ };
108
+ }, {
109
+ userId: number;
110
+ itemId: number;
111
+ platformId: string;
112
+ request: {
113
+ accountsId?: string[] | null | undefined;
114
+ visionPayload?: {
115
+ doRemoveBackground: boolean;
116
+ doSmartCrop: boolean;
117
+ doChangeBackground: boolean;
118
+ doRotate: boolean;
119
+ doAddBorders: boolean;
120
+ shadow: boolean;
121
+ targetWidth?: number | null | undefined;
122
+ targetHeight?: number | null | undefined;
123
+ newBackgroundColor?: string | null | undefined;
124
+ newBackgroundUrl?: string | null | undefined;
125
+ rotationAngle?: number | null | undefined;
126
+ borderSize?: number | null | undefined;
127
+ borderColor?: string | null | undefined;
128
+ } | null | undefined;
129
+ };
130
+ }>;
131
+ export type RepublishRequestWithItem = z.infer<typeof RepublishRequestWithItemSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RepublishRequestWithItemSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const RepublishRequest_1 = require("./RepublishRequest");
6
+ exports.RepublishRequestWithItemSchema = zod_1.z.object({
7
+ request: RepublishRequest_1.RepublishRequestSchema,
8
+ itemId: zod_1.z.number(),
9
+ userId: zod_1.z.number(),
10
+ platformId: zod_1.z.string()
11
+ });
@@ -0,0 +1,10 @@
1
+ import {z} from "zod"
2
+ import {RepublishRequestSchema} from "./RepublishRequest"
3
+
4
+ export const RepublishRequestWithItemSchema = z.object({
5
+ request: RepublishRequestSchema,
6
+ itemId: z.number(),
7
+ userId: z.number(),
8
+ platformId: z.string()
9
+ })
10
+ export type RepublishRequestWithItem = z.infer<typeof RepublishRequestWithItemSchema>