controlresell 2.0.10 → 2.1.0

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 (108) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/customers/VerifyCustomerRequest.d.ts +9 -0
  3. package/src/com/controlresell/models/customers/VerifyCustomerRequest.js +7 -0
  4. package/src/com/controlresell/models/customers/VerifyCustomerRequest.ts +6 -0
  5. package/src/com/controlresell/models/customers/contracts/Contract.d.ts +4 -4
  6. package/src/com/controlresell/models/customers/contracts/PrepareContractResponse.d.ts +4 -4
  7. package/src/com/controlresell/models/fees/Fee.d.ts +6 -6
  8. package/src/com/controlresell/models/items/CreatedItems.d.ts +74 -74
  9. package/src/com/controlresell/models/items/Item.d.ts +48 -48
  10. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +6 -6
  11. package/src/com/controlresell/models/items/ItemFiltersContext.js +2 -2
  12. package/src/com/controlresell/models/items/ItemFiltersContext.ts +2 -2
  13. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  14. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +70 -70
  15. package/src/com/controlresell/models/items/UpdatedItem.d.ts +74 -74
  16. package/src/com/controlresell/models/items/files/ItemFile.d.ts +6 -6
  17. package/src/com/controlresell/models/items/labels/ItemLabel.d.ts +4 -4
  18. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +10 -10
  19. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +70 -70
  20. package/src/com/controlresell/models/metadata/brands/Brand.d.ts +2 -2
  21. package/src/com/controlresell/models/metadata/labels/Label.d.ts +2 -2
  22. package/src/com/controlresell/models/metadata/places/Place.d.ts +2 -2
  23. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +149 -55
  24. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +193 -75
  25. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +97 -27
  26. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +6 -4
  27. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +6 -4
  28. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +12 -0
  29. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +8 -0
  30. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +7 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +5 -5
  32. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +1 -1
  33. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +1 -1
  34. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +133 -39
  35. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +45 -0
  36. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +10 -0
  37. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +9 -0
  38. package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.d.ts +48 -0
  39. package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.js +11 -0
  40. package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.ts +10 -0
  41. package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.d.ts +12 -0
  42. package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.js +8 -0
  43. package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.ts +7 -0
  44. package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.d.ts +9 -0
  45. package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.js +7 -0
  46. package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.ts +6 -0
  47. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.d.ts +21 -0
  48. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.js +12 -0
  49. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.ts +11 -0
  50. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.d.ts +9 -0
  51. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.js +7 -0
  52. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.ts +6 -0
  53. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.d.ts +15 -0
  54. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.js +10 -0
  55. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.ts +9 -0
  56. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.d.ts +9 -0
  57. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.js +8 -0
  58. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.ts +7 -0
  59. package/src/com/controlresell/models/platforms/conversations/users/ConversationUser.d.ts +4 -4
  60. package/src/com/controlresell/models/platforms/labels/OrderLabel.d.ts +10 -10
  61. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -0
  62. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.js +1 -0
  63. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.ts +1 -0
  64. package/src/com/controlresell/models/platforms/orders/Order.d.ts +45 -42
  65. package/src/com/controlresell/models/platforms/orders/Order.js +1 -0
  66. package/src/com/controlresell/models/platforms/orders/Order.ts +1 -0
  67. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +5 -2
  68. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.js +1 -0
  69. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.ts +1 -0
  70. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +16 -16
  71. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +1126 -0
  72. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.js +10 -0
  73. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.ts +9 -0
  74. package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.d.ts +21 -0
  75. package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.js +11 -0
  76. package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.ts +10 -0
  77. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +167 -0
  78. package/src/com/controlresell/models/platforms/transactions/Transaction.js +15 -0
  79. package/src/com/controlresell/models/platforms/transactions/Transaction.ts +14 -0
  80. package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.d.ts +18 -0
  81. package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.js +10 -0
  82. package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.ts +9 -0
  83. package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.d.ts +9 -0
  84. package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.js +7 -0
  85. package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.ts +6 -0
  86. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +102 -0
  87. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.js +10 -0
  88. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.ts +9 -0
  89. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +959 -0
  90. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.js +10 -0
  91. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.ts +9 -0
  92. package/src/com/controlresell/models/users/UpdateUserPayload.d.ts +2 -2
  93. package/src/com/controlresell/models/users/User.d.ts +2 -2
  94. package/src/com/controlresell/models/users/fields/Field.d.ts +2 -2
  95. package/src/com/controlresell/models/users/fields/FieldsWithData.d.ts +4 -4
  96. package/src/com/controlresell/models/users/files/File.d.ts +2 -2
  97. package/src/com/controlresell/models/users/platforms/CreateUserOnPlatformPayload.d.ts +2 -2
  98. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +8 -8
  99. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +11 -11
  100. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +2 -2
  101. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +4 -4
  102. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
  103. package/src/index.d.ts +18 -1
  104. package/src/index.js +18 -1
  105. package/src/index.ts +18 -1
  106. package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.d.ts +2 -2
  107. /package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.js +0 -0
  108. /package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.ts +0 -0
