controlresell 2.8.50 → 2.8.52

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 (191) hide show
  1. package/package.json +9 -10
  2. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/pricedrop}/PriceDropRequest.d.ts +1 -1
  3. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/pricedrop}/PriceDropRequest.js +2 -2
  4. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/pricedrop}/PriceDropRequest.js.map +1 -1
  5. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/pricedrop}/PriceDropRequest.ts +2 -2
  6. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/AutomaticPublishRequestItem.d.ts +2 -2
  7. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/ManualPublishRequestItem.d.ts +6 -6
  8. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/PublishRequest.d.ts +23 -71
  9. package/src/com/controlresell/api/requests/items/publish/PublishRequest.d.ts.map +1 -0
  10. package/src/com/controlresell/api/requests/items/publish/PublishRequest.js +11 -0
  11. package/src/com/controlresell/api/requests/items/publish/PublishRequest.js.map +1 -0
  12. package/src/com/controlresell/api/requests/items/publish/PublishRequest.ts +9 -0
  13. package/src/com/controlresell/{inventory/models/items/requests/PublishRequestItem.d.ts → api/requests/items/publish/PublishRequestItems.d.ts} +19 -19
  14. package/src/com/controlresell/api/requests/items/publish/PublishRequestItems.d.ts.map +1 -0
  15. package/src/com/controlresell/{inventory/models/items/requests/PublishRequestItem.js → api/requests/items/publish/PublishRequestItems.js} +3 -3
  16. package/src/com/controlresell/api/requests/items/publish/PublishRequestItems.js.map +1 -0
  17. package/src/com/controlresell/{inventory/models/items/requests/PublishRequestItem.ts → api/requests/items/publish/PublishRequestItems.ts} +2 -2
  18. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/PublishTimeSlot.d.ts +2 -2
  19. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/republish}/RepublishRequest.d.ts +88 -88
  20. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/republish}/RepublishRequest.js +5 -5
  21. package/src/com/controlresell/api/requests/items/republish/RepublishRequest.js.map +1 -0
  22. package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/republish}/RepublishRequest.ts +5 -5
  23. package/src/com/controlresell/api/requests/quizresponses/CreateQuizResponseRequest.d.ts +22 -0
  24. package/src/com/controlresell/api/requests/quizresponses/CreateQuizResponseRequest.d.ts.map +1 -0
  25. package/src/com/controlresell/api/requests/quizresponses/CreateQuizResponseRequest.js +12 -0
  26. package/src/com/controlresell/api/requests/quizresponses/CreateQuizResponseRequest.js.map +1 -0
  27. package/src/com/controlresell/api/requests/quizresponses/CreateQuizResponseRequest.ts +10 -0
  28. package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.d.ts +9 -0
  29. package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.d.ts.map +1 -1
  30. package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.js +4 -1
  31. package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.js.map +1 -1
  32. package/src/com/controlresell/api/requests/subscriptions/CreateSubscriptionPaymentLinkRequest.ts +4 -1
  33. package/src/com/controlresell/api/responses/quizresponses/QuizResponseBaseResponse.d.ts +28 -0
  34. package/src/com/controlresell/api/responses/quizresponses/QuizResponseBaseResponse.d.ts.map +1 -0
  35. package/src/com/controlresell/api/responses/quizresponses/QuizResponseBaseResponse.js +14 -0
  36. package/src/com/controlresell/api/responses/quizresponses/QuizResponseBaseResponse.js.map +1 -0
  37. package/src/com/controlresell/api/responses/quizresponses/QuizResponseBaseResponse.ts +12 -0
  38. package/src/com/controlresell/api/responses/quizresponses/QuizResponseResponse.d.ts +34 -0
  39. package/src/com/controlresell/api/responses/quizresponses/QuizResponseResponse.d.ts.map +1 -0
  40. package/src/com/controlresell/api/responses/quizresponses/QuizResponseResponse.js +16 -0
  41. package/src/com/controlresell/api/responses/quizresponses/QuizResponseResponse.js.map +1 -0
  42. package/src/com/controlresell/api/responses/quizresponses/QuizResponseResponse.ts +14 -0
  43. package/src/com/controlresell/api/responses/subscriptions/BillingPortalUrlResponse.d.ts +10 -0
  44. package/src/com/controlresell/api/responses/subscriptions/BillingPortalUrlResponse.d.ts.map +1 -0
  45. package/src/com/controlresell/api/responses/subscriptions/BillingPortalUrlResponse.js +8 -0
  46. package/src/com/controlresell/api/responses/subscriptions/BillingPortalUrlResponse.js.map +1 -0
  47. package/src/com/controlresell/api/responses/subscriptions/BillingPortalUrlResponse.ts +6 -0
  48. package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.d.ts +3 -3
  49. package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.js +1 -1
  50. package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.js.map +1 -1
  51. package/src/com/controlresell/api/responses/subscriptions/SubscriptionPaymentLinkResponse.ts +1 -1
  52. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts +76 -0
  53. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.d.ts.map +1 -0
  54. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js +11 -0
  55. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.js.map +1 -0
  56. package/src/com/controlresell/api/responses/subscriptions/SubscriptionStatus.ts +9 -0
  57. package/src/com/controlresell/auth/models/preferences/Preference.d.ts +20 -20
  58. package/src/com/controlresell/auth/models/preferences/PreferenceWithCase.d.ts +56 -56
  59. package/src/com/controlresell/auth/models/preferences/PreferenceWithChildren.d.ts +46 -46
  60. package/src/com/controlresell/auth/models/preferences/cases/CreatePreferenceCasePayload.d.ts +14 -14
  61. package/src/com/controlresell/auth/models/preferences/cases/PartialPreferenceCasePayload.d.ts +12 -12
  62. package/src/com/controlresell/auth/models/preferences/cases/PreferenceCase.d.ts +14 -14
  63. package/src/com/controlresell/auth/models/preferences/payloads/actions/LifecycleDistributionMode.d.ts +8 -8
  64. package/src/com/controlresell/auth/models/preferences/payloads/actions/LifecycleTimeSlot.d.ts +2 -2
  65. package/src/com/controlresell/auth/models/preferences/payloads/actions/ManualLifecycleDistributionMode.d.ts +4 -4
  66. package/src/com/controlresell/auth/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +6 -6
  67. package/src/com/controlresell/auth/models/preferences/queue/PreferenceNextActionPayload.d.ts +68 -68
  68. package/src/com/controlresell/auth/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +10 -10
  69. package/src/com/controlresell/auth/models/preferences/variants/PreferenceCaseVariant.d.ts +10 -10
  70. package/src/com/controlresell/auth/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +16 -16
  71. package/src/com/controlresell/auth/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +10 -10
  72. package/src/com/controlresell/auth/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +2 -2
  73. package/src/com/controlresell/inbox/models/conversations/Conversation.d.ts +2 -2
  74. package/src/com/controlresell/inbox/models/conversations/ConversationOnPlatformUpdateRequest.d.ts +6 -6
  75. package/src/com/controlresell/inbox/models/conversations/ConversationUpdate.d.ts +4 -4
  76. package/src/com/controlresell/inbox/models/conversations/UserConversations.d.ts +4 -4
  77. package/src/com/controlresell/inbox/models/transactions/Transaction.d.ts +10 -10
  78. package/src/com/controlresell/inbox/models/transactions/items/ItemInTransaction.d.ts +4 -4
  79. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts +130 -152
  80. package/src/com/controlresell/inbox/models/transactions/items/TransactionWithItems.d.ts.map +1 -1
  81. package/src/com/controlresell/inventory/models/fees/Fee.d.ts +4 -4
  82. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts +118 -140
  83. package/src/com/controlresell/inventory/models/items/CreatedItems.d.ts.map +1 -1
  84. package/src/com/controlresell/inventory/models/items/Item.d.ts +84 -102
  85. package/src/com/controlresell/inventory/models/items/Item.d.ts.map +1 -1
  86. package/src/com/controlresell/inventory/models/items/ItemFiltersContext.d.ts +39 -0
  87. package/src/com/controlresell/inventory/models/items/ItemFiltersContext.d.ts.map +1 -1
  88. package/src/com/controlresell/inventory/models/items/ItemFiltersContext.js +4 -1
  89. package/src/com/controlresell/inventory/models/items/ItemFiltersContext.js.map +1 -1
  90. package/src/com/controlresell/inventory/models/items/ItemFiltersContext.ts +4 -1
  91. package/src/com/controlresell/inventory/models/items/ItemPayload.d.ts +2 -2
  92. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts +114 -136
  93. package/src/com/controlresell/inventory/models/items/ItemUpdate.d.ts.map +1 -1
  94. package/src/com/controlresell/inventory/models/items/ItemsWithFilters.d.ts +114 -136
  95. package/src/com/controlresell/inventory/models/items/ItemsWithFilters.d.ts.map +1 -1
  96. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts +118 -140
  97. package/src/com/controlresell/inventory/models/items/UpdatedItem.d.ts.map +1 -1
  98. package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts +42 -56
  99. package/src/com/controlresell/inventory/models/items/history/CreateItemHistoryPayload.d.ts.map +1 -1
  100. package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts +44 -58
  101. package/src/com/controlresell/inventory/models/items/history/ItemHistory.d.ts.map +1 -1
  102. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts +56 -76
  103. package/src/com/controlresell/inventory/models/items/history/ItemHistoryDecodedPayload.d.ts.map +1 -1
  104. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryImageProcessingDone.js +2 -2
  105. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryImageProcessingDone.js.map +1 -1
  106. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryImageProcessingDone.ts +2 -2
  107. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryRepublishingPayload.d.ts +4 -10
  108. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryRepublishingPayload.d.ts.map +1 -1
  109. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryRepublishingPayload.js +1 -3
  110. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryRepublishingPayload.js.map +1 -1
  111. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryRepublishingPayload.ts +1 -3
  112. package/src/com/controlresell/inventory/models/items/history/data/ItemHistoryRepublishingRetryPayload.d.ts +10 -10
  113. package/src/com/controlresell/inventory/models/items/{history/data/RepublishImageVariation.d.ts → images/ImageVariation.d.ts} +3 -3
  114. package/src/com/controlresell/inventory/models/items/images/ImageVariation.d.ts.map +1 -0
  115. package/src/com/controlresell/inventory/models/items/{history/data/RepublishImageVariation.js → images/ImageVariation.js} +3 -3
  116. package/src/com/controlresell/inventory/models/items/images/ImageVariation.js.map +1 -0
  117. package/src/com/controlresell/inventory/models/items/{history/data/RepublishImageVariation.ts → images/ImageVariation.ts} +2 -2
  118. package/src/com/controlresell/inventory/models/items/labels/ItemLabel.d.ts +4 -4
  119. package/src/com/controlresell/inventory/models/items/platforms/ItemOnPlatform.d.ts +2 -2
  120. package/src/com/controlresell/inventory/models/metadata/brands/Brand.d.ts +2 -2
  121. package/src/com/controlresell/inventory/models/metadata/labels/Label.d.ts +2 -2
  122. package/src/com/controlresell/inventory/models/metadata/places/Place.d.ts +2 -2
  123. package/src/com/controlresell/models/filters/SavedFilters.d.ts +57 -0
  124. package/src/com/controlresell/models/filters/SavedFilters.d.ts.map +1 -1
  125. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +57 -0
  126. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts.map +1 -1
  127. package/src/com/controlresell/models/platforms/orders/Order.d.ts +48 -48
  128. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +328 -354
  129. package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -1
  130. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +4 -4
  131. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +230 -252
  132. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  133. package/src/com/controlresell/models/users/User.d.ts +2 -2
  134. package/src/com/controlresell/models/users/ws/ResourceUpdate.d.ts +18 -18
  135. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +272 -316
  136. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  137. package/src/com/controlresell/models/users/ws/UserWsResourcePayload.d.ts +24 -24
  138. package/src/com/controlresell/notify/models/notifications/NotificationPreference.d.ts +2 -2
  139. package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.d.ts +28 -0
  140. package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.d.ts.map +1 -0
  141. package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.js +14 -0
  142. package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.js.map +1 -0
  143. package/src/com/controlresell/subscriptions/api/CreateSubscriptionHistoryPayload.ts +12 -0
  144. package/src/com/controlresell/subscriptions/models/SubscriptionHistory.d.ts +40 -0
  145. package/src/com/controlresell/subscriptions/models/SubscriptionHistory.d.ts.map +1 -0
  146. package/src/com/controlresell/subscriptions/models/SubscriptionHistory.js +18 -0
  147. package/src/com/controlresell/subscriptions/models/SubscriptionHistory.js.map +1 -0
  148. package/src/com/controlresell/subscriptions/models/SubscriptionHistory.ts +16 -0
  149. package/src/index.d.ts +15 -11
  150. package/src/index.d.ts.map +1 -1
  151. package/src/index.js +36 -28
  152. package/src/index.js.map +1 -1
  153. package/src/index.ts +15 -11
  154. package/src/com/controlresell/inventory/models/items/history/data/RepublishImageVariation.d.ts.map +0 -1
  155. package/src/com/controlresell/inventory/models/items/history/data/RepublishImageVariation.js.map +0 -1
  156. package/src/com/controlresell/inventory/models/items/platforms/PlatformInfo.d.ts +0 -19
  157. package/src/com/controlresell/inventory/models/items/platforms/PlatformInfo.d.ts.map +0 -1
  158. package/src/com/controlresell/inventory/models/items/platforms/PlatformInfo.js +0 -11
  159. package/src/com/controlresell/inventory/models/items/platforms/PlatformInfo.js.map +0 -1
  160. package/src/com/controlresell/inventory/models/items/platforms/PlatformInfo.ts +0 -9
  161. package/src/com/controlresell/inventory/models/items/requests/PublishRequest.d.ts.map +0 -1
  162. package/src/com/controlresell/inventory/models/items/requests/PublishRequest.js +0 -18
  163. package/src/com/controlresell/inventory/models/items/requests/PublishRequest.js.map +0 -1
  164. package/src/com/controlresell/inventory/models/items/requests/PublishRequest.ts +0 -16
  165. package/src/com/controlresell/inventory/models/items/requests/PublishRequestItem.d.ts.map +0 -1
  166. package/src/com/controlresell/inventory/models/items/requests/PublishRequestItem.js.map +0 -1
  167. package/src/com/controlresell/inventory/models/items/requests/PublishRequestWithItem.d.ts +0 -225
  168. package/src/com/controlresell/inventory/models/items/requests/PublishRequestWithItem.d.ts.map +0 -1
  169. package/src/com/controlresell/inventory/models/items/requests/PublishRequestWithItem.js +0 -13
  170. package/src/com/controlresell/inventory/models/items/requests/PublishRequestWithItem.js.map +0 -1
  171. package/src/com/controlresell/inventory/models/items/requests/PublishRequestWithItem.ts +0 -11
  172. package/src/com/controlresell/inventory/models/items/requests/RepublishRequest.js.map +0 -1
  173. package/src/com/controlresell/inventory/models/items/requests/RepublishRequestWithItem.d.ts +0 -305
  174. package/src/com/controlresell/inventory/models/items/requests/RepublishRequestWithItem.d.ts.map +0 -1
  175. package/src/com/controlresell/inventory/models/items/requests/RepublishRequestWithItem.js +0 -12
  176. package/src/com/controlresell/inventory/models/items/requests/RepublishRequestWithItem.js.map +0 -1
  177. package/src/com/controlresell/inventory/models/items/requests/RepublishRequestWithItem.ts +0 -10
  178. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/pricedrop}/PriceDropRequest.d.ts.map +0 -0
  179. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/AutomaticPublishRequestItem.d.ts.map +0 -0
  180. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/AutomaticPublishRequestItem.js +0 -0
  181. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/AutomaticPublishRequestItem.js.map +0 -0
  182. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/AutomaticPublishRequestItem.ts +0 -0
  183. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/ManualPublishRequestItem.d.ts.map +0 -0
  184. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/ManualPublishRequestItem.js +0 -0
  185. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/ManualPublishRequestItem.js.map +0 -0
  186. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/ManualPublishRequestItem.ts +0 -0
  187. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/PublishTimeSlot.d.ts.map +0 -0
  188. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/PublishTimeSlot.js +0 -0
  189. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/PublishTimeSlot.js.map +0 -0
  190. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/publish}/PublishTimeSlot.ts +0 -0
  191. /package/src/com/controlresell/{inventory/models/items/requests → api/requests/items/republish}/RepublishRequest.d.ts.map +0 -0
