controlresell 2.1.10 → 2.1.12

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 (53) hide show
  1. package/package.json +3 -3
  2. package/src/com/controlresell/models/items/CreatedItems.d.ts +7 -7
  3. package/src/com/controlresell/models/items/Item.d.ts +5 -5
  4. package/src/com/controlresell/models/items/ItemSoldPayload.d.ts +6 -6
  5. package/src/com/controlresell/models/items/ItemSoldPayload.js +2 -2
  6. package/src/com/controlresell/models/items/ItemSoldPayload.ts +2 -2
  7. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +7 -7
  8. package/src/com/controlresell/models/items/UpdatedItem.d.ts +7 -7
  9. package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.d.ts +6 -6
  10. package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.js +2 -2
  11. package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.ts +2 -2
  12. package/src/com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload.d.ts +9 -0
  13. package/src/com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload.js +8 -0
  14. package/src/com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload.ts +7 -0
  15. package/src/com/controlresell/models/items/history/data/ItemHistoryScheduledPayload.d.ts +12 -0
  16. package/src/com/controlresell/models/items/history/data/ItemHistoryScheduledPayload.js +9 -0
  17. package/src/com/controlresell/models/items/history/data/ItemHistoryScheduledPayload.ts +8 -0
  18. package/src/com/controlresell/models/items/platforms/CreateItemOnPlatformPayload.d.ts +3 -3
  19. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +3 -3
  20. package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.d.ts +1 -1
  21. package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.js +1 -1
  22. package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.ts +1 -1
  23. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +3 -3
  24. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +33 -0
  25. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +43 -0
  26. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +23 -0
  27. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +2 -0
  28. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +2 -0
  29. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +33 -0
  30. package/src/com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload.d.ts +12 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload.js +8 -0
  32. package/src/com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload.ts +7 -0
  33. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage.d.ts +15 -0
  34. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage.js +9 -0
  35. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage.ts +8 -0
  36. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslationContext.d.ts +9 -0
  37. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslationContext.js +7 -0
  38. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslationContext.ts +6 -0
  39. package/src/com/controlresell/models/platforms/orders/Order.d.ts +7 -7
  40. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +5 -5
  41. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +16 -16
  42. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +7 -7
  43. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +5 -5
  44. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +16 -16
  45. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
  46. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.js +1 -1
  47. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.ts +2 -2
  48. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
  49. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.js +2 -2
  50. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.ts +3 -3
  51. package/src/index.d.ts +5 -0
  52. package/src/index.js +5 -0
  53. package/src/index.ts +5 -0
@@ -59,6 +59,19 @@ export declare const UserConversationsSchema: z.ZodObject<{
59
59
  transactionId?: string | null | undefined;
60
60
  platformOfferId?: string | null | undefined;
61
61
  }>>>;
62
+ translation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
63
+ messageId: z.ZodString;
64
+ lang: z.ZodString;
65
+ body: z.ZodString;
66
+ }, "strip", z.ZodTypeAny, {
67
+ body: string;
68
+ messageId: string;
69
+ lang: string;
70
+ }, {
71
+ body: string;
72
+ messageId: string;
73
+ lang: string;
74
+ }>>>;
62
75
  files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
63
76
  fileId: z.ZodString;
64
77
  messageId: z.ZodString;
@@ -134,6 +147,11 @@ export declare const UserConversationsSchema: z.ZodObject<{
134
147
  }[] | null | undefined;
135
148
  conversationUserId?: string | null | undefined;
136
149
  platformMessageId?: string | null | undefined;
150
+ translation?: {
151
+ body: string;
152
+ messageId: string;
153
+ lang: string;
154
+ } | null | undefined;
137
155
  }, {
138
156
  type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
139
157
  id: string;
@@ -163,6 +181,11 @@ export declare const UserConversationsSchema: z.ZodObject<{
163
181
  }[] | null | undefined;
164
182
  conversationUserId?: string | null | undefined;
165
183
  platformMessageId?: string | null | undefined;
184
+ translation?: {
185
+ body: string;
186
+ messageId: string;
187
+ lang: string;
188
+ } | null | undefined;
166
189
  }>>>;
