@zyacreatives/shared 2.0.16 → 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.
- package/dist/schemas/job.d.ts +6 -6
- package/dist/schemas/job.js +2 -2
- package/dist/schemas/user.d.ts +150 -20
- package/dist/schemas/user.js +6 -10
- package/package.json +1 -1
- package/src/schemas/job.ts +2 -2
- package/src/schemas/user.ts +6 -10
package/dist/schemas/job.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ export declare const GigJobEntitySchema: z.ZodObject<{
|
|
|
109
109
|
deliverables: z.ZodString;
|
|
110
110
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
111
111
|
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
112
|
-
requiredSkills: z.ZodString
|
|
112
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
113
113
|
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
114
114
|
wagesMax: z.ZodOptional<z.ZodNumber>;
|
|
115
115
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
@@ -183,7 +183,7 @@ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
|
|
|
183
183
|
deliverables: z.ZodString;
|
|
184
184
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
185
185
|
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
186
|
-
requiredSkills: z.ZodString
|
|
186
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
187
187
|
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
188
188
|
wagesMax: z.ZodOptional<z.ZodNumber>;
|
|
189
189
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
@@ -217,7 +217,7 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
|
|
|
217
217
|
}>;
|
|
218
218
|
overview: z.ZodString;
|
|
219
219
|
keyResponsibilities: z.ZodString;
|
|
220
|
-
requiredSkills: z.ZodString
|
|
220
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
221
221
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
222
222
|
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
223
223
|
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
@@ -297,7 +297,7 @@ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
|
|
|
297
297
|
}>;
|
|
298
298
|
overview: z.ZodString;
|
|
299
299
|
keyResponsibilities: z.ZodString;
|
|
300
|
-
requiredSkills: z.ZodString
|
|
300
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
301
301
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
302
302
|
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
303
303
|
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
@@ -582,7 +582,7 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
582
582
|
deliverables: z.ZodString;
|
|
583
583
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
584
584
|
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
585
|
-
requiredSkills: z.ZodString
|
|
585
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
586
586
|
wagesMin: z.ZodOptional<z.ZodNumber>;
|
|
587
587
|
wagesMax: z.ZodOptional<z.ZodNumber>;
|
|
588
588
|
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
@@ -659,7 +659,7 @@ export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
659
659
|
}>;
|
|
660
660
|
overview: z.ZodString;
|
|
661
661
|
keyResponsibilities: z.ZodString;
|
|
662
|
-
requiredSkills: z.ZodString
|
|
662
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
663
663
|
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
664
664
|
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
665
665
|
wagesMin: z.ZodOptional<z.ZodNumber>;
|
package/dist/schemas/job.js
CHANGED
|
@@ -64,7 +64,7 @@ exports.GigJobEntitySchema = zod_1.z.object({
|
|
|
64
64
|
deliverables: zod_1.z.string(),
|
|
65
65
|
employeeRequirements: zod_1.z.string().optional(),
|
|
66
66
|
aboutCompany: zod_1.z.string().optional(),
|
|
67
|
-
requiredSkills: zod_1.z.string(),
|
|
67
|
+
requiredSkills: zod_1.z.array(zod_1.z.string()),
|
|
68
68
|
wagesMin: zod_1.z.number().optional(),
|
|
69
69
|
wagesMax: zod_1.z.number().optional(),
|
|
70
70
|
wagesCurrency: zod_1.z
|
|
@@ -81,7 +81,7 @@ exports.RoleJobEntitySchema = zod_1.z.object({
|
|
|
81
81
|
experienceLevel: zod_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)),
|
|
82
82
|
overview: zod_1.z.string(),
|
|
83
83
|
keyResponsibilities: zod_1.z.string(),
|
|
84
|
-
requiredSkills: zod_1.z.string(),
|
|
84
|
+
requiredSkills: zod_1.z.array(zod_1.z.string()),
|
|
85
85
|
employeeRequirements: zod_1.z.string().optional(),
|
|
86
86
|
companyBenefits: zod_1.z.string().optional(),
|
|
87
87
|
wagesMin: zod_1.z.number().optional(),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -135,16 +135,81 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
|
135
135
|
brand: "brand";
|
|
136
136
|
investor: "investor";
|
|
137
137
|
}>>;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
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;
|
package/dist/schemas/user.js
CHANGED
|
@@ -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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
package/src/schemas/job.ts
CHANGED
|
@@ -99,7 +99,7 @@ export const GigJobEntitySchema = z.object({
|
|
|
99
99
|
deliverables: z.string(),
|
|
100
100
|
employeeRequirements: z.string().optional(),
|
|
101
101
|
aboutCompany: z.string().optional(),
|
|
102
|
-
requiredSkills: z.string(),
|
|
102
|
+
requiredSkills: z.array(z.string()),
|
|
103
103
|
wagesMin: z.number().optional(),
|
|
104
104
|
wagesMax: z.number().optional(),
|
|
105
105
|
wagesCurrency: z
|
|
@@ -122,7 +122,7 @@ export const RoleJobEntitySchema = z.object({
|
|
|
122
122
|
),
|
|
123
123
|
overview: z.string(),
|
|
124
124
|
keyResponsibilities: z.string(),
|
|
125
|
-
requiredSkills: z.string(),
|
|
125
|
+
requiredSkills: z.array(z.string()),
|
|
126
126
|
employeeRequirements: z.string().optional(),
|
|
127
127
|
companyBenefits: z.string().optional(),
|
|
128
128
|
wagesMin: z.number().optional(),
|
package/src/schemas/user.ts
CHANGED
|
@@ -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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|