@zyacreatives/shared 1.3.9 → 1.4.0

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.
@@ -246,3 +246,196 @@ export declare const UserWithFollowersEntitySchema: z.ZodObject<{
246
246
  }>;
247
247
  }, z.core.$strip>>;
248
248
  }, z.core.$strip>;
249
+ export declare const GetAuthenticatedUserOutputSchema: z.ZodObject<{
250
+ id: z.ZodCUID2;
251
+ email: z.ZodString;
252
+ emailVerified: z.ZodBoolean;
253
+ name: z.ZodOptional<z.ZodString>;
254
+ image: z.ZodOptional<z.ZodString>;
255
+ username: z.ZodOptional<z.ZodString>;
256
+ displayUsername: z.ZodOptional<z.ZodString>;
257
+ role: z.ZodEnum<{
258
+ CREATIVE: "CREATIVE";
259
+ BRAND: "BRAND";
260
+ INVESTOR: "INVESTOR";
261
+ ADMIN: "ADMIN";
262
+ }>;
263
+ status: z.ZodEnum<{
264
+ ACTIVE: "ACTIVE";
265
+ SUSPENDED: "SUSPENDED";
266
+ DELETED: "DELETED";
267
+ }>;
268
+ onboardingPage: z.ZodEnum<{
269
+ EMAIL_VERIFICATION: "EMAIL_VERIFICATION";
270
+ USERNAME_SELECTION: "USERNAME_SELECTION";
271
+ ACCOUNT_TYPE_SELECTION: "ACCOUNT_TYPE_SELECTION";
272
+ CREATIVE_PROFILE_DETAILS: "CREATIVE_PROFILE_DETAILS";
273
+ CREATIVE_PROFILE_CUSTOMIZE_FEED: "CREATIVE_PROFILE_CUSTOMIZE_FEED";
274
+ CREATIVE_PROFILE_PORTFOLIO: "CREATIVE_PROFILE_PORTFOLIO";
275
+ BRAND_PROFILE_DETAILS: "BRAND_PROFILE_DETAILS";
276
+ BRAND_PROFILE_CUSTOMIZE_FEED: "BRAND_PROFILE_CUSTOMIZE_FEED";
277
+ BRAND_PROFILE_PORTFOLIO: "BRAND_PROFILE_PORTFOLIO";
278
+ INVESTOR_PROFILE_DETAILS: "INVESTOR_PROFILE_DETAILS";
279
+ INVESTOR_INVESTMENT_FOCUS: "INVESTOR_INVESTMENT_FOCUS";
280
+ INVESTOR_VERIFICATION: "INVESTOR_VERIFICATION";
281
+ DONE: "DONE";
282
+ }>;
283
+ createdAt: z.ZodCoercedDate<unknown>;
284
+ updatedAt: z.ZodCoercedDate<unknown>;
285
+ followerCount: z.ZodOptional<z.ZodNumber>;
286
+ followingCount: z.ZodOptional<z.ZodNumber>;
287
+ }, z.core.$strip>;
288
+ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
289
+ id: z.ZodCUID2;
290
+ email: z.ZodString;
291
+ emailVerified: z.ZodBoolean;
292
+ name: z.ZodOptional<z.ZodString>;
293
+ image: z.ZodOptional<z.ZodString>;
294
+ username: z.ZodOptional<z.ZodString>;
295
+ displayUsername: z.ZodOptional<z.ZodString>;
296
+ role: z.ZodEnum<{
297
+ CREATIVE: "CREATIVE";
298
+ BRAND: "BRAND";
299
+ INVESTOR: "INVESTOR";
300
+ ADMIN: "ADMIN";
301
+ }>;
302
+ status: z.ZodEnum<{
303
+ ACTIVE: "ACTIVE";
304
+ SUSPENDED: "SUSPENDED";
305
+ DELETED: "DELETED";
306
+ }>;
307
+ onboardingPage: z.ZodEnum<{
308
+ EMAIL_VERIFICATION: "EMAIL_VERIFICATION";
309
+ USERNAME_SELECTION: "USERNAME_SELECTION";
310
+ ACCOUNT_TYPE_SELECTION: "ACCOUNT_TYPE_SELECTION";
311
+ CREATIVE_PROFILE_DETAILS: "CREATIVE_PROFILE_DETAILS";
312
+ CREATIVE_PROFILE_CUSTOMIZE_FEED: "CREATIVE_PROFILE_CUSTOMIZE_FEED";
313
+ CREATIVE_PROFILE_PORTFOLIO: "CREATIVE_PROFILE_PORTFOLIO";
314
+ BRAND_PROFILE_DETAILS: "BRAND_PROFILE_DETAILS";
315
+ BRAND_PROFILE_CUSTOMIZE_FEED: "BRAND_PROFILE_CUSTOMIZE_FEED";
316
+ BRAND_PROFILE_PORTFOLIO: "BRAND_PROFILE_PORTFOLIO";
317
+ INVESTOR_PROFILE_DETAILS: "INVESTOR_PROFILE_DETAILS";
318
+ INVESTOR_INVESTMENT_FOCUS: "INVESTOR_INVESTMENT_FOCUS";
319
+ INVESTOR_VERIFICATION: "INVESTOR_VERIFICATION";
320
+ DONE: "DONE";
321
+ }>;
322
+ createdAt: z.ZodCoercedDate<unknown>;
323
+ updatedAt: z.ZodCoercedDate<unknown>;
324
+ followerCount: z.ZodOptional<z.ZodNumber>;
325
+ followingCount: z.ZodOptional<z.ZodNumber>;
326
+ profileType: z.ZodOptional<z.ZodEnum<{
327
+ creative: "creative";
328
+ brand: "brand";
329
+ investor: "investor";
330
+ }>>;
331
+ bio: z.ZodOptional<z.ZodString>;
332
+ location: z.ZodOptional<z.ZodString>;
333
+ experienceLevel: z.ZodOptional<z.ZodString>;
334
+ disciplines: z.ZodOptional<z.ZodArray<z.ZodAny>>;
335
+ tags: z.ZodOptional<z.ZodArray<z.ZodAny>>;
336
+ brandName: z.ZodOptional<z.ZodString>;
337
+ websiteURL: z.ZodOptional<z.ZodString>;
338
+ investorType: z.ZodOptional<z.ZodString>;
339
+ investmentSize: z.ZodOptional<z.ZodString>;
340
+ geographicFocus: z.ZodOptional<z.ZodString>;
341
+ }, z.core.$strip>;
342
+ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
343
+ userId: z.ZodCUID2;
344
+ projects: z.ZodArray<z.ZodObject<{
345
+ id: z.ZodString;
346
+ userId: z.ZodString;
347
+ description: z.ZodOptional<z.ZodString>;
348
+ title: z.ZodString;
349
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
350
+ createdAt: z.ZodCoercedDate<unknown>;
351
+ updatedAt: z.ZodCoercedDate<unknown>;
352
+ url: z.ZodOptional<z.ZodString>;
353
+ imagePlaceholderUrl: z.ZodString;
354
+ startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
355
+ endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
356
+ projectCreatorType: z.ZodEnum<{
357
+ readonly CREATIVE: "CREATIVE";
358
+ readonly BRAND: "BRAND";
359
+ readonly INVESTOR: "INVESTOR";
360
+ readonly ADMIN: "ADMIN";
361
+ }>;
362
+ clientId: z.ZodOptional<z.ZodString>;
363
+ clientType: z.ZodOptional<z.ZodEnum<{
364
+ readonly CREATIVE: "CREATIVE";
365
+ readonly BRAND: "BRAND";
366
+ readonly NONE: "NONE";
367
+ }>>;
368
+ clientName: z.ZodOptional<z.ZodString>;
369
+ isFeatured: z.ZodOptional<z.ZodBoolean>;
370
+ searchVector: z.ZodString;
371
+ }, z.core.$strip>>;
372
+ }, z.core.$strip>;
373
+ export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.ZodObject<{
374
+ userId: z.ZodCUID2;
375
+ projectBookmarks: z.ZodArray<z.ZodObject<{
376
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
377
+ userId: z.ZodCUID2;
378
+ projectId: z.ZodCUID2;
379
+ project: z.ZodObject<{
380
+ id: z.ZodString;
381
+ description: z.ZodOptional<z.ZodString>;
382
+ title: z.ZodString;
383
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
384
+ imagePlaceholderUrl: z.ZodString;
385
+ startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
386
+ endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
387
+ }, z.core.$strip>;
388
+ }, z.core.$strip>>;
389
+ }, z.core.$strip>;
390
+ export declare const GetAuthenticatedUserWithUserFollowingOutputSchema: z.ZodObject<{
391
+ id: z.ZodCUID2;
392
+ username: z.ZodOptional<z.ZodString>;
393
+ email: z.ZodString;
394
+ name: z.ZodOptional<z.ZodString>;
395
+ image: z.ZodOptional<z.ZodString>;
396
+ role: z.ZodEnum<{
397
+ CREATIVE: "CREATIVE";
398
+ BRAND: "BRAND";
399
+ INVESTOR: "INVESTOR";
400
+ ADMIN: "ADMIN";
401
+ }>;
402
+ following: z.ZodArray<z.ZodObject<{
403
+ id: z.ZodCUID2;
404
+ username: z.ZodOptional<z.ZodString>;
405
+ email: z.ZodString;
406
+ name: z.ZodOptional<z.ZodString>;
407
+ image: z.ZodOptional<z.ZodString>;
408
+ role: z.ZodEnum<{
409
+ CREATIVE: "CREATIVE";
410
+ BRAND: "BRAND";
411
+ INVESTOR: "INVESTOR";
412
+ ADMIN: "ADMIN";
413
+ }>;
414
+ }, z.core.$strip>>;
415
+ }, z.core.$strip>;
416
+ export declare const GetAuthenticatedUserWithUserFollowersOutputSchema: z.ZodObject<{
417
+ id: z.ZodCUID2;
418
+ username: z.ZodOptional<z.ZodString>;
419
+ email: z.ZodString;
420
+ name: z.ZodOptional<z.ZodString>;
421
+ image: z.ZodOptional<z.ZodString>;
422
+ role: z.ZodEnum<{
423
+ CREATIVE: "CREATIVE";
424
+ BRAND: "BRAND";
425
+ INVESTOR: "INVESTOR";
426
+ ADMIN: "ADMIN";
427
+ }>;
428
+ followers: z.ZodArray<z.ZodObject<{
429
+ id: z.ZodCUID2;
430
+ username: z.ZodOptional<z.ZodString>;
431
+ email: z.ZodString;
432
+ name: z.ZodOptional<z.ZodString>;
433
+ image: z.ZodOptional<z.ZodString>;
434
+ role: z.ZodEnum<{
435
+ CREATIVE: "CREATIVE";
436
+ BRAND: "BRAND";
437
+ INVESTOR: "INVESTOR";
438
+ ADMIN: "ADMIN";
439
+ }>;
440
+ }, z.core.$strip>>;
441
+ }, z.core.$strip>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserEntitySchema = exports.MinimalUserSchema = exports.BaseUserEntitySchema = exports.UserSocialGraphEntitySchema = void 0;
3
+ exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserEntitySchema = exports.MinimalUserSchema = exports.BaseUserEntitySchema = exports.UserSocialGraphEntitySchema = 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");
@@ -103,3 +103,9 @@ exports.UserWithFollowersEntitySchema = exports.MinimalUserSchema.extend({
103
103
  .array(exports.MinimalUserSchema)
104
104
  .openapi({ description: "List of users who follow this user." }),
105
105
  }).openapi("UserWithFollowersEntity");
