@zyacreatives/shared 2.1.73 → 2.1.75
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/schemas/user.d.ts +3 -23
- package/dist/schemas/user.js +2 -2
- package/package.json +1 -1
- package/src/schemas/user.ts +2 -2
package/dist/schemas/user.d.ts
CHANGED
|
@@ -793,41 +793,21 @@ export declare const SearchUsersInputSchema: z.ZodObject<{
|
|
|
793
793
|
ADMIN: "ADMIN";
|
|
794
794
|
}>>;
|
|
795
795
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
796
|
-
cursor: z.
|
|
796
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
797
797
|
}, z.core.$strip>;
|
|
798
798
|
export declare const SearchUsersOutputSchema: z.ZodObject<{
|
|
799
799
|
users: z.ZodArray<z.ZodObject<{
|
|
800
|
-
id: z.ZodCUID2;
|
|
801
800
|
email: z.ZodEmail;
|
|
802
|
-
|
|
801
|
+
username: z.ZodOptional<z.ZodString>;
|
|
802
|
+
id: z.ZodCUID2;
|
|
803
803
|
name: z.ZodOptional<z.ZodString>;
|
|
804
804
|
image: z.ZodOptional<z.ZodString>;
|
|
805
|
-
username: z.ZodOptional<z.ZodString>;
|
|
806
|
-
displayUsername: z.ZodOptional<z.ZodString>;
|
|
807
805
|
role: z.ZodEnum<{
|
|
808
806
|
CREATIVE: "CREATIVE";
|
|
809
807
|
BRAND: "BRAND";
|
|
810
808
|
INVESTOR: "INVESTOR";
|
|
811
809
|
ADMIN: "ADMIN";
|
|
812
810
|
}>;
|
|
813
|
-
status: z.ZodEnum<{
|
|
814
|
-
ACTIVE: "ACTIVE";
|
|
815
|
-
SUSPENDED: "SUSPENDED";
|
|
816
|
-
DELETED: "DELETED";
|
|
817
|
-
}>;
|
|
818
|
-
onboardingPage: z.ZodEnum<{
|
|
819
|
-
EMAIL_VERIFICATION: "EMAIL_VERIFICATION";
|
|
820
|
-
USERNAME_SELECTION: "USERNAME_SELECTION";
|
|
821
|
-
ACCOUNT_TYPE_SELECTION: "ACCOUNT_TYPE_SELECTION";
|
|
822
|
-
CREATIVE_PROFILE_DETAILS: "CREATIVE_PROFILE_DETAILS";
|
|
823
|
-
BRAND_PROFILE_DETAILS: "BRAND_PROFILE_DETAILS";
|
|
824
|
-
INVESTOR_PROFILE_DETAILS: "INVESTOR_PROFILE_DETAILS";
|
|
825
|
-
INVESTOR_INVESTMENT_FOCUS: "INVESTOR_INVESTMENT_FOCUS";
|
|
826
|
-
INVESTOR_VERIFICATION: "INVESTOR_VERIFICATION";
|
|
827
|
-
DONE: "DONE";
|
|
828
|
-
}>;
|
|
829
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
830
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
831
811
|
}, z.core.$strip>>;
|
|
832
812
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
833
813
|
}, z.core.$strip>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -168,13 +168,13 @@ exports.SearchUsersInputSchema = zod_openapi_1.z.object({
|
|
|
168
168
|
.max(100)
|
|
169
169
|
.default(20)
|
|
170
170
|
.openapi({ example: 20 }),
|
|
171
|
-
cursor: zod_openapi_1.z.
|
|
171
|
+
cursor: zod_openapi_1.z.string().optional().openapi({
|
|
172
172
|
example: 0,
|
|
173
173
|
description: "The offset/cursor for pagination",
|
|
174
174
|
}),
|
|
175
175
|
});
|
|
176
176
|
exports.SearchUsersOutputSchema = zod_openapi_1.z.object({
|
|
177
|
-
users: zod_openapi_1.z.array(exports.
|
|
177
|
+
users: zod_openapi_1.z.array(exports.MinimalUserSchema),
|
|
178
178
|
nextCursor: zod_openapi_1.z.string().optional().openapi({
|
|
179
179
|
example: "abc123",
|
|
180
180
|
description: "The next cursor for pagination",
|
package/package.json
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -233,14 +233,14 @@ export const SearchUsersInputSchema = z.object({
|
|
|
233
233
|
.max(100)
|
|
234
234
|
.default(20)
|
|
235
235
|
.openapi({ example: 20 }),
|
|
236
|
-
cursor: z.
|
|
236
|
+
cursor: z.string().optional().openapi({
|
|
237
237
|
example: 0,
|
|
238
238
|
description: "The offset/cursor for pagination",
|
|
239
239
|
}),
|
|
240
240
|
});
|
|
241
241
|
|
|
242
242
|
export const SearchUsersOutputSchema = z.object({
|
|
243
|
-
users: z.array(
|
|
243
|
+
users: z.array(MinimalUserSchema),
|
|
244
244
|
nextCursor: z.string().optional().openapi({
|
|
245
245
|
example: "abc123",
|
|
246
246
|
description: "The next cursor for pagination",
|