controlresell 2.2.12 → 2.3.2

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 (81) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -6
  3. package/src/com/controlresell/models/catalogs/Catalog.js +2 -3
  4. package/src/com/controlresell/models/catalogs/Catalog.ts +2 -3
  5. package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -10
  6. package/src/com/controlresell/models/items/CreatedItems.d.ts +139 -130
  7. package/src/com/controlresell/models/items/Item.d.ts +111 -104
  8. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +139 -130
  9. package/src/com/controlresell/models/items/UpdatedItem.d.ts +139 -130
  10. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +71 -71
  11. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +78 -78
  12. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +156 -18
  13. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +32 -26
  14. package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +43 -26
  15. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +5 -0
  16. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +5 -0
  17. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +2 -2
  18. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +4 -4
  19. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +15 -0
  20. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +5 -0
  21. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +21 -0
  22. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +6 -0
  23. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +4 -0
  24. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +4 -0
  25. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +6 -0
  26. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +4 -1
  27. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +4 -1
  28. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.d.ts +3 -0
  29. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.js +7 -0
  30. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.ts +6 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +6 -0
  32. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +4 -0
  33. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +4 -0
  34. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +10 -0
  35. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +6 -0
  36. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +4 -0
  37. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +4 -0
  38. package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +26 -0
  39. package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +5 -0
  40. package/src/com/controlresell/models/platforms/orders/Order.d.ts +9 -0
  41. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -0
  42. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +7 -0
  43. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +150 -130
  44. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +9 -0
  45. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +7 -0
  46. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +150 -130
  47. package/src/com/controlresell/models/preferences/Preference.d.ts +356 -356
  48. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +144 -130
  49. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +1121 -1121
  50. package/src/com/controlresell/models/preferences/PreferenceWithChildren.d.ts +815 -815
  51. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +275 -275
  52. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +276 -276
  53. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +286 -286
  54. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +31 -31
  55. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +96 -5
  56. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +20 -16
  57. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +27 -16
  58. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +41 -41
  59. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +3476 -41
  60. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +3 -1
  61. package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +3 -1
  62. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +229 -229
  63. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +232 -232
  64. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +541 -83
  65. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.js +33 -27
  66. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.ts +44 -27
  67. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +229 -229
  68. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +5 -0
  69. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +5 -0
  70. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +3 -0
  71. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js +1 -0
  72. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.ts +1 -0
  73. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +3 -0
  74. package/src/com/controlresell/models/users/platforms/UserOnPlatform.js +1 -0
  75. package/src/com/controlresell/models/users/platforms/UserOnPlatform.ts +1 -0
  76. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +1205 -0
  77. package/src/com/controlresell/models/users/ws/UserWsPayload.js +34 -0
  78. package/src/com/controlresell/models/users/ws/UserWsPayload.ts +43 -0
  79. package/src/index.d.ts +2 -0
  80. package/src/index.js +7 -3
  81. package/src/index.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "2.2.12",
3
+ "version": "2.3.2",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "controlresell-connector": "^0.3.7",
21
- "zod": "^3.25.67",
21
+ "zod": "^3.25.76",
22
22
  "zodable-idschema": "^1.0.0",
23
23
  "zodable-kotlin-primitives": "^1.0.0"
24
24
  }
@@ -1,18 +1,15 @@
1
1
  import { z } from "zod";
2
2
  export declare const CatalogSchema: z.ZodObject<{
3
3
  id: z.ZodNumber;
4
- sizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
4
+ multipleSizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
5
5
  title: z.ZodString;
6
- disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
7
6
  }, "strip", z.ZodTypeAny, {
8
7
  id: number;
9
8
  title: string;
10
- sizeGroupIds?: number[] | null | undefined;
11
- disabledFields?: string[] | null | undefined;
9
+ multipleSizeGroupIds?: number[] | null | undefined;
12
10
  }, {
13
11
  id: number;
14
12
  title: string;
15
- sizeGroupIds?: number[] | null | undefined;
16
- disabledFields?: string[] | null | undefined;
13
+ multipleSizeGroupIds?: number[] | null | undefined;
17
14
  }>;
