@zyacreatives/shared 2.2.5 → 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.
@@ -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";
@@ -223,15 +228,15 @@ export declare const NOTIFICATION_TYPES: {
223
228
  readonly PROJECT_FEATURED: "Project Featured";
224
229
  };
225
230
  export declare const VENTURE_STAGES: {
226
- IDEA: string;
227
- PRE_SEED: string;
228
- MVP: string;
229
- SEED: string;
230
- SERIES_A: string;
231
- SERIES_B: string;
232
- SERIES_C: string;
233
- GROWTH: string;
234
- EXIT: string;
231
+ readonly IDEA: "Idea";
232
+ readonly PRE_SEED: "Pre Seed";
233
+ readonly MVP: "MVP";
234
+ readonly SEED: "Seed";
235
+ readonly SERIES_A: "Series A";
236
+ readonly SERIES_B: "Series B";
237
+ readonly SERIES_C: "Series C";
238
+ readonly GROWTH: "Growth";
239
+ readonly EXIT: "Exit";
235
240
  };
236
241
  export type NotificationType = (typeof NOTIFICATION_TYPES)[keyof typeof NOTIFICATION_TYPES];
237
242
  export type ApplicationStatus = (typeof APPLICATION_STATUS)[keyof typeof APPLICATION_STATUS];
