@solidstarters/solid-core 1.2.73 → 1.2.75
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.
- package/dist/controllers/export-template.controller.d.ts +36 -0
- package/dist/controllers/export-template.controller.d.ts.map +1 -0
- package/dist/controllers/export-template.controller.js +182 -0
- package/dist/controllers/export-template.controller.js.map +1 -0
- package/dist/controllers/export-transaction.controller.d.ts +33 -0
- package/dist/controllers/export-transaction.controller.d.ts.map +1 -0
- package/dist/controllers/export-transaction.controller.js +150 -0
- package/dist/controllers/export-transaction.controller.js.map +1 -0
- package/dist/dtos/create-export-template.dto.d.ts +9 -0
- package/dist/dtos/create-export-template.dto.d.ts.map +1 -0
- package/dist/dtos/create-export-template.dto.js +55 -0
- package/dist/dtos/create-export-template.dto.js.map +1 -0
- package/dist/dtos/create-export-transaction.dto.d.ts +9 -0
- package/dist/dtos/create-export-transaction.dto.d.ts.map +1 -0
- package/dist/dtos/create-export-transaction.dto.js +50 -0
- package/dist/dtos/create-export-transaction.dto.js.map +1 -0
- package/dist/dtos/update-export-template.dto.d.ts +10 -0
- package/dist/dtos/update-export-template.dto.d.ts.map +1 -0
- package/dist/dtos/update-export-template.dto.js +62 -0
- package/dist/dtos/update-export-template.dto.js.map +1 -0
- package/dist/dtos/update-export-transaction.dto.d.ts +9 -0
- package/dist/dtos/update-export-transaction.dto.d.ts.map +1 -0
- package/dist/dtos/update-export-transaction.dto.js +53 -0
- package/dist/dtos/update-export-transaction.dto.js.map +1 -0
- package/dist/entities/export-template.entity.d.ts +10 -0
- package/dist/entities/export-template.entity.d.ts.map +1 -0
- package/dist/entities/export-template.entity.js +53 -0
- package/dist/entities/export-template.entity.js.map +1 -0
- package/dist/entities/export-transaction.entity.d.ts +10 -0
- package/dist/entities/export-transaction.entity.d.ts.map +1 -0
- package/dist/entities/export-transaction.entity.js +51 -0
- package/dist/entities/export-transaction.entity.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +2 -0
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +183 -1
- package/dist/services/csv.service.d.ts +6 -0
- package/dist/services/csv.service.d.ts.map +1 -0
- package/dist/services/csv.service.js +48 -0
- package/dist/services/csv.service.js.map +1 -0
- package/dist/services/excel.service.d.ts +6 -0
- package/dist/services/excel.service.d.ts.map +1 -0
- package/dist/services/excel.service.js +90 -0
- package/dist/services/excel.service.js.map +1 -0
- package/dist/services/export-template.service.d.ts +27 -0
- package/dist/services/export-template.service.d.ts.map +1 -0
- package/dist/services/export-template.service.js +79 -0
- package/dist/services/export-template.service.js.map +1 -0
- package/dist/services/export-transaction.service.d.ts +50 -0
- package/dist/services/export-transaction.service.d.ts.map +1 -0
- package/dist/services/export-transaction.service.js +191 -0
- package/dist/services/export-transaction.service.js.map +1 -0
- package/dist/services/file.service.d.ts +3 -0
- package/dist/services/file.service.d.ts.map +1 -1
- package/dist/services/file.service.js +18 -2
- package/dist/services/file.service.js.map +1 -1
- package/dist/services/mediaStorageProviders/file-s3-storage-provider.d.ts +4 -2
- package/dist/services/mediaStorageProviders/file-s3-storage-provider.d.ts.map +1 -1
- package/dist/services/mediaStorageProviders/file-s3-storage-provider.js +4 -1
- package/dist/services/mediaStorageProviders/file-s3-storage-provider.js.map +1 -1
- package/dist/services/mediaStorageProviders/file-storage-provider.d.ts +5 -3
- package/dist/services/mediaStorageProviders/file-storage-provider.d.ts.map +1 -1
- package/dist/services/mediaStorageProviders/file-storage-provider.js +23 -3
- package/dist/services/mediaStorageProviders/file-storage-provider.js.map +1 -1
- package/dist/services/solid-introspect.service.d.ts.map +1 -1
- package/dist/services/solid-introspect.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +17 -1
- package/dist/solid-core.module.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -1
- package/src/controllers/export-template.controller.ts +98 -0
- package/src/controllers/export-transaction.controller.ts +76 -0
- package/src/dtos/create-export-template.dto.ts +27 -0
- package/src/dtos/create-export-transaction.dto.ts +26 -0
- package/src/dtos/update-export-template.dto.ts +33 -0
- package/src/dtos/update-export-transaction.dto.ts +28 -0
- package/src/entities/export-template.entity.ts +20 -0
- package/src/entities/export-transaction.entity.ts +22 -0
- package/src/index.ts +2 -0
- package/src/interfaces.ts +2 -0
- package/src/seeders/seed-data/solid-core-metadata.json +183 -1
- package/src/services/csv.service.ts +41 -0
- package/src/services/excel.service.ts +105 -0
- package/src/services/export-template.service.ts +71 -0
- package/src/services/export-transaction.service.ts +208 -0
- package/src/services/export_issues.txt +6 -0
- package/src/services/file.service.ts +26 -1
- package/src/services/mediaStorageProviders/file-s3-storage-provider.ts +9 -6
- package/src/services/mediaStorageProviders/file-storage-provider.ts +29 -7
- package/src/services/solid-introspect.service.ts +1 -0
- package/src/solid-core.module.ts +18 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ExportTemplateService } from '../services/export-template.service';
|
|
2
|
+
import { CreateExportTemplateDto } from '../dtos/create-export-template.dto';
|
|
3
|
+
import { UpdateExportTemplateDto } from '../dtos/update-export-template.dto';
|
|
4
|
+
import { Response } from 'express';
|
|
5
|
+
export declare class ExportTemplateController {
|
|
6
|
+
private readonly service;
|
|
7
|
+
constructor(service: ExportTemplateService);
|
|
8
|
+
create(createDto: CreateExportTemplateDto, files: Array<Express.Multer.File>): Promise<import("..").ExportTemplate>;
|
|
9
|
+
insertMany(createDtos: CreateExportTemplateDto[], filesArray?: Express.Multer.File[][]): Promise<import("..").ExportTemplate[]>;
|
|
10
|
+
update(id: number, updateDto: UpdateExportTemplateDto, files: Array<Express.Multer.File>): Promise<import("..").ExportTemplate>;
|
|
11
|
+
partialUpdate(id: number, updateDto: UpdateExportTemplateDto, files: Array<Express.Multer.File>): Promise<import("..").ExportTemplate>;
|
|
12
|
+
findMany(query: any): Promise<{
|
|
13
|
+
groupMeta: any[];
|
|
14
|
+
groupRecords: any[];
|
|
15
|
+
meta?: undefined;
|
|
16
|
+
records?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
meta: {
|
|
19
|
+
totalRecords: number;
|
|
20
|
+
currentPage: number;
|
|
21
|
+
nextPage: number;
|
|
22
|
+
prevPage: number;
|
|
23
|
+
totalPages: number;
|
|
24
|
+
perPage: number;
|
|
25
|
+
};
|
|
26
|
+
records: import("..").ExportTemplate[];
|
|
27
|
+
groupMeta?: undefined;
|
|
28
|
+
groupRecords?: undefined;
|
|
29
|
+
}>;
|
|
30
|
+
findOne(id: string, query: any): Promise<import("..").ExportTemplate>;
|
|
31
|
+
deleteMany(ids: number[]): Promise<any>;
|
|
32
|
+
delete(id: number): Promise<import("..").ExportTemplate>;
|
|
33
|
+
startExportSync(id: number, res: Response): Promise<void>;
|
|
34
|
+
startExportAsync(id: number): Promise<import("..").ExportTransaction>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=export-template.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-template.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/export-template.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,qBAEa,wBAAwB;IACvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,qBAAqB;IAK3D,MAAM,CAAS,SAAS,EAAE,uBAAuB,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOrG,UAAU,CAAS,UAAU,EAAE,uBAAuB,EAAE,EAAmB,UAAU,GAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,EAAO;IAQnH,MAAM,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,uBAAuB,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAO9H,aAAa,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,uBAAuB,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAgB/H,QAAQ,CAAU,KAAK,EAAE,GAAG;;;;;;;;;;;;;;;;;;IAM5B,OAAO,CAAc,EAAE,EAAE,MAAM,EAAW,KAAK,EAAE,GAAG;IAKpD,UAAU,CAAS,GAAG,EAAE,MAAM,EAAE;IAMhC,MAAM,CAAc,EAAE,EAAE,MAAM;IAM9B,eAAe,CAAc,EAAE,EAAE,MAAM,EAAS,GAAG,EAAE,QAAQ;IAgB7D,gBAAgB,CAAc,EAAE,EAAE,MAAM;CAI/C"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ExportTemplateController = void 0;
|
|
16
|
+
const openapi = require("@nestjs/swagger");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const platform_express_1 = require("@nestjs/platform-express");
|
|
19
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
20
|
+
const export_template_service_1 = require("../services/export-template.service");
|
|
21
|
+
const create_export_template_dto_1 = require("../dtos/create-export-template.dto");
|
|
22
|
+
const update_export_template_dto_1 = require("../dtos/update-export-template.dto");
|
|
23
|
+
let ExportTemplateController = class ExportTemplateController {
|
|
24
|
+
constructor(service) {
|
|
25
|
+
this.service = service;
|
|
26
|
+
}
|
|
27
|
+
create(createDto, files) {
|
|
28
|
+
return this.service.create(createDto, files);
|
|
29
|
+
}
|
|
30
|
+
insertMany(createDtos, filesArray = []) {
|
|
31
|
+
return this.service.insertMany(createDtos, filesArray);
|
|
32
|
+
}
|
|
33
|
+
update(id, updateDto, files) {
|
|
34
|
+
return this.service.update(id, updateDto, files);
|
|
35
|
+
}
|
|
36
|
+
partialUpdate(id, updateDto, files) {
|
|
37
|
+
return this.service.update(id, updateDto, files, true);
|
|
38
|
+
}
|
|
39
|
+
async findMany(query) {
|
|
40
|
+
return this.service.find(query);
|
|
41
|
+
}
|
|
42
|
+
async findOne(id, query) {
|
|
43
|
+
return this.service.findOne(+id, query);
|
|
44
|
+
}
|
|
45
|
+
async deleteMany(ids) {
|
|
46
|
+
return this.service.deleteMany(ids);
|
|
47
|
+
}
|
|
48
|
+
async delete(id) {
|
|
49
|
+
return this.service.delete(id);
|
|
50
|
+
}
|
|
51
|
+
async startExportSync(id, res) {
|
|
52
|
+
const exportFileInfo = await this.service.startExportSync(+id);
|
|
53
|
+
if (exportFileInfo.exportStream === null) {
|
|
54
|
+
throw new common_1.InternalServerErrorException("Export stream is null");
|
|
55
|
+
}
|
|
56
|
+
res.setHeader('Content-Disposition', `attachment; filename="${exportFileInfo.fileName}"`);
|
|
57
|
+
res.setHeader('Content-Type', exportFileInfo.mimeType);
|
|
58
|
+
res.setHeader('Access-Control-Expose-Headers', 'Content-Disposition, Content-Type');
|
|
59
|
+
exportFileInfo.exportStream.pipe(res);
|
|
60
|
+
}
|
|
61
|
+
async startExportAsync(id) {
|
|
62
|
+
return this.service.startExportAsync(+id);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.ExportTemplateController = ExportTemplateController;
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
68
|
+
(0, common_1.Post)(),
|
|
69
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
70
|
+
openapi.ApiResponse({ status: 201, type: require("../entities/export-template.entity").ExportTemplate }),
|
|
71
|
+
__param(0, (0, common_1.Body)()),
|
|
72
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
73
|
+
__metadata("design:type", Function),
|
|
74
|
+
__metadata("design:paramtypes", [create_export_template_dto_1.CreateExportTemplateDto, Array]),
|
|
75
|
+
__metadata("design:returntype", void 0)
|
|
76
|
+
], ExportTemplateController.prototype, "create", null);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
79
|
+
(0, common_1.Post)('/bulk'),
|
|
80
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
81
|
+
openapi.ApiResponse({ status: 201, type: [require("../entities/export-template.entity").ExportTemplate] }),
|
|
82
|
+
__param(0, (0, common_1.Body)()),
|
|
83
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
84
|
+
__metadata("design:type", Function),
|
|
85
|
+
__metadata("design:paramtypes", [Array, Array]),
|
|
86
|
+
__metadata("design:returntype", void 0)
|
|
87
|
+
], ExportTemplateController.prototype, "insertMany", null);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
90
|
+
(0, common_1.Put)(':id'),
|
|
91
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
92
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/export-template.entity").ExportTemplate }),
|
|
93
|
+
__param(0, (0, common_1.Param)('id')),
|
|
94
|
+
__param(1, (0, common_1.Body)()),
|
|
95
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
96
|
+
__metadata("design:type", Function),
|
|
97
|
+
__metadata("design:paramtypes", [Number, update_export_template_dto_1.UpdateExportTemplateDto, Array]),
|
|
98
|
+
__metadata("design:returntype", void 0)
|
|
99
|
+
], ExportTemplateController.prototype, "update", null);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
102
|
+
(0, common_1.Patch)(':id'),
|
|
103
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
104
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/export-template.entity").ExportTemplate }),
|
|
105
|
+
__param(0, (0, common_1.Param)('id')),
|
|
106
|
+
__param(1, (0, common_1.Body)()),
|
|
107
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
108
|
+
__metadata("design:type", Function),
|
|
109
|
+
__metadata("design:paramtypes", [Number, update_export_template_dto_1.UpdateExportTemplateDto, Array]),
|
|
110
|
+
__metadata("design:returntype", void 0)
|
|
111
|
+
], ExportTemplateController.prototype, "partialUpdate", null);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
114
|
+
(0, swagger_1.ApiQuery)({ name: 'showSoftDeleted', required: false, type: Boolean }),
|
|
115
|
+
(0, swagger_1.ApiQuery)({ name: 'showOnlySoftDeleted', required: false, type: Boolean }),
|
|
116
|
+
(0, swagger_1.ApiQuery)({ name: 'limit', required: false, type: Number }),
|
|
117
|
+
(0, swagger_1.ApiQuery)({ name: 'offset', required: false, type: Number }),
|
|
118
|
+
(0, swagger_1.ApiQuery)({ name: 'fields', required: false, type: Array }),
|
|
119
|
+
(0, swagger_1.ApiQuery)({ name: 'sort', required: false, type: Array }),
|
|
120
|
+
(0, swagger_1.ApiQuery)({ name: 'groupBy', required: false, type: Array }),
|
|
121
|
+
(0, swagger_1.ApiQuery)({ name: 'populate', required: false, type: Array }),
|
|
122
|
+
(0, swagger_1.ApiQuery)({ name: 'populateMedia', required: false, type: Array }),
|
|
123
|
+
(0, swagger_1.ApiQuery)({ name: 'filters', required: false, type: Array }),
|
|
124
|
+
(0, common_1.Get)(),
|
|
125
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
126
|
+
__param(0, (0, common_1.Query)()),
|
|
127
|
+
__metadata("design:type", Function),
|
|
128
|
+
__metadata("design:paramtypes", [Object]),
|
|
129
|
+
__metadata("design:returntype", Promise)
|
|
130
|
+
], ExportTemplateController.prototype, "findMany", null);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
133
|
+
(0, common_1.Get)(':id'),
|
|
134
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/export-template.entity").ExportTemplate }),
|
|
135
|
+
__param(0, (0, common_1.Param)('id')),
|
|
136
|
+
__param(1, (0, common_1.Query)()),
|
|
137
|
+
__metadata("design:type", Function),
|
|
138
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
139
|
+
__metadata("design:returntype", Promise)
|
|
140
|
+
], ExportTemplateController.prototype, "findOne", null);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, common_1.Delete)('/bulk'),
|
|
143
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
144
|
+
__param(0, (0, common_1.Body)()),
|
|
145
|
+
__metadata("design:type", Function),
|
|
146
|
+
__metadata("design:paramtypes", [Array]),
|
|
147
|
+
__metadata("design:returntype", Promise)
|
|
148
|
+
], ExportTemplateController.prototype, "deleteMany", null);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
151
|
+
(0, common_1.Delete)(':id'),
|
|
152
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/export-template.entity").ExportTemplate }),
|
|
153
|
+
__param(0, (0, common_1.Param)('id')),
|
|
154
|
+
__metadata("design:type", Function),
|
|
155
|
+
__metadata("design:paramtypes", [Number]),
|
|
156
|
+
__metadata("design:returntype", Promise)
|
|
157
|
+
], ExportTemplateController.prototype, "delete", null);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
160
|
+
(0, common_1.Post)(':id/startExport/sync'),
|
|
161
|
+
openapi.ApiResponse({ status: 201 }),
|
|
162
|
+
__param(0, (0, common_1.Param)('id')),
|
|
163
|
+
__param(1, (0, common_1.Res)()),
|
|
164
|
+
__metadata("design:type", Function),
|
|
165
|
+
__metadata("design:paramtypes", [Number, Object]),
|
|
166
|
+
__metadata("design:returntype", Promise)
|
|
167
|
+
], ExportTemplateController.prototype, "startExportSync", null);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
170
|
+
(0, common_1.Post)(':id/startExport/async'),
|
|
171
|
+
openapi.ApiResponse({ status: 201, type: require("../entities/export-transaction.entity").ExportTransaction }),
|
|
172
|
+
__param(0, (0, common_1.Param)('id')),
|
|
173
|
+
__metadata("design:type", Function),
|
|
174
|
+
__metadata("design:paramtypes", [Number]),
|
|
175
|
+
__metadata("design:returntype", Promise)
|
|
176
|
+
], ExportTemplateController.prototype, "startExportAsync", null);
|
|
177
|
+
exports.ExportTemplateController = ExportTemplateController = __decorate([
|
|
178
|
+
(0, swagger_1.ApiTags)('Solid'),
|
|
179
|
+
(0, common_1.Controller)('export-template'),
|
|
180
|
+
__metadata("design:paramtypes", [export_template_service_1.ExportTemplateService])
|
|
181
|
+
], ExportTemplateController);
|
|
182
|
+
//# sourceMappingURL=export-template.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-template.controller.js","sourceRoot":"","sources":["../../src/controllers/export-template.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAkK;AAClK,+DAA+D;AAC/D,6CAAmE;AACnE,iFAA4E;AAC5E,mFAA6E;AAC7E,mFAA6E;AAKtE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACnC,YAA6B,OAA8B;QAA9B,YAAO,GAAP,OAAO,CAAuB;IAAG,CAAC;IAK/D,MAAM,CAAS,SAAkC,EAAmB,KAAiC;QACnG,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;IAKD,UAAU,CAAS,UAAqC,EAAmB,aAAsC,EAAE;QACjH,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACzD,CAAC;IAMD,MAAM,CAAc,EAAU,EAAU,SAAkC,EAAmB,KAAiC;QAC5H,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;IAKD,aAAa,CAAc,EAAU,EAAU,SAAkC,EAAmB,KAAiC;QACnI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAcK,AAAN,KAAK,CAAC,QAAQ,CAAU,KAAU;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAIK,AAAN,KAAK,CAAC,OAAO,CAAc,EAAU,EAAW,KAAU;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAGK,AAAN,KAAK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ACpB,IAAA,aAAI,EAAC,sBAAsB,CAAC;;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+DAYpD;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,aAAI,EAAC,uBAAuB,CAAC;;IACN,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;gEAElC;mCArFU,wBAAwB;IAFpC,IAAA,iBAAO,EAAC,OAAO,CAAC;IAChB,IAAA,mBAAU,EAAC,iBAAiB,CAAC;qCAEU,+CAAqB;GADhD,wBAAwB,CAuFpC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ExportTransactionService } from '../services/export-transaction.service';
|
|
2
|
+
import { CreateExportTransactionDto } from '../dtos/create-export-transaction.dto';
|
|
3
|
+
import { UpdateExportTransactionDto } from '../dtos/update-export-transaction.dto';
|
|
4
|
+
export declare class ExportTransactionController {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ExportTransactionService);
|
|
7
|
+
create(createDto: CreateExportTransactionDto, files: Array<Express.Multer.File>): Promise<import("..").ExportTransaction>;
|
|
8
|
+
insertMany(createDtos: CreateExportTransactionDto[], filesArray?: Express.Multer.File[][]): Promise<import("..").ExportTransaction[]>;
|
|
9
|
+
update(id: number, updateDto: UpdateExportTransactionDto, files: Array<Express.Multer.File>): Promise<import("..").ExportTransaction>;
|
|
10
|
+
partialUpdate(id: number, updateDto: UpdateExportTransactionDto, files: Array<Express.Multer.File>): Promise<import("..").ExportTransaction>;
|
|
11
|
+
findMany(query: any): Promise<{
|
|
12
|
+
groupMeta: any[];
|
|
13
|
+
groupRecords: any[];
|
|
14
|
+
meta?: undefined;
|
|
15
|
+
records?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
meta: {
|
|
18
|
+
totalRecords: number;
|
|
19
|
+
currentPage: number;
|
|
20
|
+
nextPage: number;
|
|
21
|
+
prevPage: number;
|
|
22
|
+
totalPages: number;
|
|
23
|
+
perPage: number;
|
|
24
|
+
};
|
|
25
|
+
records: import("..").ExportTransaction[];
|
|
26
|
+
groupMeta?: undefined;
|
|
27
|
+
groupRecords?: undefined;
|
|
28
|
+
}>;
|
|
29
|
+
findOne(id: string, query: any): Promise<import("..").ExportTransaction>;
|
|
30
|
+
deleteMany(ids: number[]): Promise<any>;
|
|
31
|
+
delete(id: number): Promise<import("..").ExportTransaction>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=export-transaction.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-transaction.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/export-transaction.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,qBAEa,2BAA2B;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,wBAAwB;IAK9D,MAAM,CAAS,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOxG,UAAU,CAAS,UAAU,EAAE,0BAA0B,EAAE,EAAmB,UAAU,GAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,EAAO;IAQtH,MAAM,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOjI,aAAa,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,0BAA0B,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAgBlI,QAAQ,CAAU,KAAK,EAAE,GAAG;;;;;;;;;;;;;;;;;;IAM5B,OAAO,CAAc,EAAE,EAAE,MAAM,EAAW,KAAK,EAAE,GAAG;IAKpD,UAAU,CAAS,GAAG,EAAE,MAAM,EAAE;IAMhC,MAAM,CAAc,EAAE,EAAE,MAAM;CAKrC"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ExportTransactionController = void 0;
|
|
16
|
+
const openapi = require("@nestjs/swagger");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const platform_express_1 = require("@nestjs/platform-express");
|
|
19
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
20
|
+
const export_transaction_service_1 = require("../services/export-transaction.service");
|
|
21
|
+
const create_export_transaction_dto_1 = require("../dtos/create-export-transaction.dto");
|
|
22
|
+
const update_export_transaction_dto_1 = require("../dtos/update-export-transaction.dto");
|
|
23
|
+
let ExportTransactionController = class ExportTransactionController {
|
|
24
|
+
constructor(service) {
|
|
25
|
+
this.service = service;
|
|
26
|
+
}
|
|
27
|
+
create(createDto, files) {
|
|
28
|
+
return this.service.create(createDto, files);
|
|
29
|
+
}
|
|
30
|
+
insertMany(createDtos, filesArray = []) {
|
|
31
|
+
return this.service.insertMany(createDtos, filesArray);
|
|
32
|
+
}
|
|
33
|
+
update(id, updateDto, files) {
|
|
34
|
+
return this.service.update(id, updateDto, files);
|
|
35
|
+
}
|
|
36
|
+
partialUpdate(id, updateDto, files) {
|
|
37
|
+
return this.service.update(id, updateDto, files, true);
|
|
38
|
+
}
|
|
39
|
+
async findMany(query) {
|
|
40
|
+
return this.service.find(query);
|
|
41
|
+
}
|
|
42
|
+
async findOne(id, query) {
|
|
43
|
+
return this.service.findOne(+id, query);
|
|
44
|
+
}
|
|
45
|
+
async deleteMany(ids) {
|
|
46
|
+
return this.service.deleteMany(ids);
|
|
47
|
+
}
|
|
48
|
+
async delete(id) {
|
|
49
|
+
return this.service.delete(id);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.ExportTransactionController = ExportTransactionController;
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
55
|
+
(0, common_1.Post)(),
|
|
56
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
57
|
+
openapi.ApiResponse({ status: 201, type: require("../entities/export-transaction.entity").ExportTransaction }),
|
|
58
|
+
__param(0, (0, common_1.Body)()),
|
|
59
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
60
|
+
__metadata("design:type", Function),
|
|
61
|
+
__metadata("design:paramtypes", [create_export_transaction_dto_1.CreateExportTransactionDto, Array]),
|
|
62
|
+
__metadata("design:returntype", void 0)
|
|
63
|
+
], ExportTransactionController.prototype, "create", null);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
66
|
+
(0, common_1.Post)('/bulk'),
|
|
67
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
68
|
+
openapi.ApiResponse({ status: 201, type: [require("../entities/export-transaction.entity").ExportTransaction] }),
|
|
69
|
+
__param(0, (0, common_1.Body)()),
|
|
70
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", [Array, Array]),
|
|
73
|
+
__metadata("design:returntype", void 0)
|
|
74
|
+
], ExportTransactionController.prototype, "insertMany", null);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
77
|
+
(0, common_1.Put)(':id'),
|
|
78
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
79
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/export-transaction.entity").ExportTransaction }),
|
|
80
|
+
__param(0, (0, common_1.Param)('id')),
|
|
81
|
+
__param(1, (0, common_1.Body)()),
|
|
82
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
83
|
+
__metadata("design:type", Function),
|
|
84
|
+
__metadata("design:paramtypes", [Number, update_export_transaction_dto_1.UpdateExportTransactionDto, Array]),
|
|
85
|
+
__metadata("design:returntype", void 0)
|
|
86
|
+
], ExportTransactionController.prototype, "update", null);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
89
|
+
(0, common_1.Patch)(':id'),
|
|
90
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
91
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/export-transaction.entity").ExportTransaction }),
|
|
92
|
+
__param(0, (0, common_1.Param)('id')),
|
|
93
|
+
__param(1, (0, common_1.Body)()),
|
|
94
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
95
|
+
__metadata("design:type", Function),
|
|
96
|
+
__metadata("design:paramtypes", [Number, update_export_transaction_dto_1.UpdateExportTransactionDto, Array]),
|
|
97
|
+
__metadata("design:returntype", void 0)
|
|
98
|
+
], ExportTransactionController.prototype, "partialUpdate", null);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
101
|
+
(0, swagger_1.ApiQuery)({ name: 'showSoftDeleted', required: false, type: Boolean }),
|
|
102
|
+
(0, swagger_1.ApiQuery)({ name: 'showOnlySoftDeleted', required: false, type: Boolean }),
|
|
103
|
+
(0, swagger_1.ApiQuery)({ name: 'limit', required: false, type: Number }),
|
|
104
|
+
(0, swagger_1.ApiQuery)({ name: 'offset', required: false, type: Number }),
|
|
105
|
+
(0, swagger_1.ApiQuery)({ name: 'fields', required: false, type: Array }),
|
|
106
|
+
(0, swagger_1.ApiQuery)({ name: 'sort', required: false, type: Array }),
|
|
107
|
+
(0, swagger_1.ApiQuery)({ name: 'groupBy', required: false, type: Array }),
|
|
108
|
+
(0, swagger_1.ApiQuery)({ name: 'populate', required: false, type: Array }),
|
|
109
|
+
(0, swagger_1.ApiQuery)({ name: 'populateMedia', required: false, type: Array }),
|
|
110
|
+
(0, swagger_1.ApiQuery)({ name: 'filters', required: false, type: Array }),
|
|
111
|
+
(0, common_1.Get)(),
|
|
112
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
113
|
+
__param(0, (0, common_1.Query)()),
|
|
114
|
+
__metadata("design:type", Function),
|
|
115
|
+
__metadata("design:paramtypes", [Object]),
|
|
116
|
+
__metadata("design:returntype", Promise)
|
|
117
|
+
], ExportTransactionController.prototype, "findMany", null);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
120
|
+
(0, common_1.Get)(':id'),
|
|
121
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/export-transaction.entity").ExportTransaction }),
|
|
122
|
+
__param(0, (0, common_1.Param)('id')),
|
|
123
|
+
__param(1, (0, common_1.Query)()),
|
|
124
|
+
__metadata("design:type", Function),
|
|
125
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
126
|
+
__metadata("design:returntype", Promise)
|
|
127
|
+
], ExportTransactionController.prototype, "findOne", null);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, common_1.Delete)('/bulk'),
|
|
130
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
131
|
+
__param(0, (0, common_1.Body)()),
|
|
132
|
+
__metadata("design:type", Function),
|
|
133
|
+
__metadata("design:paramtypes", [Array]),
|
|
134
|
+
__metadata("design:returntype", Promise)
|
|
135
|
+
], ExportTransactionController.prototype, "deleteMany", null);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
138
|
+
(0, common_1.Delete)(':id'),
|
|
139
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/export-transaction.entity").ExportTransaction }),
|
|
140
|
+
__param(0, (0, common_1.Param)('id')),
|
|
141
|
+
__metadata("design:type", Function),
|
|
142
|
+
__metadata("design:paramtypes", [Number]),
|
|
143
|
+
__metadata("design:returntype", Promise)
|
|
144
|
+
], ExportTransactionController.prototype, "delete", null);
|
|
145
|
+
exports.ExportTransactionController = ExportTransactionController = __decorate([
|
|
146
|
+
(0, swagger_1.ApiTags)('Solid'),
|
|
147
|
+
(0, common_1.Controller)('export-transaction'),
|
|
148
|
+
__metadata("design:paramtypes", [export_transaction_service_1.ExportTransactionService])
|
|
149
|
+
], ExportTransactionController);
|
|
150
|
+
//# sourceMappingURL=export-transaction.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-transaction.controller.js","sourceRoot":"","sources":["../../src/controllers/export-transaction.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA+H;AAC/H,+DAA+D;AAC/D,6CAAmE;AACnE,uFAAkF;AAClF,yFAAmF;AACnF,yFAAmF;AAI5E,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,YAA6B,OAAiC;QAAjC,YAAO,GAAP,OAAO,CAA0B;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AEvB;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,KAAK,CAAC;;IACA,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;yDAExB;sCA/DU,2BAA2B;IAFvC,IAAA,iBAAO,EAAC,OAAO,CAAC;IAChB,IAAA,mBAAU,EAAC,oBAAoB,CAAC;qCAEO,qDAAwB;GADnD,2BAA2B,CAkEvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-export-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-export-template.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,uBAAuB;IAGpC,YAAY,EAAE,MAAM,CAAC;IAIrB,cAAc,EAAE,MAAM,CAAC;IAIvB,aAAa,EAAE,OAAO,CAAQ;IAI9B,MAAM,EAAE,GAAG,CAAC;IAIZ,eAAe,EAAE,MAAM,CAAC;IAIxB,oBAAoB,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateExportTemplateDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const class_validator_2 = require("class-validator");
|
|
16
|
+
class CreateExportTemplateDto {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.notifyOnEmail = true;
|
|
19
|
+
}
|
|
20
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
21
|
+
return { templateName: { required: true, type: () => String }, templateFormat: { required: true, type: () => String }, notifyOnEmail: { required: true, type: () => Boolean, default: true }, fields: { required: true, type: () => Object }, modelMetadataId: { required: true, type: () => Number }, modelMetadataUserKey: { required: true, type: () => String } };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.CreateExportTemplateDto = CreateExportTemplateDto;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateExportTemplateDto.prototype, "templateName", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateExportTemplateDto.prototype, "templateFormat", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_2.IsOptional)(),
|
|
37
|
+
(0, class_validator_2.IsBoolean)(),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], CreateExportTemplateDto.prototype, "notifyOnEmail", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
42
|
+
(0, class_validator_2.IsJSON)(),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], CreateExportTemplateDto.prototype, "fields", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_2.IsOptional)(),
|
|
47
|
+
(0, class_validator_2.IsInt)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], CreateExportTemplateDto.prototype, "modelMetadataId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
(0, class_validator_2.IsOptional)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], CreateExportTemplateDto.prototype, "modelMetadataUserKey", void 0);
|
|
55
|
+
//# sourceMappingURL=create-export-template.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-export-template.dto.js","sourceRoot":"","sources":["../../src/dtos/create-export-template.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA2C;AAC3C,qDAAmF;AACnF,MAAa,uBAAuB;IAApC;QAWA,kBAAa,GAAY,IAAI,CAAC;KAa7B;;8LAbwB,IAAI;;CAa5B;AAxBD,0DAwBC;AArBD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;8DACkB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACG;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;gEACgB;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACgB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class CreateExportTransactionDto {
|
|
2
|
+
constructor(data: Partial<CreateExportTransactionDto>);
|
|
3
|
+
datetime: Date;
|
|
4
|
+
status: string;
|
|
5
|
+
error: string;
|
|
6
|
+
exportTemplateId: number;
|
|
7
|
+
exportTemplateUserKey: string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=create-export-transaction.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-export-transaction.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-export-transaction.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,0BAA0B;gBAC3B,IAAI,EAAE,OAAO,CAAC,0BAA0B,CAAC;IAKrD,QAAQ,EAAE,IAAI,CAAC;IAIf,MAAM,EAAE,MAAM,CAAC;IAIf,KAAK,EAAE,MAAM,CAAC;IAId,gBAAgB,EAAE,MAAM,CAAC;IAIzB,qBAAqB,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateExportTransactionDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const class_validator_2 = require("class-validator");
|
|
16
|
+
class CreateExportTransactionDto {
|
|
17
|
+
constructor(data) {
|
|
18
|
+
Object.assign(this, data);
|
|
19
|
+
}
|
|
20
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
21
|
+
return { datetime: { required: true, type: () => Date }, status: { required: true, type: () => String }, error: { required: true, type: () => String }, exportTemplateId: { required: true, type: () => Number }, exportTemplateUserKey: { required: true, type: () => String } };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.CreateExportTransactionDto = CreateExportTransactionDto;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.IsDate)(),
|
|
28
|
+
__metadata("design:type", Date)
|
|
29
|
+
], CreateExportTransactionDto.prototype, "datetime", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
32
|
+
(0, class_validator_2.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateExportTransactionDto.prototype, "status", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_2.IsOptional)(),
|
|
37
|
+
(0, class_validator_2.IsString)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateExportTransactionDto.prototype, "error", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_2.IsOptional)(),
|
|
42
|
+
(0, class_validator_2.IsInt)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], CreateExportTransactionDto.prototype, "exportTemplateId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_2.IsString)(),
|
|
47
|
+
(0, class_validator_2.IsOptional)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CreateExportTransactionDto.prototype, "exportTemplateUserKey", void 0);
|
|
50
|
+
//# sourceMappingURL=create-export-transaction.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-export-transaction.dto.js","sourceRoot":"","sources":["../../src/dtos/create-export-transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAyC;AACzC,qDAA0E;AAC1E,MAAa,0BAA0B;IACvC,YAAY,IAAyC;QACjD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;;;;CAoBA;AAvBD,gEAuBC;AAjBD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACC,IAAI;4DAAC;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;oEACiB;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yEACiB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class UpdateExportTemplateDto {
|
|
2
|
+
id: number;
|
|
3
|
+
templateName: string;
|
|
4
|
+
templateFormat: string;
|
|
5
|
+
notifyOnEmail: boolean;
|
|
6
|
+
fields: any;
|
|
7
|
+
modelMetadataId: number;
|
|
8
|
+
modelMetadataUserKey: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=update-export-template.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-export-template.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-export-template.dto.ts"],"names":[],"mappings":"AACA,qBAAa,uBAAuB;IAGhC,EAAE,EAAE,MAAM,CAAC;IAKf,YAAY,EAAE,MAAM,CAAC;IAKrB,cAAc,EAAE,MAAM,CAAC;IAIvB,aAAa,EAAE,OAAO,CAAQ;IAK9B,MAAM,EAAE,GAAG,CAAC;IAIZ,eAAe,EAAE,MAAM,CAAC;IAIxB,oBAAoB,EAAE,MAAM,CAAC;CAC5B"}
|