@zyacreatives/shared 2.2.9 → 2.2.11

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>;
@@ -230,6 +231,12 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
230
231
  readonly ZAR: "ZAR (South African Rand)";
231
232
  }>>;
232
233
  currentTraction: z.ZodOptional<z.ZodString>;
234
+ files: z.ZodArray<z.ZodObject<{
235
+ key: z.ZodString;
236
+ mimeType: z.ZodString;
237
+ isPlaceholder: z.ZodDefault<z.ZodBoolean>;
238
+ order: z.ZodDefault<z.ZodInt>;
239
+ }, z.core.$strip>>;
233
240
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
234
241
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
235
242
  createdAt: z.ZodOptional<z.ZodDate>;
@@ -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(),
@@ -188,6 +189,10 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
188
189
  capitalLookingToRaise: zod_openapi_1.z.string().optional(),
189
190
  capitalLookingToRaiseCurrency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY).optional(),
190
191
  currentTraction: zod_openapi_1.z.string().max(600).optional(),
192
+ files: zod_openapi_1.z.array(file_1.CreateFileInputSchema.extend({
193
+ isPlaceholder: zod_openapi_1.z.boolean().default(false),
194
+ order: zod_openapi_1.z.int().default(1),
195
+ })),
191
196
  startDate: zod_openapi_1.z.coerce.date().optional(),
192
197
  endDate: zod_openapi_1.z.coerce.date().optional(),
193
198
  createdAt: zod_openapi_1.z.date().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.9",
3
+ "version": "2.2.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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(),
@@ -202,6 +203,12 @@ export const UpdateProjectInputSchema = z
202
203
  capitalLookingToRaise: z.string().optional(),
203
204
  capitalLookingToRaiseCurrency: z.enum(WAGES_CURRENCY).optional(),
204
205
  currentTraction: z.string().max(600).optional(),
206
+ files: z.array(
207
+ CreateFileInputSchema.extend({
208
+ isPlaceholder: z.boolean().default(false),
209
+ order: z.int().default(1),
210
+ }),
211
+ ),
205
212
  startDate: z.coerce.date().optional(),
206
213
  endDate: z.coerce.date().optional(),
207
214
  createdAt: z.date().optional(),