controlresell 2.0.10 → 2.1.0
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 +2 -2
- package/src/com/controlresell/models/customers/VerifyCustomerRequest.d.ts +9 -0
- package/src/com/controlresell/models/customers/VerifyCustomerRequest.js +7 -0
- package/src/com/controlresell/models/customers/VerifyCustomerRequest.ts +6 -0
- package/src/com/controlresell/models/customers/contracts/Contract.d.ts +4 -4
- package/src/com/controlresell/models/customers/contracts/PrepareContractResponse.d.ts +4 -4
- package/src/com/controlresell/models/fees/Fee.d.ts +6 -6
- package/src/com/controlresell/models/items/CreatedItems.d.ts +74 -74
- package/src/com/controlresell/models/items/Item.d.ts +48 -48
- package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +6 -6
- package/src/com/controlresell/models/items/ItemFiltersContext.js +2 -2
- package/src/com/controlresell/models/items/ItemFiltersContext.ts +2 -2
- package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +70 -70
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +74 -74
- package/src/com/controlresell/models/items/files/ItemFile.d.ts +6 -6
- package/src/com/controlresell/models/items/labels/ItemLabel.d.ts +4 -4
- package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +10 -10
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +70 -70
- package/src/com/controlresell/models/metadata/brands/Brand.d.ts +2 -2
- package/src/com/controlresell/models/metadata/labels/Label.d.ts +2 -2
- package/src/com/controlresell/models/metadata/places/Place.d.ts +2 -2
- package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +149 -55
- package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +193 -75
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +97 -27
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +6 -4
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +6 -4
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +12 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +8 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +5 -5
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +1 -1
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +1 -1
- package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +133 -39
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +45 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +10 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +9 -0
- package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.d.ts +48 -0
- package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.js +11 -0
- package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.ts +10 -0
- package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.d.ts +12 -0
- package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.js +8 -0
- package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.ts +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.d.ts +9 -0
- package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.js +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.d.ts +21 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.js +12 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.ts +11 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.d.ts +9 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.js +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.d.ts +15 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.js +10 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.ts +9 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.d.ts +9 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.js +8 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.ts +7 -0
- package/src/com/controlresell/models/platforms/conversations/users/ConversationUser.d.ts +4 -4
- package/src/com/controlresell/models/platforms/labels/OrderLabel.d.ts +10 -10
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -0
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.js +1 -0
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.ts +1 -0
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +45 -42
- package/src/com/controlresell/models/platforms/orders/Order.js +1 -0
- package/src/com/controlresell/models/platforms/orders/Order.ts +1 -0
- package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +5 -2
- package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.js +1 -0
- package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.ts +1 -0
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +16 -16
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +1126 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.js +10 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.ts +9 -0
- package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.d.ts +21 -0
- package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.js +11 -0
- package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.ts +10 -0
- package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +167 -0
- package/src/com/controlresell/models/platforms/transactions/Transaction.js +15 -0
- package/src/com/controlresell/models/platforms/transactions/Transaction.ts +14 -0
- package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.d.ts +18 -0
- package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.js +10 -0
- package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.ts +9 -0
- package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.d.ts +9 -0
- package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.js +7 -0
- package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.ts +6 -0
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +102 -0
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.js +10 -0
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.ts +9 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +959 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.js +10 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.ts +9 -0
- package/src/com/controlresell/models/users/UpdateUserPayload.d.ts +2 -2
- package/src/com/controlresell/models/users/User.d.ts +2 -2
- package/src/com/controlresell/models/users/fields/Field.d.ts +2 -2
- package/src/com/controlresell/models/users/fields/FieldsWithData.d.ts +4 -4
- package/src/com/controlresell/models/users/files/File.d.ts +2 -2
- package/src/com/controlresell/models/users/platforms/CreateUserOnPlatformPayload.d.ts +2 -2
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +8 -8
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +11 -11
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +2 -2
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +4 -4
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
- package/src/index.d.ts +18 -1
- package/src/index.js +18 -1
- package/src/index.ts +18 -1
- package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.d.ts +2 -2
- /package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.js +0 -0
- /package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.ts +0 -0
|
@@ -18,35 +18,35 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
18
18
|
path: string;
|
|
19
19
|
id: string;
|
|
20
20
|
userId: string | number;
|
|
21
|
-
createdAt: Date;
|
|
22
21
|
signedUrl: string;
|
|
22
|
+
createdAt: Date;
|
|
23
23
|
}, {
|
|
24
24
|
path: string;
|
|
25
25
|
id: string;
|
|
26
26
|
userId: string | number;
|
|
27
|
-
createdAt: Date;
|
|
28
27
|
signedUrl: string;
|
|
28
|
+
createdAt: Date;
|
|
29
29
|
}>>>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
itemId: string | number;
|
|
32
31
|
fileId: string;
|
|
32
|
+
itemId: string | number;
|
|
33
33
|
file?: {
|
|
34
34
|
path: string;
|
|
35
35
|
id: string;
|
|
36
36
|
userId: string | number;
|
|
37
|
-
createdAt: Date;
|
|
38
37
|
signedUrl: string;
|
|
38
|
+
createdAt: Date;
|
|
39
39
|
} | null | undefined;
|
|
40
40
|
index?: number | null | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
itemId: string | number;
|
|
43
42
|
fileId: string;
|
|
43
|
+
itemId: string | number;
|
|
44
44
|
file?: {
|
|
45
45
|
path: string;
|
|
46
46
|
id: string;
|
|
47
47
|
userId: string | number;
|
|
48
|
-
createdAt: Date;
|
|
49
48
|
signedUrl: string;
|
|
49
|
+
createdAt: Date;
|
|
50
50
|
} | null | undefined;
|
|
51
51
|
index?: number | null | undefined;
|
|
52
52
|
}>, "many">>>;
|
|
@@ -82,31 +82,31 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
82
82
|
value: number;
|
|
83
83
|
type: string;
|
|
84
84
|
id: string | number;
|
|
85
|
-
name: string;
|
|
86
85
|
userId: string | number;
|
|
87
86
|
createdAt: Date;
|
|
88
|
-
|
|
87
|
+
name: string;
|
|
89
88
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
90
89
|
startDate: Date;
|
|
91
90
|
active: boolean;
|
|
91
|
+
updatedAt: Date;
|
|
92
92
|
description?: string | null | undefined;
|
|
93
|
-
itemId?: string | number | null | undefined;
|
|
94
93
|
endDate?: Date | null | undefined;
|
|
94
|
+
itemId?: string | number | null | undefined;
|
|
95
95
|
parentFeeId?: string | number | null | undefined;
|
|
96
96
|
}, {
|
|
97
97
|
value: number;
|
|
98
98
|
type: string;
|
|
99
99
|
id: string | number;
|
|
100
|
-
name: string;
|
|
101
100
|
userId: string | number;
|
|
102
101
|
createdAt: Date;
|
|
103
|
-
|
|
102
|
+
name: string;
|
|
104
103
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
105
104
|
startDate: Date;
|
|
106
105
|
active: boolean;
|
|
106
|
+
updatedAt: Date;
|
|
107
107
|
description?: string | null | undefined;
|
|
108
|
-
itemId?: string | number | null | undefined;
|
|
109
108
|
endDate?: Date | null | undefined;
|
|
109
|
+
itemId?: string | number | null | undefined;
|
|
110
110
|
parentFeeId?: string | number | null | undefined;
|
|
111
111
|
}>, "many">>>;
|
|
112
112
|
feesSum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -121,14 +121,14 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
121
121
|
createdAt: z.ZodDate;
|
|
122
122
|
}, "strip", z.ZodTypeAny, {
|
|
123
123
|
id: string | number;
|
|
124
|
-
name: string;
|
|
125
124
|
createdAt: Date;
|
|
125
|
+
name: string;
|
|
126
126
|
isUserLabel: boolean;
|
|
127
127
|
userId?: string | number | null | undefined;
|
|
128
128
|
}, {
|
|
129
129
|
id: string | number;
|
|
130
|
-
name: string;
|
|
131
130
|
createdAt: Date;
|
|
131
|
+
name: string;
|
|
132
132
|
isUserLabel: boolean;
|
|
133
133
|
userId?: string | number | null | undefined;
|
|
134
134
|
}>>>;
|
|
@@ -137,8 +137,8 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
137
137
|
labelId: string | number;
|
|
138
138
|
label?: {
|
|
139
139
|
id: string | number;
|
|
140
|
-
name: string;
|
|
141
140
|
createdAt: Date;
|
|
141
|
+
name: string;
|
|
142
142
|
isUserLabel: boolean;
|
|
143
143
|
userId?: string | number | null | undefined;
|
|
144
144
|
} | null | undefined;
|
|
@@ -147,8 +147,8 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
147
147
|
labelId: string | number;
|
|
148
148
|
label?: {
|
|
149
149
|
id: string | number;
|
|
150
|
-
name: string;
|
|
151
150
|
createdAt: Date;
|
|
151
|
+
name: string;
|
|
152
152
|
isUserLabel: boolean;
|
|
153
153
|
userId?: string | number | null | undefined;
|
|
154
154
|
} | null | undefined;
|
|
@@ -246,71 +246,71 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
246
246
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
247
247
|
}, "strip", z.ZodTypeAny, {
|
|
248
248
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
249
|
+
userId: string | number;
|
|
250
|
+
name: string;
|
|
249
251
|
platform: "VINTED" | "SHOPIFY";
|
|
250
252
|
accountId: string;
|
|
251
|
-
name: string;
|
|
252
|
-
userId: string | number;
|
|
253
253
|
}, {
|
|
254
254
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
255
|
+
userId: string | number;
|
|
256
|
+
name: string;
|
|
255
257
|
platform: "VINTED" | "SHOPIFY";
|
|
256
258
|
accountId: string;
|
|
257
|
-
name: string;
|
|
258
|
-
userId: string | number;
|
|
259
259
|
}>>>;
|
|
260
260
|
}, "strip", z.ZodTypeAny, {
|
|
261
261
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
262
262
|
id: string;
|
|
263
|
-
accountId: string;
|
|
264
263
|
itemId: string | number;
|
|
264
|
+
accountId: string;
|
|
265
265
|
platformId: string;
|
|
266
266
|
platformUrl: string;
|
|
267
267
|
platformPrice: number;
|
|
268
268
|
account?: {
|
|
269
269
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
270
|
+
userId: string | number;
|
|
271
|
+
name: string;
|
|
270
272
|
platform: "VINTED" | "SHOPIFY";
|
|
271
273
|
accountId: string;
|
|
272
|
-
name: string;
|
|
273
|
-
userId: string | number;
|
|
274
274
|
} | null | undefined;
|
|
275
275
|
}, {
|
|
276
276
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
277
277
|
id: string;
|
|
278
|
-
accountId: string;
|
|
279
278
|
itemId: string | number;
|
|
279
|
+
accountId: string;
|
|
280
280
|
platformId: string;
|
|
281
281
|
platformUrl: string;
|
|
282
282
|
platformPrice: number;
|
|
283
283
|
account?: {
|
|
284
284
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
285
|
+
userId: string | number;
|
|
286
|
+
name: string;
|
|
285
287
|
platform: "VINTED" | "SHOPIFY";
|
|
286
288
|
accountId: string;
|
|
287
|
-
name: string;
|
|
288
|
-
userId: string | number;
|
|
289
289
|
} | null | undefined;
|
|
290
290
|
}>, "many">>>;
|
|
291
291
|
createdAt: z.ZodDate;
|
|
292
292
|
updatedAt: z.ZodDate;
|
|
293
293
|
}, "strip", z.ZodTypeAny, {
|
|
294
294
|
id: string | number;
|
|
295
|
-
name: string;
|
|
296
295
|
userId: string | number;
|
|
297
296
|
createdAt: Date;
|
|
297
|
+
name: string;
|
|
298
298
|
updatedAt: Date;
|
|
299
299
|
sold: boolean;
|
|
300
300
|
description?: string | null | undefined;
|
|
301
|
+
customerId?: string | number | null | undefined;
|
|
301
302
|
colorIds?: number[] | null | undefined;
|
|
302
303
|
packageSizeId?: number | null | undefined;
|
|
303
304
|
sizeId?: number | null | undefined;
|
|
304
|
-
customerId?: string | number | null | undefined;
|
|
305
305
|
files?: {
|
|
306
|
-
itemId: string | number;
|
|
307
306
|
fileId: string;
|
|
307
|
+
itemId: string | number;
|
|
308
308
|
file?: {
|
|
309
309
|
path: string;
|
|
310
310
|
id: string;
|
|
311
311
|
userId: string | number;
|
|
312
|
-
createdAt: Date;
|
|
313
312
|
signedUrl: string;
|
|
313
|
+
createdAt: Date;
|
|
314
314
|
} | null | undefined;
|
|
315
315
|
index?: number | null | undefined;
|
|
316
316
|
}[] | null | undefined;
|
|
@@ -329,16 +329,16 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
329
329
|
value: number;
|
|
330
330
|
type: string;
|
|
331
331
|
id: string | number;
|
|
332
|
-
name: string;
|
|
333
332
|
userId: string | number;
|
|
334
333
|
createdAt: Date;
|
|
335
|
-
|
|
334
|
+
name: string;
|
|
336
335
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
337
336
|
startDate: Date;
|
|
338
337
|
active: boolean;
|
|
338
|
+
updatedAt: Date;
|
|
339
339
|
description?: string | null | undefined;
|
|
340
|
-
itemId?: string | number | null | undefined;
|
|
341
340
|
endDate?: Date | null | undefined;
|
|
341
|
+
itemId?: string | number | null | undefined;
|
|
342
342
|
parentFeeId?: string | number | null | undefined;
|
|
343
343
|
}[] | null | undefined;
|
|
344
344
|
feesSum?: number | null | undefined;
|
|
@@ -347,8 +347,8 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
347
347
|
labelId: string | number;
|
|
348
348
|
label?: {
|
|
349
349
|
id: string | number;
|
|
350
|
-
name: string;
|
|
351
350
|
createdAt: Date;
|
|
351
|
+
name: string;
|
|
352
352
|
isUserLabel: boolean;
|
|
353
353
|
userId?: string | number | null | undefined;
|
|
354
354
|
} | null | undefined;
|
|
@@ -386,40 +386,40 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
386
386
|
platforms?: {
|
|
387
387
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
388
388
|
id: string;
|
|
389
|
-
accountId: string;
|
|
390
389
|
itemId: string | number;
|
|
390
|
+
accountId: string;
|
|
391
391
|
platformId: string;
|
|
392
392
|
platformUrl: string;
|
|
393
393
|
platformPrice: number;
|
|
394
394
|
account?: {
|
|
395
395
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
396
|
+
userId: string | number;
|
|
397
|
+
name: string;
|
|
396
398
|
platform: "VINTED" | "SHOPIFY";
|
|
397
399
|
accountId: string;
|
|
398
|
-
name: string;
|
|
399
|
-
userId: string | number;
|
|
400
400
|
} | null | undefined;
|
|
401
401
|
}[] | null | undefined;
|
|
402
402
|
}, {
|
|
403
403
|
id: string | number;
|
|
404
|
-
name: string;
|
|
405
404
|
userId: string | number;
|
|
406
405
|
createdAt: Date;
|
|
406
|
+
name: string;
|
|
407
407
|
updatedAt: Date;
|
|
408
408
|
sold: boolean;
|
|
409
409
|
description?: string | null | undefined;
|
|
410
|
+
customerId?: string | number | null | undefined;
|
|
410
411
|
colorIds?: number[] | null | undefined;
|
|
411
412
|
packageSizeId?: number | null | undefined;
|
|
412
413
|
sizeId?: number | null | undefined;
|
|
413
|
-
customerId?: string | number | null | undefined;
|
|
414
414
|
files?: {
|
|
415
|
-
itemId: string | number;
|
|
416
415
|
fileId: string;
|
|
416
|
+
itemId: string | number;
|
|
417
417
|
file?: {
|
|
418
418
|
path: string;
|
|
419
419
|
id: string;
|
|
420
420
|
userId: string | number;
|
|
421
|
-
createdAt: Date;
|
|
422
421
|
signedUrl: string;
|
|
422
|
+
createdAt: Date;
|
|
423
423
|
} | null | undefined;
|
|
424
424
|
index?: number | null | undefined;
|
|
425
425
|
}[] | null | undefined;
|
|
@@ -438,16 +438,16 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
438
438
|
value: number;
|
|
439
439
|
type: string;
|
|
440
440
|
id: string | number;
|
|
441
|
-
name: string;
|
|
442
441
|
userId: string | number;
|
|
443
442
|
createdAt: Date;
|
|
444
|
-
|
|
443
|
+
name: string;
|
|
445
444
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
446
445
|
startDate: Date;
|
|
447
446
|
active: boolean;
|
|
447
|
+
updatedAt: Date;
|
|
448
448
|
description?: string | null | undefined;
|
|
449
|
-
itemId?: string | number | null | undefined;
|
|
450
449
|
endDate?: Date | null | undefined;
|
|
450
|
+
itemId?: string | number | null | undefined;
|
|
451
451
|
parentFeeId?: string | number | null | undefined;
|
|
452
452
|
}[] | null | undefined;
|
|
453
453
|
feesSum?: number | null | undefined;
|
|
@@ -456,8 +456,8 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
456
456
|
labelId: string | number;
|
|
457
457
|
label?: {
|
|
458
458
|
id: string | number;
|
|
459
|
-
name: string;
|
|
460
459
|
createdAt: Date;
|
|
460
|
+
name: string;
|
|
461
461
|
isUserLabel: boolean;
|
|
462
462
|
userId?: string | number | null | undefined;
|
|
463
463
|
} | null | undefined;
|
|
@@ -495,17 +495,17 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
495
495
|
platforms?: {
|
|
496
496
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
497
497
|
id: string;
|
|
498
|
-
accountId: string;
|
|
499
498
|
itemId: string | number;
|
|
499
|
+
accountId: string;
|
|
500
500
|
platformId: string;
|
|
501
501
|
platformUrl: string;
|
|
502
502
|
platformPrice: number;
|
|
503
503
|
account?: {
|
|
504
504
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
505
|
+
userId: string | number;
|
|
506
|
+
name: string;
|
|
505
507
|
platform: "VINTED" | "SHOPIFY";
|
|
506
508
|
accountId: string;
|
|
507
|
-
name: string;
|
|
508
|
-
userId: string | number;
|
|
509
509
|
} | null | undefined;
|
|
510
510
|
}[] | null | undefined;
|
|
511
511
|
}>;
|
|
@@ -12,8 +12,8 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
12
12
|
purchasePrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
13
13
|
sellingPrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
14
14
|
estimatedPrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
15
|
-
purchaseDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDate
|
|
16
|
-
sellingDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDate
|
|
15
|
+
purchaseDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodDate>>, "many">>>;
|
|
16
|
+
sellingDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodDate>>, "many">>>;
|
|
17
17
|
searchQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
readyToPublish: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -29,8 +29,8 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
29
29
|
purchasePrices?: number[] | null | undefined;
|
|
30
30
|
sellingPrices?: number[] | null | undefined;
|
|
31
31
|
estimatedPrices?: number[] | null | undefined;
|
|
32
|
-
purchaseDates?: Date[] | null | undefined;
|
|
33
|
-
sellingDates?: Date[] | null | undefined;
|
|
32
|
+
purchaseDates?: (Date | null | undefined)[] | null | undefined;
|
|
33
|
+
sellingDates?: (Date | null | undefined)[] | null | undefined;
|
|
34
34
|
searchQuery?: string | null | undefined;
|
|
35
35
|
readyToPublish?: boolean | null | undefined;
|
|
36
36
|
}, {
|
|
@@ -46,8 +46,8 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
|
|
|
46
46
|
purchasePrices?: number[] | null | undefined;
|
|
47
47
|
sellingPrices?: number[] | null | undefined;
|
|
48
48
|
estimatedPrices?: number[] | null | undefined;
|
|
49
|
-
purchaseDates?: Date[] | null | undefined;
|
|
50
|
-
sellingDates?: Date[] | null | undefined;
|
|
49
|
+
purchaseDates?: (Date | null | undefined)[] | null | undefined;
|
|
50
|
+
sellingDates?: (Date | null | undefined)[] | null | undefined;
|
|
51
51
|
searchQuery?: string | null | undefined;
|
|
52
52
|
readyToPublish?: boolean | null | undefined;
|
|
53
53
|
}>;
|
|
@@ -16,8 +16,8 @@ exports.ItemFiltersContextSchema = zod_1.z.object({
|
|
|
16
16
|
purchasePrices: zod_1.z.array(zod_1.z.number()).max(2).nullish(),
|
|
17
17
|
sellingPrices: zod_1.z.array(zod_1.z.number()).max(2).nullish(),
|
|
18
18
|
estimatedPrices: zod_1.z.array(zod_1.z.number()).max(2).nullish(),
|
|
19
|
-
purchaseDates: zod_1.z.array(zod_1.z.coerce.date()).max(2).nullish(),
|
|
20
|
-
sellingDates: zod_1.z.array(zod_1.z.coerce.date()).max(2).nullish(),
|
|
19
|
+
purchaseDates: zod_1.z.array(zod_1.z.coerce.date().nullish()).max(2).nullish(),
|
|
20
|
+
sellingDates: zod_1.z.array(zod_1.z.coerce.date().nullish()).max(2).nullish(),
|
|
21
21
|
searchQuery: zod_1.z.string().nullish(),
|
|
22
22
|
readyToPublish: zod_1.z.boolean().nullish()
|
|
23
23
|
});
|
|
@@ -14,8 +14,8 @@ export const ItemFiltersContextSchema = z.object({
|
|
|
14
14
|
purchasePrices: z.array(z.number()).max(2).nullish(),
|
|
15
15
|
sellingPrices: z.array(z.number()).max(2).nullish(),
|
|
16
16
|
estimatedPrices: z.array(z.number()).max(2).nullish(),
|
|
17
|
-
purchaseDates: z.array(z.coerce.date()).max(2).nullish(),
|
|
18
|
-
sellingDates: z.array(z.coerce.date()).max(2).nullish(),
|
|
17
|
+
purchaseDates: z.array(z.coerce.date().nullish()).max(2).nullish(),
|
|
18
|
+
sellingDates: z.array(z.coerce.date().nullish()).max(2).nullish(),
|
|
19
19
|
searchQuery: z.string().nullish(),
|
|
20
20
|
readyToPublish: z.boolean().nullish()
|
|
21
21
|
})
|
|
@@ -43,10 +43,10 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
43
43
|
sold: boolean;
|
|
44
44
|
filesId: string[];
|
|
45
45
|
description?: string | null | undefined;
|
|
46
|
+
customerId?: string | number | null | undefined;
|
|
46
47
|
colorIds?: number[] | null | undefined;
|
|
47
48
|
packageSizeId?: number | null | undefined;
|
|
48
49
|
sizeId?: number | null | undefined;
|
|
49
|
-
customerId?: string | number | null | undefined;
|
|
50
50
|
categoryId?: number | null | undefined;
|
|
51
51
|
brandId?: string | number | null | undefined;
|
|
52
52
|
sex?: string | null | undefined;
|
|
@@ -76,10 +76,10 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
76
76
|
sold: boolean;
|
|
77
77
|
filesId: string[];
|
|
78
78
|
description?: string | null | undefined;
|
|
79
|
+
customerId?: string | number | null | undefined;
|
|
79
80
|
colorIds?: number[] | null | undefined;
|
|
80
81
|
packageSizeId?: number | null | undefined;
|
|
81
82
|
sizeId?: number | null | undefined;
|
|
82
|
-
customerId?: string | number | null | undefined;
|
|
83
83
|
categoryId?: number | null | undefined;
|
|
84
84
|
brandId?: string | number | null | undefined;
|
|
85
85
|
sex?: string | null | undefined;
|