controlresell 2.2.3 → 2.2.5

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 (50) hide show
  1. package/package.json +5 -4
  2. package/src/com/controlresell/models/filters/SavedFilters.d.ts +130 -25
  3. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +130 -25
  4. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +90 -15
  5. package/src/com/controlresell/models/items/ItemFiltersContext.js +7 -6
  6. package/src/com/controlresell/models/items/ItemFiltersContext.ts +7 -6
  7. package/src/com/controlresell/models/items/platforms/ItemOnPlatformUpdateRequest.d.ts +7 -0
  8. package/src/com/controlresell/models/platforms/conversations/ConversationOnPlatformUpdateRequest.d.ts +9 -0
  9. package/src/com/controlresell/models/preferences/CreatePreferencePayload.d.ts +2 -2
  10. package/src/com/controlresell/models/preferences/Preference.d.ts +54 -7
  11. package/src/com/controlresell/models/preferences/PreferenceFilter.d.ts +778 -0
  12. package/src/com/controlresell/models/preferences/PreferenceFilter.js +10 -0
  13. package/src/com/controlresell/models/preferences/PreferenceFilter.ts +9 -0
  14. package/src/com/controlresell/models/preferences/PreferenceWithCase.d.ts +244 -0
  15. package/src/com/controlresell/models/preferences/PreferenceWithCase.js +10 -0
  16. package/src/com/controlresell/models/preferences/PreferenceWithCase.ts +9 -0
  17. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.d.ts +41 -0
  18. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.js +12 -0
  19. package/src/com/controlresell/models/preferences/cases/CreatePreferenceCasePayload.ts +11 -0
  20. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.d.ts +26 -3
  21. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.js +3 -1
  22. package/src/com/controlresell/models/preferences/cases/PartialPreferenceCasePayload.ts +3 -1
  23. package/src/com/controlresell/models/preferences/cases/PreferenceCase.d.ts +36 -3
  24. package/src/com/controlresell/models/preferences/cases/PreferenceCase.js +3 -1
  25. package/src/com/controlresell/models/preferences/cases/PreferenceCase.ts +3 -1
  26. package/src/com/controlresell/models/preferences/cases/{PreferenceCasePayload.d.ts → UpdatePreferenceCasePayload.d.ts} +5 -5
  27. package/src/com/controlresell/models/preferences/cases/{PreferenceCasePayload.js → UpdatePreferenceCasePayload.js} +3 -3
  28. package/src/com/controlresell/models/preferences/cases/UpdatePreferenceCasePayload.ts +9 -0
  29. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.d.ts +3 -0
  30. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.js +1 -0
  31. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionPayload.ts +1 -0
  32. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.d.ts +18 -34
  33. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.js +2 -2
  34. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionsPayload.ts +2 -2
  35. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.d.ts +15 -0
  36. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.js +9 -0
  37. package/src/com/controlresell/models/preferences/variants/PartialPreferenceCaseVariantPayload.ts +8 -0
  38. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.d.ts +21 -0
  39. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.js +11 -0
  40. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariant.ts +10 -0
  41. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.d.ts +15 -0
  42. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.js +9 -0
  43. package/src/com/controlresell/models/preferences/variants/PreferenceCaseVariantPayload.ts +8 -0
  44. package/src/index.d.ts +7 -2
  45. package/src/index.js +16 -6
  46. package/src/index.ts +7 -2
  47. package/src/com/controlresell/models/preferences/cases/PreferenceCasePayload.ts +0 -9
  48. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionVariantPayload.d.ts +0 -27
  49. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionVariantPayload.js +0 -9
  50. package/src/com/controlresell/models/preferences/payloads/actions/PreferenceActionVariantPayload.ts +0 -8
@@ -174,6 +174,7 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
174
174
  statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
175
175
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
176
  isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
177
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
177
178
  material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
178
179
  manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
180
  labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
@@ -191,6 +192,7 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
191
192
  sizeId?: number | null | undefined;
192
193
  statusId?: number | null | undefined;
193
194
  isDraft?: boolean | null | undefined;
195
+ isArchived?: boolean | null | undefined;
194
196
  material?: number[] | null | undefined;
195
197
  manufacturerLabelling?: string | null | undefined;
196
198
  labels?: string[] | null | undefined;
@@ -208,6 +210,7 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
208
210
  sizeId?: number | null | undefined;
209
211
  statusId?: number | null | undefined;
210
212
  isDraft?: boolean | null | undefined;
213
+ isArchived?: boolean | null | undefined;
211
214
  material?: number[] | null | undefined;
212
215
  manufacturerLabelling?: string | null | undefined;
213
216
  labels?: string[] | null | undefined;
@@ -229,6 +232,7 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
229
232
  sizeId?: number | null | undefined;
230
233
  statusId?: number | null | undefined;
231
234
  isDraft?: boolean | null | undefined;
235
+ isArchived?: boolean | null | undefined;
232
236
  material?: number[] | null | undefined;
233
237
  manufacturerLabelling?: string | null | undefined;
234
238
  labels?: string[] | null | undefined;
@@ -253,6 +257,7 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
253
257
  sizeId?: number | null | undefined;
254
258
  statusId?: number | null | undefined;
255
259
  isDraft?: boolean | null | undefined;
260
+ isArchived?: boolean | null | undefined;
256
261
  material?: number[] | null | undefined;
257
262
  manufacturerLabelling?: string | null | undefined;
258
263
  labels?: string[] | null | undefined;
@@ -378,6 +383,7 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
378
383
  sizeId?: number | null | undefined;
379
384
  statusId?: number | null | undefined;