167
190
  users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
168
191
  id: z.ZodString;
@@ -283,6 +306,11 @@ export declare const UserConversationsSchema: z.ZodObject<{
283
306
  }[] | null | undefined;
284
307
  conversationUserId?: string | null | undefined;
285
308
  platformMessageId?: string | null | undefined;
309
+ translation?: {
310
+ body: string;
311
+ messageId: string;
312
+ lang: string;
313
+ } | null | undefined;
286
314
  } | null | undefined;
287
315
  }, {
288
316
  id: string;
@@ -342,6 +370,11 @@ export declare const UserConversationsSchema: z.ZodObject<{
342
370
  }[] | null | undefined;
343
371
  conversationUserId?: string | null | undefined;
344
372
  platformMessageId?: string | null | undefined;
373
+ translation?: {
374
+ body: string;
375
+ messageId: string;
376
+ lang: string;
377
+ } | null | undefined;
345
378
  } | null | undefined;
346
379
  }>, "many">;
347
380
  currentPage: z.ZodNumber;
@@ -406,6 +439,11 @@ export declare const UserConversationsSchema: z.ZodObject<{
406
439
  }[] | null | undefined;
407
440
  conversationUserId?: string | null | undefined;
408
441
  platformMessageId?: string | null | undefined;
442
+ translation?: {
443
+ body: string;
444
+ messageId: string;
445
+ lang: string;
446
+ } | null | undefined;
409
447
  } | null | undefined;
410
448
  }[];
411
449
  currentPage: number;
@@ -471,6 +509,11 @@ export declare const UserConversationsSchema: z.ZodObject<{
471
509
  }[] | null | undefined;
472
510
  conversationUserId?: string | null | undefined;
473
511
  platformMessageId?: string | null | undefined;
512
+ translation?: {
513
+ body: string;
514
+ messageId: string;
515
+ lang: string;
516
+ } | null | undefined;
474
517
  } | null | undefined;
475
518
  }[];
476
519
  currentPage: number;
@@ -32,6 +32,19 @@ export declare const ConversationMessageSchema: z.ZodObject<{
32
32
  transactionId?: string | null | undefined;
33
33
  platformOfferId?: string | null | undefined;
34
34
  }>>>;
35
+ translation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
36
+ messageId: z.ZodString;
37
+ lang: z.ZodString;
38
+ body: z.ZodString;
39
+ }, "strip", z.ZodTypeAny, {
40
+ body: string;
41
+ messageId: string;
42
+ lang: string;
43
+ }, {
44
+ body: string;
45
+ messageId: string;
46
+ lang: string;
47
+ }>>>;
35
48
  files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
36
49
  fileId: z.ZodString;
37
50
  messageId: z.ZodString;
@@ -107,6 +120,11 @@ export declare const ConversationMessageSchema: z.ZodObject<{
107
120
  }[] | null | undefined;
108
121
  conversationUserId?: string | null | undefined;
109
122
  platformMessageId?: string | null | undefined;
123
+ translation?: {
124
+ body: string;
125
+ messageId: string;
126
+ lang: string;
127
+ } | null | undefined;
110
128
  }, {
111
129
  type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
112
130
  id: string;
@@ -136,5 +154,10 @@ export declare const ConversationMessageSchema: z.ZodObject<{
136
154
  }[] | null | undefined;
137
155
  conversationUserId?: string | null | undefined;
138
156
  platformMessageId?: string | null | undefined;
157
+ translation?: {
158
+ body: string;
159
+ messageId: string;
160
+ lang: string;
161
+ } | null | undefined;
139
162
  }>;
140
163
  export type ConversationMessage = z.infer<typeof ConversationMessageSchema>;
@@ -4,6 +4,7 @@ exports.ConversationMessageSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const controlresell_connector_1 = require("controlresell-connector");
6
6
  const ConversationMessageOffer_1 = require("./offers/ConversationMessageOffer");
7
+ const TranslatedMessage_1 = require("./translations/TranslatedMessage");
7
8
  const ConversationMessageFile_1 = require("./files/ConversationMessageFile");
