@devizovaburza/mdm-sdk 2.1.0 → 2.1.2
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.
- package/dist/v1/index.d.mts +2 -2
- package/dist/v1/index.d.ts +2 -2
- package/dist/v1/index.mjs +3 -1
- package/package.json +1 -1
package/dist/v1/index.d.mts
CHANGED
|
@@ -6199,7 +6199,7 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
6199
6199
|
page?: unknown;
|
|
6200
6200
|
limit?: unknown;
|
|
6201
6201
|
search?: string | undefined;
|
|
6202
|
-
ids?: string[] | undefined;
|
|
6202
|
+
ids?: string | string[] | undefined;
|
|
6203
6203
|
includeDeleted?: string | undefined;
|
|
6204
6204
|
};
|
|
6205
6205
|
};
|
|
@@ -6572,7 +6572,7 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
6572
6572
|
page?: unknown;
|
|
6573
6573
|
limit?: unknown;
|
|
6574
6574
|
search?: string | undefined;
|
|
6575
|
-
ids?: string[] | undefined;
|
|
6575
|
+
ids?: string | string[] | undefined;
|
|
6576
6576
|
includeDeleted?: string | undefined;
|
|
6577
6577
|
};
|
|
6578
6578
|
};
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -6199,7 +6199,7 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
6199
6199
|
page?: unknown;
|
|
6200
6200
|
limit?: unknown;
|
|
6201
6201
|
search?: string | undefined;
|
|
6202
|
-
ids?: string[] | undefined;
|
|
6202
|
+
ids?: string | string[] | undefined;
|
|
6203
6203
|
includeDeleted?: string | undefined;
|
|
6204
6204
|
};
|
|
6205
6205
|
};
|
|
@@ -6572,7 +6572,7 @@ declare const partnerApi: OpenAPIHono<{
|
|
|
6572
6572
|
page?: unknown;
|
|
6573
6573
|
limit?: unknown;
|
|
6574
6574
|
search?: string | undefined;
|
|
6575
|
-
ids?: string[] | undefined;
|
|
6575
|
+
ids?: string | string[] | undefined;
|
|
6576
6576
|
includeDeleted?: string | undefined;
|
|
6577
6577
|
};
|
|
6578
6578
|
};
|
package/dist/v1/index.mjs
CHANGED
|
@@ -1877,7 +1877,9 @@ const paginationAndSearchSchema = z.object({
|
|
|
1877
1877
|
column: z.string(),
|
|
1878
1878
|
direction: z.enum(["asc", "desc"]),
|
|
1879
1879
|
search: z.string().optional(),
|
|
1880
|
-
|
|
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.union([z.string(), z.string().array()]).optional().transform((v) => v == null ? void 0 : Array.isArray(v) ? v : [v]),
|
|
1881
1883
|
includeDeleted: z.string().transform((v) => v === "true").optional()
|
|
1882
1884
|
});
|
|
1883
1885
|
const partiesOutputDataSchema = z.array(partyOutputSchema);
|