380
385
  isDraft?: boolean | null | undefined;
386
+ isArchived?: boolean | null | undefined;
381
387
  material?: number[] | null | undefined;
382
388
  manufacturerLabelling?: string | null | undefined;
383
389
  labels?: string[] | null | undefined;
@@ -471,6 +477,7 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
471
477
  sizeId?: number | null | undefined;
472
478
  statusId?: number | null | undefined;
473
479
  isDraft?: boolean | null | undefined;
480
+ isArchived?: boolean | null | undefined;
474
481
  material?: number[] | null | undefined;
475
482
  manufacturerLabelling?: string | null | undefined;
476
483
  labels?: string[] | null | undefined;
@@ -592,6 +599,7 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
592
599
  sizeId?: number | null | undefined;
593
600
  statusId?: number | null | undefined;
594
601
  isDraft?: boolean | null | undefined;
602
+ isArchived?: boolean | null | undefined;
595
603
  material?: number[] | null | undefined;
596
604
  manufacturerLabelling?: string | null | undefined;
597
605
  labels?: string[] | null | undefined;
@@ -694,6 +702,7 @@ export declare const ConversationOnPlatformUpdateRequestSchema: z.ZodObject<{
694
702
  sizeId?: number | null | undefined;
695
703
  statusId?: number | null | undefined;
696
704
  isDraft?: boolean | null | undefined;
705
+ isArchived?: boolean | null | undefined;
697
706
  material?: number[] | null | undefined;
698
707
  manufacturerLabelling?: string | null | undefined;
699
708
  labels?: string[] | null | undefined;
@@ -5,12 +5,12 @@ export declare const CreatePreferencePayloadSchema: z.ZodObject<{
5
5
  enabled: z.ZodBoolean;
6
6
  testMode: z.ZodBoolean;
7
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";
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";
9
9
  enabled: boolean;
10
10
  testMode: boolean;
11
11
  parentPreferenceId?: string | null | undefined;
12
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";
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";
14
14
  enabled: boolean;
15
15
  testMode: boolean;
16
16
  parentPreferenceId?: string | null | undefined;
@@ -12,24 +12,57 @@ export declare const PreferenceSchema: z.ZodObject<{
12
12
  savedFiltersId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  enabled: z.ZodBoolean;
14
14
  testMode: z.ZodBoolean;
15
- payload: z.ZodString;
15
+ abTest: z.ZodBoolean;
16
+ variants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
17
+ id: z.ZodString;
18
+ caseId: z.ZodString;
19
+ name: z.ZodString;
20
+ weight: z.ZodNumber;
21
+ payload: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ id: string;
24
+ name: string;
25
+ payload: string;
26
+ caseId: string;
27
+ weight: number;
28
+ }, {
29
+ id: string;
30
+ name: string;
31
+ payload: string;
32
+ caseId: string;
33
+ weight: number;
34
+ }>, "many">>>;
16
35
  }, "strip", z.ZodTypeAny, {
17
36
  id: string;
18
- payload: string;
19
37
  enabled: boolean;
20
38
  testMode: boolean;
21
39
  preferenceId: string;
40
+ abTest: boolean;
22
41
  savedFiltersId?: string | null | undefined;
42
+ variants?: {
43
+ id: string;
44
+ name: string;
45
+ payload: string;
46
+ caseId: string;
47
+ weight: number;
48
+ }[] | null | undefined;
23
49
  }, {
24
50
  id: string;
25
- payload: string;
26
51
  enabled: boolean;
27
52
  testMode: boolean;
28
53
  preferenceId: string;
54
+ abTest: boolean;
29
55
  savedFiltersId?: string | null | undefined;
56
+ variants?: {
57
+ id: string;
58
+ name: string;
59
+ payload: string;
60
+ caseId: string;
61
+ weight: number;
62
+ }[] | null | undefined;
30
63
  }>, "many">>>;
31
64
  }, "strip", z.ZodTypeAny, {
32
- 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";
65
+ 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";
33
66
  id: string;
34
67
  userId: string | number;
35
68
  enabled: boolean;
@@ -37,14 +70,21 @@ export declare const PreferenceSchema: z.ZodObject<{
37
70
  parentPreferenceId?: string | null | undefined;
38
71
  cases?: {
39
72
  id: string;
40
- payload: string;
41
73
  enabled: boolean;
42
74
  testMode: boolean;
43
75
  preferenceId: string;
76
+ abTest: boolean;
44
77
  savedFiltersId?: string | null | undefined;
78
+ variants?: {
79
+ id: string;
80
+ name: string;
81
+ payload: string;
82
+ caseId: string;
83
+ weight: number;
84
+ }[] | null | undefined;
45
85
  }[] | null | undefined;
46
86
  }, {
47
- 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";
87
+ 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";
48
88
  id: string;
49
89
  userId: string | number;
50
90
  enabled: boolean;
@@ -52,11 +92,18 @@ export declare const PreferenceSchema: z.ZodObject<{
52
92
  parentPreferenceId?: string | null | undefined;
53
93
  cases?: {
54
94
  id: string;
55
- payload: string;
56
95
  enabled: boolean;
57
96
  testMode: boolean;
58
97
  preferenceId: string;
98
+ abTest: boolean;
59
99
  savedFiltersId?: string | null | undefined;
100
+ variants?: {
101
+ id: string;
102
+ name: string;
103
+ payload: string;
104
+ caseId: string;
105
+ weight: number;
106
+ }[] | null | undefined;
60
107
  }[] | null | undefined;
61
108
  }>;
62
109
  export type Preference = z.infer<typeof PreferenceSchema>;