controlresell 2.1.13 → 2.2.0

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.
Files changed (81) hide show
  1. package/package.json +3 -3
  2. package/src/com/controlresell/models/items/CreatedItems.d.ts +14 -0
  3. package/src/com/controlresell/models/items/Item.d.ts +7 -0
  4. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +9 -0
  5. package/src/com/controlresell/models/items/UpdatedItem.d.ts +14 -0
  6. package/src/com/controlresell/models/items/labels/ItemLabel.d.ts +5 -0
  7. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -3
  8. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +1 -1
  9. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +1 -1
  10. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +5 -5
  11. package/src/com/controlresell/models/metadata/labels/Label.d.ts +3 -0
  12. package/src/com/controlresell/models/metadata/labels/Label.js +2 -1
  13. package/src/com/controlresell/models/metadata/labels/Label.ts +2 -1
  14. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +9 -0
  15. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.d.ts +3 -0
  16. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.js +2 -1
  17. package/src/com/controlresell/models/platforms/preferences/CreatePlatformPreferencePayload.ts +2 -1
  18. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.d.ts +3 -0
  19. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.js +2 -1
  20. package/src/com/controlresell/models/platforms/preferences/PlatformPreference.ts +2 -1
  21. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.d.ts +3 -0
  22. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.js +2 -1
  23. package/src/com/controlresell/models/platforms/preferences/UpdatePlatformPreferencePayload.ts +2 -1
  24. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +9 -0
  25. package/src/com/controlresell/models/preferences/CreatePreferencePayload.d.ts +18 -0
  26. package/src/com/controlresell/models/preferences/CreatePreferencePayload.js +11 -0
  27. package/src/com/controlresell/models/preferences/CreatePreferencePayload.ts +10 -0
  28. package/src/com/controlresell/models/preferences/Preference.d.ts +52 -0
  29. package/src/com/controlresell/models/preferences/Preference.js +16 -0
  30. package/src/com/controlresell/models/preferences/Preference.ts +15 -0
  31. package/src/com/controlresell/models/preferences/PreferenceType.d.ts +3 -0
  32. package/src/com/controlresell/models/preferences/PreferenceType.js +7 -0
  33. package/src/com/controlresell/models/preferences/PreferenceType.ts +6 -0
  34. package/src/com/controlresell/models/preferences/UpdatePreferencePayload.d.ts +12 -0
  35. package/src/com/controlresell/models/preferences/UpdatePreferencePayload.js +8 -0
  36. package/src/com/controlresell/models/preferences/UpdatePreferencePayload.ts +7 -0
  37. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +18 -0
  38. package/src/com/controlresell/models/preferences/cases/PreferenceCase.js +10 -0
  39. package/src/com/controlresell/models/preferences/cases/PreferenceCase.ts +9 -0
  40. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.d.ts +12 -0
  41. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.js +8 -0
  42. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.ts +7 -0
  43. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +12 -0
  44. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.js +9 -0
  45. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.ts +8 -0
  46. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.d.ts +3 -0
  47. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.js +7 -0
  48. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayloadType.ts +6 -0
  49. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionVariantPayload.d.ts +27 -0
  50. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionVariantPayload.js +9 -0
  51. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionVariantPayload.ts +8 -0
  52. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +45 -0
  53. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.js +8 -0
  54. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.ts +7 -0
  55. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayload.d.ts +24 -0
  56. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayload.js +8 -0
  57. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayload.ts +7 -0
  58. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayloadFee.d.ts +12 -0
  59. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayloadFee.js +8 -0
  60. package/src/com/controlresell/models/preferences/payloads/fees/PreferenceFeesPayloadFee.ts +7 -0
  61. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.d.ts +18 -0
  62. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.js +12 -0
  63. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayload.ts +11 -0
  64. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadRoundType.d.ts +3 -0
  65. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadRoundType.js +7 -0
  66. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadRoundType.ts +6 -0
  67. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadType.d.ts +3 -0
  68. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadType.js +7 -0
  69. package/src/com/controlresell/models/preferences/payloads/prices/PreferencePricePayloadType.ts +6 -0
  70. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextPayload.d.ts +9 -0
  71. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextPayload.js +7 -0
  72. package/src/com/controlresell/models/preferences/payloads/texts/PreferenceTextPayload.ts +6 -0
  73. package/src/com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload.d.ts +45 -0
  74. package/src/com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload.js +19 -0
  75. package/src/com/controlresell/models/preferences/payloads/vision/PreferenceVisionPayload.ts +18 -0
  76. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
  77. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
  78. package/src/com/controlresell/models/users/preferences/UserPreference.d.ts +2 -2
  79. package/src/index.d.ts +17 -0
  80. package/src/index.js +36 -1
  81. package/src/index.ts +17 -0
