controlresell 2.1.9 → 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.
Files changed (63) hide show
  1. package/package.json +3 -3
  2. package/src/com/controlresell/models/auth/AuthCode.d.ts +18 -0
  3. package/src/com/controlresell/models/auth/AuthCode.js +11 -0
  4. package/src/com/controlresell/models/auth/AuthCode.ts +10 -0
  5. package/src/com/controlresell/models/auth/AuthCodeType.d.ts +3 -0
  6. package/src/com/controlresell/models/auth/AuthCodeType.js +7 -0
  7. package/src/com/controlresell/models/auth/AuthCodeType.ts +6 -0
  8. package/src/com/controlresell/models/auth/CreateAuthCodePayload.d.ts +12 -0
  9. package/src/com/controlresell/models/auth/CreateAuthCodePayload.js +9 -0
  10. package/src/com/controlresell/models/auth/CreateAuthCodePayload.ts +8 -0
  11. package/src/com/controlresell/models/auth/EmailPayload.d.ts +9 -0
  12. package/src/com/controlresell/models/auth/EmailPayload.js +7 -0
  13. package/src/com/controlresell/models/auth/EmailPayload.ts +6 -0
  14. package/src/com/controlresell/models/auth/ResetPasswordPayload.d.ts +9 -0
  15. package/src/com/controlresell/models/auth/ResetPasswordPayload.js +7 -0
  16. package/src/com/controlresell/models/auth/ResetPasswordPayload.ts +6 -0
  17. package/src/com/controlresell/models/items/ItemSoldPayload.d.ts +6 -6
  18. package/src/com/controlresell/models/items/ItemSoldPayload.js +2 -2
  19. package/src/com/controlresell/models/items/ItemSoldPayload.ts +2 -2
  20. package/src/com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload.d.ts +9 -0
  21. package/src/com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload.js +8 -0
  22. package/src/com/controlresell/models/items/history/data/ItemHistoryFailedToPublishPayload.ts +7 -0
  23. package/src/com/controlresell/models/items/history/data/ItemHistoryScheduledPayload.d.ts +12 -0
  24. package/src/com/controlresell/models/items/history/data/ItemHistoryScheduledPayload.js +9 -0
  25. package/src/com/controlresell/models/items/history/data/ItemHistoryScheduledPayload.ts +8 -0
  26. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +4 -4
  27. package/src/com/controlresell/models/notifications/NotificationToken.d.ts +2 -2
  28. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +33 -0
  29. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +13 -13
  30. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +43 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +23 -0
  32. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +2 -0
  33. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +2 -0
  34. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +33 -0
  35. package/src/com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload.d.ts +12 -0
  36. package/src/com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload.js +8 -0
  37. package/src/com/controlresell/models/platforms/conversations/messages/translations/CreateTranslatedMessagePayload.ts +7 -0
  38. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage.d.ts +15 -0
  39. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage.js +9 -0
  40. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslatedMessage.ts +8 -0
  41. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslationContext.d.ts +9 -0
  42. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslationContext.js +7 -0
  43. package/src/com/controlresell/models/platforms/conversations/messages/translations/TranslationContext.ts +6 -0
  44. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
  45. package/src/com/controlresell/models/platforms/orders/Order.d.ts +3 -3
  46. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -5
  47. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
  48. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +5 -5
  49. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
  50. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.js +1 -1
  51. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.ts +2 -2
  52. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
  53. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.js +2 -2
  54. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.ts +3 -3
  55. package/src/index.d.ts +10 -2
  56. package/src/index.js +10 -2
  57. package/src/index.ts +10 -2
  58. package/src/com/controlresell/models/notifications/CreateNotificationPayload.d.ts +0 -27
  59. package/src/com/controlresell/models/notifications/CreateNotificationPayload.js +0 -13
  60. package/src/com/controlresell/models/notifications/CreateNotificationPayload.ts +0 -12
  61. package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.d.ts +0 -24
  62. package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.js +0 -12
  63. package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.ts +0 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "2.1.9",
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.16",
21
- "zod": "^3.24.4",
20
+ "controlresell-connector": "^0.2.20",
21
+ "zod": "^3.25.7",
22
22
  "zodable-idschema": "^1.0.0"