@@ -18,14 +18,14 @@ export declare const ConversationUserSchema: z.ZodObject<{
18
18
  path: string;
19
19
  id: string;
20
20
  userId: string | number;
21
- createdAt: Date;
22
21
  signedUrl: string;
22
+ createdAt: Date;
23
23
  }, {
24
24
  path: string;
25
25
  id: string;
26
26
  userId: string | number;
27
- createdAt: Date;
28
27
  signedUrl: string;
28
+ createdAt: Date;
29
29
  }>>>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  id: string;
@@ -40,8 +40,8 @@ export declare const ConversationUserSchema: z.ZodObject<{
40
40
  path: string;
41
41
  id: string;
42
42
  userId: string | number;
43
- createdAt: Date;
44
43
  signedUrl: string;
44
+ createdAt: Date;
45
45
  } | null | undefined;
46
46
  }, {
47
47
  id: string;
@@ -56,8 +56,8 @@ export declare const ConversationUserSchema: z.ZodObject<{
56
56
  path: string;
57
57
  id: string;
58
58
  userId: string | number;
59
- createdAt: Date;
60
59
  signedUrl: string;
60
+ createdAt: Date;
61
61
  } | null | undefined;
62
62
  }>;
63
63
  export type ConversationUser = z.infer<typeof ConversationUserSchema>;
@@ -14,14 +14,14 @@ export declare const OrderLabelSchema: z.ZodObject<{
14
14
  path: string;
15
15
  id: string;
16
16
  userId: string | number;
17
- createdAt: Date;
18
17
  signedUrl: string;
18
+ createdAt: Date;
19
19
  }, {
20
20
  path: string;
21
21
  id: string;
22
22
  userId: string | number;
23
- createdAt: Date;
24
23
  signedUrl: string;
24
+ createdAt: Date;
25
25
  }>>>;
26
26
  originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
27
  id: z.ZodString;
@@ -33,52 +33,52 @@ export declare const OrderLabelSchema: z.ZodObject<{
33
33
  path: string;
34
34
  id: string;
35
35
  userId: string | number;
36
- createdAt: Date;
37
36
  signedUrl: string;
37
+ createdAt: Date;
38
38
  }, {
39
39
  path: string;
40
40
  id: string;
41
41
  userId: string | number;
42
- createdAt: Date;
43
42
  signedUrl: string;
43
+ createdAt: Date;
44
44
  }>>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  id: string;
47
- orderId: string;
48
47
  fileId: string;
48
+ orderId: string;
49
49
  originalFileId: string;
50
50
  file?: {
51
51
  path: string;
52
52
  id: string;
53
53
  userId: string | number;
54
- createdAt: Date;
55
54
  signedUrl: string;
55
+ createdAt: Date;
56
56
  } | null | undefined;
57
57
  originalFile?: {
58
58
  path: string;
59
59
  id: string;
60
60
  userId: string | number;
61
- createdAt: Date;
62
61
  signedUrl: string;
62
+ createdAt: Date;
63
63
  } | null | undefined;
64
64
  }, {
65
65
  id: string;
66
- orderId: string;
67
66
  fileId: string;
67
+ orderId: string;
68
68
  originalFileId: string;
69
69
  file?: {
70
70
  path: string;
71
71
  id: string;
72
72
  userId: string | number;
73
- createdAt: Date;
74
73
  signedUrl: string;
74
+ createdAt: Date;
75
75
  } | null | undefined;
76
76
  originalFile?: {
77
77
  path: string;
78
78
  id: string;
79
79
  userId: string | number;
80
- createdAt: Date;
81
80
  signedUrl: string;
81
+ createdAt: Date;
82
82
  } | null | undefined;
83
83
  }>;
84
84
  export type OrderLabel = z.infer<typeof OrderLabelSchema>;