@@ -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",
@@ -25,15 +25,15 @@ export declare const ProjectEntitySchema: z.ZodObject<{
25
25
  problemBeingSolved: z.ZodOptional<z.ZodString>;
26
26
  whoItsFor: z.ZodOptional<z.ZodString>;
27
27
  ventureStage: z.ZodOptional<z.ZodEnum<{
28
- IDEA: string;
29
- PRE_SEED: string;
30
- MVP: string;
31
- SEED: string;
32
- SERIES_A: string;
33
- SERIES_B: string;
34
- SERIES_C: string;
35
- GROWTH: string;
36
- EXIT: string;
28
+ readonly IDEA: "Idea";
29
+ readonly PRE_SEED: "Pre Seed";
30
+ readonly MVP: "MVP";
31
+ readonly SEED: "Seed";
32
+ readonly SERIES_A: "Series A";
33
+ readonly SERIES_B: "Series B";
34
+ readonly SERIES_C: "Series C";
35
+ readonly GROWTH: "Growth";
36
+ readonly EXIT: "Exit";
37
37
  }>>;
38
38
  capitalLookingToRaise: z.ZodString;
39
39
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -94,15 +94,15 @@ export declare const ProjectDetailsEntitySchema: z.ZodObject<{
94
94
  problemBeingSolved: z.ZodOptional<z.ZodString>;
95
95
  whoItsFor: z.ZodOptional<z.ZodString>;
96
96
  ventureStage: z.ZodOptional<z.ZodEnum<{
97
- IDEA: string;
98
- PRE_SEED: string;
99
- MVP: string;
100
- SEED: string;
101
- SERIES_A: string;
102
- SERIES_B: string;
103
- SERIES_C: string;
104
- GROWTH: string;
105
- EXIT: string;
97
+ readonly IDEA: "Idea";
98
+ readonly PRE_SEED: "Pre Seed";
99
+ readonly MVP: "MVP";
100
+ readonly SEED: "Seed";
101
+ readonly SERIES_A: "Series A";
102
+ readonly SERIES_B: "Series B";
103
+ readonly SERIES_C: "Series C";
104
+ readonly GROWTH: "Growth";
105
+ readonly EXIT: "Exit";
106
106
  }>>;
107
107
  capitalLookingToRaise: z.ZodString;
108
108
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -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,18 +212,23 @@ 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<{
213
- IDEA: string;
214
- PRE_SEED: string;
215
- MVP: string;
216
- SEED: string;
217
- SERIES_A: string;
218
- SERIES_B: string;
219
- SERIES_C: string;
220
- GROWTH: string;
221
- EXIT: string;
223
+ readonly IDEA: "Idea";
224
+ readonly PRE_SEED: "Pre Seed";
225
+ readonly MVP: "MVP";
226
+ readonly SEED: "Seed";
227
+ readonly SERIES_A: "Series A";
228
+ readonly SERIES_B: "Series B";
229
+ readonly SERIES_C: "Series C";
230
+ readonly GROWTH: "Growth";
231
+ readonly EXIT: "Exit";
222
232
  }>>;
223
233
  capitalLookingToRaise: z.ZodOptional<z.ZodString>;
224
234
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -266,15 +276,15 @@ export declare const CreateProjectOutputSchema: z.ZodObject<{
266
276
  problemBeingSolved: z.ZodOptional<z.ZodString>;
267
277
  whoItsFor: z.ZodOptional<z.ZodString>;
268
278
  ventureStage: z.ZodOptional<z.ZodEnum<{
269
- IDEA: string;
270
- PRE_SEED: string;
271
- MVP: string;
272
- SEED: string;
273
- SERIES_A: string;
274
- SERIES_B: string;
275
- SERIES_C: string;
276
- GROWTH: string;
277
- EXIT: string;
279
+ readonly IDEA: "Idea";
280
+ readonly PRE_SEED: "Pre Seed";
281
+ readonly MVP: "MVP";
282
+ readonly SEED: "Seed";
283
+ readonly SERIES_A: "Series A";
284
+ readonly SERIES_B: "Series B";
285
+ readonly SERIES_C: "Series C";
286
+ readonly GROWTH: "Growth";
287
+ readonly EXIT: "Exit";
278
288
  }>>;
279
289
  capitalLookingToRaise: z.ZodString;
280
290
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -322,15 +332,15 @@ export declare const UpdateProjectOutputSchema: z.ZodObject<{
322
332
  problemBeingSolved: z.ZodOptional<z.ZodString>;
323
333
  whoItsFor: z.ZodOptional<z.ZodString>;
324
334
  ventureStage: z.ZodOptional<z.ZodEnum<{
325
- IDEA: string;
326
- PRE_SEED: string;
327
- MVP: string;
328
- SEED: string;
329
- SERIES_A: string;
330
- SERIES_B: string;
331
- SERIES_C: string;
332
- GROWTH: string;
333
- EXIT: string;
335
+ readonly IDEA: "Idea";
336
+ readonly PRE_SEED: "Pre Seed";
337
+ readonly MVP: "MVP";
338
+ readonly SEED: "Seed";
339
+ readonly SERIES_A: "Series A";
340
+ readonly SERIES_B: "Series B";
341
+ readonly SERIES_C: "Series C";
342
+ readonly GROWTH: "Growth";
343
+ readonly EXIT: "Exit";
334
344
  }>>;
335
345
  capitalLookingToRaise: z.ZodString;
336
346
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -378,15 +388,15 @@ export declare const DeleteProjectOutputSchema: z.ZodObject<{
378
388
  problemBeingSolved: z.ZodOptional<z.ZodString>;
379
389
  whoItsFor: z.ZodOptional<z.ZodString>;
380
390
  ventureStage: z.ZodOptional<z.ZodEnum<{
381
- IDEA: string;
382
- PRE_SEED: string;
383
- MVP: string;
384
- SEED: string;
385
- SERIES_A: string;
386
- SERIES_B: string;
387
- SERIES_C: string;
388
- GROWTH: string;
389
- EXIT: string;
391
+ readonly IDEA: "Idea";
392
+ readonly PRE_SEED: "Pre Seed";
393
+ readonly MVP: "MVP";
394
+ readonly SEED: "Seed";
395
+ readonly SERIES_A: "Series A";
396
+ readonly SERIES_B: "Series B";
397
+ readonly SERIES_C: "Series C";
398
+ readonly GROWTH: "Growth";
399
+ readonly EXIT: "Exit";
390
400
  }>>;
391
401
  capitalLookingToRaise: z.ZodString;
392
402
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -434,15 +444,15 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
434
444
  problemBeingSolved: z.ZodOptional<z.ZodString>;
435
445
  whoItsFor: z.ZodOptional<z.ZodString>;
436
446
  ventureStage: z.ZodOptional<z.ZodEnum<{
437
- IDEA: string;
438
- PRE_SEED: string;
439
- MVP: string;
440
- SEED: string;
441
- SERIES_A: string;
442
- SERIES_B: string;
443
- SERIES_C: string;
444
- GROWTH: string;
445
- EXIT: string;
447
+ readonly IDEA: "Idea";
448
+ readonly PRE_SEED: "Pre Seed";
449
+ readonly MVP: "MVP";
450
+ readonly SEED: "Seed";
451
+ readonly SERIES_A: "Series A";
452
+ readonly SERIES_B: "Series B";
453
+ readonly SERIES_C: "Series C";
454
+ readonly GROWTH: "Growth";
455
+ readonly EXIT: "Exit";
446
456
  }>>;
447
457
  capitalLookingToRaise: z.ZodString;
448
458
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -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(),
@@ -236,15 +236,15 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
236
236
  problemBeingSolved: z.ZodOptional<z.ZodString>;
237
237
  whoItsFor: z.ZodOptional<z.ZodString>;
238
238
  ventureStage: z.ZodOptional<z.ZodEnum<{
239
- IDEA: string;
240
- PRE_SEED: string;
241
- MVP: string;
242
- SEED: string;
243
- SERIES_A: string;
244
- SERIES_B: string;
245
- SERIES_C: string;
246
- GROWTH: string;
247
- EXIT: string;
239
+ readonly IDEA: "Idea";
240
+ readonly PRE_SEED: "Pre Seed";
241
+ readonly MVP: "MVP";
242
+ readonly SEED: "Seed";
243
+ readonly SERIES_A: "Series A";
244
+ readonly SERIES_B: "Series B";
245
+ readonly SERIES_C: "Series C";
246
+ readonly GROWTH: "Growth";
247
+ readonly EXIT: "Exit";
248
248
  }>>;
249
249
  capitalLookingToRaise: z.ZodString;
250
250
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
@@ -747,15 +747,15 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
747
747
  problemBeingSolved: z.ZodOptional<z.ZodString>;
748
748
  whoItsFor: z.ZodOptional<z.ZodString>;
749
749
  ventureStage: z.ZodOptional<z.ZodEnum<{
750
- IDEA: string;
751
- PRE_SEED: string;
752
- MVP: string;
753
- SEED: string;
754
- SERIES_A: string;
755
- SERIES_B: string;
756
- SERIES_C: string;
757
- GROWTH: string;
758
- EXIT: string;
750
+ readonly IDEA: "Idea";
751
+ readonly PRE_SEED: "Pre Seed";
752
+ readonly MVP: "MVP";
753
+ readonly SEED: "Seed";
754
+ readonly SERIES_A: "Series A";
755
+ readonly SERIES_B: "Series B";
756
+ readonly SERIES_C: "Series C";
757
+ readonly GROWTH: "Growth";
758
+ readonly EXIT: "Exit";
759
759
  }>>;
760
760
  capitalLookingToRaise: z.ZodString;
761
761
  capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.5",
3
+ "version": "2.2.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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",
@@ -260,7 +266,7 @@ export const VENTURE_STAGES = {
260
266
  SERIES_C: "Series C",
261
267
  GROWTH: "Growth",
262
268
  EXIT: "Exit",
263
- };
269
+ } as const;
264
270
 
265
271
  export type NotificationType =
266
272
  (typeof NOTIFICATION_TYPES)[keyof typeof NOTIFICATION_TYPES];
@@ -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: {
@@ -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(),