@zyacreatives/shared 2.2.41 → 2.2.43

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.
@@ -44,6 +44,22 @@ export declare const InvestorEntitySchema: z.ZodObject<{
44
44
  "Social Impact Investor": "Social Impact Investor";
45
45
  }>>;
46
46
  websiteURL: z.ZodOptional<z.ZodURL>;
47
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
48
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
49
+ type: z.ZodEnum<{
50
+ readonly INSTAGRAM: "Instagram";
51
+ readonly LINKEDIN: "LinkedIn";
52
+ readonly TWITTER: "Twitter";
53
+ readonly YOUTUBE: "Youtube";
54
+ readonly PORTFOLIO: "Portfolio Website";
55
+ readonly GENERIC_WEBSITE: "Generic Website";
56
+ }>;
57
+ }, z.core.$strip>>>;
58
+ achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
59
+ title: z.ZodString;
60
+ link: z.ZodOptional<z.ZodString>;
61
+ year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
62
+ }, z.core.$strip>>>;
47
63
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
64
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
49
65
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -102,6 +118,22 @@ export declare const UpdateInvestorProfileInputSchema: z.ZodObject<{
102
118
  Global: "Global";
103
119
  Other: "Other";
104
120
  }>>;
121
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
123
+ type: z.ZodEnum<{
124
+ readonly INSTAGRAM: "Instagram";
125
+ readonly LINKEDIN: "LinkedIn";
126
+ readonly TWITTER: "Twitter";
127
+ readonly YOUTUBE: "Youtube";
128
+ readonly PORTFOLIO: "Portfolio Website";
129
+ readonly GENERIC_WEBSITE: "Generic Website";
130
+ }>;
131
+ }, z.core.$strip>>>;
132
+ achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
133
+ title: z.ZodString;
134
+ link: z.ZodOptional<z.ZodString>;
135
+ year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
136
+ }, z.core.$strip>>>;
105
137
  location: z.ZodOptional<z.ZodString>;
106
138
  version: z.ZodInt;
107
139
  }, z.core.$strip>;
@@ -173,6 +205,22 @@ export declare const CreateInvestorOutputSchema: z.ZodObject<{
173
205
  "Social Impact Investor": "Social Impact Investor";
174
206
  }>>;
175
207
  websiteURL: z.ZodOptional<z.ZodURL>;
208
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
209
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
210
+ type: z.ZodEnum<{
211
+ readonly INSTAGRAM: "Instagram";
212
+ readonly LINKEDIN: "LinkedIn";
213
+ readonly TWITTER: "Twitter";
214
+ readonly YOUTUBE: "Youtube";
215
+ readonly PORTFOLIO: "Portfolio Website";
216
+ readonly GENERIC_WEBSITE: "Generic Website";
217
+ }>;
218
+ }, z.core.$strip>>>;
219
+ achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
220
+ title: z.ZodString;
221
+ link: z.ZodOptional<z.ZodString>;
222
+ year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
223
+ }, z.core.$strip>>>;
176
224
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
177
225
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
178
226
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -223,6 +271,22 @@ export declare const GetInvestorOutputSchema: z.ZodObject<{
223
271
  "Social Impact Investor": "Social Impact Investor";
224
272
  }>>;
225
273
  websiteURL: z.ZodOptional<z.ZodURL>;
274
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
275
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
276
+ type: z.ZodEnum<{
277
+ readonly INSTAGRAM: "Instagram";
278
+ readonly LINKEDIN: "LinkedIn";
279
+ readonly TWITTER: "Twitter";
280
+ readonly YOUTUBE: "Youtube";
281
+ readonly PORTFOLIO: "Portfolio Website";
282
+ readonly GENERIC_WEBSITE: "Generic Website";
283
+ }>;
284
+ }, z.core.$strip>>>;
285
+ achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
286
+ title: z.ZodString;
287
+ link: z.ZodOptional<z.ZodString>;
288
+ year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
289
+ }, z.core.$strip>>>;
226
290
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
227
291
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
228
292
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -273,6 +337,22 @@ export declare const UpdateInvestorOutputSchema: z.ZodObject<{
273
337
  "Social Impact Investor": "Social Impact Investor";
274
338
  }>>;
275
339
  websiteURL: z.ZodOptional<z.ZodURL>;
340
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
341
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
342
+ type: z.ZodEnum<{
343
+ readonly INSTAGRAM: "Instagram";
344
+ readonly LINKEDIN: "LinkedIn";
345
+ readonly TWITTER: "Twitter";
346
+ readonly YOUTUBE: "Youtube";
347
+ readonly PORTFOLIO: "Portfolio Website";
348
+ readonly GENERIC_WEBSITE: "Generic Website";
349
+ }>;
350
+ }, z.core.$strip>>>;
351
+ achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
352
+ title: z.ZodString;
353
+ link: z.ZodOptional<z.ZodString>;
354
+ year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
355
+ }, z.core.$strip>>>;
276
356
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
277
357
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
278
358
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -33,6 +33,24 @@ exports.InvestorEntitySchema = zod_openapi_1.z
33
33
  .url()
34
34
  .optional()
35
35
  .openapi({ example: "https://investorpartners.com" }),
