controlresell 2.1.2 → 2.1.3

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 (39) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/application/ControlResellEnvironment.d.ts +1 -1
  3. package/src/com/controlresell/models/application/ControlResellEnvironment.js +1 -1
  4. package/src/com/controlresell/models/application/ControlResellEnvironment.ts +1 -1
  5. package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +1 -1
  6. package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
  7. package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
  8. package/src/com/controlresell/models/items/CreatedItems.d.ts +4 -4
  9. package/src/com/controlresell/models/items/Item.d.ts +2 -2
  10. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +2 -2
  11. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  12. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +4 -4
  13. package/src/com/controlresell/models/items/UpdatedItem.d.ts +4 -4
  14. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +6 -730
  15. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.js +2 -2
  16. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.ts +2 -2
  17. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +7 -0
  18. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +9 -0
  19. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +5 -0
  20. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +7 -0
  21. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +0 -33
  22. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +1 -3
  23. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +1 -3
  24. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.d.ts +3 -0
  25. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.js +1 -0
  26. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.ts +1 -0
  27. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.d.ts +3 -0
  28. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.js +2 -1
  29. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.ts +2 -1
  30. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.d.ts +3 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.js +1 -0
  32. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.ts +1 -0
  33. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.d.ts +3 -0
  34. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.js +1 -0
  35. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.ts +1 -0
  36. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +4 -4
  37. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +4 -4
  38. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
  39. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ItemOnPlatformsRequestWithItemSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const ItemOnPlatformsRequest_1 = require("./ItemOnPlatformsRequest");
6
- const Item_1 = require("../Item");
7
6
  exports.ItemOnPlatformsRequestWithItemSchema = zod_1.z.object({
8
7
  request: ItemOnPlatformsRequest_1.ItemOnPlatformsRequestSchema,
9
- item: Item_1.ItemSchema
8
+ itemId: zod_1.z.number(),
9
+ userId: zod_1.z.number()
10
10
  });
@@ -1,9 +1,9 @@
1
1
  import {z} from "zod"
2
2
  import {ItemOnPlatformsRequestSchema} from "./ItemOnPlatformsRequest"
3
- import {ItemSchema} from "../Item"
4
3
 
5
4
  export const ItemOnPlatformsRequestWithItemSchema = z.object({
6
5
  request: ItemOnPlatformsRequestSchema,
7
- item: ItemSchema
6
+ itemId: z.number(),
7
+ userId: z.number()
8
8
  })
9
9
  export type ItemOnPlatformsRequestWithItem = z.infer<typeof ItemOnPlatformsRequestWithItemSchema>