18
15
  export type Catalog = z.infer<typeof CatalogSchema>;
@@ -4,7 +4,6 @@ exports.CatalogSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.CatalogSchema = zod_1.z.object({
6
6
  id: zod_1.z.number(),
7
- sizeGroupIds: zod_1.z.array(zod_1.z.number()).nullish(),
8
- title: zod_1.z.string(),
9
- disabledFields: zod_1.z.array(zod_1.z.string()).nullish()
7
+ multipleSizeGroupIds: zod_1.z.array(zod_1.z.number()).nullish(),
8
+ title: zod_1.z.string()
10
9
  });
@@ -2,8 +2,7 @@ import {z} from "zod"
2
2
 
3
3
  export const CatalogSchema = z.object({
4
4
  id: z.number(),
5
- sizeGroupIds: z.array(z.number()).nullish(),
6
- title: z.string(),
7
- disabledFields: z.array(z.string()).nullish()
5
+ multipleSizeGroupIds: z.array(z.number()).nullish(),
6
+ title: z.string()
8
7
  })
9
8
  export type Catalog = z.infer<typeof CatalogSchema>
@@ -2,33 +2,28 @@ import { z } from "zod";
2
2
  export declare const CatalogRootSchema: z.ZodObject<{
3
3
  catalogs: z.ZodArray<z.ZodObject<{
4
4
  id: z.ZodNumber;
5
- sizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
5
+ multipleSizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
6
6
  title: z.ZodString;
7
- disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
8
7
  }, "strip", z.ZodTypeAny, {
9
8
  id: number;
10
9
  title: string;
11
- sizeGroupIds?: number[] | null | undefined;
12
- disabledFields?: string[] | null | undefined;
10
+ multipleSizeGroupIds?: number[] | null | undefined;
13
11
  }, {
14
12
  id: number;
15
13
  title: string;
16
- sizeGroupIds?: number[] | null | undefined;
17
- disabledFields?: string[] | null | undefined;
14
+ multipleSizeGroupIds?: number[] | null | undefined;
18
15
  }>, "many">;
19
16
  }, "strip", z.ZodTypeAny, {
20
17
  catalogs: {
21
18
  id: number;
22
19
  title: string;
23
- sizeGroupIds?: number[] | null | undefined;
24
- disabledFields?: string[] | null | undefined;
20
+ multipleSizeGroupIds?: number[] | null | undefined;
25
21
  }[];
26
22
  }, {
27
23
  catalogs: {
28
24
  id: number;
29
25
  title: string;
30
- sizeGroupIds?: number[] | null | undefined;
31
- disabledFields?: string[] | null | undefined;
26
+ multipleSizeGroupIds?: number[] | null | undefined;
32
27
  }[];
33
28
  }>;
34
29
  export type CatalogRoot = z.infer<typeof CatalogRootSchema>;
@@ -222,56 +222,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
222
222
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
223
223
  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"]>;
224
224
  data: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