@@ -80,11 +80,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
80
80
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
81
81
  id: string;
82
82
  createdAt: Date;
83
+ updatedAt: Date;
83
84
  accountId: string;
84
85
  itemId: string | number;
85
86
  platformId: string;
86
87
  platformUrl: string;
87
- updatedAt: Date;
88
88
  platformPrice: number;
89
89
  publishedAt: Date;
90
90
  favoritesCount?: number | null | undefined;
@@ -109,11 +109,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
109
109
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
110
110
  id: string;
111
111
  createdAt: Date;
112
+ updatedAt: Date;
112
113
  accountId: string;
113
114
  itemId: string | number;
114
115
  platformId: string;
115
116
  platformUrl: string;
116
- updatedAt: Date;
117
117
  platformPrice: number;
118
118
  publishedAt: Date;
119
119
  favoritesCount?: number | null | undefined;
@@ -142,11 +142,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
142
142
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
143
143
  id: string;
144
144
  createdAt: Date;
145
+ updatedAt: Date;
145
146
  accountId: string;
146
147
  itemId: string | number;
147
148
  platformId: string;
148
149
  platformUrl: string;
149
- updatedAt: Date;
150
150
  platformPrice: number;
151
151
  publishedAt: Date;
152
152
  favoritesCount?: number | null | undefined;
