@zyacreatives/shared 2.2.10 → 2.2.12
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.
|
@@ -167,6 +167,7 @@ export declare const ProjectUpdateOutputEntitySchema: z.ZodObject<{
|
|
|
167
167
|
id: z.ZodCUID2;
|
|
168
168
|
}, z.core.$strip>;
|
|
169
169
|
export declare const CreateProjectInputSchema: z.ZodObject<{
|
|
170
|
+
id: z.ZodCUID2;
|
|
170
171
|
title: z.ZodString;
|
|
171
172
|
description: z.ZodOptional<z.ZodString>;
|
|
172
173
|
overview: z.ZodOptional<z.ZodString>;
|
|
@@ -243,7 +244,65 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
|
|
|
243
244
|
version: z.ZodInt;
|
|
244
245
|
}, z.core.$strip>;
|
|
245
246
|
export declare const CreateProjectOutputSchema: z.ZodObject<{
|
|
246
|
-
id: z.
|
|
247
|
+
id: z.ZodString;
|
|
248
|
+
userId: z.ZodString;
|
|
249
|
+
title: z.ZodString;
|
|
250
|
+
description: z.ZodOptional<z.ZodString>;
|
|
251
|
+
overview: z.ZodOptional<z.ZodString>;
|
|
252
|
+
url: z.ZodOptional<z.ZodString>;
|
|
253
|
+
imagePlaceholderUrl: z.ZodString;
|
|
254
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
255
|
+
projectCreatorType: z.ZodEnum<{
|
|
256
|
+
readonly CREATIVE: "CREATIVE";
|
|
257
|
+
readonly BRAND: "BRAND";
|
|
258
|
+
readonly INVESTOR: "INVESTOR";
|
|
259
|
+
readonly ADMIN: "ADMIN";
|
|
260
|
+
}>;
|
|
261
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
262
|
+
status: z.ZodEnum<{
|
|
263
|
+
readonly ACTIVE: "ACTIVE";
|
|
264
|
+
readonly DRAFT: "DRAFT";
|
|
265
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
266
|
+
}>;
|
|
267
|
+
clientType: z.ZodOptional<z.ZodEnum<{
|
|
268
|
+
readonly CREATIVE: "CREATIVE";
|
|
269
|
+
readonly BRAND: "BRAND";
|
|
270
|
+
readonly NONE: "NONE";
|
|
271
|
+
}>>;
|
|
272
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
273
|
+
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
274
|
+
problemBeingSolved: z.ZodOptional<z.ZodString>;
|
|
275
|
+
whoItsFor: z.ZodOptional<z.ZodString>;
|
|
276
|
+
ventureStage: z.ZodOptional<z.ZodEnum<{
|
|
277
|
+
readonly IDEA: "Idea";
|
|
278
|
+
readonly PRE_SEED: "Pre Seed";
|
|
279
|
+
readonly MVP: "MVP";
|
|
280
|
+
readonly SEED: "Seed";
|
|
281
|
+
readonly SERIES_A: "Series A";
|
|
282
|
+
readonly SERIES_B: "Series B";
|
|
283
|
+
readonly SERIES_C: "Series C";
|
|
284
|
+
readonly GROWTH: "Growth";
|
|
285
|
+
readonly EXIT: "Exit";
|
|
286
|
+
}>>;
|
|
287
|
+
capitalLookingToRaise: z.ZodString;
|
|
288
|
+
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
readonly USD: "USD (United States Dollar)";
|
|
290
|
+
readonly EUR: "EUR (Euro)";
|
|
291
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
292
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
293
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
294
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
295
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
296
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
297
|
+
readonly INR: "INR (Indian Rupee)";
|
|
298
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
299
|
+
}>>;
|
|
300
|
+
currentTraction: z.ZodString;
|
|
301
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
302
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
303
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
304
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
305
|
+
version: z.ZodInt;
|
|
247
306
|
}, z.core.$strip>;
|
|
248
307
|
export declare const UpdateProjectOutputSchema: z.ZodObject<{
|
|
249
308
|
id: z.ZodString;
|
package/dist/schemas/project.js
CHANGED
|
@@ -145,6 +145,7 @@ exports.ProjectUpdateOutputEntitySchema = zod_openapi_1.z
|
|
|
145
145
|
.openapi("ProjectUpdateOutputEntity");
|
|
146
146
|
exports.CreateProjectInputSchema = zod_openapi_1.z
|
|
147
147
|
.object({
|
|
148
|
+
id: zod_openapi_1.z.cuid2(),
|
|
148
149
|
title: zod_openapi_1.z.string().min(1).max(100),
|
|
149
150
|
description: zod_openapi_1.z.string().max(1000).optional(),
|
|
150
151
|
overview: zod_openapi_1.z.string().optional(),
|
|
@@ -219,9 +220,7 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
|
|
|
219
220
|
}
|
|
220
221
|
})
|
|
221
222
|
.openapi({ title: "Update Project" });
|
|
222
|
-
exports.CreateProjectOutputSchema =
|
|
223
|
-
id: zod_openapi_1.z.cuid2(),
|
|
224
|
-
});
|
|
223
|
+
exports.CreateProjectOutputSchema = exports.ProjectEntitySchema;
|
|
225
224
|
exports.UpdateProjectOutputSchema = exports.ProjectEntitySchema;
|
|
226
225
|
exports.DeleteProjectOutputSchema = exports.ProjectEntitySchema;
|
|
227
226
|
exports.GetProjectOutputSchema = exports.ProjectDetailsEntitySchema.extend({
|
package/package.json
CHANGED
package/src/schemas/project.ts
CHANGED
|
@@ -157,6 +157,7 @@ export const ProjectUpdateOutputEntitySchema = z
|
|
|
157
157
|
|
|
158
158
|
export const CreateProjectInputSchema = z
|
|
159
159
|
.object({
|
|
160
|
+
id: z.cuid2(),
|
|
160
161
|
title: z.string().min(1).max(100),
|
|
161
162
|
description: z.string().max(1000).optional(),
|
|
162
163
|
overview: z.string().optional(),
|
|
@@ -235,9 +236,7 @@ export const UpdateProjectInputSchema = z
|
|
|
235
236
|
})
|
|
236
237
|
.openapi({ title: "Update Project" });
|
|
237
238
|
|
|
238
|
-
export const CreateProjectOutputSchema =
|
|
239
|
-
id: z.cuid2(),
|
|
240
|
-
});
|
|
239
|
+
export const CreateProjectOutputSchema = ProjectEntitySchema;
|
|
241
240
|
export const UpdateProjectOutputSchema = ProjectEntitySchema;
|
|
242
241
|
export const DeleteProjectOutputSchema = ProjectEntitySchema;
|
|
243
242
|
|