controlresell 2.1.12 → 2.1.13

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 (32) hide show
  1. package/package.json +3 -3
  2. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -0
  3. package/src/com/controlresell/models/items/ItemFiltersContext.js +1 -0
  4. package/src/com/controlresell/models/items/ItemFiltersContext.ts +1 -0
  5. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +0 -33
  6. package/src/com/controlresell/models/items/ItemsWithFilters.js +1 -3
  7. package/src/com/controlresell/models/items/ItemsWithFilters.ts +1 -3
  8. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +7 -0
  9. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
  10. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +2 -1
  11. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +2 -1
  12. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +5 -0
  13. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +61 -164
  14. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
  15. package/src/com/controlresell/models/platforms/orders/Order.d.ts +5 -5
  16. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -5
  17. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
  18. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +9 -9
  19. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +33 -0
  20. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +16 -0
  21. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +15 -0
  22. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +39 -0
  23. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +19 -0
  24. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +18 -0
  25. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +27 -0
  26. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +13 -0
  27. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.ts +12 -0
  28. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
  29. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
  30. package/src/index.d.ts +141 -138
  31. package/src/index.js +285 -152
  32. package/src/index.ts +141 -138
@@ -1,18 +1,18 @@
1
1
  import { z } from "zod";
2
2
  export declare const UpdateOrderPayloadSchema: z.ZodObject<{
3
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "UNKNOWN"]>>>;
3
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "UNKNOWN"]>>>;
4
4
  conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
7
  date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN" | null | undefined;
9
+ status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN" | null | undefined;
10
10
  date?: Date | null | undefined;
11
11
  price?: number | null | undefined;
12
12
  transactionId?: string | null | undefined;
13
13
  conversationId?: string | null | undefined;
14
14
  }, {
15
- status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN" | null | undefined;
15
+ status?: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN" | null | undefined;
16
16
  date?: Date | null | undefined;
17
17
  price?: number | null | undefined;
18
18
  transactionId?: string | null | undefined;
@@ -4,7 +4,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  accountId: z.ZodString;
6
6
  platformOrderId: z.ZodString;
7
- status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "UNKNOWN"]>;
7
+ status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING", "SHIPPING_LABEL_ORDERED", "UNKNOWN"]>;
8
8
  conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
10
  price: z.ZodNumber;
@@ -192,7 +192,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
192
192
  } | null | undefined;
193
193
  }>, "many">>>;
194
194
  }, "strip", z.ZodTypeAny, {
195
- status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
195
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
196
196
  id: string;
197
197
  date: Date;
198
198
  price: number;
@@ -219,7 +219,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
219
219
  } | null | undefined;
220
220
  }[] | null | undefined;
221
221
  transactionId?: string | null | undefined;
222
- conversationId?: string | null | undefined;
223
222
  labels?: {
224
223
  id: string;
225
224
  fileId: string;
@@ -240,8 +239,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
240
239
  createdAt: Date;
241
240
  } | null | undefined;
242
241
  }[] | null | undefined;
242
+ conversationId?: string | null | undefined;
243
243
  }, {
244
- status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
244
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
245
245
  id: string;
246
246
  date: Date;
247
247
  price: number;
@@ -268,7 +268,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
268
268
  } | null | undefined;
269
269
  }[] | null | undefined;
270
270
  transactionId?: string | null | undefined;
271
- conversationId?: string | null | undefined;
272
271
  labels?: {
273
272
  id: string;
274
273
  fileId: string;
@@ -289,6 +288,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
289
288
  createdAt: Date;
290
289
  } | null | undefined;
291
290
  }[] | null | undefined;
291
+ conversationId?: string | null | undefined;
292
292
  }>;
293
293
  items: z.ZodArray<z.ZodObject<{
294
294
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -912,7 +912,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
912
912
  }[] | null | undefined;
913
913
  }[];
914
914
  order: {
915
- status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
915
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
916
916
  id: string;
917
917
  date: Date;
918
918
  price: number;
@@ -939,7 +939,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
939
939
  } | null | undefined;
940
940
  }[] | null | undefined;
