expo-backend-types 0.15.0-EXPO-244-EB-CSV.2 → 0.15.0-EXPO-244-EB-CSV.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/csv/{csv.dto.js → dto/csv.dto.js} +2 -2
- package/dist/src/csv/dto/downloadAllTables.dto.d.ts +18 -0
- package/dist/src/csv/dto/downloadAllTables.dto.js +17 -0
- package/dist/src/csv/dto/downloadModelos.dto.d.ts +18 -0
- package/dist/src/csv/dto/downloadModelos.dto.js +15 -0
- package/dist/src/csv/exports.d.ts +3 -0
- package/dist/src/csv/exports.js +20 -0
- package/package.json +4 -1
- /package/dist/src/csv/{csv.dto.d.ts → dto/csv.dto.d.ts} +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CsvDownloadDto = exports.csvDownloadSchema = void 0;
|
4
|
-
const translate_1 = require("
|
5
|
-
const create_zod_dto_without_date_1 = require("
|
4
|
+
const translate_1 = require("../../i18n/translate");
|
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
7
|
exports.csvDownloadSchema = zod_1.z.object({
|
8
8
|
password: zod_1.z
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const csvDownloadAllTablesSchema: z.ZodObject<{
|
3
|
+
password: z.ZodString;
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
5
|
+
password: string;
|
6
|
+
}, {
|
7
|
+
password: string;
|
8
|
+
}>;
|
9
|
+
declare const CsvDownloadAllTablesDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
10
|
+
password: z.ZodString;
|
11
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
12
|
+
password: string;
|
13
|
+
}, {
|
14
|
+
password: string;
|
15
|
+
}>>;
|
16
|
+
export declare class CsvDownloadAllTablesDto extends CsvDownloadAllTablesDto_base {
|
17
|
+
}
|
18
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CsvDownloadAllTablesDto = exports.csvDownloadAllTablesSchema = void 0;
|
4
|
+
const translate_1 = require("../../i18n/translate");
|
5
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
+
const zod_1 = require("zod");
|
7
|
+
exports.csvDownloadAllTablesSchema = zod_1.z.object({
|
8
|
+
password: zod_1.z
|
9
|
+
.string({
|
10
|
+
required_error: (0, translate_1.translate)('model.csv.password.required'),
|
11
|
+
})
|
12
|
+
.min(1, (0, translate_1.translate)('model.csv.password.empty')),
|
13
|
+
});
|
14
|
+
class CsvDownloadAllTablesDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.csvDownloadAllTablesSchema) {
|
15
|
+
}
|
16
|
+
exports.CsvDownloadAllTablesDto = CsvDownloadAllTablesDto;
|
17
|
+
//# sourceMappingURL=downloadAllTables.dto.js.map
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const downloadModelosSchema: z.ZodObject<{
|
3
|
+
password: z.ZodString;
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
5
|
+
password: string;
|
6
|
+
}, {
|
7
|
+
password: string;
|
8
|
+
}>;
|
9
|
+
declare const DownloadModelosDto_base: import("@anatine/zod-nestjs").ZodDtoStatic<z.ZodObject<{
|
10
|
+
password: z.ZodString;
|
11
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
12
|
+
password: string;
|
13
|
+
}, {
|
14
|
+
password: string;
|
15
|
+
}>>;
|
16
|
+
export declare class DownloadModelosDto extends DownloadModelosDto_base {
|
17
|
+
}
|
18
|
+
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DownloadModelosDto = exports.downloadModelosSchema = void 0;
|
4
|
+
const translate_1 = require("../../i18n/translate");
|
5
|
+
const create_zod_dto_without_date_1 = require("../../shared/dto-modification/create-zod-dto-without-date");
|
6
|
+
const zod_1 = require("zod");
|
7
|
+
exports.downloadModelosSchema = zod_1.z.object({
|
8
|
+
password: zod_1.z
|
9
|
+
.string({ required_error: (0, translate_1.translate)('model.csv.password.required') })
|
10
|
+
.min(1, (0, translate_1.translate)('model.csv.password.empty')),
|
11
|
+
});
|
12
|
+
class DownloadModelosDto extends (0, create_zod_dto_without_date_1.createZodDtoWithoutDate)(exports.downloadModelosSchema) {
|
13
|
+
}
|
14
|
+
exports.DownloadModelosDto = DownloadModelosDto;
|
15
|
+
//# sourceMappingURL=downloadModelos.dto.js.map
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./dto/csv.dto"), exports);
|
18
|
+
__exportStar(require("./dto/downloadAllTables.dto"), exports);
|
19
|
+
__exportStar(require("./dto/downloadModelos.dto"), exports);
|
20
|
+
//# sourceMappingURL=exports.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.
|
3
|
+
"version": "0.15.0-EXPO-244-EB-CSV.4",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
@@ -50,8 +50,11 @@
|
|
50
50
|
"class-validator": "^0.14.1",
|
51
51
|
"country-state-city": "^3.2.1",
|
52
52
|
"date-fns": "^4.1.0",
|
53
|
+
"exceljs": "^4.4.0",
|
54
|
+
"fast-csv": "^5.0.2",
|
53
55
|
"i18n-js": "^4.4.3",
|
54
56
|
"json-to-pretty-yaml": "^1.2.2",
|
57
|
+
"jszip": "^3.10.1",
|
55
58
|
"openapi3-ts": "^4.4.0",
|
56
59
|
"patch-package": "^8.0.0",
|
57
60
|
"reflect-metadata": "^0.2.0",
|
File without changes
|