8
9
  exports.ConversationMessageSchema = zod_1.z.object({
9
10
  id: zod_1.z.string().uuid(),
@@ -14,5 +15,6 @@ exports.ConversationMessageSchema = zod_1.z.object({
14
15
  body: zod_1.z.string().nullish(),
15
16
  createdAt: zod_1.z.coerce.date(),
16
17
  offer: ConversationMessageOffer_1.ConversationMessageOfferSchema.nullish(),
18
+ translation: TranslatedMessage_1.TranslatedMessageSchema.nullish(),
17
19
  files: zod_1.z.array(ConversationMessageFile_1.ConversationMessageFileSchema).nullish()
18
20
  });
@@ -1,6 +1,7 @@
1
1
  import {z} from "zod"
2
2
  import {JobConversationMessageTypeSchema} from "controlresell-connector"
3
3
  import {ConversationMessageOfferSchema} from "./offers/ConversationMessageOffer"
4
+ import {TranslatedMessageSchema} from "./translations/TranslatedMessage"
4
5
  import {ConversationMessageFileSchema} from "./files/ConversationMessageFile"
5
6
 
6
7
  export const ConversationMessageSchema = z.object({
@@ -12,6 +13,7 @@ export const ConversationMessageSchema = z.object({
12
13
  body: z.string().nullish(),
13
14
  createdAt: z.coerce.date(),
14
15
  offer: ConversationMessageOfferSchema.nullish(),
16
+ translation: TranslatedMessageSchema.nullish(),
15
17
  files: z.array(ConversationMessageFileSchema).nullish()
16
18
  })
17
19
  export type ConversationMessage = z.infer<typeof ConversationMessageSchema>
@@ -34,6 +34,19 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
34
34
  transactionId?: string | null | undefined;
35
35
  platformOfferId?: string | null | undefined;
36
36
  }>>>;
37
+ translation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
38
+ messageId: z.ZodString;
39
+ lang: z.ZodString;
40
+ body: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ body: string;
43
+ messageId: string;
44
+ lang: string;
45
+ }, {
46
+ body: string;
47
+ messageId: string;
48
+ lang: string;
49
+ }>>>;
37
50
  files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
38
51
  fileId: z.ZodString;
39
52
  messageId: z.ZodString;
@@ -109,6 +122,11 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
109
122
  }[] | null | undefined;
110
123
  conversationUserId?: string | null | undefined;
111
124
  platformMessageId?: string | null | undefined;
125
+ translation?: {
126
+ body: string;
127
+ messageId: string;
128
+ lang: string;
129
+ } | null | undefined;
112
130
  }, {
113
131
  type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
114
132
  id: string;
@@ -138,6 +156,11 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
138
156
  }[] | null | undefined;
139
157
  conversationUserId?: string | null | undefined;
140
158
  platformMessageId?: string | null | undefined;
159
+ translation?: {
160
+ body: string;
161
+ messageId: string;
162
+ lang: string;
163
+ } | null | undefined;
141
164
  }>, "many">;
142
165
  currentPage: z.ZodNumber;
143
166
  totalPages: z.ZodNumber;
@@ -172,6 +195,11 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
172
195
  }[] | null | undefined;
173
196
  conversationUserId?: string | null | undefined;
174
197
  platformMessageId?: string | null | undefined;
198
+ translation?: {
199
+ body: string;
200
+ messageId: string;
201
+ lang: string;
202
+ } | null | undefined;
175
203
  }[];
176
204
  currentPage: number;
177
205
  totalPages: number;
@@ -206,6 +234,11 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
206
234
  }[] | null | undefined;
207
235
  conversationUserId?: string | null | undefined;
208
236
  platformMessageId?: string | null | undefined;
237
+ translation?: {
238
+ body: string;
239
+ messageId: string;
240
+ lang: string;
241
+ } | null | undefined;
209
242
  }[];
210
243
  currentPage: number;
