controlresell 2.1.2 → 2.1.5

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 (65) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/application/ControlResellEnvironment.d.ts +1 -1
  3. package/src/com/controlresell/models/application/ControlResellEnvironment.js +1 -1
  4. package/src/com/controlresell/models/application/ControlResellEnvironment.ts +1 -1
  5. package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +1 -1
  6. package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
  7. package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
  8. package/src/com/controlresell/models/items/CreatedItems.d.ts +11 -11
  9. package/src/com/controlresell/models/items/Item.d.ts +7 -7
  10. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +2 -2
  11. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  12. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +11 -11
  13. package/src/com/controlresell/models/items/UpdatedItem.d.ts +11 -11
  14. package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +3 -3
  15. package/src/com/controlresell/models/items/history/ItemHistory.d.ts +3 -3
  16. package/src/com/controlresell/models/items/history/ItemHistoryType.d.ts +1 -1
  17. package/src/com/controlresell/models/items/history/ItemHistoryType.js +1 -1
  18. package/src/com/controlresell/models/items/history/ItemHistoryType.ts +1 -1
  19. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
  20. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +2 -1
  21. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +2 -1
  22. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +11 -730
  23. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.js +2 -2
  24. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.ts +2 -2
  25. package/src/com/controlresell/models/items/platforms/PlatformInfo.d.ts +15 -0
  26. package/src/com/controlresell/models/items/platforms/PlatformInfo.js +9 -0
  27. package/src/com/controlresell/models/items/platforms/PlatformInfo.ts +8 -0
  28. package/src/com/controlresell/models/notifications/CreateNotificationPayload.d.ts +27 -0
  29. package/src/com/controlresell/models/notifications/CreateNotificationPayload.js +13 -0
  30. package/src/com/controlresell/models/notifications/CreateNotificationPayload.ts +12 -0
  31. package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.d.ts +9 -0
  32. package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.js +7 -0
  33. package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.ts +6 -0
  34. package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.d.ts +24 -0
  35. package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.js +12 -0
  36. package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.ts +11 -0
  37. package/src/com/controlresell/models/notifications/NotificationToken.d.ts +15 -0
  38. package/src/com/controlresell/models/notifications/NotificationToken.js +9 -0
  39. package/src/com/controlresell/models/notifications/NotificationToken.ts +8 -0
  40. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +7 -0
  41. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +9 -0
  42. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +5 -0
  43. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +7 -0
  44. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +0 -33
  45. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +1 -3
  46. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +1 -3
  47. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.d.ts +3 -0
  48. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.js +1 -0
  49. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.ts +1 -0
  50. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.d.ts +3 -0
  51. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.js +2 -1
  52. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.ts +2 -1
  53. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.d.ts +3 -0
  54. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.js +1 -0
  55. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.ts +1 -0
  56. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.d.ts +3 -0
  57. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.js +1 -0
  58. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.ts +1 -0
  59. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +11 -11
  60. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +11 -11
  61. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
  62. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
  63. package/src/index.d.ts +5 -0
  64. package/src/index.js +5 -0
  65. package/src/index.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "2.1.2",
3
+ "version": "2.1.5",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -17,7 +17,7 @@
17
17
  "typescript": "^5.8.3"
18
18
  },
19
19
  "dependencies": {
20
- "controlresell-connector": "^0.0.31",
20
+ "controlresell-connector": "^0.2.3",
21
21
  "zod": "^3.24.3",
22
22
  "zodable-idschema": "^1.0.0"
23
23
  }
@@ -1,3 +1,3 @@
1
1
  import { z } from "zod";
2
- export declare const ControlResellEnvironmentSchema: z.ZodEnum<["PRODUCTION", "STAGING"]>;
2
+ export declare const ControlResellEnvironmentSchema: z.ZodEnum<["PRODUCTION", "STAGING", "DEV"]>;
3
3
  export type ControlResellEnvironment = z.infer<typeof ControlResellEnvironmentSchema>;
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ControlResellEnvironmentSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.ControlResellEnvironmentSchema = zod_1.z.enum([
6
- "PRODUCTION", "STAGING"
6
+ "PRODUCTION", "STAGING", "DEV"
7
7
  ]);