23
23
  }
24
24
  }
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const AuthCodeSchema: z.ZodObject<{
3
+ code: z.ZodString;
4
+ type: z.ZodEnum<["AUTHORIZE", "RESET_PASSWORD", "EMAIL_VERIFICATION"]>;
5
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ expiresAt: z.ZodDate;
7
+ }, "strip", z.ZodTypeAny, {
8
+ code: string;
9
+ type: "AUTHORIZE" | "RESET_PASSWORD" | "EMAIL_VERIFICATION";
10
+ expiresAt: Date;
11
+ data?: string | null | undefined;
12
+ }, {
13
+ code: string;
14
+ type: "AUTHORIZE" | "RESET_PASSWORD" | "EMAIL_VERIFICATION";
15
+ expiresAt: Date;
16
+ data?: string | null | undefined;
17
+ }>;
18
+ export type AuthCode = z.infer<typeof AuthCodeSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthCodeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const AuthCodeType_1 = require("./AuthCodeType");
6
+ exports.AuthCodeSchema = zod_1.z.object({
7
+ code: zod_1.z.string(),
8
+ type: AuthCodeType_1.AuthCodeTypeSchema,
9
+ data: zod_1.z.string().nullish(),
10
+ expiresAt: zod_1.z.coerce.date()
11
+ });
@@ -0,0 +1,10 @@
1
+ import {z} from "zod"
2
+ import {AuthCodeTypeSchema} from "./AuthCodeType"
3
+
4
+ export const AuthCodeSchema = z.object({
5
+ code: z.string(),
6
+ type: AuthCodeTypeSchema,
7
+ data: z.string().nullish(),
8
+ expiresAt: z.coerce.date()
9
+ })
10
+ export type AuthCode = z.infer<typeof AuthCodeSchema>
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ export declare const AuthCodeTypeSchema: z.ZodEnum<["AUTHORIZE", "RESET_PASSWORD", "EMAIL_VERIFICATION"]>;
3
+ export type AuthCodeType = z.infer<typeof AuthCodeTypeSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthCodeTypeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.AuthCodeTypeSchema = zod_1.z.enum([
6
+ "AUTHORIZE", "RESET_PASSWORD", "EMAIL_VERIFICATION"
7
+ ]);
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const AuthCodeTypeSchema = z.enum([
4
+ "AUTHORIZE", "RESET_PASSWORD", "EMAIL_VERIFICATION"
5
+ ])
6
+ export type AuthCodeType = z.infer<typeof AuthCodeTypeSchema>
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const CreateAuthCodePayloadSchema: z.ZodObject<{
3
+ type: z.ZodEnum<["AUTHORIZE", "RESET_PASSWORD", "EMAIL_VERIFICATION"]>;
4
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type: "AUTHORIZE" | "RESET_PASSWORD" | "EMAIL_VERIFICATION";
7
+ data?: string | null | undefined;
8
+ }, {
9
+ type: "AUTHORIZE" | "RESET_PASSWORD" | "EMAIL_VERIFICATION";
10
+ data?: string | null | undefined;
11
+ }>;
12
+ export type CreateAuthCodePayload = z.infer<typeof CreateAuthCodePayloadSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAuthCodePayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const AuthCodeType_1 = require("./AuthCodeType");
6
+ exports.CreateAuthCodePayloadSchema = zod_1.z.object({
7
+ type: AuthCodeType_1.AuthCodeTypeSchema,
8
+ data: zod_1.z.string().nullish()
9
+ });
@@ -0,0 +1,8 @@
1
+ import {z} from "zod"
2
+ import {AuthCodeTypeSchema} from "./AuthCodeType"
3
+
4
+ export const CreateAuthCodePayloadSchema = z.object({
5
+ type: AuthCodeTypeSchema,
6
+ data: z.string().nullish()
7
+ })
8
+ export type CreateAuthCodePayload = z.infer<typeof CreateAuthCodePayloadSchema>
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export declare const EmailPayloadSchema: z.ZodObject<{
3
+ email: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ email: string;
6
+ }, {
7
+ email: string;
8
+ }>;
9
+ export type EmailPayload = z.infer<typeof EmailPayloadSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmailPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.EmailPayloadSchema = zod_1.z.object({
6
+ email: zod_1.z.string()
7
+ });
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const EmailPayloadSchema = z.object({
4
+ email: z.string()
5
+ })
6
+ export type EmailPayload = z.infer<typeof EmailPayloadSchema>
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export declare const ResetPasswordPayloadSchema: z.ZodObject<{
3
+ password: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ password: string;
6
+ }, {
7
+ password: string;
8
+ }>;
9
+ export type ResetPasswordPayload = z.infer<typeof ResetPasswordPayloadSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResetPasswordPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ResetPasswordPayloadSchema = zod_1.z.object({
6
+ password: zod_1.z.string()
7
+ });
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const ResetPasswordPayloadSchema = z.object({
4
+ password: z.string()
5
+ })
6
+ export type ResetPasswordPayload = z.infer<typeof ResetPasswordPayloadSchema>
@@ -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: number;
10
- sellingDate: Date;
9
+ sellingPrice?: number | null | undefined;
10
+ sellingDate?: Date | null | undefined;
11
11
  sellingPlaceId?: number | null | undefined;