@@ -7,6 +7,7 @@ export declare const UpdatePlatformPreferencePayloadSchema: z.ZodObject<{
7
7
  targetHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
8
  newBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  newBackgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ descriptionTemplate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
11
  }, "strip", z.ZodTypeAny, {
11
12
  doRemoveBackground: boolean;
12
13
  doSmartCrop: boolean;
@@ -15,6 +16,7 @@ export declare const UpdatePlatformPreferencePayloadSchema: z.ZodObject<{
15
16
  targetHeight?: number | null | undefined;
16
17
  newBackgroundColor?: string | null | undefined;
17
18
  newBackgroundUrl?: string | null | undefined;
19
+ descriptionTemplate?: string | null | undefined;
18
20
  }, {
19
21
  doRemoveBackground: boolean;
20
22
  doSmartCrop: boolean;
@@ -23,5 +25,6 @@ export declare const UpdatePlatformPreferencePayloadSchema: z.ZodObject<{
23
25
  targetHeight?: number | null | undefined;
24
26
  newBackgroundColor?: string | null | undefined;
25
27
  newBackgroundUrl?: string | null | undefined;
28
+ descriptionTemplate?: string | null | undefined;
26
29
  }>;
27
30
  export type UpdatePlatformPreferencePayload = z.infer<typeof UpdatePlatformPreferencePayloadSchema>;
@@ -9,5 +9,6 @@ exports.UpdatePlatformPreferencePayloadSchema = zod_1.z.object({
9
9
  targetWidth: zod_1.z.number().int().nullish(),
10
10
  targetHeight: zod_1.z.number().int().nullish(),
11
11
  newBackgroundColor: zod_1.z.string().nullish(),
12
- newBackgroundUrl: zod_1.z.string().nullish()
12
+ newBackgroundUrl: zod_1.z.string().nullish(),
13
+ descriptionTemplate: zod_1.z.string().nullish()
13
14
  });
@@ -7,6 +7,7 @@ export const UpdatePlatformPreferencePayloadSchema = z.object({
7
7
  targetWidth: z.number().int().nullish(),
8
8
  targetHeight: z.number().int().nullish(),
9
9
  newBackgroundColor: z.string().nullish(),
10
- newBackgroundUrl: z.string().nullish()
10
+ newBackgroundUrl: z.string().nullish(),
11
+ descriptionTemplate: z.string().nullish()
11
12
  })
12
13
  export type UpdatePlatformPreferencePayload = z.infer<typeof UpdatePlatformPreferencePayloadSchema>
@@ -285,17 +285,20 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
285
285
  userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
286
286
  isUserLabel: z.ZodBoolean;
287
287
  createdAt: z.ZodDate;
288
+ itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
288
289
  }, "strip", z.ZodTypeAny, {
289
290
  id: string | number;
290
291
  createdAt: Date;
291
292
  name: string;
292
293
  isUserLabel: boolean;
294
+ itemCount?: number | null | undefined;
293
295
  userId?: string | number | null | undefined;
294
296
  }, {
295
297
  id: string | number;
296
298
  createdAt: Date;
297
299
  name: string;
298
300
  isUserLabel: boolean;
301
+ itemCount?: number | null | undefined;
299
302
  userId?: string | number | null | undefined;
300
303
  }>>>;
301
304
  }, "strip", z.ZodTypeAny, {
@@ -306,6 +309,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
306
309
  createdAt: Date;
307
310
  name: string;
308
311
  isUserLabel: boolean;
312
+ itemCount?: number | null | undefined;
309
313
  userId?: string | number | null | undefined;
310
314
  } | null | undefined;