@@ -3,6 +3,7 @@ export declare const CreateOrderPayloadSchema: z.ZodObject<{
3
3
  platformOrderId: z.ZodString;
4
4
  status: z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>;
5
5
  conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
7
  price: z.ZodNumber;
7
8
  date: z.ZodDate;
8
9
  }, "strip", z.ZodTypeAny, {
@@ -10,12 +11,14 @@ export declare const CreateOrderPayloadSchema: z.ZodObject<{
10
11
  date: Date;
11
12
  price: number;
12
13
  platformOrderId: string;
14
+ transactionId?: string | null | undefined;
13
15
  conversationId?: string | null | undefined;
14
16
  }, {
15
17
  status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
16
18
  date: Date;
17
19
  price: number;
18
20
  platformOrderId: string;
21
+ transactionId?: string | null | undefined;
19
22
  conversationId?: string | null | undefined;
20
23
  }>;
21
24
  export type CreateOrderPayload = z.infer<typeof CreateOrderPayloadSchema>;
@@ -7,6 +7,7 @@ exports.CreateOrderPayloadSchema = zod_1.z.object({
7
7
  platformOrderId: zod_1.z.string(),
8
8
  status: controlresell_connector_1.JobOrderStatusSchema,
9
9
  conversationId: zod_1.z.string().uuid().nullish(),
10
+ transactionId: zod_1.z.string().uuid().nullish(),
10
11
  price: zod_1.z.number(),
11
12
  date: zod_1.z.coerce.date()
12
13
  });
@@ -5,6 +5,7 @@ export const CreateOrderPayloadSchema = z.object({
5
5
  platformOrderId: z.string(),
6
6
  status: JobOrderStatusSchema,
7
7
  conversationId: z.string().uuid().nullish(),
8
+ transactionId: z.string().uuid().nullish(),
8
9
  price: z.number(),
9
10
  date: z.coerce.date()
10
11
  })
@@ -5,6 +5,7 @@ export declare const OrderSchema: z.ZodObject<{
5
5
  platformOrderId: z.ZodString;
6
6
  status: z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>;
7
7
  conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
9
  price: z.ZodNumber;
9
10
  date: z.ZodDate;
10
11
  items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -26,46 +27,46 @@ export declare const OrderSchema: z.ZodObject<{
26
27
  status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
27
28
  }, "strip", z.ZodTypeAny, {
28
29
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
30
+ userId: string | number;
31
+ name: string;
29
32
  platform: "VINTED" | "SHOPIFY";
30
33
  accountId: string;
31
- name: string;
32
- userId: string | number;
33
34
  }, {
34
35
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
36
+ userId: string | number;
37
+ name: string;
35
38
  platform: "VINTED" | "SHOPIFY";
36
39
  accountId: string;
37
- name: string;
38
- userId: string | number;
39
40
  }>>>;
40
41
  }, "strip", z.ZodTypeAny, {
41
42
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
42
43
  id: string;
43
- accountId: string;
44
44
  itemId: string | number;
45
+ accountId: string;
45
46
  platformId: string;
46
47
  platformUrl: string;
47
48
  platformPrice: number;
48
49
  account?: {
49
50
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
51
+ userId: string | number;
52
+ name: string;
50
53
  platform: "VINTED" | "SHOPIFY";
51
54
  accountId: string;
52
- name: string;
53
- userId: string | number;
54
55
  } | null | undefined;
55
56
  }, {
56
57
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
57
58
  id: string;
58
- accountId: string;
59
59
  itemId: string | number;
60
+ accountId: string;
60
61
  platformId: string;
61
62
  platformUrl: string;
62
63
  platformPrice: number;
63
64
  account?: {
64
65
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
66
+ userId: string | number;
67
+ name: string;
65
68
  platform: "VINTED" | "SHOPIFY";
66
69
  accountId: string;
67
- name: string;
68
- userId: string | number;
69
70
  } | null | undefined;
70
71
  }>>>;
71
72
  }, "strip", z.ZodTypeAny, {
@@ -74,17 +75,17 @@ export declare const OrderSchema: z.ZodObject<{
74
75
  itemOnPlatform?: {
75
76
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
76
77
  id: string;
77
- accountId: string;
78
78
  itemId: string | number;
79
+ accountId: string;
79
80
  platformId: string;
80
81
  platformUrl: string;
81
82
  platformPrice: number;
82
83
  account?: {
83
84
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
85
+ userId: string | number;
86
+ name: string;
84
87
  platform: "VINTED" | "SHOPIFY";
85
88
  accountId: string;
86
- name: string;
87
- userId: string | number;
88
89
  } | null | undefined;
89
90
  } | null | undefined;
90
91
  }, {
@@ -93,17 +94,17 @@ export declare const OrderSchema: z.ZodObject<{
93
94
  itemOnPlatform?: {
94
95
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
95
96
  id: string;
96
- accountId: string;
97
97
  itemId: string | number;
98
+ accountId: string;
98
99
  platformId: string;
99
100
  platformUrl: string;
100
101
  platformPrice: number;
101
102
  account?: {
102
103
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
104
+ userId: string | number;
105
+ name: string;
103
106
  platform: "VINTED" | "SHOPIFY";
104
107
  accountId: string;
105
- name: string;
106
- userId: string | number;
107
108
  } | null | undefined;
108
109
  } | null | undefined;
109
110
  }>, "many">>>;
@@ -122,14 +123,14 @@ export declare const OrderSchema: z.ZodObject<{
122
123
  path: string;
123
124
  id: string;
124
125
  userId: string | number;
125
- createdAt: Date;
126
126
  signedUrl: string;
127
+ createdAt: Date;
127
128
  }, {
128
129
  path: string;
129
130
  id: string;
130
131
  userId: string | number;
131
- createdAt: Date;
132
132
  signedUrl: string;
133
+ createdAt: Date;
133
134
  }>>>;
134
135
  originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
135
136
  id: z.ZodString;
@@ -141,148 +142,150 @@ export declare const OrderSchema: z.ZodObject<{
141
142
  path: string;
142
143
  id: string;
143
144
  userId: string | number;
144
- createdAt: Date;
145
145
  signedUrl: string;
146
+ createdAt: Date;
146
147
  }, {
147
148
  path: string;
148
149
  id: string;
149
150
  userId: string | number;
150
- createdAt: Date;
151
151
  signedUrl: string;
152
+ createdAt: Date;
152
153
  }>>>;
153
154
  }, "strip", z.ZodTypeAny, {
154
155
  id: string;
155
- orderId: string;
156
156
  fileId: string;
157
+ orderId: string;
157
158
  originalFileId: string;
158
159
  file?: {
159
160
  path: string;
160
161
  id: string;
161
162
  userId: string | number;
162
- createdAt: Date;
163
163
  signedUrl: string;
164
+ createdAt: Date;
164
165
  } | null | undefined;
165
166
  originalFile?: {
166
167
  path: string;
167
168
  id: string;
168
169
  userId: string | number;
169
- createdAt: Date;
170
170
  signedUrl: string;
171
+ createdAt: Date;
171
172
  } | null | undefined;
172
173
  }, {
173
174
  id: string;
174
- orderId: string;
175
175
  fileId: string;
176
+ orderId: string;
176
177
  originalFileId: string;
177
178
  file?: {
178
179
  path: string;
179
180
  id: string;
180
181
  userId: string | number;
181
- createdAt: Date;
182
182
  signedUrl: string;
183
+ createdAt: Date;
183
184
  } | null | undefined;
184
185
  originalFile?: {
185
186
  path: string;
186
187
  id: string;
187
188
  userId: string | number;
188
- createdAt: Date;
189
189
  signedUrl: string;
190
+ createdAt: Date;
190
191
  } | null | undefined;
191
192
  }>, "many">>>;
192
193
  }, "strip", z.ZodTypeAny, {
193
194
  status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
194
195
  id: string;
195
196
  date: Date;
196
- accountId: string;
197
197
  price: number;
198
+ accountId: string;
198
199
  platformOrderId: string;
199
- conversationId?: string | null | undefined;
200
200
  items?: {
201
201
  orderId: string;
202
202
  itemOnPlatformId: string;
203
203
  itemOnPlatform?: {
204
204
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
205
205
  id: string;
206
- accountId: string;
207
206
  itemId: string | number;
207
+ accountId: string;
208
208
  platformId: string;
209
209
  platformUrl: string;
210
210
  platformPrice: number;
211
211
  account?: {
212
212
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
213
+ userId: string | number;
214
+ name: string;
213
215
  platform: "VINTED" | "SHOPIFY";
214
216
  accountId: string;
215
- name: string;
216
- userId: string | number;
217
217
  } | null | undefined;
218
218
  } | null | undefined;
219
219
  }[] | null | undefined;
220
+ transactionId?: string | null | undefined;
221
+ conversationId?: string | null | undefined;
220
222
  labels?: {
221
223
  id: string;
222
- orderId: string;
223
224
  fileId: string;
225
+ orderId: string;
224
226
  originalFileId: string;
225
227
  file?: {
226
228
  path: string;
227
229
  id: string;
228
230
  userId: string | number;
229
- createdAt: Date;
230
231
  signedUrl: string;
232
+ createdAt: Date;
231
233
  } | null | undefined;
232
234
  originalFile?: {
233
235
  path: string;
234
236
  id: string;
235
237
  userId: string | number;
236
- createdAt: Date;
237
238
  signedUrl: string;
239
+ createdAt: Date;
238
240
  } | null | undefined;
239
241
  }[] | null | undefined;
240
242
  }, {
241
243
  status: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN";
242
244
  id: string;
243
245
  date: Date;
244
- accountId: string;
245
246
  price: number;
247
+ accountId: string;
246
248
  platformOrderId: string;
247
- conversationId?: string | null | undefined;
248
249
  items?: {
249
250
  orderId: string;
250
251
  itemOnPlatformId: string;
251
252
  itemOnPlatform?: {
252
253
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
253
254
  id: string;
254
- accountId: string;
255
255
  itemId: string | number;
256
+ accountId: string;
256
257
  platformId: string;
257
258
  platformUrl: string;
258
259
  platformPrice: number;
259
260
  account?: {
260
261
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
262
+ userId: string | number;
263
+ name: string;
261
264
  platform: "VINTED" | "SHOPIFY";
262
265
  accountId: string;
263
- name: string;
264
- userId: string | number;
265
266
  } | null | undefined;
266
267
  } | null | undefined;
267
268
  }[] | null | undefined;
269
+ transactionId?: string | null | undefined;
270
+ conversationId?: string | null | undefined;
268
271
  labels?: {
269
272
  id: string;
270
- orderId: string;
271
273
  fileId: string;
274
+ orderId: string;
272
275
  originalFileId: string;
273
276
  file?: {
274
277
  path: string;
275
278
  id: string;
276
279
  userId: string | number;
277
- createdAt: Date;
278
280
  signedUrl: string;
281
+ createdAt: Date;
279
282
  } | null | undefined;
280
283
  originalFile?: {
281
284
  path: string;
282
285
  id: string;
283
286
  userId: string | number;
284
- createdAt: Date;
285
287
  signedUrl: string;
288
+ createdAt: Date;
286
289
  } | null | undefined;
287
290
  }[] | null | undefined;
288
291
  }>;