@@ -1,6 +1,6 @@
1
1
  import {z} from "zod"
2
2
 
3
3
  export const ControlResellEnvironmentSchema = z.enum([
4
- "PRODUCTION", "STAGING"
4
+ "PRODUCTION", "STAGING", "DEV"
5
5
  ])
6
6
  export type ControlResellEnvironment = z.infer<typeof ControlResellEnvironmentSchema>
@@ -1,3 +1,3 @@
1
1
  import { z } from "zod";
2
- export declare const RabbitMQRoutingKeySchema: z.ZodEnum<["ITEMS_PUBLISH", "PLATFORMS_AUTH", "PLATFORMS_JOB"]>;
2
+ export declare const RabbitMQRoutingKeySchema: z.ZodEnum<["ITEMS_PUBLISH", "PLATFORMS_AUTH", "PLATFORMS_JOB", "CONNECTOR_JOB_POSTS_GET", "CONNECTOR_JOB_CONVERSATIONS_GET"]>;
3
3
  export type RabbitMQRoutingKey = z.infer<typeof RabbitMQRoutingKeySchema>;
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RabbitMQRoutingKeySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.RabbitMQRoutingKeySchema = zod_1.z.enum([
6
- "ITEMS_PUBLISH", "PLATFORMS_AUTH", "PLATFORMS_JOB"
6
+ "ITEMS_PUBLISH", "PLATFORMS_AUTH", "PLATFORMS_JOB", "CONNECTOR_JOB_POSTS_GET", "CONNECTOR_JOB_CONVERSATIONS_GET"
7
7
  ]);
@@ -1,6 +1,6 @@
1
1
  import {z} from "zod"
2
2
 
3
3
  export const RabbitMQRoutingKeySchema = z.enum([
4
- "ITEMS_PUBLISH", "PLATFORMS_AUTH", "PLATFORMS_JOB"
4
+ "ITEMS_PUBLISH", "PLATFORMS_AUTH", "PLATFORMS_JOB", "CONNECTOR_JOB_POSTS_GET", "CONNECTOR_JOB_CONVERSATIONS_GET"
5
5
  ])
6
6
  export type RabbitMQRoutingKey = z.infer<typeof RabbitMQRoutingKeySchema>
@@ -215,17 +215,17 @@ export declare const CreatedItemsSchema: z.ZodObject<{
215
215
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
216
216
  id: z.ZodString;
217
217
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
218
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
218
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
219
219
  data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
220
  createdAt: z.ZodDate;
221
221
  }, "strip", z.ZodTypeAny, {
222
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
222
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
223
223
  id: string;
224
224
  createdAt: Date;
225
225
  itemId: string | number;
226
226
  data?: string | null | undefined;
227
227
  }, {
228
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
228
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
229
229
  id: string;
230
230
  createdAt: Date;
231
231
  itemId: string | number;
@@ -300,6 +300,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
300
300
  sold: boolean;
301
301
  description?: string | null | undefined;
302
302
  customerId?: string | number | null | undefined;
303
+ state?: number | null | undefined;
303
304
  colorIds?: number[] | null | undefined;
304
305
  packageSizeId?: number | null | undefined;
305
306
  sizeId?: number | null | undefined;
@@ -318,7 +319,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
318
319
  categoryId?: number | null | undefined;
319
320
  brandId?: string | number | null | undefined;
320
321
  sex?: string | null | undefined;
321
- state?: number | null | undefined;
322
322
  purchasePrice?: number | null | undefined;
323
323
  purchaseDate?: Date | null | undefined;
324
324
  purchasePlaceId?: string | number | null | undefined;
@@ -378,7 +378,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
378
378
  fieldId: string | number;
379
379
  }[] | null | undefined;