311
315
  }, {
@@ -316,6 +320,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
316
320
  createdAt: Date;
317
321
  name: string;
318
322
  isUserLabel: boolean;
323
+ itemCount?: number | null | undefined;
319
324
  userId?: string | number | null | undefined;
320
325
  } | null | undefined;
321
326
  }>, "many">>>;
@@ -477,6 +482,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
477
482
  createdAt: Date;
478
483
  name: string;
479
484
  isUserLabel: boolean;
485
+ itemCount?: number | null | undefined;
480
486
  userId?: string | number | null | undefined;
481
487
  } | null | undefined;
482
488
  }[] | null | undefined;
@@ -586,6 +592,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
586
592
  createdAt: Date;
587
593
  name: string;
588
594
  isUserLabel: boolean;
595
+ itemCount?: number | null | undefined;
589
596
  userId?: string | number | null | undefined;
590
597
  } | null | undefined;
591
598
  }[] | null | undefined;
@@ -697,6 +704,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
697
704
  createdAt: Date;
698
705
  name: string;
699
706
  isUserLabel: boolean;
707
+ itemCount?: number | null | undefined;
700
708
  userId?: string | number | null | undefined;
701
709
  } | null | undefined;
702
710
  }[] | null | undefined;
@@ -837,6 +845,7 @@ export declare const TransactionWithItemsSchema: z.ZodObject<{
837
845
  createdAt: Date;
838
846
  name: string;
839
847
  isUserLabel: boolean;
848
+ itemCount?: number | null | undefined;
840
849
  userId?: string | number | null | undefined;
841
850
  } | null | undefined;
