@zyacreatives/shared 2.0.17 → 2.0.18

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.
@@ -135,16 +135,81 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
135
135
  brand: "brand";
136
136
  investor: "investor";
137
137
  }>>;
138
- bio: z.ZodOptional<z.ZodString>;
139
- location: z.ZodOptional<z.ZodString>;
140
- experienceLevel: z.ZodOptional<z.ZodString>;
141
- disciplines: z.ZodOptional<z.ZodArray<z.ZodAny>>;
142
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
- brandName: z.ZodOptional<z.ZodString>;
144
- websiteURL: z.ZodOptional<z.ZodURL>;
145
- investorType: z.ZodOptional<z.ZodString>;
146
- investmentSize: z.ZodOptional<z.ZodString>;
147
- geographicFocus: z.ZodOptional<z.ZodString>;
138
+ brand: z.ZodObject<{
139
+ id: z.ZodCUID2;
140
+ userId: z.ZodCUID2;
141
+ brandName: z.ZodString;
142
+ bio: z.ZodOptional<z.ZodString>;
143
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
+ disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
146
+ updatedAt: z.ZodCoercedDate<unknown>;
147
+ }, z.core.$strip>;
148
+ creative: z.ZodObject<{
149
+ id: z.ZodCUID2;
150
+ userId: z.ZodCUID2;
151
+ bio: z.ZodOptional<z.ZodString>;
152
+ location: z.ZodOptional<z.ZodString>;
153
+ experienceLevel: z.ZodOptional<z.ZodEnum<{
154
+ "0-1 year": "0-1 year";
155
+ "1-3 years": "1-3 years";
156
+ "3-5 years": "3-5 years";
157
+ "5+ years": "5+ years";
158
+ }>>;
159
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
160
+ disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
162
+ updatedAt: z.ZodCoercedDate<unknown>;
163
+ }, z.core.$strip>;
164
+ investor: z.ZodObject<{
165
+ id: z.ZodCUID2;
166
+ userId: z.ZodCUID2;
167
+ bio: z.ZodOptional<z.ZodString>;
168
+ location: z.ZodOptional<z.ZodString>;
169
+ experienceLevel: z.ZodOptional<z.ZodEnum<{
170
+ "0-1 year": "0-1 year";
171
+ "1-3 years": "1-3 years";
172
+ "3-5 years": "3-5 years";
173
+ "5+ years": "5+ years";
174
+ }>>;
175
+ geographicFocus: z.ZodOptional<z.ZodEnum<{
176
+ Africa: "Africa";
177
+ Asia: "Asia";
178
+ Europe: "Europe";
179
+ "North America": "North America";
180
+ "South America": "South America";
181
+ "Middle East": "Middle East";
182
+ Oceania: "Oceania";
183
+ "United Kingdom (UK)": "United Kingdom (UK)";
184
+ "United States (US)": "United States (US)";
185
+ Global: "Global";
186
+ Other: "Other";
187
+ }>>;
188
+ investmentSize: z.ZodOptional<z.ZodEnum<{
189
+ "Under 5k USD": "Under 5k USD";
190
+ "5k - 25k USD": "5k - 25k USD";
191
+ "25k - 100k USD": "25k - 100k USD";
192
+ "100k - 500k USD": "100k - 500k USD";
193
+ "500k - 1M USD": "500k - 1M USD";
194
+ "1M+ USD": "1M+ USD";
195
+ }>>;
196
+ investorType: z.ZodOptional<z.ZodEnum<{
197
+ "Angel Investor": "Angel Investor";
198
+ "Venture Capitalist": "Venture Capitalist";
199
+ "Private Equity Firm": "Private Equity Firm";
200
+ "Venture Debt Provider": "Venture Debt Provider";
201
+ Bank: "Bank";
202
+ "Convertible Note Investor": "Convertible Note Investor";
203
+ "Revenue Based Financing Investor": "Revenue Based Financing Investor";
204
+ "Corporate Venture Capitalist": "Corporate Venture Capitalist";
205
+ Government: "Government";
206
+ "Social Impact Investor": "Social Impact Investor";
207
+ }>>;
208
+ websiteURL: z.ZodOptional<z.ZodURL>;
209
+ disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
210
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
211
+ updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
212
+ }, z.core.$strip>;
148
213
  }, z.core.$strip>;