380
380
  lastHistory?: {
381
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
381
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
382
382
  id: string;
383
383
  createdAt: Date;
384
384
  itemId: string | number;
@@ -409,6 +409,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
409
409
  sold: boolean;
410
410
  description?: string | null | undefined;
411
411
  customerId?: string | number | null | undefined;
412
+ state?: number | null | undefined;
412
413
  colorIds?: number[] | null | undefined;
413
414
  packageSizeId?: number | null | undefined;
414
415
  sizeId?: number | null | undefined;
@@ -427,7 +428,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
427
428
  categoryId?: number | null | undefined;
428
429
  brandId?: string | number | null | undefined;
429
430
  sex?: string | null | undefined;
430
- state?: number | null | undefined;
431
431
  purchasePrice?: number | null | undefined;
432
432
  purchaseDate?: Date | null | undefined;
433
433
  purchasePlaceId?: string | number | null | undefined;
@@ -487,7 +487,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
487
487
  fieldId: string | number;
488
488
  }[] | null | undefined;
489
489
  lastHistory?: {
490
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
490
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
491
491
  id: string;
492
492
  createdAt: Date;
493
493
  itemId: string | number;
@@ -539,6 +539,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
539
539
  sold: boolean;
540
540
  description?: string | null | undefined;
541
541
  customerId?: string | number | null | undefined;
542
+ state?: number | null | undefined;
542
543
  colorIds?: number[] | null | undefined;
543
544
  packageSizeId?: number | null | undefined;
544
545
  sizeId?: number | null | undefined;
@@ -557,7 +558,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
557
558
  categoryId?: number | null | undefined;
558
559
  brandId?: string | number | null | undefined;
559
560
  sex?: string | null | undefined;
560
- state?: number | null | undefined;
561
561
  purchasePrice?: number | null | undefined;
562
562
  purchaseDate?: Date | null | undefined;
563
563
  purchasePlaceId?: string | number | null | undefined;
@@ -617,7 +617,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
617
617
  fieldId: string | number;
618
618
  }[] | null | undefined;
619
619
  lastHistory?: {
620
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
620
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
621
621
  id: string;
622
622
  createdAt: Date;
623
623
  itemId: string | number;
@@ -657,6 +657,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
657
657
  sold: boolean;
658
658
  description?: string | null | undefined;
659
659
  customerId?: string | number | null | undefined;
660
+ state?: number | null | undefined;
660
661
  colorIds?: number[] | null | undefined;
661
662
  packageSizeId?: number | null | undefined;
662
663
  sizeId?: number | null | undefined;
@@ -675,7 +676,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
675
676
  categoryId?: number | null | undefined;
676
677
  brandId?: string | number | null | undefined;
677
678
  sex?: string | null | undefined;
678
- state?: number | null | undefined;
679
679
  purchasePrice?: number | null | undefined;
680
680
  purchaseDate?: Date | null | undefined;
681
681
  purchasePlaceId?: string | number | null | undefined;
@@ -735,7 +735,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
735
735
  fieldId: string | number;
736
736
  }[] | null | undefined;
