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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -17,8 +17,9 @@
17
17
  "typescript": "^5.8.3"
18
18
  },
19
19
  "dependencies": {
20
- "controlresell-connector": "^0.3.6",
21
- "zod": "^3.25.63",
22
- "zodable-idschema": "^1.0.0"
20
+ "controlresell-connector": "^0.3.7",
21
+ "zod": "^3.25.64",
22
+ "zodable-idschema": "^1.0.0",
23
+ "zodable-kotlin-primitives": "^1.0.0"
23
24
  }
24
25
  }
@@ -13,11 +13,56 @@ export declare const SavedFiltersSchema: z.ZodObject<{
13
13
  purchasePlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
14
14
  sellingPlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
15
15
  states: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
16
- purchasePrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
17
- sellingPrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
18
- estimatedPrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
19
- purchaseDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodDate>>, "many">>>;
20
- sellingDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodDate>>, "many">>>;
16
+ purchasePrices: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ second: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ first?: number | null | undefined;
21
+ second?: number | null | undefined;
22
+ }, {
23
+ first?: number | null | undefined;
24
+ second?: number | null | undefined;
25
+ }>>>;
26
+ sellingPrices: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ second: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ first?: number | null | undefined;
31
+ second?: number | null | undefined;
32
+ }, {
33
+ first?: number | null | undefined;
34
+ second?: number | null | undefined;
35
+ }>>>;
36
+ estimatedPrices: z.ZodOptional<z.ZodNullable<z.ZodObject<{
37
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
+ second: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ first?: number | null | undefined;
41
+ second?: number | null | undefined;
42
+ }, {
43
+ first?: number | null | undefined;
44
+ second?: number | null | undefined;
45
+ }>>>;
46
+ purchaseDates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
47
+ first: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
48
+ second: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ first?: Date | null | undefined;
51
+ second?: Date | null | undefined;
52
+ }, {
53
+ first?: Date | null | undefined;
54
+ second?: Date | null | undefined;
55
+ }>>>;
56
+ sellingDates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
+ first: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
58
+ second: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ first?: Date | null | undefined;
61
+ second?: Date | null | undefined;
62
+ }, {
63
+ first?: Date | null | undefined;
64
+ second?: Date | null | undefined;
65
+ }>>>;
21
66
  searchQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
67
  lastHistoryType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>, "many">>>;
