controlresell 2.1.11 → 2.1.13
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 +3 -3
- package/src/com/controlresell/models/items/CreatedItems.d.ts +7 -7
- package/src/com/controlresell/models/items/Item.d.ts +5 -5
- package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +3 -0
- package/src/com/controlresell/models/items/ItemFiltersContext.js +1 -0
- package/src/com/controlresell/models/items/ItemFiltersContext.ts +1 -0
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +7 -40
- package/src/com/controlresell/models/items/ItemsWithFilters.js +1 -3
- package/src/com/controlresell/models/items/ItemsWithFilters.ts +1 -3
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +7 -7
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.d.ts +6 -6
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.js +2 -2
- package/src/com/controlresell/models/items/analysis/ItemAnalysisCompletion.ts +2 -2
- package/src/com/controlresell/models/items/platforms/CreateItemOnPlatformPayload.d.ts +3 -3
- package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +3 -3
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.d.ts +1 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.js +1 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformStatus.ts +1 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +7 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +5 -0
- package/src/com/controlresell/models/items/platforms/UpdateItemOnPlatformPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +61 -164
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +12 -12
- package/src/com/controlresell/models/platforms/orders/OrderOnPlatformUpdateRequest.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +3 -3
- package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +5 -5
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +25 -25
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +33 -0
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +16 -0
- package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +15 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +39 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +19 -0
- package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +18 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +27 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +13 -0
- package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.ts +12 -0
- package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +7 -7
- package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +5 -5
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +16 -16
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
- package/src/index.d.ts +141 -138
- package/src/index.js +285 -152
- package/src/index.ts +141 -138
package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const UpdatePlatformPreferencePayloadSchema: z.ZodObject<{
|
|
3
|
+
doRemoveBackground: z.ZodBoolean;
|
|
4
|
+
doSmartCrop: z.ZodBoolean;
|
|
5
|
+
doChangeBackground: z.ZodBoolean;
|
|
6
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
doRemoveBackground: boolean;
|
|
12
|
+
doSmartCrop: boolean;
|
|
13
|
+
doChangeBackground: boolean;
|
|
14
|
+
targetWidth?: number | null | undefined;
|
|
15
|
+
targetHeight?: number | null | undefined;
|
|
16
|
+
newBackgroundColor?: string | null | undefined;
|
|
17
|
+
newBackgroundUrl?: string | null | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
doRemoveBackground: boolean;
|
|
20
|
+
doSmartCrop: boolean;
|
|
21
|
+
doChangeBackground: boolean;
|
|
22
|
+
targetWidth?: number | null | undefined;
|
|
23
|
+
targetHeight?: number | null | undefined;
|
|
24
|
+
newBackgroundColor?: string | null | undefined;
|
|
25
|
+
newBackgroundUrl?: string | null | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export type UpdatePlatformPreferencePayload = z.infer<typeof UpdatePlatformPreferencePayloadSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePlatformPreferencePayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.UpdatePlatformPreferencePayloadSchema = zod_1.z.object({
|
|
6
|
+
doRemoveBackground: zod_1.z.boolean(),
|
|
7
|
+
doSmartCrop: zod_1.z.boolean(),
|
|
8
|
+
doChangeBackground: zod_1.z.boolean(),
|
|
9
|
+
targetWidth: zod_1.z.number().int().nullish(),
|
|
10
|
+
targetHeight: zod_1.z.number().int().nullish(),
|
|
11
|
+
newBackgroundColor: zod_1.z.string().nullish(),
|
|
12
|
+
newBackgroundUrl: zod_1.z.string().nullish()
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const UpdatePlatformPreferencePayloadSchema = z.object({
|
|
4
|
+
doRemoveBackground: z.boolean(),
|
|
5
|
+
doSmartCrop: z.boolean(),
|
|
6
|
+
doChangeBackground: z.boolean(),
|
|
7
|
+
targetWidth: z.number().int().nullish(),
|
|
8
|
+
targetHeight: z.number().int().nullish(),
|
|
9
|
+
newBackgroundColor: z.string().nullish(),
|
|
10
|
+
newBackgroundUrl: z.string().nullish()
|
|
11
|
+
})
|
|
12
|
+
export type UpdatePlatformPreferencePayload = z.infer<typeof UpdatePlatformPreferencePayloadSchema>
|
|
@@ -17,7 +17,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
17
17
|
platformId: z.ZodString;
|
|
18
18
|
platformUrl: z.ZodString;
|
|
19
19
|
platformPrice: z.ZodNumber;
|
|
20
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
20
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
21
21
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
22
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
23
23
|
accountId: z.ZodString;
|
|
@@ -38,7 +38,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
38
38
|
accountId: string;
|
|
39
39
|
}>>>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
41
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
42
42
|
id: string;
|
|
43
43
|
itemId: string | number;
|
|
44
44
|
accountId: string;
|
|
@@ -53,7 +53,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
53
53
|
accountId: string;
|
|
54
54
|
} | null | undefined;
|
|
55
55
|
}, {
|
|
56
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
56
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
57
57
|
id: string;
|
|
58
58
|
itemId: string | number;
|
|
59
59
|
accountId: string;
|
|
@@ -72,7 +72,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
72
72
|
transactionId: string;
|
|
73
73
|
itemOnPlatformId: string;
|
|
74
74
|
itemOnPlatform?: {
|
|
75
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
75
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
76
76
|
id: string;
|
|
77
77
|
itemId: string | number;
|
|
78
78
|
accountId: string;
|
|
@@ -91,7 +91,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
91
91
|
transactionId: string;
|
|
92
92
|
itemOnPlatformId: string;
|
|
93
93
|
itemOnPlatform?: {
|
|
94
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
94
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
95
95
|
id: string;
|
|
96
96
|
itemId: string | number;
|
|
97
97
|
accountId: string;
|
|
@@ -115,7 +115,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
115
115
|
transactionId: string;
|
|
116
116
|
itemOnPlatformId: string;
|
|
117
117
|
itemOnPlatform?: {
|
|
118
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
118
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
119
119
|
id: string;
|
|
120
120
|
itemId: string | number;
|
|
121
121
|
accountId: string;
|
|
@@ -143,7 +143,7 @@ export declare const TransactionSchema: z.ZodObject<{
|
|
|
143
143
|
transactionId: string;
|
|
144
144
|
itemOnPlatformId: string;
|
|
145
145
|
itemOnPlatform?: {
|
|
146
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
146
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
147
147
|
id: string;
|
|
148
148
|
itemId: string | number;
|
|
149
149
|
accountId: string;
|
|
@@ -9,7 +9,7 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
|
|
|
9
9
|
platformId: z.ZodString;
|
|
10
10
|
platformUrl: z.ZodString;
|
|
11
11
|
platformPrice: z.ZodNumber;
|
|
12
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
12
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
13
13
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
14
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
15
15
|
accountId: z.ZodString;
|
|
@@ -30,7 +30,7 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
|
|
|
30
30
|
accountId: string;
|
|
31
31
|
}>>>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
33
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
34
34
|
id: string;
|
|
35
35
|
itemId: string | number;
|
|
36
36
|
accountId: string;
|
|
@@ -45,7 +45,7 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
|
|
|
45
45
|
accountId: string;
|
|
46
46
|
} | null | undefined;
|
|
47
47
|
}, {
|
|
48
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
48
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
49
49
|
id: string;
|
|
50
50
|
itemId: string | number;
|
|
51
51
|
accountId: string;
|
|
@@ -64,7 +64,7 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
|
|
|
64
64
|
transactionId: string;
|
|
65
65
|
itemOnPlatformId: string;
|
|
66
66
|
itemOnPlatform?: {
|
|
67
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
67
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
68
68
|
id: string;
|
|
69
69
|
itemId: string | number;
|
|
70
70
|
accountId: string;
|
|
@@ -83,7 +83,7 @@ export declare const ItemInTransactionSchema: z.ZodObject<{
|
|
|
83
83
|
transactionId: string;
|
|
84
84
|
itemOnPlatformId: string;
|
|
85
85
|
itemOnPlatform?: {
|
|
86
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
86
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
87
87
|
id: string;
|
|
88
88
|
itemId: string | number;
|
|
89
89
|
accountId: string;
|
|
@@ -18,7 +18,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
18
18
|
platformId: z.ZodString;
|
|
19
19
|
platformUrl: z.ZodString;
|
|
20
20
|
platformPrice: z.ZodNumber;
|
|
21
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
21
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
22
22
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
23
23
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
24
24
|
accountId: z.ZodString;
|
|
@@ -39,7 +39,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
39
39
|
accountId: string;
|
|
40
40
|
}>>>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
42
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
43
43
|
id: string;
|
|
44
44
|
itemId: string | number;
|
|
45
45
|
accountId: string;
|
|
@@ -54,7 +54,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
54
54
|
accountId: string;
|
|
55
55
|
} | null | undefined;
|
|
56
56
|
}, {
|
|
57
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
57
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
58
58
|
id: string;
|
|
59
59
|
itemId: string | number;
|
|
60
60
|
accountId: string;
|
|
@@ -73,7 +73,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
73
73
|
transactionId: string;
|
|
74
74
|
itemOnPlatformId: string;
|
|
75
75
|
itemOnPlatform?: {
|
|
76
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
76
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
77
77
|
id: string;
|
|
78
78
|
itemId: string | number;
|
|
79
79
|
accountId: string;
|
|
@@ -92,7 +92,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
92
92
|
transactionId: string;
|
|
93
93
|
itemOnPlatformId: string;
|
|
94
94
|
itemOnPlatform?: {
|
|
95
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
95
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
96
96
|
id: string;
|
|
97
97
|
itemId: string | number;
|
|
98
98
|
accountId: string;
|
|
@@ -116,7 +116,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
116
116
|
transactionId: string;
|
|
117
117
|
itemOnPlatformId: string;
|
|
118
118
|
itemOnPlatform?: {
|
|
119
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
119
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
120
120
|
id: string;
|
|
121
121
|
itemId: string | number;
|
|
122
122
|
accountId: string;
|
|
@@ -144,7 +144,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
144
144
|
transactionId: string;
|
|
145
145
|
itemOnPlatformId: string;
|
|
146
146
|
itemOnPlatform?: {
|
|
147
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
147
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
148
148
|
id: string;
|
|
149
149
|
itemId: string | number;
|
|
150
150
|
accountId: string;
|
|
@@ -403,7 +403,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
403
403
|
platformId: z.ZodString;
|
|
404
404
|
platformUrl: z.ZodString;
|
|
405
405
|
platformPrice: z.ZodNumber;
|
|
406
|
-
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
406
|
+
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "SOLD_ELSEWHERE", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
407
407
|
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
408
408
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
409
409
|
accountId: z.ZodString;
|
|
@@ -424,7 +424,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
424
424
|
accountId: string;
|
|
425
425
|
}>>>;
|
|
426
426
|
}, "strip", z.ZodTypeAny, {
|
|
427
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
427
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
428
428
|
id: string;
|
|
429
429
|
itemId: string | number;
|
|
430
430
|
accountId: string;
|
|
@@ -439,7 +439,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
439
439
|
accountId: string;
|
|
440
440
|
} | null | undefined;
|
|
441
441
|
}, {
|
|
442
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
442
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
443
443
|
id: string;
|
|
444
444
|
itemId: string | number;
|
|
445
445
|
accountId: string;
|
|
@@ -550,7 +550,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
550
550
|
data?: string | null | undefined;
|
|
551
551
|
} | null | undefined;
|
|
552
552
|
platforms?: {
|
|
553
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
553
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
554
554
|
id: string;
|
|
555
555
|
itemId: string | number;
|
|
556
556
|
accountId: string;
|
|
@@ -659,7 +659,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
659
659
|
data?: string | null | undefined;
|
|
660
660
|
} | null | undefined;
|
|
661
661
|
platforms?: {
|
|
662
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
662
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
663
663
|
id: string;
|
|
664
664
|
itemId: string | number;
|
|
665
665
|
accountId: string;
|
|
@@ -770,7 +770,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
770
770
|
data?: string | null | undefined;
|
|
771
771
|
} | null | undefined;
|
|
772
772
|
platforms?: {
|
|
773
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
773
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
774
774
|
id: string;
|
|
775
775
|
itemId: string | number;
|
|
776
776
|
accountId: string;
|
|
@@ -794,7 +794,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
794
794
|
transactionId: string;
|
|
795
795
|
itemOnPlatformId: string;
|
|
796
796
|
itemOnPlatform?: {
|
|
797
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
797
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
798
798
|
id: string;
|
|
799
799
|
itemId: string | number;
|
|
800
800
|
accountId: string;
|
|
@@ -910,7 +910,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
910
910
|
data?: string | null | undefined;
|
|
911
911
|
} | null | undefined;
|
|
912
912
|
platforms?: {
|
|
913
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
913
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
914
914
|
id: string;
|
|
915
915
|
itemId: string | number;
|
|
916
916
|
accountId: string;
|
|
@@ -934,7 +934,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
934
934
|
transactionId: string;
|
|
935
935
|
itemOnPlatformId: string;
|
|
936
936
|
itemOnPlatform?: {
|
|
937
|
-
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
937
|
+
status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "SOLD_ELSEWHERE" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
938
938
|
id: string;
|
|
939
939
|
itemId: string | number;
|
|
940
940
|
accountId: string;
|
|
@@ -19,7 +19,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
|
|
|
19
19
|
platform: "VINTED" | "SHOPIFY";
|
|
20
20
|
accountId: string;
|
|
21
21
|
}>;
|
|
22
|
-
job: z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>;
|
|
22
|
+
job: z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>;
|
|
23
23
|
done: z.ZodBoolean;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
account: {
|
|
@@ -29,7 +29,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
|
|
|
29
29
|
platform: "VINTED" | "SHOPIFY";
|
|
30
30
|
accountId: string;
|
|
31
31
|
};
|
|
32
|
-
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
32
|
+
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
33
33
|
done: boolean;
|
|
34
34
|
}, {
|
|
35
35
|
account: {
|
|
@@ -39,7 +39,7 @@ export declare const PlatformJobUpdateSchema: z.ZodObject<{
|
|
|
39
39
|
platform: "VINTED" | "SHOPIFY";
|
|
40
40
|
accountId: string;
|
|
41
41
|
};
|
|
42
|
-
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
42
|
+
job: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE";
|
|
43
43
|
done: boolean;
|
|
44
44
|
}>;
|
|
45
45
|
export type PlatformJobUpdate = z.infer<typeof PlatformJobUpdateSchema>;
|
|
@@ -2,17 +2,17 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const UserOnPlatformSessionMessageSchema: z.ZodObject<{
|
|
3
3
|
otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
4
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
-
launch: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
6
|
-
done: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
5
|
+
launch: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
6
|
+
done: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTH_OTP", "AUTH_LOGIN", "AUTH_DATA", "ACCOUNTS_PING", "ACCOUNTS_ACTIVITY", "POSTS_CREATE", "POSTS_LIST", "POSTS_GET", "POSTS_DELETE", "POSTS_UPDATE", "POSTS_COMPLETION", "POSTS_SOLD", "ORDERS_LIST", "ORDERS_LABELS_GET", "ORDERS_LABELS_CREATE", "CONVERSATIONS_INBOX_GET", "CONVERSATIONS_GET", "CONVERSATIONS_MESSAGES_CREATE", "CONVERSATIONS_OFFERS_CREATE", "CONVERSATIONS_OFFERS_UPDATE"]>>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
error?: string | null | undefined;
|
|
9
9
|
otp?: number | null | undefined;
|
|
10
|
-
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
11
|
-
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
10
|
+
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
11
|
+
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
error?: string | null | undefined;
|
|
14
14
|
otp?: number | null | undefined;
|
|
15
|
-
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
16
|
-
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
15
|
+
done?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
16
|
+
launch?: "AUTH_OTP" | "AUTH_LOGIN" | "AUTH_DATA" | "ACCOUNTS_PING" | "ACCOUNTS_ACTIVITY" | "POSTS_CREATE" | "POSTS_LIST" | "POSTS_GET" | "POSTS_DELETE" | "POSTS_UPDATE" | "POSTS_COMPLETION" | "POSTS_SOLD" | "ORDERS_LIST" | "ORDERS_LABELS_GET" | "ORDERS_LABELS_CREATE" | "CONVERSATIONS_INBOX_GET" | "CONVERSATIONS_GET" | "CONVERSATIONS_MESSAGES_CREATE" | "CONVERSATIONS_OFFERS_CREATE" | "CONVERSATIONS_OFFERS_UPDATE" | null | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type UserOnPlatformSessionMessage = z.infer<typeof UserOnPlatformSessionMessageSchema>;
|