12
12
  }, {
13
13
  sold: boolean;
14
- sellingPrice: number;
15
- sellingDate: Date;
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>
@@ -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>
@@ -74,8 +74,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
74
74
  material?: number[] | null | undefined;
75
75
  manufacturerLabelling?: string | null | undefined;
76
76
  };
77
- createdAt?: Date | null | undefined;
78
77
  data?: string | null | undefined;
78
+ createdAt?: Date | null | undefined;
79
79
  platformUrl?: string | null | undefined;
80
80
  sold?: boolean | null | undefined;
81
81
  }, {
@@ -97,8 +97,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
97
97
  material?: number[] | null | undefined;
98
98
  manufacturerLabelling?: string | null | undefined;
99
99
  };
100
- createdAt?: Date | null | undefined;
101
100
  data?: string | null | undefined;
101
+ createdAt?: Date | null | undefined;
102
102
  platformUrl?: string | null | undefined;
103
103
  sold?: boolean | null | undefined;
104
104
  }>;
@@ -148,8 +148,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
148
148
  material?: number[] | null | undefined;
149
149
  manufacturerLabelling?: string | null | undefined;
150
150
  };
151
- createdAt?: Date | null | undefined;
152
151
  data?: string | null | undefined;
152
+ createdAt?: Date | null | undefined;
153
153
  platformUrl?: string | null | undefined;
154
154
  sold?: boolean | null | undefined;
155
155
  };
@@ -180,8 +180,8 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
180
180
  material?: number[] | null | undefined;
181
181
  manufacturerLabelling?: string | null | undefined;
182
182
  };
183
- createdAt?: Date | null | undefined;
184
183
  data?: string | null | undefined;
184
+ createdAt?: Date | null | undefined;
185
185
  platformUrl?: string | null | undefined;
186
186
  sold?: boolean | null | undefined;
187
187
  };
@@ -4,12 +4,12 @@ export declare const NotificationTokenSchema: z.ZodObject<{
4
4
  userId: z.ZodNumber;
5
5
  expiresAt: z.ZodDate;
6
6
  }, "strip", z.ZodTypeAny, {
7
- userId: number;
8
7
  expiresAt: Date;
8
+ userId: number;
9
9
  token: string;
10
10
  }, {
11
- userId: number;
12
11
  expiresAt: Date;
12
+ userId: number;
13
13
  token: string;
14
14
  }>;
15
15
  export type NotificationToken = z.infer<typeof NotificationTokenSchema>;
@@ -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>;
@@ -277,8 +277,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
277
277
  material?: number[] | null | undefined;
278
278
  manufacturerLabelling?: string | null | undefined;
279
279
  };
280
- createdAt?: Date | null | undefined;
281
280
  data?: string | null | undefined;
281
+ createdAt?: Date | null | undefined;
282
282
  platformUrl?: string | null | undefined;
283
283
  sold?: boolean | null | undefined;
