@zyacreatives/shared 2.0.17 → 2.0.19
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 -0
- package/dist/schemas/job.js +3 -0
- 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 +3 -0
- package/src/schemas/user.ts +6 -10
package/dist/schemas/job.d.ts
CHANGED
|
@@ -530,6 +530,12 @@ export declare const UpdateJobInputSchema: z.ZodObject<{
|
|
|
530
530
|
[x: string]: string;
|
|
531
531
|
}>>>>;
|
|
532
532
|
id: z.ZodCUID2;
|
|
533
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
ACTIVE: "ACTIVE";
|
|
535
|
+
DELETED: "DELETED";
|
|
536
|
+
DRAFT: "DRAFT";
|
|
537
|
+
ARCHIVED: "ARCHIVED";
|
|
538
|
+
}>>;
|
|
533
539
|
}, z.core.$strip>;
|
|
534
540
|
export declare const NormalizedJobOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
535
541
|
title: z.ZodString;
|
package/dist/schemas/job.js
CHANGED
|
@@ -193,6 +193,9 @@ exports.UpdateRoleJobInputSchema = exports.CreateRoleJobInputSchema.partial().re
|
|
|
193
193
|
exports.UpdateGigJobInputSchema = exports.CreateGigJobInputSchema.partial().required({ id: true });
|
|
194
194
|
exports.UpdateJobInputSchema = exports.CreateJobInputSchema.partial().extend({
|
|
195
195
|
id: zod_1.z.cuid2(),
|
|
196
|
+
status: zod_1.z
|
|
197
|
+
.enum(Object.values(constants_1.JOB_STATUS))
|
|
198
|
+
.optional(),
|
|
196
199
|
});
|
|
197
200
|
exports.NormalizedJobOutputSchema = zod_1.z.discriminatedUnion("jobType", [
|
|
198
201
|
exports.JobWithGigDetailsEntitySchema,
|
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
|
@@ -255,6 +255,9 @@ export const UpdateGigJobInputSchema =
|
|
|
255
255
|
|
|
256
256
|
export const UpdateJobInputSchema = CreateJobInputSchema.partial().extend({
|
|
257
257
|
id: z.cuid2(),
|
|
258
|
+
status: z
|
|
259
|
+
.enum(Object.values(JOB_STATUS) as [JobStatus, ...JobStatus[]])
|
|
260
|
+
.optional(),
|
|
258
261
|
});
|
|
259
262
|
|
|
260
263
|
export const NormalizedJobOutputSchema = z.discriminatedUnion("jobType", [
|
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
|