149
214
  export declare const UserWithProjectsEntitySchema: z.ZodObject<{
150
215
  userId: z.ZodCUID2;
@@ -419,16 +484,81 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
419
484
  brand: "brand";
420
485
  investor: "investor";
421
486
  }>>;
422
- bio: z.ZodOptional<z.ZodString>;
423
- location: z.ZodOptional<z.ZodString>;
424
- experienceLevel: z.ZodOptional<z.ZodString>;
425
- disciplines: z.ZodOptional<z.ZodArray<z.ZodAny>>;
426
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
427
- brandName: z.ZodOptional<z.ZodString>;
428
- websiteURL: z.ZodOptional<z.ZodURL>;
429
- investorType: z.ZodOptional<z.ZodString>;
430
- investmentSize: z.ZodOptional<z.ZodString>;
431
- geographicFocus: z.ZodOptional<z.ZodString>;
487
+ brand: z.ZodObject<{
488
+ id: z.ZodCUID2;
489
+ userId: z.ZodCUID2;
490
+ brandName: z.ZodString;
491
+ bio: z.ZodOptional<z.ZodString>;
492
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
493
+ disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
494
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
495
+ updatedAt: z.ZodCoercedDate<unknown>;
496
+ }, z.core.$strip>;
497
+ creative: z.ZodObject<{
498
+ id: z.ZodCUID2;
499
+ userId: z.ZodCUID2;
500
+ bio: z.ZodOptional<z.ZodString>;
501
+ location: z.ZodOptional<z.ZodString>;
502
+ experienceLevel: z.ZodOptional<z.ZodEnum<{
503
+ "0-1 year": "0-1 year";
504
+ "1-3 years": "1-3 years";
505
+ "3-5 years": "3-5 years";
506
+ "5+ years": "5+ years";
507
+ }>>;
508
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
509
+ disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
510
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
511
+ updatedAt: z.ZodCoercedDate<unknown>;
512
+ }, z.core.$strip>;
513
+ investor: z.ZodObject<{
514
+ id: z.ZodCUID2;
515
+ userId: z.ZodCUID2;
516
+ bio: z.ZodOptional<z.ZodString>;
517
+ location: z.ZodOptional<z.ZodString>;
518
+ experienceLevel: z.ZodOptional<z.ZodEnum<{
519
+ "0-1 year": "0-1 year";
520
+ "1-3 years": "1-3 years";
521
+ "3-5 years": "3-5 years";
522
+ "5+ years": "5+ years";
523
+ }>>;
524
+ geographicFocus: z.ZodOptional<z.ZodEnum<{
525
+ Africa: "Africa";
526
+ Asia: "Asia";
527
+ Europe: "Europe";
528
+ "North America": "North America";
529
+ "South America": "South America";
530
+ "Middle East": "Middle East";
531
+ Oceania: "Oceania";
532
+ "United Kingdom (UK)": "United Kingdom (UK)";
533
+ "United States (US)": "United States (US)";
534
+ Global: "Global";
535
+ Other: "Other";
536
+ }>>;
537
+ investmentSize: z.ZodOptional<z.ZodEnum<{
538
+ "Under 5k USD": "Under 5k USD";
539
+ "5k - 25k USD": "5k - 25k USD";
540
+ "25k - 100k USD": "25k - 100k USD";
541
+ "100k - 500k USD": "100k - 500k USD";
542
+ "500k - 1M USD": "500k - 1M USD";
543
+ "1M+ USD": "1M+ USD";
544
+ }>>;
545
+ investorType: z.ZodOptional<z.ZodEnum<{
546
+ "Angel Investor": "Angel Investor";
547
+ "Venture Capitalist": "Venture Capitalist";
548
+ "Private Equity Firm": "Private Equity Firm";
549
+ "Venture Debt Provider": "Venture Debt Provider";
550
+ Bank: "Bank";
551
+ "Convertible Note Investor": "Convertible Note Investor";
552
+ "Revenue Based Financing Investor": "Revenue Based Financing Investor";
553
+ "Corporate Venture Capitalist": "Corporate Venture Capitalist";
554
+ Government: "Government";
555
+ "Social Impact Investor": "Social Impact Investor";
556
+ }>>;
557
+ websiteURL: z.ZodOptional<z.ZodURL>;
558
+ disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
559
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
560
+ updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
561
+ }, z.core.$strip>;
432
562
  }, z.core.$strip>;
