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.
- package/package.json +3 -3
- package/src/com/controlresell/models/items/CreatedItems.d.ts +7 -7
- package/src/com/controlresell/models/items/Item.d.ts +5 -5
- package/src/com/controlresell/models/items/ItemSoldPayload.d.ts +6 -6
- package/src/com/controlresell/models/items/ItemSoldPayload.js +2 -2
- package/src/com/controlresell/models/items/ItemSoldPayload.ts +2 -2
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +7 -7
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +7 -7
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.d.ts +6 -6
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.js +2 -2
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.ts +2 -2
- package/src/com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload.d.ts +9 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload.js +8 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload.ts +7 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryScheduledPayload.d.ts +12 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryScheduledPayload.js +9 -0
- package/src/com/controlresell/models/items/history/data/ItemHistoryScheduledPayload.ts +8 -0
- package/src/com/controlresell/models/items/platforms/CreateItemOnPlatformPayload.d.ts +3 -3
- package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +3 -3
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.d.ts +1 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.js +1 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.ts +1 -1
- package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +33 -0
- package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +43 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +23 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +2 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +2 -0
- package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +33 -0
- package/src/com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload.d.ts +12 -0
- package/src/com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload.js +8 -0
- package/src/com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload.ts +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage.d.ts +15 -0
- package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage.js +9 -0
- package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage.ts +8 -0
- package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslationContext.d.ts +9 -0
- package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslationContext.js +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslationContext.ts +6 -0
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +7 -7
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +16 -16
- package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +7 -7
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +5 -5
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +16 -16
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.js +1 -1
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.ts +2 -2
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.js +2 -2
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.ts +3 -3
- package/src/index.d.ts +5 -0
- package/src/index.js +5 -0
- package/src/index.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.12",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"typescript": "^5.8.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"controlresell-connector": "^0.2.
|
|
21
|
-
"zod": "^3.
|
|
20
|
+
"controlresell-connector": "^0.2.20",
|
|
21
|
+
"zod": "^3.25.16",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -238,7 +238,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
238
238
|
platformId: z.ZodString;
|
|
239
239
|
platformUrl: z.ZodString;
|
|
240
240
|
platformPrice: z.ZodNumber;
|
|
241
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
241
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
242
242
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
243
243
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
244
244
|
accountId: z.ZodString;
|
|
@@ -259,7 +259,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
259
259
|
accountId: string;
|
|
260
260
|
}>>>;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
262
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
263
263
|
id: string;
|
|
264
264
|
itemId: string | number;
|
|
265
265
|
accountId: string;
|
|
@@ -274,7 +274,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
274
274
|
accountId: string;
|
|
275
275
|
} | null | undefined;
|
|
276
276
|
}, {
|
|
277
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
277
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
278
278
|
id: string;
|
|
279
279
|
itemId: string | number;
|
|
280
280
|
accountId: string;
|
|
@@ -385,7 +385,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
385
385
|
data?: string | null | undefined;
|
|
386
386
|
} | null | undefined;
|
|
387
387
|
platforms?: {
|
|
388
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
388
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
389
389
|
id: string;
|
|
390
390
|
itemId: string | number;
|
|
391
391
|
accountId: string;
|
|
@@ -494,7 +494,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
494
494
|
data?: string | null | undefined;
|
|
495
495
|
} | null | undefined;
|
|
496
496
|
platforms?: {
|
|
497
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
497
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
498
498
|
id: string;
|
|
499
499
|
itemId: string | number;
|
|
500
500
|
accountId: string;
|
|
@@ -624,7 +624,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
624
624
|
data?: string | null | undefined;
|
|
625
625
|
} | null | undefined;
|
|
626
626
|
platforms?: {
|
|
627
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
627
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
628
628
|
id: string;
|
|
629
629
|
itemId: string | number;
|
|
630
630
|
accountId: string;
|
|
@@ -742,7 +742,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
742
742
|
data?: string | null | undefined;
|
|
743
743
|
} | null | undefined;
|
|
744
744
|
platforms?: {
|
|
745
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
745
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
746
746
|
id: string;
|
|
747
747
|
itemId: string | number;
|
|
748
748
|
accountId: string;
|
|
@@ -237,7 +237,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
237
237
|
platformId: z.ZodString;
|
|
238
238
|
platformUrl: z.ZodString;
|
|
239
239
|
platformPrice: z.ZodNumber;
|
|
240
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
240
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
241
241
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
242
242
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
243
243
|
accountId: z.ZodString;
|
|
@@ -258,7 +258,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
258
258
|
accountId: string;
|
|
259
259
|
}>>>;
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
261
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
262
262
|
id: string;
|
|
263
263
|
itemId: string | number;
|
|
264
264
|
accountId: string;
|
|
@@ -273,7 +273,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
273
273
|
accountId: string;
|
|
274
274
|
} | null | undefined;
|
|
275
275
|
}, {
|
|
276
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
276
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
277
277
|
id: string;
|
|
278
278
|
itemId: string | number;
|
|
279
279
|
accountId: string;
|
|
@@ -384,7 +384,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
384
384
|
data?: string | null | undefined;
|
|
385
385
|
} | null | undefined;
|
|
386
386
|
platforms?: {
|
|
387
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
387
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
388
388
|
id: string;
|
|
389
389
|
itemId: string | number;
|
|
390
390
|
accountId: string;
|
|
@@ -493,7 +493,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
493
493
|
data?: string | null | undefined;
|
|
494
494
|
} | null | undefined;
|
|
495
495
|
platforms?: {
|
|
496
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
496
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
497
497
|
id: string;
|
|
498
498
|
itemId: string | number;
|
|
499
499
|
accountId: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ItemSoldPayloadSchema: z.ZodObject<{
|
|
3
3
|
sold: z.ZodBoolean;
|
|
4
|
-
sellingPrice: z.ZodNumber
|
|
5
|
-
sellingDate: z.ZodDate
|
|
4
|
+
sellingPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5
|
+
sellingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6
6
|
sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
sold: boolean;
|
|
9
|
-
sellingPrice
|
|
10
|
-
sellingDate
|
|
9
|
+
sellingPrice?: number | null | undefined;
|
|
10
|
+
sellingDate?: Date | null | undefined;
|
|
11
11
|
sellingPlaceId?: number | null | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
sold: boolean;
|
|
14
|
-
sellingPrice
|
|
15
|
-
sellingDate
|
|
14
|
+
sellingPrice?: number | null | undefined;
|
|
15
|
+
sellingDate?: Date | null | undefined;
|
|
16
16
|
sellingPlaceId?: number | null | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type ItemSoldPayload = z.infer<typeof ItemSoldPayloadSchema>;
|
|
@@ -4,7 +4,7 @@ exports.ItemSoldPayloadSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.ItemSoldPayloadSchema = zod_1.z.object({
|
|
6
6
|
sold: zod_1.z.boolean(),
|
|
7
|
-
sellingPrice: zod_1.z.number(),
|
|
8
|
-
sellingDate: zod_1.z.coerce.date(),
|
|
7
|
+
sellingPrice: zod_1.z.number().nullish(),
|
|
8
|
+
sellingDate: zod_1.z.coerce.date().nullish(),
|
|
9
9
|
sellingPlaceId: zod_1.z.number().nullish()
|
|
10
10
|
});
|
|
@@ -2,8 +2,8 @@ import {z} from "zod"
|
|
|
2
2
|
|
|
3
3
|
export const ItemSoldPayloadSchema = z.object({
|
|
4
4
|
sold: z.boolean(),
|
|
5
|
-
sellingPrice: z.number(),
|
|
6
|
-
sellingDate: z.coerce.date(),
|
|
5
|
+
sellingPrice: z.number().nullish(),
|
|
6
|
+
sellingDate: z.coerce.date().nullish(),
|
|
7
7
|
sellingPlaceId: z.number().nullish()
|
|
8
8
|
})
|
|
9
9
|
export type ItemSoldPayload = z.infer<typeof ItemSoldPayloadSchema>
|
|
@@ -240,7 +240,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
240
240
|
platformId: z.ZodString;
|
|
241
241
|
platformUrl: z.ZodString;
|
|
242
242
|
platformPrice: z.ZodNumber;
|
|
243
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
243
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
244
244
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
245
245
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
246
246
|
accountId: z.ZodString;
|
|
@@ -261,7 +261,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
261
261
|
accountId: string;
|
|
262
262
|
}>>>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
264
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
265
265
|
id: string;
|
|
266
266
|
itemId: string | number;
|
|
267
267
|
accountId: string;
|
|
@@ -276,7 +276,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
276
276
|
accountId: string;
|
|
277
277
|
} | null | undefined;
|
|
278
278
|
}, {
|
|
279
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
279
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
280
280
|
id: string;
|
|
281
281
|
itemId: string | number;
|
|
282
282
|
accountId: string;
|
|
@@ -387,7 +387,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
387
387
|
data?: string | null | undefined;
|
|
388
388
|
} | null | undefined;
|
|
389
389
|
platforms?: {
|
|
390
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
390
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
391
391
|
id: string;
|
|
392
392
|
itemId: string | number;
|
|
393
393
|
accountId: string;
|
|
@@ -496,7 +496,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
496
496
|
data?: string | null | undefined;
|
|
497
497
|
} | null | undefined;
|
|
498
498
|
platforms?: {
|
|
499
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
499
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
500
500
|
id: string;
|
|
501
501
|
itemId: string | number;
|
|
502
502
|
accountId: string;
|
|
@@ -630,7 +630,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
630
630
|
data?: string | null | undefined;
|
|
631
631
|
} | null | undefined;
|
|
632
632
|
platforms?: {
|
|
633
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
633
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
634
634
|
id: string;
|
|
635
635
|
itemId: string | number;
|
|
636
636
|
accountId: string;
|
|
@@ -752,7 +752,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
752
752
|
data?: string | null | undefined;
|
|
753
753
|
} | null | undefined;
|
|
754
754
|
platforms?: {
|
|
755
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
755
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
756
756
|
id: string;
|
|
757
757
|
itemId: string | number;
|
|
758
758
|
accountId: string;
|
|
@@ -238,7 +238,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
238
238
|
platformId: z.ZodString;
|
|
239
239
|
platformUrl: z.ZodString;
|
|
240
240
|
platformPrice: z.ZodNumber;
|
|
241
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
241
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
242
242
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
243
243
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
244
244
|
accountId: z.ZodString;
|
|
@@ -259,7 +259,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
259
259
|
accountId: string;
|
|
260
260
|
}>>>;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
262
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
263
263
|
id: string;
|
|
264
264
|
itemId: string | number;
|
|
265
265
|
accountId: string;
|
|
@@ -274,7 +274,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
274
274
|
accountId: string;
|
|
275
275
|
} | null | undefined;
|
|
276
276
|
}, {
|
|
277
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
277
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
278
278
|
id: string;
|
|
279
279
|
itemId: string | number;
|
|
280
280
|
accountId: string;
|
|
@@ -385,7 +385,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
385
385
|
data?: string | null | undefined;
|
|
386
386
|
} | null | undefined;
|
|
387
387
|
platforms?: {
|
|
388
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
388
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
389
389
|
id: string;
|
|
390
390
|
itemId: string | number;
|
|
391
391
|
accountId: string;
|
|
@@ -494,7 +494,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
494
494
|
data?: string | null | undefined;
|
|
495
495
|
} | null | undefined;
|
|
496
496
|
platforms?: {
|
|
497
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
497
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
498
498
|
id: string;
|
|
499
499
|
itemId: string | number;
|
|
500
500
|
accountId: string;
|
|
@@ -631,7 +631,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
631
631
|
data?: string | null | undefined;
|
|
632
632
|
} | null | undefined;
|
|
633
633
|
platforms?: {
|
|
634
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
634
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
635
635
|
id: string;
|
|
636
636
|
itemId: string | number;
|
|
637
637
|
accountId: string;
|
|
@@ -749,7 +749,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
749
749
|
data?: string | null | undefined;
|
|
750
750
|
} | null | undefined;
|
|
751
751
|
platforms?: {
|
|
752
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
752
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
753
753
|
id: string;
|
|
754
754
|
itemId: string | number;
|
|
755
755
|
accountId: string;
|
|
@@ -5,26 +5,26 @@ export declare const ItemAnalysisCompletionSchema: z.ZodObject<{
|
|
|
5
5
|
brand: z.ZodString;
|
|
6
6
|
catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
7
|
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
-
packageSizeId: z.
|
|
9
|
-
statusId: z.
|
|
8
|
+
packageSizeId: z.ZodNumber;
|
|
9
|
+
statusId: z.ZodNumber;
|
|
10
10
|
colorIds: z.ZodArray<z.ZodNumber, "many">;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
title: string;
|
|
13
13
|
description: string;
|
|
14
14
|
brand: string;
|
|
15
15
|
colorIds: number[];
|
|
16
|
+
packageSizeId: number;
|
|
17
|
+
statusId: number;
|
|
16
18
|
catalogId?: number | null | undefined;
|
|
17
|
-
packageSizeId?: number | null | undefined;
|
|
18
19
|
sizeId?: number | null | undefined;
|
|
19
|
-
statusId?: number | null | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
title: string;
|
|
22
22
|
description: string;
|
|
23
23
|
brand: string;
|
|
24
24
|
colorIds: number[];
|
|
25
|
+
packageSizeId: number;
|
|
26
|
+
statusId: number;
|
|
25
27
|
catalogId?: number | null | undefined;
|
|
26
|
-
packageSizeId?: number | null | undefined;
|
|
27
28
|
sizeId?: number | null | undefined;
|
|
28
|
-
statusId?: number | null | undefined;
|
|
29
29
|
}>;
|
|
30
30
|
export type ItemAnalysisCompletion = z.infer<typeof ItemAnalysisCompletionSchema>;
|
|
@@ -8,7 +8,7 @@ exports.ItemAnalysisCompletionSchema = zod_1.z.object({
|
|
|
8
8
|
brand: zod_1.z.string(),
|
|
9
9
|
catalogId: zod_1.z.number().nullish(),
|
|
10
10
|
sizeId: zod_1.z.number().nullish(),
|
|
11
|
-
packageSizeId: zod_1.z.number()
|
|
12
|
-
statusId: zod_1.z.number()
|
|
11
|
+
packageSizeId: zod_1.z.number(),
|
|
12
|
+
statusId: zod_1.z.number(),
|
|
13
13
|
colorIds: zod_1.z.array(zod_1.z.number())
|
|
14
14
|
});
|
|
@@ -6,8 +6,8 @@ export const ItemAnalysisCompletionSchema = z.object({
|
|
|
6
6
|
brand: z.string(),
|
|
7
7
|
catalogId: z.number().nullish(),
|
|
8
8
|
sizeId: z.number().nullish(),
|
|
9
|
-
packageSizeId: z.number()
|
|
10
|
-
statusId: z.number()
|
|
9
|
+
packageSizeId: z.number(),
|
|
10
|
+
statusId: z.number(),
|
|
11
11
|
colorIds: z.array(z.number())
|
|
12
12
|
})
|
|
13
13
|
export type ItemAnalysisCompletion = z.infer<typeof ItemAnalysisCompletionSchema>
|
package/src/com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ItemHistoryFailedToPublishPayloadSchema: z.ZodObject<{
|
|
3
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
platform: "VINTED" | "SHOPIFY";
|
|
6
|
+
}, {
|
|
7
|
+
platform: "VINTED" | "SHOPIFY";
|
|
8
|
+
}>;
|
|
9
|
+
export type ItemHistoryFailedToPublishPayload = z.infer<typeof ItemHistoryFailedToPublishPayloadSchema>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemHistoryFailedToPublishPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
|
+
exports.ItemHistoryFailedToPublishPayloadSchema = zod_1.z.object({
|
|
7
|
+
platform: controlresell_connector_1.AccountPlatformSchema
|
|
8
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {AccountPlatformSchema} from "controlresell-connector"
|
|
3
|
+
|
|
4
|
+
export const ItemHistoryFailedToPublishPayloadSchema = z.object({
|
|
5
|
+
platform: AccountPlatformSchema
|
|
6
|
+
})
|
|
7
|
+
export type ItemHistoryFailedToPublishPayload = z.infer<typeof ItemHistoryFailedToPublishPayloadSchema>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ItemHistoryScheduledPayloadSchema: z.ZodObject<{
|
|
3
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
4
|
+
publishingDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
platform: "VINTED" | "SHOPIFY";
|
|
7
|
+
publishingDate?: Date | null | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
platform: "VINTED" | "SHOPIFY";
|
|
10
|
+
publishingDate?: Date | null | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type ItemHistoryScheduledPayload = z.infer<typeof ItemHistoryScheduledPayloadSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemHistoryScheduledPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
|
+
exports.ItemHistoryScheduledPayloadSchema = zod_1.z.object({
|
|
7
|
+
platform: controlresell_connector_1.AccountPlatformSchema,
|
|
8
|
+
publishingDate: zod_1.z.coerce.date().nullish()
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {AccountPlatformSchema} from "controlresell-connector"
|
|
3
|
+
|
|
4
|
+
export const ItemHistoryScheduledPayloadSchema = z.object({
|
|
5
|
+
platform: AccountPlatformSchema,
|
|
6
|
+
publishingDate: z.coerce.date().nullish()
|
|
7
|
+
})
|
|
8
|
+
export type ItemHistoryScheduledPayload = z.infer<typeof ItemHistoryScheduledPayloadSchema>
|
|
@@ -4,15 +4,15 @@ export declare const CreateItemOnPlatformPayloadSchema: z.ZodObject<{
|
|
|
4
4
|
platformId: z.ZodString;
|
|
5
5
|
platformUrl: z.ZodString;
|
|
6
6
|
platformPrice: z.ZodNumber;
|
|
7
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
7
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
9
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
10
10
|
accountId: string;
|
|
11
11
|
platformId: string;
|
|
12
12
|
platformUrl: string;
|
|
13
13
|
platformPrice: number;
|
|
14
14
|
}, {
|
|
15
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
15
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
16
16
|
accountId: string;
|
|
17
17
|
platformId: string;
|
|
18
18
|
platformUrl: string;
|
|
@@ -6,7 +6,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
6
6
|
platformId: z.ZodString;
|
|
7
7
|
platformUrl: z.ZodString;
|
|
8
8
|
platformPrice: z.ZodNumber;
|
|
9
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
9
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
10
10
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
11
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
12
12
|
accountId: z.ZodString;
|
|
@@ -27,7 +27,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
27
27
|
accountId: string;
|
|
28
28
|
}>>>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
30
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
31
31
|
id: string;
|
|
32
32
|
itemId: string | number;
|
|
33
33
|
accountId: string;
|
|
@@ -42,7 +42,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
42
42
|
accountId: string;
|
|
43
43
|
} | null | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
45
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
46
46
|
id: string;
|
|
47
47
|
itemId: string | number;
|
|
48
48
|
accountId: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const ItemOnPlatformStatusSchema: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
2
|
+
export declare const ItemOnPlatformStatusSchema: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
3
3
|
export type ItemOnPlatformStatus = z.infer<typeof ItemOnPlatformStatusSchema>;
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ItemOnPlatformStatusSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.ItemOnPlatformStatusSchema = zod_1.z.enum([
|
|
6
|
-
"ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"
|
|
6
|
+
"ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"
|
|
7
7
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
export const ItemOnPlatformStatusSchema = z.enum([
|
|
4
|
-
"ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"
|
|
4
|
+
"ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"
|
|
5
5
|
])
|
|
6
6
|
export type ItemOnPlatformStatus = z.infer<typeof ItemOnPlatformStatusSchema>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const UpdateItemOnPlatformPayloadSchema: z.ZodObject<{
|
|
3
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>>>;
|
|
3
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>>>;
|
|
4
4
|
platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
platformPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
status?: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
|
|
7
|
+
status?: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
|
|
8
8
|
platformUrl?: string | null | undefined;
|
|
9
9
|
platformPrice?: number | null | undefined;
|
|
10
10
|
}, {
|
|
11
|
-
status?: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
|
|
11
|
+
status?: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
|
|
12
12
|
platformUrl?: string | null | undefined;
|
|
13
13
|
platformPrice?: number | null | undefined;
|
|
14
14
|
}>;
|
|
@@ -56,6 +56,19 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
56
56
|
transactionId?: string | null | undefined;
|
|
57
57
|
platformOfferId?: string | null | undefined;
|
|
58
58
|
}>>>;
|
|
59
|
+
translation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
60
|
+
messageId: z.ZodString;
|
|
61
|
+
lang: z.ZodString;
|
|
62
|
+
body: z.ZodString;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
body: string;
|
|
65
|
+
messageId: string;
|
|
66
|
+
lang: string;
|
|
67
|
+
}, {
|
|
68
|
+
body: string;
|
|
69
|
+
messageId: string;
|
|
70
|
+
lang: string;
|
|
71
|
+
}>>>;
|
|
59
72
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
60
73
|
fileId: z.ZodString;
|
|
61
74
|
messageId: z.ZodString;
|
|
@@ -131,6 +144,11 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
131
144
|
}[] | null | undefined;
|
|
132
145
|
conversationUserId?: string | null | undefined;
|
|
133
146
|
platformMessageId?: string | null | undefined;
|
|
147
|
+
translation?: {
|
|
148
|
+
body: string;
|
|
149
|
+
messageId: string;
|
|
150
|
+
lang: string;
|
|
151
|
+
} | null | undefined;
|
|
134
152
|
}, {
|
|
135
153
|
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
136
154
|
id: string;
|
|
@@ -160,6 +178,11 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
160
178
|
}[] | null | undefined;
|
|
161
179
|
conversationUserId?: string | null | undefined;
|
|
162
180
|
platformMessageId?: string | null | undefined;
|
|
181
|
+
translation?: {
|
|
182
|
+
body: string;
|
|
183
|
+
messageId: string;
|
|
184
|
+
lang: string;
|
|
185
|
+
} | null | undefined;
|
|
163
186
|
}>>>;
|
|
164
187
|
users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
165
188
|
id: z.ZodString;
|
|
@@ -280,6 +303,11 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
280
303
|
}[] | null | undefined;
|
|
281
304
|
conversationUserId?: string | null | undefined;
|
|
282
305
|
platformMessageId?: string | null | undefined;
|
|
306
|
+
translation?: {
|
|
307
|
+
body: string;
|
|
308
|
+
messageId: string;
|
|
309
|
+
lang: string;
|
|
310
|
+
} | null | undefined;
|
|
283
311
|
} | null | undefined;
|
|
284
312
|
}, {
|
|
285
313
|
id: string;
|
|
@@ -339,6 +367,11 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
339
367
|
}[] | null | undefined;
|
|
340
368
|
conversationUserId?: string | null | undefined;
|
|
341
369
|
platformMessageId?: string | null | undefined;
|
|
370
|
+
translation?: {
|
|
371
|
+
body: string;
|
|
372
|
+
messageId: string;
|
|
373
|
+
lang: string;
|
|
374
|
+
} | null | undefined;
|
|
342
375
|
} | null | undefined;
|
|
343
376
|
}>;
|
|
344
377
|
export type Conversation = z.infer<typeof ConversationSchema>;
|