@kl1/contracts 1.3.60 → 1.3.61
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/contract.d.ts +4 -4
- package/dist/api-contracts/src/user/index.d.ts +2 -2
- package/dist/index.js +12 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -29263,7 +29263,7 @@ export declare const apiContract: {
|
|
29263
29263
|
page: import("zod").ZodOptional<import("zod").ZodNumber>;
|
29264
29264
|
pageSize: import("zod").ZodOptional<import("zod").ZodNumber>;
|
29265
29265
|
keyword: import("zod").ZodOptional<import("zod").ZodString>;
|
29266
|
-
userIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many"
|
29266
|
+
userIds: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>]>, string[], string[] | Record<string, string>>>;
|
29267
29267
|
withPresenceStatus: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, boolean, string>>;
|
29268
29268
|
}, "strip", import("zod").ZodTypeAny, {
|
29269
29269
|
page?: number | undefined;
|
@@ -29275,7 +29275,7 @@ export declare const apiContract: {
|
|
29275
29275
|
page?: number | undefined;
|
29276
29276
|
pageSize?: number | undefined;
|
29277
29277
|
keyword?: string | undefined;
|
29278
|
-
userIds?: string[] | undefined;
|
29278
|
+
userIds?: string[] | Record<string, string> | undefined;
|
29279
29279
|
withPresenceStatus?: string | undefined;
|
29280
29280
|
}>>;
|
29281
29281
|
responses: {
|
@@ -332557,7 +332557,7 @@ export declare const memberSettingContract: {
|
|
332557
332557
|
page: import("zod").ZodOptional<import("zod").ZodNumber>;
|
332558
332558
|
pageSize: import("zod").ZodOptional<import("zod").ZodNumber>;
|
332559
332559
|
keyword: import("zod").ZodOptional<import("zod").ZodString>;
|
332560
|
-
userIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many"
|
332560
|
+
userIds: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>]>, string[], string[] | Record<string, string>>>;
|
332561
332561
|
withPresenceStatus: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, boolean, string>>;
|
332562
332562
|
}, "strip", import("zod").ZodTypeAny, {
|
332563
332563
|
page?: number | undefined;
|
@@ -332569,7 +332569,7 @@ export declare const memberSettingContract: {
|
|
332569
332569
|
page?: number | undefined;
|
332570
332570
|
pageSize?: number | undefined;
|
332571
332571
|
keyword?: string | undefined;
|
332572
|
-
userIds?: string[] | undefined;
|
332572
|
+
userIds?: string[] | Record<string, string> | undefined;
|
332573
332573
|
withPresenceStatus?: string | undefined;
|
332574
332574
|
}>>;
|
332575
332575
|
responses: {
|
@@ -537,7 +537,7 @@ export declare const userContract: {
|
|
537
537
|
page: z.ZodOptional<z.ZodNumber>;
|
538
538
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
539
539
|
keyword: z.ZodOptional<z.ZodString>;
|
540
|
-
userIds: z.ZodOptional<z.ZodArray<z.ZodString, "many"
|
540
|
+
userIds: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>, string[], string[] | Record<string, string>>>;
|
541
541
|
withPresenceStatus: z.ZodOptional<z.ZodEffects<z.ZodString, boolean, string>>;
|
542
542
|
}, "strip", z.ZodTypeAny, {
|
543
543
|
page?: number | undefined;
|
@@ -549,7 +549,7 @@ export declare const userContract: {
|
|
549
549
|
page?: number | undefined;
|
550
550
|
pageSize?: number | undefined;
|
551
551
|
keyword?: string | undefined;
|
552
|
-
userIds?: string[] | undefined;
|
552
|
+
userIds?: string[] | Record<string, string> | undefined;
|
553
553
|
withPresenceStatus?: string | undefined;
|
554
554
|
}>>;
|
555
555
|
responses: {
|
package/dist/index.js
CHANGED
@@ -7012,19 +7012,18 @@ var userContract = (0, import_core27.initContract)().router(
|
|
7012
7012
|
pageSize: import_zod82.default.coerce.number().optional(),
|
7013
7013
|
// Don't add default 10. In some places, we need to fetch all users.
|
7014
7014
|
keyword: import_zod82.default.string().optional(),
|
7015
|
-
userIds:
|
7016
|
-
|
7017
|
-
|
7018
|
-
|
7019
|
-
|
7020
|
-
|
7021
|
-
|
7022
|
-
|
7023
|
-
|
7024
|
-
|
7025
|
-
|
7026
|
-
|
7027
|
-
// .optional(),
|
7015
|
+
// userIds: z.array(z.string()).optional(),
|
7016
|
+
userIds: import_zod82.default.union([
|
7017
|
+
import_zod82.default.array(import_zod82.default.string()),
|
7018
|
+
// If it's an array
|
7019
|
+
import_zod82.default.record(import_zod82.default.string())
|
7020
|
+
// If it's an object
|
7021
|
+
]).transform((val) => {
|
7022
|
+
if (Array.isArray(val)) {
|
7023
|
+
return val;
|
7024
|
+
}
|
7025
|
+
return Object.values(val);
|
7026
|
+
}).optional(),
|
7028
7027
|
withPresenceStatus: import_zod82.default.string().transform((val) => val === "true").optional()
|
7029
7028
|
}).optional(),
|
7030
7029
|
responses: {
|