@devizovaburza/mdm-sdk 2.1.0 → 2.1.1

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.
@@ -6196,10 +6196,10 @@ declare const partnerApi: OpenAPIHono<{
6196
6196
  query: {
6197
6197
  column: string;
6198
6198
  direction: "asc" | "desc";
6199
+ ids: unknown;
6199
6200
  page?: unknown;
6200
6201
  limit?: unknown;
6201
6202
  search?: string | undefined;
6202
- ids?: string[] | undefined;
6203
6203
  includeDeleted?: string | undefined;
6204
6204
  };
6205
6205
  };
@@ -6569,10 +6569,10 @@ declare const partnerApi: OpenAPIHono<{
6569
6569
  query: {
6570
6570
  column: string;
6571
6571
  direction: "asc" | "desc";
6572
+ ids: unknown;
6572
6573
  page?: unknown;
6573
6574
  limit?: unknown;
6574
6575
  search?: string | undefined;
6575
- ids?: string[] | undefined;
6576
6576
  includeDeleted?: string | undefined;
6577
6577
  };
6578
6578
  };
@@ -6196,10 +6196,10 @@ declare const partnerApi: OpenAPIHono<{
6196
6196
  query: {
6197
6197
  column: string;
6198
6198
  direction: "asc" | "desc";
6199
+ ids: unknown;
6199
6200
  page?: unknown;
6200
6201
  limit?: unknown;
6201
6202
  search?: string | undefined;
6202
- ids?: string[] | undefined;
6203
6203
  includeDeleted?: string | undefined;
6204
6204
  };
6205
6205
  };
@@ -6569,10 +6569,10 @@ declare const partnerApi: OpenAPIHono<{
6569
6569
  query: {
6570
6570
  column: string;
6571
6571
  direction: "asc" | "desc";
6572
+ ids: unknown;
6572
6573
  page?: unknown;
6573
6574
  limit?: unknown;
6574
6575
  search?: string | undefined;
6575
- ids?: string[] | undefined;
6576
6576
  includeDeleted?: string | undefined;
6577
6577
  };
6578
6578
  };
package/dist/v1/index.mjs CHANGED
@@ -1877,7 +1877,12 @@ const paginationAndSearchSchema = z.object({
1877
1877
  column: z.string(),
1878
1878
  direction: z.enum(["asc", "desc"]),
1879
1879
  search: z.string().optional(),
1880
- ids: z.string().array().optional(),
1880
+ // Hono validator collapses single-value query keys to strings, so accept
1881
+ // both `?ids=<uuid>` and `?ids=<uuid>&ids=<uuid>` and normalize to array.
1882
+ ids: z.preprocess(
1883
+ (v) => v == null ? void 0 : Array.isArray(v) ? v : [v],
1884
+ z.string().array().optional()
1885
+ ),
1881
1886
  includeDeleted: z.string().transform((v) => v === "true").optional()
1882
1887
  });
1883
1888
  const partiesOutputDataSchema = z.array(partyOutputSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devizovaburza/mdm-sdk",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "author": "Devizová burza a.s.",
5
5
  "license": "ISC",
6
6
  "type": "module",