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
|
@@ -3,7 +3,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
parentPreferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
6
|
-
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"]>;
|
|
6
|
+
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"]>;
|
|
7
7
|
enabled: z.ZodBoolean;
|
|
8
8
|
testMode: z.ZodBoolean;
|
|
9
9
|
cases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -231,85 +231,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
231
231
|
roundStep?: number | null | undefined;
|
|
232
232
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
233
233
|
};
|
|
234
|
-
}>, z.ZodObject<{
|
|
235
|
-
type: z.ZodLiteral<"VISION">;
|
|
236
|
-
data: z.ZodObject<{
|
|
237
|
-
doRemoveBackground: z.ZodBoolean;
|
|
238
|
-
doSmartCrop: z.ZodBoolean;
|
|
239
|
-
doChangeBackground: z.ZodBoolean;
|
|
240
|
-
doRotate: z.ZodBoolean;
|
|
241
|
-
doAddBorders: z.ZodBoolean;
|
|
242
|
-
shadow: z.ZodBoolean;
|
|
243
|
-
targetWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
244
|
-
targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
245
|
-
newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
|
-
newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
|
-
rotationAngle: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
248
|
-
borderSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
249
|
-
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
-
}, "strip", z.ZodTypeAny, {
|
|
251
|
-
doRemoveBackground: boolean;
|
|
252
|
-
doSmartCrop: boolean;
|
|
253
|
-
doChangeBackground: boolean;
|
|
254
|
-
doRotate: boolean;
|
|
255
|
-
doAddBorders: boolean;
|
|
256
|
-
shadow: boolean;
|
|
257
|
-
targetWidth?: number | null | undefined;
|
|
258
|
-
targetHeight?: number | null | undefined;
|
|
259
|
-
newBackgroundColor?: string | null | undefined;
|
|
260
|
-
newBackgroundUrl?: string | null | undefined;
|
|
261
|
-
rotationAngle?: number | null | undefined;
|
|
262
|
-
borderSize?: number | null | undefined;
|
|
263
|
-
borderColor?: string | null | undefined;
|
|
264
|
-
}, {
|
|
265
|
-
doRemoveBackground: boolean;
|
|
266
|
-
doSmartCrop: boolean;
|
|
267
|
-
doChangeBackground: boolean;
|
|
268
|
-
doRotate: boolean;
|
|
269
|
-
doAddBorders: boolean;
|
|
270
|
-
shadow: boolean;
|
|
271
|
-
targetWidth?: number | null | undefined;
|
|
272
|
-
targetHeight?: number | null | undefined;
|
|
273
|
-
newBackgroundColor?: string | null | undefined;
|
|
274
|
-
newBackgroundUrl?: string | null | undefined;
|
|
275
|
-
rotationAngle?: number | null | undefined;
|
|
276
|
-
borderSize?: number | null | undefined;
|
|
277
|
-
borderColor?: string | null | undefined;
|
|
278
|
-
}>;
|
|
279
|
-
}, "strip", z.ZodTypeAny, {
|
|
280
|
-
type: "VISION";
|
|
281
|
-
data: {
|
|
282
|
-
doRemoveBackground: boolean;
|
|
283
|
-
doSmartCrop: boolean;
|
|
284
|
-
doChangeBackground: boolean;
|
|
285
|
-
doRotate: boolean;
|
|
286
|
-
doAddBorders: boolean;
|
|
287
|
-
shadow: boolean;
|
|
288
|
-
targetWidth?: number | null | undefined;
|
|
289
|
-
targetHeight?: number | null | undefined;
|
|
290
|
-
newBackgroundColor?: string | null | undefined;
|
|
291
|
-
newBackgroundUrl?: string | null | undefined;
|
|
292
|
-
rotationAngle?: number | null | undefined;
|
|
293
|
-
borderSize?: number | null | undefined;
|
|
294
|
-
borderColor?: string | null | undefined;
|
|
295
|
-
};
|
|
296
|
-
}, {
|
|
297
|
-
type: "VISION";
|
|
298
|
-
data: {
|
|
299
|
-
doRemoveBackground: boolean;
|
|
300
|
-
doSmartCrop: boolean;
|
|
301
|
-
doChangeBackground: boolean;
|
|
302
|
-
doRotate: boolean;
|
|
303
|
-
doAddBorders: boolean;
|
|
304
|
-
shadow: boolean;
|
|
305
|
-
targetWidth?: number | null | undefined;
|
|
306
|
-
targetHeight?: number | null | undefined;
|
|
307
|
-
newBackgroundColor?: string | null | undefined;
|
|
308
|
-
newBackgroundUrl?: string | null | undefined;
|
|
309
|
-
rotationAngle?: number | null | undefined;
|
|
310
|
-
borderSize?: number | null | undefined;
|
|
311
|
-
borderColor?: string | null | undefined;
|
|
312
|
-
};
|
|
313
234
|
}>, z.ZodObject<{
|
|
314
235
|
type: z.ZodLiteral<"TEXT">;
|
|
315
236
|
data: z.ZodObject<{
|
|
@@ -330,8 +251,9 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
330
251
|
text: string;
|
|
331
252
|
};
|
|
332
253
|
}>]>;
|
|
254
|
+
mandatory: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
333
255
|
}, "strip", z.ZodTypeAny, {
|
|
334
|
-
type: "MESSAGE" | "
|
|
256
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
335
257
|
payload: {
|
|
336
258
|
type: "EMPTY";
|
|
337
259
|
} | {
|
|
@@ -348,23 +270,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
348
270
|
roundStep?: number | null | undefined;
|
|
349
271
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
350
272
|
};
|
|
351
|
-
} | {
|
|
352
|
-
type: "VISION";
|
|
353
|
-
data: {
|
|
354
|
-
doRemoveBackground: boolean;
|
|
355
|
-
doSmartCrop: boolean;
|
|
356
|
-
doChangeBackground: boolean;
|
|
357
|
-
doRotate: boolean;
|
|
358
|
-
doAddBorders: boolean;
|
|
359
|
-
shadow: boolean;
|
|
360
|
-
targetWidth?: number | null | undefined;
|
|
361
|
-
targetHeight?: number | null | undefined;
|
|
362
|
-
newBackgroundColor?: string | null | undefined;
|
|
363
|
-
newBackgroundUrl?: string | null | undefined;
|
|
364
|
-
rotationAngle?: number | null | undefined;
|
|
365
|
-
borderSize?: number | null | undefined;
|
|
366
|
-
borderColor?: string | null | undefined;
|
|
367
|
-
};
|
|
368
273
|
} | {
|
|
369
274
|
type: "TEXT";
|
|
370
275
|
data: {
|
|
@@ -372,8 +277,9 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
372
277
|
};
|
|
373
278
|
};
|
|
374
279
|
enabled: boolean;
|
|
280
|
+
mandatory?: boolean | null | undefined;
|
|
375
281
|
}, {
|
|
376
|
-
type: "MESSAGE" | "
|
|
282
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
377
283
|
payload: {
|
|
378
284
|
type: "EMPTY";
|
|
379
285
|
} | {
|
|
@@ -390,23 +296,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
390
296
|
roundStep?: number | null | undefined;
|
|
391
297
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
392
298
|
};
|
|
393
|
-
} | {
|
|
394
|
-
type: "VISION";
|
|
395
|
-
data: {
|
|
396
|
-
doRemoveBackground: boolean;
|
|
397
|
-
doSmartCrop: boolean;
|
|
398
|
-
doChangeBackground: boolean;
|
|
399
|
-
doRotate: boolean;
|
|
400
|
-
doAddBorders: boolean;
|
|
401
|
-
shadow: boolean;
|
|
402
|
-
targetWidth?: number | null | undefined;
|
|
403
|
-
targetHeight?: number | null | undefined;
|
|
404
|
-
newBackgroundColor?: string | null | undefined;
|
|
405
|
-
newBackgroundUrl?: string | null | undefined;
|
|
406
|
-
rotationAngle?: number | null | undefined;
|
|
407
|
-
borderSize?: number | null | undefined;
|
|
408
|
-
borderColor?: string | null | undefined;
|
|
409
|
-
};
|
|
410
299
|
} | {
|
|
411
300
|
type: "TEXT";
|
|
412
301
|
data: {
|
|
@@ -414,10 +303,11 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
414
303
|
};
|
|
415
304
|
};
|
|
416
305
|
enabled: boolean;
|
|
306
|
+
mandatory?: boolean | null | undefined;
|
|
417
307
|
}>, "many">;
|
|
418
308
|
}, "strip", z.ZodTypeAny, {
|
|
419
309
|
actions: {
|
|
420
|
-
type: "MESSAGE" | "
|
|
310
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
421
311
|
payload: {
|
|
422
312
|
type: "EMPTY";
|
|
423
313
|
} | {
|
|
@@ -434,23 +324,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
434
324
|
roundStep?: number | null | undefined;
|
|
435
325
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
436
326
|
};
|
|
437
|
-
} | {
|
|
438
|
-
type: "VISION";
|
|
439
|
-
data: {
|
|
440
|
-
doRemoveBackground: boolean;
|
|
441
|
-
doSmartCrop: boolean;
|
|
442
|
-
doChangeBackground: boolean;
|
|
443
|
-
doRotate: boolean;
|
|
444
|
-
doAddBorders: boolean;
|
|
445
|
-
shadow: boolean;
|
|
446
|
-
targetWidth?: number | null | undefined;
|
|
447
|
-
targetHeight?: number | null | undefined;
|
|
448
|
-
newBackgroundColor?: string | null | undefined;
|
|
449
|
-
newBackgroundUrl?: string | null | undefined;
|
|
450
|
-
rotationAngle?: number | null | undefined;
|
|
451
|
-
borderSize?: number | null | undefined;
|
|
452
|
-
borderColor?: string | null | undefined;
|
|
453
|
-
};
|
|
454
327
|
} | {
|
|
455
328
|
type: "TEXT";
|
|
456
329
|
data: {
|
|
@@ -458,10 +331,11 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
458
331
|
};
|
|
459
332
|
};
|
|
460
333
|
enabled: boolean;
|
|
334
|
+
mandatory?: boolean | null | undefined;
|
|
461
335
|
}[];
|
|
462
336
|
}, {
|
|
463
337
|
actions: {
|
|
464
|
-
type: "MESSAGE" | "
|
|
338
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
465
339
|
payload: {
|
|
466
340
|
type: "EMPTY";
|
|
467
341
|
} | {
|
|
@@ -478,23 +352,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
478
352
|
roundStep?: number | null | undefined;
|
|
479
353
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
480
354
|
};
|
|
481
|
-
} | {
|
|
482
|
-
type: "VISION";
|
|
483
|
-
data: {
|
|
484
|
-
doRemoveBackground: boolean;
|
|
485
|
-
doSmartCrop: boolean;
|
|
486
|
-
doChangeBackground: boolean;
|
|
487
|
-
doRotate: boolean;
|
|
488
|
-
doAddBorders: boolean;
|
|
489
|
-
shadow: boolean;
|
|
490
|
-
targetWidth?: number | null | undefined;
|
|
491
|
-
targetHeight?: number | null | undefined;
|
|
492
|
-
newBackgroundColor?: string | null | undefined;
|
|
493
|
-
newBackgroundUrl?: string | null | undefined;
|
|
494
|
-
rotationAngle?: number | null | undefined;
|
|
495
|
-
borderSize?: number | null | undefined;
|
|
496
|
-
borderColor?: string | null | undefined;
|
|
497
|
-
};
|
|
498
355
|
} | {
|
|
499
356
|
type: "TEXT";
|
|
500
357
|
data: {
|
|
@@ -502,13 +359,14 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
502
359
|
};
|
|
503
360
|
};
|
|
504
361
|
enabled: boolean;
|
|
362
|
+
mandatory?: boolean | null | undefined;
|
|
505
363
|
}[];
|
|
506
364
|
}>;
|
|
507
365
|
}, "strip", z.ZodTypeAny, {
|
|
508
366
|
type: "ACTIONS";
|
|
509
367
|
data: {
|
|
510
368
|
actions: {
|
|
511
|
-
type: "MESSAGE" | "
|
|
369
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
512
370
|
payload: {
|
|
513
371
|
type: "EMPTY";
|
|
514
372
|
} | {
|
|
@@ -525,23 +383,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
525
383
|
roundStep?: number | null | undefined;
|
|
526
384
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
527
385
|
};
|
|
528
|
-
} | {
|
|
529
|
-
type: "VISION";
|
|
530
|
-
data: {
|
|
531
|
-
doRemoveBackground: boolean;
|
|
532
|
-
doSmartCrop: boolean;
|
|
533
|
-
doChangeBackground: boolean;
|
|
534
|
-
doRotate: boolean;
|
|
535
|
-
doAddBorders: boolean;
|
|
536
|
-
shadow: boolean;
|
|
537
|
-
targetWidth?: number | null | undefined;
|
|
538
|
-
targetHeight?: number | null | undefined;
|
|
539
|
-
newBackgroundColor?: string | null | undefined;
|
|
540
|
-
newBackgroundUrl?: string | null | undefined;
|
|
541
|
-
rotationAngle?: number | null | undefined;
|
|
542
|
-
borderSize?: number | null | undefined;
|
|
543
|
-
borderColor?: string | null | undefined;
|
|
544
|
-
};
|
|
545
386
|
} | {
|
|
546
387
|
type: "TEXT";
|
|
547
388
|
data: {
|
|
@@ -549,13 +390,14 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
549
390
|
};
|
|
550
391
|
};
|
|
551
392
|
enabled: boolean;
|
|
393
|
+
mandatory?: boolean | null | undefined;
|
|
552
394
|
}[];
|
|
553
395
|
};
|
|
554
396
|
}, {
|
|
555
397
|
type: "ACTIONS";
|
|
556
398
|
data: {
|
|
557
399
|
actions: {
|
|
558
|
-
type: "MESSAGE" | "
|
|
400
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
559
401
|
payload: {
|
|
560
402
|
type: "EMPTY";
|
|
561
403
|
} | {
|
|
@@ -572,23 +414,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
572
414
|
roundStep?: number | null | undefined;
|
|
573
415
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
574
416
|
};
|
|
575
|
-
} | {
|
|
576
|
-
type: "VISION";
|
|
577
|
-
data: {
|
|
578
|
-
doRemoveBackground: boolean;
|
|
579
|
-
doSmartCrop: boolean;
|
|
580
|
-
doChangeBackground: boolean;
|
|
581
|
-
doRotate: boolean;
|
|
582
|
-
doAddBorders: boolean;
|
|
583
|
-
shadow: boolean;
|
|
584
|
-
targetWidth?: number | null | undefined;
|
|
585
|
-
targetHeight?: number | null | undefined;
|
|
586
|
-
newBackgroundColor?: string | null | undefined;
|
|
587
|
-
newBackgroundUrl?: string | null | undefined;
|
|
588
|
-
rotationAngle?: number | null | undefined;
|
|
589
|
-
borderSize?: number | null | undefined;
|
|
590
|
-
borderColor?: string | null | undefined;
|
|
591
|
-
};
|
|
592
417
|
} | {
|
|
593
418
|
type: "TEXT";
|
|
594
419
|
data: {
|
|
@@ -596,6 +421,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
596
421
|
};
|
|
597
422
|
};
|
|
598
423
|
enabled: boolean;
|
|
424
|
+
mandatory?: boolean | null | undefined;
|
|
599
425
|
}[];
|
|
600
426
|
};
|
|
601
427
|
}>, z.ZodObject<{
|
|
@@ -679,7 +505,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
679
505
|
type: "ACTIONS";
|
|
680
506
|
data: {
|
|
681
507
|
actions: {
|
|
682
|
-
type: "MESSAGE" | "
|
|
508
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
683
509
|
payload: {
|
|
684
510
|
type: "EMPTY";
|
|
685
511
|
} | {
|
|
@@ -696,23 +522,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
696
522
|
roundStep?: number | null | undefined;
|
|
697
523
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
698
524
|
};
|
|
699
|
-
} | {
|
|
700
|
-
type: "VISION";
|
|
701
|
-
data: {
|
|
702
|
-
doRemoveBackground: boolean;
|
|
703
|
-
doSmartCrop: boolean;
|
|
704
|
-
doChangeBackground: boolean;
|
|
705
|
-
doRotate: boolean;
|
|
706
|
-
doAddBorders: boolean;
|
|
707
|
-
shadow: boolean;
|
|
708
|
-
targetWidth?: number | null | undefined;
|
|
709
|
-
targetHeight?: number | null | undefined;
|
|
710
|
-
newBackgroundColor?: string | null | undefined;
|
|
711
|
-
newBackgroundUrl?: string | null | undefined;
|
|
712
|
-
rotationAngle?: number | null | undefined;
|
|
713
|
-
borderSize?: number | null | undefined;
|
|
714
|
-
borderColor?: string | null | undefined;
|
|
715
|
-
};
|
|
716
525
|
} | {
|
|
717
526
|
type: "TEXT";
|
|
718
527
|
data: {
|
|
@@ -720,6 +529,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
720
529
|
};
|
|
721
530
|
};
|
|
722
531
|
enabled: boolean;
|
|
532
|
+
mandatory?: boolean | null | undefined;
|
|
723
533
|
}[];
|
|
724
534
|
};
|
|
725
535
|
} | {
|
|
@@ -773,7 +583,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
773
583
|
type: "ACTIONS";
|
|
774
584
|
data: {
|
|
775
585
|
actions: {
|
|
776
|
-
type: "MESSAGE" | "
|
|
586
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
777
587
|
payload: {
|
|
778
588
|
type: "EMPTY";
|
|
779
589
|
} | {
|
|
@@ -790,23 +600,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
790
600
|
roundStep?: number | null | undefined;
|
|
791
601
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
792
602
|
};
|
|
793
|
-
} | {
|
|
794
|
-
type: "VISION";
|
|
795
|
-
data: {
|
|
796
|
-
doRemoveBackground: boolean;
|
|
797
|
-
doSmartCrop: boolean;
|
|
798
|
-
doChangeBackground: boolean;
|
|
799
|
-
doRotate: boolean;
|
|
800
|
-
doAddBorders: boolean;
|
|
801
|
-
shadow: boolean;
|
|
802
|
-
targetWidth?: number | null | undefined;
|
|
803
|
-
targetHeight?: number | null | undefined;
|
|
804
|
-
newBackgroundColor?: string | null | undefined;
|
|
805
|
-
newBackgroundUrl?: string | null | undefined;
|
|
806
|
-
rotationAngle?: number | null | undefined;
|
|
807
|
-
borderSize?: number | null | undefined;
|
|
808
|
-
borderColor?: string | null | undefined;
|
|
809
|
-
};
|
|
810
603
|
} | {
|
|
811
604
|
type: "TEXT";
|
|
812
605
|
data: {
|
|
@@ -814,6 +607,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
814
607
|
};
|
|
815
608
|
};
|
|
816
609
|
enabled: boolean;
|
|
610
|
+
mandatory?: boolean | null | undefined;
|
|
817
611
|
}[];
|
|
818
612
|
};
|
|
819
613
|
} | {
|
|
@@ -875,7 +669,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
875
669
|
type: "ACTIONS";
|
|
876
670
|
data: {
|
|
877
671
|
actions: {
|
|
878
|
-
type: "MESSAGE" | "
|
|
672
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
879
673
|
payload: {
|
|
880
674
|
type: "EMPTY";
|
|
881
675
|
} | {
|
|
@@ -892,23 +686,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
892
686
|
roundStep?: number | null | undefined;
|
|
893
687
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
894
688
|
};
|
|
895
|
-
} | {
|
|
896
|
-
type: "VISION";
|
|
897
|
-
data: {
|
|
898
|
-
doRemoveBackground: boolean;
|
|
899
|
-
doSmartCrop: boolean;
|
|
900
|
-
doChangeBackground: boolean;
|
|
901
|
-
doRotate: boolean;
|
|
902
|
-
doAddBorders: boolean;
|
|
903
|
-
shadow: boolean;
|
|
904
|
-
targetWidth?: number | null | undefined;
|
|
905
|
-
targetHeight?: number | null | undefined;
|
|
906
|
-
newBackgroundColor?: string | null | undefined;
|
|
907
|
-
newBackgroundUrl?: string | null | undefined;
|
|
908
|
-
rotationAngle?: number | null | undefined;
|
|
909
|
-
borderSize?: number | null | undefined;
|
|
910
|
-
borderColor?: string | null | undefined;
|
|
911
|
-
};
|
|
912
689
|
} | {
|
|
913
690
|
type: "TEXT";
|
|
914
691
|
data: {
|
|
@@ -916,6 +693,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
916
693
|
};
|
|
917
694
|
};
|
|
918
695
|
enabled: boolean;
|
|
696
|
+
mandatory?: boolean | null | undefined;
|
|
919
697
|
}[];
|
|
920
698
|
};
|
|
921
699
|
} | {
|
|
@@ -977,7 +755,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
977
755
|
type: "ACTIONS";
|
|
978
756
|
data: {
|
|
979
757
|
actions: {
|
|
980
|
-
type: "MESSAGE" | "
|
|
758
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
981
759
|
payload: {
|
|
982
760
|
type: "EMPTY";
|
|
983
761
|
} | {
|
|
@@ -994,23 +772,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
994
772
|
roundStep?: number | null | undefined;
|
|
995
773
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
996
774
|
};
|
|
997
|
-
} | {
|
|
998
|
-
type: "VISION";
|
|
999
|
-
data: {
|
|
1000
|
-
doRemoveBackground: boolean;
|
|
1001
|
-
doSmartCrop: boolean;
|
|
1002
|
-
doChangeBackground: boolean;
|
|
1003
|
-
doRotate: boolean;
|
|
1004
|
-
doAddBorders: boolean;
|
|
1005
|
-
shadow: boolean;
|
|
1006
|
-
targetWidth?: number | null | undefined;
|
|
1007
|
-
targetHeight?: number | null | undefined;
|
|
1008
|
-
newBackgroundColor?: string | null | undefined;
|
|
1009
|
-
newBackgroundUrl?: string | null | undefined;
|
|
1010
|
-
rotationAngle?: number | null | undefined;
|
|
1011
|
-
borderSize?: number | null | undefined;
|
|
1012
|
-
borderColor?: string | null | undefined;
|
|
1013
|
-
};
|
|
1014
775
|
} | {
|
|
1015
776
|
type: "TEXT";
|
|
1016
777
|
data: {
|
|
@@ -1018,6 +779,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1018
779
|
};
|
|
1019
780
|
};
|
|
1020
781
|
enabled: boolean;
|
|
782
|
+
mandatory?: boolean | null | undefined;
|
|
1021
783
|
}[];
|
|
1022
784
|
};
|
|
1023
785
|
} | {
|
|
@@ -1034,7 +796,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1034
796
|
}[] | null | undefined;
|
|
1035
797
|
}>, "many">>>;
|
|
1036
798
|
}, "strip", z.ZodTypeAny, {
|
|
1037
|
-
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";
|
|
799
|
+
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";
|
|
1038
800
|
id: string;
|
|
1039
801
|
userId: string | number;
|
|
1040
802
|
enabled: boolean;
|
|
@@ -1087,7 +849,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1087
849
|
type: "ACTIONS";
|
|
1088
850
|
data: {
|
|
1089
851
|
actions: {
|
|
1090
|
-
type: "MESSAGE" | "
|
|
852
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1091
853
|
payload: {
|
|
1092
854
|
type: "EMPTY";
|
|
1093
855
|
} | {
|
|
@@ -1104,23 +866,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1104
866
|
roundStep?: number | null | undefined;
|
|
1105
867
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1106
868
|
};
|
|
1107
|
-
} | {
|
|
1108
|
-
type: "VISION";
|
|
1109
|
-
data: {
|
|
1110
|
-
doRemoveBackground: boolean;
|
|
1111
|
-
doSmartCrop: boolean;
|
|
1112
|
-
doChangeBackground: boolean;
|
|
1113
|
-
doRotate: boolean;
|
|
1114
|
-
doAddBorders: boolean;
|
|
1115
|
-
shadow: boolean;
|
|
1116
|
-
targetWidth?: number | null | undefined;
|
|
1117
|
-
targetHeight?: number | null | undefined;
|
|
1118
|
-
newBackgroundColor?: string | null | undefined;
|
|
1119
|
-
newBackgroundUrl?: string | null | undefined;
|
|
1120
|
-
rotationAngle?: number | null | undefined;
|
|
1121
|
-
borderSize?: number | null | undefined;
|
|
1122
|
-
borderColor?: string | null | undefined;
|
|
1123
|
-
};
|
|
1124
869
|
} | {
|
|
1125
870
|
type: "TEXT";
|
|
1126
871
|
data: {
|
|
@@ -1128,6 +873,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1128
873
|
};
|
|
1129
874
|
};
|
|
1130
875
|
enabled: boolean;
|
|
876
|
+
mandatory?: boolean | null | undefined;
|
|
1131
877
|
}[];
|
|
1132
878
|
};
|
|
1133
879
|
} | {
|
|
@@ -1144,7 +890,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1144
890
|
}[] | null | undefined;
|
|
1145
891
|
}[] | null | undefined;
|
|
1146
892
|
}, {
|
|
1147
|
-
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";
|
|
893
|
+
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";
|
|
1148
894
|
id: string;
|
|
1149
895
|
userId: string | number;
|
|
1150
896
|
enabled: boolean;
|
|
@@ -1197,7 +943,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1197
943
|
type: "ACTIONS";
|
|
1198
944
|
data: {
|
|
1199
945
|
actions: {
|
|
1200
|
-
type: "MESSAGE" | "
|
|
946
|
+
type: "MESSAGE" | "REPUBLISH" | "WAIT" | "PRICE_DROP" | "OFFER_AUTO" | "OFFER_MANUAL";
|
|
1201
947
|
payload: {
|
|
1202
948
|
type: "EMPTY";
|
|
1203
949
|
} | {
|
|
@@ -1214,23 +960,6 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1214
960
|
roundStep?: number | null | undefined;
|
|
1215
961
|
negotiationProfile?: "AUTO" | "MODERATE" | "CONSERVATIVE" | null | undefined;
|
|
1216
962
|
};
|
|
1217
|
-
} | {
|
|
1218
|
-
type: "VISION";
|
|
1219
|
-
data: {
|
|
1220
|
-
doRemoveBackground: boolean;
|
|
1221
|
-
doSmartCrop: boolean;
|
|
1222
|
-
doChangeBackground: boolean;
|
|
1223
|
-
doRotate: boolean;
|
|
1224
|
-
doAddBorders: boolean;
|
|
1225
|
-
shadow: boolean;
|
|
1226
|
-
targetWidth?: number | null | undefined;
|
|
1227
|
-
targetHeight?: number | null | undefined;
|
|
1228
|
-
newBackgroundColor?: string | null | undefined;
|
|
1229
|
-
newBackgroundUrl?: string | null | undefined;
|
|
1230
|
-
rotationAngle?: number | null | undefined;
|
|
1231
|
-
borderSize?: number | null | undefined;
|
|
1232
|
-
borderColor?: string | null | undefined;
|
|
1233
|
-
};
|
|
1234
963
|
} | {
|
|
1235
964
|
type: "TEXT";
|
|
1236
965
|
data: {
|
|
@@ -1238,6 +967,7 @@ export declare const PreferenceSchema: z.ZodObject<{
|
|
|
1238
967
|
};
|
|
1239
968
|
};
|
|
1240
969
|
enabled: boolean;
|
|
970
|
+
mandatory?: boolean | null | undefined;
|
|
1241
971
|
}[];
|
|
1242
972
|
};
|
|
1243
973
|
} | {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const PreferenceTypeSchema: 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"]>;
|
|
2
|
+
export declare const PreferenceTypeSchema: 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"]>;
|
|
3
3
|
export type PreferenceType = z.infer<typeof PreferenceTypeSchema>;
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PreferenceTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.PreferenceTypeSchema = zod_1.z.enum([
|
|
6
|
-
"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"
|
|
6
|
+
"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"
|
|
7
7
|
]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
|
|
3
3
|
export const PreferenceTypeSchema = z.enum([
|
|
4
|
-
"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
|
+
"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
|
])
|
|
6
6
|
export type PreferenceType = z.infer<typeof PreferenceTypeSchema>
|