@@ -175,11 +175,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
175
175
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
176
176
  id: string;
177
177
  createdAt: Date;
178
+ updatedAt: Date;
178
179
  accountId: string;
179
180
  itemId: string | number;
180
181
  platformId: string;
181
182
  platformUrl: string;
182
- updatedAt: Date;
183
183
  platformPrice: number;
184
184
  publishedAt: Date;
185
185
  favoritesCount?: number | null | undefined;
@@ -415,6 +415,40 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
415
415
  price: number;
416
416
  isPrepared: boolean;
417
417
  platformOrderId: string;
418
+ items?: {
419
+ orderId: string;
420
+ itemOnPlatformId: string;
421
+ itemOnPlatform?: {
422
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
423
+ id: string;
424
+ createdAt: Date;
425
+ updatedAt: Date;
426
+ accountId: string;
427
+ itemId: string | number;
428
+ platformId: string;
429
+ platformUrl: string;
430
+ platformPrice: number;
431
+ publishedAt: Date;
432
+ favoritesCount?: number | null | undefined;
433
+ viewsCount?: number | null | undefined;
434
+ conversationId?: string | null | undefined;
435
+ account?: {
436
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
437
+ name: string;
438
+ userId: string | number;
439
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
440
+ accountId: string;
441
+ locale?: string | null | undefined;
442
+ night?: {
443
+ startsAt: Date;
444
+ endsAt: Date;
445
+ } | null | undefined;
446
+ favoritesMaxDelay?: number | null | undefined;
447
+ ordersMaxDelay?: number | null | undefined;
448
+ conversationsMaxDelay?: number | null | undefined;
449
+ } | null | undefined;
450
+ } | null | undefined;
451
+ }[] | null | undefined;
418
452
  conversationId?: string | null | undefined;
419
453
  transactionId?: string | null | undefined;
420
454
  labels?: {
@@ -466,6 +500,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
466
500
  longitude?: number | null | undefined;
467
501
  } | null | undefined;
468
502
  }[] | null | undefined;
503
+ }, {
504
+ type: "SALE" | "PURCHASE";
505
+ status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "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_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER";
506
+ date: Date;
507
+ id: string;
508
+ accountId: string;
509
+ price: number;
510
+ isPrepared: boolean;
511
+ platformOrderId: string;
469
512
  items?: {
470
513
  orderId: string;
471
514
  itemOnPlatformId: string;
@@ -473,11 +516,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
473
516
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
474
517
  id: string;
475
518
  createdAt: Date;
519
+ updatedAt: Date;
476
520
  accountId: string;
477
521
  itemId: string | number;
478
522
  platformId: string;
479
523
  platformUrl: string;
480
- updatedAt: Date;
481
524
  platformPrice: number;
482
525
  publishedAt: Date;
483
526
  favoritesCount?: number | null | undefined;
@@ -500,15 +543,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
500
543
  } | null | undefined;
501
544
  } | null | undefined;
502
545
  }[] | null | undefined;
503
- }, {
504
- type: "SALE" | "PURCHASE";
505
- status: "UNKNOWN" | "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "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_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "ORDER_RETURNED_TO_SENDER";
506
- date: Date;
507
- id: string;
508
- accountId: string;
509
- price: number;
510
- isPrepared: boolean;
511
- platformOrderId: string;
512
546
  conversationId?: string | null | undefined;
513
547
  transactionId?: string | null | undefined;
514
548
  labels?: {
@@ -560,40 +594,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
560
594
  longitude?: number | null | undefined;
561
595
  } | null | undefined;
562
596
  }[] | null | undefined;
563
- items?: {
564
- orderId: string;
565
- itemOnPlatformId: string;
566
- itemOnPlatform?: {
567
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
568
- id: string;
569
- createdAt: Date;
570
- accountId: string;
571
- itemId: string | number;
572
- platformId: string;
573
- platformUrl: string;
574
- updatedAt: Date;
575
- platformPrice: number;
576
- publishedAt: Date;
577
- favoritesCount?: number | null | undefined;
578
- viewsCount?: number | null | undefined;
579
- conversationId?: string | null | undefined;
580
- account?: {
581
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
582
- name: string;
583
- userId: string | number;
584
- platform: "ETSY" | "SHOPIFY" | "VINTED";
585
- accountId: string;
586
- locale?: string | null | undefined;
587
- night?: {
588
- startsAt: Date;
589
- endsAt: Date;
590
- } | null | undefined;
591
- favoritesMaxDelay?: number | null | undefined;
592
- ordersMaxDelay?: number | null | undefined;
593
- conversationsMaxDelay?: number | null | undefined;
594
- } | null | undefined;
595
- } | null | undefined;
596
- }[] | null | undefined;
597
597
  }>;