@@ -11,6 +11,7 @@ exports.OrderSchema = zod_1.z.object({
11
11
  platformOrderId: zod_1.z.string(),
12
12
  status: controlresell_connector_1.JobOrderStatusSchema,
13
13
  conversationId: zod_1.z.string().uuid().nullish(),
14
+ transactionId: zod_1.z.string().uuid().nullish(),
14
15
  price: zod_1.z.number(),
15
16
  date: zod_1.z.coerce.date(),
16
17
  items: zod_1.z.array(ItemInOrder_1.ItemInOrderSchema).nullish(),
@@ -9,6 +9,7 @@ export const OrderSchema = z.object({
9
9
  platformOrderId: z.string(),
10
10
  status: JobOrderStatusSchema,
11
11
  conversationId: z.string().uuid().nullish(),
12
+ transactionId: z.string().uuid().nullish(),
12
13
  price: z.number(),
13
14
  date: z.coerce.date(),
14
15
  items: z.array(ItemInOrderSchema).nullish(),
@@ -2,17 +2,20 @@ import { z } from "zod";
2
2
  export declare const UpdateOrderPayloadSchema: z.ZodObject<{
3
3
  status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PAYMENT_VALIDATED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "UNKNOWN"]>>>;
4
4
  conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
6
  price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
7
  date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
7
8
  }, "strip", z.ZodTypeAny, {
8
9
  status?: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN" | null | undefined;
9
10
  date?: Date | null | undefined;
10
- conversationId?: string | null | undefined;
11
11
  price?: number | null | undefined;
12
+ transactionId?: string | null | undefined;
13
+ conversationId?: string | null | undefined;
12
14
  }, {
13
15
  status?: "PAYMENT_VALIDATED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "UNKNOWN" | null | undefined;
14
16
  date?: Date | null | undefined;
15
- conversationId?: string | null | undefined;
16
17
  price?: number | null | undefined;
18
+ transactionId?: string | null | undefined;
19
+ conversationId?: string | null | undefined;
17
20
  }>;
18
21
  export type UpdateOrderPayload = z.infer<typeof UpdateOrderPayloadSchema>;
@@ -6,6 +6,7 @@ const controlresell_connector_1 = require("controlresell-connector");
6
6
  exports.UpdateOrderPayloadSchema = zod_1.z.object({
7
7
  status: controlresell_connector_1.JobOrderStatusSchema.nullish(),
8
8
  conversationId: zod_1.z.string().uuid().nullish(),
9
+ transactionId: zod_1.z.string().uuid().nullish(),
9
10
  price: zod_1.z.number().nullish(),
10
11
  date: zod_1.z.coerce.date().nullish()
11
12
  });
@@ -4,6 +4,7 @@ import {JobOrderStatusSchema} from "controlresell-connector"
4
4
  export const UpdateOrderPayloadSchema = z.object({
5
5
  status: JobOrderStatusSchema.nullish(),
6
6
  conversationId: z.string().uuid().nullish(),
7
+ transactionId: z.string().uuid().nullish(),
7
8
  price: z.number().nullish(),
8
9
  date: z.coerce.date().nullish()
9
10
  })
@@ -18,46 +18,46 @@ export declare const ItemInOrderSchema: z.ZodObject<{
18
18
  status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
21
+ userId: string | number;
22
+ name: string;
21
23
  platform: "VINTED" | "SHOPIFY";
22
24
  accountId: string;
23
- name: string;
24
- userId: string | number;
25
25
  }, {
26
26
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
27
+ userId: string | number;
28
+ name: string;
27
29
  platform: "VINTED" | "SHOPIFY";
28
30
  accountId: string;
29
- name: string;
30
- userId: string | number;
31
31
  }>>>;
32
32
  }, "strip", z.ZodTypeAny, {
33
33
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
34
34
  id: string;
35
- accountId: string;
36
35
  itemId: string | number;
36
+ accountId: string;
37
37
  platformId: string;
38
38
  platformUrl: string;
39
39
  platformPrice: number;
40
40
  account?: {
41
41
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
42
+ userId: string | number;
43
+ name: string;
42
44
  platform: "VINTED" | "SHOPIFY";
43
45
  accountId: string;
44
- name: string;
45
- userId: string | number;
46
46
  } | null | undefined;
47
47
  }, {
48
48
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
49
49
  id: string;
50
- accountId: string;
51
50
  itemId: string | number;
51
+ accountId: string;
52
52
  platformId: string;
53
53
  platformUrl: string;
54
54
  platformPrice: number;
55
55
  account?: {
56
56
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
57
+ userId: string | number;
58
+ name: string;
57
59
  platform: "VINTED" | "SHOPIFY";
58
60
  accountId: string;
59
- name: string;
60
- userId: string | number;
61
61
  } | null | undefined;
62
62
  }>>>;
63
63
  }, "strip", z.ZodTypeAny, {
@@ -66,17 +66,17 @@ export declare const ItemInOrderSchema: z.ZodObject<{
66
66
  itemOnPlatform?: {
67
67
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
68
68
  id: string;
69
- accountId: string;
70
69
  itemId: string | number;
70
+ accountId: string;
71
71
  platformId: string;
72
72
  platformUrl: string;
73
73
  platformPrice: number;
74
74
  account?: {
75
75
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
76
+ userId: string | number;
77
+ name: string;
76
78
  platform: "VINTED" | "SHOPIFY";
77
79
  accountId: string;
78
- name: string;
79
- userId: string | number;
80
80
  } | null | undefined;
81
81
  } | null | undefined;
82
82
  }, {
@@ -85,17 +85,17 @@ export declare const ItemInOrderSchema: z.ZodObject<{
85
85
  itemOnPlatform?: {
86
86
  status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
87
87
  id: string;
88
- accountId: string;
89
88
  itemId: string | number;
89
+ accountId: string;
90
90
  platformId: string;
91
91
  platformUrl: string;
92
92
  platformPrice: number;
93
93
  account?: {
94
94
  status: "ERROR" | "CONNECTED" | "DISCONNECTED";
95
+ userId: string | number;
96
+ name: string;
95
97
  platform: "VINTED" | "SHOPIFY";
96
98
  accountId: string;
97
- name: string;
98
- userId: string | number;
99
99
  } | null | undefined;
100
100
  } | null | undefined;
101
101
  }>;