controlresell 2.0.1 → 2.0.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.
- package/package.json +2 -2
- package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -3
- package/src/com/controlresell/models/catalogs/Catalog.js +1 -1
- package/src/com/controlresell/models/catalogs/Catalog.ts +1 -1
- package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -5
- package/src/com/controlresell/models/customers/contracts/ContractItem.d.ts +2 -2
- package/src/com/controlresell/models/customers/contracts/PrepareContractPayload.d.ts +4 -4
- package/src/com/controlresell/models/fees/Fee.d.ts +2 -2
- package/src/com/controlresell/models/items/CreatedItems.d.ts +37 -42
- package/src/com/controlresell/models/items/Item.d.ts +23 -26
- package/src/com/controlresell/models/items/Item.js +0 -1
- package/src/com/controlresell/models/items/Item.ts +0 -1
- package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -3
- package/src/com/controlresell/models/items/ItemSort.d.ts +1 -1
- package/src/com/controlresell/models/items/ItemSort.js +1 -1
- package/src/com/controlresell/models/items/ItemSort.ts +1 -1
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +43 -48
- package/src/com/controlresell/models/items/ItemsWithFilters.js +1 -1
- package/src/com/controlresell/models/items/ItemsWithFilters.ts +1 -1
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +37 -42
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +3 -3
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts +3 -3
- package/src/com/controlresell/models/items/history/ItemHistoryType.d.ts +1 -1
- package/src/com/controlresell/models/items/history/ItemHistoryType.js +1 -1
- package/src/com/controlresell/models/items/history/ItemHistoryType.ts +1 -1
- package/src/com/controlresell/models/items/labels/ItemLabel.d.ts +4 -4
- package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +4 -4
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +33 -38
- 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/orders/CreateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +11 -11
- package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +6 -6
- package/src/com/controlresell/models/users/UpdateUserPayload.d.ts +6 -0
- package/src/com/controlresell/models/users/UpdateUserPayload.js +2 -0
- package/src/com/controlresell/models/users/UpdateUserPayload.ts +2 -0
- package/src/com/controlresell/models/users/User.d.ts +3 -0
- package/src/com/controlresell/models/users/User.js +2 -1
- package/src/com/controlresell/models/users/User.ts +2 -1
- package/src/com/controlresell/models/users/fields/Field.d.ts +2 -2
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +4 -4
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"typescript": "^5.8.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"controlresell-connector": "^0.0.
|
|
20
|
+
"controlresell-connector": "^0.0.25",
|
|
21
21
|
"zod": "^3.24.2",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CatalogSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodNumber;
|
|
4
|
-
sizeGroupIds: z.ZodArray<z.ZodNumber, "many"
|
|
4
|
+
sizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
5
5
|
title: z.ZodString;
|
|
6
6
|
disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
id: number;
|
|
9
|
-
sizeGroupIds: number[];
|
|
10
9
|
title: string;
|
|
10
|
+
sizeGroupIds?: number[] | null | undefined;
|
|
11
11
|
disabledFields?: string[] | null | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
id: number;
|
|
14
|
-
sizeGroupIds: number[];
|
|
15
14
|
title: string;
|
|
15
|
+
sizeGroupIds?: number[] | null | undefined;
|
|
16
16
|
disabledFields?: string[] | null | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type Catalog = z.infer<typeof CatalogSchema>;
|
|
@@ -4,7 +4,7 @@ exports.CatalogSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.CatalogSchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.number(),
|
|
7
|
-
sizeGroupIds: zod_1.z.array(zod_1.z.number()),
|
|
7
|
+
sizeGroupIds: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
8
8
|
title: zod_1.z.string(),
|
|
9
9
|
disabledFields: zod_1.z.array(zod_1.z.string()).nullish()
|
|
10
10
|
});
|
|
@@ -2,32 +2,32 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const CatalogRootSchema: z.ZodObject<{
|
|
3
3
|
catalogs: z.ZodArray<z.ZodObject<{
|
|
4
4
|
id: z.ZodNumber;
|
|
5
|
-
sizeGroupIds: z.ZodArray<z.ZodNumber, "many"
|
|
5
|
+
sizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
6
6
|
title: z.ZodString;
|
|
7
7
|
disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
id: number;
|
|
10
|
-
sizeGroupIds: number[];
|
|
11
10
|
title: string;
|
|
11
|
+
sizeGroupIds?: number[] | null | undefined;
|
|
12
12
|
disabledFields?: string[] | null | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
id: number;
|
|
15
|
-
sizeGroupIds: number[];
|
|
16
15
|
title: string;
|
|
16
|
+
sizeGroupIds?: number[] | null | undefined;
|
|
17
17
|
disabledFields?: string[] | null | undefined;
|
|
18
18
|
}>, "many">;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
catalogs: {
|
|
21
21
|
id: number;
|
|
22
|
-
sizeGroupIds: number[];
|
|
23
22
|
title: string;
|
|
23
|
+
sizeGroupIds?: number[] | null | undefined;
|
|
24
24
|
disabledFields?: string[] | null | undefined;
|
|
25
25
|
}[];
|
|
26
26
|
}, {
|
|
27
27
|
catalogs: {
|
|
28
28
|
id: number;
|
|
29
|
-
sizeGroupIds: number[];
|
|
30
29
|
title: string;
|
|
30
|
+
sizeGroupIds?: number[] | null | undefined;
|
|
31
31
|
disabledFields?: string[] | null | undefined;
|
|
32
32
|
}[];
|
|
33
33
|
}>;
|
|
@@ -3,10 +3,10 @@ export declare const ContractItemSchema: z.ZodObject<{
|
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
price: z.ZodNumber;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
price: number;
|
|
7
6
|
name: string;
|
|
8
|
-
}, {
|
|
9
7
|
price: number;
|
|
8
|
+
}, {
|
|
10
9
|
name: string;
|
|
10
|
+
price: number;
|
|
11
11
|
}>;
|
|
12
12
|
export type ContractItem = z.infer<typeof ContractItemSchema>;
|
|
@@ -5,23 +5,23 @@ export declare const PrepareContractPayloadSchema: z.ZodObject<{
|
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
price: z.ZodNumber;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
price: number;
|
|
9
8
|
name: string;
|
|
10
|
-
}, {
|
|
11
9
|
price: number;
|
|
10
|
+
}, {
|
|
12
11
|
name: string;
|
|
12
|
+
price: number;
|
|
13
13
|
}>, "many">;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
shopItem: string;
|
|
16
16
|
items: {
|
|
17
|
-
price: number;
|
|
18
17
|
name: string;
|
|
18
|
+
price: number;
|
|
19
19
|
}[];
|
|
20
20
|
}, {
|
|
21
21
|
shopItem: string;
|
|
22
22
|
items: {
|
|
23
|
-
price: number;
|
|
24
23
|
name: string;
|
|
24
|
+
price: number;
|
|
25
25
|
}[];
|
|
26
26
|
}>;
|
|
27
27
|
export type PrepareContractPayload = z.infer<typeof PrepareContractPayloadSchema>;
|
|
@@ -18,10 +18,10 @@ export declare const FeeSchema: z.ZodObject<{
|
|
|
18
18
|
value: number;
|
|
19
19
|
type: string;
|
|
20
20
|
id: string | number;
|
|
21
|
+
name: string;
|
|
21
22
|
userId: string | number;
|
|
22
23
|
createdAt: Date;
|
|
23
24
|
updatedAt: Date;
|
|
24
|
-
name: string;
|
|
25
25
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
26
26
|
startDate: Date;
|
|
27
27
|
active: boolean;
|
|
@@ -33,10 +33,10 @@ export declare const FeeSchema: z.ZodObject<{
|
|
|
33
33
|
value: number;
|
|
34
34
|
type: string;
|
|
35
35
|
id: string | number;
|
|
36
|
+
name: string;
|
|
36
37
|
userId: string | number;
|
|
37
38
|
createdAt: Date;
|
|
38
39
|
updatedAt: Date;
|
|
39
|
-
name: string;
|
|
40
40
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
41
41
|
startDate: Date;
|
|
42
42
|
active: boolean;
|
|
@@ -5,7 +5,6 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
5
5
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
images: z.ZodArray<z.ZodString, "many">;
|
|
9
8
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
9
|
fileId: z.ZodString;
|
|
11
10
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -84,10 +83,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
84
83
|
value: number;
|
|
85
84
|
type: string;
|
|
86
85
|
id: string | number;
|
|
86
|
+
name: string;
|
|
87
87
|
userId: string | number;
|
|
88
88
|
createdAt: Date;
|
|
89
89
|
updatedAt: Date;
|
|
90
|
-
name: string;
|
|
91
90
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
92
91
|
startDate: Date;
|
|
93
92
|
active: boolean;
|
|
@@ -99,10 +98,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
99
98
|
value: number;
|
|
100
99
|
type: string;
|
|
101
100
|
id: string | number;
|
|
101
|
+
name: string;
|
|
102
102
|
userId: string | number;
|
|
103
103
|
createdAt: Date;
|
|
104
104
|
updatedAt: Date;
|
|
105
|
-
name: string;
|
|
106
105
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
107
106
|
startDate: Date;
|
|
108
107
|
active: boolean;
|
|
@@ -123,14 +122,14 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
123
122
|
createdAt: z.ZodDate;
|
|
124
123
|
}, "strip", z.ZodTypeAny, {
|
|
125
124
|
id: string | number;
|
|
126
|
-
createdAt: Date;
|
|
127
125
|
name: string;
|
|
126
|
+
createdAt: Date;
|
|
128
127
|
isUserLabel: boolean;
|
|
129
128
|
userId?: string | number | null | undefined;
|
|
130
129
|
}, {
|
|
131
130
|
id: string | number;
|
|
132
|
-
createdAt: Date;
|
|
133
131
|
name: string;
|
|
132
|
+
createdAt: Date;
|
|
134
133
|
isUserLabel: boolean;
|
|
135
134
|
userId?: string | number | null | undefined;
|
|
136
135
|
}>>>;
|
|
@@ -139,8 +138,8 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
139
138
|
labelId: string | number;
|
|
140
139
|
label?: {
|
|
141
140
|
id: string | number;
|
|
142
|
-
createdAt: Date;
|
|
143
141
|
name: string;
|
|
142
|
+
createdAt: Date;
|
|
144
143
|
isUserLabel: boolean;
|
|
145
144
|
userId?: string | number | null | undefined;
|
|
146
145
|
} | null | undefined;
|
|
@@ -149,8 +148,8 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
149
148
|
labelId: string | number;
|
|
150
149
|
label?: {
|
|
151
150
|
id: string | number;
|
|
152
|
-
createdAt: Date;
|
|
153
151
|
name: string;
|
|
152
|
+
createdAt: Date;
|
|
154
153
|
isUserLabel: boolean;
|
|
155
154
|
userId?: string | number | null | undefined;
|
|
156
155
|
} | null | undefined;
|
|
@@ -216,17 +215,17 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
216
215
|
lastHistory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
217
216
|
id: z.ZodString;
|
|
218
217
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
219
|
-
type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT"]>;
|
|
218
|
+
type: z.ZodEnum<["IMPORTED", "PUBLISHED", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>;
|
|
220
219
|
data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
221
220
|
createdAt: z.ZodDate;
|
|
222
221
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
|
|
222
|
+
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
224
223
|
id: string;
|
|
225
224
|
createdAt: Date;
|
|
226
225
|
itemId: string | number;
|
|
227
226
|
data?: string | null | undefined;
|
|
228
227
|
}, {
|
|
229
|
-
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
|
|
228
|
+
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
230
229
|
id: string;
|
|
231
230
|
createdAt: Date;
|
|
232
231
|
itemId: string | number;
|
|
@@ -250,14 +249,14 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
250
249
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
251
250
|
platform: "VINTED" | "SHOPIFY";
|
|
252
251
|
accountId: string;
|
|
253
|
-
userId: string | number;
|
|
254
252
|
name: string;
|
|
253
|
+
userId: string | number;
|
|
255
254
|
}, {
|
|
256
255
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
257
256
|
platform: "VINTED" | "SHOPIFY";
|
|
258
257
|
accountId: string;
|
|
259
|
-
userId: string | number;
|
|
260
258
|
name: string;
|
|
259
|
+
userId: string | number;
|
|
261
260
|
}>>>;
|
|
262
261
|
}, "strip", z.ZodTypeAny, {
|
|
263
262
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
@@ -271,8 +270,8 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
271
270
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
272
271
|
platform: "VINTED" | "SHOPIFY";
|
|
273
272
|
accountId: string;
|
|
274
|
-
userId: string | number;
|
|
275
273
|
name: string;
|
|
274
|
+
userId: string | number;
|
|
276
275
|
} | null | undefined;
|
|
277
276
|
}, {
|
|
278
277
|
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
@@ -286,19 +285,18 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
286
285
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
287
286
|
platform: "VINTED" | "SHOPIFY";
|
|
288
287
|
accountId: string;
|
|
289
|
-
userId: string | number;
|
|
290
288
|
name: string;
|
|
289
|
+
userId: string | number;
|
|
291
290
|
} | null | undefined;
|
|
292
291
|
}>, "many">>>;
|
|
293
292
|
createdAt: z.ZodDate;
|
|
294
293
|
updatedAt: z.ZodDate;
|
|
295
294
|
}, "strip", z.ZodTypeAny, {
|
|
296
295
|
id: string | number;
|
|
296
|
+
name: string;
|
|
297
297
|
userId: string | number;
|
|
298
298
|
createdAt: Date;
|
|
299
299
|
updatedAt: Date;
|
|
300
|
-
name: string;
|
|
301
|
-
images: string[];
|
|
302
300
|
sold: boolean;
|
|
303
301
|
description?: string | null | undefined;
|
|
304
302
|
colorIds?: number[] | null | undefined;
|
|
@@ -332,10 +330,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
332
330
|
value: number;
|
|
333
331
|
type: string;
|
|
334
332
|
id: string | number;
|
|
333
|
+
name: string;
|
|
335
334
|
userId: string | number;
|
|
336
335
|
createdAt: Date;
|
|
337
336
|
updatedAt: Date;
|
|
338
|
-
name: string;
|
|
339
337
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
340
338
|
startDate: Date;
|
|
341
339
|
active: boolean;
|
|
@@ -350,8 +348,8 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
350
348
|
labelId: string | number;
|
|
351
349
|
label?: {
|
|
352
350
|
id: string | number;
|
|
353
|
-
createdAt: Date;
|
|
354
351
|
name: string;
|
|
352
|
+
createdAt: Date;
|
|
355
353
|
isUserLabel: boolean;
|
|
356
354
|
userId?: string | number | null | undefined;
|
|
357
355
|
} | null | undefined;
|
|
@@ -380,7 +378,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
380
378
|
fieldId: string | number;
|
|
381
379
|
}[] | null | undefined;
|
|
382
380
|
lastHistory?: {
|
|
383
|
-
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
|
|
381
|
+
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
384
382
|
id: string;
|
|
385
383
|
createdAt: Date;
|
|
386
384
|
itemId: string | number;
|
|
@@ -398,17 +396,16 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
398
396
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
399
397
|
platform: "VINTED" | "SHOPIFY";
|
|
400
398
|
accountId: string;
|
|
401
|
-
userId: string | number;
|
|
402
399
|
name: string;
|
|
400
|
+
userId: string | number;
|
|
403
401
|
} | null | undefined;
|
|
404
402
|
}[] | null | undefined;
|
|
405
403
|
}, {
|
|
406
404
|
id: string | number;
|
|
405
|
+
name: string;
|
|
407
406
|
userId: string | number;
|
|
408
407
|
createdAt: Date;
|
|
409
408
|
updatedAt: Date;
|
|
410
|
-
name: string;
|
|
411
|
-
images: string[];
|
|
412
409
|
sold: boolean;
|
|
413
410
|
description?: string | null | undefined;
|
|
414
411
|
colorIds?: number[] | null | undefined;
|
|
@@ -442,10 +439,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
442
439
|
value: number;
|
|
443
440
|
type: string;
|
|
444
441
|
id: string | number;
|
|
442
|
+
name: string;
|
|
445
443
|
userId: string | number;
|
|
446
444
|
createdAt: Date;
|
|
447
445
|
updatedAt: Date;
|
|
448
|
-
name: string;
|
|
449
446
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
450
447
|
startDate: Date;
|
|
451
448
|
active: boolean;
|
|
@@ -460,8 +457,8 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
460
457
|
labelId: string | number;
|
|
461
458
|
label?: {
|
|
462
459
|
id: string | number;
|
|
463
|
-
createdAt: Date;
|
|
464
460
|
name: string;
|
|
461
|
+
createdAt: Date;
|
|
465
462
|
isUserLabel: boolean;
|
|
466
463
|
userId?: string | number | null | undefined;
|
|
467
464
|
} | null | undefined;
|
|
@@ -490,7 +487,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
490
487
|
fieldId: string | number;
|
|
491
488
|
}[] | null | undefined;
|
|
492
489
|
lastHistory?: {
|
|
493
|
-
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
|
|
490
|
+
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
494
491
|
id: string;
|
|
495
492
|
createdAt: Date;
|
|
496
493
|
itemId: string | number;
|
|
@@ -508,8 +505,8 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
508
505
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
509
506
|
platform: "VINTED" | "SHOPIFY";
|
|
510
507
|
accountId: string;
|
|
511
|
-
userId: string | number;
|
|
512
508
|
name: string;
|
|
509
|
+
userId: string | number;
|
|
513
510
|
} | null | undefined;
|
|
514
511
|
}[] | null | undefined;
|
|
515
512
|
}>, "many">;
|
|
@@ -521,25 +518,24 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
521
518
|
createdAt: z.ZodDate;
|
|
522
519
|
}, "strip", z.ZodTypeAny, {
|
|
523
520
|
id: string | number;
|
|
524
|
-
createdAt: Date;
|
|
525
521
|
name: string;
|
|
522
|
+
createdAt: Date;
|
|
526
523
|
isUserLabel: boolean;
|
|
527
524
|
userId?: string | number | null | undefined;
|
|
528
525
|
}, {
|
|
529
526
|
id: string | number;
|
|
530
|
-
createdAt: Date;
|
|
531
527
|
name: string;
|
|
528
|
+
createdAt: Date;
|
|
532
529
|
isUserLabel: boolean;
|
|
533
530
|
userId?: string | number | null | undefined;
|
|
534
531
|
}>, "many">;
|
|
535
532
|
}, "strip", z.ZodTypeAny, {
|
|
536
533
|
items: {
|
|
537
534
|
id: string | number;
|
|
535
|
+
name: string;
|
|
538
536
|
userId: string | number;
|
|
539
537
|
createdAt: Date;
|
|
540
538
|
updatedAt: Date;
|
|
541
|
-
name: string;
|
|
542
|
-
images: string[];
|
|
543
539
|
sold: boolean;
|
|
544
540
|
description?: string | null | undefined;
|
|
545
541
|
colorIds?: number[] | null | undefined;
|
|
@@ -573,10 +569,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
573
569
|
value: number;
|
|
574
570
|
type: string;
|
|
575
571
|
id: string | number;
|
|
572
|
+
name: string;
|
|
576
573
|
userId: string | number;
|
|
577
574
|
createdAt: Date;
|
|
578
575
|
updatedAt: Date;
|
|
579
|
-
name: string;
|
|
580
576
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
581
577
|
startDate: Date;
|
|
582
578
|
active: boolean;
|
|
@@ -591,8 +587,8 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
591
587
|
labelId: string | number;
|
|
592
588
|
label?: {
|
|
593
589
|
id: string | number;
|
|
594
|
-
createdAt: Date;
|
|
595
590
|
name: string;
|
|
591
|
+
createdAt: Date;
|
|
596
592
|
isUserLabel: boolean;
|
|
597
593
|
userId?: string | number | null | undefined;
|
|
598
594
|
} | null | undefined;
|
|
@@ -621,7 +617,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
621
617
|
fieldId: string | number;
|
|
622
618
|
}[] | null | undefined;
|
|
623
619
|
lastHistory?: {
|
|
624
|
-
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
|
|
620
|
+
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
625
621
|
id: string;
|
|
626
622
|
createdAt: Date;
|
|
627
623
|
itemId: string | number;
|
|
@@ -639,26 +635,25 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
639
635
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
640
636
|
platform: "VINTED" | "SHOPIFY";
|
|
641
637
|
accountId: string;
|
|
642
|
-
userId: string | number;
|
|
643
638
|
name: string;
|
|
639
|
+
userId: string | number;
|
|
644
640
|
} | null | undefined;
|
|
645
641
|
}[] | null | undefined;
|
|
646
642
|
}[];
|
|
647
643
|
newUserLabels: {
|
|
648
644
|
id: string | number;
|
|
649
|
-
createdAt: Date;
|
|
650
645
|
name: string;
|
|
646
|
+
createdAt: Date;
|
|
651
647
|
isUserLabel: boolean;
|
|
652
648
|
userId?: string | number | null | undefined;
|
|
653
649
|
}[];
|
|
654
650
|
}, {
|
|
655
651
|
items: {
|
|
656
652
|
id: string | number;
|
|
653
|
+
name: string;
|
|
657
654
|
userId: string | number;
|
|
658
655
|
createdAt: Date;
|
|
659
656
|
updatedAt: Date;
|
|
660
|
-
name: string;
|
|
661
|
-
images: string[];
|
|
662
657
|
sold: boolean;
|
|
663
658
|
description?: string | null | undefined;
|
|
664
659
|
colorIds?: number[] | null | undefined;
|
|
@@ -692,10 +687,10 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
692
687
|
value: number;
|
|
693
688
|
type: string;
|
|
694
689
|
id: string | number;
|
|
690
|
+
name: string;
|
|
695
691
|
userId: string | number;
|
|
696
692
|
createdAt: Date;
|
|
697
693
|
updatedAt: Date;
|
|
698
|
-
name: string;
|
|
699
694
|
recurrence: "UNIQUE" | "MONTHLY" | "YEARLY";
|
|
700
695
|
startDate: Date;
|
|
701
696
|
active: boolean;
|
|
@@ -710,8 +705,8 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
710
705
|
labelId: string | number;
|
|
711
706
|
label?: {
|
|
712
707
|
id: string | number;
|
|
713
|
-
createdAt: Date;
|
|
714
708
|
name: string;
|
|
709
|
+
createdAt: Date;
|
|
715
710
|
isUserLabel: boolean;
|
|
716
711
|
userId?: string | number | null | undefined;
|
|
717
712
|
} | null | undefined;
|
|
@@ -740,7 +735,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
740
735
|
fieldId: string | number;
|
|
741
736
|
}[] | null | undefined;
|
|
742
737
|
lastHistory?: {
|
|
743
|
-
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT";
|
|
738
|
+
type: "IMPORTED" | "PUBLISHED" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
744
739
|
id: string;
|
|
745
740
|
createdAt: Date;
|
|
746
741
|
itemId: string | number;
|
|
@@ -758,15 +753,15 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
758
753
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
759
754
|
platform: "VINTED" | "SHOPIFY";
|
|
760
755
|
accountId: string;
|
|
761
|
-
userId: string | number;
|
|
762
756
|
name: string;
|
|
757
|
+
userId: string | number;
|
|
763
758
|
} | null | undefined;
|
|
764
759
|
}[] | null | undefined;
|
|
765
760
|
}[];
|
|
766
761
|
newUserLabels: {
|
|
767
762
|
id: string | number;
|
|
768
|
-
createdAt: Date;
|
|
769
763
|
name: string;
|
|
764
|
+
createdAt: Date;
|
|
770
765
|
isUserLabel: boolean;
|
|
771
766
|
userId?: string | number | null | undefined;
|
|
772
767
|
}[];
|