842
851
  }[] | null | undefined;
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const CreatePreferencePayloadSchema: z.ZodObject<{
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"]>;
5
+ enabled: z.ZodBoolean;
6
+ testMode: z.ZodBoolean;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type: "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";
9
+ enabled: boolean;
10
+ testMode: boolean;
11
+ parentPreferenceId?: string | null | undefined;
12
+ }, {
13
+ type: "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";
14
+ enabled: boolean;
15
+ testMode: boolean;
16
+ parentPreferenceId?: string | null | undefined;
17
+ }>;
18
+ export type CreatePreferencePayload = z.infer<typeof CreatePreferencePayloadSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePreferencePayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const PreferenceType_1 = require("./PreferenceType");
6
+ exports.CreatePreferencePayloadSchema = zod_1.z.object({
7
+ parentPreferenceId: zod_1.z.string().uuid().nullish(),
8
+ type: PreferenceType_1.PreferenceTypeSchema,
9
+ enabled: zod_1.z.boolean(),
10
+ testMode: zod_1.z.boolean()
11
+ });
@@ -0,0 +1,10 @@
1
+ import {z} from "zod"
2
+ import {PreferenceTypeSchema} from "./PreferenceType"
3
+
4
+ export const CreatePreferencePayloadSchema = z.object({
5
+ parentPreferenceId: z.string().uuid().nullish(),
6
+ type: PreferenceTypeSchema,
7
+ enabled: z.boolean(),
8
+ testMode: z.boolean()
9
+ })
10
+ export type CreatePreferencePayload = z.infer<typeof CreatePreferencePayloadSchema>
@@ -0,0 +1,52 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ parentPreferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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"]>;
7
+ enabled: z.ZodBoolean;
8
+ testMode: z.ZodBoolean;
9
+ cases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
10
+ id: z.ZodString;
11
+ preferenceId: z.ZodString;
12
+ savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ payload: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ payload: string;
17
+ preferenceId: string;
18
+ savedFiltersId?: string | null | undefined;
19
+ }, {
20
+ id: string;
21
+ payload: string;
22
+ preferenceId: string;
23
+ savedFiltersId?: string | null | undefined;
24
+ }>, "many">>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ type: "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";
27
+ id: string;
28
+ userId: string | number;
29
+ enabled: boolean;
30
+ testMode: boolean;
31
+ parentPreferenceId?: string | null | undefined;
32
+ cases?: {
33
+ id: string;
34
+ payload: string;
35
+ preferenceId: string;
36
+ savedFiltersId?: string | null | undefined;
37
+ }[] | null | undefined;
38
+ }, {
39
+ type: "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";
40
+ id: string;
41
+ userId: string | number;
42
+ enabled: boolean;
43
+ testMode: boolean;
44
+ parentPreferenceId?: string | null | undefined;
45
+ cases?: {
46
+ id: string;
47
+ payload: string;
48
+ preferenceId: string;
49
+ savedFiltersId?: string | null | undefined;
50
+ }[] | null | undefined;
51
+ }>;
52
+ export type Preference = z.infer<typeof PreferenceSchema>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const zodable_idschema_1 = require("zodable-idschema");
6
+ const PreferenceType_1 = require("./PreferenceType");
7
+ const PreferenceCase_1 = require("./cases/PreferenceCase");
8
+ exports.PreferenceSchema = zod_1.z.object({
9
+ id: zod_1.z.string().uuid(),
10
+ parentPreferenceId: zod_1.z.string().uuid().nullish(),
11
+ userId: zodable_idschema_1.IdSchema,
12
+ type: PreferenceType_1.PreferenceTypeSchema,
13
+ enabled: zod_1.z.boolean(),
14
+ testMode: zod_1.z.boolean(),
15
+ cases: zod_1.z.array(PreferenceCase_1.PreferenceCaseSchema).nullish()
16
+ });
@@ -0,0 +1,15 @@
1
+ import {z} from "zod"
2
+ import {IdSchema} from "zodable-idschema"
3
+ import {PreferenceTypeSchema} from "./PreferenceType"
4
+ import {PreferenceCaseSchema} from "./cases/PreferenceCase"
5
+
6
+ export const PreferenceSchema = z.object({
7
+ id: z.string().uuid(),
8
+ parentPreferenceId: z.string().uuid().nullish(),
9
+ userId: IdSchema,
10
+ type: PreferenceTypeSchema,
11
+ enabled: z.boolean(),
12
+ testMode: z.boolean(),
13
+ cases: z.array(PreferenceCaseSchema).nullish()
14
+ })
15
+ export type Preference = z.infer<typeof PreferenceSchema>
@@ -0,0 +1,3 @@
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"]>;
3
+ export type PreferenceType = z.infer<typeof PreferenceTypeSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceTypeSchema = void 0;
4
+ const zod_1 = require("zod");
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"
7
+ ]);
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
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"
5
+ ])
6
+ export type PreferenceType = z.infer<typeof PreferenceTypeSchema>
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const UpdatePreferencePayloadSchema: z.ZodObject<{
3
+ enabled: z.ZodBoolean;
4
+ testMode: z.ZodBoolean;
5
+ }, "strip", z.ZodTypeAny, {
6
+ enabled: boolean;
7
+ testMode: boolean;
8
+ }, {
9
+ enabled: boolean;
10
+ testMode: boolean;
11
+ }>;
12
+ export type UpdatePreferencePayload = z.infer<typeof UpdatePreferencePayloadSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePreferencePayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.UpdatePreferencePayloadSchema = zod_1.z.object({
6
+ enabled: zod_1.z.boolean(),
7
+ testMode: zod_1.z.boolean()
8
+ });
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+
3
+ export const UpdatePreferencePayloadSchema = z.object({
4
+ enabled: z.boolean(),
5
+ testMode: z.boolean()
6
+ })
7
+ export type UpdatePreferencePayload = z.infer<typeof UpdatePreferencePayloadSchema>
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceCaseSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ preferenceId: z.ZodString;
5
+ savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ payload: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ payload: string;
10
+ preferenceId: string;
11
+ savedFiltersId?: string | null | undefined;
12
+ }, {
13
+ id: string;
14
+ payload: string;
15
+ preferenceId: string;
16
+ savedFiltersId?: string | null | undefined;
17
+ }>;
18
+ export type PreferenceCase = z.infer<typeof PreferenceCaseSchema>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceCaseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PreferenceCaseSchema = zod_1.z.object({
6
+ id: zod_1.z.string().uuid(),
7
+ preferenceId: zod_1.z.string().uuid(),
8
+ savedFiltersId: zod_1.z.string().uuid().nullish(),
9
+ payload: zod_1.z.string()
10
+ });
@@ -0,0 +1,9 @@
1
+ import {z} from "zod"
2
+
3
+ export const PreferenceCaseSchema = z.object({
4
+ id: z.string().uuid(),
5
+ preferenceId: z.string().uuid(),
6
+ savedFiltersId: z.string().uuid().nullish(),
7
+ payload: z.string()
8
+ })
9
+ export type PreferenceCase = z.infer<typeof PreferenceCaseSchema>
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceCasePayloadSchema: z.ZodObject<{
3
+ savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ payload: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ payload: string;
7
+ savedFiltersId?: string | null | undefined;
8
+ }, {
9
+ payload: string;
10
+ savedFiltersId?: string | null | undefined;
11
+ }>;
12
+ export type PreferenceCasePayload = z.infer<typeof PreferenceCasePayloadSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceCasePayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PreferenceCasePayloadSchema = zod_1.z.object({
6
+ savedFiltersId: zod_1.z.string().uuid().nullish(),
7
+ payload: zod_1.z.string()
8
+ });
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+
3
+ export const PreferenceCasePayloadSchema = z.object({
4
+ savedFiltersId: z.string().uuid().nullish(),
5
+ payload: z.string()
6
+ })
7
+ export type PreferenceCasePayload = z.infer<typeof PreferenceCasePayloadSchema>
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceActionPayloadSchema: z.ZodObject<{
3
+ type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO"]>;
4
+ payload: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
7
+ payload: string;
8
+ }, {
9
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
10
+ payload: string;
11
+ }>;
12
+ export type PreferenceActionPayload = z.infer<typeof PreferenceActionPayloadSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceActionPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const PreferenceActionPayloadType_1 = require("./PreferenceActionPayloadType");
6
+ exports.PreferenceActionPayloadSchema = zod_1.z.object({
7
+ type: PreferenceActionPayloadType_1.PreferenceActionPayloadTypeSchema,
8
+ payload: zod_1.z.string()
9
+ });
@@ -0,0 +1,8 @@
1
+ import {z} from "zod"
2
+ import {PreferenceActionPayloadTypeSchema} from "./PreferenceActionPayloadType"
3
+
4
+ export const PreferenceActionPayloadSchema = z.object({
5
+ type: PreferenceActionPayloadTypeSchema,
6
+ payload: z.string()
7
+ })
8
+ export type PreferenceActionPayload = z.infer<typeof PreferenceActionPayloadSchema>
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceActionPayloadTypeSchema: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO"]>;
3
+ export type PreferenceActionPayloadType = z.infer<typeof PreferenceActionPayloadTypeSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceActionPayloadTypeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PreferenceActionPayloadTypeSchema = zod_1.z.enum([
6
+ "WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO"
7
+ ]);
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const PreferenceActionPayloadTypeSchema = z.enum([
4
+ "WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO"
5
+ ])
6
+ export type PreferenceActionPayloadType = z.infer<typeof PreferenceActionPayloadTypeSchema>
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceActionVariantPayloadSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ actions: z.ZodArray<z.ZodObject<{
5
+ type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO"]>;
6
+ payload: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
9
+ payload: string;
10
+ }, {
11
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
12
+ payload: string;
13
+ }>, "many">;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name: string;
16
+ actions: {
17
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
18
+ payload: string;
19
+ }[];
20
+ }, {
21
+ name: string;
22
+ actions: {
23
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
24
+ payload: string;
25
+ }[];
26
+ }>;
27
+ export type PreferenceActionVariantPayload = z.infer<typeof PreferenceActionVariantPayloadSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceActionVariantPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const PreferenceActionPayload_1 = require("./PreferenceActionPayload");
6
+ exports.PreferenceActionVariantPayloadSchema = zod_1.z.object({
7
+ name: zod_1.z.string(),
8
+ actions: zod_1.z.array(PreferenceActionPayload_1.PreferenceActionPayloadSchema)
9
+ });
@@ -0,0 +1,8 @@
1
+ import {z} from "zod"
2
+ import {PreferenceActionPayloadSchema} from "./PreferenceActionPayload"
3
+
4
+ export const PreferenceActionVariantPayloadSchema = z.object({
5
+ name: z.string(),
6
+ actions: z.array(PreferenceActionPayloadSchema)
7
+ })
8
+ export type PreferenceActionVariantPayload = z.infer<typeof PreferenceActionVariantPayloadSchema>
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceActionsPayloadSchema: z.ZodObject<{
3
+ variants: z.ZodArray<z.ZodObject<{
4
+ name: z.ZodString;
5
+ actions: z.ZodArray<z.ZodObject<{
6
+ type: z.ZodEnum<["WAIT", "PRICE_DROP", "REPUBLISH", "MESSAGE", "OFFER_AUTO"]>;
7
+ payload: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
10
+ payload: string;
11
+ }, {
12
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
13
+ payload: string;
14
+ }>, "many">;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: string;
17
+ actions: {
18
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
19
+ payload: string;
20
+ }[];
21
+ }, {
22
+ name: string;
23
+ actions: {
24
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
25
+ payload: string;
26
+ }[];
27
+ }>, "many">;
28
+ }, "strip", z.ZodTypeAny, {
29
+ variants: {
30
+ name: string;
31
+ actions: {
32
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
33
+ payload: string;
34
+ }[];
35
+ }[];
36
+ }, {
37
+ variants: {
38
+ name: string;
39
+ actions: {
40
+ type: "MESSAGE" | "WAIT" | "PRICE_DROP" | "REPUBLISH" | "OFFER_AUTO";
41
+ payload: string;
42
+ }[];
43
+ }[];
44
+ }>;
45
+ export type PreferenceActionsPayload = z.infer<typeof PreferenceActionsPayloadSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceActionsPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const PreferenceActionVariantPayload_1 = require("./PreferenceActionVariantPayload");
6
+ exports.PreferenceActionsPayloadSchema = zod_1.z.object({
7
+ variants: zod_1.z.array(PreferenceActionVariantPayload_1.PreferenceActionVariantPayloadSchema)
8
+ });
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+ import {PreferenceActionVariantPayloadSchema} from "./PreferenceActionVariantPayload"
3
+
4
+ export const PreferenceActionsPayloadSchema = z.object({
5
+ variants: z.array(PreferenceActionVariantPayloadSchema)
6
+ })
7
+ export type PreferenceActionsPayload = z.infer<typeof PreferenceActionsPayloadSchema>
@@ -0,0 +1,24 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceFeesPayloadSchema: z.ZodObject<{
3
+ fees: z.ZodArray<z.ZodObject<{
4
+ name: z.ZodString;
5
+ value: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ value: number;
8
+ name: string;
9
+ }, {
10
+ value: number;
11
+ name: string;
12
+ }>, "many">;
13
+ }, "strip", z.ZodTypeAny, {
14
+ fees: {
15
+ value: number;
16
+ name: string;
17
+ }[];
18
+ }, {
19
+ fees: {
20
+ value: number;
21
+ name: string;
22
+ }[];
23
+ }>;
24
+ export type PreferenceFeesPayload = z.infer<typeof PreferenceFeesPayloadSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceFeesPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const PreferenceFeesPayloadFee_1 = require("./PreferenceFeesPayloadFee");
6
+ exports.PreferenceFeesPayloadSchema = zod_1.z.object({
7
+ fees: zod_1.z.array(PreferenceFeesPayloadFee_1.PreferenceFeesPayloadFeeSchema)
8
+ });
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+ import {PreferenceFeesPayloadFeeSchema} from "./PreferenceFeesPayloadFee"
3
+
4
+ export const PreferenceFeesPayloadSchema = z.object({
5
+ fees: z.array(PreferenceFeesPayloadFeeSchema)
6
+ })
7
+ export type PreferenceFeesPayload = z.infer<typeof PreferenceFeesPayloadSchema>
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const PreferenceFeesPayloadFeeSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ value: z.ZodNumber;
5
+ }, "strip", z.ZodTypeAny, {
6
+ value: number;
7
+ name: string;
8
+ }, {
9
+ value: number;
10
+ name: string;
11
+ }>;
12
+ export type PreferenceFeesPayloadFee = z.infer<typeof PreferenceFeesPayloadFeeSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferenceFeesPayloadFeeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PreferenceFeesPayloadFeeSchema = zod_1.z.object({
6
+ name: zod_1.z.string(),
7
+ value: zod_1.z.number()
8
+ });
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+
3
+ export const PreferenceFeesPayloadFeeSchema = z.object({
4
+ name: z.string(),
5
+ value: z.number()
6
+ })
7
+ export type PreferenceFeesPayloadFee = z.infer<typeof PreferenceFeesPayloadFeeSchema>