@zyacreatives/shared 2.2.41 → 2.2.42

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,17 @@ 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>>>;
47
58
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
59
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
49
60
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -102,6 +113,17 @@ export declare const UpdateInvestorProfileInputSchema: z.ZodObject<{
102
113
  Global: "Global";
103
114
  Other: "Other";
104
115
  }>>;
116
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
117
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
118
+ type: z.ZodEnum<{
119
+ readonly INSTAGRAM: "Instagram";
120
+ readonly LINKEDIN: "LinkedIn";
121
+ readonly TWITTER: "Twitter";
122
+ readonly YOUTUBE: "Youtube";
123
+ readonly PORTFOLIO: "Portfolio Website";
124
+ readonly GENERIC_WEBSITE: "Generic Website";
125
+ }>;
126
+ }, z.core.$strip>>>;
105
127
  location: z.ZodOptional<z.ZodString>;
106
128
  version: z.ZodInt;
107
129
  }, z.core.$strip>;
@@ -173,6 +195,17 @@ export declare const CreateInvestorOutputSchema: z.ZodObject<{
173
195
  "Social Impact Investor": "Social Impact Investor";
174
196
  }>>;
175
197
  websiteURL: z.ZodOptional<z.ZodURL>;
198
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
199
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
200
+ type: z.ZodEnum<{
201
+ readonly INSTAGRAM: "Instagram";
202
+ readonly LINKEDIN: "LinkedIn";
203
+ readonly TWITTER: "Twitter";
204
+ readonly YOUTUBE: "Youtube";
205
+ readonly PORTFOLIO: "Portfolio Website";
206
+ readonly GENERIC_WEBSITE: "Generic Website";
207
+ }>;
208
+ }, z.core.$strip>>>;
176
209
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
177
210
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
178
211
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -223,6 +256,17 @@ export declare const GetInvestorOutputSchema: z.ZodObject<{
223
256
  "Social Impact Investor": "Social Impact Investor";
224
257
  }>>;
225
258
  websiteURL: z.ZodOptional<z.ZodURL>;
259
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
260
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
261
+ type: z.ZodEnum<{
262
+ readonly INSTAGRAM: "Instagram";
263
+ readonly LINKEDIN: "LinkedIn";
264
+ readonly TWITTER: "Twitter";
265
+ readonly YOUTUBE: "Youtube";
266
+ readonly PORTFOLIO: "Portfolio Website";
267
+ readonly GENERIC_WEBSITE: "Generic Website";
268
+ }>;
269
+ }, z.core.$strip>>>;
226
270
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
227
271
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
228
272
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -273,6 +317,17 @@ export declare const UpdateInvestorOutputSchema: z.ZodObject<{
273
317
  "Social Impact Investor": "Social Impact Investor";
274
318
  }>>;
275
319
  websiteURL: z.ZodOptional<z.ZodURL>;
320
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
321
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
322
+ type: z.ZodEnum<{
323
+ readonly INSTAGRAM: "Instagram";
324
+ readonly LINKEDIN: "LinkedIn";
325
+ readonly TWITTER: "Twitter";
326
+ readonly YOUTUBE: "Youtube";
327
+ readonly PORTFOLIO: "Portfolio Website";
328
+ readonly GENERIC_WEBSITE: "Generic Website";
329
+ }>;
330
+ }, z.core.$strip>>>;
276
331
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
277
332
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
278
333
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -33,6 +33,16 @@ 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(),
36
46
  disciplines: zod_openapi_1.z
37
47
  .array(zod_openapi_1.z.string())
38
48
  .optional()
@@ -125,6 +135,16 @@ exports.UpdateInvestorProfileInputSchema = zod_openapi_1.z
125
135
  .openapi({
126
136
  example: "GLOBAL",
127
137
  }),
138
+ links: zod_openapi_1.z
139
+ .object({
140
+ url: zod_openapi_1.z.union([
141
+ zod_openapi_1.z.url({ message: "Please enter a valid URL" }),
142
+ zod_openapi_1.z.literal(""),
143
+ ]),
144
+ type: zod_openapi_1.z.enum(constants_1.LINK_TYPES),
145
+ })
146
+ .array()
147
+ .optional(),
128
148
  location: zod_openapi_1.z.string().optional().openapi({
129
149
  example: "UK",
130
150
  }),
@@ -201,6 +201,17 @@ 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>>>;
204
215
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
216
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
206
217
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -718,6 +729,17 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
718
729
  "Social Impact Investor": "Social Impact Investor";
719
730
  }>>;
720
731
  websiteURL: z.ZodOptional<z.ZodURL>;
732
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
733
+ url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
734
+ type: z.ZodEnum<{
735
+ readonly INSTAGRAM: "Instagram";
736
+ readonly LINKEDIN: "LinkedIn";
737
+ readonly TWITTER: "Twitter";
738
+ readonly YOUTUBE: "Youtube";
739
+ readonly PORTFOLIO: "Portfolio Website";
740
+ readonly GENERIC_WEBSITE: "Generic Website";
741
+ }>;
742
+ }, z.core.$strip>>>;
721
743
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
722
744
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
723
745
  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.42",
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,16 @@ 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(),
58
69
  disciplines: z
59
70
  .array(z.string())
60
71
  .optional()
@@ -167,6 +178,16 @@ export const UpdateInvestorProfileInputSchema = z
167
178
  .openapi({
168
179
  example: "GLOBAL",
169
180
  }),
181
+ links: z
182
+ .object({
183
+ url: z.union([
184
+ z.url({ message: "Please enter a valid URL" }),
185
+ z.literal(""),
186
+ ]),
187
+ type: z.enum(LINK_TYPES),
188
+ })
189
+ .array()
190
+ .optional(),
170
191
  location: z.string().optional().openapi({
171
192
  example: "UK",
172
193
  }),