controlresell 2.2.7 → 2.2.8
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/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/preferences/CreatePreferencePayload.d.ts +3 -3
- package/src/com/controlresell/models/preferences/Preference.d.ts +28 -298
- 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 +9 -151
- 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
|
@@ -63,85 +63,6 @@ export declare const PreferenceActionPayloadDecodedPayloadSchema: z.ZodDiscrimin
|
|
|
63
63
|
roundStep?: number | null | undefined;
|
|
64
64
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
65
65
|
};
|
|
66
|
-
}>, z.ZodObject<{
|
|
67
|
-
type: z.ZodLiteral<"VISION">;
|
|
68
|
-
data: z.ZodObject<{
|
|
69
|
-
doRemoveBackground: z.ZodBoolean;
|
|
70
|
-
doSmartCrop: z.ZodBoolean;
|
|
71
|
-
doChangeBackground: z.ZodBoolean;
|
|
72
|
-
doRotate: z.ZodBoolean;
|
|
73
|
-
doAddBorders: z.ZodBoolean;
|
|
74
|
-
shadow: z.ZodBoolean;
|
|
75
|
-
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
-
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
77
|
-
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
-
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
-
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
80
|
-
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
81
|
-
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
-
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
doRemoveBackground: boolean;
|
|
84
|
-
doSmartCrop: boolean;
|
|
85
|
-
doChangeBackground: boolean;
|
|
86
|
-
doRotate: boolean;
|
|
87
|
-
doAddBorders: boolean;
|
|
88
|
-
shadow: boolean;
|
|
89
|
-
targetWidth?: number | null | undefined;
|
|
90
|
-
targetHeight?: number | null | undefined;
|
|
91
|
-
newBackgroundColor?: string | null | undefined;
|
|
92
|
-
newBackgroundUrl?: string | null | undefined;
|
|
93
|
-
rotationAngle?: number | null | undefined;
|
|
94
|
-
borderSize?: number | null | undefined;
|
|
95
|
-
borderColor?: string | null | undefined;
|
|
96
|
-
}, {
|
|
97
|
-
doRemoveBackground: boolean;
|
|
98
|
-
doSmartCrop: boolean;
|
|
99
|
-
doChangeBackground: boolean;
|
|
100
|
-
doRotate: boolean;
|
|
101
|
-
doAddBorders: boolean;
|
|
102
|
-
shadow: boolean;
|
|
103
|
-
targetWidth?: number | null | undefined;
|
|
104
|
-
targetHeight?: number | null | undefined;
|
|
105
|
-
newBackgroundColor?: string | null | undefined;
|
|
106
|
-
newBackgroundUrl?: string | null | undefined;
|
|
107
|
-
rotationAngle?: number | null | undefined;
|
|
108
|
-
borderSize?: number | null | undefined;
|
|
109
|
-
borderColor?: string | null | undefined;
|
|
110
|
-
}>;
|
|
111
|
-
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
type: "VISION";
|
|
113
|
-
data: {
|
|
114
|
-
doRemoveBackground: boolean;
|
|
115
|
-
doSmartCrop: boolean;
|
|
116
|
-
doChangeBackground: boolean;
|
|
117
|
-
doRotate: boolean;
|
|
118
|
-
doAddBorders: boolean;
|
|
119
|
-
shadow: boolean;
|
|
120
|
-
targetWidth?: number | null | undefined;
|
|
121
|
-
targetHeight?: number | null | undefined;
|
|
122
|
-
newBackgroundColor?: string | null | undefined;
|
|
123
|
-
newBackgroundUrl?: string | null | undefined;
|
|
124
|
-
rotationAngle?: number | null | undefined;
|
|
125
|
-
borderSize?: number | null | undefined;
|
|
126
|
-
borderColor?: string | null | undefined;
|
|
127
|
-
};
|
|
128
|
-
}, {
|
|
129
|
-
type: "VISION";
|
|
130
|
-
data: {
|
|
131
|
-
doRemoveBackground: boolean;
|
|
132
|
-
doSmartCrop: boolean;
|
|
133
|
-
doChangeBackground: boolean;
|
|
134
|
-
doRotate: boolean;
|
|
135
|
-
doAddBorders: boolean;
|
|
136
|
-
shadow: boolean;
|
|
137
|
-
targetWidth?: number | null | undefined;
|
|
138
|
-
targetHeight?: number | null | undefined;
|
|
139
|
-
newBackgroundColor?: string | null | undefined;
|
|
140
|
-
newBackgroundUrl?: string | null | undefined;
|
|
141
|
-
rotationAngle?: number | null | undefined;
|
|
142
|
-
borderSize?: number | null | undefined;
|
|
143
|
-
borderColor?: string | null | undefined;
|
|
144
|
-
};
|
|
145
66
|
}>, z.ZodObject<{
|
|
146
67
|
type: z.ZodLiteral<"TEXT">;
|
|
147
68
|
data: z.ZodObject<{
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PreferenceActionPayloadDecodedPayloadSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const PreferencePricePayload_1 = require("../prices/PreferencePricePayload");
|
|
6
|
-
const PreferenceVisionPayload_1 = require("../vision/PreferenceVisionPayload");
|
|
7
6
|
const PreferenceTextPayload_1 = require("../texts/PreferenceTextPayload");
|
|
8
7
|
const PreferenceWaitPayload_1 = require("../wait/PreferenceWaitPayload");
|
|
9
8
|
exports.PreferenceActionPayloadDecodedPayloadSchema = zod_1.z.discriminatedUnion("type", [
|
|
@@ -18,10 +17,6 @@ exports.PreferenceActionPayloadDecodedPayloadSchema = zod_1.z.discriminatedUnion
|
|
|
18
17
|
type: zod_1.z.literal("PRICE"),
|
|
19
18
|
data: PreferencePricePayload_1.PreferencePricePayloadSchema,
|
|
20
19
|
}),
|
|
21
|
-
zod_1.z.object({
|
|
22
|
-
type: zod_1.z.literal("VISION"),
|
|
23
|
-
data: PreferenceVisionPayload_1.PreferenceVisionPayloadSchema,
|
|
24
|
-
}),
|
|
25
20
|
zod_1.z.object({
|
|
26
21
|
type: zod_1.z.literal("TEXT"),
|
|
27
22
|
data: PreferenceTextPayload_1.PreferenceTextPayloadSchema,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
import {PreferencePricePayloadSchema} from "../prices/PreferencePricePayload"
|
|
4
|
-
import {PreferenceVisionPayloadSchema} from "../vision/PreferenceVisionPayload"
|
|
5
4
|
import {PreferenceTextPayloadSchema} from "../texts/PreferenceTextPayload"
|
|
6
5
|
import {PreferenceWaitPayloadSchema} from "../wait/PreferenceWaitPayload"
|
|
7
6
|
|
|
@@ -17,10 +16,6 @@ export const PreferenceActionPayloadDecodedPayloadSchema = z.discriminatedUnion(
|
|
|
17
16
|
type: z.literal("PRICE"),
|
|
18
17
|
data: PreferencePricePayloadSchema,
|
|
19
18
|
}),
|
|
20
|
-
z.object({
|
|
21
|
-
type: z.literal("VISION"),
|
|
22
|
-
data: PreferenceVisionPayloadSchema,
|
|
23
|
-
}),
|
|
24
19
|
z.object({
|
|
25
20
|
type: z.literal("TEXT"),
|
|
26
21
|
data: PreferenceTextPayloadSchema,
|
package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts
CHANGED
|
@@ -67,85 +67,6 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
67
67
|
roundStep?: number | null | undefined;
|
|
68
68
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
69
69
|
};
|
|
70
|
-
}>, z.ZodObject<{
|
|
71
|
-
type: z.ZodLiteral<"VISION">;
|
|
72
|
-
data: z.ZodObject<{
|
|
73
|
-
doRemoveBackground: z.ZodBoolean;
|
|
74
|
-
doSmartCrop: z.ZodBoolean;
|
|
75
|
-
doChangeBackground: z.ZodBoolean;
|
|
76
|
-
doRotate: z.ZodBoolean;
|
|
77
|
-
doAddBorders: z.ZodBoolean;
|
|
78
|
-
shadow: z.ZodBoolean;
|
|
79
|
-
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
80
|
-
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
81
|
-
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
-
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
-
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
84
|
-
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
85
|
-
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
-
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
doRemoveBackground: boolean;
|
|
88
|
-
doSmartCrop: boolean;
|
|
89
|
-
doChangeBackground: boolean;
|
|
90
|
-
doRotate: boolean;
|
|
91
|
-
doAddBorders: boolean;
|
|
92
|
-
shadow: boolean;
|
|
93
|
-
targetWidth?: number | null | undefined;
|
|
94
|
-
targetHeight?: number | null | undefined;
|
|
95
|
-
newBackgroundColor?: string | null | undefined;
|
|
96
|
-
newBackgroundUrl?: string | null | undefined;
|
|
97
|
-
rotationAngle?: number | null | undefined;
|
|
98
|
-
borderSize?: number | null | undefined;
|
|
99
|
-
borderColor?: string | null | undefined;
|
|
100
|
-
}, {
|
|
101
|
-
doRemoveBackground: boolean;
|
|
102
|
-
doSmartCrop: boolean;
|
|
103
|
-
doChangeBackground: boolean;
|
|
104
|
-
doRotate: boolean;
|
|
105
|
-
doAddBorders: boolean;
|
|
106
|
-
shadow: boolean;
|
|
107
|
-
targetWidth?: number | null | undefined;
|
|
108
|
-
targetHeight?: number | null | undefined;
|
|
109
|
-
newBackgroundColor?: string | null | undefined;
|
|
110
|
-
newBackgroundUrl?: string | null | undefined;
|
|
111
|
-
rotationAngle?: number | null | undefined;
|
|
112
|
-
borderSize?: number | null | undefined;
|
|
113
|
-
borderColor?: string | null | undefined;
|
|
114
|
-
}>;
|
|
115
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
type: "VISION";
|
|
117
|
-
data: {
|
|
118
|
-
doRemoveBackground: boolean;
|
|
119
|
-
doSmartCrop: boolean;
|
|
120
|
-
doChangeBackground: boolean;
|
|
121
|
-
doRotate: boolean;
|
|
122
|
-
doAddBorders: boolean;
|
|
123
|
-
shadow: boolean;
|
|
124
|
-
targetWidth?: number | null | undefined;
|
|
125
|
-
targetHeight?: number | null | undefined;
|
|
126
|
-
newBackgroundColor?: string | null | undefined;
|
|
127
|
-
newBackgroundUrl?: string | null | undefined;
|
|
128
|
-
rotationAngle?: number | null | undefined;
|
|
129
|
-
borderSize?: number | null | undefined;
|
|
130
|
-
borderColor?: string | null | undefined;
|
|
131
|
-
};
|
|
132
|
-
}, {
|
|
133
|
-
type: "VISION";
|
|
134
|
-
data: {
|
|
135
|
-
doRemoveBackground: boolean;
|
|
136
|
-
doSmartCrop: boolean;
|
|
137
|
-
doChangeBackground: boolean;
|
|
138
|
-
doRotate: boolean;
|
|
139
|
-
doAddBorders: boolean;
|
|
140
|
-
shadow: boolean;
|
|
141
|
-
targetWidth?: number | null | undefined;
|
|
142
|
-
targetHeight?: number | null | undefined;
|
|
143
|
-
newBackgroundColor?: string | null | undefined;
|
|
144
|
-
newBackgroundUrl?: string | null | undefined;
|
|
145
|
-
rotationAngle?: number | null | undefined;
|
|
146
|
-
borderSize?: number | null | undefined;
|
|
147
|
-
borderColor?: string | null | undefined;
|
|
148
|
-
};
|
|
149
70
|
}>, z.ZodObject<{
|
|
150
71
|
type: z.ZodLiteral<"TEXT">;
|
|
151
72
|
data: z.ZodObject<{
|
|
@@ -166,8 +87,9 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
166
87
|
text: string;
|
|
167
88
|
};
|
|
168
89
|
}>]>;
|
|
90
|
+
mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
169
91
|
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
type: "MESSAGE" | "
|
|
92
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
171
93
|
payload: {
|
|
172
94
|
type: "EMPTY";
|
|
173
95
|
} | {
|
|
@@ -184,23 +106,6 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
184
106
|
roundStep?: number | null | undefined;
|
|
185
107
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
186
108
|
};
|
|
187
|
-
} | {
|
|
188
|
-
type: "VISION";
|
|
189
|
-
data: {
|
|
190
|
-
doRemoveBackground: boolean;
|
|
191
|
-
doSmartCrop: boolean;
|
|
192
|
-
doChangeBackground: boolean;
|
|
193
|
-
doRotate: boolean;
|
|
194
|
-
doAddBorders: boolean;
|
|
195
|
-
shadow: boolean;
|
|
196
|
-
targetWidth?: number | null | undefined;
|
|
197
|
-
targetHeight?: number | null | undefined;
|
|
198
|
-
newBackgroundColor?: string | null | undefined;
|
|
199
|
-
newBackgroundUrl?: string | null | undefined;
|
|
200
|
-
rotationAngle?: number | null | undefined;
|
|
201
|
-
borderSize?: number | null | undefined;
|
|
202
|
-
borderColor?: string | null | undefined;
|
|
203
|
-
};
|
|
204
109
|
} | {
|
|
205
110
|
type: "TEXT";
|
|
206
111
|
data: {
|
|
@@ -208,8 +113,9 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
208
113
|
};
|
|
209
114
|
};
|
|
210
115
|
enabled: boolean;
|
|
116
|
+
mandatory?: boolean | null | undefined;
|
|
211
117
|
}, {
|
|
212
|
-
type: "MESSAGE" | "
|
|
118
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
213
119
|
payload: {
|
|
214
120
|
type: "EMPTY";
|
|
215
121
|
} | {
|
|
@@ -226,23 +132,6 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
226
132
|
roundStep?: number | null | undefined;
|
|
227
133
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
228
134
|
};
|
|
229
|
-
} | {
|
|
230
|
-
type: "VISION";
|
|
231
|
-
data: {
|
|
232
|
-
doRemoveBackground: boolean;
|
|
233
|
-
doSmartCrop: boolean;
|
|
234
|
-
doChangeBackground: boolean;
|
|
235
|
-
doRotate: boolean;
|
|
236
|
-
doAddBorders: boolean;
|
|
237
|
-
shadow: boolean;
|
|
238
|
-
targetWidth?: number | null | undefined;
|
|
239
|
-
targetHeight?: number | null | undefined;
|
|
240
|
-
newBackgroundColor?: string | null | undefined;
|
|
241
|
-
newBackgroundUrl?: string | null | undefined;
|
|
242
|
-
rotationAngle?: number | null | undefined;
|
|
243
|
-
borderSize?: number | null | undefined;
|
|
244
|
-
borderColor?: string | null | undefined;
|
|
245
|
-
};
|
|
246
135
|
} | {
|
|
247
136
|
type: "TEXT";
|
|
248
137
|
data: {
|
|
@@ -250,10 +139,11 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
250
139
|
};
|
|
251
140
|
};
|
|
252
141
|
enabled: boolean;
|
|
142
|
+
mandatory?: boolean | null | undefined;
|
|
253
143
|
}>, "many">;
|
|
254
144
|
}, "strip", z.ZodTypeAny, {
|
|
255
145
|
actions: {
|
|
256
|
-
type: "MESSAGE" | "
|
|
146
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
257
147
|
payload: {
|
|
258
148
|
type: "EMPTY";
|
|
259
149
|
} | {
|
|
@@ -270,23 +160,6 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
270
160
|
roundStep?: number | null | undefined;
|
|
271
161
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
272
162
|
};
|
|
273
|
-
} | {
|
|
274
|
-
type: "VISION";
|
|
275
|
-
data: {
|
|
276
|
-
doRemoveBackground: boolean;
|
|
277
|
-
doSmartCrop: boolean;
|
|
278
|
-
doChangeBackground: boolean;
|
|
279
|
-
doRotate: boolean;
|
|
280
|
-
doAddBorders: boolean;
|
|
281
|
-
shadow: boolean;
|
|
282
|
-
targetWidth?: number | null | undefined;
|
|
283
|
-
targetHeight?: number | null | undefined;
|
|
284
|
-
newBackgroundColor?: string | null | undefined;
|
|
285
|
-
newBackgroundUrl?: string | null | undefined;
|
|
286
|
-
rotationAngle?: number | null | undefined;
|
|
287
|
-
borderSize?: number | null | undefined;
|
|
288
|
-
borderColor?: string | null | undefined;
|
|
289
|
-
};
|
|
290
163
|
} | {
|
|
291
164
|
type: "TEXT";
|
|
292
165
|
data: {
|
|
@@ -294,10 +167,11 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
294
167
|
};
|
|
295
168
|
};
|
|
296
169
|
enabled: boolean;
|
|
170
|
+
mandatory?: boolean | null | undefined;
|
|
297
171
|
}[];
|
|
298
172
|
}, {
|
|
299
173
|
actions: {
|
|
300
|
-
type: "MESSAGE" | "
|
|
174
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
301
175
|
payload: {
|
|
302
176
|
type: "EMPTY";
|
|
303
177
|
} | {
|
|
@@ -314,23 +188,6 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
314
188
|
roundStep?: number | null | undefined;
|
|
315
189
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
316
190
|
};
|
|
317
|
-
} | {
|
|
318
|
-
type: "VISION";
|
|
319
|
-
data: {
|
|
320
|
-
doRemoveBackground: boolean;
|
|
321
|
-
doSmartCrop: boolean;
|
|
322
|
-
doChangeBackground: boolean;
|
|
323
|
-
doRotate: boolean;
|
|
324
|
-
doAddBorders: boolean;
|
|
325
|
-
shadow: boolean;
|
|
326
|
-
targetWidth?: number | null | undefined;
|
|
327
|
-
targetHeight?: number | null | undefined;
|
|
328
|
-
newBackgroundColor?: string | null | undefined;
|
|
329
|
-
newBackgroundUrl?: string | null | undefined;
|
|
330
|
-
rotationAngle?: number | null | undefined;
|
|
331
|
-
borderSize?: number | null | undefined;
|
|
332
|
-
borderColor?: string | null | undefined;
|
|
333
|
-
};
|
|
334
191
|
} | {
|
|
335
192
|
type: "TEXT";
|
|
336
193
|
data: {
|
|
@@ -338,6 +195,7 @@ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
|
|
|
338
195
|
};
|
|
339
196
|
};
|
|
340
197
|
enabled: boolean;
|
|
198
|
+
mandatory?: boolean | null | undefined;
|
|
341
199
|
}[];
|
|
342
200
|
}>;
|
|
343
201
|
export type PreferenceActionsPayload = z.infer<typeof PreferenceActionsPayloadSchema>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TryVisionPayloadSchema: z.ZodObject<{
|
|
3
|
+
payload: 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
|
+
fileId: z.ZodString;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
fileId: string;
|
|
49
|
+
payload: {
|
|
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
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
fileId: string;
|
|
66
|
+
payload: {
|
|
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
|
+
};
|
|
81
|
+
}>;
|
|
82
|
+
export type TryVisionPayload = z.infer<typeof TryVisionPayloadSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TryVisionPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const PreferenceVisionPayload_1 = require("./PreferenceVisionPayload");
|
|
6
|
+
exports.TryVisionPayloadSchema = zod_1.z.object({
|
|
7
|
+
payload: PreferenceVisionPayload_1.PreferenceVisionPayloadSchema,
|
|
8
|
+
fileId: zod_1.z.string().uuid()
|
|
9
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {PreferenceVisionPayloadSchema} from "./PreferenceVisionPayload"
|
|
3
|
+
|
|
4
|
+
export const TryVisionPayloadSchema = z.object({
|
|
5
|
+
payload: PreferenceVisionPayloadSchema,
|
|
6
|
+
fileId: z.string().uuid()
|
|
7
|
+
})
|
|
8
|
+
export type TryVisionPayload = z.infer<typeof TryVisionPayloadSchema>
|