284
284
  }, {
@@ -300,8 +300,8 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
300
300
  material?: number[] | null | undefined;
301
301
  manufacturerLabelling?: string | null | undefined;
302
302
  };
303
- createdAt?: Date | null | undefined;
304
303
  data?: string | null | undefined;
304
+ createdAt?: Date | null | undefined;
305
305
  platformUrl?: string | null | undefined;
306
306
  sold?: boolean | null | undefined;
307
307
  }>, "many">>>;
@@ -311,10 +311,10 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
311
311
  transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
312
  price: z.ZodNumber;
313
313
  currencyCode: z.ZodString;
314
- status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "UNKNOWN"]>;
314
+ status: z.ZodEnum<["PAYMENT_VALIDATED", "ORDER_CANCELLED", "SHIPPING_LABEL_SENT_TO_SELLER", "ORDER_SHIPPED", "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT", "ORDER_RECEIVED", "ORDER_FINALIZED", "RETURN_INITIATED", "REFUND_DONE", "ORDER_CANCELED_ITEM_UNAVAILABLE", "ORDER_CANCELLED_BY_VINTED", "ORDER_DISPUTE_STARTED", "UNKNOWN"]>;
315
315
  date: z.ZodDate;
316
316
  }, "strip", z.ZodTypeAny, {
317
- status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
317
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
318
318
  id: string;
319
319
  date: Date;
320
320
  price: number;
@@ -322,7 +322,7 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
322
322
  transactionId?: string | null | undefined;
323
323
  conversationId?: string | null | undefined;
324
324
  }, {
325
- status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
325
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
326
326
  id: string;
327
327
  date: Date;
328
328
  price: number;
@@ -434,13 +434,13 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
434
434
  material?: number[] | null | undefined;
435
435
  manufacturerLabelling?: string | null | undefined;
436
436
  };
437
- createdAt?: Date | null | undefined;
438
437
  data?: string | null | undefined;
438
+ createdAt?: Date | null | undefined;
439
439
  platformUrl?: string | null | undefined;
440
440
  sold?: boolean | null | undefined;
441
441
  }[] | null | undefined;
442
442
  orders?: {
443
- status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
443
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
444
444
  id: string;
445
445
  date: Date;
446
446
  price: number;
@@ -542,13 +542,13 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
542
542
  material?: number[] | null | undefined;
543
543
  manufacturerLabelling?: string | null | undefined;
544
544
  };
545
- createdAt?: Date | null | undefined;
546
545
  data?: string | null | undefined;
546
+ createdAt?: Date | null | undefined;
547
547
  platformUrl?: string | null | undefined;
548
548
  sold?: boolean | null | undefined;
549
549
  }[] | null | undefined;
550
550
  orders?: {
551
- status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
551
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
552
552
  id: string;
553
553
  date: Date;
554
554
  price: number;
@@ -678,13 +678,13 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
678
678
  material?: number[] | null | undefined;
679
679
  manufacturerLabelling?: string | null | undefined;
680
680
  };
681
- createdAt?: Date | null | undefined;
682
681
  data?: string | null | undefined;
682
+ createdAt?: Date | null | undefined;
683
683
  platformUrl?: string | null | undefined;
684
684
  sold?: boolean | null | undefined;
685
685
  }[] | null | undefined;
686
686
  orders?: {
687
- status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
687
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
688
688
  id: string;
689
689
  date: Date;
690
690
  price: number;
@@ -795,13 +795,13 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
795
795
  material?: number[] | null | undefined;
796
796
  manufacturerLabelling?: string | null | undefined;
797
797
  };
798
- createdAt?: Date | null | undefined;
799
798
  data?: string | null | undefined;
799
+ createdAt?: Date | null | undefined;
800
800
  platformUrl?: string | null | undefined;
801
801
  sold?: boolean | null | undefined;
802
802
  }[] | null | undefined;
803
803
  orders?: {
804
- status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "UNKNOWN";
804
+ status: "PAYMENT_VALIDATED" | "ORDER_CANCELLED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELLED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "UNKNOWN";
805
805
  id: string;
806
806
  date: Date;
807
807
  price: number;
@@ -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;