expo-backend-types 0.29.0-EXPO-bugfix-retiro.1 → 0.29.0-EXPO-bugfix-retiro.2

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.
@@ -1,17 +1,18 @@
1
+ /// <reference types="multer" />
1
2
  import z from 'zod';
2
3
  export declare const updateImageSchema: z.ZodObject<{
3
- image: z.ZodType<FormData, z.ZodTypeDef, FormData>;
4
+ image: z.ZodType<Express.Multer.File, z.ZodTypeDef, Express.Multer.File>;
4
5
  }, "strip", z.ZodTypeAny, {
5
- image: FormData;
6
+ image: Express.Multer.File;
6
7
  }, {
7
- image: FormData;
8
+ image: Express.Multer.File;
8
9
  }>;
9
10
  declare const UpdateImageDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
10
- image: z.ZodType<FormData, z.ZodTypeDef, FormData>;
11
+ image: z.ZodType<Express.Multer.File, z.ZodTypeDef, Express.Multer.File>;
11
12
  }, z.UnknownKeysParam, z.ZodTypeAny, {
12
- image: FormData;
13
+ image: Express.Multer.File;
13
14
  }, {
14
- image: FormData;
15
+ image: Express.Multer.File;
15
16
  }>>;
16
17
  export declare class UpdateImageDto extends UpdateImageDto_base {
17
18
  }
@@ -9,7 +9,9 @@ const zod_openapi_1 = require("@anatine/zod-openapi");
9
9
  const zod_1 = __importDefault(require("zod"));
10
10
  (0, zod_openapi_1.extendZodWithOpenApi)(zod_1.default);
11
11
  exports.updateImageSchema = zod_1.default.object({
12
- image: zod_1.default.instanceof(FormData).openapi({ type: 'object', format: 'binary' }),
12
+ image: zod_1.default
13
+ .custom()
14
+ .openapi({ type: 'object', format: 'binary' }),
13
15
  });
14
16
  class UpdateImageDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.updateImageSchema) {
15
17
  }
@@ -2046,7 +2046,7 @@ export interface components {
2046
2046
  tags?: string[];
2047
2047
  };
2048
2048
  UpdateImageDto: {
2049
- image: Record<string, never>;
2049
+ image?: Record<string, never>;
2050
2050
  };
2051
2051
  UpdateImageResponseDto: {
2052
2052
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.29.0-EXPO-bugfix-retiro.1",
3
+ "version": "0.29.0-EXPO-bugfix-retiro.2",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,