598
598
  items: z.ZodArray<z.ZodObject<{
599
599
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -680,10 +680,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
680
680
  value: number;
681
681
  type: string;
682
682
  id: string | number;
683
- name: string;
684
683
  createdAt: Date;
685
- userId: string | number;
686
684
  updatedAt: Date;
685
+ name: string;
686
+ userId: string | number;
687
687
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
688
688
  startDate: Date;
689
689
  active: boolean;
@@ -695,10 +695,10 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
695
695
  value: number;
696
696
  type: string;
697
697
  id: string | number;
698
- name: string;
699
698
  createdAt: Date;
700
- userId: string | number;
701
699
  updatedAt: Date;
700
+ name: string;
701
+ userId: string | number;
702
702
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
703
703
  startDate: Date;
704
704
  active: boolean;
@@ -720,15 +720,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
720
720
  itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
721
721
  }, "strip", z.ZodTypeAny, {
722
722
  id: string | number;
723
- name: string;
724
723
  createdAt: Date;
724
+ name: string;
725
725
  isUserLabel: boolean;
726
726
  itemCount?: number | null | undefined;
727
727
  userId?: string | number | null | undefined;
728
728
  }, {
729
729
  id: string | number;
730
- name: string;
731
730
  createdAt: Date;
731
+ name: string;
732
732
  isUserLabel: boolean;
733
733
  itemCount?: number | null | undefined;
734
734
  userId?: string | number | null | undefined;
@@ -738,8 +738,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
738
738
  labelId: string | number;
739
739
  label?: {
740
740
  id: string | number;
741
- name: string;
742
741
  createdAt: Date;
742
+ name: string;
743
743
  isUserLabel: boolean;
744
744
  itemCount?: number | null | undefined;
745
745
  userId?: string | number | null | undefined;
@@ -749,8 +749,8 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
749
749
  labelId: string | number;
750
750
  label?: {
751
751
  id: string | number;
752
- name: string;
753
752
  createdAt: Date;
753
+ name: string;
754
754
  isUserLabel: boolean;
755
755
  itemCount?: number | null | undefined;
756
756
  userId?: string | number | null | undefined;
@@ -1383,12 +1383,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1383
1383
  maxRounds?: number | null | undefined;
1384
1384
  }>>>;
1385
1385
  isTransfer: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1386
- sourceAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1387
1386
  targetAccountId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1388
- targetUserId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1389
1387
  }, "strip", z.ZodTypeAny, {
1390
1388
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1391
- publishingDate?: Date | null | undefined;
1392
1389
  priceDropPayload?: {
1393
1390
  value: number;
1394
1391
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1396,13 +1393,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1396
1393
  roundStep?: number | null | undefined;
1397
1394
  maxRounds?: number | null | undefined;
1398
1395
  } | null | undefined;
1399
- isTransfer?: boolean | null | undefined;
1400
- sourceAccountId?: string | null | undefined;
1396
+ publishingDate?: Date | null | undefined;
1401
1397
  targetAccountId?: string | null | undefined;
1402
- targetUserId?: number | null | undefined;
1398
+ isTransfer?: boolean | null | undefined;
1403
1399
  }, {
1404
1400
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1405
- publishingDate?: Date | null | undefined;
1406
1401
  priceDropPayload?: {
1407
1402
  value: number;
1408
1403
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1410,17 +1405,15 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1410
1405
  roundStep?: number | null | undefined;
1411
1406
  maxRounds?: number | null | undefined;
1412
1407
  } | null | undefined;
1413
- isTransfer?: boolean | null | undefined;
1414
- sourceAccountId?: string | null | undefined;
1408
+ publishingDate?: Date | null | undefined;
1415
1409
  targetAccountId?: string | null | undefined;
1416
- targetUserId?: number | null | undefined;
1410
+ isTransfer?: boolean | null | undefined;
1417
1411
  }>;
1418
1412
  type: z.ZodLiteral<"REPUBLISHING">;
1419
1413
  }, "strip", z.ZodTypeAny, {
1420
1414
  type: "REPUBLISHING";
1421
1415
  data: {
1422
1416
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1423
- publishingDate?: Date | null | undefined;
1424
1417
  priceDropPayload?: {
1425
1418
  value: number;
1426
1419
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1428,16 +1421,14 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1428
1421
  roundStep?: number | null | undefined;
1429
1422
  maxRounds?: number | null | undefined;
1430
1423
  } | null | undefined;
1431
- isTransfer?: boolean | null | undefined;
1432
- sourceAccountId?: string | null | undefined;
1424
+ publishingDate?: Date | null | undefined;
1433
1425
  targetAccountId?: string | null | undefined;
1434
- targetUserId?: number | null | undefined;
1426
+ isTransfer?: boolean | null | undefined;
1435
1427
  };
1436
1428
  }, {
1437
1429
  type: "REPUBLISHING";
1438
1430
  data: {
1439
1431
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1440
- publishingDate?: Date | null | undefined;
1441
1432
  priceDropPayload?: {
1442
1433
  value: number;
1443
1434
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1445,10 +1436,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1445
1436
  roundStep?: number | null | undefined;
1446
1437
  maxRounds?: number | null | undefined;
1447
1438
  } | null | undefined;
1448
- isTransfer?: boolean | null | undefined;
1449
- sourceAccountId?: string | null | undefined;
1439
+ publishingDate?: Date | null | undefined;
1450
1440
  targetAccountId?: string | null | undefined;
1451
- targetUserId?: number | null | undefined;
1441
+ isTransfer?: boolean | null | undefined;
1452
1442
  };
1453
1443
  }>, z.ZodObject<{
1454
1444
  data: z.ZodObject<{
@@ -1495,11 +1485,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1495
1485
  attemptNumber: number;
1496
1486
  previousHistoryId: string;
1497
1487
  originalFailureDate: Date;
1498
- fields?: {
1499
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1500
- autoFixable: boolean;
1501
- error?: string | null | undefined;
1502
- }[] | null | undefined;
1503
1488
  priceDropPayload?: {
1504
1489
  value: number;
1505
1490
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1507,17 +1492,17 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1507
1492
  roundStep?: number | null | undefined;
1508
1493
  maxRounds?: number | null | undefined;
1509
1494
  } | null | undefined;
1495
+ fields?: {
1496
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1497
+ autoFixable: boolean;
1498
+ error?: string | null | undefined;
1499
+ }[] | null | undefined;
1510
1500
  }, {
1511
1501
  maxAttempts: number;
1512
1502
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1513
1503
  attemptNumber: number;
1514
1504
  previousHistoryId: string;
1515
1505
  originalFailureDate: Date;
1516
- fields?: {
1517
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1518
- autoFixable: boolean;
1519
- error?: string | null | undefined;
1520
- }[] | null | undefined;
1521
1506
  priceDropPayload?: {
1522
1507
  value: number;
1523
1508
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1525,6 +1510,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1525
1510
  roundStep?: number | null | undefined;
1526
1511
  maxRounds?: number | null | undefined;
1527
1512
  } | null | undefined;
1513
+ fields?: {
1514
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1515
+ autoFixable: boolean;
1516
+ error?: string | null | undefined;
1517
+ }[] | null | undefined;
1528
1518
  }>;
1529
1519
  type: z.ZodLiteral<"REPUBLISHING_RETRY">;
1530
1520
  }, "strip", z.ZodTypeAny, {
@@ -1535,11 +1525,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1535
1525
  attemptNumber: number;
1536
1526
  previousHistoryId: string;
1537
1527
  originalFailureDate: Date;
1538
- fields?: {
1539
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1540
- autoFixable: boolean;
1541
- error?: string | null | undefined;
1542
- }[] | null | undefined;
1543
1528
  priceDropPayload?: {
1544
1529
  value: number;
1545
1530
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1547,6 +1532,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1547
1532
  roundStep?: number | null | undefined;
1548
1533
  maxRounds?: number | null | undefined;
1549
1534
  } | null | undefined;
1535
+ fields?: {
1536
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1537
+ autoFixable: boolean;
1538
+ error?: string | null | undefined;
1539
+ }[] | null | undefined;
1550
1540
  };
