@zyacreatives/shared 2.5.10 → 2.5.12
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/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/schemas/notification.d.ts +4 -0
- package/dist/schemas/user.d.ts +6 -0
- package/dist/schemas/user.js +6 -1
- package/package.json +1 -1
- package/src/constants.ts +1 -0
- package/src/schemas/user.ts +8 -0
package/dist/constants.d.ts
CHANGED
|
@@ -257,6 +257,7 @@ export declare const NOTIFICATION_TYPES: {
|
|
|
257
257
|
readonly PROJECT_FEATURED: "Project Featured";
|
|
258
258
|
readonly PROJECT_TAG: "Project Tag";
|
|
259
259
|
readonly MENTION: "Mention";
|
|
260
|
+
readonly PRODUCT_APPROVAL: "Product Approval";
|
|
260
261
|
readonly MARKETPLACE_DROP: "Marketplace Drop";
|
|
261
262
|
};
|
|
262
263
|
export declare const VENTURE_STAGES: {
|
package/dist/constants.js
CHANGED
|
@@ -16,6 +16,7 @@ export declare const NotificationEntitySchema: z.ZodObject<{
|
|
|
16
16
|
readonly PROJECT_FEATURED: "Project Featured";
|
|
17
17
|
readonly PROJECT_TAG: "Project Tag";
|
|
18
18
|
readonly MENTION: "Mention";
|
|
19
|
+
readonly PRODUCT_APPROVAL: "Product Approval";
|
|
19
20
|
readonly MARKETPLACE_DROP: "Marketplace Drop";
|
|
20
21
|
}>;
|
|
21
22
|
entityId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -69,6 +70,7 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
|
|
|
69
70
|
readonly PROJECT_FEATURED: "Project Featured";
|
|
70
71
|
readonly PROJECT_TAG: "Project Tag";
|
|
71
72
|
readonly MENTION: "Mention";
|
|
73
|
+
readonly PRODUCT_APPROVAL: "Product Approval";
|
|
72
74
|
readonly MARKETPLACE_DROP: "Marketplace Drop";
|
|
73
75
|
}>;
|
|
74
76
|
entityId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -144,6 +146,7 @@ export declare const ListNotificationsInputSchema: z.ZodObject<{
|
|
|
144
146
|
readonly PROJECT_FEATURED: "Project Featured";
|
|
145
147
|
readonly PROJECT_TAG: "Project Tag";
|
|
146
148
|
readonly MENTION: "Mention";
|
|
149
|
+
readonly PRODUCT_APPROVAL: "Product Approval";
|
|
147
150
|
readonly MARKETPLACE_DROP: "Marketplace Drop";
|
|
148
151
|
}>>;
|
|
149
152
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -167,6 +170,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
167
170
|
readonly PROJECT_FEATURED: "Project Featured";
|
|
168
171
|
readonly PROJECT_TAG: "Project Tag";
|
|
169
172
|
readonly MENTION: "Mention";
|
|
173
|
+
readonly PRODUCT_APPROVAL: "Product Approval";
|
|
170
174
|
readonly MARKETPLACE_DROP: "Marketplace Drop";
|
|
171
175
|
}>;
|
|
172
176
|
entityId: z.ZodOptional<z.ZodCUID2>;
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -364,6 +364,12 @@ export declare const UserWithPostsEntitySchema: z.ZodObject<{
|
|
|
364
364
|
}, z.core.$strip>>>;
|
|
365
365
|
}, z.core.$strip>>;
|
|
366
366
|
}, z.core.$strip>;
|
|
367
|
+
export declare const UserAuthStatusEntitySchema: z.ZodObject<{
|
|
368
|
+
exists: z.ZodBoolean;
|
|
369
|
+
isOAuthOnly: z.ZodBoolean;
|
|
370
|
+
providers: z.ZodArray<z.ZodString>;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
export type UserAuthStatusEntity = z.infer<typeof UserAuthStatusEntitySchema>;
|
|
367
373
|
export declare const UserWithProjectLikesEntitySchema: z.ZodObject<{
|
|
368
374
|
userId: z.ZodCUID2;
|
|
369
375
|
projectLikes: z.ZodArray<z.ZodObject<{
|
package/dist/schemas/user.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserSearchDocumentSchema = exports.SearchUsersOutputSchema = exports.SearchUsersInputSchema = exports.GetUserActivityOutputSchema = exports.GetUserActivityInputSchema = exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.GetUserFollowersOutputSchema = exports.GetUserFollowingOutputSchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserWithPostBookmarksOutputSchema = exports.GetUserWithProductsOutputSchema = exports.GetUserWithProjectBookmarksOutputSchema = exports.GetUserWithPostBookmarksInputSchema = exports.GetUserWithProjectBookmarksInputSchema = exports.UserWithProductsEntitySchema = exports.UserWithPostBookmarksEntitySchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithJobBookmarksOutputSchema = exports.UserWithJobBookmarksInputSchema = exports.UserWithJobBookmarksEntitySchema = exports.UserWithPostLikesEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithPostsEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserStatsEntitySchema = exports.UserProfileEntitySchema = exports.MinimalUserSchema = exports.UserEntitySchema = void 0;
|
|
3
|
+
exports.UserSearchDocumentSchema = exports.SearchUsersOutputSchema = exports.SearchUsersInputSchema = exports.GetUserActivityOutputSchema = exports.GetUserActivityInputSchema = exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.GetUserFollowersOutputSchema = exports.GetUserFollowingOutputSchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserWithPostBookmarksOutputSchema = exports.GetUserWithProductsOutputSchema = exports.GetUserWithProjectBookmarksOutputSchema = exports.GetUserWithPostBookmarksInputSchema = exports.GetUserWithProjectBookmarksInputSchema = exports.UserWithProductsEntitySchema = exports.UserWithPostBookmarksEntitySchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithJobBookmarksOutputSchema = exports.UserWithJobBookmarksInputSchema = exports.UserWithJobBookmarksEntitySchema = exports.UserWithPostLikesEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserAuthStatusEntitySchema = exports.UserWithPostsEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserStatsEntitySchema = exports.UserProfileEntitySchema = 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");
|
|
@@ -86,6 +86,11 @@ exports.UserWithPostsEntitySchema = zod_openapi_1.z
|
|
|
86
86
|
posts: zod_openapi_1.z.array(post_1.PostWithFilesEntitySchema).openapi({ example: [] }),
|
|
87
87
|
})
|
|
88
88
|
.openapi("UserWithPostsEntity");
|
|
89
|
+
exports.UserAuthStatusEntitySchema = zod_openapi_1.z.object({
|
|
90
|
+
exists: zod_openapi_1.z.boolean(),
|
|
91
|
+
isOAuthOnly: zod_openapi_1.z.boolean(),
|
|
92
|
+
providers: zod_openapi_1.z.array(zod_openapi_1.z.string()),
|
|
93
|
+
});
|
|
89
94
|
// ==========================================
|
|
90
95
|
// 3. LIKES
|
|
91
96
|
// ==========================================
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -115,6 +115,14 @@ export const UserWithPostsEntitySchema = z
|
|
|
115
115
|
})
|
|
116
116
|
.openapi("UserWithPostsEntity");
|
|
117
117
|
|
|
118
|
+
export const UserAuthStatusEntitySchema = z.object({
|
|
119
|
+
exists: z.boolean(),
|
|
120
|
+
isOAuthOnly: z.boolean(),
|
|
121
|
+
providers: z.array(z.string()),
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
export type UserAuthStatusEntity = z.infer<typeof UserAuthStatusEntitySchema>;
|
|
125
|
+
|
|
118
126
|
// ==========================================
|
|
119
127
|
// 3. LIKES
|
|
120
128
|
// ==========================================
|