@zyacreatives/shared 2.2.48 → 2.2.50

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.
@@ -6,6 +6,18 @@ export declare const InvestorShortlistEntitySchema: z.ZodObject<{
6
6
  projectCreatorImage: z.ZodOptional<z.ZodURL>;
7
7
  projectCreatorName: z.ZodString;
8
8
  projectTotalRaising: z.ZodString;
9
+ projectTotalRaisingCurrency: z.ZodEnum<{
10
+ readonly USD: "USD (United States Dollar)";
11
+ readonly EUR: "EUR (Euro)";
12
+ readonly GBP: "GBP (British Pound Sterling)";
13
+ readonly NGN: "NGN (Nigerian Naira)";
14
+ readonly CAD: "CAD (Canadian Dollar)";
15
+ readonly AUD: "AUD (Australian Dollar)";
16
+ readonly JPY: "JPY (Japanese Yen)";
17
+ readonly CHF: "CHF (Swiss Franc)";
18
+ readonly INR: "INR (Indian Rupee)";
19
+ readonly ZAR: "ZAR (South African Rand)";
20
+ }>;
9
21
  projectVentureStage: z.ZodOptional<z.ZodEnum<{
10
22
  readonly IDEA: "Idea";
11
23
  readonly PRE_SEED: "Pre Seed";
@@ -17,6 +29,8 @@ export declare const InvestorShortlistEntitySchema: z.ZodObject<{
17
29
  readonly GROWTH: "Growth";
18
30
  readonly EXIT: "Exit";
19
31
  }>>;
32
+ createdAt: z.ZodCoercedDate<unknown>;
33
+ updatedAt: z.ZodCoercedDate<unknown>;
20
34
  }, z.core.$strip>;
21
35
  export declare const CreateInvestorShortlistInputSchema: z.ZodObject<{
22
36
  userId: z.ZodCUID2;
@@ -34,6 +48,18 @@ export declare const GetInvestorShortlistOutputSchema: z.ZodObject<{
34
48
  projectCreatorImage: z.ZodOptional<z.ZodURL>;
35
49
  projectCreatorName: z.ZodString;
36
50
  projectTotalRaising: z.ZodString;
51
+ projectTotalRaisingCurrency: z.ZodEnum<{
52
+ readonly USD: "USD (United States Dollar)";
53
+ readonly EUR: "EUR (Euro)";
54
+ readonly GBP: "GBP (British Pound Sterling)";
55
+ readonly NGN: "NGN (Nigerian Naira)";
56
+ readonly CAD: "CAD (Canadian Dollar)";
57
+ readonly AUD: "AUD (Australian Dollar)";
58
+ readonly JPY: "JPY (Japanese Yen)";
59
+ readonly CHF: "CHF (Swiss Franc)";
60
+ readonly INR: "INR (Indian Rupee)";
61
+ readonly ZAR: "ZAR (South African Rand)";
62
+ }>;
37
63
  projectVentureStage: z.ZodOptional<z.ZodEnum<{
38
64
  readonly IDEA: "Idea";
39
65
  readonly PRE_SEED: "Pre Seed";
@@ -45,5 +71,7 @@ export declare const GetInvestorShortlistOutputSchema: z.ZodObject<{
45
71
  readonly GROWTH: "Growth";
46
72
  readonly EXIT: "Exit";
47
73
  }>>;
74
+ createdAt: z.ZodCoercedDate<unknown>;
75
+ updatedAt: z.ZodCoercedDate<unknown>;
48
76
  }, z.core.$strip>>;
49
77
  }, z.core.$strip>;
@@ -13,7 +13,10 @@ exports.InvestorShortlistEntitySchema = zod_1.default.object({
13
13
  projectCreatorImage: zod_1.default.url().optional(),
14
14
  projectCreatorName: zod_1.default.string(),
15
15
  projectTotalRaising: zod_1.default.string(),
16
+ projectTotalRaisingCurrency: zod_1.default.enum(constants_1.WAGES_CURRENCY),
16
17
  projectVentureStage: zod_1.default.enum(constants_1.VENTURE_STAGES).optional(),
18
+ createdAt: zod_1.default.coerce.date(),
19
+ updatedAt: zod_1.default.coerce.date(),
17
20
  });
18
21
  exports.CreateInvestorShortlistInputSchema = zod_1.default.object({
19
22
  userId: zod_1.default.cuid2(),
@@ -6,7 +6,19 @@ export declare const InvestorSignalEntitySchema: z.ZodObject<{
6
6
  projectCreatorImage: z.ZodOptional<z.ZodURL>;
7
7
  projectCreatorName: z.ZodString;
8
8
  projectTotalRaising: z.ZodString;
9
- projectVentureStage: z.ZodOptional<z.ZodEnum<{
9
+ projectTotalRaisingCurrency: z.ZodEnum<{
10
+ readonly USD: "USD (United States Dollar)";
11
+ readonly EUR: "EUR (Euro)";
12
+ readonly GBP: "GBP (British Pound Sterling)";
13
+ readonly NGN: "NGN (Nigerian Naira)";
14
+ readonly CAD: "CAD (Canadian Dollar)";
15
+ readonly AUD: "AUD (Australian Dollar)";
16
+ readonly JPY: "JPY (Japanese Yen)";
17
+ readonly CHF: "CHF (Swiss Franc)";
18
+ readonly INR: "INR (Indian Rupee)";
19
+ readonly ZAR: "ZAR (South African Rand)";
20
+ }>;
21
+ projectVentureStage: z.ZodEnum<{
10
22
  readonly IDEA: "Idea";
11
23
  readonly PRE_SEED: "Pre Seed";
12
24
  readonly MVP: "MVP";
@@ -16,7 +28,7 @@ export declare const InvestorSignalEntitySchema: z.ZodObject<{
16
28
  readonly SERIES_C: "Series C";
17
29
  readonly GROWTH: "Growth";
18
30
  readonly EXIT: "Exit";
19
- }>>;
31
+ }>;
20
32
  signalInterest: z.ZodEnum<{
21
33
  readonly INVESTMENT: "Exploring investment opportunities";
22
34
  readonly PARTNERSHIP: "Partnership & Collaboration";
@@ -32,6 +44,9 @@ export declare const InvestorSignalEntitySchema: z.ZodObject<{
32
44
  readonly DECLINED: "DECLINED";
33
45
  readonly PENDING: "PENDING";
34
46
  }>>;
47
+ createdAt: z.ZodCoercedDate<unknown>;
48
+ version: z.ZodInt;
49
+ updatedAt: z.ZodCoercedDate<unknown>;
35
50
  }, z.core.$strip>;
36
51
  export declare const CreateInvestorSignalInputSchema: z.ZodObject<{
37
52
  id: z.ZodCUID2;
@@ -55,6 +70,7 @@ export declare const UpdateInvestorSignalStatusSchema: z.ZodObject<{
55
70
  readonly DECLINED: "DECLINED";
56
71
  readonly PENDING: "PENDING";
57
72
  }>>;
73
+ version: z.ZodInt;
58
74
  }, z.core.$strip>;
59
75
  export declare const GetInvestorSignalInputSchema: z.ZodObject<{
60
76
  cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -73,7 +89,19 @@ export declare const GetInvestorSignalOutputSchema: z.ZodObject<{
73
89
  projectCreatorImage: z.ZodOptional<z.ZodURL>;
74
90
  projectCreatorName: z.ZodString;
75
91
  projectTotalRaising: z.ZodString;
76
- projectVentureStage: z.ZodOptional<z.ZodEnum<{
92
+ projectTotalRaisingCurrency: z.ZodEnum<{
93
+ readonly USD: "USD (United States Dollar)";
94
+ readonly EUR: "EUR (Euro)";
95
+ readonly GBP: "GBP (British Pound Sterling)";
96
+ readonly NGN: "NGN (Nigerian Naira)";
97
+ readonly CAD: "CAD (Canadian Dollar)";
98
+ readonly AUD: "AUD (Australian Dollar)";
99
+ readonly JPY: "JPY (Japanese Yen)";
100
+ readonly CHF: "CHF (Swiss Franc)";
101
+ readonly INR: "INR (Indian Rupee)";
102
+ readonly ZAR: "ZAR (South African Rand)";
103
+ }>;
104
+ projectVentureStage: z.ZodEnum<{
77
105
  readonly IDEA: "Idea";
78
106
  readonly PRE_SEED: "Pre Seed";
79
107
  readonly MVP: "MVP";
@@ -83,7 +111,7 @@ export declare const GetInvestorSignalOutputSchema: z.ZodObject<{
83
111
  readonly SERIES_C: "Series C";
84
112
  readonly GROWTH: "Growth";
85
113
  readonly EXIT: "Exit";
86
- }>>;
114
+ }>;
87
115
  signalInterest: z.ZodEnum<{
88
116
  readonly INVESTMENT: "Exploring investment opportunities";
89
117
  readonly PARTNERSHIP: "Partnership & Collaboration";
@@ -99,5 +127,8 @@ export declare const GetInvestorSignalOutputSchema: z.ZodObject<{
99
127
  readonly DECLINED: "DECLINED";
100
128
  readonly PENDING: "PENDING";
101
129
  }>>;
130
+ createdAt: z.ZodCoercedDate<unknown>;
131
+ version: z.ZodInt;
132
+ updatedAt: z.ZodCoercedDate<unknown>;
102
133
  }, z.core.$strip>>;
103
134
  }, z.core.$strip>;
@@ -13,10 +13,14 @@ exports.InvestorSignalEntitySchema = zod_1.default.object({
13
13
  projectCreatorImage: zod_1.default.url().optional(),
14
14
  projectCreatorName: zod_1.default.string(),
15
15
  projectTotalRaising: zod_1.default.string(),
16
- projectVentureStage: zod_1.default.enum(constants_1.VENTURE_STAGES).optional(),
16
+ projectTotalRaisingCurrency: zod_1.default.enum(constants_1.WAGES_CURRENCY),
17
+ projectVentureStage: zod_1.default.enum(constants_1.VENTURE_STAGES),
17
18
  signalInterest: zod_1.default.enum(constants_1.SIGNAL_INTEREST_TYPES),
18
19
  interestDetails: zod_1.default.string().max(600),
19
20
  signalStatus: zod_1.default.enum(constants_1.SIGNAL_STATUS).default("PENDING"),
21
+ createdAt: zod_1.default.coerce.date(),
22
+ version: zod_1.default.int(),
23
+ updatedAt: zod_1.default.coerce.date(),
20
24
  });
21
25
  exports.CreateInvestorSignalInputSchema = zod_1.default.object({
22
26
  id: zod_1.default.cuid2(),
@@ -28,6 +32,7 @@ exports.CreateInvestorSignalInputSchema = zod_1.default.object({
28
32
  exports.UpdateInvestorSignalStatusSchema = zod_1.default.object({
29
33
  id: zod_1.default.cuid2(),
30
34
  signalStatus: zod_1.default.enum(constants_1.SIGNAL_STATUS).default("PENDING"),
35
+ version: zod_1.default.int(),
31
36
  });
32
37
  exports.GetInvestorSignalInputSchema = zod_1.default.object({
33
38
  cursor: zod_1.default.string().optional().nullable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.48",
3
+ "version": "2.2.50",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  import z from "zod";
2
- import { VENTURE_STAGES } from "../constants";
2
+ import { VENTURE_STAGES, WAGES_CURRENCY } from "../constants";
3
3
 
4
4
  export const InvestorShortlistEntitySchema = z.object({
5
5
  id: z.cuid2(),
@@ -8,7 +8,10 @@ export const InvestorShortlistEntitySchema = z.object({
8
8
  projectCreatorImage: z.url().optional(),
9
9
  projectCreatorName: z.string(),
10
10
  projectTotalRaising: z.string(),
11
+ projectTotalRaisingCurrency: z.enum(WAGES_CURRENCY),
11
12
  projectVentureStage: z.enum(VENTURE_STAGES).optional(),
13
+ createdAt: z.coerce.date(),
14
+ updatedAt: z.coerce.date(),
12
15
  });
13
16
 
14
17
  export const CreateInvestorShortlistInputSchema = z.object({
@@ -3,6 +3,7 @@ import {
3
3
  SIGNAL_INTEREST_TYPES,
4
4
  SIGNAL_STATUS,
5
5
  VENTURE_STAGES,
6
+ WAGES_CURRENCY,
6
7
  } from "../constants";
7
8
 
8
9
  export const InvestorSignalEntitySchema = z.object({
@@ -12,10 +13,14 @@ export const InvestorSignalEntitySchema = z.object({
12
13
  projectCreatorImage: z.url().optional(),
13
14
  projectCreatorName: z.string(),
14
15
  projectTotalRaising: z.string(),
15
- projectVentureStage: z.enum(VENTURE_STAGES).optional(),
16
+ projectTotalRaisingCurrency: z.enum(WAGES_CURRENCY),
17
+ projectVentureStage: z.enum(VENTURE_STAGES),
16
18
  signalInterest: z.enum(SIGNAL_INTEREST_TYPES),
17
19
  interestDetails: z.string().max(600),
18
20
  signalStatus: z.enum(SIGNAL_STATUS).default("PENDING"),
21
+ createdAt: z.coerce.date(),
22
+ version: z.int(),
23
+ updatedAt: z.coerce.date(),
19
24
  });
20
25
 
21
26
  export const CreateInvestorSignalInputSchema = z.object({
@@ -29,6 +34,7 @@ export const CreateInvestorSignalInputSchema = z.object({
29
34
  export const UpdateInvestorSignalStatusSchema = z.object({
30
35
  id: z.cuid2(),
31
36
  signalStatus: z.enum(SIGNAL_STATUS).default("PENDING"),
37
+ version: z.int(),
32
38
  });
33
39
 
34
40
  export const GetInvestorSignalInputSchema = z.object({