1551
1541
  }, {
1552
1542
  type: "REPUBLISHING_RETRY";
@@ -1556,11 +1546,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1556
1546
  attemptNumber: number;
1557
1547
  previousHistoryId: string;
1558
1548
  originalFailureDate: Date;
1559
- fields?: {
1560
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1561
- autoFixable: boolean;
1562
- error?: string | null | undefined;
1563
- }[] | null | undefined;
1564
1549
  priceDropPayload?: {
1565
1550
  value: number;
1566
1551
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1568,6 +1553,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1568
1553
  roundStep?: number | null | undefined;
1569
1554
  maxRounds?: number | null | undefined;
1570
1555
  } | null | undefined;
1556
+ fields?: {
1557
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1558
+ autoFixable: boolean;
1559
+ error?: string | null | undefined;
1560
+ }[] | null | undefined;
1571
1561
  };
1572
1562
  }>, z.ZodObject<{
1573
1563
  data: z.ZodObject<{
@@ -1675,6 +1665,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1675
1665
  id: string;
1676
1666
  createdAt: Date;
1677
1667
  itemId: string | number;
1668
+ requestId?: string | null | undefined;
1678
1669
  data?: {
1679
1670
  type: "ACTION_CANCELED";
1680
1671
  data: {
@@ -1772,7 +1763,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1772
1763
  type: "REPUBLISHING";
1773
1764
  data: {
1774
1765
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1775
- publishingDate?: Date | null | undefined;
1776
1766
  priceDropPayload?: {
1777
1767
  value: number;
1778
1768
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1780,10 +1770,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1780
1770
  roundStep?: number | null | undefined;
1781
1771
  maxRounds?: number | null | undefined;
1782
1772
  } | null | undefined;
1783
- isTransfer?: boolean | null | undefined;
1784
- sourceAccountId?: string | null | undefined;
1773
+ publishingDate?: Date | null | undefined;
1785
1774
  targetAccountId?: string | null | undefined;
1786
- targetUserId?: number | null | undefined;
1775
+ isTransfer?: boolean | null | undefined;
1787
1776
  };
1788
1777
  } | {
1789
1778
  type: "REPUBLISHING_RETRY";
@@ -1793,11 +1782,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1793
1782
  attemptNumber: number;
1794
1783
  previousHistoryId: string;
1795
1784
  originalFailureDate: Date;
1796
- fields?: {
1797
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1798
- autoFixable: boolean;
1799
- error?: string | null | undefined;
1800
- }[] | null | undefined;
1801
1785
  priceDropPayload?: {
1802
1786
  value: number;
1803
1787
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1805,6 +1789,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1805
1789
  roundStep?: number | null | undefined;
1806
1790
  maxRounds?: number | null | undefined;
1807
1791
  } | null | undefined;
1792
+ fields?: {
1793
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1794
+ autoFixable: boolean;
1795
+ error?: string | null | undefined;
1796
+ }[] | null | undefined;
1808
1797
  };
1809
1798
  } | {
1810
1799
  type: "SCHEDULED";
@@ -1828,13 +1817,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1828
1817
  };
1829
1818
  } | null | undefined;
1830
1819
  accountId?: string | null | undefined;
1831
- requestId?: string | null | undefined;
1832
1820
  targetDate?: Date | null | undefined;
1833
1821
  }, {
1834
1822
  type: "CANCELED" | "SCHEDULED" | "DELETED" | "ARCHIVED" | "DISPUTE" | "IMPORTED" | "UNARCHIVED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED_RETRY" | "REPUBLISHING_RETRY" | "PUBLISH_CANCELED" | "REPUBLISHING" | "IMAGE_PROCESSING_DONE" | "REPUBLISHED" | "REPUBLISH_CANCELED" | "UPDATING" | "UPDATED" | "UPDATE_CANCELED" | "DELETING" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND" | "LIFECYCLE_STARTED" | "LIFECYCLE_COMPLETED" | "LIFECYCLE_CANCELED";
1835
1823
  id: string;
1836
1824
  createdAt: Date;
1837
1825
  itemId: string | number;
1826
+ requestId?: string | null | undefined;
1838
1827
  data?: {
1839
1828
  type: "ACTION_CANCELED";
1840
1829
  data: {
@@ -1932,7 +1921,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1932
1921
  type: "REPUBLISHING";
1933
1922
  data: {
1934
1923
  platform: "ETSY" | "SHOPIFY" | "VINTED";
1935
- publishingDate?: Date | null | undefined;
1936
1924
  priceDropPayload?: {
1937
1925
  value: number;
1938
1926
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1940,10 +1928,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1940
1928
  roundStep?: number | null | undefined;
1941
1929
  maxRounds?: number | null | undefined;
1942
1930
  } | null | undefined;
1943
- isTransfer?: boolean | null | undefined;
1944
- sourceAccountId?: string | null | undefined;
1931
+ publishingDate?: Date | null | undefined;
1945
1932
  targetAccountId?: string | null | undefined;
1946
- targetUserId?: number | null | undefined;
1933
+ isTransfer?: boolean | null | undefined;
1947
1934
  };
1948
1935
  } | {
1949
1936
  type: "REPUBLISHING_RETRY";
@@ -1953,11 +1940,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1953
1940
  attemptNumber: number;
1954
1941
  previousHistoryId: string;
1955
1942
  originalFailureDate: Date;
1956
- fields?: {
1957
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1958
- autoFixable: boolean;
1959
- error?: string | null | undefined;
1960
- }[] | null | undefined;
1961
1943
  priceDropPayload?: {
1962
1944
  value: number;
1963
1945
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -1965,6 +1947,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1965
1947
  roundStep?: number | null | undefined;
1966
1948
  maxRounds?: number | null | undefined;
1967
1949
  } | null | undefined;
1950
+ fields?: {
1951
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
1952
+ autoFixable: boolean;
1953
+ error?: string | null | undefined;
1954
+ }[] | null | undefined;
1968
1955
  };
1969
1956
  } | {
1970
1957
  type: "SCHEDULED";
@@ -1988,7 +1975,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1988
1975
  };
1989
1976
  } | null | undefined;
1990
1977
  accountId?: string | null | undefined;
1991
- requestId?: string | null | undefined;
1992
1978
  targetDate?: Date | null | undefined;
1993
1979
  }>>>;
1994
1980
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -2058,11 +2044,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2058
2044
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2059
2045
  id: string;
2060
2046
  createdAt: Date;
2047
+ updatedAt: Date;
2061
2048
  accountId: string;
2062
2049
  itemId: string | number;
2063
2050
  platformId: string;
2064
2051
  platformUrl: string;
2065
- updatedAt: Date;
2066
2052
  platformPrice: number;
2067
2053
  publishedAt: Date;
2068
2054
  favoritesCount?: number | null | undefined;
@@ -2087,11 +2073,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2087
2073
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2088
2074
  id: string;
2089
2075
  createdAt: Date;
2076
+ updatedAt: Date;
2090
2077
  accountId: string;
2091
2078
  itemId: string | number;
2092
2079
  platformId: string;
2093
2080
  platformUrl: string;
2094
- updatedAt: Date;
2095
2081
  platformPrice: number;
2096
2082
  publishedAt: Date;
2097
2083
  favoritesCount?: number | null | undefined;
@@ -2117,19 +2103,20 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2117
2103
  updatedAt: z.ZodDate;