225
- type: z.ZodLiteral<"EMPTY">;
226
- }, "strip", z.ZodTypeAny, {
227
- type: "EMPTY";
228
- }, {
229
- type: "EMPTY";
230
- }>, z.ZodObject<{
231
- type: z.ZodLiteral<"SCHEDULED">;
232
- data: z.ZodObject<{
233
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
234
- publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
235
- }, "strip", z.ZodTypeAny, {
236
- platform: "VINTED" | "SHOPIFY";
237
- publishingDate?: Date | null | undefined;
238
- }, {
239
- platform: "VINTED" | "SHOPIFY";
240
- publishingDate?: Date | null | undefined;
241
- }>;
242
- }, "strip", z.ZodTypeAny, {
243
- type: "SCHEDULED";
244
- data: {
245
- platform: "VINTED" | "SHOPIFY";
246
- publishingDate?: Date | null | undefined;
247
- };
248
- }, {
249
- type: "SCHEDULED";
250
- data: {
251
- platform: "VINTED" | "SHOPIFY";
252
- publishingDate?: Date | null | undefined;
253
- };
254
- }>, z.ZodObject<{
255
- type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
256
- data: z.ZodObject<{
257
- platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
258
- }, "strip", z.ZodTypeAny, {
259
- platform: "VINTED" | "SHOPIFY";
260
- }, {
261
- platform: "VINTED" | "SHOPIFY";
262
- }>;
263
- }, "strip", z.ZodTypeAny, {
264
- type: "FAILED_TO_PUBLISH";
265
- data: {
266
- platform: "VINTED" | "SHOPIFY";
267
- };
268
- }, {
269
- type: "FAILED_TO_PUBLISH";
270
- data: {
271
- platform: "VINTED" | "SHOPIFY";
272
- };
273
- }>, z.ZodObject<{
274
- type: z.ZodLiteral<"BUYER_PAID">;
275
225
  data: z.ZodObject<{
276
226
  soldAccountId: z.ZodString;
277
227
  soldOrderId: z.ZodString;
@@ -285,6 +235,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
285
235
  soldOrderId: string;
286
236
  soldConversationId?: string | null | undefined;
287
237
  }>;
238
+ type: z.ZodLiteral<"BUYER_PAID">;
288
239
  }, "strip", z.ZodTypeAny, {
289
240
  type: "BUYER_PAID";
290
241
  data: {
@@ -300,7 +251,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
300
251
  soldConversationId?: string | null | undefined;
301
252
  };
302
253
  }>, z.ZodObject<{
303
- type: z.ZodLiteral<"DELIVERED">;
304
254
  data: z.ZodObject<{
305
255
  soldAccountId: z.ZodString;
306
256
  soldOrderId: z.ZodString;
@@ -314,6 +264,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
314
264
  soldOrderId: string;
315
265
  soldConversationId?: string | null | undefined;
316
266
  }>;
267
+ type: z.ZodLiteral<"DELIVERED">;
317
268
  }, "strip", z.ZodTypeAny, {
318
269
  type: "DELIVERED";
319
270
  data: {
@@ -329,7 +280,31 @@ export declare const CreatedItemsSchema: z.ZodObject<{
329
280
  soldConversationId?: string | null | undefined;
330
281
  };
331
282
  }>, z.ZodObject<{
332
- type: z.ZodLiteral<"REPUBLISHING">;
283
+ type: z.ZodLiteral<"EMPTY">;
284
+ }, "strip", z.ZodTypeAny, {
285
+ type: "EMPTY";
286
+ }, {
287
+ type: "EMPTY";
288
+ }>, z.ZodObject<{
289
+ data: z.ZodObject<{
290
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ platform: "VINTED" | "SHOPIFY";
293
+ }, {
294
+ platform: "VINTED" | "SHOPIFY";
295
+ }>;
296
+ type: z.ZodLiteral<"FAILED_TO_PUBLISH">;
297
+ }, "strip", z.ZodTypeAny, {
298
+ type: "FAILED_TO_PUBLISH";
299
+ data: {
300
+ platform: "VINTED" | "SHOPIFY";
301
+ };
302
+ }, {
303
+ type: "FAILED_TO_PUBLISH";
304
+ data: {
305
+ platform: "VINTED" | "SHOPIFY";
306
+ };
307
+ }>, z.ZodObject<{
333
308
  data: z.ZodObject<{
334
309
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
335
310
  }, "strip", z.ZodTypeAny, {
@@ -337,6 +312,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
337
312
  }, {
338
313
  platform: "VINTED" | "SHOPIFY";
339
314
  }>;
315
+ type: z.ZodLiteral<"REPUBLISHING">;
340
316
  }, "strip", z.ZodTypeAny, {
341
317
  type: "REPUBLISHING";
342
318
  data: {
@@ -347,27 +323,38 @@ export declare const CreatedItemsSchema: z.ZodObject<{
347
323
  data: {
348
324
  platform: "VINTED" | "SHOPIFY";
349
325
  };
350
- }>]>>>;
351
- createdAt: z.ZodDate;
352
- }, "strip", z.ZodTypeAny, {
353
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
354
- id: string;
355
- createdAt: Date;
356
- itemId: string | number;
357
- data?: {
358
- type: "EMPTY";
359
- } | {
326
+ }>, z.ZodObject<{
327
+ data: z.ZodObject<{
328
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
329
+ publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ platform: "VINTED" | "SHOPIFY";
332
+ publishingDate?: Date | null | undefined;
333
+ }, {
334
+ platform: "VINTED" | "SHOPIFY";
335
+ publishingDate?: Date | null | undefined;
336
+ }>;
337
+ type: z.ZodLiteral<"SCHEDULED">;
338
+ }, "strip", z.ZodTypeAny, {
360
339
  type: "SCHEDULED";
361
340
  data: {
362
341
  platform: "VINTED" | "SHOPIFY";
363
342
  publishingDate?: Date | null | undefined;
364
343
  };
365
- } | {
366
- type: "FAILED_TO_PUBLISH";
344
+ }, {
345
+ type: "SCHEDULED";
367
346
  data: {
368
347
  platform: "VINTED" | "SHOPIFY";
348
+ publishingDate?: Date | null | undefined;
369
349
  };
370
- } | {
350
+ }>]>>>;
351
+ createdAt: z.ZodDate;
352
+ }, "strip", z.ZodTypeAny, {
353
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
354
+ id: string;
355
+ createdAt: Date;
356
+ itemId: string | number;
357
+ data?: {
371
358
  type: "BUYER_PAID";
372
359
  data: {
373
360
  soldAccountId: string;
@@ -382,30 +369,30 @@ export declare const CreatedItemsSchema: z.ZodObject<{
382
369
  soldConversationId?: string | null | undefined;
383
370
  };
384
371
  } | {
385
- type: "REPUBLISHING";
372
+ type: "EMPTY";
373
+ } | {
374
+ type: "FAILED_TO_PUBLISH";
386
375
  data: {
387
376
  platform: "VINTED" | "SHOPIFY";
388
377
  };
389
- } | null | undefined;
390
- }, {
391
- type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
392
- id: string;
393
- createdAt: Date;
394
- itemId: string | number;
395
- data?: {
396
- type: "EMPTY";
397
378
  } | {
398
- type: "SCHEDULED";
379
+ type: "REPUBLISHING";
399
380
  data: {
400
381
  platform: "VINTED" | "SHOPIFY";
401
- publishingDate?: Date | null | undefined;
402
382
  };
403
383
  } | {
404
- type: "FAILED_TO_PUBLISH";
384
+ type: "SCHEDULED";
405
385
  data: {
406
386
  platform: "VINTED" | "SHOPIFY";
387
+ publishingDate?: Date | null | undefined;
407
388
  };
408
- } | {
389
+ } | null | undefined;
390
+ }, {
391
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "REPUBLISHING" | "REPUBLISHED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
392
+ id: string;
393
+ createdAt: Date;
394
+ itemId: string | number;
395
+ data?: {
409
396
  type: "BUYER_PAID";
410
397
  data: {
411
398
  soldAccountId: string;
@@ -419,11 +406,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
419
406
  soldOrderId: string;
420
407
  soldConversationId?: string | null | undefined;
421
408
  };
409
+ } | {
410
+ type: "EMPTY";
411
+ } | {
412
+ type: "FAILED_TO_PUBLISH";
413
+ data: {
414
+ platform: "VINTED" | "SHOPIFY";
415
+ };
422
416
  } | {
423
417
  type: "REPUBLISHING";
424
418
  data: {
425
419
  platform: "VINTED" | "SHOPIFY";
426
420
  };
421
+ } | {
422
+ type: "SCHEDULED";
423
+ data: {
424
+ platform: "VINTED" | "SHOPIFY";
425
+ publishingDate?: Date | null | undefined;
426
+ };
427
427
  } | null | undefined;
428
428
  }>>>;
429
429
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -439,6 +439,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
439
439
  accountId: z.ZodString;
440
440
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
441
441
  name: z.ZodString;
442
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
442
443
  status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
443
444
  }, "strip", z.ZodTypeAny, {
444
445
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
@@ -446,12 +447,14 @@ export declare const CreatedItemsSchema: z.ZodObject<{
446
447
  name: string;
447
448
  platform: "VINTED" | "SHOPIFY";
448
449
  accountId: string;
450
+ locale?: string | null | undefined;
449
451
  }, {
450
452
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
451
453
  userId: string | number;
452
454
  name: string;
453
455
  platform: "VINTED" | "SHOPIFY";
454
456
  accountId: string;
457
+ locale?: string | null | undefined;
455
458
  }>>>;
456
459
  }, "strip", z.ZodTypeAny, {
457
460
  status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
@@ -467,6 +470,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
467
470
  name: string;
468
471
  platform: "VINTED" | "SHOPIFY";
469
472
  accountId: string;
473
+ locale?: string | null | undefined;
470
474
  } | null | undefined;