941
941
  transactionId?: string | null | undefined;
942
- conversationId?: string | null | undefined;
943
942
  labels?: {
944
943
  id: string;
945
944
  fileId: string;
@@ -960,6 +959,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
960
959
  createdAt: Date;
961
960
  } | null | undefined;
962
961
  }[] | null | undefined;
962
+ conversationId?: string | null | undefined;
963
963
  };
964
964
  }, {
965
965
  items: {
@@ -1073,7 +1073,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1073
1073
  }[] | null | undefined;
1074
1074
  }[];
1075
1075
  order: {
1076
- status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
1076
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELLED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
1077
1077
  id: string;
1078
1078
  date: Date;
1079
1079
  price: number;
@@ -1100,7 +1100,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1100
1100
  } | null | undefined;
1101
1101
  }[] | null | undefined;
1102
1102
  transactionId?: string | null | undefined;
1103
- conversationId?: string | null | undefined;
1104
1103
  labels?: {
1105
1104
  id: string;
1106
1105
  fileId: string;
@@ -1121,6 +1120,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1121
1120
  createdAt: Date;
1122
1121
  } | null | undefined;
1123
1122
  }[] | null | undefined;
1123
+ conversationId?: string | null | undefined;
1124
1124
  };
1125
1125
  }>;