2118
2104
  }, "strip", z.ZodTypeAny, {
2119
2105
  id: string | number;
2120
- name: string;
2121
2106
  createdAt: Date;
2122
- userId: string | number;
2123
2107
  updatedAt: Date;
2108
+ name: string;
2109
+ userId: string | number;
2124
2110
  sold: boolean;
2111
+ state?: number | null | undefined;
2125
2112
  fees?: {
2126
2113
  value: number;
2127
2114
  type: string;
2128
2115
  id: string | number;
2129
- name: string;
2130
2116
  createdAt: Date;
2131
- userId: string | number;
2132
2117
  updatedAt: Date;
2118
+ name: string;
2119
+ userId: string | number;
2133
2120
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2134
2121
  startDate: Date;
2135
2122
  active: boolean;
@@ -2147,14 +2134,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2147
2134
  estimatedPrice?: number | null | undefined;
2148
2135
  purchaseDate?: Date | null | undefined;
2149
2136
  sellingDate?: Date | null | undefined;
2150
- state?: number | null | undefined;
2151
2137
  labels?: {
2152
2138
  itemId: string | number;
2153
2139
  labelId: string | number;
2154
2140
  label?: {
2155
2141
  id: string | number;
2156
- name: string;
2157
2142
  createdAt: Date;
2143
+ name: string;
2158
2144
  isUserLabel: boolean;
2159
2145
  itemCount?: number | null | undefined;
2160
2146
  userId?: string | number | null | undefined;
@@ -2176,11 +2162,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2176
2162
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2177
2163
  id: string;
2178
2164
  createdAt: Date;
2165
+ updatedAt: Date;
2179
2166
  accountId: string;
2180
2167
  itemId: string | number;
2181
2168
  platformId: string;
2182
2169
  platformUrl: string;
2183
- updatedAt: Date;
2184
2170
  platformPrice: number;
2185
2171
  publishedAt: Date;
2186
2172
  favoritesCount?: number | null | undefined;
@@ -2239,6 +2225,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2239
2225
  id: string;
2240
2226
  createdAt: Date;
2241
2227
  itemId: string | number;
2228
+ requestId?: string | null | undefined;
2242
2229
  data?: {
2243
2230
  type: "ACTION_CANCELED";
2244
2231
  data: {
@@ -2336,7 +2323,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2336
2323
  type: "REPUBLISHING";
2337
2324
  data: {
2338
2325
  platform: "ETSY" | "SHOPIFY" | "VINTED";
2339
- publishingDate?: Date | null | undefined;
2340
2326
  priceDropPayload?: {
2341
2327
  value: number;
2342
2328
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -2344,10 +2330,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2344
2330
  roundStep?: number | null | undefined;
2345
2331
  maxRounds?: number | null | undefined;
2346
2332
  } | null | undefined;
2347
- isTransfer?: boolean | null | undefined;
2348
- sourceAccountId?: string | null | undefined;
2333
+ publishingDate?: Date | null | undefined;
2349
2334
  targetAccountId?: string | null | undefined;
2350
- targetUserId?: number | null | undefined;
2335
+ isTransfer?: boolean | null | undefined;
2351
2336
  };
2352
2337
  } | {
2353
2338
  type: "REPUBLISHING_RETRY";
@@ -2357,11 +2342,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2357
2342
  attemptNumber: number;
2358
2343
  previousHistoryId: string;
2359
2344
  originalFailureDate: Date;
2360
- fields?: {
2361
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2362
- autoFixable: boolean;
2363
- error?: string | null | undefined;
2364
- }[] | null | undefined;
2365
2345
  priceDropPayload?: {
2366
2346
  value: number;
2367
2347
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -2369,6 +2349,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2369
2349
  roundStep?: number | null | undefined;
2370
2350
  maxRounds?: number | null | undefined;
2371
2351
  } | null | undefined;
2352
+ fields?: {
2353
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2354
+ autoFixable: boolean;
2355
+ error?: string | null | undefined;
2356
+ }[] | null | undefined;
2372
2357
  };
2373
2358
  } | {
2374
2359
  type: "SCHEDULED";
@@ -2392,24 +2377,24 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2392
2377
  };
2393
2378
  } | null | undefined;
2394
2379
  accountId?: string | null | undefined;
2395
- requestId?: string | null | undefined;
2396
2380
  targetDate?: Date | null | undefined;
2397
2381
  } | null | undefined;
2398
2382
  }, {
2399
2383
  id: string | number;
2400
- name: string;
2401
2384
  createdAt: Date;
2402
- userId: string | number;
2403
2385
  updatedAt: Date;
2386
+ name: string;
2387
+ userId: string | number;
2404
2388
  sold: boolean;
2389
+ state?: number | null | undefined;
2405
2390
  fees?: {
2406
2391
  value: number;
2407
2392
  type: string;
2408
2393
  id: string | number;
2409
- name: string;
2410
2394
  createdAt: Date;
2411
- userId: string | number;
2412
2395
  updatedAt: Date;
2396
+ name: string;
2397
+ userId: string | number;
2413
2398
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2414
2399
  startDate: Date;
2415
2400
  active: boolean;
@@ -2427,14 +2412,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2427
2412
  estimatedPrice?: number | null | undefined;
2428
2413
  purchaseDate?: Date | null | undefined;
2429
2414
  sellingDate?: Date | null | undefined;
2430
- state?: number | null | undefined;
2431
2415
  labels?: {
2432
2416
  itemId: string | number;
2433
2417
  labelId: string | number;
2434
2418
  label?: {
2435
2419
  id: string | number;
2436
- name: string;
2437
2420
  createdAt: Date;
2421
+ name: string;
2438
2422
  isUserLabel: boolean;
2439
2423
  itemCount?: number | null | undefined;
2440
2424
  userId?: string | number | null | undefined;
@@ -2456,11 +2440,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2456
2440
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2457
2441
  id: string;
2458
2442
  createdAt: Date;
2443
+ updatedAt: Date;
2459
2444
  accountId: string;
2460
2445
  itemId: string | number;
2461
2446
  platformId: string;
2462
2447
  platformUrl: string;
2463
- updatedAt: Date;
2464
2448
  platformPrice: number;
2465
2449
  publishedAt: Date;
2466
2450
  favoritesCount?: number | null | undefined;
@@ -2519,6 +2503,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2519
2503
  id: string;
2520
2504
  createdAt: Date;
2521
2505
  itemId: string | number;
2506
+ requestId?: string | null | undefined;
2522
2507
  data?: {
2523
2508
  type: "ACTION_CANCELED";
2524
2509
  data: {
@@ -2616,7 +2601,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2616
2601
  type: "REPUBLISHING";
2617
2602
  data: {
2618
2603
  platform: "ETSY" | "SHOPIFY" | "VINTED";
2619
- publishingDate?: Date | null | undefined;
2620
2604
  priceDropPayload?: {
2621
2605
  value: number;
2622
2606
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -2624,10 +2608,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2624
2608
  roundStep?: number | null | undefined;
2625
2609
  maxRounds?: number | null | undefined;
2626
2610
  } | null | undefined;
2627
- isTransfer?: boolean | null | undefined;
2628
- sourceAccountId?: string | null | undefined;
2611
+ publishingDate?: Date | null | undefined;
2629
2612
  targetAccountId?: string | null | undefined;
2630
- targetUserId?: number | null | undefined;
2613
+ isTransfer?: boolean | null | undefined;
2631
2614
  };
2632
2615
  } | {
2633
2616
  type: "REPUBLISHING_RETRY";
@@ -2637,11 +2620,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2637
2620
  attemptNumber: number;
2638
2621
  previousHistoryId: string;
2639
2622
  originalFailureDate: Date;
2640
- fields?: {
2641
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2642
- autoFixable: boolean;
2643
- error?: string | null | undefined;
2644
- }[] | null | undefined;
2645
2623
  priceDropPayload?: {
2646
2624
  value: number;
2647
2625
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -2649,6 +2627,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2649
2627
  roundStep?: number | null | undefined;
2650
2628
  maxRounds?: number | null | undefined;
2651
2629
  } | null | undefined;
2630
+ fields?: {
2631
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2632
+ autoFixable: boolean;
2633
+ error?: string | null | undefined;
2634
+ }[] | null | undefined;
2652
2635
  };
2653
2636
  } | {
2654
2637
  type: "SCHEDULED";
@@ -2672,26 +2655,26 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2672
2655
  };
2673
2656
  } | null | undefined;
2674
2657
  accountId?: string | null | undefined;
2675
- requestId?: string | null | undefined;
2676
2658
  targetDate?: Date | null | undefined;
2677
2659
  } | null | undefined;
2678
2660
  }>, "many">;
2679
2661
  }, "strip", z.ZodTypeAny, {
2680
2662
  items: {
2681
2663
  id: string | number;
2682
- name: string;
2683
2664
  createdAt: Date;
2684
- userId: string | number;
2685
2665
  updatedAt: Date;
2666
+ name: string;
2667
+ userId: string | number;
2686
2668
  sold: boolean;
2669
+ state?: number | null | undefined;
2687
2670
  fees?: {
2688
2671
  value: number;
2689
2672
  type: string;
2690
2673
  id: string | number;
2691
- name: string;
2692
2674
  createdAt: Date;
2693
- userId: string | number;
2694
2675
  updatedAt: Date;
2676
+ name: string;
2677
+ userId: string | number;
2695
2678
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
2696
2679
  startDate: Date;
2697
2680
  active: boolean;
@@ -2709,14 +2692,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2709
2692
  estimatedPrice?: number | null | undefined;
2710
2693
  purchaseDate?: Date | null | undefined;
2711
2694
  sellingDate?: Date | null | undefined;
2712
- state?: number | null | undefined;
2713
2695
  labels?: {
2714
2696
  itemId: string | number;
2715
2697
  labelId: string | number;
2716
2698
  label?: {
2717
2699
  id: string | number;
2718
- name: string;
2719
2700
  createdAt: Date;
2701
+ name: string;
2720
2702
  isUserLabel: boolean;
2721
2703
  itemCount?: number | null | undefined;
2722
2704
  userId?: string | number | null | undefined;
@@ -2738,11 +2720,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2738
2720
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2739
2721
  id: string;
2740
2722
  createdAt: Date;
2723
+ updatedAt: Date;
2741
2724
  accountId: string;
2742
2725
  itemId: string | number;
2743
2726
  platformId: string;
2744
2727
  platformUrl: string;
2745
- updatedAt: Date;
2746
2728
  platformPrice: number;
2747
2729
  publishedAt: Date;
2748
2730
  favoritesCount?: number | null | undefined;
@@ -2801,6 +2783,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2801
2783
  id: string;
2802
2784
  createdAt: Date;
2803
2785
  itemId: string | number;
2786
+ requestId?: string | null | undefined;
2804
2787
  data?: {
2805
2788
  type: "ACTION_CANCELED";
2806
2789
  data: {
@@ -2898,7 +2881,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2898
2881
  type: "REPUBLISHING";
2899
2882
  data: {
2900
2883
  platform: "ETSY" | "SHOPIFY" | "VINTED";
2901
- publishingDate?: Date | null | undefined;
2902
2884
  priceDropPayload?: {
2903
2885
  value: number;
2904
2886
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -2906,10 +2888,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2906
2888
  roundStep?: number | null | undefined;
2907
2889
  maxRounds?: number | null | undefined;
2908
2890
  } | null | undefined;
2909
- isTransfer?: boolean | null | undefined;
2910
- sourceAccountId?: string | null | undefined;
2891
+ publishingDate?: Date | null | undefined;
2911
2892
  targetAccountId?: string | null | undefined;
2912
- targetUserId?: number | null | undefined;
2893
+ isTransfer?: boolean | null | undefined;
2913
2894
  };
2914
2895
  } | {
2915
2896
  type: "REPUBLISHING_RETRY";
@@ -2919,11 +2900,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2919
2900
  attemptNumber: number;
2920
2901
  previousHistoryId: string;
2921
2902
  originalFailureDate: Date;
2922
- fields?: {
2923
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2924
- autoFixable: boolean;
2925
- error?: string | null | undefined;
2926
- }[] | null | undefined;
2927
2903
  priceDropPayload?: {
2928
2904
  value: number;
2929
2905
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -2931,6 +2907,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2931
2907
  roundStep?: number | null | undefined;
2932
2908
  maxRounds?: number | null | undefined;
2933
2909
  } | null | undefined;
2910
+ fields?: {
2911
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
2912
+ autoFixable: boolean;
2913
+ error?: string | null | undefined;
2914
+ }[] | null | undefined;
2934
2915
  };
2935
2916
  } | {
2936
2917
  type: "SCHEDULED";
@@ -2954,7 +2935,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2954
2935
  };
2955
2936
  } | null | undefined;
2956
2937
  accountId?: string | null | undefined;
2957
- requestId?: string | null | undefined;
2958
2938
  targetDate?: Date | null | undefined;
2959
2939
  } | null | undefined;
2960
2940
  }[];
@@ -2967,6 +2947,40 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
2967
2947
  price: number;
2968
2948
  isPrepared: boolean;
2969
2949
  platformOrderId: string;
2950
+ items?: {
2951
+ orderId: string;
2952
+ itemOnPlatformId: string;
2953
+ itemOnPlatform?: {
2954
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
2955
+ id: string;
2956
+ createdAt: Date;
2957
+ updatedAt: Date;
2958
+ accountId: string;
2959
+ itemId: string | number;
2960
+ platformId: string;
2961
+ platformUrl: string;
2962
+ platformPrice: number;
2963
+ publishedAt: Date;
2964
+ favoritesCount?: number | null | undefined;
2965
+ viewsCount?: number | null | undefined;
2966
+ conversationId?: string | null | undefined;
2967
+ account?: {
2968
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
2969
+ name: string;
2970
+ userId: string | number;
2971
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
2972
+ accountId: string;
2973
+ locale?: string | null | undefined;
2974
+ night?: {
2975
+ startsAt: Date;
2976
+ endsAt: Date;
2977
+ } | null | undefined;
2978
+ favoritesMaxDelay?: number | null | undefined;
2979
+ ordersMaxDelay?: number | null | undefined;
2980
+ conversationsMaxDelay?: number | null | undefined;
2981
+ } | null | undefined;
2982
+ } | null | undefined;
2983
+ }[] | null | undefined;
2970
2984
  conversationId?: string | null | undefined;
2971
2985
  transactionId?: string | null | undefined;
2972
2986
  labels?: {
@@ -3018,57 +3032,24 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3018
3032
  longitude?: number | null | undefined;
3019
3033
  } | null | undefined;
3020
3034
  }[] | null | undefined;
3021
- items?: {
3022
- orderId: string;
3023
- itemOnPlatformId: string;
3024
- itemOnPlatform?: {
3025
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3026
- id: string;
3027
- createdAt: Date;
3028
- accountId: string;
3029
- itemId: string | number;
3030
- platformId: string;
3031
- platformUrl: string;
3032
- updatedAt: Date;
3033
- platformPrice: number;
3034
- publishedAt: Date;
3035
- favoritesCount?: number | null | undefined;
3036
- viewsCount?: number | null | undefined;
3037
- conversationId?: string | null | undefined;
3038
- account?: {
3039
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3040
- name: string;
3041
- userId: string | number;
3042
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3043
- accountId: string;
3044
- locale?: string | null | undefined;
3045
- night?: {
3046
- startsAt: Date;
3047
- endsAt: Date;
3048
- } | null | undefined;
3049
- favoritesMaxDelay?: number | null | undefined;
3050
- ordersMaxDelay?: number | null | undefined;
3051
- conversationsMaxDelay?: number | null | undefined;
3052
- } | null | undefined;
3053
- } | null | undefined;
3054
- }[] | null | undefined;
3055
3035
  };
3056
3036
  }, {
3057
3037
  items: {
3058
3038
  id: string | number;
3059
- name: string;
3060
3039
  createdAt: Date;
3061
- userId: string | number;
3062
3040
  updatedAt: Date;
3041
+ name: string;
3042
+ userId: string | number;
3063
3043
  sold: boolean;
3044
+ state?: number | null | undefined;
3064
3045
  fees?: {
3065
3046
  value: number;
3066
3047
  type: string;
3067
3048
  id: string | number;
3068
- name: string;
3069
3049
  createdAt: Date;
3070
- userId: string | number;
3071
3050
  updatedAt: Date;
3051
+ name: string;
3052
+ userId: string | number;
3072
3053
  recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
3073
3054
  startDate: Date;
3074
3055
  active: boolean;
@@ -3086,14 +3067,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3086
3067
  estimatedPrice?: number | null | undefined;
3087
3068
  purchaseDate?: Date | null | undefined;
3088
3069
  sellingDate?: Date | null | undefined;
3089
- state?: number | null | undefined;
3090
3070
  labels?: {
3091
3071
  itemId: string | number;
3092
3072
  labelId: string | number;
3093
3073
  label?: {
3094
3074
  id: string | number;
3095
- name: string;
3096
3075
  createdAt: Date;
3076
+ name: string;
3097
3077
  isUserLabel: boolean;
3098
3078
  itemCount?: number | null | undefined;
3099
3079
  userId?: string | number | null | undefined;
@@ -3115,11 +3095,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3115
3095
  status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3116
3096
  id: string;
3117
3097
  createdAt: Date;
3098
+ updatedAt: Date;
3118
3099
  accountId: string;
3119
3100
  itemId: string | number;
3120
3101
  platformId: string;
3121
3102
  platformUrl: string;
3122
- updatedAt: Date;
3123
3103
  platformPrice: number;
3124
3104
  publishedAt: Date;
3125
3105
  favoritesCount?: number | null | undefined;
@@ -3178,6 +3158,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3178
3158
  id: string;
3179
3159
  createdAt: Date;
3180
3160
  itemId: string | number;
3161
+ requestId?: string | null | undefined;
3181
3162
  data?: {
3182
3163
  type: "ACTION_CANCELED";
3183
3164
  data: {
@@ -3275,7 +3256,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3275
3256
  type: "REPUBLISHING";
3276
3257
  data: {
3277
3258
  platform: "ETSY" | "SHOPIFY" | "VINTED";
3278
- publishingDate?: Date | null | undefined;
3279
3259
  priceDropPayload?: {
3280
3260
  value: number;
3281
3261
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -3283,10 +3263,9 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3283
3263
  roundStep?: number | null | undefined;
3284
3264
  maxRounds?: number | null | undefined;
3285
3265
  } | null | undefined;
3286
- isTransfer?: boolean | null | undefined;
3287
- sourceAccountId?: string | null | undefined;
3266
+ publishingDate?: Date | null | undefined;
3288
3267
  targetAccountId?: string | null | undefined;
3289
- targetUserId?: number | null | undefined;
3268
+ isTransfer?: boolean | null | undefined;
3290
3269
  };
3291
3270
  } | {
3292
3271
  type: "REPUBLISHING_RETRY";
@@ -3296,11 +3275,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3296
3275
  attemptNumber: number;
3297
3276
  previousHistoryId: string;
3298
3277
  originalFailureDate: Date;
3299
- fields?: {
3300
- field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3301
- autoFixable: boolean;
3302
- error?: string | null | undefined;
3303
- }[] | null | undefined;
3304
3278
  priceDropPayload?: {
3305
3279
  value: number;
3306
3280
  type: "PERCENTAGE" | "ABSOLUTE";
@@ -3308,6 +3282,11 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3308
3282
  roundStep?: number | null | undefined;
3309
3283
  maxRounds?: number | null | undefined;
3310
3284
  } | null | undefined;
3285
+ fields?: {
3286
+ field: "TITLE" | "DESCRIPTION" | "PRICE" | "UNKNOWN" | "SIZE" | "BRAND" | "STATUS" | "PACKAGE_SIZE" | "COLOR" | "CATALOG" | "PHOTOS";
3287
+ autoFixable: boolean;
3288
+ error?: string | null | undefined;
3289
+ }[] | null | undefined;
3311
3290
  };
3312
3291
  } | {
3313
3292
  type: "SCHEDULED";
@@ -3331,7 +3310,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3331
3310
  };
3332
3311
  } | null | undefined;
3333
3312
  accountId?: string | null | undefined;
3334
- requestId?: string | null | undefined;
3335
3313
  targetDate?: Date | null | undefined;
3336
3314
  } | null | undefined;
3337
3315
  }[];
@@ -3344,6 +3322,40 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3344
3322
  price: number;
3345
3323
  isPrepared: boolean;
3346
3324
  platformOrderId: string;
3325
+ items?: {
3326
+ orderId: string;
3327
+ itemOnPlatformId: string;
3328
+ itemOnPlatform?: {
3329
+ status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3330
+ id: string;
3331
+ createdAt: Date;
3332
+ updatedAt: Date;
3333
+ accountId: string;
3334
+ itemId: string | number;
3335
+ platformId: string;
3336
+ platformUrl: string;
3337
+ platformPrice: number;
3338
+ publishedAt: Date;
3339
+ favoritesCount?: number | null | undefined;
3340
+ viewsCount?: number | null | undefined;
3341
+ conversationId?: string | null | undefined;
3342
+ account?: {
3343
+ status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3344
+ name: string;
3345
+ userId: string | number;
3346
+ platform: "ETSY" | "SHOPIFY" | "VINTED";
3347
+ accountId: string;
3348
+ locale?: string | null | undefined;
3349
+ night?: {
3350
+ startsAt: Date;
3351
+ endsAt: Date;
3352
+ } | null | undefined;
3353
+ favoritesMaxDelay?: number | null | undefined;
3354
+ ordersMaxDelay?: number | null | undefined;
3355
+ conversationsMaxDelay?: number | null | undefined;
3356
+ } | null | undefined;
3357
+ } | null | undefined;
3358
+ }[] | null | undefined;
3347
3359
  conversationId?: string | null | undefined;
3348
3360
  transactionId?: string | null | undefined;
3349
3361
  labels?: {
@@ -3395,40 +3407,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
3395
3407
  longitude?: number | null | undefined;
3396
3408
  } | null | undefined;
3397
3409
  }[] | null | undefined;
3398
- items?: {
3399
- orderId: string;
3400
- itemOnPlatformId: string;
3401
- itemOnPlatform?: {
3402
- status: "DRAFT" | "PENDING" | "ERROR" | "ONLINE" | "DELETED" | "ARCHIVED" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "DISPUTE";
3403
- id: string;
3404
- createdAt: Date;
3405
- accountId: string;
3406
- itemId: string | number;
3407
- platformId: string;
3408
- platformUrl: string;
3409
- updatedAt: Date;
3410
- platformPrice: number;
3411
- publishedAt: Date;
3412
- favoritesCount?: number | null | undefined;
3413
- viewsCount?: number | null | undefined;
3414
- conversationId?: string | null | undefined;
3415
- account?: {
3416
- status: "CONNECTED" | "DISCONNECTED" | "ERROR" | "LOCKED";
3417
- name: string;
3418
- userId: string | number;
3419
- platform: "ETSY" | "SHOPIFY" | "VINTED";
3420
- accountId: string;
3421
- locale?: string | null | undefined;
3422
- night?: {
3423
- startsAt: Date;
3424
- endsAt: Date;
3425
- } | null | undefined;
3426
- favoritesMaxDelay?: number | null | undefined;
3427
- ordersMaxDelay?: number | null | undefined;
3428
- conversationsMaxDelay?: number | null | undefined;
3429
- } | null | undefined;
3430
- } | null | undefined;
3431
- }[] | null | undefined;
3432
3410
  };
3433
3411
  }>;
3434
3412
  export type OrderWithItems = z.infer<typeof OrderWithItemsSchema>;