471
475
  }, {
472
476
  status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
@@ -482,6 +486,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
482
486
  name: string;
483
487
  platform: "VINTED" | "SHOPIFY";
484
488
  accountId: string;
489
+ locale?: string | null | undefined;
485
490
  } | null | undefined;
486
491
  }>, "many">>>;
487
492
  createdAt: z.ZodDate;
@@ -526,6 +531,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
526
531
  name: string;
527
532
  platform: "VINTED" | "SHOPIFY";
528
533
  accountId: string;
534
+ locale?: string | null | undefined;
529
535
  } | null | undefined;
530
536
  }[] | null | undefined;
531
537
  files?: {
@@ -595,19 +601,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
595
601
  createdAt: Date;
596
602
  itemId: string | number;
597
603
  data?: {
598
- type: "EMPTY";
599
- } | {
600
- type: "SCHEDULED";
601
- data: {
602
- platform: "VINTED" | "SHOPIFY";
603
- publishingDate?: Date | null | undefined;
604
- };
605
- } | {
606
- type: "FAILED_TO_PUBLISH";
607
- data: {
608
- platform: "VINTED" | "SHOPIFY";
609
- };
610
- } | {
611
604
  type: "BUYER_PAID";
612
605
  data: {
613
606
  soldAccountId: string;
@@ -621,11 +614,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
621
614
  soldOrderId: string;
622
615
  soldConversationId?: string | null | undefined;
623
616
  };
617
+ } | {
618
+ type: "EMPTY";
619
+ } | {
620
+ type: "FAILED_TO_PUBLISH";
621
+ data: {
622
+ platform: "VINTED" | "SHOPIFY";
623
+ };
624
624
  } | {
625
625
  type: "REPUBLISHING";
626
626
  data: {
627
627
  platform: "VINTED" | "SHOPIFY";
628
628
  };
629
+ } | {
630
+ type: "SCHEDULED";
631
+ data: {
632
+ platform: "VINTED" | "SHOPIFY";
633
+ publishingDate?: Date | null | undefined;
634
+ };
629
635
  } | null | undefined;
630
636
  } | null | undefined;
