controlresell 2.1.10 → 2.1.11
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/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/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/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/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.11",
|
|
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.7",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -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>
|
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>
|
|
@@ -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>;
|
|
@@ -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;
|
package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts
CHANGED
|
@@ -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>;
|
package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js
CHANGED
|
@@ -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
|
});
|
package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts
CHANGED
|
@@ -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,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
|
+
});
|
|
@@ -19,7 +19,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
|
|
|
19
19
|
platform: "VINTED" | "SHOPIFY";
|
|
20
20
|
accountId: string;
|
|
21
21
|
}>;
|
|
22
|
-
job: z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>;
|
|
22
|
+
job: z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>;
|
|
23
23
|
done: z.ZodBoolean;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
account: {
|
|
@@ -29,7 +29,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
|
|
|
29
29
|
platform: "VINTED" | "SHOPIFY";
|
|
30
30
|
accountId: string;
|
|
31
31
|
};
|
|
32
|
-
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
32
|
+
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
33
33
|
done: boolean;
|
|
34
34
|
}, {
|
|
35
35
|
account: {
|
|
@@ -39,7 +39,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
|
|
|
39
39
|
platform: "VINTED" | "SHOPIFY";
|
|
40
40
|
accountId: string;
|
|
41
41
|
};
|
|
42
|
-
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
42
|
+
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
43
43
|
done: boolean;
|
|
44
44
|
}>;
|
|
45
45
|
export type PlatformJobUpdate = z.infer<typeof PlatformJobUpdateSchema>;
|
|
@@ -6,6 +6,6 @@ const controlresell_connector_1 = require("controlresell-connector");
|
|
|
6
6
|
const UserOnPlatform_1 = require("./UserOnPlatform");
|
|
7
7
|
exports.PlatformJobUpdateSchema = zod_1.z.object({
|
|
8
8
|
account: UserOnPlatform_1.UserOnPlatformSchema,
|
|
9
|
-
job: controlresell_connector_1.
|
|
9
|
+
job: controlresell_connector_1.PlatformRabbitMQRoutingKeySchema,
|
|
10
10
|
done: zod_1.z.boolean()
|
|
11
11
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
|
-
import {
|
|
2
|
+
import {PlatformRabbitMQRoutingKeySchema} from "controlresell-connector"
|
|
3
3
|
import {UserOnPlatformSchema} from "./UserOnPlatform"
|
|
4
4
|
|
|
5
5
|
export const PlatformJobUpdateSchema = z.object({
|
|
6
6
|
account: UserOnPlatformSchema,
|
|
7
|
-
job:
|
|
7
|
+
job: PlatformRabbitMQRoutingKeySchema,
|
|
8
8
|
done: z.boolean()
|
|
9
9
|
})
|
|
10
10
|
export type PlatformJobUpdate = z.infer<typeof PlatformJobUpdateSchema>
|
|
@@ -2,17 +2,17 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const UserOnPlatformSessionMessageSchema: z.ZodObject<{
|
|
3
3
|
otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
4
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
-
launch: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
6
|
-
done: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
5
|
+
launch: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
6
|
+
done: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
error?: string | null | undefined;
|
|
9
9
|
otp?: number | null | undefined;
|
|
10
|
-
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
11
|
-
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
10
|
+
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
11
|
+
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
error?: string | null | undefined;
|
|
14
14
|
otp?: number | null | undefined;
|
|
15
|
-
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
16
|
-
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
15
|
+
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
16
|
+
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type UserOnPlatformSessionMessage = z.infer<typeof UserOnPlatformSessionMessageSchema>;
|
|
@@ -6,6 +6,6 @@ const controlresell_connector_1 = require("controlresell-connector");
|
|
|
6
6
|
exports.UserOnPlatformSessionMessageSchema = zod_1.z.object({
|
|
7
7
|
otp: zod_1.z.number().int().nullish(),
|
|
8
8
|
error: zod_1.z.string().nullish(),
|
|
9
|
-
launch: controlresell_connector_1.
|
|
10
|
-
done: controlresell_connector_1.
|
|
9
|
+
launch: controlresell_connector_1.PlatformRabbitMQRoutingKeySchema.nullish(),
|
|
10
|
+
done: controlresell_connector_1.PlatformRabbitMQRoutingKeySchema.nullish()
|
|
11
11
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
|
-
import {
|
|
2
|
+
import {PlatformRabbitMQRoutingKeySchema} from "controlresell-connector"
|
|
3
3
|
|
|
4
4
|
export const UserOnPlatformSessionMessageSchema = z.object({
|
|
5
5
|
otp: z.number().int().nullish(),
|
|
6
6
|
error: z.string().nullish(),
|
|
7
|
-
launch:
|
|
8
|
-
done:
|
|
7
|
+
launch: PlatformRabbitMQRoutingKeySchema.nullish(),
|
|
8
|
+
done: PlatformRabbitMQRoutingKeySchema.nullish()
|
|
9
9
|
})
|
|
10
10
|
export type UserOnPlatformSessionMessage = z.infer<typeof UserOnPlatformSessionMessageSchema>
|
package/src/index.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export * from "./com/controlresell/models/items/history/CreateItemHistoryPayload
|
|
|
48
48
|
export * from "./com/controlresell/models/items/history/ItemHistory";
|
|
49
49
|
export * from "./com/controlresell/models/items/history/ItemHistoryType";
|
|
50
50
|
export * from "./com/controlresell/models/items/history/ItemHistoryTypeWithCount";
|
|
51
|
+
export * from "./com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload";
|
|
52
|
+
export * from "./com/controlresell/models/items/history/data/ItemHistoryScheduledPayload";
|
|
51
53
|
export * from "./com/controlresell/models/items/labels/CreateItemLabelPayload";
|
|
52
54
|
export * from "./com/controlresell/models/items/labels/ItemLabel";
|
|
53
55
|
export * from "./com/controlresell/models/items/platforms/CreateItemOnPlatformPayload";
|
|
@@ -90,6 +92,9 @@ export * from "./com/controlresell/models/platforms/conversations/messages/offer
|
|
|
90
92
|
export * from "./com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferUpdateRequest";
|
|
91
93
|
export * from "./com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload";
|
|
92
94
|
export * from "./com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload";
|
|
95
|
+
export * from "./com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload";
|
|
96
|
+
export * from "./com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage";
|
|
97
|
+
export * from "./com/controlresell/models/platforms/conversations/messages/translations/TranslationContext";
|
|
93
98
|
export * from "./com/controlresell/models/platforms/conversations/users/ConversationUser";
|
|
94
99
|
export * from "./com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload";
|
|
95
100
|
export * from "./com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload";
|
package/src/index.js
CHANGED
|
@@ -64,6 +64,8 @@ __exportStar(require("./com/controlresell/models/items/history/CreateItemHistory
|
|
|
64
64
|
__exportStar(require("./com/controlresell/models/items/history/ItemHistory"), exports);
|
|
65
65
|
__exportStar(require("./com/controlresell/models/items/history/ItemHistoryType"), exports);
|
|
66
66
|
__exportStar(require("./com/controlresell/models/items/history/ItemHistoryTypeWithCount"), exports);
|
|
67
|
+
__exportStar(require("./com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload"), exports);
|
|
68
|
+
__exportStar(require("./com/controlresell/models/items/history/data/ItemHistoryScheduledPayload"), exports);
|
|
67
69
|
__exportStar(require("./com/controlresell/models/items/labels/CreateItemLabelPayload"), exports);
|
|
68
70
|
__exportStar(require("./com/controlresell/models/items/labels/ItemLabel"), exports);
|
|
69
71
|
__exportStar(require("./com/controlresell/models/items/platforms/CreateItemOnPlatformPayload"), exports);
|
|
@@ -106,6 +108,9 @@ __exportStar(require("./com/controlresell/models/platforms/conversations/message
|
|
|
106
108
|
__exportStar(require("./com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferUpdateRequest"), exports);
|
|
107
109
|
__exportStar(require("./com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload"), exports);
|
|
108
110
|
__exportStar(require("./com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload"), exports);
|
|
111
|
+
__exportStar(require("./com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload"), exports);
|
|
112
|
+
__exportStar(require("./com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage"), exports);
|
|
113
|
+
__exportStar(require("./com/controlresell/models/platforms/conversations/messages/translations/TranslationContext"), exports);
|
|
109
114
|
__exportStar(require("./com/controlresell/models/platforms/conversations/users/ConversationUser"), exports);
|
|
110
115
|
__exportStar(require("./com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload"), exports);
|
|
111
116
|
__exportStar(require("./com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload"), exports);
|
package/src/index.ts
CHANGED
|
@@ -48,6 +48,8 @@ export * from "./com/controlresell/models/items/history/CreateItemHistoryPayload
|
|
|
48
48
|
export * from "./com/controlresell/models/items/history/ItemHistory"
|
|
49
49
|
export * from "./com/controlresell/models/items/history/ItemHistoryType"
|
|
50
50
|
export * from "./com/controlresell/models/items/history/ItemHistoryTypeWithCount"
|
|
51
|
+
export * from "./com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload"
|
|
52
|
+
export * from "./com/controlresell/models/items/history/data/ItemHistoryScheduledPayload"
|
|
51
53
|
export * from "./com/controlresell/models/items/labels/CreateItemLabelPayload"
|
|
52
54
|
export * from "./com/controlresell/models/items/labels/ItemLabel"
|
|
53
55
|
export * from "./com/controlresell/models/items/platforms/CreateItemOnPlatformPayload"
|
|
@@ -90,6 +92,9 @@ export * from "./com/controlresell/models/platforms/conversations/messages/offer
|
|
|
90
92
|
export * from "./com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferUpdateRequest"
|
|
91
93
|
export * from "./com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload"
|
|
92
94
|
export * from "./com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload"
|
|
95
|
+
export * from "./com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload"
|
|
96
|
+
export * from "./com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage"
|
|
97
|
+
export * from "./com/controlresell/models/platforms/conversations/messages/translations/TranslationContext"
|
|
93
98
|
export * from "./com/controlresell/models/platforms/conversations/users/ConversationUser"
|
|
94
99
|
export * from "./com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload"
|
|
95
100
|
export * from "./com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload"
|