controlresell 2.1.6 → 2.1.8

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 (37) hide show
  1. package/package.json +3 -3
  2. package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +1 -1
  3. package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
  4. package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
  5. package/src/com/controlresell/models/items/CreatedItems.d.ts +44 -44
  6. package/src/com/controlresell/models/items/Item.d.ts +22 -22
  7. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +6 -0
  8. package/src/com/controlresell/models/items/ItemFiltersContext.js +4 -1
  9. package/src/com/controlresell/models/items/ItemFiltersContext.ts +4 -1
  10. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  11. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +44 -44
  12. package/src/com/controlresell/models/items/UpdatedItem.d.ts +44 -44
  13. package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.d.ts +12 -0
  14. package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.js +9 -0
  15. package/src/com/controlresell/models/items/history/ItemHistoryTypeWithCount.ts +8 -0
  16. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +189 -0
  17. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.js +10 -0
  18. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.ts +9 -0
  19. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +3 -0
  20. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.js +1 -0
  21. package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.ts +1 -0
  22. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +29 -29
  23. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +820 -0
  24. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.js +10 -0
  25. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.ts +9 -0
  26. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +63 -63
  27. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
  28. package/src/com/controlresell/models/platforms/orders/Order.d.ts +3 -3
  29. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +82 -0
  30. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.js +10 -0
  31. package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.ts +9 -0
  32. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
  33. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +49 -49
  34. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +44 -44
  35. package/src/index.d.ts +4 -0
  36. package/src/index.js +4 -0
  37. package/src/index.ts +4 -0