1126
1126
  export type OrderWithItems = z.infer<typeof OrderWithItemsSchema>;
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ export declare const CreatePlatformPreferencePayloadSchema: z.ZodObject<{
3
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ platform: z.ZodOptional<z.ZodNullable<z.ZodEnum<["VINTED", "SHOPIFY"]>>>;
5
+ doRemoveBackground: z.ZodBoolean;
6
+ doSmartCrop: z.ZodBoolean;
7
+ doChangeBackground: z.ZodBoolean;
8
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ doRemoveBackground: boolean;
14
+ doSmartCrop: boolean;
15
+ doChangeBackground: boolean;
16
+ platform?: "VINTED" | "SHOPIFY" | null | undefined;
17
+ accountId?: string | null | undefined;
18
+ targetWidth?: number | null | undefined;
19
+ targetHeight?: number | null | undefined;
20
+ newBackgroundColor?: string | null | undefined;
21
+ newBackgroundUrl?: string | null | undefined;
22
+ }, {
23
+ doRemoveBackground: boolean;
24
+ doSmartCrop: boolean;
25
+ doChangeBackground: boolean;
26
+ platform?: "VINTED" | "SHOPIFY" | null | undefined;
27
+ accountId?: string | null | undefined;
28
+ targetWidth?: number | null | undefined;
29
+ targetHeight?: number | null | undefined;
30
+ newBackgroundColor?: string | null | undefined;
31
+ newBackgroundUrl?: string | null | undefined;
32
+ }>;
33
+ export type CreatePlatformPreferencePayload = z.infer<typeof CreatePlatformPreferencePayloadSchema>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePlatformPreferencePayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const controlresell_connector_1 = require("controlresell-connector");
6
+ exports.CreatePlatformPreferencePayloadSchema = zod_1.z.object({
7
+ accountId: zod_1.z.string().uuid().nullish(),
8
+ platform: controlresell_connector_1.AccountPlatformSchema.nullish(),
9
+ doRemoveBackground: zod_1.z.boolean(),
10
+ doSmartCrop: zod_1.z.boolean(),
11
+ doChangeBackground: zod_1.z.boolean(),
12
+ targetWidth: zod_1.z.number().int().nullish(),
13
+ targetHeight: zod_1.z.number().int().nullish(),
14
+ newBackgroundColor: zod_1.z.string().nullish(),
15
+ newBackgroundUrl: zod_1.z.string().nullish()
16
+ });
@@ -0,0 +1,15 @@
1
+ import {z} from "zod"
2
+ import {AccountPlatformSchema} from "controlresell-connector"
3
+
4
+ export const CreatePlatformPreferencePayloadSchema = z.object({
5
+ accountId: z.string().uuid().nullish(),
6
+ platform: AccountPlatformSchema.nullish(),
7
+ doRemoveBackground: z.boolean(),
8
+ doSmartCrop: z.boolean(),
9
+ doChangeBackground: z.boolean(),
10
+ targetWidth: z.number().int().nullish(),
11
+ targetHeight: z.number().int().nullish(),
12
+ newBackgroundColor: z.string().nullish(),
13
+ newBackgroundUrl: z.string().nullish()
14
+ })
15
+ export type CreatePlatformPreferencePayload = z.infer<typeof CreatePlatformPreferencePayloadSchema>
@@ -0,0 +1,39 @@
1
+ import { z } from "zod";
2
+ export declare const PlatformPreferenceSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ accountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ platform: z.ZodOptional<z.ZodNullable<z.ZodEnum<["VINTED", "SHOPIFY"]>>>;
6
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
7
+ doRemoveBackground: z.ZodBoolean;
8
+ doSmartCrop: z.ZodBoolean;
9
+ doChangeBackground: z.ZodBoolean;
10
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ userId: string | number;
17
+ doRemoveBackground: boolean;
18
+ doSmartCrop: boolean;
19
+ doChangeBackground: boolean;
20
+ platform?: "VINTED" | "SHOPIFY" | null | undefined;
21
+ accountId?: string | null | undefined;
22
+ targetWidth?: number | null | undefined;
23
+ targetHeight?: number | null | undefined;
24
+ newBackgroundColor?: string | null | undefined;
25
+ newBackgroundUrl?: string | null | undefined;
26
+ }, {
27
+ id: string;
28
+ userId: string | number;
29
+ doRemoveBackground: boolean;
30
+ doSmartCrop: boolean;
31
+ doChangeBackground: boolean;
32
+ platform?: "VINTED" | "SHOPIFY" | null | undefined;
33
+ accountId?: string | null | undefined;
34
+ targetWidth?: number | null | undefined;
35
+ targetHeight?: number | null | undefined;
36
+ newBackgroundColor?: string | null | undefined;
37
+ newBackgroundUrl?: string | null | undefined;
38
+ }>;
39
+ export type PlatformPreference = z.infer<typeof PlatformPreferenceSchema>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformPreferenceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const zodable_idschema_1 = require("zodable-idschema");
6
+ const controlresell_connector_1 = require("controlresell-connector");
7
+ exports.PlatformPreferenceSchema = zod_1.z.object({
8
+ id: zod_1.z.string().uuid(),
9
+ accountId: zod_1.z.string().uuid().nullish(),
10
+ platform: controlresell_connector_1.AccountPlatformSchema.nullish(),
11
+ userId: zodable_idschema_1.IdSchema,
12
+ doRemoveBackground: zod_1.z.boolean(),
13
+ doSmartCrop: zod_1.z.boolean(),
14
+ doChangeBackground: zod_1.z.boolean(),
15
+ targetWidth: zod_1.z.number().int().nullish(),
16
+ targetHeight: zod_1.z.number().int().nullish(),
17
+ newBackgroundColor: zod_1.z.string().nullish(),
18
+ newBackgroundUrl: zod_1.z.string().nullish()
19
+ });
@@ -0,0 +1,18 @@
1
+ import {z} from "zod"
2
+ import {IdSchema} from "zodable-idschema"
3
+ import {AccountPlatformSchema} from "controlresell-connector"
4
+
5
+ export const PlatformPreferenceSchema = z.object({
6
+ id: z.string().uuid(),
7
+ accountId: z.string().uuid().nullish(),
8
+ platform: AccountPlatformSchema.nullish(),
9
+ userId: IdSchema,
10
+ doRemoveBackground: z.boolean(),
11
+ doSmartCrop: z.boolean(),
12
+ doChangeBackground: z.boolean(),
13
+ targetWidth: z.number().int().nullish(),
14
+ targetHeight: z.number().int().nullish(),
15
+ newBackgroundColor: z.string().nullish(),
16
+ newBackgroundUrl: z.string().nullish()
17
+ })
18
+ export type PlatformPreference = z.infer<typeof PlatformPreferenceSchema>
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ export declare const UpdatePlatformPreferencePayloadSchema: z.ZodObject<{
3
+ doRemoveBackground: z.ZodBoolean;
4
+ doSmartCrop: z.ZodBoolean;
5
+ doChangeBackground: z.ZodBoolean;
6
+ targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
+ targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
+ newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ doRemoveBackground: boolean;
12
+ doSmartCrop: boolean;
13
+ doChangeBackground: boolean;
14
+ targetWidth?: number | null | undefined;
15
+ targetHeight?: number | null | undefined;
16
+ newBackgroundColor?: string | null | undefined;
17
+ newBackgroundUrl?: string | null | undefined;
18
+ }, {
19
+ doRemoveBackground: boolean;
20
+ doSmartCrop: boolean;
21
+ doChangeBackground: boolean;
22
+ targetWidth?: number | null | undefined;
23
+ targetHeight?: number | null | undefined;
24
+ newBackgroundColor?: string | null | undefined;
25
+ newBackgroundUrl?: string | null | undefined;
26
+ }>;
27
+ export type UpdatePlatformPreferencePayload = z.infer<typeof UpdatePlatformPreferencePayloadSchema>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePlatformPreferencePayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.UpdatePlatformPreferencePayloadSchema = zod_1.z.object({
6
+ doRemoveBackground: zod_1.z.boolean(),
7
+ doSmartCrop: zod_1.z.boolean(),
8
+ doChangeBackground: zod_1.z.boolean(),
9
+ targetWidth: zod_1.z.number().int().nullish(),
10
+ targetHeight: zod_1.z.number().int().nullish(),
11
+ newBackgroundColor: zod_1.z.string().nullish(),
12
+ newBackgroundUrl: zod_1.z.string().nullish()
13
+ });
@@ -0,0 +1,12 @@
1
+ import {z} from "zod"
2
+
3
+ export const UpdatePlatformPreferencePayloadSchema = z.object({
4
+ doRemoveBackground: z.boolean(),
5
+ doSmartCrop: z.boolean(),
6
+ doChangeBackground: z.boolean(),
7
+ targetWidth: z.number().int().nullish(),
8
+ targetHeight: z.number().int().nullish(),
9
+ newBackgroundColor: z.string().nullish(),
10
+ newBackgroundUrl: z.string().nullish()
11
+ })
12
+ export type UpdatePlatformPreferencePayload = z.infer<typeof UpdatePlatformPreferencePayloadSchema>
@@ -19,7 +19,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
19
19
  platform: "VINTED" | "SHOPIFY";