23
68
  readyToPublish: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -33,11 +78,26 @@ export declare const SavedFiltersSchema: z.ZodObject<{
33
78
  purchasePlacesId?: number[] | null | undefined;
34
79
  sellingPlacesId?: number[] | null | undefined;
35
80
  states?: number[] | null | undefined;
36
- purchasePrices?: number[] | null | undefined;
37
- sellingPrices?: number[] | null | undefined;
38
- estimatedPrices?: number[] | null | undefined;
39
- purchaseDates?: (Date | null | undefined)[] | null | undefined;
40
- sellingDates?: (Date | null | undefined)[] | null | undefined;
81
+ purchasePrices?: {
82
+ first?: number | null | undefined;
83
+ second?: number | null | undefined;
84
+ } | null | undefined;
85
+ sellingPrices?: {
86
+ first?: number | null | undefined;
87
+ second?: number | null | undefined;
88
+ } | null | undefined;
89
+ estimatedPrices?: {
90
+ first?: number | null | undefined;
91
+ second?: number | null | undefined;
92
+ } | null | undefined;
93
+ purchaseDates?: {
94
+ first?: Date | null | undefined;
95
+ second?: Date | null | undefined;
96
+ } | null | undefined;
97
+ sellingDates?: {
98
+ first?: Date | null | undefined;
99
+ second?: Date | null | undefined;
100
+ } | null | undefined;
41
101
  searchQuery?: string | null | undefined;
42
102
  lastHistoryType?: ("IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND")[] | null | undefined;
43
103
  readyToPublish?: boolean | null | undefined;
@@ -53,11 +113,26 @@ export declare const SavedFiltersSchema: z.ZodObject<{
53
113
  purchasePlacesId?: number[] | null | undefined;
54
114
  sellingPlacesId?: number[] | null | undefined;
55
115
  states?: number[] | null | undefined;
56
- purchasePrices?: number[] | null | undefined;
57
- sellingPrices?: number[] | null | undefined;
58
- estimatedPrices?: number[] | null | undefined;
59
- purchaseDates?: (Date | null | undefined)[] | null | undefined;
60
- sellingDates?: (Date | null | undefined)[] | null | undefined;
116
+ purchasePrices?: {
117
+ first?: number | null | undefined;
118
+ second?: number | null | undefined;
119
+ } | null | undefined;
120
+ sellingPrices?: {
121
+ first?: number | null | undefined;
122
+ second?: number | null | undefined;
123
+ } | null | undefined;
124
+ estimatedPrices?: {
125
+ first?: number | null | undefined;
126
+ second?: number | null | undefined;
127
+ } | null | undefined;
128
+ purchaseDates?: {
129
+ first?: Date | null | undefined;
130
+ second?: Date | null | undefined;
131
+ } | null | undefined;
132
+ sellingDates?: {
133
+ first?: Date | null | undefined;
134
+ second?: Date | null | undefined;
135
+ } | null | undefined;
61
136
  searchQuery?: string | null | undefined;
62
137
  lastHistoryType?: ("IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND")[] | null | undefined;
63
138
  readyToPublish?: boolean | null | undefined;
@@ -87,11 +162,26 @@ export declare const SavedFiltersSchema: z.ZodObject<{
87
162
  purchasePlacesId?: number[] | null | undefined;
88
163
  sellingPlacesId?: number[] | null | undefined;
89
164
  states?: number[] | null | undefined;
90
- purchasePrices?: number[] | null | undefined;
91
- sellingPrices?: number[] | null | undefined;
92
- estimatedPrices?: number[] | null | undefined;
93
- purchaseDates?: (Date | null | undefined)[] | null | undefined;
94
- sellingDates?: (Date | null | undefined)[] | null | undefined;
165
+ purchasePrices?: {
166
+ first?: number | null | undefined;
167
+ second?: number | null | undefined;
168
+ } | null | undefined;
169
+ sellingPrices?: {
170
+ first?: number | null | undefined;
171
+ second?: number | null | undefined;
172
+ } | null | undefined;
173
+ estimatedPrices?: {
174
+ first?: number | null | undefined;
175
+ second?: number | null | undefined;
176
+ } | null | undefined;
177
+ purchaseDates?: {
178
+ first?: Date | null | undefined;
179
+ second?: Date | null | undefined;
180
+ } | null | undefined;
181
+ sellingDates?: {
182
+ first?: Date | null | undefined;
183
+ second?: Date | null | undefined;
184
+ } | null | undefined;
95
185
  searchQuery?: string | null | undefined;
96
186
  lastHistoryType?: ("IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND")[] | null | undefined;
97
187
  readyToPublish?: boolean | null | undefined;
@@ -115,11 +205,26 @@ export declare const SavedFiltersSchema: z.ZodObject<{
115
205
  purchasePlacesId?: number[] | null | undefined;
116
206
  sellingPlacesId?: number[] | null | undefined;
117
207
  states?: number[] | null | undefined;
118
- purchasePrices?: number[] | null | undefined;
119
- sellingPrices?: number[] | null | undefined;
120
- estimatedPrices?: number[] | null | undefined;
121
- purchaseDates?: (Date | null | undefined)[] | null | undefined;
122
- sellingDates?: (Date | null | undefined)[] | null | undefined;
208
+ purchasePrices?: {
209
+ first?: number | null | undefined;
210
+ second?: number | null | undefined;
211
+ } | null | undefined;
212
+ sellingPrices?: {
213
+ first?: number | null | undefined;
214
+ second?: number | null | undefined;
215
+ } | null | undefined;
216
+ estimatedPrices?: {
217
+ first?: number | null | undefined;
218
+ second?: number | null | undefined;
219
+ } | null | undefined;
220
+ purchaseDates?: {
221
+ first?: Date | null | undefined;
222
+ second?: Date | null | undefined;
223
+ } | null | undefined;
224
+ sellingDates?: {
225
+ first?: Date | null | undefined;
226
+ second?: Date | null | undefined;
227
+ } | null | undefined;
123
228
  searchQuery?: string | null | undefined;
124
229
  lastHistoryType?: ("IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND")[] | null | undefined;
125
230
  readyToPublish?: boolean | null | undefined;
@@ -11,11 +11,56 @@ export declare const SavedFiltersPayloadSchema: z.ZodObject<{
11
11
  purchasePlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
12
12
  sellingPlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
13
13
  states: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
14
- purchasePrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
15
- sellingPrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
16
- estimatedPrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
17
- purchaseDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodDate>>, "many">>>;
18
- sellingDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodDate>>, "many">>>;
14
+ purchasePrices: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ second: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ first?: number | null | undefined;
19
+ second?: number | null | undefined;
20
+ }, {
21
+ first?: number | null | undefined;
22
+ second?: number | null | undefined;
23
+ }>>>;
24
+ sellingPrices: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ second: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ first?: number | null | undefined;
29
+ second?: number | null | undefined;
30
+ }, {
31
+ first?: number | null | undefined;
32
+ second?: number | null | undefined;
33
+ }>>>;
34
+ estimatedPrices: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ second: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ first?: number | null | undefined;
39
+ second?: number | null | undefined;
40
+ }, {
41
+ first?: number | null | undefined;
42
+ second?: number | null | undefined;
43
+ }>>>;
44
+ purchaseDates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45
+ first: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
46
+ second: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ first?: Date | null | undefined;
49
+ second?: Date | null | undefined;
50
+ }, {
51
+ first?: Date | null | undefined;
52
+ second?: Date | null | undefined;
53
+ }>>>;
54
+ sellingDates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
55
+ first: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
56
+ second: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ first?: Date | null | undefined;
59
+ second?: Date | null | undefined;
60
+ }, {
61
+ first?: Date | null | undefined;
62
+ second?: Date | null | undefined;
63
+ }>>>;
19
64
  searchQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
