controlresell 2.2.11 → 2.2.18
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 +1 -1
- package/src/com/controlresell/models/catalogs/Catalog.d.ts +3 -6
- package/src/com/controlresell/models/catalogs/Catalog.js +2 -3
- package/src/com/controlresell/models/catalogs/Catalog.ts +2 -3
- package/src/com/controlresell/models/catalogs/CatalogRoot.d.ts +5 -10
- package/src/com/controlresell/models/catalogs/SizeGroup.d.ts +0 -3
- package/src/com/controlresell/models/catalogs/SizeGroup.js +0 -1
- package/src/com/controlresell/models/catalogs/SizeGroup.ts +0 -1
- package/src/com/controlresell/models/catalogs/SizeRoot.d.ts +0 -5
- package/src/com/controlresell/models/items/CreatedItems.d.ts +9 -0
- package/src/com/controlresell/models/items/Item.d.ts +7 -0
- package/src/com/controlresell/models/items/ItemPayload.d.ts +0 -3
- package/src/com/controlresell/models/items/ItemPayload.js +0 -1
- package/src/com/controlresell/models/items/ItemPayload.ts +0 -1
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +9 -0
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +9 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +2 -2
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +4 -4
- package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +15 -0
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +21 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +4 -1
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +4 -1
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.d.ts +3 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.js +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageStatus.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +10 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +6 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +4 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +4 -0
- package/src/com/controlresell/models/platforms/favorites/Favorite.d.ts +26 -0
- package/src/com/controlresell/models/platforms/favorites/FavoriteOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +9 -0
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -0
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +7 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +20 -0
- package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +9 -0
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +7 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +20 -0
- package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +14 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +3435 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +3 -1
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +3 -1
- package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +5 -0
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +5 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.js +1 -0
- package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.ts +1 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +3 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.js +1 -0
- package/src/com/controlresell/models/users/platforms/UserOnPlatform.ts +1 -0
- package/src/index.d.ts +1 -2
- package/src/index.js +6 -8
- package/src/index.ts +1 -2
- package/src/com/controlresell/models/application/ControlResellEnvironment.d.ts +0 -3
- package/src/com/controlresell/models/application/ControlResellEnvironment.js +0 -7
- package/src/com/controlresell/models/application/ControlResellEnvironment.ts +0 -6
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +0 -3
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +0 -7
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +0 -6
package/package.json
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CatalogSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodNumber;
|
|
4
|
-
|
|
4
|
+
multipleSizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
5
5
|
title: z.ZodString;
|
|
6
|
-
disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
7
6
|
}, "strip", z.ZodTypeAny, {
|
|
8
7
|
id: number;
|
|
9
8
|
title: string;
|
|
10
|
-
|
|
11
|
-
disabledFields?: string[] | null | undefined;
|
|
9
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
12
10
|
}, {
|
|
13
11
|
id: number;
|
|
14
12
|
title: string;
|
|
15
|
-
|
|
16
|
-
disabledFields?: string[] | null | undefined;
|
|
13
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
17
14
|
}>;
|
|
18
15
|
export type Catalog = z.infer<typeof CatalogSchema>;
|
|
@@ -4,7 +4,6 @@ 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
|
-
|
|
8
|
-
title: zod_1.z.string()
|
|
9
|
-
disabledFields: zod_1.z.array(zod_1.z.string()).nullish()
|
|
7
|
+
multipleSizeGroupIds: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
8
|
+
title: zod_1.z.string()
|
|
10
9
|
});
|
|
@@ -2,8 +2,7 @@ import {z} from "zod"
|
|
|
2
2
|
|
|
3
3
|
export const CatalogSchema = z.object({
|
|
4
4
|
id: z.number(),
|
|
5
|
-
|
|
6
|
-
title: z.string()
|
|
7
|
-
disabledFields: z.array(z.string()).nullish()
|
|
5
|
+
multipleSizeGroupIds: z.array(z.number()).nullish(),
|
|
6
|
+
title: z.string()
|
|
8
7
|
})
|
|
9
8
|
export type Catalog = z.infer<typeof CatalogSchema>
|
|
@@ -2,33 +2,28 @@ 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
|
-
|
|
5
|
+
multipleSizeGroupIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
|
|
6
6
|
title: z.ZodString;
|
|
7
|
-
disabledFields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
8
7
|
}, "strip", z.ZodTypeAny, {
|
|
9
8
|
id: number;
|
|
10
9
|
title: string;
|
|
11
|
-
|
|
12
|
-
disabledFields?: string[] | null | undefined;
|
|
10
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
13
11
|
}, {
|
|
14
12
|
id: number;
|
|
15
13
|
title: string;
|
|
16
|
-
|
|
17
|
-
disabledFields?: string[] | null | undefined;
|
|
14
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
18
15
|
}>, "many">;
|
|
19
16
|
}, "strip", z.ZodTypeAny, {
|
|
20
17
|
catalogs: {
|
|
21
18
|
id: number;
|
|
22
19
|
title: string;
|
|
23
|
-
|
|
24
|
-
disabledFields?: string[] | null | undefined;
|
|
20
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
25
21
|
}[];
|
|
26
22
|
}, {
|
|
27
23
|
catalogs: {
|
|
28
24
|
id: number;
|
|
29
25
|
title: string;
|
|
30
|
-
|
|
31
|
-
disabledFields?: string[] | null | undefined;
|
|
26
|
+
multipleSizeGroupIds?: number[] | null | undefined;
|
|
32
27
|
}[];
|
|
33
28
|
}>;
|
|
34
29
|
export type CatalogRoot = z.infer<typeof CatalogRootSchema>;
|
|
@@ -15,11 +15,9 @@ export declare const SizeGroupSchema: z.ZodObject<{
|
|
|
15
15
|
title: string;
|
|
16
16
|
itemCount?: number | null | undefined;
|
|
17
17
|
}>, "many">>>;
|
|
18
|
-
title: z.ZodString;
|
|
19
18
|
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
19
|
}, "strip", z.ZodTypeAny, {
|
|
21
20
|
id: number;
|
|
22
|
-
title: string;
|
|
23
21
|
description: string;
|
|
24
22
|
itemCount?: number | null | undefined;
|
|
25
23
|
sizes?: {
|
|
@@ -29,7 +27,6 @@ export declare const SizeGroupSchema: z.ZodObject<{
|
|
|
29
27
|
}[] | null | undefined;
|
|
30
28
|
}, {
|
|
31
29
|
id: number;
|
|
32
|
-
title: string;
|
|
33
30
|
description: string;
|
|
34
31
|
itemCount?: number | null | undefined;
|
|
35
32
|
sizes?: {
|
|
@@ -16,11 +16,9 @@ export declare const SizeRootSchema: z.ZodObject<{
|
|
|
16
16
|
title: string;
|
|
17
17
|
itemCount?: number | null | undefined;
|
|
18
18
|
}>, "many">>>;
|
|
19
|
-
title: z.ZodString;
|
|
20
19
|
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
20
|
}, "strip", z.ZodTypeAny, {
|
|
22
21
|
id: number;
|
|
23
|
-
title: string;
|
|
24
22
|
description: string;
|
|
25
23
|
itemCount?: number | null | undefined;
|
|
26
24
|
sizes?: {
|
|
@@ -30,7 +28,6 @@ export declare const SizeRootSchema: z.ZodObject<{
|
|
|
30
28
|
}[] | null | undefined;
|
|
31
29
|
}, {
|
|
32
30
|
id: number;
|
|
33
|
-
title: string;
|
|
34
31
|
description: string;
|
|
35
32
|
itemCount?: number | null | undefined;
|
|
36
33
|
sizes?: {
|
|
@@ -42,7 +39,6 @@ export declare const SizeRootSchema: z.ZodObject<{
|
|
|
42
39
|
}, "strip", z.ZodTypeAny, {
|
|
43
40
|
sizeGroups: {
|
|
44
41
|
id: number;
|
|
45
|
-
title: string;
|
|
46
42
|
description: string;
|
|
47
43
|
itemCount?: number | null | undefined;
|
|
48
44
|
sizes?: {
|
|
@@ -54,7 +50,6 @@ export declare const SizeRootSchema: z.ZodObject<{
|
|
|
54
50
|
}, {
|
|
55
51
|
sizeGroups: {
|
|
56
52
|
id: number;
|
|
57
|
-
title: string;
|
|
58
53
|
description: string;
|
|
59
54
|
itemCount?: number | null | undefined;
|
|
60
55
|
sizes?: {
|
|
@@ -439,6 +439,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
439
439
|
accountId: z.ZodString;
|
|
440
440
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
441
441
|
name: z.ZodString;
|
|
442
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
442
443
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
443
444
|
}, "strip", z.ZodTypeAny, {
|
|
444
445
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
@@ -446,12 +447,14 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
446
447
|
name: string;
|
|
447
448
|
platform: "VINTED" | "SHOPIFY";
|
|
448
449
|
accountId: string;
|
|
450
|
+
locale?: string | null | undefined;
|
|
449
451
|
}, {
|
|
450
452
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
451
453
|
userId: string | number;
|
|
452
454
|
name: string;
|
|
453
455
|
platform: "VINTED" | "SHOPIFY";
|
|
454
456
|
accountId: string;
|
|
457
|
+
locale?: string | null | undefined;
|
|
455
458
|
}>>>;
|
|
456
459
|
}, "strip", z.ZodTypeAny, {
|
|
457
460
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -467,6 +470,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
467
470
|
name: string;
|
|
468
471
|
platform: "VINTED" | "SHOPIFY";
|
|
469
472
|
accountId: string;
|
|
473
|
+
locale?: string | null | undefined;
|
|
470
474
|
} | null | undefined;
|
|
471
475
|
}, {
|
|
472
476
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -482,6 +486,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
482
486
|
name: string;
|
|
483
487
|
platform: "VINTED" | "SHOPIFY";
|
|
484
488
|
accountId: string;
|
|
489
|
+
locale?: string | null | undefined;
|
|
485
490
|
} | null | undefined;
|
|
486
491
|
}>, "many">>>;
|
|
487
492
|
createdAt: z.ZodDate;
|
|
@@ -526,6 +531,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
526
531
|
name: string;
|
|
527
532
|
platform: "VINTED" | "SHOPIFY";
|
|
528
533
|
accountId: string;
|
|
534
|
+
locale?: string | null | undefined;
|
|
529
535
|
} | null | undefined;
|
|
530
536
|
}[] | null | undefined;
|
|
531
537
|
files?: {
|
|
@@ -668,6 +674,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
668
674
|
name: string;
|
|
669
675
|
platform: "VINTED" | "SHOPIFY";
|
|
670
676
|
accountId: string;
|
|
677
|
+
locale?: string | null | undefined;
|
|
671
678
|
} | null | undefined;
|
|
672
679
|
}[] | null | undefined;
|
|
673
680
|
files?: {
|
|
@@ -834,6 +841,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
834
841
|
name: string;
|
|
835
842
|
platform: "VINTED" | "SHOPIFY";
|
|
836
843
|
accountId: string;
|
|
844
|
+
locale?: string | null | undefined;
|
|
837
845
|
} | null | undefined;
|
|
838
846
|
}[] | null | undefined;
|
|
839
847
|
files?: {
|
|
@@ -986,6 +994,7 @@ export declare const CreatedItemsSchema: z.ZodObject<{
|
|
|
986
994
|
name: string;
|
|
987
995
|
platform: "VINTED" | "SHOPIFY";
|
|
988
996
|
accountId: string;
|
|
997
|
+
locale?: string | null | undefined;
|
|
989
998
|
} | null | undefined;
|
|
990
999
|
}[] | null | undefined;
|
|
991
1000
|
files?: {
|
|
@@ -438,6 +438,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
438
438
|
accountId: z.ZodString;
|
|
439
439
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
440
440
|
name: z.ZodString;
|
|
441
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
441
442
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
442
443
|
}, "strip", z.ZodTypeAny, {
|
|
443
444
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
@@ -445,12 +446,14 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
445
446
|
name: string;
|
|
446
447
|
platform: "VINTED" | "SHOPIFY";
|
|
447
448
|
accountId: string;
|
|
449
|
+
locale?: string | null | undefined;
|
|
448
450
|
}, {
|
|
449
451
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
450
452
|
userId: string | number;
|
|
451
453
|
name: string;
|
|
452
454
|
platform: "VINTED" | "SHOPIFY";
|
|
453
455
|
accountId: string;
|
|
456
|
+
locale?: string | null | undefined;
|
|
454
457
|
}>>>;
|
|
455
458
|
}, "strip", z.ZodTypeAny, {
|
|
456
459
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -466,6 +469,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
466
469
|
name: string;
|
|
467
470
|
platform: "VINTED" | "SHOPIFY";
|
|
468
471
|
accountId: string;
|
|
472
|
+
locale?: string | null | undefined;
|
|
469
473
|
} | null | undefined;
|
|
470
474
|
}, {
|
|
471
475
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -481,6 +485,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
481
485
|
name: string;
|
|
482
486
|
platform: "VINTED" | "SHOPIFY";
|
|
483
487
|
accountId: string;
|
|
488
|
+
locale?: string | null | undefined;
|
|
484
489
|
} | null | undefined;
|
|
485
490
|
}>, "many">>>;
|
|
486
491
|
createdAt: z.ZodDate;
|
|
@@ -525,6 +530,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
525
530
|
name: string;
|
|
526
531
|
platform: "VINTED" | "SHOPIFY";
|
|
527
532
|
accountId: string;
|
|
533
|
+
locale?: string | null | undefined;
|
|
528
534
|
} | null | undefined;
|
|
529
535
|
}[] | null | undefined;
|
|
530
536
|
files?: {
|
|
@@ -667,6 +673,7 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
667
673
|
name: string;
|
|
668
674
|
platform: "VINTED" | "SHOPIFY";
|
|
669
675
|
accountId: string;
|
|
676
|
+
locale?: string | null | undefined;
|
|
670
677
|
} | null | undefined;
|
|
671
678
|
}[] | null | undefined;
|
|
672
679
|
files?: {
|
|
@@ -8,7 +8,6 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
8
8
|
sex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
state: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
10
|
sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
-
sizeType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
11
|
purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
12
|
purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
14
13
|
purchasePlaceId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
@@ -68,7 +67,6 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
68
67
|
value: string;
|
|
69
68
|
fieldId: string | number;
|
|
70
69
|
}[] | null | undefined;
|
|
71
|
-
sizeType?: string | null | undefined;
|
|
72
70
|
quantity?: number | null | undefined;
|
|
73
71
|
batchId?: string | number | null | undefined;
|
|
74
72
|
}, {
|
|
@@ -101,7 +99,6 @@ export declare const ItemPayloadSchema: z.ZodObject<{
|
|
|
101
99
|
value: string;
|
|
102
100
|
fieldId: string | number;
|
|
103
101
|
}[] | null | undefined;
|
|
104
|
-
sizeType?: string | null | undefined;
|
|
105
102
|
quantity?: number | null | undefined;
|
|
106
103
|
batchId?: string | number | null | undefined;
|
|
107
104
|
}>;
|
|
@@ -13,7 +13,6 @@ exports.ItemPayloadSchema = zod_1.z.object({
|
|
|
13
13
|
sex: zod_1.z.string().nullish(),
|
|
14
14
|
state: zod_1.z.number().nullish(),
|
|
15
15
|
sizeId: zod_1.z.number().nullish(),
|
|
16
|
-
sizeType: zod_1.z.string().nullish(),
|
|
17
16
|
purchasePrice: zod_1.z.number().nullish(),
|
|
18
17
|
purchaseDate: zod_1.z.coerce.date().nullish(),
|
|
19
18
|
purchasePlaceId: zodable_idschema_1.IdSchema.nullish(),
|
|
@@ -11,7 +11,6 @@ export const ItemPayloadSchema = z.object({
|
|
|
11
11
|
sex: z.string().nullish(),
|
|
12
12
|
state: z.number().nullish(),
|
|
13
13
|
sizeId: z.number().nullish(),
|
|
14
|
-
sizeType: z.string().nullish(),
|
|
15
14
|
purchasePrice: z.number().nullish(),
|
|
16
15
|
purchaseDate: z.coerce.date().nullish(),
|
|
17
16
|
purchasePlaceId: IdSchema.nullish(),
|
|
@@ -441,6 +441,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
441
441
|
accountId: z.ZodString;
|
|
442
442
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
443
443
|
name: z.ZodString;
|
|
444
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
444
445
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
445
446
|
}, "strip", z.ZodTypeAny, {
|
|
446
447
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
@@ -448,12 +449,14 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
448
449
|
name: string;
|
|
449
450
|
platform: "VINTED" | "SHOPIFY";
|
|
450
451
|
accountId: string;
|
|
452
|
+
locale?: string | null | undefined;
|
|
451
453
|
}, {
|
|
452
454
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
453
455
|
userId: string | number;
|
|
454
456
|
name: string;
|
|
455
457
|
platform: "VINTED" | "SHOPIFY";
|
|
456
458
|
accountId: string;
|
|
459
|
+
locale?: string | null | undefined;
|
|
457
460
|
}>>>;
|
|
458
461
|
}, "strip", z.ZodTypeAny, {
|
|
459
462
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -469,6 +472,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
469
472
|
name: string;
|
|
470
473
|
platform: "VINTED" | "SHOPIFY";
|
|
471
474
|
accountId: string;
|
|
475
|
+
locale?: string | null | undefined;
|
|
472
476
|
} | null | undefined;
|
|
473
477
|
}, {
|
|
474
478
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -484,6 +488,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
484
488
|
name: string;
|
|
485
489
|
platform: "VINTED" | "SHOPIFY";
|
|
486
490
|
accountId: string;
|
|
491
|
+
locale?: string | null | undefined;
|
|
487
492
|
} | null | undefined;
|
|
488
493
|
}>, "many">>>;
|
|
489
494
|
createdAt: z.ZodDate;
|
|
@@ -528,6 +533,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
528
533
|
name: string;
|
|
529
534
|
platform: "VINTED" | "SHOPIFY";
|
|
530
535
|
accountId: string;
|
|
536
|
+
locale?: string | null | undefined;
|
|
531
537
|
} | null | undefined;
|
|
532
538
|
}[] | null | undefined;
|
|
533
539
|
files?: {
|
|
@@ -670,6 +676,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
670
676
|
name: string;
|
|
671
677
|
platform: "VINTED" | "SHOPIFY";
|
|
672
678
|
accountId: string;
|
|
679
|
+
locale?: string | null | undefined;
|
|
673
680
|
} | null | undefined;
|
|
674
681
|
}[] | null | undefined;
|
|
675
682
|
files?: {
|
|
@@ -818,6 +825,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
818
825
|
name: string;
|
|
819
826
|
platform: "VINTED" | "SHOPIFY";
|
|
820
827
|
accountId: string;
|
|
828
|
+
locale?: string | null | undefined;
|
|
821
829
|
} | null | undefined;
|
|
822
830
|
}[] | null | undefined;
|
|
823
831
|
files?: {
|
|
@@ -966,6 +974,7 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
|
|
|
966
974
|
name: string;
|
|
967
975
|
platform: "VINTED" | "SHOPIFY";
|
|
968
976
|
accountId: string;
|
|
977
|
+
locale?: string | null | undefined;
|
|
969
978
|
} | null | undefined;
|
|
970
979
|
}[] | null | undefined;
|
|
971
980
|
files?: {
|
|
@@ -439,6 +439,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
439
439
|
accountId: z.ZodString;
|
|
440
440
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
441
441
|
name: z.ZodString;
|
|
442
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
442
443
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
443
444
|
}, "strip", z.ZodTypeAny, {
|
|
444
445
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
@@ -446,12 +447,14 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
446
447
|
name: string;
|
|
447
448
|
platform: "VINTED" | "SHOPIFY";
|
|
448
449
|
accountId: string;
|
|
450
|
+
locale?: string | null | undefined;
|
|
449
451
|
}, {
|
|
450
452
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
451
453
|
userId: string | number;
|
|
452
454
|
name: string;
|
|
453
455
|
platform: "VINTED" | "SHOPIFY";
|
|
454
456
|
accountId: string;
|
|
457
|
+
locale?: string | null | undefined;
|
|
455
458
|
}>>>;
|
|
456
459
|
}, "strip", z.ZodTypeAny, {
|
|
457
460
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -467,6 +470,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
467
470
|
name: string;
|
|
468
471
|
platform: "VINTED" | "SHOPIFY";
|
|
469
472
|
accountId: string;
|
|
473
|
+
locale?: string | null | undefined;
|
|
470
474
|
} | null | undefined;
|
|
471
475
|
}, {
|
|
472
476
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -482,6 +486,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
482
486
|
name: string;
|
|
483
487
|
platform: "VINTED" | "SHOPIFY";
|
|
484
488
|
accountId: string;
|
|
489
|
+
locale?: string | null | undefined;
|
|
485
490
|
} | null | undefined;
|
|
486
491
|
}>, "many">>>;
|
|
487
492
|
createdAt: z.ZodDate;
|
|
@@ -526,6 +531,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
526
531
|
name: string;
|
|
527
532
|
platform: "VINTED" | "SHOPIFY";
|
|
528
533
|
accountId: string;
|
|
534
|
+
locale?: string | null | undefined;
|
|
529
535
|
} | null | undefined;
|
|
530
536
|
}[] | null | undefined;
|
|
531
537
|
files?: {
|
|
@@ -668,6 +674,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
668
674
|
name: string;
|
|
669
675
|
platform: "VINTED" | "SHOPIFY";
|
|
670
676
|
accountId: string;
|
|
677
|
+
locale?: string | null | undefined;
|
|
671
678
|
} | null | undefined;
|
|
672
679
|
}[] | null | undefined;
|
|
673
680
|
files?: {
|
|
@@ -842,6 +849,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
842
849
|
name: string;
|
|
843
850
|
platform: "VINTED" | "SHOPIFY";
|
|
844
851
|
accountId: string;
|
|
852
|
+
locale?: string | null | undefined;
|
|
845
853
|
} | null | undefined;
|
|
846
854
|
}[] | null | undefined;
|
|
847
855
|
files?: {
|
|
@@ -994,6 +1002,7 @@ export declare const UpdatedItemSchema: z.ZodObject<{
|
|
|
994
1002
|
name: string;
|
|
995
1003
|
platform: "VINTED" | "SHOPIFY";
|
|
996
1004
|
accountId: string;
|
|
1005
|
+
locale?: string | null | undefined;
|
|
997
1006
|
} | null | undefined;
|
|
998
1007
|
}[] | null | undefined;
|
|
999
1008
|
files?: {
|
|
@@ -12,6 +12,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
12
12
|
accountId: z.ZodString;
|
|
13
13
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
14
14
|
name: z.ZodString;
|
|
15
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
16
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
16
17
|
}, "strip", z.ZodTypeAny, {
|
|
17
18
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
@@ -19,12 +20,14 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
19
20
|
name: string;
|
|
20
21
|
platform: "VINTED" | "SHOPIFY";
|
|
21
22
|
accountId: string;
|
|
23
|
+
locale?: string | null | undefined;
|
|
22
24
|
}, {
|
|
23
25
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
24
26
|
userId: string | number;
|
|
25
27
|
name: string;
|
|
26
28
|
platform: "VINTED" | "SHOPIFY";
|
|
27
29
|
accountId: string;
|
|
30
|
+
locale?: string | null | undefined;
|
|
28
31
|
}>>>;
|
|
29
32
|
}, "strip", z.ZodTypeAny, {
|
|
30
33
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -40,6 +43,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
40
43
|
name: string;
|
|
41
44
|
platform: "VINTED" | "SHOPIFY";
|
|
42
45
|
accountId: string;
|
|
46
|
+
locale?: string | null | undefined;
|
|
43
47
|
} | null | undefined;
|
|
44
48
|
}, {
|
|
45
49
|
status: "DELETED" | "PENDING" | "DRAFT" | "ONLINE" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "ERROR" | "DISPUTE";
|
|
@@ -55,6 +59,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
55
59
|
name: string;
|
|
56
60
|
platform: "VINTED" | "SHOPIFY";
|
|
57
61
|
accountId: string;
|
|
62
|
+
locale?: string | null | undefined;
|
|
58
63
|
} | null | undefined;
|
|
59
64
|
}>;
|
|
60
65
|
export type ItemOnPlatform = z.infer<typeof ItemOnPlatformSchema>;
|
|
@@ -117,6 +117,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
117
117
|
accountId: z.ZodString;
|
|
118
118
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
119
119
|
name: z.ZodString;
|
|
120
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
121
|
status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
|
|
121
122
|
}, "strip", z.ZodTypeAny, {
|
|
122
123
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
@@ -124,12 +125,14 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
124
125
|
name: string;
|
|
125
126
|
platform: "VINTED" | "SHOPIFY";
|
|
126
127
|
accountId: string;
|
|
128
|
+
locale?: string | null | undefined;
|
|
127
129
|
}, {
|
|
128
130
|
status: "ERROR" | "CONNECTED" | "DISCONNECTED";
|
|
129
131
|
userId: string | number;
|
|
130
132
|
name: string;
|
|
131
133
|
platform: "VINTED" | "SHOPIFY";
|
|
132
134
|
accountId: string;
|
|
135
|
+
locale?: string | null | undefined;
|
|
133
136
|
}>;
|
|
134
137
|
}, "strip", z.ZodTypeAny, {
|
|
135
138
|
account: {
|
|
@@ -138,6 +141,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
138
141
|
name: string;
|
|
139
142
|
platform: "VINTED" | "SHOPIFY";
|
|
140
143
|
accountId: string;
|
|
144
|
+
locale?: string | null | undefined;
|
|
141
145
|
};
|
|
142
146
|
item: {
|
|
143
147
|
platformId: string;
|
|
@@ -172,6 +176,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
|
|
|
172
176
|
name: string;
|
|
173
177
|
platform: "VINTED" | "SHOPIFY";
|
|
174
178
|
accountId: string;
|
|
179
|
+
locale?: string | null | undefined;
|
|
175
180
|
};
|
|
176
181
|
item: {
|
|
177
182
|
platformId: string;
|
|
@@ -8,14 +8,14 @@ export declare const ItemOnPlatformsRequestSchema: z.ZodObject<{
|
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
accountsId: string[];
|
|
10
10
|
publishingDate?: Date | null | undefined;
|
|
11
|
+
locale?: string | null | undefined;
|
|
11
12
|
overrideFileIds?: string[] | null | undefined;
|
|
12
13
|
disableGetDraft?: boolean | null | undefined;
|
|
13
|
-
locale?: string | null | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
accountsId: string[];
|
|
16
16
|
publishingDate?: Date | null | undefined;
|
|
17
|
+
locale?: string | null | undefined;
|
|
17
18
|
overrideFileIds?: string[] | null | undefined;
|
|
18
19
|
disableGetDraft?: boolean | null | undefined;
|
|
19
|
-
locale?: string | null | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export type ItemOnPlatformsRequest = z.infer<typeof ItemOnPlatformsRequestSchema>;
|
|
@@ -9,15 +9,15 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
accountsId: string[];
|
|
11
11
|
publishingDate?: Date | null | undefined;
|
|
12
|
+
locale?: string | null | undefined;
|
|
12
13
|
overrideFileIds?: string[] | null | undefined;
|
|
13
14
|
disableGetDraft?: boolean | null | undefined;
|
|
14
|
-
locale?: string | null | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
accountsId: string[];
|
|
17
17
|
publishingDate?: Date | null | undefined;
|
|
18
|
+
locale?: string | null | undefined;
|
|
18
19
|
overrideFileIds?: string[] | null | undefined;
|
|
19
20
|
disableGetDraft?: boolean | null | undefined;
|
|
20
|
-
locale?: string | null | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
itemId: z.ZodNumber;
|
|
23
23
|
userId: z.ZodNumber;
|
|
@@ -28,9 +28,9 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
28
28
|
request: {
|
|
29
29
|
accountsId: string[];
|
|
30
30
|
publishingDate?: Date | null | undefined;
|
|
31
|
+
locale?: string | null | undefined;
|
|
31
32
|
overrideFileIds?: string[] | null | undefined;
|
|
32
33
|
disableGetDraft?: boolean | null | undefined;
|
|
33
|
-
locale?: string | null | undefined;
|
|
34
34
|
};
|
|
35
35
|
platformId?: string | null | undefined;
|
|
36
36
|
}, {
|
|
@@ -39,9 +39,9 @@ export declare const ItemOnPlatformsRequestWithItemSchema: z.ZodObject<{
|
|
|
39
39
|
request: {
|
|
40
40
|
accountsId: string[];
|
|
41
41
|
publishingDate?: Date | null | undefined;
|
|
42
|
+
locale?: string | null | undefined;
|
|
42
43
|
overrideFileIds?: string[] | null | undefined;
|
|
43
44
|
disableGetDraft?: boolean | null | undefined;
|
|
44
|
-
locale?: string | null | undefined;
|
|
45
45
|
};
|
|
46
46
|
platformId?: string | null | undefined;
|
|
47
47
|
}>;
|