20
20
  accountId: string;
21
21
  }>;
22
- job: z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>;
22
+ job: z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>;
23
23
  done: z.ZodBoolean;
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  account: {
@@ -29,7 +29,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
29
29
  platform: "VINTED" | "SHOPIFY";
30
30
  accountId: string;
31
31
  };
32
- job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
32
+ job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
33
33
  done: boolean;
34
34
  }, {
35
35
  account: {
@@ -39,7 +39,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
39
39
  platform: "VINTED" | "SHOPIFY";
40
40
  accountId: string;
41
41
  };
42
- job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
42
+ job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
43
43
  done: boolean;
44
44
  }>;
45
45
  export type PlatformJobUpdate = z.infer<typeof PlatformJobUpdateSchema>;
@@ -2,17 +2,17 @@ import { z } from "zod";
2
2
  export declare const UserOnPlatformSessionMessageSchema: z.ZodObject<{
3
3
  otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4
4
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
- launch: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
6
- done: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
5
+ launch: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
6
+ done: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  error?: string | null | undefined;
9
9
  otp?: number | null | undefined;
10
- done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
11
- launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
10
+ done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
11
+ launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
12
12
  }, {
13
13
  error?: string | null | undefined;
14
14
  otp?: number | null | undefined;
15
- done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
16
- launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
15
+ done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
16
+ launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
17
17
  }>;
18
18
  export type UserOnPlatformSessionMessage = z.infer<typeof UserOnPlatformSessionMessageSchema>;