65
  lastHistoryType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>, "many">>>;
21
66
  readyToPublish: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -31,11 +76,26 @@ export declare const SavedFiltersPayloadSchema: z.ZodObject<{
31
76
  purchasePlacesId?: number[] | null | undefined;
32
77
  sellingPlacesId?: number[] | null | undefined;
33
78
  states?: number[] | null | undefined;
34
- purchasePrices?: number[] | null | undefined;
35
- sellingPrices?: number[] | null | undefined;
36
- estimatedPrices?: number[] | null | undefined;
37
- purchaseDates?: (Date | null | undefined)[] | null | undefined;
38
- sellingDates?: (Date | null | undefined)[] | null | undefined;
79
+ purchasePrices?: {
80
+ first?: number | null | undefined;
81
+ second?: number | null | undefined;
82
+ } | null | undefined;
83
+ sellingPrices?: {
84
+ first?: number | null | undefined;
85
+ second?: number | null | undefined;
86
+ } | null | undefined;
87
+ estimatedPrices?: {
88
+ first?: number | null | undefined;
89
+ second?: number | null | undefined;
90
+ } | null | undefined;
91
+ purchaseDates?: {
92
+ first?: Date | null | undefined;
93
+ second?: Date | null | undefined;
94
+ } | null | undefined;
95
+ sellingDates?: {
96
+ first?: Date | null | undefined;
97
+ second?: Date | null | undefined;
98
+ } | null | undefined;
39
99
  searchQuery?: string | null | undefined;
40
100
  lastHistoryType?: ("IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND")[] | null | undefined;
41
101
  readyToPublish?: boolean | null | undefined;
@@ -51,11 +111,26 @@ export declare const SavedFiltersPayloadSchema: z.ZodObject<{
51
111
  purchasePlacesId?: number[] | null | undefined;
52
112
  sellingPlacesId?: number[] | null | undefined;
53
113
  states?: number[] | null | undefined;
54
- purchasePrices?: number[] | null | undefined;
55
- sellingPrices?: number[] | null | undefined;
56
- estimatedPrices?: number[] | null | undefined;
57
- purchaseDates?: (Date | null | undefined)[] | null | undefined;
58
- sellingDates?: (Date | null | undefined)[] | null | undefined;
114
+ purchasePrices?: {
115
+ first?: number | null | undefined;
116
+ second?: number | null | undefined;
117
+ } | null | undefined;
118
+ sellingPrices?: {
119
+ first?: number | null | undefined;
120
+ second?: number | null | undefined;
121
+ } | null | undefined;
122
+ estimatedPrices?: {
123
+ first?: number | null | undefined;
124
+ second?: number | null | undefined;
125
+ } | null | undefined;
126
+ purchaseDates?: {
127
+ first?: Date | null | undefined;
128
+ second?: Date | null | undefined;
129
+ } | null | undefined;
130
+ sellingDates?: {
131
+ first?: Date | null | undefined;
132
+ second?: Date | null | undefined;
133
+ } | null | undefined;
59
134
  searchQuery?: string | null | undefined;
60
135
  lastHistoryType?: ("IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND")[] | null | undefined;
61
136
  readyToPublish?: boolean | null | undefined;
@@ -83,11 +158,26 @@ export declare const SavedFiltersPayloadSchema: z.ZodObject<{
83
158
  purchasePlacesId?: number[] | null | undefined;
84
159
  sellingPlacesId?: number[] | null | undefined;
85
160
  states?: number[] | null | undefined;
86
- purchasePrices?: number[] | null | undefined;
87
- sellingPrices?: number[] | null | undefined;
88
- estimatedPrices?: number[] | null | undefined;
89
- purchaseDates?: (Date | null | undefined)[] | null | undefined;
90
- sellingDates?: (Date | null | undefined)[] | null | undefined;
161
+ purchasePrices?: {
162
+ first?: number | null | undefined;
163
+ second?: number | null | undefined;
164
+ } | null | undefined;
165
+ sellingPrices?: {
166
+ first?: number | null | undefined;
167
+ second?: number | null | undefined;
168
+ } | null | undefined;
169
+ estimatedPrices?: {
170
+ first?: number | null | undefined;
171
+ second?: number | null | undefined;
172
+ } | null | undefined;
173
+ purchaseDates?: {
174
+ first?: Date | null | undefined;
175
+ second?: Date | null | undefined;
176
+ } | null | undefined;
177
+ sellingDates?: {
178
+ first?: Date | null | undefined;
179
+ second?: Date | null | undefined;
180
+ } | null | undefined;
91
181
  searchQuery?: string | null | undefined;
92
182
  lastHistoryType?: ("IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND")[] | null | undefined;
93
183
  readyToPublish?: boolean | null | undefined;
@@ -109,11 +199,26 @@ export declare const SavedFiltersPayloadSchema: z.ZodObject<{
109
199
  purchasePlacesId?: number[] | null | undefined;
110
200
  sellingPlacesId?: number[] | null | undefined;
111
201
  states?: number[] | null | undefined;
112
- purchasePrices?: number[] | null | undefined;
113
- sellingPrices?: number[] | null | undefined;
114
- estimatedPrices?: number[] | null | undefined;
115
- purchaseDates?: (Date | null | undefined)[] | null | undefined;
116
- sellingDates?: (Date | null | undefined)[] | null | undefined;
202
+ purchasePrices?: {
203
+ first?: number | null | undefined;
204
+ second?: number | null | undefined;
205
+ } | null | undefined;
206
+ sellingPrices?: {
207
+ first?: number | null | undefined;
208
+ second?: number | null | undefined;
209
+ } | null | undefined;
210
+ estimatedPrices?: {
211
+ first?: number | null | undefined;
212
+ second?: number | null | undefined;
213
+ } | null | undefined;
214
+ purchaseDates?: {
215
+ first?: Date | null | undefined;
216
+ second?: Date | null | undefined;
217
+ } | null | undefined;
218
+ sellingDates?: {
219
+ first?: Date | null | undefined;
220
+ second?: Date | null | undefined;
221
+ } | null | undefined;
117
222
  searchQuery?: string | null | undefined;
118
223
  lastHistoryType?: ("IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND")[] | null | undefined;
119
224
  readyToPublish?: boolean | null | undefined;
@@ -10,11 +10,56 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
10
10
  purchasePlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
11
11
  sellingPlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
12
12
  states: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
13
- purchasePrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
14
- sellingPrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
15
- estimatedPrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
16
- purchaseDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodDate>>, "many">>>;
17
- sellingDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodDate>>, "many">>>;
13
+ purchasePrices: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ second: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ first?: number | null | undefined;
18
+ second?: number | null | undefined;
19
+ }, {
20
+ first?: number | null | undefined;
21
+ second?: number | null | undefined;
22
+ }>>>;
23
+ sellingPrices: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ second: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ first?: number | null | undefined;
28
+ second?: number | null | undefined;
29
+ }, {
30
+ first?: number | null | undefined;
31
+ second?: number | null | undefined;
32
+ }>>>;
33
+ estimatedPrices: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34
+ first: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ second: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ first?: number | null | undefined;
38
+ second?: number | null | undefined;
39
+ }, {
40
+ first?: number | null | undefined;
41
+ second?: number | null | undefined;
42
+ }>>>;
43
+ purchaseDates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ first: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
45
+ second: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ first?: Date | null | undefined;
48
+ second?: Date | null | undefined;
49
+ }, {
50
+ first?: Date | null | undefined;
51
+ second?: Date | null | undefined;
52
+ }>>>;
53
+ sellingDates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
54
+ first: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
55
+ second: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ first?: Date | null | undefined;
58
+ second?: Date | null | undefined;
59
+ }, {
60
+ first?: Date | null | undefined;
61
+ second?: Date | null | undefined;
62
+ }>>>;
18
63
  searchQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