36
+ links: zod_openapi_1.z
37
+ .object({
38
+ url: zod_openapi_1.z.union([
39
+ zod_openapi_1.z.url({ message: "Please enter a valid URL" }),
40
+ zod_openapi_1.z.literal(""),
41
+ ]),
42
+ type: zod_openapi_1.z.enum(constants_1.LINK_TYPES),
43
+ })
44
+ .array()
45
+ .optional(),
46
+ achievements: zod_openapi_1.z
47
+ .object({
48
+ title: zod_openapi_1.z.string(),
49
+ link: zod_openapi_1.z.string().optional(),
50
+ year: zod_openapi_1.z.coerce.number().int().optional(),
51
+ })
52
+ .array()
53
+ .optional(),
36
54
  disciplines: zod_openapi_1.z
37
55
  .array(zod_openapi_1.z.string())
38
56
  .optional()
@@ -125,6 +143,24 @@ exports.UpdateInvestorProfileInputSchema = zod_openapi_1.z
125
143
  .openapi({
126
144
  example: "GLOBAL",
127
145
  }),
146
+ links: zod_openapi_1.z
147
+ .object({
148
+ url: zod_openapi_1.z.union([
149
+ zod_openapi_1.z.url({ message: "Please enter a valid URL" }),
150
+ zod_openapi_1.z.literal(""),
151
+ ]),
152
+ type: zod_openapi_1.z.enum(constants_1.LINK_TYPES),
153
+ })
154
+ .array()
155
+ .optional(),
156
+ achievements: zod_openapi_1.z
157
+ .object({
158
+ title: zod_openapi_1.z.string(),
159
+ link: zod_openapi_1.z.string().optional(),
160
+ year: zod_openapi_1.z.coerce.number().int().optional(),
161
+ })
162
+ .array()
163
+ .optional(),
128
164
  location: zod_openapi_1.z.string().optional().openapi({
129
165
  example: "UK",
130
166
  }),
@@ -201,6 +201,22 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
201
201
  "Social Impact Investor": "Social Impact Investor";
202
202
  }>>;
203
203
  websiteURL: z.ZodOptional<z.ZodURL>;
204
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
205
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
206
+ type: z.ZodEnum<{
207
+ readonly INSTAGRAM: "Instagram";
208
+ readonly LINKEDIN: "LinkedIn";
209
+ readonly TWITTER: "Twitter";
210
+ readonly YOUTUBE: "Youtube";
211
+ readonly PORTFOLIO: "Portfolio Website";
212
+ readonly GENERIC_WEBSITE: "Generic Website";
213
+ }>;
214
+ }, z.core.$strip>>>;
215
+ achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
216
+ title: z.ZodString;
217
+ link: z.ZodOptional<z.ZodString>;
218
+ year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
219
+ }, z.core.$strip>>>;
204
220
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
221
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
206
222
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -718,6 +734,22 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
718
734
  "Social Impact Investor": "Social Impact Investor";
719
735
  }>>;
720
736
  websiteURL: z.ZodOptional<z.ZodURL>;
737
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
738
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
739
+ type: z.ZodEnum<{
740
+ readonly INSTAGRAM: "Instagram";
741
+ readonly LINKEDIN: "LinkedIn";
742
+ readonly TWITTER: "Twitter";
743
+ readonly YOUTUBE: "Youtube";
744
+ readonly PORTFOLIO: "Portfolio Website";
745
+ readonly GENERIC_WEBSITE: "Generic Website";
746
+ }>;
747
+ }, z.core.$strip>>>;
748
+ achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
749
+ title: z.ZodString;
750
+ link: z.ZodOptional<z.ZodString>;
751
+ year: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
752
+ }, z.core.$strip>>>;
721
753
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
722
754
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
723
755
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.41",
3
+ "version": "2.2.43",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,6 +8,7 @@ import {
8
8
  InvestmentSize,
9
9
  INVESTOR_TYPES,
10
10
  InvestorType,
11
+ LINK_TYPES,
11
12
  } from "../constants";
12
13
  import { CuidSchema, ProfileIdentifierSchema } from "./common";
13
14
 
@@ -55,6 +56,24 @@ export const InvestorEntitySchema = z
55
56
  .url()
56
57
  .optional()
57
58
  .openapi({ example: "https://investorpartners.com" }),
59
+ links: z
60
+ .object({
61
+ url: z.union([
62
+ z.url({ message: "Please enter a valid URL" }),
63
+ z.literal(""),
64
+ ]),
65
+ type: z.enum(LINK_TYPES),
66
+ })
67
+ .array()
68
+ .optional(),
69
+ achievements: z
70
+ .object({
71
+ title: z.string(),
72
+ link: z.string().optional(),
73
+ year: z.coerce.number().int().optional(),
74
+ })
75
+ .array()
76
+ .optional(),
58
77
  disciplines: z
59
78
  .array(z.string())
60
79
  .optional()
@@ -167,6 +186,24 @@ export const UpdateInvestorProfileInputSchema = z
167
186
  .openapi({
168
187
  example: "GLOBAL",
169
188
  }),
189
+ links: z
190
+ .object({
191
+ url: z.union([
192
+ z.url({ message: "Please enter a valid URL" }),
193
+ z.literal(""),
194
+ ]),
195
+ type: z.enum(LINK_TYPES),
196
+ })
197
+ .array()
198
+ .optional(),
199
+ achievements: z
200
+ .object({
201
+ title: z.string(),
202
+ link: z.string().optional(),
203
+ year: z.coerce.number().int().optional(),
204
+ })
205
+ .array()
206
+ .optional(),
170
207
  location: z.string().optional().openapi({
171
208
  example: "UK",
172
209
  }),