controlresell 2.2.7 → 2.2.9
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/items/CreatedItems.d.ts +71 -0
- package/src/com/controlresell/models/items/Item.d.ts +57 -0
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +71 -0
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +71 -0
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +43 -0
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts +43 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.d.ts +29 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.js +5 -0
- package/src/com/controlresell/models/items/history/ItemHistoryDecodedPayload.ts +5 -0
- package/src/com/controlresell/models/items/platforms/PriceDropRequest.d.ts +42 -0
- package/src/com/controlresell/models/items/platforms/PriceDropRequest.js +9 -0
- package/src/com/controlresell/models/items/platforms/PriceDropRequest.ts +8 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequest.d.ts +82 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequest.js +9 -0
- package/src/com/controlresell/models/items/platforms/RepublishRequest.ts +8 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +71 -0
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +71 -0
- package/src/com/controlresell/models/preferences/CreatePreferencePayload.d.ts +3 -3
- package/src/com/controlresell/models/preferences/Preference.d.ts +28 -298
- package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +71 -0
- package/src/com/controlresell/models/preferences/PreferenceType.d.ts +1 -1
- package/src/com/controlresell/models/preferences/PreferenceType.js +1 -1
- package/src/com/controlresell/models/preferences/PreferenceType.ts +1 -1
- package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +80 -890
- package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +21 -259
- package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +21 -259
- package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +21 -259
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +5 -115
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.js +2 -1
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.ts +2 -1
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.d.ts +0 -79
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.js +0 -5
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadDecodedPayload.ts +0 -5
- package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +9 -151
- package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.d.ts +82 -0
- package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.js +9 -0
- package/src/com/controlresell/models/preferences/payloads/vision/TryVisionPayload.ts +8 -0
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.d.ts +12 -151
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.js +2 -1
- package/src/com/controlresell/models/preferences/queue/PreferenceNextActionPayload.ts +2 -1
- package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +17 -223
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +17 -223
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantDecodedPayload.d.ts +13 -187
- package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +17 -223
- package/src/index.d.ts +3 -0
- package/src/index.js +9 -3
- package/src/index.ts +3 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PriceDropRequestSchema: z.ZodObject<{
|
|
3
|
+
pricePayload: z.ZodObject<{
|
|
4
|
+
type: z.ZodEnum<["PERCENTAGE", "ABSOLUTE"]>;
|
|
5
|
+
value: z.ZodNumber;
|
|
6
|
+
roundType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["NEAREST", "UP", "DOWN", "CUSTOM"]>>>;
|
|
7
|
+
roundStep: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
negotiationProfile: z.ZodOptional<z.ZodNullable<z.ZodEnum<["AUTO", "MODERATE", "CONSERVATIVE"]>>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
value: number;
|
|
11
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
12
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
13
|
+
roundStep?: number | null | undefined;
|
|
14
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
value: number;
|
|
17
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
18
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
19
|
+
roundStep?: number | null | undefined;
|
|
20
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
accountsId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
pricePayload: {
|
|
25
|
+
value: number;
|
|
26
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
27
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
28
|
+
roundStep?: number | null | undefined;
|
|
29
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
30
|
+
};
|
|
31
|
+
accountsId?: string[] | null | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
pricePayload: {
|
|
34
|
+
value: number;
|
|
35
|
+
type: "PERCENTAGE" | "ABSOLUTE";
|
|
36
|
+
roundType?: "NEAREST" | "UP" | "DOWN" | "CUSTOM" | null | undefined;
|
|
37
|
+
roundStep?: number | null | undefined;
|
|
38
|
+
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
39
|
+
};
|
|
40
|
+
accountsId?: string[] | null | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export type PriceDropRequest = z.infer<typeof PriceDropRequestSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PriceDropRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const PreferencePricePayload_1 = require("../../preferences/payloads/prices/PreferencePricePayload");
|
|
6
|
+
exports.PriceDropRequestSchema = zod_1.z.object({
|
|
7
|
+
pricePayload: PreferencePricePayload_1.PreferencePricePayloadSchema,
|
|
8
|
+
accountsId: zod_1.z.array(zod_1.z.string().uuid()).nullish()
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {PreferencePricePayloadSchema} from "../../preferences/payloads/prices/PreferencePricePayload"
|
|
3
|
+
|
|
4
|
+
export const PriceDropRequestSchema = z.object({
|
|
5
|
+
pricePayload: PreferencePricePayloadSchema,
|
|
6
|
+
accountsId: z.array(z.string().uuid()).nullish()
|
|
7
|
+
})
|
|
8
|
+
export type PriceDropRequest = z.infer<typeof PriceDropRequestSchema>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RepublishRequestSchema: z.ZodObject<{
|
|
3
|
+
visionPayload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4
|
+
doRemoveBackground: z.ZodBoolean;
|
|
5
|
+
doSmartCrop: z.ZodBoolean;
|
|
6
|
+
doChangeBackground: z.ZodBoolean;
|
|
7
|
+
doRotate: z.ZodBoolean;
|
|
8
|
+
doAddBorders: z.ZodBoolean;
|
|
9
|
+
shadow: z.ZodBoolean;
|
|
10
|
+
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
11
|
+
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
doRemoveBackground: boolean;
|
|
19
|
+
doSmartCrop: boolean;
|
|
20
|
+
doChangeBackground: boolean;
|
|
21
|
+
doRotate: boolean;
|
|
22
|
+
doAddBorders: boolean;
|
|
23
|
+
shadow: boolean;
|
|
24
|
+
targetWidth?: number | null | undefined;
|
|
25
|
+
targetHeight?: number | null | undefined;
|
|
26
|
+
newBackgroundColor?: string | null | undefined;
|
|
27
|
+
newBackgroundUrl?: string | null | undefined;
|
|
28
|
+
rotationAngle?: number | null | undefined;
|
|
29
|
+
borderSize?: number | null | undefined;
|
|
30
|
+
borderColor?: string | null | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
doRemoveBackground: boolean;
|
|
33
|
+
doSmartCrop: boolean;
|
|
34
|
+
doChangeBackground: boolean;
|
|
35
|
+
doRotate: boolean;
|
|
36
|
+
doAddBorders: boolean;
|
|
37
|
+
shadow: boolean;
|
|
38
|
+
targetWidth?: number | null | undefined;
|
|
39
|
+
targetHeight?: number | null | undefined;
|
|
40
|
+
newBackgroundColor?: string | null | undefined;
|
|
41
|
+
newBackgroundUrl?: string | null | undefined;
|
|
42
|
+
rotationAngle?: number | null | undefined;
|
|
43
|
+
borderSize?: number | null | undefined;
|
|
44
|
+
borderColor?: string | null | undefined;
|
|
45
|
+
}>>>;
|
|
46
|
+
accountsId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
accountsId?: string[] | null | undefined;
|
|
49
|
+
visionPayload?: {
|
|
50
|
+
doRemoveBackground: boolean;
|
|
51
|
+
doSmartCrop: boolean;
|
|
52
|
+
doChangeBackground: boolean;
|
|
53
|
+
doRotate: boolean;
|
|
54
|
+
doAddBorders: boolean;
|
|
55
|
+
shadow: boolean;
|
|
56
|
+
targetWidth?: number | null | undefined;
|
|
57
|
+
targetHeight?: number | null | undefined;
|
|
58
|
+
newBackgroundColor?: string | null | undefined;
|
|
59
|
+
newBackgroundUrl?: string | null | undefined;
|
|
60
|
+
rotationAngle?: number | null | undefined;
|
|
61
|
+
borderSize?: number | null | undefined;
|
|
62
|
+
borderColor?: string | null | undefined;
|
|
63
|
+
} | null | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
accountsId?: string[] | null | undefined;
|
|
66
|
+
visionPayload?: {
|
|
67
|
+
doRemoveBackground: boolean;
|
|
68
|
+
doSmartCrop: boolean;
|
|
69
|
+
doChangeBackground: boolean;
|
|
70
|
+
doRotate: boolean;
|
|
71
|
+
doAddBorders: boolean;
|
|
72
|
+
shadow: boolean;
|
|
73
|
+
targetWidth?: number | null | undefined;
|
|
74
|
+
targetHeight?: number | null | undefined;
|
|
75
|
+
newBackgroundColor?: string | null | undefined;
|
|
76
|
+
newBackgroundUrl?: string | null | undefined;
|
|
77
|
+
rotationAngle?: number | null | undefined;
|
|
78
|
+
borderSize?: number | null | undefined;
|
|
79
|
+
borderColor?: string | null | undefined;
|
|
80
|
+
} | null | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
export type RepublishRequest = z.infer<typeof RepublishRequestSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepublishRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const PreferenceVisionPayload_1 = require("../../preferences/payloads/vision/PreferenceVisionPayload");
|
|
6
|
+
exports.RepublishRequestSchema = zod_1.z.object({
|
|
7
|
+
visionPayload: PreferenceVisionPayload_1.PreferenceVisionPayloadSchema.nullish(),
|
|
8
|
+
accountsId: zod_1.z.array(zod_1.z.string().uuid()).nullish()
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {PreferenceVisionPayloadSchema} from "../../preferences/payloads/vision/PreferenceVisionPayload"
|
|
3
|
+
|
|
4
|
+
export const RepublishRequestSchema = z.object({
|
|
5
|
+
visionPayload: PreferenceVisionPayloadSchema.nullish(),
|
|
6
|
+
accountsId: z.array(z.string().uuid()).nullish()
|
|
7
|
+
})
|
|
8
|
+
export type RepublishRequest = z.infer<typeof RepublishRequestSchema>
|
|
@@ -589,6 +589,35 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
589
589
|
soldOrderId: string;
|
|
590
590
|
soldConversationId?: string | null | undefined;
|
|
591
591
|
};
|
|
592
|
+
}>, z.ZodObject<{
|
|
593
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
594
|
+
data: z.ZodObject<{
|
|
595
|
+
soldAccountId: z.ZodString;
|
|
596
|
+
soldOrderId: z.ZodString;
|
|
597
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
598
|
+
}, "strip", z.ZodTypeAny, {
|
|
599
|
+
soldAccountId: string;
|
|
600
|
+
soldOrderId: string;
|
|
601
|
+
soldConversationId?: string | null | undefined;
|
|
602
|
+
}, {
|
|
603
|
+
soldAccountId: string;
|
|
604
|
+
soldOrderId: string;
|
|
605
|
+
soldConversationId?: string | null | undefined;
|
|
606
|
+
}>;
|
|
607
|
+
}, "strip", z.ZodTypeAny, {
|
|
608
|
+
type: "DELIVERED";
|
|
609
|
+
data: {
|
|
610
|
+
soldAccountId: string;
|
|
611
|
+
soldOrderId: string;
|
|
612
|
+
soldConversationId?: string | null | undefined;
|
|
613
|
+
};
|
|
614
|
+
}, {
|
|
615
|
+
type: "DELIVERED";
|
|
616
|
+
data: {
|
|
617
|
+
soldAccountId: string;
|
|
618
|
+
soldOrderId: string;
|
|
619
|
+
soldConversationId?: string | null | undefined;
|
|
620
|
+
};
|
|
592
621
|
}>]>>>;
|
|
593
622
|
createdAt: z.ZodDate;
|
|
594
623
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -616,6 +645,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
616
645
|
soldOrderId: string;
|
|
617
646
|
soldConversationId?: string | null | undefined;
|
|
618
647
|
};
|
|
648
|
+
} | {
|
|
649
|
+
type: "DELIVERED";
|
|
650
|
+
data: {
|
|
651
|
+
soldAccountId: string;
|
|
652
|
+
soldOrderId: string;
|
|
653
|
+
soldConversationId?: string | null | undefined;
|
|
654
|
+
};
|
|
619
655
|
} | null | undefined;
|
|
620
656
|
}, {
|
|
621
657
|
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
@@ -642,6 +678,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
642
678
|
soldOrderId: string;
|
|
643
679
|
soldConversationId?: string | null | undefined;
|
|
644
680
|
};
|
|
681
|
+
} | {
|
|
682
|
+
type: "DELIVERED";
|
|
683
|
+
data: {
|
|
684
|
+
soldAccountId: string;
|
|
685
|
+
soldOrderId: string;
|
|
686
|
+
soldConversationId?: string | null | undefined;
|
|
687
|
+
};
|
|
645
688
|
} | null | undefined;
|
|
646
689
|
}>>>;
|
|
647
690
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -832,6 +875,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
832
875
|
soldOrderId: string;
|
|
833
876
|
soldConversationId?: string | null | undefined;
|
|
834
877
|
};
|
|
878
|
+
} | {
|
|
879
|
+
type: "DELIVERED";
|
|
880
|
+
data: {
|
|
881
|
+
soldAccountId: string;
|
|
882
|
+
soldOrderId: string;
|
|
883
|
+
soldConversationId?: string | null | undefined;
|
|
884
|
+
};
|
|
835
885
|
} | null | undefined;
|
|
836
886
|
} | null | undefined;
|
|
837
887
|
}, {
|
|
@@ -962,6 +1012,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
962
1012
|
soldOrderId: string;
|
|
963
1013
|
soldConversationId?: string | null | undefined;
|
|
964
1014
|
};
|
|
1015
|
+
} | {
|
|
1016
|
+
type: "DELIVERED";
|
|
1017
|
+
data: {
|
|
1018
|
+
soldAccountId: string;
|
|
1019
|
+
soldOrderId: string;
|
|
1020
|
+
soldConversationId?: string | null | undefined;
|
|
1021
|
+
};
|
|
965
1022
|
} | null | undefined;
|
|
966
1023
|
} | null | undefined;
|
|
967
1024
|
}>, "many">;
|
|
@@ -1094,6 +1151,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1094
1151
|
soldOrderId: string;
|
|
1095
1152
|
soldConversationId?: string | null | undefined;
|
|
1096
1153
|
};
|
|
1154
|
+
} | {
|
|
1155
|
+
type: "DELIVERED";
|
|
1156
|
+
data: {
|
|
1157
|
+
soldAccountId: string;
|
|
1158
|
+
soldOrderId: string;
|
|
1159
|
+
soldConversationId?: string | null | undefined;
|
|
1160
|
+
};
|
|
1097
1161
|
} | null | undefined;
|
|
1098
1162
|
} | null | undefined;
|
|
1099
1163
|
}[];
|
|
@@ -1276,6 +1340,13 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1276
1340
|
soldOrderId: string;
|
|
1277
1341
|
soldConversationId?: string | null | undefined;
|
|
1278
1342
|
};
|
|
1343
|
+
} | {
|
|
1344
|
+
type: "DELIVERED";
|
|
1345
|
+
data: {
|
|
1346
|
+
soldAccountId: string;
|
|
1347
|
+
soldOrderId: string;
|
|
1348
|
+
soldConversationId?: string | null | undefined;
|
|
1349
|
+
};
|
|
1279
1350
|
} | null | undefined;
|
|
1280
1351
|
} | null | undefined;
|
|
1281
1352
|
}[];
|
|
@@ -464,6 +464,35 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
464
464
|
soldOrderId: string;
|
|
465
465
|
soldConversationId?: string | null | undefined;
|
|
466
466
|
};
|
|
467
|
+
}>, z.ZodObject<{
|
|
468
|
+
type: z.ZodLiteral<"DELIVERED">;
|
|
469
|
+
data: z.ZodObject<{
|
|
470
|
+
soldAccountId: z.ZodString;
|
|
471
|
+
soldOrderId: z.ZodString;
|
|
472
|
+
soldConversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
473
|
+
}, "strip", z.ZodTypeAny, {
|
|
474
|
+
soldAccountId: string;
|
|
475
|
+
soldOrderId: string;
|
|
476
|
+
soldConversationId?: string | null | undefined;
|
|
477
|
+
}, {
|
|
478
|
+
soldAccountId: string;
|
|
479
|
+
soldOrderId: string;
|
|
480
|
+
soldConversationId?: string | null | undefined;
|
|
481
|
+
}>;
|
|
482
|
+
}, "strip", z.ZodTypeAny, {
|
|
483
|
+
type: "DELIVERED";
|
|
484
|
+
data: {
|
|
485
|
+
soldAccountId: string;
|
|
486
|
+
soldOrderId: string;
|
|
487
|
+
soldConversationId?: string | null | undefined;
|
|
488
|
+
};
|
|
489
|
+
}, {
|
|
490
|
+
type: "DELIVERED";
|
|
491
|
+
data: {
|
|
492
|
+
soldAccountId: string;
|
|
493
|
+
soldOrderId: string;
|
|
494
|
+
soldConversationId?: string | null | undefined;
|
|
495
|
+
};
|
|
467
496
|
}>]>>>;
|
|
468
497
|
createdAt: z.ZodDate;
|
|
469
498
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -491,6 +520,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
491
520
|
soldOrderId: string;
|
|
492
521
|
soldConversationId?: string | null | undefined;
|
|
493
522
|
};
|
|
523
|
+
} | {
|
|
524
|
+
type: "DELIVERED";
|
|
525
|
+
data: {
|
|
526
|
+
soldAccountId: string;
|
|
527
|
+
soldOrderId: string;
|
|
528
|
+
soldConversationId?: string | null | undefined;
|
|
529
|
+
};
|
|
494
530
|
} | null | undefined;
|
|
495
531
|
}, {
|
|
496
532
|
type: "IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND";
|
|
@@ -517,6 +553,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
517
553
|
soldOrderId: string;
|
|
518
554
|
soldConversationId?: string | null | undefined;
|
|
519
555
|
};
|
|
556
|
+
} | {
|
|
557
|
+
type: "DELIVERED";
|
|
558
|
+
data: {
|
|
559
|
+
soldAccountId: string;
|
|
560
|
+
soldOrderId: string;
|
|
561
|
+
soldConversationId?: string | null | undefined;
|
|
562
|
+
};
|
|
520
563
|
} | null | undefined;
|
|
521
564
|
}>>>;
|
|
522
565
|
platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -707,6 +750,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
707
750
|
soldOrderId: string;
|
|
708
751
|
soldConversationId?: string | null | undefined;
|
|
709
752
|
};
|
|
753
|
+
} | {
|
|
754
|
+
type: "DELIVERED";
|
|
755
|
+
data: {
|
|
756
|
+
soldAccountId: string;
|
|
757
|
+
soldOrderId: string;
|
|
758
|
+
soldConversationId?: string | null | undefined;
|
|
759
|
+
};
|
|
710
760
|
} | null | undefined;
|
|
711
761
|
} | null | undefined;
|
|
712
762
|
}, {
|
|
@@ -837,6 +887,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
837
887
|
soldOrderId: string;
|
|
838
888
|
soldConversationId?: string | null | undefined;
|
|
839
889
|
};
|
|
890
|
+
} | {
|
|
891
|
+
type: "DELIVERED";
|
|
892
|
+
data: {
|
|
893
|
+
soldAccountId: string;
|
|
894
|
+
soldOrderId: string;
|
|
895
|
+
soldConversationId?: string | null | undefined;
|
|
896
|
+
};
|
|
840
897
|
} | null | undefined;
|
|
841
898
|
} | null | undefined;
|
|
842
899
|
}>, "many">;
|
|
@@ -969,6 +1026,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
969
1026
|
soldOrderId: string;
|
|
970
1027
|
soldConversationId?: string | null | undefined;
|
|
971
1028
|
};
|
|
1029
|
+
} | {
|
|
1030
|
+
type: "DELIVERED";
|
|
1031
|
+
data: {
|
|
1032
|
+
soldAccountId: string;
|
|
1033
|
+
soldOrderId: string;
|
|
1034
|
+
soldConversationId?: string | null | undefined;
|
|
1035
|
+
};
|
|
972
1036
|
} | null | undefined;
|
|
973
1037
|
} | null | undefined;
|
|
974
1038
|
}[];
|
|
@@ -1130,6 +1194,13 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
|
|
|
1130
1194
|
soldOrderId: string;
|
|
1131
1195
|
soldConversationId?: string | null | undefined;
|
|
1132
1196
|
};
|
|
1197
|
+
} | {
|
|
1198
|
+
type: "DELIVERED";
|
|
1199
|
+
data: {
|
|
1200
|
+
soldAccountId: string;
|
|
1201
|
+
soldOrderId: string;
|
|
1202
|
+
soldConversationId?: string | null | undefined;
|
|
1203
|
+
};
|
|
1133
1204
|
} | null | undefined;
|
|
1134
1205
|
} | null | undefined;
|
|
1135
1206
|
}[];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CreatePreferencePayloadSchema: z.ZodObject<{
|
|
3
3
|
parentPreferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
-
type: z.ZodEnum<["NEGOTIATION", "VISION", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>;
|
|
4
|
+
type: z.ZodEnum<["NEGOTIATION", "REPUBLISH", "VISION", "TITLE", "DESCRIPTION", "LIFECYCLE", "FEES", "MESSAGES_QUESTIONS", "MESSAGES_STREAM", "MESSAGES_STREAM__ON_FAVORITE", "MESSAGES_STREAM__ON_FAVORITES", "MESSAGES_STREAM__ON_LOW_OFFER", "MESSAGES_STREAM__ON_CORRECT_OFFER", "MESSAGES_STREAM__ON_OFFER_REJECTED", "MESSAGES_STREAM__ON_NO_ANSWER", "MESSAGES_STREAM__ON_BUYER_PAID", "MESSAGES_STREAM__ON_ITEM_DELIVERED", "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE"]>;
|
|
5
5
|
enabled: z.ZodBoolean;
|
|
6
6
|
testMode: z.ZodBoolean;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
|
|
8
|
+
type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
|
|
9
9
|
enabled: boolean;
|
|
10
10
|
testMode: boolean;
|
|
11
11
|
parentPreferenceId?: string | null | undefined;
|
|
12
12
|
}, {
|
|
13
|
-
type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
|
|
13
|
+
type: "TITLE" | "DESCRIPTION" | "NEGOTIATION" | "REPUBLISH" | "VISION" | "LIFECYCLE" | "FEES" | "MESSAGES_QUESTIONS" | "MESSAGES_STREAM" | "MESSAGES_STREAM__ON_FAVORITE" | "MESSAGES_STREAM__ON_FAVORITES" | "MESSAGES_STREAM__ON_LOW_OFFER" | "MESSAGES_STREAM__ON_CORRECT_OFFER" | "MESSAGES_STREAM__ON_OFFER_REJECTED" | "MESSAGES_STREAM__ON_NO_ANSWER" | "MESSAGES_STREAM__ON_BUYER_PAID" | "MESSAGES_STREAM__ON_ITEM_DELIVERED" | "MESSAGES_STREAM__ON_ITEM_NO_LONGER_AVAILABLE";
|
|
14
14
|
enabled: boolean;
|
|
15
15
|
testMode: boolean;
|
|
16
16
|
parentPreferenceId?: string | null | undefined;
|