@@ -0,0 +1,189 @@
1
+ import { z } from "zod";
2
+ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
3
+ item: z.ZodObject<{
4
+ platformId: z.ZodString;
5
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ sold: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8
+ post: z.ZodObject<{
9
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ catalogId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
12
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ measurementLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ measurementWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ packageSizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ photoUrls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
17
+ price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
+ material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
23
+ manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ title?: string | null | undefined;
26
+ description?: string | null | undefined;
27
+ price?: number | null | undefined;
28
+ brand?: string | null | undefined;
29
+ catalogId?: number | null | undefined;
30
+ colorIds?: number[] | null | undefined;
31
+ measurementLength?: number | null | undefined;
32
+ measurementWidth?: number | null | undefined;
33
+ packageSizeId?: number | null | undefined;
34
+ photoUrls?: string[] | null | undefined;
35
+ sizeId?: number | null | undefined;
36
+ statusId?: number | null | undefined;
37
+ isDraft?: boolean | null | undefined;
38
+ material?: number[] | null | undefined;
39
+ manufacturerLabelling?: string | null | undefined;
40
+ }, {
41
+ title?: string | null | undefined;
42
+ description?: string | null | undefined;
43
+ price?: number | null | undefined;
44
+ brand?: string | null | undefined;
45
+ catalogId?: number | null | undefined;
46
+ colorIds?: number[] | null | undefined;
47
+ measurementLength?: number | null | undefined;
48
+ measurementWidth?: number | null | undefined;
49
+ packageSizeId?: number | null | undefined;
50
+ photoUrls?: string[] | null | undefined;
51
+ sizeId?: number | null | undefined;
52
+ statusId?: number | null | undefined;
53
+ isDraft?: boolean | null | undefined;
54
+ material?: number[] | null | undefined;
55
+ manufacturerLabelling?: string | null | undefined;
56
+ }>;
57
+ data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ platformId: string;
60
+ post: {
61
+ title?: string | null | undefined;
62
+ description?: string | null | undefined;
63
+ price?: number | null | undefined;
64
+ brand?: string | null | undefined;
65
+ catalogId?: number | null | undefined;
66
+ colorIds?: number[] | null | undefined;
67
+ measurementLength?: number | null | undefined;
68
+ measurementWidth?: number | null | undefined;
69
+ packageSizeId?: number | null | undefined;
70
+ photoUrls?: string[] | null | undefined;
71
+ sizeId?: number | null | undefined;
72
+ statusId?: number | null | undefined;
73
+ isDraft?: boolean | null | undefined;
74
+ material?: number[] | null | undefined;
75
+ manufacturerLabelling?: string | null | undefined;
76
+ };
77
+ createdAt?: Date | null | undefined;
78
+ data?: string | null | undefined;
79
+ platformUrl?: string | null | undefined;
80
+ sold?: boolean | null | undefined;
81
+ }, {
82
+ platformId: string;
83
+ post: {
84
+ title?: string | null | undefined;
85
+ description?: string | null | undefined;
86
+ price?: number | null | undefined;
87
+ brand?: string | null | undefined;
88
+ catalogId?: number | null | undefined;
89
+ colorIds?: number[] | null | undefined;
90
+ measurementLength?: number | null | undefined;
91
+ measurementWidth?: number | null | undefined;
92
+ packageSizeId?: number | null | undefined;
93
+ photoUrls?: string[] | null | undefined;
94
+ sizeId?: number | null | undefined;
95
+ statusId?: number | null | undefined;
96
+ isDraft?: boolean | null | undefined;
97
+ material?: number[] | null | undefined;
98
+ manufacturerLabelling?: string | null | undefined;
99
+ };
100
+ createdAt?: Date | null | undefined;
101
+ data?: string | null | undefined;
102
+ platformUrl?: string | null | undefined;
103
+ sold?: boolean | null | undefined;
104
+ }>;
105
+ account: z.ZodObject<{
106
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
107
+ accountId: z.ZodString;
108
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
109
+ name: z.ZodString;
110
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
113
+ userId: string | number;
114
+ name: string;
115
+ platform: "VINTED" | "SHOPIFY";
116
+ accountId: string;
117
+ }, {
118
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
119
+ userId: string | number;
120
+ name: string;
121
+ platform: "VINTED" | "SHOPIFY";
122
+ accountId: string;
123
+ }>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ account: {
126
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
127
+ userId: string | number;
128
+ name: string;
129
+ platform: "VINTED" | "SHOPIFY";
130
+ accountId: string;
131
+ };
132
+ item: {
133
+ platformId: string;
134
+ post: {
135
+ title?: string | null | undefined;
136
+ description?: string | null | undefined;
137
+ price?: number | null | undefined;
138
+ brand?: string | null | undefined;
139
+ catalogId?: number | null | undefined;
140
+ colorIds?: number[] | null | undefined;
141
+ measurementLength?: number | null | undefined;
142
+ measurementWidth?: number | null | undefined;
143
+ packageSizeId?: number | null | undefined;
144
+ photoUrls?: string[] | null | undefined;
145
+ sizeId?: number | null | undefined;
146
+ statusId?: number | null | undefined;
147
+ isDraft?: boolean | null | undefined;
148
+ material?: number[] | null | undefined;
149
+ manufacturerLabelling?: string | null | undefined;
150
+ };
151
+ createdAt?: Date | null | undefined;
152
+ data?: string | null | undefined;
153
+ platformUrl?: string | null | undefined;
154
+ sold?: boolean | null | undefined;
155
+ };
156
+ }, {
157
+ account: {
158
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
159
+ userId: string | number;
160
+ name: string;
161
+ platform: "VINTED" | "SHOPIFY";
162
+ accountId: string;
163
+ };
164
+ item: {
165
+ platformId: string;
166
+ post: {
167
+ title?: string | null | undefined;
168
+ description?: string | null | undefined;
169
+ price?: number | null | undefined;
170
+ brand?: string | null | undefined;
171
+ catalogId?: number | null | undefined;
172
+ colorIds?: number[] | null | undefined;
173
+ measurementLength?: number | null | undefined;
174
+ measurementWidth?: number | null | undefined;
175
+ packageSizeId?: number | null | undefined;
176
+ photoUrls?: string[] | null | undefined;
177
+ sizeId?: number | null | undefined;
178
+ statusId?: number | null | undefined;
179
+ isDraft?: boolean | null | undefined;
180
+ material?: number[] | null | undefined;
181
+ manufacturerLabelling?: string | null | undefined;
182
+ };
183
+ createdAt?: Date | null | undefined;
184
+ data?: string | null | undefined;
185
+ platformUrl?: string | null | undefined;
186
+ sold?: boolean | null | undefined;
187
+ };
188
+ }>;
189
+ export type ItemOnPlatformUpdateRequest = z.infer<typeof ItemOnPlatformUpdateRequestSchema>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemOnPlatformUpdateRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const controlresell_connector_1 = require("controlresell-connector");
6
+ const UserOnPlatform_1 = require("../../users/platforms/UserOnPlatform");
7
+ exports.ItemOnPlatformUpdateRequestSchema = zod_1.z.object({
8
+ item: controlresell_connector_1.JobPostListedSchema,
9
+ account: UserOnPlatform_1.UserOnPlatformSchema
10
+ });
@@ -0,0 +1,9 @@
1
+ import {z} from "zod"
2
+ import {JobPostListedSchema} from "controlresell-connector"
3
+ import {UserOnPlatformSchema} from "../../users/platforms/UserOnPlatform"
4
+
5
+ export const ItemOnPlatformUpdateRequestSchema = z.object({
6
+ item: JobPostListedSchema,
7
+ account: UserOnPlatformSchema
8
+ })
9
+ export type ItemOnPlatformUpdateRequest = z.infer<typeof ItemOnPlatformUpdateRequestSchema>
@@ -1,12 +1,15 @@
1
1
  import { z } from "zod";
