@zyacreatives/shared 2.5.9 → 2.5.11

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.
@@ -255,6 +255,9 @@ export declare const NOTIFICATION_TYPES: {
255
255
  readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
256
256
  readonly SYSTEM_STRIKE: "System Strike";
257
257
  readonly PROJECT_FEATURED: "Project Featured";
258
+ readonly PROJECT_TAG: "Project Tag";
259
+ readonly MENTION: "Mention";
260
+ readonly MARKETPLACE_DROP: "Marketplace Drop";
258
261
  };
259
262
  export declare const VENTURE_STAGES: {
260
263
  readonly IDEA: "Idea";
package/dist/constants.js CHANGED
@@ -253,6 +253,9 @@ exports.NOTIFICATION_TYPES = {
253
253
  APPLICATION_STATUS_CHANGE: "Application Status Change",
254
254
  SYSTEM_STRIKE: "System Strike",
255
255
  PROJECT_FEATURED: "Project Featured",
256
+ PROJECT_TAG: "Project Tag",
257
+ MENTION: "Mention",
258
+ MARKETPLACE_DROP: "Marketplace Drop",
256
259
  };
257
260
  exports.VENTURE_STAGES = {
258
261
  IDEA: "Idea",
@@ -14,6 +14,9 @@ export declare const NotificationEntitySchema: z.ZodObject<{
14
14
  readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
15
15
  readonly SYSTEM_STRIKE: "System Strike";
16
16
  readonly PROJECT_FEATURED: "Project Featured";
17
+ readonly PROJECT_TAG: "Project Tag";
18
+ readonly MENTION: "Mention";
19
+ readonly MARKETPLACE_DROP: "Marketplace Drop";
17
20
  }>;
18
21
  entityId: z.ZodOptional<z.ZodCUID2>;
19
22
  parentId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
@@ -64,6 +67,9 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
64
67
  readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
65
68
  readonly SYSTEM_STRIKE: "System Strike";
66
69
  readonly PROJECT_FEATURED: "Project Featured";
70
+ readonly PROJECT_TAG: "Project Tag";
71
+ readonly MENTION: "Mention";
72
+ readonly MARKETPLACE_DROP: "Marketplace Drop";
67
73
  }>;
68
74
  entityId: z.ZodOptional<z.ZodCUID2>;
69
75
  parentId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
@@ -136,6 +142,9 @@ export declare const ListNotificationsInputSchema: z.ZodObject<{
136
142
  readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
137
143
  readonly SYSTEM_STRIKE: "System Strike";
138
144
  readonly PROJECT_FEATURED: "Project Featured";
145
+ readonly PROJECT_TAG: "Project Tag";
146
+ readonly MENTION: "Mention";
147
+ readonly MARKETPLACE_DROP: "Marketplace Drop";
139
148
  }>>;
140
149
  cursor: z.ZodOptional<z.ZodString>;
141
150
  unreadOnly: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>>;
@@ -156,6 +165,9 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
156
165
  readonly APPLICATION_STATUS_CHANGE: "Application Status Change";
157
166
  readonly SYSTEM_STRIKE: "System Strike";
158
167
  readonly PROJECT_FEATURED: "Project Featured";
168
+ readonly PROJECT_TAG: "Project Tag";
169
+ readonly MENTION: "Mention";
170
+ readonly MARKETPLACE_DROP: "Marketplace Drop";
159
171
  }>;
160
172
  entityId: z.ZodOptional<z.ZodCUID2>;
161
173
  parentId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
@@ -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<{
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.5.9",
3
+ "version": "2.5.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -288,6 +288,9 @@ export const NOTIFICATION_TYPES = {
288
288
  APPLICATION_STATUS_CHANGE: "Application Status Change",
289
289
  SYSTEM_STRIKE: "System Strike",
290
290
  PROJECT_FEATURED: "Project Featured",
291
+ PROJECT_TAG: "Project Tag",
292
+ MENTION: "Mention",
293
+ MARKETPLACE_DROP: "Marketplace Drop",
291
294
  } as const;
292
295
 
293
296
  export const VENTURE_STAGES = {
@@ -9,7 +9,6 @@ export const NotificationEntitySchema = z
9
9
  actorId: z.cuid2().openapi({ example: "user_actor_456" }),
10
10
  type: z.enum(NOTIFICATION_TYPES).openapi({ example: "LIKE" }),
11
11
  entityId: z.cuid2().optional().openapi({ example: "entity_789" }),
12
-
13
12
  parentId: z
14
13
  .cuid2()
15
14
  .optional()
@@ -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
  // ==========================================