211
244
  totalPages: number;
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const CreateTranslatedMessagePayloadSchema: z.ZodObject<{
3
+ lang: z.ZodString;
4
+ body: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ body: string;
7
+ lang: string;
8
+ }, {
9
+ body: string;
10
+ lang: string;
11
+ }>;
12
+ export type CreateTranslatedMessagePayload = z.infer<typeof CreateTranslatedMessagePayloadSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateTranslatedMessagePayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.CreateTranslatedMessagePayloadSchema = zod_1.z.object({
6
+ lang: zod_1.z.string(),
7
+ body: zod_1.z.string()
8
+ });
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+
3
+ export const CreateTranslatedMessagePayloadSchema = z.object({
4
+ lang: z.string(),
5
+ body: z.string()
6
+ })
7
+ export type CreateTranslatedMessagePayload = z.infer<typeof CreateTranslatedMessagePayloadSchema>
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ export declare const TranslatedMessageSchema: z.ZodObject<{
3
+ messageId: z.ZodString;
4
+ lang: z.ZodString;
5
+ body: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ body: string;
8
+ messageId: string;
9
+ lang: string;
10
+ }, {
11
+ body: string;
12
+ messageId: string;
13
+ lang: string;
14
+ }>;
15
+ export type TranslatedMessage = z.infer<typeof TranslatedMessageSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TranslatedMessageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TranslatedMessageSchema = zod_1.z.object({
6
+ messageId: zod_1.z.string().uuid(),
7
+ lang: zod_1.z.string(),
8
+ body: zod_1.z.string()
9
+ });
@@ -0,0 +1,8 @@
1
+ import {z} from "zod"
2
+
3
+ export const TranslatedMessageSchema = z.object({
4
+ messageId: z.string().uuid(),
5
+ lang: z.string(),
6
+ body: z.string()
7
+ })
8
+ export type TranslatedMessage = z.infer<typeof TranslatedMessageSchema>
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export declare const TranslationContextSchema: z.ZodObject<{
3
+ lang: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ lang: string;
6
+ }, {
7
+ lang: string;
8
+ }>;
9
+ export type TranslationContext = z.infer<typeof TranslationContextSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TranslationContextSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TranslationContextSchema = zod_1.z.object({
6
+ lang: zod_1.z.string()
7
+ });
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const TranslationContextSchema = z.object({
4
+ lang: z.string()
5
+ })
6
+ export type TranslationContext = z.infer<typeof TranslationContextSchema>
@@ -18,7 +18,7 @@ export declare const OrderSchema: z.ZodObject<{
18
18
  platformId: z.ZodString;
19
19
  platformUrl: z.ZodString;
20
20
  platformPrice: z.ZodNumber;
21
- status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
21
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
22
22
  account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23
23
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
24
24
  accountId: z.ZodString;
@@ -39,7 +39,7 @@ export declare const OrderSchema: z.ZodObject<{
39
39
  accountId: string;
40
40
  }>>>;
41
41
  }, "strip", z.ZodTypeAny, {
42
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
42
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
43
43
  id: string;
44
44
  itemId: string | number;
45
45
  accountId: string;
@@ -54,7 +54,7 @@ export declare const OrderSchema: z.ZodObject<{
54
54
  accountId: string;
55
55
  } | null | undefined;
56
56
  }, {
57
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
57
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
58
58
  id: string;
59
59
  itemId: string | number;
60
60
  accountId: string;
@@ -73,7 +73,7 @@ export declare const OrderSchema: z.ZodObject<{
73
73
  orderId: string;
74
74
  itemOnPlatformId: string;
75
75
  itemOnPlatform?: {
76
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
76
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
77
77
  id: string;
78
78
  itemId: string | number;
79
79
  accountId: string;
@@ -92,7 +92,7 @@ export declare const OrderSchema: z.ZodObject<{
92
92
  orderId: string;
93
93
  itemOnPlatformId: string;
94
94
  itemOnPlatform?: {
95
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
95
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
96
96
  id: string;
97
97
  itemId: string | number;
98
98
  accountId: string;
@@ -201,7 +201,7 @@ export declare const OrderSchema: z.ZodObject<{
201
201
  orderId: string;
202
202
  itemOnPlatformId: string;
203
203
  itemOnPlatform?: {
204
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
204
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
205
205
  id: string;
206
206
  itemId: string | number;
207
207
  accountId: string;
@@ -250,7 +250,7 @@ export declare const OrderSchema: z.ZodObject<{
250
250
  orderId: string;
251
251
  itemOnPlatformId: string;
252
252
  itemOnPlatform?: {
253
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
253
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
254
254
  id: string;
255
255
  itemId: string | number;
256
256
  accountId: string;
@@ -9,7 +9,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
9
9
  platformId: z.ZodString;
10
10
  platformUrl: z.ZodString;
11
11
  platformPrice: z.ZodNumber;
12
- status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
12
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
13
13
  account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
14
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
15
15
  accountId: z.ZodString;
@@ -30,7 +30,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
30
30
  accountId: string;
31
31
  }>>>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
33
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
34
34
  id: string;
35
35
  itemId: string | number;
36
36
  accountId: string;
@@ -45,7 +45,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
45
45
  accountId: string;
46
46
  } | null | undefined;
47
47
  }, {
48
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
48
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
49
49
  id: string;
50
50
  itemId: string | number;
51
51
  accountId: string;
@@ -64,7 +64,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
64
64
  orderId: string;
65
65
  itemOnPlatformId: string;
66
66
  itemOnPlatform?: {
67
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
67
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
68
68
  id: string;
69
69
  itemId: string | number;
70
70
  accountId: string;
@@ -83,7 +83,7 @@ export declare const ItemInOrderSchema: z.ZodObject<{
83
83
  orderId: string;
84
84
  itemOnPlatformId: string;
85
85
  itemOnPlatform?: {
86
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
86
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
87
87
  id: string;
88
88
  itemId: string | number;
89
89
  accountId: string;
@@ -19,7 +19,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
19
19
  platformId: z.ZodString;
20
20
  platformUrl: z.ZodString;
21
21
  platformPrice: z.ZodNumber;
22
- status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
22
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
23
23
  account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
24
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
25
25
  accountId: z.ZodString;
@@ -40,7 +40,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
40
40
  accountId: string;
41
41
  }>>>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
43
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
44
44
  id: string;
45
45
  itemId: string | number;
46
46
  accountId: string;
@@ -55,7 +55,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
55
55
  accountId: string;
56
56
  } | null | undefined;
57
57
  }, {
58
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
58
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
59
59
  id: string;
60
60
  itemId: string | number;
61
61
  accountId: string;
@@ -74,7 +74,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
74
74
  orderId: string;
75
75
  itemOnPlatformId: string;
76
76
  itemOnPlatform?: {
77
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
77
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
78
78
  id: string;
79
79
  itemId: string | number;
80
80
  accountId: string;
@@ -93,7 +93,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
93
93
  orderId: string;
94
94
  itemOnPlatformId: string;
95
95
  itemOnPlatform?: {
96
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
96
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
97
97
  id: string;
98
98
  itemId: string | number;
99
99
  accountId: string;
@@ -202,7 +202,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
202
202
  orderId: string;
203
203
  itemOnPlatformId: string;
204
204
  itemOnPlatform?: {
205
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
205
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
206
206
  id: string;
207
207
  itemId: string | number;
208
208
  accountId: string;
@@ -251,7 +251,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
251
251
  orderId: string;
252
252
  itemOnPlatformId: string;
253
253
  itemOnPlatform?: {
254
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
254
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
255
255
  id: string;
256
256
  itemId: string | number;
257
257
  accountId: string;
@@ -528,7 +528,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
528
528
  platformId: z.ZodString;
529
529
  platformUrl: z.ZodString;
530
530
  platformPrice: z.ZodNumber;
531
- status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
531
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
532
532
  account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
533
533
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
534
534
  accountId: z.ZodString;
@@ -549,7 +549,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
549
549
  accountId: string;
550
550
  }>>>;
551
551
  }, "strip", z.ZodTypeAny, {
552
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
552
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
553
553
  id: string;
554
554
  itemId: string | number;
555
555
  accountId: string;
@@ -564,7 +564,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
564
564
  accountId: string;
565
565
  } | null | undefined;
566
566
  }, {
567
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
567
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
568
568
  id: string;
569
569
  itemId: string | number;
570
570
  accountId: string;
@@ -675,7 +675,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
675
675
  data?: string | null | undefined;
676
676
  } | null | undefined;
677
677
  platforms?: {
678
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
678
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
679
679
  id: string;
680
680
  itemId: string | number;
681
681
  accountId: string;
@@ -784,7 +784,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
784
784
  data?: string | null | undefined;
785
785
  } | null | undefined;
786
786
  platforms?: {
787
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
787
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
788
788
  id: string;
789
789
  itemId: string | number;
790
790
  accountId: string;
@@ -895,7 +895,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
895
895
  data?: string | null | undefined;
896
896
  } | null | undefined;
897
897
  platforms?: {
898
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
898
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
899
899
  id: string;
900
900
  itemId: string | number;
901
901
  accountId: string;
@@ -922,7 +922,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
922
922
  orderId: string;
923
923
  itemOnPlatformId: string;
924
924
  itemOnPlatform?: {
925
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
925
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
926
926
  id: string;
927
927
  itemId: string | number;
928
928
  accountId: string;
@@ -1056,7 +1056,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1056
1056
  data?: string | null | undefined;
1057
1057
  } | null | undefined;
1058
1058
  platforms?: {
1059
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
1059
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
1060
1060
  id: string;
1061
1061
  itemId: string | number;
1062
1062
  accountId: string;
@@ -1083,7 +1083,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
1083
1083
  orderId: string;
1084
1084
  itemOnPlatformId: string;
1085
1085
  itemOnPlatform?: {
1086
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
1086
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
1087
1087
  id: string;
1088
1088
  itemId: string | number;
1089
1089
  accountId: string;
@@ -17,7 +17,7 @@ export declare const TransactionSchema: z.ZodObject<{
17
17
  platformId: z.ZodString;
18
18
  platformUrl: z.ZodString;
19
19
  platformPrice: z.ZodNumber;
20
- status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
20
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
21
21
  account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
22
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
23
23
  accountId: z.ZodString;
@@ -38,7 +38,7 @@ export declare const TransactionSchema: z.ZodObject<{
38
38
  accountId: string;
39
39
  }>>>;
40
40
  }, "strip", z.ZodTypeAny, {
41
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
41
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
42
42
  id: string;
43
43
  itemId: string | number;
44
44
  accountId: string;
@@ -53,7 +53,7 @@ export declare const TransactionSchema: z.ZodObject<{
53
53
  accountId: string;
54
54
  } | null | undefined;
55
55
  }, {
56
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
56
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
57
57
  id: string;
58
58
  itemId: string | number;
59
59
  accountId: string;
@@ -72,7 +72,7 @@ export declare const TransactionSchema: z.ZodObject<{
72
72
  transactionId: string;
73
73
  itemOnPlatformId: string;
74
74
  itemOnPlatform?: {
75
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
75
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
76
76
  id: string;
77
77
  itemId: string | number;
78
78
  accountId: string;
@@ -91,7 +91,7 @@ export declare const TransactionSchema: z.ZodObject<{
91
91
  transactionId: string;
92
92
  itemOnPlatformId: string;
93
93
  itemOnPlatform?: {
94
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
94
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
95
95
  id: string;
96
96
  itemId: string | number;
97
97
  accountId: string;
@@ -115,7 +115,7 @@ export declare const TransactionSchema: z.ZodObject<{
115
115
  transactionId: string;
116
116
  itemOnPlatformId: string;
117
117
  itemOnPlatform?: {
118
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
118
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
119
119
  id: string;
120
120
  itemId: string | number;
121
121
  accountId: string;
@@ -143,7 +143,7 @@ export declare const TransactionSchema: z.ZodObject<{
143
143
  transactionId: string;
144
144
  itemOnPlatformId: string;
145
145
  itemOnPlatform?: {
146
- status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
146
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
147
147
  id: string;
148
148
  itemId: string | number;
149
149
  accountId: string;