737
737
  lastHistory?: {
738
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
738
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
739
739
  id: string;
740
740
  createdAt: Date;
741
741
  itemId: string | number;
@@ -214,17 +214,17 @@ export declare const ItemSchema: z.ZodObject<{
214
214
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
215
215
  id: z.ZodString;
216
216
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
217
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
217
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
218
218
  data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
219
  createdAt: z.ZodDate;
220
220
  }, "strip", z.ZodTypeAny, {
221
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
221
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
222
222
  id: string;
223
223
  createdAt: Date;
224
224
  itemId: string | number;
225
225
  data?: string | null | undefined;
226
226
  }, {
227
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
227
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
228
228
  id: string;
229
229
  createdAt: Date;
230
230
  itemId: string | number;
@@ -299,6 +299,7 @@ export declare const ItemSchema: z.ZodObject<{
299
299
  sold: boolean;
300
300
  description?: string | null | undefined;
301
301
  customerId?: string | number | null | undefined;
302
+ state?: number | null | undefined;
302
303
  colorIds?: number[] | null | undefined;
303
304
  packageSizeId?: number | null | undefined;
304
305
  sizeId?: number | null | undefined;
@@ -317,7 +318,6 @@ export declare const ItemSchema: z.ZodObject<{
317
318
  categoryId?: number | null | undefined;
318
319
  brandId?: string | number | null | undefined;
319
320
  sex?: string | null | undefined;
320
- state?: number | null | undefined;
321
321
  purchasePrice?: number | null | undefined;
322
322
  purchaseDate?: Date | null | undefined;
323
323
  purchasePlaceId?: string | number | null | undefined;
@@ -377,7 +377,7 @@ export declare const ItemSchema: z.ZodObject<{
377
377
  fieldId: string | number;
378
378
  }[] | null | undefined;
379
379
  lastHistory?: {
380
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
380
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
381
381
  id: string;
382
382
  createdAt: Date;
383
383
  itemId: string | number;
@@ -408,6 +408,7 @@ export declare const ItemSchema: z.ZodObject<{
408
408
  sold: boolean;
409
409
  description?: string | null | undefined;
410
410
  customerId?: string | number | null | undefined;
411
+ state?: number | null | undefined;
411
412
  colorIds?: number[] | null | undefined;
412
413
  packageSizeId?: number | null | undefined;
413
414
  sizeId?: number | null | undefined;
@@ -426,7 +427,6 @@ export declare const ItemSchema: z.ZodObject<{
426
427
  categoryId?: number | null | undefined;
427
428
  brandId?: string | number | null | undefined;
428
429
  sex?: string | null | undefined;
429
- state?: number | null | undefined;
430
430
  purchasePrice?: number | null | undefined;
431
431
  purchaseDate?: Date | null | undefined;
432
432
  purchasePlaceId?: string | number | null | undefined;
@@ -486,7 +486,7 @@ export declare const ItemSchema: z.ZodObject<{
486
486
  fieldId: string | number;
487
487
  }[] | null | undefined;
488
488
  lastHistory?: {
489
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
489
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
490
490
  id: string;
491
491
  createdAt: Date;
492
492
  itemId: string | number;
@@ -18,8 +18,8 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
18
18
  readyToPublish: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  sort?: "MOST_RECENT" | "OLDEST" | "HIGHEST_PRICE" | "LOWEST_PRICE" | null | undefined;
21
- sex?: string[] | null | undefined;
22
21
  sold?: boolean | null | undefined;
22
+ sex?: string[] | null | undefined;
23
23
  categoriesId?: number[] | null | undefined;
24
24
  brandsId?: number[] | null | undefined;
25
25
  sizesId?: number[] | null | undefined;
@@ -35,8 +35,8 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
35
35
  readyToPublish?: boolean | null | undefined;
36
36
  }, {
37
37
  sort?: "MOST_RECENT" | "OLDEST" | "HIGHEST_PRICE" | "LOWEST_PRICE" | null | undefined;
38
- sex?: string[] | null | undefined;
39
38
  sold?: boolean | null | undefined;
39
+ sex?: string[] | null | undefined;
40
40
  categoriesId?: number[] | null | undefined;
41
41
  brandsId?: number[] | null | undefined;
42
42
  sizesId?: number[] | null | undefined;
@@ -44,13 +44,13 @@ export declare const ItemPayloadSchema: z.ZodObject<{
44
44
  filesId: string[];
45
45
  description?: string | null | undefined;
46
46
  customerId?: string | number | null | undefined;
47
+ state?: number | null | undefined;
47
48
  colorIds?: number[] | null | undefined;
48
49
  packageSizeId?: number | null | undefined;
49
50
  sizeId?: number | null | undefined;
50
51
  categoryId?: number | null | undefined;
51
52
  brandId?: string | number | null | undefined;
52
53
  sex?: string | null | undefined;
53
- state?: number | null | undefined;
54
54
  purchasePrice?: number | null | undefined;
55
55
  purchaseDate?: Date | null | undefined;
56
56
  purchasePlaceId?: string | number | null | undefined;
@@ -77,13 +77,13 @@ export declare const ItemPayloadSchema: z.ZodObject<{
77
77
  filesId: string[];
78
78
  description?: string | null | undefined;
79
79
  customerId?: string | number | null | undefined;
80
+ state?: number | null | undefined;
80
81
  colorIds?: number[] | null | undefined;
81
82
  packageSizeId?: number | null | undefined;
82
83
  sizeId?: number | null | undefined;
83
84
  categoryId?: number | null | undefined;
84
85
  brandId?: string | number | null | undefined;
85
86
  sex?: string | null | undefined;
86
- state?: number | null | undefined;
87
87
  purchasePrice?: number | null | undefined;
88
88
  purchaseDate?: Date | null | undefined;
89
89
  purchasePlaceId?: string | number | null | undefined;
@@ -217,17 +217,17 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
217
217
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
218
218
  id: z.ZodString;
219
219
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
220
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
220
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
221
221
  data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
222
  createdAt: z.ZodDate;
223
223
  }, "strip", z.ZodTypeAny, {
224
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
224
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
225
225
  id: string;
226
226
  createdAt: Date;
227
227
  itemId: string | number;
228
228
  data?: string | null | undefined;
229
229
  }, {
230
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
230
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
231
231
  id: string;
232
232
  createdAt: Date;
233
233
  itemId: string | number;
@@ -302,6 +302,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
302
302
  sold: boolean;
303
303
  description?: string | null | undefined;
304
304
  customerId?: string | number | null | undefined;
305
+ state?: number | null | undefined;
305
306
  colorIds?: number[] | null | undefined;
306
307
  packageSizeId?: number | null | undefined;
307
308
  sizeId?: number | null | undefined;
@@ -320,7 +321,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
320
321
  categoryId?: number | null | undefined;
321
322
  brandId?: string | number | null | undefined;
322
323
  sex?: string | null | undefined;
323
- state?: number | null | undefined;
324
324
  purchasePrice?: number | null | undefined;
325
325
  purchaseDate?: Date | null | undefined;
326
326
  purchasePlaceId?: string | number | null | undefined;
@@ -380,7 +380,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
380
380
  fieldId: string | number;
381
381
  }[] | null | undefined;
382
382
  lastHistory?: {
383
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
383
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
384
384
  id: string;
385
385
  createdAt: Date;
386
386
  itemId: string | number;
@@ -411,6 +411,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
411
411
  sold: boolean;
412
412
  description?: string | null | undefined;
413
413
  customerId?: string | number | null | undefined;
414
+ state?: number | null | undefined;
414
415
  colorIds?: number[] | null | undefined;
415
416
  packageSizeId?: number | null | undefined;
416
417
  sizeId?: number | null | undefined;
@@ -429,7 +430,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
429
430
  categoryId?: number | null | undefined;
430
431
  brandId?: string | number | null | undefined;
431
432
  sex?: string | null | undefined;
432
- state?: number | null | undefined;
433
433
  purchasePrice?: number | null | undefined;
434
434
  purchaseDate?: Date | null | undefined;
435
435
  purchasePlaceId?: string | number | null | undefined;
@@ -489,7 +489,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
489
489
  fieldId: string | number;
490
490
  }[] | null | undefined;
491
491
  lastHistory?: {
492
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
492
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
493
493
  id: string;
494
494
  createdAt: Date;
495
495
  itemId: string | number;
@@ -545,6 +545,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
545
545
  sold: boolean;
546
546
  description?: string | null | undefined;
547
547
  customerId?: string | number | null | undefined;
548
+ state?: number | null | undefined;
548
549
  colorIds?: number[] | null | undefined;
549
550
  packageSizeId?: number | null | undefined;
550
551
  sizeId?: number | null | undefined;
@@ -563,7 +564,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
563
564
  categoryId?: number | null | undefined;
564
565
  brandId?: string | number | null | undefined;
565
566
  sex?: string | null | undefined;
566
- state?: number | null | undefined;
567
567
  purchasePrice?: number | null | undefined;
568
568
  purchaseDate?: Date | null | undefined;
569
569
  purchasePlaceId?: string | number | null | undefined;
@@ -623,7 +623,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
623
623
  fieldId: string | number;
624
624
  }[] | null | undefined;
625
625
  lastHistory?: {
626
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
626
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
627
627
  id: string;
628
628
  createdAt: Date;
629
629
  itemId: string | number;
@@ -667,6 +667,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
667
667
  sold: boolean;
668
668
  description?: string | null | undefined;
669
669
  customerId?: string | number | null | undefined;
670
+ state?: number | null | undefined;
670
671
  colorIds?: number[] | null | undefined;
671
672
  packageSizeId?: number | null | undefined;
672
673
  sizeId?: number | null | undefined;
@@ -685,7 +686,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
685
686
  categoryId?: number | null | undefined;
686
687
  brandId?: string | number | null | undefined;
687
688
  sex?: string | null | undefined;
688
- state?: number | null | undefined;
689
689
  purchasePrice?: number | null | undefined;
690
690
  purchaseDate?: Date | null | undefined;
691
691
  purchasePlaceId?: string | number | null | undefined;
@@ -745,7 +745,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
745
745
  fieldId: string | number;
746
746
  }[] | null | undefined;
747
747
  lastHistory?: {
748
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
748
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
749
749
  id: string;
750
750
  createdAt: Date;
751
751
  itemId: string | number;
@@ -215,17 +215,17 @@ export declare const UpdatedItemSchema: z.ZodObject<{
215
215
  lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
216
216
  id: z.ZodString;
217
217
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
218
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
218
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
219
219
  data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
220
  createdAt: z.ZodDate;
221
221
  }, "strip", z.ZodTypeAny, {
222
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
222
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
223
223
  id: string;
224
224
  createdAt: Date;
225
225
  itemId: string | number;
226
226
  data?: string | null | undefined;
227
227
  }, {
228
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
228
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
229
229
  id: string;
230
230
  createdAt: Date;
231
231
  itemId: string | number;
@@ -300,6 +300,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
300
300
  sold: boolean;
301
301
  description?: string | null | undefined;
302
302
  customerId?: string | number | null | undefined;
303
+ state?: number | null | undefined;
303
304
  colorIds?: number[] | null | undefined;
304
305
  packageSizeId?: number | null | undefined;
305
306
  sizeId?: number | null | undefined;
@@ -318,7 +319,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
318
319
  categoryId?: number | null | undefined;
319
320
  brandId?: string | number | null | undefined;
320
321
  sex?: string | null | undefined;
321
- state?: number | null | undefined;
322
322
  purchasePrice?: number | null | undefined;
323
323
  purchaseDate?: Date | null | undefined;
324
324
  purchasePlaceId?: string | number | null | undefined;
@@ -378,7 +378,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
378
378
  fieldId: string | number;
379
379
  }[] | null | undefined;
380
380
  lastHistory?: {
381
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
381
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
382
382
  id: string;
383
383
  createdAt: Date;
384
384
  itemId: string | number;
@@ -409,6 +409,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
409
409
  sold: boolean;
410
410
  description?: string | null | undefined;
411
411
  customerId?: string | number | null | undefined;
412
+ state?: number | null | undefined;
412
413
  colorIds?: number[] | null | undefined;
413
414
  packageSizeId?: number | null | undefined;
414
415
  sizeId?: number | null | undefined;
@@ -427,7 +428,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
427
428
  categoryId?: number | null | undefined;
428
429
  brandId?: string | number | null | undefined;
429
430
  sex?: string | null | undefined;
430
- state?: number | null | undefined;
431
431
  purchasePrice?: number | null | undefined;
432
432
  purchaseDate?: Date | null | undefined;
433
433
  purchasePlaceId?: string | number | null | undefined;
@@ -487,7 +487,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
487
487
  fieldId: string | number;
488
488
  }[] | null | undefined;
489
489
  lastHistory?: {
490
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
490
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
491
491
  id: string;
492
492
  createdAt: Date;
493
493
  itemId: string | number;
@@ -546,6 +546,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
546
546
  sold: boolean;
547
547
  description?: string | null | undefined;
548
548
  customerId?: string | number | null | undefined;
549
+ state?: number | null | undefined;
549
550
  colorIds?: number[] | null | undefined;
550
551
  packageSizeId?: number | null | undefined;
551
552
  sizeId?: number | null | undefined;
@@ -564,7 +565,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
564
565
  categoryId?: number | null | undefined;
565
566
  brandId?: string | number | null | undefined;
566
567
  sex?: string | null | undefined;
567
- state?: number | null | undefined;
568
568
  purchasePrice?: number | null | undefined;
569
569
  purchaseDate?: Date | null | undefined;
570
570
  purchasePlaceId?: string | number | null | undefined;
@@ -624,7 +624,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
624
624
  fieldId: string | number;
625
625
  }[] | null | undefined;
626
626
  lastHistory?: {
627
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
627
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
628
628
  id: string;
629
629
  createdAt: Date;
630
630
  itemId: string | number;
@@ -664,6 +664,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
664
664
  sold: boolean;
665
665
  description?: string | null | undefined;
666
666
  customerId?: string | number | null | undefined;
667
+ state?: number | null | undefined;
667
668
  colorIds?: number[] | null | undefined;
668
669
  packageSizeId?: number | null | undefined;
669
670
  sizeId?: number | null | undefined;
@@ -682,7 +683,6 @@ export declare const UpdatedItemSchema: z.ZodObject<{
682
683
  categoryId?: number | null | undefined;
683
684
  brandId?: string | number | null | undefined;
684
685
  sex?: string | null | undefined;
685
- state?: number | null | undefined;
686
686
  purchasePrice?: number | null | undefined;
687
687
  purchaseDate?: Date | null | undefined;
688
688
  purchasePlaceId?: string | number | null | undefined;
@@ -742,7 +742,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
742
742
  fieldId: string | number;
743
743
  }[] | null | undefined;
744
744
  lastHistory?: {
745
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
745
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
746
746
  id: string;
747
747
  createdAt: Date;
748
748
  itemId: string | number;
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
3
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "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", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
4
4
  data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  }, "strip", z.ZodTypeAny, {
6
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
6
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
7
7
  data?: string | null | undefined;
8
8
  }, {
9
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
9
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
10
10
  data?: string | null | undefined;
11
11
  }>;
12
12
  export type CreateItemHistoryPayload = z.infer<typeof CreateItemHistoryPayloadSchema>;
@@ -2,17 +2,17 @@ import { z } from "zod";
2
2
  export declare const ItemHistorySchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
5
- type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
5
+ type: z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
6
6
  data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  createdAt: z.ZodDate;
8
8
  }, "strip", z.ZodTypeAny, {
9
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
9
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
10
10
  id: string;
11
11
  createdAt: Date;
12
12
  itemId: string | number;
13
13
  data?: string | null | undefined;
14
14
  }, {
15
- type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
15
+ type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
16
16
  id: string;
17
17
  createdAt: Date;
18
18
  itemId: string | number;
@@ -1,3 +1,3 @@
1
1
  import { z } from "zod";
2
- export declare const ItemHistoryTypeSchema: z.ZodEnum<["IMPORTED", "PUBLISHED", "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", "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", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"
6
+ "IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "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", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"
4
+ "IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "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>