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
|
@@ -19,35 +19,35 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
19
19
|
path: string;
|
|
20
20
|
id: string;
|
|
21
21
|
userId: string | number;
|
|
22
|
-
createdAt: Date;
|
|
23
22
|
signedUrl: string;
|
|
23
|
+
createdAt: Date;
|
|
24
24
|
}, {
|
|
25
25
|
path: string;
|
|
26
26
|
id: string;
|
|
27
27
|
userId: string | number;
|
|
28
|
-
createdAt: Date;
|
|
29
28
|
signedUrl: string;
|
|
29
|
+
createdAt: Date;
|
|
30
30
|
}>>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
itemId: string | number;
|
|
33
32
|
fileId: string;
|
|
33
|
+
itemId: string | number;
|
|
34
34
|
file?: {
|
|
35
35
|
path: string;
|
|
36
36
|
id: string;
|
|
37
37
|
userId: string | number;
|
|
38
|
-
createdAt: Date;
|
|
39
38
|
signedUrl: string;
|
|
39
|
+
createdAt: Date;
|
|
40
40
|
} | null | undefined;
|
|
41
41
|
index?: number | null | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
itemId: string | number;
|
|
44
43
|
fileId: string;
|
|
44
|
+
itemId: string | number;
|
|
45
45
|
file?: {
|
|
46
46
|
path: string;
|
|
47
47
|
id: string;
|
|
48
48
|
userId: string | number;
|
|
49
|
-
createdAt: Date;
|
|
50
49
|
signedUrl: string;
|
|
50
|
+
createdAt: Date;
|
|
51
51
|
} | null | undefined;
|
|
52
52
|
index?: number | null | undefined;
|
|
53
53
|
}>, "many">>>;
|
|
@@ -83,31 +83,31 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
83
83
|
value: number;
|
|
84
84
|
type: string;
|
|
85
85
|
id: string | number;
|
|
86
|
-
name: string;
|
|
87
86
|
userId: string | number;
|
|
88
87
|
createdAt: Date;
|
|
89
|
-
|
|
88
|
+
name: string;
|
|
90
89
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
91
90
|
startDate: Date;
|
|
92
91
|
active: boolean;
|
|
92
|
+
updatedAt: Date;
|
|
93
93
|
description?: string | null | undefined;
|
|
94
|
-
itemId?: string | number | null | undefined;
|
|
95
94
|
endDate?: Date | null | undefined;
|
|
95
|
+
itemId?: string | number | null | undefined;
|
|
96
96
|
parentFeeId?: string | number | null | undefined;
|
|
97
97
|
}, {
|
|
98
98
|
value: number;
|
|
99
99
|
type: string;
|
|
100
100
|
id: string | number;
|
|
101
|
-
name: string;
|
|
102
101
|
userId: string | number;
|
|
103
102
|
createdAt: Date;
|
|
104
|
-
|
|
103
|
+
name: string;
|
|
105
104
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
106
105
|
startDate: Date;
|
|
107
106
|
active: boolean;
|
|
107
|
+
updatedAt: Date;
|
|
108
108
|
description?: string | null | undefined;
|
|
109
|
-
itemId?: string | number | null | undefined;
|
|
110
109
|
endDate?: Date | null | undefined;
|
|
110
|
+
itemId?: string | number | null | undefined;
|
|
111
111
|
parentFeeId?: string | number | null | undefined;
|
|
112
112
|
}>, "many">>>;
|
|
113
113
|
feesSum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -122,14 +122,14 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
122
122
|
createdAt: z.ZodDate;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
124
|
id: string | number;
|
|
125
|
-
name: string;
|
|
126
125
|
createdAt: Date;
|
|
126
|
+
name: string;
|
|
127
127
|
isUserLabel: boolean;
|
|
128
128
|
userId?: string | number | null | undefined;
|
|
129
129
|
}, {
|
|
130
130
|
id: string | number;
|
|
131
|
-
name: string;
|
|
132
131
|
createdAt: Date;
|
|
132
|
+
name: string;
|
|
133
133
|
isUserLabel: boolean;
|
|
134
134
|
userId?: string | number | null | undefined;
|
|
135
135
|
}>>>;
|
|
@@ -138,8 +138,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
138
138
|
labelId: string | number;
|
|
139
139
|
label?: {
|
|
140
140
|
id: string | number;
|
|
141
|
-
name: string;
|
|
142
141
|
createdAt: Date;
|
|
142
|
+
name: string;
|
|
143
143
|
isUserLabel: boolean;
|
|
144
144
|
userId?: string | number | null | undefined;
|
|
145
145
|
} | null | undefined;
|
|
@@ -148,8 +148,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
148
148
|
labelId: string | number;
|
|
149
149
|
label?: {
|
|
150
150
|
id: string | number;
|
|
151
|
-
name: string;
|
|
152
151
|
createdAt: Date;
|
|
152
|
+
name: string;
|
|
153
153
|
isUserLabel: boolean;
|
|
154
154
|
userId?: string | number | null | undefined;
|
|
155
155
|
} | null | undefined;
|
|
@@ -247,71 +247,71 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
247
247
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
248
248
|
}, "strip", z.ZodTypeAny, {
|
|
249
249
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
250
|
+
userId: string | number;
|
|
251
|
+
name: string;
|
|
250
252
|
platform: "VINTED" | "SHOPIFY";
|
|
251
253
|
accountId: string;
|
|
252
|
-
name: string;
|
|
253
|
-
userId: string | number;
|
|
254
254
|
}, {
|
|
255
255
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
256
|
+
userId: string | number;
|
|
257
|
+
name: string;
|
|
256
258
|
platform: "VINTED" | "SHOPIFY";
|
|
257
259
|
accountId: string;
|
|
258
|
-
name: string;
|
|
259
|
-
userId: string | number;
|
|
260
260
|
}>>>;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
262
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
263
263
|
id: string;
|
|
264
|
-
accountId: string;
|
|
265
264
|
itemId: string | number;
|
|
265
|
+
accountId: string;
|
|
266
266
|
platformId: string;
|
|
267
267
|
platformUrl: string;
|
|
268
268
|
platformPrice: number;
|
|
269
269
|
account?: {
|
|
270
270
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
271
|
+
userId: string | number;
|
|
272
|
+
name: string;
|
|
271
273
|
platform: "VINTED" | "SHOPIFY";
|
|
272
274
|
accountId: string;
|
|
273
|
-
name: string;
|
|
274
|
-
userId: string | number;
|
|
275
275
|
} | null | undefined;
|
|
276
276
|
}, {
|
|
277
277
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
278
278
|
id: string;
|
|
279
|
-
accountId: string;
|
|
280
279
|
itemId: string | number;
|
|
280
|
+
accountId: string;
|
|
281
281
|
platformId: string;
|
|
282
282
|
platformUrl: string;
|
|
283
283
|
platformPrice: number;
|
|
284
284
|
account?: {
|
|
285
285
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
286
|
+
userId: string | number;
|
|
287
|
+
name: string;
|
|
286
288
|
platform: "VINTED" | "SHOPIFY";
|
|
287
289
|
accountId: string;
|
|
288
|
-
name: string;
|
|
289
|
-
userId: string | number;
|
|
290
290
|
} | null | undefined;
|
|
291
291
|
}>, "many">>>;
|
|
292
292
|
createdAt: z.ZodDate;
|
|
293
293
|
updatedAt: z.ZodDate;
|
|
294
294
|
}, "strip", z.ZodTypeAny, {
|
|
295
295
|
id: string | number;
|
|
296
|
-
name: string;
|
|
297
296
|
userId: string | number;
|
|
298
297
|
createdAt: Date;
|
|
298
|
+
name: string;
|
|
299
299
|
updatedAt: Date;
|
|
300
300
|
sold: boolean;
|
|
301
301
|
description?: string | null | undefined;
|
|
302
|
+
customerId?: string | number | null | undefined;
|
|
302
303
|
colorIds?: number[] | null | undefined;
|
|
303
304
|
packageSizeId?: number | null | undefined;
|
|
304
305
|
sizeId?: number | null | undefined;
|
|
305
|
-
customerId?: string | number | null | undefined;
|
|
306
306
|
files?: {
|
|
307
|
-
itemId: string | number;
|
|
308
307
|
fileId: string;
|
|
308
|
+
itemId: string | number;
|
|
309
309
|
file?: {
|
|
310
310
|
path: string;
|
|
311
311
|
id: string;
|
|
312
312
|
userId: string | number;
|
|
313
|
-
createdAt: Date;
|
|
314
313
|
signedUrl: string;
|
|
314
|
+
createdAt: Date;
|
|
315
315
|
} | null | undefined;
|
|
316
316
|
index?: number | null | undefined;
|
|
317
317
|
}[] | null | undefined;
|
|
@@ -330,16 +330,16 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
330
330
|
value: number;
|
|
331
331
|
type: string;
|
|
332
332
|
id: string | number;
|
|
333
|
-
name: string;
|
|
334
333
|
userId: string | number;
|
|
335
334
|
createdAt: Date;
|
|
336
|
-
|
|
335
|
+
name: string;
|
|
337
336
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
338
337
|
startDate: Date;
|
|
339
338
|
active: boolean;
|
|
339
|
+
updatedAt: Date;
|
|
340
340
|
description?: string | null | undefined;
|
|
341
|
-
itemId?: string | number | null | undefined;
|
|
342
341
|
endDate?: Date | null | undefined;
|
|
342
|
+
itemId?: string | number | null | undefined;
|
|
343
343
|
parentFeeId?: string | number | null | undefined;
|
|
344
344
|
}[] | null | undefined;
|
|
345
345
|
feesSum?: number | null | undefined;
|
|
@@ -348,8 +348,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
348
348
|
labelId: string | number;
|
|
349
349
|
label?: {
|
|
350
350
|
id: string | number;
|
|
351
|
-
name: string;
|
|
352
351
|
createdAt: Date;
|
|
352
|
+
name: string;
|
|
353
353
|
isUserLabel: boolean;
|
|
354
354
|
userId?: string | number | null | undefined;
|
|
355
355
|
} | null | undefined;
|
|
@@ -387,40 +387,40 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
387
387
|
platforms?: {
|
|
388
388
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
389
389
|
id: string;
|
|
390
|
-
accountId: string;
|
|
391
390
|
itemId: string | number;
|
|
391
|
+
accountId: string;
|
|
392
392
|
platformId: string;
|
|
393
393
|
platformUrl: string;
|
|
394
394
|
platformPrice: number;
|
|
395
395
|
account?: {
|
|
396
396
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
397
|
+
userId: string | number;
|
|
398
|
+
name: string;
|
|
397
399
|
platform: "VINTED" | "SHOPIFY";
|
|
398
400
|
accountId: string;
|
|
399
|
-
name: string;
|
|
400
|
-
userId: string | number;
|
|
401
401
|
} | null | undefined;
|
|
402
402
|
}[] | null | undefined;
|
|
403
403
|
}, {
|
|
404
404
|
id: string | number;
|
|
405
|
-
name: string;
|
|
406
405
|
userId: string | number;
|
|
407
406
|
createdAt: Date;
|
|
407
|
+
name: string;
|
|
408
408
|
updatedAt: Date;
|
|
409
409
|
sold: boolean;
|
|
410
410
|
description?: string | null | undefined;
|
|
411
|
+
customerId?: string | number | null | undefined;
|
|
411
412
|
colorIds?: number[] | null | undefined;
|
|
412
413
|
packageSizeId?: number | null | undefined;
|
|
413
414
|
sizeId?: number | null | undefined;
|
|
414
|
-
customerId?: string | number | null | undefined;
|
|
415
415
|
files?: {
|
|
416
|
-
itemId: string | number;
|
|
417
416
|
fileId: string;
|
|
417
|
+
itemId: string | number;
|
|
418
418
|
file?: {
|
|
419
419
|
path: string;
|
|
420
420
|
id: string;
|
|
421
421
|
userId: string | number;
|
|
422
|
-
createdAt: Date;
|
|
423
422
|
signedUrl: string;
|
|
423
|
+
createdAt: Date;
|
|
424
424
|
} | null | undefined;
|
|
425
425
|
index?: number | null | undefined;
|
|
426
426
|
}[] | null | undefined;
|
|
@@ -439,16 +439,16 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
439
439
|
value: number;
|
|
440
440
|
type: string;
|
|
441
441
|
id: string | number;
|
|
442
|
-
name: string;
|
|
443
442
|
userId: string | number;
|
|
444
443
|
createdAt: Date;
|
|
445
|
-
|
|
444
|
+
name: string;
|
|
446
445
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
447
446
|
startDate: Date;
|
|
448
447
|
active: boolean;
|
|
448
|
+
updatedAt: Date;
|
|
449
449
|
description?: string | null | undefined;
|
|
450
|
-
itemId?: string | number | null | undefined;
|
|
451
450
|
endDate?: Date | null | undefined;
|
|
451
|
+
itemId?: string | number | null | undefined;
|
|
452
452
|
parentFeeId?: string | number | null | undefined;
|
|
453
453
|
}[] | null | undefined;
|
|
454
454
|
feesSum?: number | null | undefined;
|
|
@@ -457,8 +457,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
457
457
|
labelId: string | number;
|
|
458
458
|
label?: {
|
|
459
459
|
id: string | number;
|
|
460
|
-
name: string;
|
|
461
460
|
createdAt: Date;
|
|
461
|
+
name: string;
|
|
462
462
|
isUserLabel: boolean;
|
|
463
463
|
userId?: string | number | null | undefined;
|
|
464
464
|
} | null | undefined;
|
|
@@ -496,17 +496,17 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
496
496
|
platforms?: {
|
|
497
497
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
498
498
|
id: string;
|
|
499
|
-
accountId: string;
|
|
500
499
|
itemId: string | number;
|
|
500
|
+
accountId: string;
|
|
501
501
|
platformId: string;
|
|
502
502
|
platformUrl: string;
|
|
503
503
|
platformPrice: number;
|
|
504
504
|
account?: {
|
|
505
505
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
506
|
+
userId: string | number;
|
|
507
|
+
name: string;
|
|
506
508
|
platform: "VINTED" | "SHOPIFY";
|
|
507
509
|
accountId: string;
|
|
508
|
-
name: string;
|
|
509
|
-
userId: string | number;
|
|
510
510
|
} | null | undefined;
|
|
511
511
|
}[] | null | undefined;
|
|
512
512
|
}>;
|
|
@@ -518,46 +518,46 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
518
518
|
createdAt: z.ZodDate;
|
|
519
519
|
}, "strip", z.ZodTypeAny, {
|
|
520
520
|
id: string | number;
|
|
521
|
-
name: string;
|
|
522
521
|
createdAt: Date;
|
|
522
|
+
name: string;
|
|
523
523
|
isUserLabel: boolean;
|
|
524
524
|
userId?: string | number | null | undefined;
|
|
525
525
|
}, {
|
|
526
526
|
id: string | number;
|
|
527
|
-
name: string;
|
|
528
527
|
createdAt: Date;
|
|
528
|
+
name: string;
|
|
529
529
|
isUserLabel: boolean;
|
|
530
530
|
userId?: string | number | null | undefined;
|
|
531
531
|
}>, "many">;
|
|
532
532
|
}, "strip", z.ZodTypeAny, {
|
|
533
533
|
newUserLabels: {
|
|
534
534
|
id: string | number;
|
|
535
|
-
name: string;
|
|
536
535
|
createdAt: Date;
|
|
536
|
+
name: string;
|
|
537
537
|
isUserLabel: boolean;
|
|
538
538
|
userId?: string | number | null | undefined;
|
|
539
539
|
}[];
|
|
540
540
|
item: {
|
|
541
541
|
id: string | number;
|
|
542
|
-
name: string;
|
|
543
542
|
userId: string | number;
|
|
544
543
|
createdAt: Date;
|
|
544
|
+
name: string;
|
|
545
545
|
updatedAt: Date;
|
|
546
546
|
sold: boolean;
|
|
547
547
|
description?: string | null | undefined;
|
|
548
|
+
customerId?: string | number | null | undefined;
|
|
548
549
|
colorIds?: number[] | null | undefined;
|
|
549
550
|
packageSizeId?: number | null | undefined;
|
|
550
551
|
sizeId?: number | null | undefined;
|
|
551
|
-
customerId?: string | number | null | undefined;
|
|
552
552
|
files?: {
|
|
553
|
-
itemId: string | number;
|
|
554
553
|
fileId: string;
|
|
554
|
+
itemId: string | number;
|
|
555
555
|
file?: {
|
|
556
556
|
path: string;
|
|
557
557
|
id: string;
|
|
558
558
|
userId: string | number;
|
|
559
|
-
createdAt: Date;
|
|
560
559
|
signedUrl: string;
|
|
560
|
+
createdAt: Date;
|
|
561
561
|
} | null | undefined;
|
|
562
562
|
index?: number | null | undefined;
|
|
563
563
|
}[] | null | undefined;
|
|
@@ -576,16 +576,16 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
576
576
|
value: number;
|
|
577
577
|
type: string;
|
|
578
578
|
id: string | number;
|
|
579
|
-
name: string;
|
|
580
579
|
userId: string | number;
|
|
581
580
|
createdAt: Date;
|
|
582
|
-
|
|
581
|
+
name: string;
|
|
583
582
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
584
583
|
startDate: Date;
|
|
585
584
|
active: boolean;
|
|
585
|
+
updatedAt: Date;
|
|
586
586
|
description?: string | null | undefined;
|
|
587
|
-
itemId?: string | number | null | undefined;
|
|
588
587
|
endDate?: Date | null | undefined;
|
|
588
|
+
itemId?: string | number | null | undefined;
|
|
589
589
|
parentFeeId?: string | number | null | undefined;
|
|
590
590
|
}[] | null | undefined;
|
|
591
591
|
feesSum?: number | null | undefined;
|
|
@@ -594,8 +594,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
594
594
|
labelId: string | number;
|
|
595
595
|
label?: {
|
|
596
596
|
id: string | number;
|
|
597
|
-
name: string;
|
|
598
597
|
createdAt: Date;
|
|
598
|
+
name: string;
|
|
599
599
|
isUserLabel: boolean;
|
|
600
600
|
userId?: string | number | null | undefined;
|
|
601
601
|
} | null | undefined;
|
|
@@ -633,49 +633,49 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
633
633
|
platforms?: {
|
|
634
634
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
635
635
|
id: string;
|
|
636
|
-
accountId: string;
|
|
637
636
|
itemId: string | number;
|
|
637
|
+
accountId: string;
|
|
638
638
|
platformId: string;
|
|
639
639
|
platformUrl: string;
|
|
640
640
|
platformPrice: number;
|
|
641
641
|
account?: {
|
|
642
642
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
643
|
+
userId: string | number;
|
|
644
|
+
name: string;
|
|
643
645
|
platform: "VINTED" | "SHOPIFY";
|
|
644
646
|
accountId: string;
|
|
645
|
-
name: string;
|
|
646
|
-
userId: string | number;
|
|
647
647
|
} | null | undefined;
|
|
648
648
|
}[] | null | undefined;
|
|
649
649
|
};
|
|
650
650
|
}, {
|
|
651
651
|
newUserLabels: {
|
|
652
652
|
id: string | number;
|
|
653
|
-
name: string;
|
|
654
653
|
createdAt: Date;
|
|
654
|
+
name: string;
|
|
655
655
|
isUserLabel: boolean;
|
|
656
656
|
userId?: string | number | null | undefined;
|
|
657
657
|
}[];
|
|
658
658
|
item: {
|
|
659
659
|
id: string | number;
|
|
660
|
-
name: string;
|
|
661
660
|
userId: string | number;
|
|
662
661
|
createdAt: Date;
|
|
662
|
+
name: string;
|
|
663
663
|
updatedAt: Date;
|
|
664
664
|
sold: boolean;
|
|
665
665
|
description?: string | null | undefined;
|
|
666
|
+
customerId?: string | number | null | undefined;
|
|
666
667
|
colorIds?: number[] | null | undefined;
|
|
667
668
|
packageSizeId?: number | null | undefined;
|
|
668
669
|
sizeId?: number | null | undefined;
|
|
669
|
-
customerId?: string | number | null | undefined;
|
|
670
670
|
files?: {
|
|
671
|
-
itemId: string | number;
|
|
672
671
|
fileId: string;
|
|
672
|
+
itemId: string | number;
|
|
673
673
|
file?: {
|
|
674
674
|
path: string;
|
|
675
675
|
id: string;
|
|
676
676
|
userId: string | number;
|
|
677
|
-
createdAt: Date;
|
|
678
677
|
signedUrl: string;
|
|
678
|
+
createdAt: Date;
|
|
679
679
|
} | null | undefined;
|
|
680
680
|
index?: number | null | undefined;
|
|
681
681
|
}[] | null | undefined;
|
|
@@ -694,16 +694,16 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
694
694
|
value: number;
|
|
695
695
|
type: string;
|
|
696
696
|
id: string | number;
|
|
697
|
-
name: string;
|
|
698
697
|
userId: string | number;
|
|
699
698
|
createdAt: Date;
|
|
700
|
-
|
|
699
|
+
name: string;
|
|
701
700
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
702
701
|
startDate: Date;
|
|
703
702
|
active: boolean;
|
|
703
|
+
updatedAt: Date;
|
|
704
704
|
description?: string | null | undefined;
|
|
705
|
-
itemId?: string | number | null | undefined;
|
|
706
705
|
endDate?: Date | null | undefined;
|
|
706
|
+
itemId?: string | number | null | undefined;
|
|
707
707
|
parentFeeId?: string | number | null | undefined;
|
|
708
708
|
}[] | null | undefined;
|
|
709
709
|
feesSum?: number | null | undefined;
|
|
@@ -712,8 +712,8 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
712
712
|
labelId: string | number;
|
|
713
713
|
label?: {
|
|
714
714
|
id: string | number;
|
|
715
|
-
name: string;
|
|
716
715
|
createdAt: Date;
|
|
716
|
+
name: string;
|
|
717
717
|
isUserLabel: boolean;
|
|
718
718
|
userId?: string | number | null | undefined;
|
|
719
719
|
} | null | undefined;
|
|
@@ -751,17 +751,17 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
751
751
|
platforms?: {
|
|
752
752
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
753
753
|
id: string;
|
|
754
|
-
accountId: string;
|
|
755
754
|
itemId: string | number;
|
|
755
|
+
accountId: string;
|
|
756
756
|
platformId: string;
|
|
757
757
|
platformUrl: string;
|
|
758
758
|
platformPrice: number;
|
|
759
759
|
account?: {
|
|
760
760
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
761
|
+
userId: string | number;
|
|
762
|
+
name: string;
|
|
761
763
|
platform: "VINTED" | "SHOPIFY";
|
|
762
764
|
accountId: string;
|
|
763
|
-
name: string;
|
|
764
|
-
userId: string | number;
|
|
765
765
|
} | null | undefined;
|
|
766
766
|
}[] | null | undefined;
|
|
767
767
|
};
|
|
@@ -13,35 +13,35 @@ export declare const ItemFileSchema: z.ZodObject<{
|
|
|
13
13
|
path: string;
|
|
14
14
|
id: string;
|
|
15
15
|
userId: string | number;
|
|
16
|
-
createdAt: Date;
|
|
17
16
|
signedUrl: string;
|
|
17
|
+
createdAt: Date;
|
|
18
18
|
}, {
|
|
19
19
|
path: string;
|
|
20
20
|
id: string;
|
|
21
21
|
userId: string | number;
|
|
22
|
-
createdAt: Date;
|
|
23
22
|
signedUrl: string;
|
|
23
|
+
createdAt: Date;
|
|
24
24
|
}>>>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
itemId: string | number;
|
|
27
26
|
fileId: string;
|
|
27
|
+
itemId: string | number;
|
|
28
28
|
file?: {
|
|
29
29
|
path: string;
|
|
30
30
|
id: string;
|
|
31
31
|
userId: string | number;
|
|
32
|
-
createdAt: Date;
|
|
33
32
|
signedUrl: string;
|
|
33
|
+
createdAt: Date;
|
|
34
34
|
} | null | undefined;
|
|
35
35
|
index?: number | null | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
itemId: string | number;
|
|
38
37
|
fileId: string;
|
|
38
|
+
itemId: string | number;
|
|
39
39
|
file?: {
|
|
40
40
|
path: string;
|
|
41
41
|
id: string;
|
|
42
42
|
userId: string | number;
|
|
43
|
-
createdAt: Date;
|
|
44
43
|
signedUrl: string;
|
|
44
|
+
createdAt: Date;
|
|
45
45
|
} | null | undefined;
|
|
46
46
|
index?: number | null | undefined;
|
|
47
47
|
}>;
|
|
@@ -10,14 +10,14 @@ export declare const ItemLabelSchema: z.ZodObject<{
|
|
|
10
10
|
createdAt: z.ZodDate;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
id: string | number;
|
|
13
|
-
name: string;
|
|
14
13
|
createdAt: Date;
|
|
14
|
+
name: string;
|
|
15
15
|
isUserLabel: boolean;
|
|
16
16
|
userId?: string | number | null | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
id: string | number;
|
|
19
|
-
name: string;
|
|
20
19
|
createdAt: Date;
|
|
20
|
+
name: string;
|
|
21
21
|
isUserLabel: boolean;
|
|
22
22
|
userId?: string | number | null | undefined;
|
|
23
23
|
}>>>;
|
|
@@ -26,8 +26,8 @@ export declare const ItemLabelSchema: z.ZodObject<{
|
|
|
26
26
|
labelId: string | number;
|
|
27
27
|
label?: {
|
|
28
28
|
id: string | number;
|
|
29
|
-
name: string;
|
|
30
29
|
createdAt: Date;
|
|
30
|
+
name: string;
|
|
31
31
|
isUserLabel: boolean;
|
|
32
32
|
userId?: string | number | null | undefined;
|
|
33
33
|
} | null | undefined;
|
|
@@ -36,8 +36,8 @@ export declare const ItemLabelSchema: z.ZodObject<{
|
|
|
36
36
|
labelId: string | number;
|
|
37
37
|
label?: {
|
|
38
38
|
id: string | number;
|
|
39
|
-
name: string;
|
|
40
39
|
createdAt: Date;
|
|
40
|
+
name: string;
|
|
41
41
|
isUserLabel: boolean;
|
|
42
42
|
userId?: string | number | null | undefined;
|
|
43
43
|
} | null | undefined;
|
|
@@ -15,46 +15,46 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
15
15
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
17
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
18
|
+
userId: string | number;
|
|
19
|
+
name: string;
|
|
18
20
|
platform: "VINTED" | "SHOPIFY";
|
|
19
21
|
accountId: string;
|
|
20
|
-
name: string;
|
|
21
|
-
userId: string | number;
|
|
22
22
|
}, {
|
|
23
23
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
24
|
+
userId: string | number;
|
|
25
|
+
name: string;
|
|
24
26
|
platform: "VINTED" | "SHOPIFY";
|
|
25
27
|
accountId: string;
|
|
26
|
-
name: string;
|
|
27
|
-
userId: string | number;
|
|
28
28
|
}>>>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
30
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
31
31
|
id: string;
|
|
32
|
-
accountId: string;
|
|
33
32
|
itemId: string | number;
|
|
33
|
+
accountId: string;
|
|
34
34
|
platformId: string;
|
|
35
35
|
platformUrl: string;
|
|
36
36
|
platformPrice: number;
|
|
37
37
|
account?: {
|
|
38
38
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
39
|
+
userId: string | number;
|
|
40
|
+
name: string;
|
|
39
41
|
platform: "VINTED" | "SHOPIFY";
|
|
40
42
|
accountId: string;
|
|
41
|
-
name: string;
|
|
42
|
-
userId: string | number;
|
|
43
43
|
} | null | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
46
46
|
id: string;
|
|
47
|
-
accountId: string;
|
|
48
47
|
itemId: string | number;
|
|
48
|
+
accountId: string;
|
|
49
49
|
platformId: string;
|
|
50
50
|
platformUrl: string;
|
|
51
51
|
platformPrice: number;
|
|
52
52
|
account?: {
|
|
53
53
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
54
|
+
userId: string | number;
|
|
55
|
+
name: string;
|
|
54
56
|
platform: "VINTED" | "SHOPIFY";
|
|
55
57
|
accountId: string;
|
|
56
|
-
name: string;
|
|
57
|
-
userId: string | number;
|
|
58
58
|
} | null | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
export type ItemOnPlatform = z.infer<typeof ItemOnPlatformSchema>;
|