64
  lastHistoryType: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["IMPORTED", "PUBLISHED", "FAILED_TO_PUBLISH", "SCHEDULED", "UPDATED", "DELETED", "TO_BE_SENT", "IN_TRANSIT", "BUYER_PAID", "DELIVERED", "RECEIVED", "FINALIZED", "RETURN", "REFUND"]>, "many">>>;
20
65
  readyToPublish: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -30,11 +75,26 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
30
75
  purchasePlacesId?: number[] | null | undefined;
31
76
  sellingPlacesId?: number[] | null | undefined;
32
77
  states?: number[] | null | undefined;
33
- purchasePrices?: number[] | null | undefined;
34
- sellingPrices?: number[] | null | undefined;
35
- estimatedPrices?: number[] | null | undefined;
36
- purchaseDates?: (Date | null | undefined)[] | null | undefined;
37
- sellingDates?: (Date | null | undefined)[] | null | undefined;
78
+ purchasePrices?: {
79
+ first?: number | null | undefined;
80
+ second?: number | null | undefined;
81
+ } | null | undefined;
82
+ sellingPrices?: {
83
+ first?: number | null | undefined;
84
+ second?: number | null | undefined;
85
+ } | null | undefined;
86
+ estimatedPrices?: {
87
+ first?: number | null | undefined;
88
+ second?: number | null | undefined;
89
+ } | null | undefined;
90
+ purchaseDates?: {
91
+ first?: Date | null | undefined;
92
+ second?: Date | null | undefined;
93
+ } | null | undefined;
94
+ sellingDates?: {
95
+ first?: Date | null | undefined;
96
+ second?: Date | null | undefined;
97
+ } | null | undefined;
38
98
  searchQuery?: string | null | undefined;