106
+ exports.GetAuthenticatedUserOutputSchema = exports.UserEntitySchema;
107
+ exports.GetAuthenticatedUserProfileOutputSchema = exports.UserProfileEntitySchema;
108
+ exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.UserWithProjectsEntitySchema;
109
+ exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.UserWithProjectBookmarksEntitySchema;
110
+ exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.UserWithFollowingEntitySchema;
111
+ exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.UserWithFollowersEntitySchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -117,3 +117,19 @@ export const UserWithFollowersEntitySchema = MinimalUserSchema.extend({
117
117
  .array(MinimalUserSchema)
118
118
  .openapi({ description: "List of users who follow this user." }),
119
119
  }).openapi("UserWithFollowersEntity");
120
+
121
+ export const GetAuthenticatedUserOutputSchema = UserEntitySchema;
122
+
123
+ export const GetAuthenticatedUserProfileOutputSchema = UserProfileEntitySchema;
124
+
125
+ export const GetAuthenticatedUserWithProjectsOutputSchema =
126
+ UserWithProjectsEntitySchema;
127
+
128
+ export const GetAuthenticatedUserWithProjectBookmarksOutputSchema =
129
+ UserWithProjectBookmarksEntitySchema;
130
+
131
+ export const GetAuthenticatedUserWithUserFollowingOutputSchema =
132
+ UserWithFollowingEntitySchema;
133
+
134
+ export const GetAuthenticatedUserWithUserFollowersOutputSchema =
135
+ UserWithFollowersEntitySchema;