631
637
  }, {
@@ -668,6 +674,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
668
674
  name: string;
669
675
  platform: "VINTED" | "SHOPIFY";
670
676
  accountId: string;
677
+ locale?: string | null | undefined;
671
678
  } | null | undefined;
672
679
  }[] | null | undefined;
673
680
  files?: {
@@ -737,19 +744,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
737
744
  createdAt: Date;
738
745
  itemId: string | number;
739
746
  data?: {
740
- type: "EMPTY";
741
- } | {
742
- type: "SCHEDULED";
743
- data: {
744
- platform: "VINTED" | "SHOPIFY";
745
- publishingDate?: Date | null | undefined;
746
- };
747
- } | {
748
- type: "FAILED_TO_PUBLISH";
749
- data: {
750
- platform: "VINTED" | "SHOPIFY";
751
- };
752
- } | {
753
747
  type: "BUYER_PAID";
754
748
  data: {
755
749
  soldAccountId: string;
@@ -763,11 +757,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
763
757
  soldOrderId: string;
764
758
  soldConversationId?: string | null | undefined;
765
759
  };
760
+ } | {
761
+ type: "EMPTY";
762
+ } | {
763
+ type: "FAILED_TO_PUBLISH";
764
+ data: {
765
+ platform: "VINTED" | "SHOPIFY";
766
+ };
766
767
  } | {
767
768
  type: "REPUBLISHING";
768
769
  data: {
769
770
  platform: "VINTED" | "SHOPIFY";
770
771
  };
772
+ } | {
773
+ type: "SCHEDULED";
774
+ data: {
775
+ platform: "VINTED" | "SHOPIFY";
776
+ publishingDate?: Date | null | undefined;
777
+ };
771
778
  } | null | undefined;
772
779
  } | null | undefined;
