controlresell 0.0.25 → 0.0.27

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.
@@ -875,6 +875,59 @@ export declare const GettingStartedStepsSchema: z.ZodObject<{
875
875
  add10Items: boolean;
876
876
  }>;
877
877
  export type GettingStartedSteps = z.infer<typeof GettingStartedStepsSchema>;
878
+ export declare const ItemFiltersContextSchema: z.ZodObject<{
879
+ sort: z.ZodOptional<z.ZodNullable<z.ZodEnum<["MOST_RECENT", "OLDEST", "HIGHEST_PRICE", "LOWEST_PRICE"]>>>;
880
+ sold: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
881
+ categoriesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
882
+ brandsId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
883
+ sex: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
884
+ sizesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
885
+ purchasePlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
886
+ sellingPlacesId: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
887
+ states: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
888
+ purchasePrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
889
+ sellingPrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
890
+ estimatedPrices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
891
+ purchaseDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDate, "many">>>;
892
+ sellingDates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDate, "many">>>;
893
+ searchQuery: z.ZodOptional<z.ZodNullable<z.ZodString>>;
894
+ readyToPublish: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
895
+ }, "strip", z.ZodTypeAny, {
896
+ sort?: "MOST_RECENT" | "OLDEST" | "HIGHEST_PRICE" | "LOWEST_PRICE" | null | undefined;
897
+ sex?: string[] | null | undefined;
898
+ sold?: boolean | null | undefined;
899
+ categoriesId?: number[] | null | undefined;
900
+ brandsId?: number[] | null | undefined;
901
+ sizesId?: number[] | null | undefined;
902
+ purchasePlacesId?: number[] | null | undefined;
903
+ sellingPlacesId?: number[] | null | undefined;
904
+ states?: number[] | null | undefined;
905
+ purchasePrices?: number[] | null | undefined;
906
+ sellingPrices?: number[] | null | undefined;
907
+ estimatedPrices?: number[] | null | undefined;
908
+ purchaseDates?: Date[] | null | undefined;
909
+ sellingDates?: Date[] | null | undefined;
910
+ searchQuery?: string | null | undefined;
911
+ readyToPublish?: boolean | null | undefined;
912
+ }, {
913
+ sort?: "MOST_RECENT" | "OLDEST" | "HIGHEST_PRICE" | "LOWEST_PRICE" | null | undefined;
914
+ sex?: string[] | null | undefined;
915
+ sold?: boolean | null | undefined;
916
+ categoriesId?: number[] | null | undefined;
917
+ brandsId?: number[] | null | undefined;
918
+ sizesId?: number[] | null | undefined;
919
+ purchasePlacesId?: number[] | null | undefined;
920
+ sellingPlacesId?: number[] | null | undefined;
921
+ states?: number[] | null | undefined;
922
+ purchasePrices?: number[] | null | undefined;
923
+ sellingPrices?: number[] | null | undefined;
924
+ estimatedPrices?: number[] | null | undefined;
925
+ purchaseDates?: Date[] | null | undefined;
926
+ sellingDates?: Date[] | null | undefined;
927
+ searchQuery?: string | null | undefined;
928
+ readyToPublish?: boolean | null | undefined;
929
+ }>;
930
+ export type ItemFiltersContext = z.infer<typeof ItemFiltersContextSchema>;
878
931
  export declare const ItemsWithFiltersSchema: z.ZodObject<{
879
932
  count: z.ZodNumber;
880
933
  allItemsCount: z.ZodNumber;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ItemsWithFiltersSchema = exports.GettingStartedStepsSchema = exports.ImageAnalysisCompletionSchema = exports.ItemSchema = exports.ItemSortSchema = void 0;
3
+ exports.ItemsWithFiltersSchema = exports.ItemFiltersContextSchema = exports.GettingStartedStepsSchema = exports.ImageAnalysisCompletionSchema = exports.ItemSchema = exports.ItemSortSchema = void 0;
4
4
  const legacy_1 = require("../../helpers/legacy");
5
5
  const zod_1 = require("zod");
6
6
  const primitives_1 = require("../primitives");
@@ -77,6 +77,24 @@ exports.GettingStartedStepsSchema = zod_1.z.object({
77
77
  reach100Sales: zod_1.z.boolean(),
78
78
  add10Items: zod_1.z.boolean(),
79
79
  });
80
+ exports.ItemFiltersContextSchema = zod_1.z.object({
81
+ sort: exports.ItemSortSchema.nullish(),
82
+ sold: zod_1.z.boolean().nullish(),
83
+ categoriesId: zod_1.z.array(zod_1.z.number()).nullish(),
84
+ brandsId: zod_1.z.array(zod_1.z.number()).nullish(),
85
+ sex: zod_1.z.array(zod_1.z.string()).nullish(),
86
+ sizesId: zod_1.z.array(zod_1.z.number()).nullish(),
87
+ purchasePlacesId: zod_1.z.array(zod_1.z.number()).nullish(),
88
+ sellingPlacesId: zod_1.z.array(zod_1.z.number()).nullish(),
89
+ states: zod_1.z.array(zod_1.z.number()).nullish(),
90
+ purchasePrices: zod_1.z.array(zod_1.z.number()).nullish(),
91
+ sellingPrices: zod_1.z.array(zod_1.z.number()).nullish(),
92
+ estimatedPrices: zod_1.z.array(zod_1.z.number()).nullish(),
93
+ purchaseDates: zod_1.z.array(zod_1.z.coerce.date()).nullish(),
94
+ sellingDates: zod_1.z.array(zod_1.z.coerce.date()).nullish(),
95
+ searchQuery: zod_1.z.string().nullish(),
96
+ readyToPublish: zod_1.z.boolean().nullish(),
97
+ });
80
98
  exports.ItemsWithFiltersSchema = zod_1.z.object({
81
99
  count: zod_1.z.number(),
82
100
  allItemsCount: zod_1.z.number(),
@@ -84,6 +102,6 @@ exports.ItemsWithFiltersSchema = zod_1.z.object({
84
102
  currentPage: zod_1.z.number(),
85
103
  totalPages: zod_1.z.number(),
86
104
  fields: zod_1.z.array(field_1.FieldSchema),
87
- fieldsData: zod_1.z.record(zod_1.z.number(), zod_1.z.array(zod_1.z.string())),
105
+ fieldsData: zod_1.z.record(zod_1.z.coerce.number(), zod_1.z.array(zod_1.z.string())),
88
106
  gettingStartedSteps: exports.GettingStartedStepsSchema,
89
107
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",