@@ -35,6 +35,7 @@ export declare const ConversationSchema: z.ZodObject<{
35
35
  id: z.ZodString;
36
36
  platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
37
  messageId: z.ZodString;
38
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
39
  price: z.ZodNumber;
39
40
  originalPrice: z.ZodNumber;
40
41
  status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
@@ -44,6 +45,7 @@ export declare const ConversationSchema: z.ZodObject<{
44
45
  price: number;
45
46
  originalPrice: number;
46
47
  messageId: string;
48
+ transactionId?: string | null | undefined;
47
49
  platformOfferId?: string | null | undefined;
48
50
  }, {
49
51
  status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
@@ -51,6 +53,7 @@ export declare const ConversationSchema: z.ZodObject<{
51
53
  price: number;
52
54
  originalPrice: number;
53
55
  messageId: string;
56
+ transactionId?: string | null | undefined;
54
57
  platformOfferId?: string | null | undefined;
55
58
  }>>>;
56
59
  files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -111,6 +114,7 @@ export declare const ConversationSchema: z.ZodObject<{
111
114
  price: number;
112
115
  originalPrice: number;
113
116
  messageId: string;
117
+ transactionId?: string | null | undefined;
114
118
  platformOfferId?: string | null | undefined;
115
119
  } | null | undefined;
116
120
  files?: {
@@ -139,6 +143,7 @@ export declare const ConversationSchema: z.ZodObject<{
139
143
  price: number;
140
144
  originalPrice: number;
141
145
  messageId: string;
146
+ transactionId?: string | null | undefined;
142
147
  platformOfferId?: string | null | undefined;
143
148
  } | null | undefined;
144
149
  files?: {
@@ -241,6 +246,7 @@ export declare const ConversationSchema: z.ZodObject<{
241
246
  price: number;
242
247
  originalPrice: number;
243
248
  messageId: string;
249
+ transactionId?: string | null | undefined;
244
250
  platformOfferId?: string | null | undefined;
245
251
  } | null | undefined;
246
252
  files?: {
@@ -299,6 +305,7 @@ export declare const ConversationSchema: z.ZodObject<{
299
305
  price: number;
300
306
  originalPrice: number;
301
307
  messageId: string;
308
+ transactionId?: string | null | undefined;
302
309
  platformOfferId?: string | null | undefined;
303
310
  } | null | undefined;
304
311
  files?: {
@@ -38,6 +38,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
38
38
  id: z.ZodString;
39
39
  platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  messageId: z.ZodString;
41
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
42
  price: z.ZodNumber;
42
43
  originalPrice: z.ZodNumber;
43
44
  status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
@@ -47,6 +48,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
47
48
  price: number;
48
49
  originalPrice: number;
49
50
  messageId: string;
51
+ transactionId?: string | null | undefined;
50
52
  platformOfferId?: string | null | undefined;
51
53
  }, {
52
54
  status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
@@ -54,6 +56,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
54
56
  price: number;
55
57
  originalPrice: number;
56
58
  messageId: string;
59
+ transactionId?: string | null | undefined;
57
60
  platformOfferId?: string | null | undefined;
58
61
  }>>>;
59
62
  files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -114,6 +117,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
114
117
  price: number;
115
118
  originalPrice: number;
116
119
  messageId: string;
120
+ transactionId?: string | null | undefined;
117
121
  platformOfferId?: string | null | undefined;
118
122
  } | null | undefined;
119
123
  files?: {
@@ -142,6 +146,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
142
146
  price: number;
143
147
  originalPrice: number;
144
148
  messageId: string;
149
+ transactionId?: string | null | undefined;
145
150
  platformOfferId?: string | null | undefined;
146
151
  } | null | undefined;
147
152
  files?: {
@@ -244,6 +249,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
244
249
  price: number;
245
250
  originalPrice: number;
246
251
  messageId: string;
252
+ transactionId?: string | null | undefined;
247
253
  platformOfferId?: string | null | undefined;
248
254
  } | null | undefined;
249
255
  files?: {
@@ -302,6 +308,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
302
308
  price: number;
303
309
  originalPrice: number;
304
310
  messageId: string;
311
+ transactionId?: string | null | undefined;
305
312
  platformOfferId?: string | null | undefined;
306
313
  } | null | undefined;
307
314
  files?: {
@@ -365,6 +372,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
365
372
  price: number;
366
373
  originalPrice: number;
367
374
  messageId: string;
375
+ transactionId?: string | null | undefined;
368
376
  platformOfferId?: string | null | undefined;
369
377
  } | null | undefined;
370
378
  files?: {
@@ -429,6 +437,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
429
437
  price: number;
430
438
  originalPrice: number;
431
439
  messageId: string;
440
+ transactionId?: string | null | undefined;
432
441
  platformOfferId?: string | null | undefined;
433
442
  } | null | undefined;
434
443
  files?: {
@@ -11,6 +11,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
11
11
  id: z.ZodString;
12
12
  platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  messageId: z.ZodString;
14
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
15
  price: z.ZodNumber;
15
16
  originalPrice: z.ZodNumber;
16
17
  status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
@@ -20,6 +21,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
20
21
  price: number;
21
22
  originalPrice: number;
22
23
  messageId: string;
24
+ transactionId?: string | null | undefined;
23
25
  platformOfferId?: string | null | undefined;
24
26
  }, {
25
27
  status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
@@ -27,6 +29,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
27
29
  price: number;
28
30
  originalPrice: number;
29
31
  messageId: string;
32
+ transactionId?: string | null | undefined;
30
33
  platformOfferId?: string | null | undefined;
31
34
  }>>>;
32
35
  files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -87,6 +90,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
87
90
  price: number;
88
91
  originalPrice: number;
89
92
  messageId: string;
93
+ transactionId?: string | null | undefined;
90
94
  platformOfferId?: string | null | undefined;
91
95
  } | null | undefined;
92
96
  files?: {
@@ -115,6 +119,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
115
119
  price: number;
116
120
  originalPrice: number;
117
121
  messageId: string;
122
+ transactionId?: string | null | undefined;
118
123
  platformOfferId?: string | null | undefined;
119
124
  } | null | undefined;
120
125
  files?: {
@@ -13,6 +13,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
13
13
  id: z.ZodString;
14
14
  platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  messageId: z.ZodString;
16
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
17
  price: z.ZodNumber;
17
18
  originalPrice: z.ZodNumber;
18
19
  status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
@@ -22,6 +23,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
22
23
  price: number;
23
24
  originalPrice: number;
24
25
  messageId: string;
26
+ transactionId?: string | null | undefined;
25
27
  platformOfferId?: string | null | undefined;
26
28
  }, {
27
29
  status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
@@ -29,6 +31,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
29
31
  price: number;
30
32
  originalPrice: number;
31
33
  messageId: string;
34
+ transactionId?: string | null | undefined;
32
35
  platformOfferId?: string | null | undefined;
33
36
  }>>>;
34
37
  files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -89,6 +92,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
89
92
  price: number;
90
93
  originalPrice: number;
91
94
  messageId: string;
95
+ transactionId?: string | null | undefined;
92
96
  platformOfferId?: string | null | undefined;
93
97
  } | null | undefined;
94
98
  files?: {
@@ -117,6 +121,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
117
121
  price: number;
118
122
  originalPrice: number;
119
123
  messageId: string;
124
+ transactionId?: string | null | undefined;
120
125
  platformOfferId?: string | null | undefined;
121
126
  } | null | undefined;
122
127
  files?: {
@@ -150,6 +155,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
150
155
  price: number;
151
156
  originalPrice: number;
152
157
  messageId: string;
158
+ transactionId?: string | null | undefined;
153
159
  platformOfferId?: string | null | undefined;
154
160
  } | null | undefined;
155
161
  files?: {
@@ -183,6 +189,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
183
189
  price: number;
184
190
  originalPrice: number;
185
191
  messageId: string;
192
+ transactionId?: string | null | undefined;
186
193
  platformOfferId?: string | null | undefined;
187
194
  } | null | undefined;
188
195
  files?: {
@@ -2,44 +2,11 @@ import { z } from "zod";
2
2
  export declare const UpdateConversationMessagePayloadSchema: z.ZodObject<{
3
3
  platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
4
  body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
- files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
6
- id: z.ZodString;
7
- userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
8
- path: z.ZodString;
9
- signedUrl: z.ZodString;
10
- createdAt: z.ZodDate;
11
- }, "strip", z.ZodTypeAny, {
12
- path: string;
13
- id: string;
14
- userId: string | number;
15
- signedUrl: string;
16
- createdAt: Date;
17
- }, {
18
- path: string;
19
- id: string;
20
- userId: string | number;
21
- signedUrl: string;
22
- createdAt: Date;
23
- }>, "many">>>;
24
5
  }, "strip", z.ZodTypeAny, {
25
6
  body?: string | null | undefined;
26
- files?: {
27
- path: string;
28
- id: string;
29
- userId: string | number;
30
- signedUrl: string;
31
- createdAt: Date;
32
- }[] | null | undefined;
33
7
  platformMessageId?: string | null | undefined;
34
8
  }, {
35
9
  body?: string | null | undefined;
36
- files?: {
37
- path: string;
38
- id: string;
39
- userId: string | number;
40
- signedUrl: string;
41
- createdAt: Date;
42
- }[] | null | undefined;
43
10
  platformMessageId?: string | null | undefined;
44
11
  }>;
45
12
  export type UpdateConversationMessagePayload = z.infer<typeof UpdateConversationMessagePayloadSchema>;
@@ -2,9 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateConversationMessagePayloadSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const File_1 = require("../../../users/files/File");
6
5
  exports.UpdateConversationMessagePayloadSchema = zod_1.z.object({
7
6
  platformMessageId: zod_1.z.string().nullish(),
8
- body: zod_1.z.string().nullish(),
9
- files: zod_1.z.array(File_1.FileSchema).nullish()
7
+ body: zod_1.z.string().nullish()
10
8
  });
@@ -1,9 +1,7 @@
1
1
  import {z} from "zod"
2
- import {FileSchema} from "../../../users/files/File"
3
2
 
4
3
  export const UpdateConversationMessagePayloadSchema = z.object({
5
4
  platformMessageId: z.string().nullish(),
6
- body: z.string().nullish(),
7
- files: z.array(FileSchema).nullish()
5
+ body: z.string().nullish()
8
6
  })
9
7
  export type UpdateConversationMessagePayload = z.infer<typeof UpdateConversationMessagePayloadSchema>
@@ -3,6 +3,7 @@ export declare const ConversationMessageOfferSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
5
  messageId: z.ZodString;
6
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
7
  price: z.ZodNumber;
7
8
  originalPrice: z.ZodNumber;
8
9
  status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
@@ -12,6 +13,7 @@ export declare const ConversationMessageOfferSchema: z.ZodObject<{
12
13
  price: number;
13
14
  originalPrice: number;
14
15
  messageId: string;
16
+ transactionId?: string | null | undefined;
15
17
  platformOfferId?: string | null | undefined;
16
18
  }, {
17
19
  status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
@@ -19,6 +21,7 @@ export declare const ConversationMessageOfferSchema: z.ZodObject<{
19
21
  price: number;
20
22
  originalPrice: number;
21
23
  messageId: string;
24
+ transactionId?: string | null | undefined;
22
25
  platformOfferId?: string | null | undefined;
23
26
  }>;
24
27
  export type ConversationMessageOffer = z.infer<typeof ConversationMessageOfferSchema>;
@@ -7,6 +7,7 @@ exports.ConversationMessageOfferSchema = zod_1.z.object({
7
7
  id: zod_1.z.string().uuid(),
8
8
  platformOfferId: zod_1.z.string().nullish(),
9
9
  messageId: zod_1.z.string().uuid(),
10
+ transactionId: zod_1.z.string().uuid().nullish(),
10
11
  price: zod_1.z.number(),
11
12
  originalPrice: zod_1.z.number(),
12
13
  status: controlresell_connector_1.JobConversationMessageOfferStatusSchema
@@ -5,6 +5,7 @@ export const ConversationMessageOfferSchema = z.object({
5
5
  id: z.string().uuid(),
6
6
  platformOfferId: z.string().nullish(),
7
7
  messageId: z.string().uuid(),
8
+ transactionId: z.string().uuid().nullish(),
8
9
  price: z.number(),
9
10
  originalPrice: z.number(),
10
11
  status: JobConversationMessageOfferStatusSchema
@@ -1,9 +1,12 @@
1
1
  import { z } from "zod";
2
2
  export declare const ConversationOfferRequestSchema: z.ZodObject<{
3
3
  price: z.ZodNumber;
4
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
5
  }, "strip", z.ZodTypeAny, {
5
6
  price: number;
7
+ transactionId?: string | null | undefined;
6
8
  }, {
7
9
  price: number;
10
+ transactionId?: string | null | undefined;
8
11
  }>;
9
12
  export type ConversationOfferRequest = z.infer<typeof ConversationOfferRequestSchema>;
@@ -3,5 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConversationOfferRequestSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.ConversationOfferRequestSchema = zod_1.z.object({
6
- price: zod_1.z.number()
6
+ price: zod_1.z.number(),
7
+ transactionId: zod_1.z.string().uuid().nullish()
7
8
  });
@@ -1,6 +1,7 @@
1
1
  import {z} from "zod"
2
2
 
3
3
  export const ConversationOfferRequestSchema = z.object({
4
- price: z.number()
4
+ price: z.number(),
5
+ transactionId: z.string().uuid().nullish()
5
6
  })
6
7
  export type ConversationOfferRequest = z.infer<typeof ConversationOfferRequestSchema>
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const CreateConversationMessageOfferPayloadSchema: z.ZodObject<{
3
3
  platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
5
  price: z.ZodNumber;
5
6
  originalPrice: z.ZodNumber;
6
7
  status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
@@ -8,11 +9,13 @@ export declare const CreateConversationMessageOfferPayloadSchema: z.ZodObject<{
8
9
  status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
9
10
  price: number;
10
11
  originalPrice: number;
12
+ transactionId?: string | null | undefined;
11
13
  platformOfferId?: string | null | undefined;
12
14
  }, {
13
15
  status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
14
16
  price: number;
15
17
  originalPrice: number;
18
+ transactionId?: string | null | undefined;
16
19
  platformOfferId?: string | null | undefined;
17
20
  }>;
18
21
  export type CreateConversationMessageOfferPayload = z.infer<typeof CreateConversationMessageOfferPayloadSchema>;
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const controlresell_connector_1 = require("controlresell-connector");
6
6
  exports.CreateConversationMessageOfferPayloadSchema = zod_1.z.object({
7
7
  platformOfferId: zod_1.z.string().nullish(),
8
+ transactionId: zod_1.z.string().uuid().nullish(),
8
9
  price: zod_1.z.number(),
9
10
  originalPrice: zod_1.z.number(),
10
11
  status: controlresell_connector_1.JobConversationMessageOfferStatusSchema
@@ -3,6 +3,7 @@ import {JobConversationMessageOfferStatusSchema} from "controlresell-connector"
3
3
 
4
4
  export const CreateConversationMessageOfferPayloadSchema = z.object({
5
5
  platformOfferId: z.string().nullish(),
6
+ transactionId: z.string().uuid().nullish(),
6
7
  price: z.number(),
7
8
  originalPrice: z.number(),
8
9
  status: JobConversationMessageOfferStatusSchema
@@ -1,12 +1,15 @@
1
1
  import { z } from "zod";
2
2
  export declare const UpdateConversationMessageOfferPayloadSchema: z.ZodObject<{
3
+ transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3
4
  platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
5
  status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>>>;
5
6
  }, "strip", z.ZodTypeAny, {
6
7
  status?: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED" | null | undefined;
8
+ transactionId?: string | null | undefined;
7
9
  platformOfferId?: string | null | undefined;
8
10
  }, {
9
11
  status?: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED" | null | undefined;
12
+ transactionId?: string | null | undefined;
10
13
  platformOfferId?: string | null | undefined;
11
14
  }>;
12
15
  export type UpdateConversationMessageOfferPayload = z.infer<typeof UpdateConversationMessageOfferPayloadSchema>;
@@ -4,6 +4,7 @@ exports.UpdateConversationMessageOfferPayloadSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const controlresell_connector_1 = require("controlresell-connector");
6
6
  exports.UpdateConversationMessageOfferPayloadSchema = zod_1.z.object({
7
+ transactionId: zod_1.z.string().uuid().nullish(),
7
8
  platformOfferId: zod_1.z.string().nullish(),
8
9
  status: controlresell_connector_1.JobConversationMessageOfferStatusSchema.nullish()
9
10
  });
@@ -2,6 +2,7 @@ import {z} from "zod"
2
2
  import {JobConversationMessageOfferStatusSchema} from "controlresell-connector"
3
3
 
4
4
  export const UpdateConversationMessageOfferPayloadSchema = z.object({
5
+ transactionId: z.string().uuid().nullish(),
5
6
  platformOfferId: z.string().nullish(),
6
7
  status: JobConversationMessageOfferStatusSchema.nullish()
7
8
  })
@@ -590,6 +590,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
590
590
  sold: boolean;
591
591
  description?: string | null | undefined;
592
592
  customerId?: string | number | null | undefined;
593
+ state?: number | null | undefined;
593
594
  colorIds?: number[] | null | undefined;
594
595
  packageSizeId?: number | null | undefined;
595
596
  sizeId?: number | null | undefined;
@@ -608,7 +609,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
608
609
  categoryId?: number | null | undefined;
609
610
  brandId?: string | number | null | undefined;
610
611
  sex?: string | null | undefined;
611
- state?: number | null | undefined;
612
612
  purchasePrice?: number | null | undefined;
613
613
  purchaseDate?: Date | null | undefined;
614
614
  purchasePlaceId?: string | number | null | undefined;
@@ -699,6 +699,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
699
699
  sold: boolean;
700
700
  description?: string | null | undefined;
701
701
  customerId?: string | number | null | undefined;
702
+ state?: number | null | undefined;
702
703
  colorIds?: number[] | null | undefined;
703
704
  packageSizeId?: number | null | undefined;
704
705
  sizeId?: number | null | undefined;
@@ -717,7 +718,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
717
718
  categoryId?: number | null | undefined;
718
719
  brandId?: string | number | null | undefined;
719
720
  sex?: string | null | undefined;
720
- state?: number | null | undefined;
721
721
  purchasePrice?: number | null | undefined;
722
722
  purchaseDate?: Date | null | undefined;
723
723
  purchasePlaceId?: string | number | null | undefined;
@@ -810,6 +810,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
810
810
  sold: boolean;
811
811
  description?: string | null | undefined;
812
812
  customerId?: string | number | null | undefined;
813
+ state?: number | null | undefined;
813
814
  colorIds?: number[] | null | undefined;
814
815
  packageSizeId?: number | null | undefined;
815
816
  sizeId?: number | null | undefined;
@@ -828,7 +829,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
828
829
  categoryId?: number | null | undefined;
829
830
  brandId?: string | number | null | undefined;
830
831
  sex?: string | null | undefined;
831
- state?: number | null | undefined;
832
832
  purchasePrice?: number | null | undefined;
833
833
  purchaseDate?: Date | null | undefined;
834
834
  purchasePlaceId?: string | number | null | undefined;
@@ -971,6 +971,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
971
971
  sold: boolean;
972
972
  description?: string | null | undefined;
973
973
  customerId?: string | number | null | undefined;
974
+ state?: number | null | undefined;
974
975
  colorIds?: number[] | null | undefined;
975
976
  packageSizeId?: number | null | undefined;
976
977
  sizeId?: number | null | undefined;
@@ -989,7 +990,6 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
989
990
  categoryId?: number | null | undefined;
990
991
  brandId?: string | number | null | undefined;
991
992
  sex?: string | null | undefined;
992
- state?: number | null | undefined;
993
993
  purchasePrice?: number | null | undefined;
994
994
  purchaseDate?: Date | null | undefined;
995
995
  purchasePlaceId?: string | number | null | undefined;
@@ -465,6 +465,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
465
465
  sold: boolean;
466
466
  description?: string | null | undefined;
467
467
  customerId?: string | number | null | undefined;
468
+ state?: number | null | undefined;
468
469
  colorIds?: number[] | null | undefined;
469
470
  packageSizeId?: number | null | undefined;
470
471
  sizeId?: number | null | undefined;
@@ -483,7 +484,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
483
484
  categoryId?: number | null | undefined;
484
485
  brandId?: string | number | null | undefined;
485
486
  sex?: string | null | undefined;
486
- state?: number | null | undefined;
487
487
  purchasePrice?: number | null | undefined;
488
488
  purchaseDate?: Date | null | undefined;
489
489
  purchasePlaceId?: string | number | null | undefined;
@@ -574,6 +574,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
574
574
  sold: boolean;
575
575
  description?: string | null | undefined;
576
576
  customerId?: string | number | null | undefined;
577
+ state?: number | null | undefined;
577
578
  colorIds?: number[] | null | undefined;
578
579
  packageSizeId?: number | null | undefined;
579
580
  sizeId?: number | null | undefined;
@@ -592,7 +593,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
592
593
  categoryId?: number | null | undefined;
593
594
  brandId?: string | number | null | undefined;
594
595
  sex?: string | null | undefined;
595
- state?: number | null | undefined;
596
596
  purchasePrice?: number | null | undefined;
597
597
  purchaseDate?: Date | null | undefined;
598
598
  purchasePlaceId?: string | number | null | undefined;
@@ -685,6 +685,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
685
685
  sold: boolean;
686
686
  description?: string | null | undefined;
687
687
  customerId?: string | number | null | undefined;
688
+ state?: number | null | undefined;
688
689
  colorIds?: number[] | null | undefined;
689
690
  packageSizeId?: number | null | undefined;
690
691
  sizeId?: number | null | undefined;
@@ -703,7 +704,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
703
704
  categoryId?: number | null | undefined;
704
705
  brandId?: string | number | null | undefined;
705
706
  sex?: string | null | undefined;
706
- state?: number | null | undefined;
707
707
  purchasePrice?: number | null | undefined;
708
708
  purchaseDate?: Date | null | undefined;
709
709
  purchasePlaceId?: string | number | null | undefined;
@@ -825,6 +825,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
825
825
  sold: boolean;
826
826
  description?: string | null | undefined;
827
827
  customerId?: string | number | null | undefined;
828
+ state?: number | null | undefined;
828
829
  colorIds?: number[] | null | undefined;
829
830
  packageSizeId?: number | null | undefined;
830
831
  sizeId?: number | null | undefined;
@@ -843,7 +844,6 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
843
844
  categoryId?: number | null | undefined;
844
845
  brandId?: string | number | null | undefined;
845
846
  sex?: string | null | undefined;
846
- state?: number | null | undefined;
847
847
  purchasePrice?: number | null | undefined;
848
848
  purchaseDate?: Date | null | undefined;
849
849
  purchasePlaceId?: string | number | null | undefined;
@@ -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", "POSTS_CREATE", "POSTS_LIST", "POSTS_DELETE", "POSTS_UPDATE", "ORDERS_LIST", "ORDERS_LABELS_GET", "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_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" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_DELETE" | "POSTS_UPDATE" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
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";
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" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_DELETE" | "POSTS_UPDATE" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
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";
43
43
  done: boolean;
44
44
  }>;
45
45
  export type PlatformJobUpdate = z.infer<typeof PlatformJobUpdateSchema>;