39
99
  lastHistoryType?: ("IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND")[] | null | undefined;
40
100
  readyToPublish?: boolean | null | undefined;
@@ -50,11 +110,26 @@ export declare const ItemFiltersContextSchema: z.ZodObject<{
50
110
  purchasePlacesId?: number[] | null | undefined;
51
111
  sellingPlacesId?: number[] | null | undefined;
52
112
  states?: number[] | null | undefined;
53
- purchasePrices?: number[] | null | undefined;
54
- sellingPrices?: number[] | null | undefined;
55
- estimatedPrices?: number[] | null | undefined;
56
- purchaseDates?: (Date | null | undefined)[] | null | undefined;
57
- sellingDates?: (Date | null | undefined)[] | null | undefined;
113
+ purchasePrices?: {
114
+ first?: number | null | undefined;
115
+ second?: number | null | undefined;
116
+ } | null | undefined;
117
+ sellingPrices?: {
118
+ first?: number | null | undefined;
119
+ second?: number | null | undefined;
120
+ } | null | undefined;
121
+ estimatedPrices?: {
122
+ first?: number | null | undefined;
123
+ second?: number | null | undefined;
124
+ } | null | undefined;
125
+ purchaseDates?: {
126
+ first?: Date | null | undefined;
127
+ second?: Date | null | undefined;
128
+ } | null | undefined;
129
+ sellingDates?: {
130
+ first?: Date | null | undefined;
131
+ second?: Date | null | undefined;
132
+ } | null | undefined;
58
133
  searchQuery?: string | null | undefined;
59
134
  lastHistoryType?: ("IMPORTED" | "PUBLISHED" | "FAILED_TO_PUBLISH" | "SCHEDULED" | "UPDATED" | "DELETED" | "TO_BE_SENT" | "IN_TRANSIT" | "BUYER_PAID" | "DELIVERED" | "RECEIVED" | "FINALIZED" | "RETURN" | "REFUND")[] | null | undefined;
60
135
  readyToPublish?: boolean | null | undefined;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ItemFiltersContextSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const ItemSort_1 = require("./ItemSort");
6
+ const zodable_kotlin_primitives_1 = require("zodable-kotlin-primitives");
6
7
  const ItemHistoryType_1 = require("./history/ItemHistoryType");
7
8
  exports.ItemFiltersContextSchema = zod_1.z.object({
8
9
  sort: ItemSort_1.ItemSortSchema.nullish(),
@@ -14,12 +15,12 @@ exports.ItemFiltersContextSchema = zod_1.z.object({
14
15
  labelsId: zod_1.z.array(zod_1.z.number()).nullish(),
15
16
  purchasePlacesId: zod_1.z.array(zod_1.z.number()).nullish(),
16
17
  sellingPlacesId: zod_1.z.array(zod_1.z.number()).nullish(),
17
- states: zod_1.z.array(zod_1.z.number()).max(2).nullish(),
18
- purchasePrices: zod_1.z.array(zod_1.z.number()).max(2).nullish(),
19
- sellingPrices: zod_1.z.array(zod_1.z.number()).max(2).nullish(),
20
- estimatedPrices: zod_1.z.array(zod_1.z.number()).max(2).nullish(),
21
- purchaseDates: zod_1.z.array(zod_1.z.coerce.date().nullish()).max(2).nullish(),
22
- sellingDates: zod_1.z.array(zod_1.z.coerce.date().nullish()).max(2).nullish(),
18
+ states: zod_1.z.array(zod_1.z.number()).nullish(),
19
+ purchasePrices: (0, zodable_kotlin_primitives_1.KotlinPairSchema)(zod_1.z.number().nullish(), zod_1.z.number().nullish()).nullish(),
20
+ sellingPrices: (0, zodable_kotlin_primitives_1.KotlinPairSchema)(zod_1.z.number().nullish(), zod_1.z.number().nullish()).nullish(),
21
+ estimatedPrices: (0, zodable_kotlin_primitives_1.KotlinPairSchema)(zod_1.z.number().nullish(), zod_1.z.number().nullish()).nullish(),
22
+ purchaseDates: (0, zodable_kotlin_primitives_1.KotlinPairSchema)(zod_1.z.coerce.date().nullish(), zod_1.z.coerce.date().nullish()).nullish(),
23
+ sellingDates: (0, zodable_kotlin_primitives_1.KotlinPairSchema)(zod_1.z.coerce.date().nullish(), zod_1.z.coerce.date().nullish()).nullish(),
23
24
  searchQuery: zod_1.z.string().nullish(),
24
25
  lastHistoryType: zod_1.z.array(ItemHistoryType_1.ItemHistoryTypeSchema).nullish(),
25
26
  readyToPublish: zod_1.z.boolean().nullish(),
@@ -1,5 +1,6 @@
1
1
  import {z} from "zod"
2
2
  import {ItemSortSchema} from "./ItemSort"
3
+ import {KotlinPairSchema} from "zodable-kotlin-primitives"
3
4
  import {ItemHistoryTypeSchema} from "./history/ItemHistoryType"
4
5
 
5
6
  export const ItemFiltersContextSchema = z.object({
@@ -12,12 +13,12 @@ export const ItemFiltersContextSchema = z.object({
12
13
  labelsId: z.array(z.number()).nullish(),
13
14
  purchasePlacesId: z.array(z.number()).nullish(),
14
15
  sellingPlacesId: z.array(z.number()).nullish(),
15
- states: z.array(z.number()).max(2).nullish(),
16
- purchasePrices: z.array(z.number()).max(2).nullish(),
17
- sellingPrices: z.array(z.number()).max(2).nullish(),
18
- estimatedPrices: z.array(z.number()).max(2).nullish(),
19
- purchaseDates: z.array(z.coerce.date().nullish()).max(2).nullish(),
20
- sellingDates: z.array(z.coerce.date().nullish()).max(2).nullish(),
16
+ states: z.array(z.number()).nullish(),
17
+ purchasePrices: KotlinPairSchema(z.number().nullish(), z.number().nullish()).nullish(),
18
+ sellingPrices: KotlinPairSchema(z.number().nullish(), z.number().nullish()).nullish(),
19
+ estimatedPrices: KotlinPairSchema(z.number().nullish(), z.number().nullish()).nullish(),
20
+ purchaseDates: KotlinPairSchema(z.coerce.date().nullish(), z.coerce.date().nullish()).nullish(),
21
+ sellingDates: KotlinPairSchema(z.coerce.date().nullish(), z.coerce.date().nullish()).nullish(),
21
22
  searchQuery: z.string().nullish(),
22
23
  lastHistoryType: z.array(ItemHistoryTypeSchema).nullish(),
23
24
  readyToPublish: z.boolean().nullish(),
@@ -19,6 +19,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
19
19
  statusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
20
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
23
  material: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
23
24
  manufacturerLabelling: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
25
  labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
@@ -36,6 +37,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
36
37
  sizeId?: number | null | undefined;
37
38
  statusId?: number | null | undefined;
38
39
  isDraft?: boolean | null | undefined;
40
+ isArchived?: boolean | null | undefined;
39
41
  material?: number[] | null | undefined;
40
42
  manufacturerLabelling?: string | null | undefined;
41
43
  labels?: string[] | null | undefined;
@@ -53,6 +55,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
53
55
  sizeId?: number | null | undefined;
54
56
  statusId?: number | null | undefined;
55
57
  isDraft?: boolean | null | undefined;
58
+ isArchived?: boolean | null | undefined;
56
59
  material?: number[] | null | undefined;
57
60
  manufacturerLabelling?: string | null | undefined;
58
61
  labels?: string[] | null | undefined;
@@ -74,6 +77,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
74
77
  sizeId?: number | null | undefined;
75
78
  statusId?: number | null | undefined;
76
79
  isDraft?: boolean | null | undefined;
80
+ isArchived?: boolean | null | undefined;
77
81
  material?: number[] | null | undefined;
78
82
  manufacturerLabelling?: string | null | undefined;
79
83
  labels?: string[] | null | undefined;
@@ -98,6 +102,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
98
102
  sizeId?: number | null | undefined;
99
103
  statusId?: number | null | undefined;
100
104
  isDraft?: boolean | null | undefined;
105
+ isArchived?: boolean | null | undefined;
101
106
  material?: number[] | null | undefined;
102
107
  manufacturerLabelling?: string | null | undefined;
103
108
  labels?: string[] | null | undefined;
@@ -150,6 +155,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
150
155
  sizeId?: number | null | undefined;
151
156
  statusId?: number | null | undefined;
152
157
  isDraft?: boolean | null | undefined;
158
+ isArchived?: boolean | null | undefined;
153
159
  material?: number[] | null | undefined;
154
160
  manufacturerLabelling?: string | null | undefined;
155
161
  labels?: string[] | null | undefined;
@@ -183,6 +189,7 @@ export declare const ItemOnPlatformUpdateRequestSchema: z.ZodObject<{
183
189
  sizeId?: number | null | undefined;
184
190
  statusId?: number | null | undefined;
185
191
  isDraft?: boolean | null | undefined;
192
+ isArchived?: boolean | null | undefined;
186
193
  material?: number[] | null | undefined;
187
194
  manufacturerLabelling?: string | null | undefined;
188
195
  labels?: string[] | null | undefined;