@zyacreatives/shared 2.2.6 → 2.2.7
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/constants.d.ts +6 -0
- package/dist/constants.js +6 -1
- package/dist/schemas/project.d.ts +10 -0
- package/dist/schemas/project.js +2 -0
- package/package.json +1 -1
- package/src/constants.ts +9 -1
- package/src/schemas/project.ts +3 -0
package/dist/constants.d.ts
CHANGED
|
@@ -177,6 +177,11 @@ export declare const JOB_STATUS: {
|
|
|
177
177
|
readonly ARCHIVED: "ARCHIVED";
|
|
178
178
|
readonly DELETED: "DELETED";
|
|
179
179
|
};
|
|
180
|
+
export declare const PROJECT_STATUS: {
|
|
181
|
+
readonly ACTIVE: "ACTIVE";
|
|
182
|
+
readonly DRAFT: "DRAFT";
|
|
183
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
184
|
+
};
|
|
180
185
|
export declare const POST_BADGE_TYPES: {
|
|
181
186
|
readonly NETWORKING: "Networking";
|
|
182
187
|
readonly FUNDING: "Funding";
|
|
@@ -261,6 +266,7 @@ export type GeographicFocus = (typeof GEOGRAPHIC_FOCUS)[keyof typeof GEOGRAPHIC_
|
|
|
261
266
|
export type InvestorVerificationDocumentStatus = (typeof INVESTOR_VERIFICATION_DOCUMENT_STATUSES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_STATUSES];
|
|
262
267
|
export type InvestorVerificationDocumentType = (typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES];
|
|
263
268
|
export type VentureStage = (typeof VENTURE_STAGES)[keyof typeof VENTURE_STAGES];
|
|
269
|
+
export type ProjectStatus = (typeof PROJECT_STATUS)[keyof typeof PROJECT_STATUS];
|
|
264
270
|
export declare const API_ROUTES: {
|
|
265
271
|
readonly healthCheck: "/health";
|
|
266
272
|
readonly username: {
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ANALYTICS_EVENTS = exports.DEFAULT_DISCIPLINES = exports.API_ROUTES = exports.VENTURE_STAGES = exports.NOTIFICATION_TYPES = exports.APPLICATION_STATUS = exports.LINK_TYPES = exports.ACTIVITY_TYPES = exports.POST_BADGE_TYPES = exports.JOB_STATUS = exports.WAGES_CURRENCY = exports.GIG_TYPE = exports.MESSAGE_TYPES = 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.ANALYTICS_EVENTS = exports.DEFAULT_DISCIPLINES = exports.API_ROUTES = exports.VENTURE_STAGES = exports.NOTIFICATION_TYPES = exports.APPLICATION_STATUS = exports.LINK_TYPES = exports.ACTIVITY_TYPES = exports.POST_BADGE_TYPES = exports.PROJECT_STATUS = exports.JOB_STATUS = exports.WAGES_CURRENCY = exports.GIG_TYPE = exports.MESSAGE_TYPES = 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",
|
|
@@ -179,6 +179,11 @@ exports.JOB_STATUS = {
|
|
|
179
179
|
ARCHIVED: "ARCHIVED",
|
|
180
180
|
DELETED: "DELETED",
|
|
181
181
|
};
|
|
182
|
+
exports.PROJECT_STATUS = {
|
|
183
|
+
ACTIVE: "ACTIVE",
|
|
184
|
+
DRAFT: "DRAFT",
|
|
185
|
+
ARCHIVED: "ARCHIVED",
|
|
186
|
+
};
|
|
182
187
|
exports.POST_BADGE_TYPES = {
|
|
183
188
|
NETWORKING: "Networking",
|
|
184
189
|
FUNDING: "Funding",
|
|
@@ -164,6 +164,11 @@ export declare const CreateProjectInputSchema: z.ZodObject<{
|
|
|
164
164
|
imagePlaceholderUrl: z.ZodURL;
|
|
165
165
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
166
166
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
167
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
168
|
+
readonly ACTIVE: "ACTIVE";
|
|
169
|
+
readonly DRAFT: "DRAFT";
|
|
170
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
171
|
+
}>>;
|
|
167
172
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
168
173
|
projectCreatorType: z.ZodDefault<z.ZodEnum<{
|
|
169
174
|
readonly CREATIVE: "CREATIVE";
|
|
@@ -207,6 +212,11 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
|
|
|
207
212
|
}>>;
|
|
208
213
|
clientName: z.ZodOptional<z.ZodString>;
|
|
209
214
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
readonly ACTIVE: "ACTIVE";
|
|
217
|
+
readonly DRAFT: "DRAFT";
|
|
218
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
219
|
+
}>>;
|
|
210
220
|
problemBeingSolved: z.ZodOptional<z.ZodString>;
|
|
211
221
|
whoItsFor: z.ZodOptional<z.ZodString>;
|
|
212
222
|
ventureStage: z.ZodOptional<z.ZodEnum<{
|
package/dist/schemas/project.js
CHANGED
|
@@ -151,6 +151,7 @@ exports.CreateProjectInputSchema = zod_openapi_1.z
|
|
|
151
151
|
imagePlaceholderUrl: zod_openapi_1.z.url(),
|
|
152
152
|
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).default([]),
|
|
153
153
|
startDate: zod_openapi_1.z.coerce.date().optional(),
|
|
154
|
+
status: zod_openapi_1.z.enum(constants_1.PROJECT_STATUS).default(constants_1.PROJECT_STATUS.ACTIVE),
|
|
154
155
|
endDate: zod_openapi_1.z.coerce.date().optional(),
|
|
155
156
|
projectCreatorType: zod_openapi_1.z.enum(constants_1.ROLES).default(constants_1.ROLES.CREATIVE),
|
|
156
157
|
clientId: zod_openapi_1.z.string().optional(),
|
|
@@ -196,6 +197,7 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
|
|
|
196
197
|
clientType: zod_openapi_1.z.enum(constants_1.CLIENT_TYPES).optional(),
|
|
197
198
|
clientName: zod_openapi_1.z.string().optional(),
|
|
198
199
|
isFeatured: zod_openapi_1.z.boolean().optional(),
|
|
200
|
+
status: zod_openapi_1.z.enum(constants_1.PROJECT_STATUS).optional(),
|
|
199
201
|
problemBeingSolved: zod_openapi_1.z.string().max(600).optional(),
|
|
200
202
|
whoItsFor: zod_openapi_1.z.string().max(600).optional(),
|
|
201
203
|
ventureStage: zod_openapi_1.z.enum(constants_1.VENTURE_STAGES).optional(),
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
|
@@ -200,6 +200,12 @@ export const JOB_STATUS = {
|
|
|
200
200
|
DELETED: "DELETED",
|
|
201
201
|
} as const;
|
|
202
202
|
|
|
203
|
+
export const PROJECT_STATUS = {
|
|
204
|
+
ACTIVE: "ACTIVE",
|
|
205
|
+
DRAFT: "DRAFT",
|
|
206
|
+
ARCHIVED: "ARCHIVED",
|
|
207
|
+
} as const;
|
|
208
|
+
|
|
203
209
|
export const POST_BADGE_TYPES = {
|
|
204
210
|
NETWORKING: "Networking",
|
|
205
211
|
FUNDING: "Funding",
|
|
@@ -304,7 +310,9 @@ export type InvestorVerificationDocumentStatus =
|
|
|
304
310
|
export type InvestorVerificationDocumentType =
|
|
305
311
|
(typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES)[keyof typeof INVESTOR_VERIFICATION_DOCUMENT_TYPES];
|
|
306
312
|
export type VentureStage = (typeof VENTURE_STAGES)[keyof typeof VENTURE_STAGES];
|
|
307
|
-
|
|
313
|
+
export type ProjectStatus =
|
|
314
|
+
(typeof PROJECT_STATUS)[keyof typeof PROJECT_STATUS];
|
|
315
|
+
|
|
308
316
|
export const API_ROUTES = {
|
|
309
317
|
healthCheck: "/health",
|
|
310
318
|
username: {
|
package/src/schemas/project.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
2
|
import {
|
|
3
3
|
CLIENT_TYPES,
|
|
4
|
+
PROJECT_STATUS,
|
|
4
5
|
ROLES,
|
|
5
6
|
VENTURE_STAGES,
|
|
6
7
|
WAGES_CURRENCY,
|
|
@@ -162,6 +163,7 @@ export const CreateProjectInputSchema = z
|
|
|
162
163
|
imagePlaceholderUrl: z.url(),
|
|
163
164
|
tags: z.array(z.string()).default([]),
|
|
164
165
|
startDate: z.coerce.date().optional(),
|
|
166
|
+
status: z.enum(PROJECT_STATUS).default(PROJECT_STATUS.ACTIVE),
|
|
165
167
|
endDate: z.coerce.date().optional(),
|
|
166
168
|
projectCreatorType: z.enum(ROLES).default(ROLES.CREATIVE),
|
|
167
169
|
clientId: z.string().optional(),
|
|
@@ -209,6 +211,7 @@ export const UpdateProjectInputSchema = z
|
|
|
209
211
|
clientType: z.enum(CLIENT_TYPES).optional(),
|
|
210
212
|
clientName: z.string().optional(),
|
|
211
213
|
isFeatured: z.boolean().optional(),
|
|
214
|
+
status: z.enum(PROJECT_STATUS).optional(),
|
|
212
215
|
problemBeingSolved: z.string().max(600).optional(),
|
|
213
216
|
whoItsFor: z.string().max(600).optional(),
|
|
214
217
|
ventureStage: z.enum(VENTURE_STAGES).optional(),
|