773
780
  }>, "many">;
@@ -834,6 +841,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
834
841
  name: string;
835
842
  platform: "VINTED" | "SHOPIFY";
836
843
  accountId: string;
844
+ locale?: string | null | undefined;
837
845
  } | null | undefined;
838
846
  }[] | null | undefined;
839
847
  files?: {
@@ -903,19 +911,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
903
911
  createdAt: Date;
904
912
  itemId: string | number;
905
913
  data?: {
906
- type: "EMPTY";
907
- } | {
908
- type: "SCHEDULED";
909
- data: {
910
- platform: "VINTED" | "SHOPIFY";
911
- publishingDate?: Date | null | undefined;
912
- };
913
- } | {
914
- type: "FAILED_TO_PUBLISH";
915
- data: {
916
- platform: "VINTED" | "SHOPIFY";
917
- };
918
- } | {
919
914
  type: "BUYER_PAID";
920
915
  data: {
921
916
  soldAccountId: string;
@@ -929,11 +924,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
929
924
  soldOrderId: string;
930
925
  soldConversationId?: string | null | undefined;
931
926
  };
927
+ } | {
928
+ type: "EMPTY";
929
+ } | {
930
+ type: "FAILED_TO_PUBLISH";
931
+ data: {
932
+ platform: "VINTED" | "SHOPIFY";
933
+ };
932
934
  } | {
933
935
  type: "REPUBLISHING";
934
936
  data: {
935
937
  platform: "VINTED" | "SHOPIFY";
936
938
  };
939
+ } | {
940
+ type: "SCHEDULED";
941
+ data: {
942
+ platform: "VINTED" | "SHOPIFY";
943
+ publishingDate?: Date | null | undefined;
944
+ };
937
945
  } | null | undefined;
938
946
  } | null | undefined;
939
947
  }[];
@@ -986,6 +994,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
986
994
  name: string;
987
995
  platform: "VINTED" | "SHOPIFY";
988
996
  accountId: string;
997
+ locale?: string | null | undefined;
989
998
  } | null | undefined;
990
999
  }[] | null | undefined;
991
1000
  files?: {
@@ -1055,19 +1064,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1055
1064
  createdAt: Date;
1056
1065
  itemId: string | number;
1057
1066
  data?: {
1058
- type: "EMPTY";
1059
- } | {
1060
- type: "SCHEDULED";
1061
- data: {
1062
- platform: "VINTED" | "SHOPIFY";
1063
- publishingDate?: Date | null | undefined;
1064
- };
1065
- } | {
1066
- type: "FAILED_TO_PUBLISH";
1067
- data: {
1068
- platform: "VINTED" | "SHOPIFY";
1069
- };
1070
- } | {
1071
1067
  type: "BUYER_PAID";
1072
1068
  data: {
1073
1069
  soldAccountId: string;
@@ -1081,11 +1077,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
1081
1077
  soldOrderId: string;
1082
1078
  soldConversationId?: string | null | undefined;
1083
1079
  };
1080
+ } | {
1081
+ type: "EMPTY";
1082
+ } | {
1083
+ type: "FAILED_TO_PUBLISH";
1084
+ data: {
1085
+ platform: "VINTED" | "SHOPIFY";
1086
+ };
1084
1087
  } | {
1085
1088
  type: "REPUBLISHING";
1086
1089
  data: {
1087
1090
  platform: "VINTED" | "SHOPIFY";
1088
1091
  };
1092
+ } | {
1093
+ type: "SCHEDULED";
1094
+ data: {
1095
+ platform: "VINTED" | "SHOPIFY";
1096
+ publishingDate?: Date | null | undefined;
1097
+ };
1089
1098
  } | null | undefined;
1090
1099
  } | null | undefined;
1091
1100
  }[];