@zyacreatives/shared 2.1.72 → 2.1.73
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 +36 -0
- package/dist/schemas/user.js +8 -1
- package/dist/types/user.d.ts +2 -1
- package/package.json +1 -1
- package/src/schemas/user.ts +8 -0
- package/src/types/user.ts +3 -0
package/dist/schemas/user.d.ts
CHANGED
|
@@ -795,3 +795,39 @@ export declare const SearchUsersInputSchema: z.ZodObject<{
|
|
|
795
795
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
796
796
|
cursor: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
797
797
|
}, z.core.$strip>;
|
|
798
|
+
export declare const SearchUsersOutputSchema: z.ZodObject<{
|
|
799
|
+
users: z.ZodArray<z.ZodObject<{
|
|
800
|
+
id: z.ZodCUID2;
|
|
801
|
+
email: z.ZodEmail;
|
|
802
|
+
emailVerified: z.ZodBoolean;
|
|
803
|
+
name: z.ZodOptional<z.ZodString>;
|
|
804
|
+
image: z.ZodOptional<z.ZodString>;
|
|
805
|
+
username: z.ZodOptional<z.ZodString>;
|
|
806
|
+
displayUsername: z.ZodOptional<z.ZodString>;
|
|
807
|
+
role: z.ZodEnum<{
|
|
808
|
+
CREATIVE: "CREATIVE";
|
|
809
|
+
BRAND: "BRAND";
|
|
810
|
+
INVESTOR: "INVESTOR";
|
|
811
|
+
ADMIN: "ADMIN";
|
|
812
|
+
}>;
|
|
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
|
+
}, z.core.$strip>>;
|
|
832
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
833
|
+
}, z.core.$strip>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchUsersInputSchema = exports.GetUserActivityOutputSchema = exports.GetUserActivityInputSchema = exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.UserWithPostsEntitySchema = exports.GetUserFollowingOutputSchema = exports.GetUserFollowersOutputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserStatsEntitySchema = exports.MinimalUserSchema = exports.UserEntitySchema = void 0;
|
|
3
|
+
exports.SearchUsersOutputSchema = exports.SearchUsersInputSchema = exports.GetUserActivityOutputSchema = exports.GetUserActivityInputSchema = exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.UserWithPostsEntitySchema = exports.GetUserFollowingOutputSchema = exports.GetUserFollowersOutputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserStatsEntitySchema = exports.MinimalUserSchema = exports.UserEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const project_1 = require("./project");
|
|
@@ -173,3 +173,10 @@ exports.SearchUsersInputSchema = zod_openapi_1.z.object({
|
|
|
173
173
|
description: "The offset/cursor for pagination",
|
|
174
174
|
}),
|
|
175
175
|
});
|
|
176
|
+
exports.SearchUsersOutputSchema = zod_openapi_1.z.object({
|
|
177
|
+
users: zod_openapi_1.z.array(exports.UserEntitySchema),
|
|
178
|
+
nextCursor: zod_openapi_1.z.string().optional().openapi({
|
|
179
|
+
example: "abc123",
|
|
180
|
+
description: "The next cursor for pagination",
|
|
181
|
+
}),
|
|
182
|
+
});
|
package/dist/types/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectsEntitySchema, UserWithProjectBookmarksEntitySchema, GetUserFollowingInputSchema, GetUserFollowersInputSchema, UserWithFollowingEntitySchema, UserWithFollowersEntitySchema, GetUserFollowingOutputSchema, GetUserFollowersOutputSchema, GetAuthenticatedUserOutputSchema, GetAuthenticatedUserProfileOutputSchema, GetAuthenticatedUserWithProjectsOutputSchema, GetAuthenticatedUserWithProjectBookmarksOutputSchema, GetAuthenticatedUserWithUserFollowingOutputSchema, GetAuthenticatedUserWithUserFollowersOutputSchema, SearchUsersInputSchema, UserWithProjectLikesEntitySchema, GetAuthenticatedUserWithProjectLikesOutputSchema, GetUserActivityInputSchema, GetUserActivityOutputSchema, UserStatsEntitySchema, UserWithPostsEntitySchema } from "../schemas/user";
|
|
1
|
+
import { MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectsEntitySchema, UserWithProjectBookmarksEntitySchema, GetUserFollowingInputSchema, GetUserFollowersInputSchema, UserWithFollowingEntitySchema, UserWithFollowersEntitySchema, GetUserFollowingOutputSchema, GetUserFollowersOutputSchema, GetAuthenticatedUserOutputSchema, GetAuthenticatedUserProfileOutputSchema, GetAuthenticatedUserWithProjectsOutputSchema, GetAuthenticatedUserWithProjectBookmarksOutputSchema, GetAuthenticatedUserWithUserFollowingOutputSchema, GetAuthenticatedUserWithUserFollowersOutputSchema, SearchUsersInputSchema, UserWithProjectLikesEntitySchema, GetAuthenticatedUserWithProjectLikesOutputSchema, GetUserActivityInputSchema, GetUserActivityOutputSchema, UserStatsEntitySchema, UserWithPostsEntitySchema, SearchUsersOutputSchema } from "../schemas/user";
|
|
2
2
|
import { z } from "@hono/zod-openapi";
|
|
3
3
|
export type BaseUserEntity = z.infer<typeof UserEntitySchema>;
|
|
4
4
|
export type MinimalUser = z.infer<typeof MinimalUserSchema>;
|
|
@@ -25,3 +25,4 @@ export type GetUserActivityInput = z.infer<typeof GetUserActivityInputSchema>;
|
|
|
25
25
|
export type GetUserActivityOutput = z.infer<typeof GetUserActivityOutputSchema>;
|
|
26
26
|
export type UserStatsEntity = z.infer<typeof UserStatsEntitySchema>;
|
|
27
27
|
export type SearchUsersInput = z.infer<typeof SearchUsersInputSchema>;
|
|
28
|
+
export type SearchUsersOutput = z.infer<typeof SearchUsersOutputSchema>;
|
package/package.json
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -238,3 +238,11 @@ export const SearchUsersInputSchema = z.object({
|
|
|
238
238
|
description: "The offset/cursor for pagination",
|
|
239
239
|
}),
|
|
240
240
|
});
|
|
241
|
+
|
|
242
|
+
export const SearchUsersOutputSchema = z.object({
|
|
243
|
+
users: z.array(UserEntitySchema),
|
|
244
|
+
nextCursor: z.string().optional().openapi({
|
|
245
|
+
example: "abc123",
|
|
246
|
+
description: "The next cursor for pagination",
|
|
247
|
+
}),
|
|
248
|
+
});
|
package/src/types/user.ts
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
GetUserActivityOutputSchema,
|
|
24
24
|
UserStatsEntitySchema,
|
|
25
25
|
UserWithPostsEntitySchema,
|
|
26
|
+
SearchUsersOutputSchema,
|
|
26
27
|
} from "../schemas/user";
|
|
27
28
|
|
|
28
29
|
import { z } from "@hono/zod-openapi";
|
|
@@ -80,4 +81,6 @@ export type GetAuthenticatedUserWithUserFollowersOutput = z.infer<
|
|
|
80
81
|
export type GetUserActivityInput = z.infer<typeof GetUserActivityInputSchema>;
|
|
81
82
|
export type GetUserActivityOutput = z.infer<typeof GetUserActivityOutputSchema>;
|
|
82
83
|
export type UserStatsEntity = z.infer<typeof UserStatsEntitySchema>;
|
|
84
|
+
|
|
83
85
|
export type SearchUsersInput = z.infer<typeof SearchUsersInputSchema>;
|
|
86
|
+
export type SearchUsersOutput = z.infer<typeof SearchUsersOutputSchema>;
|