433
563
  export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
434
564
  userId: z.ZodCUID2;
@@ -6,6 +6,9 @@ const constants_1 = require("../constants");
6
6
  const project_1 = require("./project");
7
7
  const bookmark_1 = require("./bookmark");
8
8
  const like_1 = require("./like");
9
+ const brand_1 = require("./brand");
10
+ const creative_1 = require("./creative");
11
+ const investor_1 = require("./investor");
9
12
  exports.UserSocialGraphEntitySchema = zod_openapi_1.z
10
13
  .object({
11
14
  followerCount: zod_openapi_1.z
@@ -62,16 +65,9 @@ exports.MinimalUserSchema = exports.BaseUserEntitySchema.pick({
62
65
  exports.UserEntitySchema = exports.BaseUserEntitySchema.extend(exports.UserSocialGraphEntitySchema.shape).openapi("UserEntity");
63
66
  exports.UserProfileEntitySchema = exports.UserEntitySchema.extend({
64
67
  profileType: zod_openapi_1.z.enum(["creative", "brand", "investor"]).optional(),
65
- bio: zod_openapi_1.z.string().optional(),
66
- location: zod_openapi_1.z.string().optional(),
67
- experienceLevel: zod_openapi_1.z.string().optional(),
68
- disciplines: zod_openapi_1.z.array(zod_openapi_1.z.any()).optional(),
69
- tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
70
- brandName: zod_openapi_1.z.string().optional(),
71
- websiteURL: zod_openapi_1.z.url().optional(),
72
- investorType: zod_openapi_1.z.string().optional(),
73
- investmentSize: zod_openapi_1.z.string().optional(),
74
- geographicFocus: zod_openapi_1.z.string().optional(),
68
+ brand: brand_1.BrandEntitySchema,
69
+ creative: creative_1.CreativeEntitySchema,
70
+ investor: investor_1.InvestorEntitySchema,
75
71
  }).openapi("UserProfileEntity");
76
72
  exports.UserWithProjectsEntitySchema = zod_openapi_1.z
77
73
  .object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -5,6 +5,9 @@ import type { Role, UserStatus, OnboardingPage } from "../constants";
5
5
  import { ProjectEntitySchema } from "./project";
6
6
  import { BookmarkEntitySchema } from "./bookmark";
7
7
  import { LikeEntitySchema } from "./like";
8
+ import { BrandEntitySchema } from "./brand";
9
+ import { CreativeEntitySchema } from "./creative";
10
+ import { InvestorEntitySchema } from "./investor";
8
11
 
9
12
  export const UserSocialGraphEntitySchema = z
10
13
  .object({
@@ -70,16 +73,9 @@ export const UserEntitySchema = BaseUserEntitySchema.extend(
70
73
 
71
74
  export const UserProfileEntitySchema = UserEntitySchema.extend({
72
75
  profileType: z.enum(["creative", "brand", "investor"]).optional(),
73
- bio: z.string().optional(),
74
- location: z.string().optional(),
75
- experienceLevel: z.string().optional(),
76
- disciplines: z.array(z.any()).optional(),
77
- tags: z.array(z.string()).optional(),
78
- brandName: z.string().optional(),
79
- websiteURL: z.url().optional(),
80
- investorType: z.string().optional(),
81
- investmentSize: z.string().optional(),
82
- geographicFocus: z.string().optional(),
76
+ brand: BrandEntitySchema,
77
+ creative: CreativeEntitySchema,
78
+ investor: InvestorEntitySchema,
83
79
  }).openapi("UserProfileEntity");
84
80
 
85
81
  export const UserWithProjectsEntitySchema = z