@zyacreatives/shared 2.0.31 → 2.0.33

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.
@@ -179,6 +179,14 @@ export declare const POST_BADGE_TYPES: {
179
179
  readonly DISCUSSION: "Discussion";
180
180
  readonly MENTORSHIP: "Mentorship";
181
181
  };
182
+ export declare const ACTIVITY_TYPES: {
183
+ readonly LIKE: "LIKE";
184
+ readonly UNLIKE: "UNLIKE";
185
+ readonly BOOKMARK: "BOOKMARK";
186
+ readonly UNBOOKMARK: "UNBOOKMARK";
187
+ readonly VIEW: "VIEW";
188
+ };
189
+ export type ActivityType = (typeof ACTIVITY_TYPES)[keyof typeof ACTIVITY_TYPES];
182
190
  export type PostBadgeType = (typeof POST_BADGE_TYPES)[keyof typeof POST_BADGE_TYPES];
183
191
  export type JobSections = (typeof JOB_SECTIONS)[keyof typeof JOB_SECTIONS];
184
192
  export type WagesCurrency = (typeof WAGES_CURRENCY)[keyof typeof WAGES_CURRENCY];
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_DISCIPLINES = exports.API_ROUTES = exports.POST_BADGE_TYPES = exports.JOB_STATUS = exports.WAGES_CURRENCY = exports.GIG_TYPE = exports.JOB_LOCATIONS = exports.JOB_SECTIONS = exports.WAGE_TYPES = exports.JOB_AVAILABILITY_TYPES = exports.EMPLOYMENT_TYPE = exports.WORK_MODE = exports.JOB_TYPE = exports.POST_TYPES = exports.ACTIVITY_PARENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_STATUSES = exports.GEOGRAPHIC_FOCUS = exports.INVESTMENT_SIZES = exports.INVESTOR_TYPES = exports.ONBOARDING_PAGES = exports.EXPERIENCE_LEVELS = exports.CLIENT_TYPES = exports.USER_STATUSES = exports.ROLES = void 0;
3
+ exports.DEFAULT_DISCIPLINES = exports.API_ROUTES = exports.ACTIVITY_TYPES = exports.POST_BADGE_TYPES = exports.JOB_STATUS = exports.WAGES_CURRENCY = exports.GIG_TYPE = exports.JOB_LOCATIONS = exports.JOB_SECTIONS = exports.WAGE_TYPES = exports.JOB_AVAILABILITY_TYPES = exports.EMPLOYMENT_TYPE = exports.WORK_MODE = exports.JOB_TYPE = exports.POST_TYPES = exports.ACTIVITY_PARENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_STATUSES = exports.GEOGRAPHIC_FOCUS = exports.INVESTMENT_SIZES = exports.INVESTOR_TYPES = exports.ONBOARDING_PAGES = exports.EXPERIENCE_LEVELS = exports.CLIENT_TYPES = exports.USER_STATUSES = exports.ROLES = void 0;
4
4
  exports.ROLES = {
5
5
  CREATIVE: "CREATIVE",
6
6
  BRAND: "BRAND",
@@ -181,6 +181,13 @@ exports.POST_BADGE_TYPES = {
181
181
  DISCUSSION: "Discussion",
182
182
  MENTORSHIP: "Mentorship",
183
183
  };
184
+ exports.ACTIVITY_TYPES = {
185
+ LIKE: "LIKE",
186
+ UNLIKE: "UNLIKE",
187
+ BOOKMARK: "BOOKMARK",
188
+ UNBOOKMARK: "UNBOOKMARK",
189
+ VIEW: "VIEW",
190
+ };
184
191
  exports.API_ROUTES = {
185
192
  healthCheck: "/health",
186
193
  username: {
@@ -308,7 +308,7 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
308
308
  order: z.ZodNumber;
309
309
  url: z.ZodURL;
310
310
  }, z.core.$strip>>>;
311
- stats: {
311
+ stats: z.ZodObject<{
312
312
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
313
313
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
314
314
  parentId: z.ZodCUID2;
@@ -320,7 +320,7 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
320
320
  bookmarksCount: z.ZodNumber;
321
321
  viewsCount: z.ZodNumber;
322
322
  commentsCount: z.ZodNumber;
323
- };
323
+ }, z.core.$strip>;
324
324
  score: z.ZodNumber;
325
325
  }, z.core.$strip>;
326
326
  export declare const GetFeedInputSchema: z.ZodObject<{
@@ -369,7 +369,7 @@ export declare const GetFeedOutputSchema: z.ZodArray<z.ZodObject<{
369
369
  order: z.ZodNumber;
370
370
  url: z.ZodURL;
371
371
  }, z.core.$strip>>>;
372
- stats: {
372
+ stats: z.ZodObject<{
373
373
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
374
374
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
375
375
  parentId: z.ZodCUID2;
@@ -381,6 +381,6 @@ export declare const GetFeedOutputSchema: z.ZodArray<z.ZodObject<{
381
381
  bookmarksCount: z.ZodNumber;
382
382
  viewsCount: z.ZodNumber;
383
383
  commentsCount: z.ZodNumber;
384
- };
384
+ }, z.core.$strip>;
385
385
  score: z.ZodNumber;
386
386
  }, z.core.$strip>>;
@@ -152,7 +152,7 @@ exports.LinkPreviewOutputSchema = zod_openapi_1.z.object({
152
152
  url: zod_openapi_1.z.string().optional(),
153
153
  });
154
154
  exports.FeedPostEntitySchema = exports.PostWithFilesEntitySchema.extend({
155
- stats: entity_stats_1.EntityStatsSchema.shape,
155
+ stats: entity_stats_1.EntityStatsSchema,
156
156
  score: zod_openapi_1.z.number(),
157
157
  });
158
158
  exports.GetFeedInputSchema = zod_openapi_1.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.31",
3
+ "version": "2.0.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -202,6 +202,14 @@ export const POST_BADGE_TYPES = {
202
202
  MENTORSHIP: "Mentorship",
203
203
  } as const;
204
204
 
205
+ export const ACTIVITY_TYPES = {
206
+ LIKE: "LIKE",
207
+ UNLIKE: "UNLIKE",
208
+ BOOKMARK: "BOOKMARK",
209
+ UNBOOKMARK: "UNBOOKMARK",
210
+ VIEW: "VIEW",
211
+ } as const;
212
+ export type ActivityType = (typeof ACTIVITY_TYPES)[keyof typeof ACTIVITY_TYPES];
205
213
  export type PostBadgeType =
206
214
  (typeof POST_BADGE_TYPES)[keyof typeof POST_BADGE_TYPES];
207
215
  export type JobSections = (typeof JOB_SECTIONS)[keyof typeof JOB_SECTIONS];
@@ -167,7 +167,7 @@ export const LinkPreviewOutputSchema = z.object({
167
167
  });
168
168
 
169
169
  export const FeedPostEntitySchema = PostWithFilesEntitySchema.extend({
170
- stats: EntityStatsSchema.shape,
170
+ stats: EntityStatsSchema,
171
171
  score: z.number(),
172
172
  });
173
173