expo-backend-types 0.15.0-EXPO-244-EB-CSV.4 → 0.15.0-EXPO-244-EB-CSV.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,35 @@
1
+ /// <reference types="node" />
1
2
  import { z } from 'zod';
2
- export declare const csvDownloadAllTablesSchema: z.ZodObject<{
3
+ export declare const downloadAllTablesSchema: z.ZodObject<{
3
4
  password: z.ZodString;
4
5
  }, "strip", z.ZodTypeAny, {
5
6
  password: string;
6
7
  }, {
7
8
  password: string;
8
9
  }>;
9
- declare const CsvDownloadAllTablesDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
10
+ declare const DownloadAllTablesDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
10
11
  password: z.ZodString;
11
12
  }, z.UnknownKeysParam, z.ZodTypeAny, {
12
13
  password: string;
13
14
  }, {
14
15
  password: string;
15
16
  }>>;
16
- export declare class CsvDownloadAllTablesDto extends CsvDownloadAllTablesDto_base {
17
+ export declare class DownloadAllTablesDto extends DownloadAllTablesDto_base {
18
+ }
19
+ export declare const downloadAllTablesResponseSchema: z.ZodObject<{
20
+ zipData: z.ZodType<Buffer, z.ZodTypeDef, Buffer>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ zipData: Buffer;
23
+ }, {
24
+ zipData: Buffer;
25
+ }>;
26
+ declare const DownloadAllTablesResponseDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
27
+ zipData: z.ZodType<Buffer, z.ZodTypeDef, Buffer>;
28
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
29
+ zipData: Buffer;
30
+ }, {
31
+ zipData: Buffer;
32
+ }>>;
33
+ export declare class DownloadAllTablesResponseDto extends DownloadAllTablesResponseDto_base {
17
34
  }
18
35
  export {};
@@ -1,17 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CsvDownloadAllTablesDto = exports.csvDownloadAllTablesSchema = void 0;
3
+ exports.DownloadAllTablesResponseDto = exports.downloadAllTablesResponseSchema = exports.DownloadAllTablesDto = exports.downloadAllTablesSchema = void 0;
4
4
  const translate_1 = require("../../i18n/translate");
5
5
  const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
6
6
  const zod_1 = require("zod");
7
- exports.csvDownloadAllTablesSchema = zod_1.z.object({
7
+ exports.downloadAllTablesSchema = zod_1.z.object({
8
8
  password: zod_1.z
9
- .string({
10
- required_error: (0, translate_1.translate)('model.csv.password.required'),
11
- })
9
+ .string({ required_error: (0, translate_1.translate)('model.csv.password.required') })
12
10
  .min(1, (0, translate_1.translate)('model.csv.password.empty')),
13
11
  });
14
- class CsvDownloadAllTablesDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.csvDownloadAllTablesSchema) {
12
+ class DownloadAllTablesDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.downloadAllTablesSchema) {
15
13
  }
16
- exports.CsvDownloadAllTablesDto = CsvDownloadAllTablesDto;
14
+ exports.DownloadAllTablesDto = DownloadAllTablesDto;
15
+ exports.downloadAllTablesResponseSchema = zod_1.z.object({
16
+ zipData: zod_1.z.instanceof(Buffer),
17
+ });
18
+ class DownloadAllTablesResponseDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.downloadAllTablesResponseSchema) {
19
+ }
20
+ exports.DownloadAllTablesResponseDto = DownloadAllTablesResponseDto;
17
21
  //# sourceMappingURL=downloadAllTables.dto.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-backend-types",
3
- "version": "0.15.0-EXPO-244-EB-CSV.4",
3
+ "version": "0.15.0-EXPO-244-EB-CSV.5",
4
4
  "description": "",
5
5
  "author": "Expo",
6
6
  "private": false,