2
2
  export declare const UpdateItemOnPlatformPayloadSchema: z.ZodObject<{
3
3
  status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>>>;
4
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
5
  platformPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
6
  }, "strip", z.ZodTypeAny, {
6
7
  status?: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
8
+ platformUrl?: string | null | undefined;
7
9
  platformPrice?: number | null | undefined;
8
10
  }, {
9
11
  status?: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
12
+ platformUrl?: string | null | undefined;
10
13
  platformPrice?: number | null | undefined;
11
14
  }>;
12
15
  export type UpdateItemOnPlatformPayload = z.infer<typeof UpdateItemOnPlatformPayloadSchema>;
@@ -5,5 +5,6 @@ const zod_1 = require("zod");
5
5
  const ItemOnPlatformStatus_1 = require("./ItemOnPlatformStatus");
6
6
  exports.UpdateItemOnPlatformPayloadSchema = zod_1.z.object({
7
7
  status: ItemOnPlatformStatus_1.ItemOnPlatformStatusSchema.nullish(),
8
+ platformUrl: zod_1.z.string().nullish(),
8
9
  platformPrice: zod_1.z.number().nullish()
9
10
  });
@@ -3,6 +3,7 @@ import {ItemOnPlatformStatusSchema} from "./ItemOnPlatformStatus"
3
3
 
4
4
  export const UpdateItemOnPlatformPayloadSchema = z.object({
5
5
  status: ItemOnPlatformStatusSchema.nullish(),
6
+ platformUrl: z.string().nullish(),
6
7
  platformPrice: z.number().nullish()
7
8
  })
8
9
  export type UpdateItemOnPlatformPayload = z.infer<typeof UpdateItemOnPlatformPayloadSchema>
@@ -234,6 +234,23 @@ export declare const ConversationSchema: z.ZodObject<{
234
234
  platform: "VINTED" | "SHOPIFY";
235
235
  accountId: string;
236
236
  } | null | undefined;
237
+ users?: {
238
+ id: string;
239
+ login: string;
240
+ conversationId: string;
241
+ platformUserId: string;
242
+ reviewCount?: number | null | undefined;
243
+ reviewValue?: number | null | undefined;
244
+ location?: string | null | undefined;
245
+ photoFileId?: string | null | undefined;
246
+ photoFile?: {
247
+ path: string;
248
+ id: string;
249
+ userId: string | number;
250
+ signedUrl: string;
251
+ createdAt: Date;
252
+ } | null | undefined;
253
+ }[] | null | undefined;
237
254
  lastMessage?: {
238
255
  type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
239
256
  id: string;
@@ -264,6 +281,18 @@ export declare const ConversationSchema: z.ZodObject<{
264
281
  conversationUserId?: string | null | undefined;
265
282
  platformMessageId?: string | null | undefined;
266
283
  } | null | undefined;
284
+ }, {
285
+ id: string;
286
+ updatedAt: Date;
287
+ accountId: string;
288
+ platformConversationId: string;
289
+ account?: {
290
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
291
+ userId: string | number;
292
+ name: string;
293
+ platform: "VINTED" | "SHOPIFY";
294
+ accountId: string;
295
+ } | null | undefined;
267
296
  users?: {
268
297
  id: string;
269
298
  login: string;
@@ -281,18 +310,6 @@ export declare const ConversationSchema: z.ZodObject<{
281
310
  createdAt: Date;
282
311
  } | null | undefined;
283
312
  }[] | null | undefined;
284
- }, {
285
- id: string;
286
- updatedAt: Date;
287
- accountId: string;
288
- platformConversationId: string;
289
- account?: {
290
- status: "ERROR" | "CONNECTED" | "DISCONNECTED";
291
- userId: string | number;
292
- name: string;
293
- platform: "VINTED" | "SHOPIFY";
294
- accountId: string;
295
- } | null | undefined;
296
313
  lastMessage?: {
297
314
  type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
298
315
  id: string;
@@ -323,22 +340,5 @@ export declare const ConversationSchema: z.ZodObject<{
323
340
  conversationUserId?: string | null | undefined;
324
341
  platformMessageId?: string | null | undefined;
325
342
  } | null | undefined;
326
- users?: {
327
- id: string;
328
- login: string;
329
- conversationId: string;
330
- platformUserId: string;
331
- reviewCount?: number | null | undefined;
332
- reviewValue?: number | null | undefined;
333
- location?: string | null | undefined;
334
- photoFileId?: string | null | undefined;
335
- photoFile?: {
336
- path: string;
337
- id: string;
338
- userId: string | number;
339
- signedUrl: string;
340
- createdAt: Date;
341
- } | null | undefined;
342
- }[] | null | undefined;
343
343
  }>;
344
344
  export type Conversation = z.infer<typeof ConversationSchema>;