@solidstarters/solid-core 1.2.88 → 1.2.90
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 +3 -2
- package/dist/controllers/export-template.controller.d.ts.map +1 -1
- package/dist/controllers/export-template.controller.js +23 -10
- package/dist/controllers/export-template.controller.js.map +1 -1
- package/dist/controllers/import-transaction-error-log.controller.d.ts +41 -0
- package/dist/controllers/import-transaction-error-log.controller.d.ts.map +1 -0
- package/dist/controllers/import-transaction-error-log.controller.js +179 -0
- package/dist/controllers/import-transaction-error-log.controller.js.map +1 -0
- package/dist/controllers/import-transaction.controller.d.ts +46 -0
- package/dist/controllers/import-transaction.controller.d.ts.map +1 -0
- package/dist/controllers/import-transaction.controller.js +236 -0
- package/dist/controllers/import-transaction.controller.js.map +1 -0
- package/dist/dtos/create-import-transaction-error-log.dto.d.ts +10 -0
- package/dist/dtos/create-import-transaction-error-log.dto.d.ts.map +1 -0
- package/dist/dtos/create-import-transaction-error-log.dto.js +65 -0
- package/dist/dtos/create-import-transaction-error-log.dto.js.map +1 -0
- package/dist/dtos/create-import-transaction.dto.d.ts +14 -0
- package/dist/dtos/create-import-transaction.dto.d.ts.map +1 -0
- package/dist/dtos/create-import-transaction.dto.js +90 -0
- package/dist/dtos/create-import-transaction.dto.js.map +1 -0
- package/dist/dtos/export.dto.d.ts +5 -0
- package/dist/dtos/export.dto.d.ts.map +1 -0
- package/dist/dtos/export.dto.js +12 -0
- package/dist/dtos/export.dto.js.map +1 -0
- package/dist/dtos/import-instructions.dto.d.ts +19 -0
- package/dist/dtos/import-instructions.dto.d.ts.map +1 -0
- package/dist/dtos/import-instructions.dto.js +110 -0
- package/dist/dtos/import-instructions.dto.js.map +1 -0
- package/dist/dtos/update-import-transaction-error-log.dto.d.ts +11 -0
- package/dist/dtos/update-import-transaction-error-log.dto.d.ts.map +1 -0
- package/dist/dtos/update-import-transaction-error-log.dto.js +72 -0
- package/dist/dtos/update-import-transaction-error-log.dto.js.map +1 -0
- package/dist/dtos/update-import-transaction.dto.d.ts +15 -0
- package/dist/dtos/update-import-transaction.dto.d.ts.map +1 -0
- package/dist/dtos/update-import-transaction.dto.js +91 -0
- package/dist/dtos/update-import-transaction.dto.js.map +1 -0
- package/dist/entities/export-transaction.entity.js +1 -1
- package/dist/entities/export-transaction.entity.js.map +1 -1
- package/dist/entities/import-transaction-error-log.entity.d.ts +11 -0
- package/dist/entities/import-transaction-error-log.entity.d.ts.map +1 -0
- package/dist/entities/import-transaction-error-log.entity.js +53 -0
- package/dist/entities/import-transaction-error-log.entity.js.map +1 -0
- package/dist/entities/import-transaction.entity.d.ts +11 -0
- package/dist/entities/import-transaction.entity.d.ts.map +1 -0
- package/dist/entities/import-transaction.entity.js +55 -0
- package/dist/entities/import-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/seeders/seed-data/solid-core-metadata.json +317 -1
- package/dist/services/csv.service.d.ts +11 -1
- package/dist/services/csv.service.d.ts.map +1 -1
- package/dist/services/csv.service.js +72 -5
- package/dist/services/csv.service.js.map +1 -1
- package/dist/services/excel.service.d.ts +11 -1
- package/dist/services/excel.service.d.ts.map +1 -1
- package/dist/services/excel.service.js +68 -10
- package/dist/services/excel.service.js.map +1 -1
- package/dist/services/export-template.service.d.ts +3 -2
- package/dist/services/export-template.service.d.ts.map +1 -1
- package/dist/services/export-template.service.js +6 -6
- package/dist/services/export-template.service.js.map +1 -1
- package/dist/services/export-transaction.service.d.ts +6 -3
- package/dist/services/export-transaction.service.d.ts.map +1 -1
- package/dist/services/export-transaction.service.js +101 -22
- package/dist/services/export-transaction.service.js.map +1 -1
- package/dist/services/import-transaction-error-log.service.d.ts +22 -0
- package/dist/services/import-transaction-error-log.service.d.ts.map +1 -0
- package/dist/services/import-transaction-error-log.service.js +56 -0
- package/dist/services/import-transaction-error-log.service.js.map +1 -0
- package/dist/services/import-transaction.service.d.ts +64 -0
- package/dist/services/import-transaction.service.d.ts.map +1 -0
- package/dist/services/import-transaction.service.js +231 -0
- package/dist/services/import-transaction.service.js.map +1 -0
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +13 -1
- package/dist/solid-core.module.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/controllers/export-template.controller.ts +20 -7
- package/src/controllers/import-transaction-error-log.controller.ts +93 -0
- package/src/controllers/import-transaction.controller.ts +128 -0
- package/src/dtos/create-import-transaction-error-log.dto.ts +34 -0
- package/src/dtos/create-import-transaction.dto.ts +50 -0
- package/src/dtos/export.dto.ts +5 -0
- package/src/dtos/import-instructions.dto.ts +66 -0
- package/src/dtos/update-import-transaction-error-log.dto.ts +39 -0
- package/src/dtos/update-import-transaction.dto.ts +52 -0
- package/src/entities/export-transaction.entity.ts +1 -1
- package/src/entities/import-transaction-error-log.entity.ts +22 -0
- package/src/entities/import-transaction.entity.ts +22 -0
- package/src/index.ts +2 -0
- package/src/seeders/seed-data/solid-core-metadata.json +319 -3
- package/src/services/csv.service.ts +116 -7
- package/src/services/excel.service.ts +109 -64
- package/src/services/export-template.service.ts +7 -6
- package/src/services/export-transaction.service.ts +136 -25
- package/src/services/export_issues.txt +5 -1
- package/src/services/import-transaction-error-log.service.ts +34 -0
- package/src/services/import-transaction.service.ts +281 -0
- package/src/solid-core.module.ts +13 -1
|
@@ -2,6 +2,7 @@ import { ExportTemplateService } from '../services/export-template.service';
|
|
|
2
2
|
import { CreateExportTemplateDto } from '../dtos/create-export-template.dto';
|
|
3
3
|
import { UpdateExportTemplateDto } from '../dtos/update-export-template.dto';
|
|
4
4
|
import { Response } from 'express';
|
|
5
|
+
import { StartExportSyncDto } from 'src/dtos/export.dto';
|
|
5
6
|
export declare class ExportTemplateController {
|
|
6
7
|
private readonly service;
|
|
7
8
|
constructor(service: ExportTemplateService);
|
|
@@ -30,7 +31,7 @@ export declare class ExportTemplateController {
|
|
|
30
31
|
findOne(id: string, query: any): Promise<import("..").ExportTemplate>;
|
|
31
32
|
deleteMany(ids: number[]): Promise<any>;
|
|
32
33
|
delete(id: number): Promise<import("..").ExportTemplate>;
|
|
33
|
-
startExportSync(
|
|
34
|
-
startExportAsync(
|
|
34
|
+
startExportSync(dto: StartExportSyncDto, res: Response): Promise<void>;
|
|
35
|
+
startExportAsync(dto: StartExportSyncDto): Promise<import("..").ExportTransaction>;
|
|
35
36
|
}
|
|
36
37
|
//# sourceMappingURL=export-template.controller.d.ts.map
|
|
@@ -1 +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;
|
|
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;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,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,CAAS,GAAG,EAAE,kBAAkB,EAAS,GAAG,EAAE,QAAQ;IAsBrE,gBAAgB,CAAS,GAAG,EAAE,kBAAkB;CAUvD"}
|
|
@@ -20,6 +20,7 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
20
20
|
const export_template_service_1 = require("../services/export-template.service");
|
|
21
21
|
const create_export_template_dto_1 = require("../dtos/create-export-template.dto");
|
|
22
22
|
const update_export_template_dto_1 = require("../dtos/update-export-template.dto");
|
|
23
|
+
const export_dto_1 = require("../dtos/export.dto");
|
|
23
24
|
let ExportTemplateController = class ExportTemplateController {
|
|
24
25
|
constructor(service) {
|
|
25
26
|
this.service = service;
|
|
@@ -48,8 +49,14 @@ let ExportTemplateController = class ExportTemplateController {
|
|
|
48
49
|
async delete(id) {
|
|
49
50
|
return this.service.delete(id);
|
|
50
51
|
}
|
|
51
|
-
async startExportSync(
|
|
52
|
-
const
|
|
52
|
+
async startExportSync(dto, res) {
|
|
53
|
+
const { filters, ...rest } = dto;
|
|
54
|
+
let updateDto = { ...rest };
|
|
55
|
+
if (updateDto?.templateName) {
|
|
56
|
+
const newTemplate = await this.service.create(updateDto, []);
|
|
57
|
+
updateDto = { ...updateDto, id: newTemplate.id };
|
|
58
|
+
}
|
|
59
|
+
const exportFileInfo = await this.service.startExportSync(updateDto, filters);
|
|
53
60
|
if (exportFileInfo.exportStream === null) {
|
|
54
61
|
throw new common_1.InternalServerErrorException("Export stream is null");
|
|
55
62
|
}
|
|
@@ -58,8 +65,14 @@ let ExportTemplateController = class ExportTemplateController {
|
|
|
58
65
|
res.setHeader('Access-Control-Expose-Headers', 'Content-Disposition, Content-Type');
|
|
59
66
|
exportFileInfo.exportStream.pipe(res);
|
|
60
67
|
}
|
|
61
|
-
async startExportAsync(
|
|
62
|
-
|
|
68
|
+
async startExportAsync(dto) {
|
|
69
|
+
const { filters, ...rest } = dto;
|
|
70
|
+
let updateDto = { ...rest };
|
|
71
|
+
if (updateDto.templateName) {
|
|
72
|
+
const newTemplate = await this.service.create(updateDto, []);
|
|
73
|
+
updateDto = { ...updateDto, id: newTemplate.id };
|
|
74
|
+
}
|
|
75
|
+
return this.service.startExportAsync(updateDto, filters);
|
|
63
76
|
}
|
|
64
77
|
};
|
|
65
78
|
exports.ExportTemplateController = ExportTemplateController;
|
|
@@ -157,21 +170,21 @@ __decorate([
|
|
|
157
170
|
], ExportTemplateController.prototype, "delete", null);
|
|
158
171
|
__decorate([
|
|
159
172
|
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
160
|
-
(0, common_1.Post)('
|
|
173
|
+
(0, common_1.Post)('/startExport/sync'),
|
|
161
174
|
openapi.ApiResponse({ status: 201 }),
|
|
162
|
-
__param(0, (0, common_1.
|
|
175
|
+
__param(0, (0, common_1.Body)()),
|
|
163
176
|
__param(1, (0, common_1.Res)()),
|
|
164
177
|
__metadata("design:type", Function),
|
|
165
|
-
__metadata("design:paramtypes", [
|
|
178
|
+
__metadata("design:paramtypes", [export_dto_1.StartExportSyncDto, Object]),
|
|
166
179
|
__metadata("design:returntype", Promise)
|
|
167
180
|
], ExportTemplateController.prototype, "startExportSync", null);
|
|
168
181
|
__decorate([
|
|
169
182
|
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
170
|
-
(0, common_1.Post)('
|
|
183
|
+
(0, common_1.Post)('/startExport/async'),
|
|
171
184
|
openapi.ApiResponse({ status: 201, type: require("../entities/export-transaction.entity").ExportTransaction }),
|
|
172
|
-
__param(0, (0, common_1.
|
|
185
|
+
__param(0, (0, common_1.Body)()),
|
|
173
186
|
__metadata("design:type", Function),
|
|
174
|
-
__metadata("design:paramtypes", [
|
|
187
|
+
__metadata("design:paramtypes", [export_dto_1.StartExportSyncDto]),
|
|
175
188
|
__metadata("design:returntype", Promise)
|
|
176
189
|
], ExportTemplateController.prototype, "startExportAsync", null);
|
|
177
190
|
exports.ExportTemplateController = ExportTemplateController = __decorate([
|
|
@@ -1 +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;
|
|
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;AAE7E,mDAAyD;AAIlD,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,E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A,aAAI,GAAE,CAAA;;;;0DAEvB;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,KAAK,CAAC;;IACA,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;sDAExB;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,aAAI,EAAC,mBAAmB,CAAC;;IACH,WAAA,IAAA,aAAI,GAAE,CAAA;IAA2B,WAAA,IAAA,YAAG,GAAE,CAAA;;qCAA1B,+BAAkB;;+DAkBpD;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,aAAI,EAAC,oBAAoB,CAAC;;IACH,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,+BAAkB;;gEAQrD;mCAjGU,wBAAwB;IAFpC,IAAA,iBAAO,EAAC,OAAO,CAAC;IAChB,IAAA,mBAAU,EAAC,iBAAiB,CAAC;qCAEU,+CAAqB;GADhD,wBAAwB,CAmGpC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ImportTransactionErrorLogService } from '../services/import-transaction-error-log.service';
|
|
2
|
+
import { CreateImportTransactionErrorLogDto } from '../dtos/create-import-transaction-error-log.dto';
|
|
3
|
+
import { UpdateImportTransactionErrorLogDto } from '../dtos/update-import-transaction-error-log.dto';
|
|
4
|
+
export declare class ImportTransactionErrorLogController {
|
|
5
|
+
private readonly service;
|
|
6
|
+
constructor(service: ImportTransactionErrorLogService);
|
|
7
|
+
create(createDto: CreateImportTransactionErrorLogDto, files: Array<Express.Multer.File>): Promise<import("..").ImportTransactionErrorLog>;
|
|
8
|
+
insertMany(createDtos: CreateImportTransactionErrorLogDto[], filesArray?: Express.Multer.File[][]): Promise<import("..").ImportTransactionErrorLog[]>;
|
|
9
|
+
update(id: number, updateDto: UpdateImportTransactionErrorLogDto, files: Array<Express.Multer.File>): Promise<import("..").ImportTransactionErrorLog>;
|
|
10
|
+
partialUpdate(id: number, updateDto: UpdateImportTransactionErrorLogDto, files: Array<Express.Multer.File>): Promise<import("..").ImportTransactionErrorLog>;
|
|
11
|
+
recoverMany(ids: number[]): Promise<{
|
|
12
|
+
message: string;
|
|
13
|
+
recoveredIds: number[];
|
|
14
|
+
}>;
|
|
15
|
+
recover(id: number): Promise<{
|
|
16
|
+
message: string;
|
|
17
|
+
data: import("..").ImportTransactionErrorLog;
|
|
18
|
+
}>;
|
|
19
|
+
findMany(query: any): Promise<{
|
|
20
|
+
groupMeta: any[];
|
|
21
|
+
groupRecords: any[];
|
|
22
|
+
meta?: undefined;
|
|
23
|
+
records?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
meta: {
|
|
26
|
+
totalRecords: number;
|
|
27
|
+
currentPage: number;
|
|
28
|
+
nextPage: number;
|
|
29
|
+
prevPage: number;
|
|
30
|
+
totalPages: number;
|
|
31
|
+
perPage: number;
|
|
32
|
+
};
|
|
33
|
+
records: import("..").ImportTransactionErrorLog[];
|
|
34
|
+
groupMeta?: undefined;
|
|
35
|
+
groupRecords?: undefined;
|
|
36
|
+
}>;
|
|
37
|
+
findOne(id: string, query: any): Promise<import("..").ImportTransactionErrorLog>;
|
|
38
|
+
deleteMany(ids: number[]): Promise<any>;
|
|
39
|
+
delete(id: number): Promise<import("..").ImportTransactionErrorLog>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=import-transaction-error-log.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-transaction-error-log.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/import-transaction-error-log.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,kCAAkC,EAAE,MAAM,iDAAiD,CAAC;AACrG,OAAO,EAAE,kCAAkC,EAAE,MAAM,iDAAiD,CAAC;AAOrG,qBAEa,mCAAmC;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,gCAAgC;IAKtE,MAAM,CAAS,SAAS,EAAE,kCAAkC,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOhH,UAAU,CAAS,UAAU,EAAE,kCAAkC,EAAE,EAAmB,UAAU,GAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,EAAO;IAQ9H,MAAM,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,kCAAkC,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAOzI,aAAa,CAAc,EAAE,EAAE,MAAM,EAAU,SAAS,EAAE,kCAAkC,EAAmB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAM1I,WAAW,CAAS,GAAG,EAAE,MAAM,EAAE;;;;IAMjC,OAAO,CAAc,EAAE,EAAE,MAAM;;;;IAe/B,QAAQ,CAAU,KAAK,EAAE,GAAG;;;;;;;;;;;;;;;;;;IAM5B,OAAO,CAAc,EAAE,EAAE,MAAM,EAAW,KAAK,EAAE,GAAG;IAMpD,UAAU,CAAS,GAAG,EAAE,MAAM,EAAE;IAMhC,MAAM,CAAc,EAAE,EAAE,MAAM;CAKrC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
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.ImportTransactionErrorLogController = 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 import_transaction_error_log_service_1 = require("../services/import-transaction-error-log.service");
|
|
21
|
+
const create_import_transaction_error_log_dto_1 = require("../dtos/create-import-transaction-error-log.dto");
|
|
22
|
+
const update_import_transaction_error_log_dto_1 = require("../dtos/update-import-transaction-error-log.dto");
|
|
23
|
+
var ShowSoftDeleted;
|
|
24
|
+
(function (ShowSoftDeleted) {
|
|
25
|
+
ShowSoftDeleted["INCLUSIVE"] = "inclusive";
|
|
26
|
+
ShowSoftDeleted["EXCLUSIVE"] = "exclusive";
|
|
27
|
+
})(ShowSoftDeleted || (ShowSoftDeleted = {}));
|
|
28
|
+
let ImportTransactionErrorLogController = class ImportTransactionErrorLogController {
|
|
29
|
+
constructor(service) {
|
|
30
|
+
this.service = service;
|
|
31
|
+
}
|
|
32
|
+
create(createDto, files) {
|
|
33
|
+
return this.service.create(createDto, files);
|
|
34
|
+
}
|
|
35
|
+
insertMany(createDtos, filesArray = []) {
|
|
36
|
+
return this.service.insertMany(createDtos, filesArray);
|
|
37
|
+
}
|
|
38
|
+
update(id, updateDto, files) {
|
|
39
|
+
return this.service.update(id, updateDto, files);
|
|
40
|
+
}
|
|
41
|
+
partialUpdate(id, updateDto, files) {
|
|
42
|
+
return this.service.update(id, updateDto, files, true);
|
|
43
|
+
}
|
|
44
|
+
async recoverMany(ids) {
|
|
45
|
+
return this.service.recoverMany(ids);
|
|
46
|
+
}
|
|
47
|
+
async recover(id) {
|
|
48
|
+
return this.service.recover(id);
|
|
49
|
+
}
|
|
50
|
+
async findMany(query) {
|
|
51
|
+
return this.service.find(query);
|
|
52
|
+
}
|
|
53
|
+
async findOne(id, query) {
|
|
54
|
+
return this.service.findOne(+id, query);
|
|
55
|
+
}
|
|
56
|
+
async deleteMany(ids) {
|
|
57
|
+
return this.service.deleteMany(ids);
|
|
58
|
+
}
|
|
59
|
+
async delete(id) {
|
|
60
|
+
return this.service.delete(id);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
exports.ImportTransactionErrorLogController = ImportTransactionErrorLogController;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
66
|
+
(0, common_1.Post)(),
|
|
67
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
68
|
+
openapi.ApiResponse({ status: 201, type: require("../entities/import-transaction-error-log.entity").ImportTransactionErrorLog }),
|
|
69
|
+
__param(0, (0, common_1.Body)()),
|
|
70
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", [create_import_transaction_error_log_dto_1.CreateImportTransactionErrorLogDto, Array]),
|
|
73
|
+
__metadata("design:returntype", void 0)
|
|
74
|
+
], ImportTransactionErrorLogController.prototype, "create", null);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
77
|
+
(0, common_1.Post)('/bulk'),
|
|
78
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
79
|
+
openapi.ApiResponse({ status: 201, type: [require("../entities/import-transaction-error-log.entity").ImportTransactionErrorLog] }),
|
|
80
|
+
__param(0, (0, common_1.Body)()),
|
|
81
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
82
|
+
__metadata("design:type", Function),
|
|
83
|
+
__metadata("design:paramtypes", [Array, Array]),
|
|
84
|
+
__metadata("design:returntype", void 0)
|
|
85
|
+
], ImportTransactionErrorLogController.prototype, "insertMany", null);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
88
|
+
(0, common_1.Put)(':id'),
|
|
89
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
90
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/import-transaction-error-log.entity").ImportTransactionErrorLog }),
|
|
91
|
+
__param(0, (0, common_1.Param)('id')),
|
|
92
|
+
__param(1, (0, common_1.Body)()),
|
|
93
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
94
|
+
__metadata("design:type", Function),
|
|
95
|
+
__metadata("design:paramtypes", [Number, update_import_transaction_error_log_dto_1.UpdateImportTransactionErrorLogDto, Array]),
|
|
96
|
+
__metadata("design:returntype", void 0)
|
|
97
|
+
], ImportTransactionErrorLogController.prototype, "update", null);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
100
|
+
(0, common_1.Patch)(':id'),
|
|
101
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
102
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/import-transaction-error-log.entity").ImportTransactionErrorLog }),
|
|
103
|
+
__param(0, (0, common_1.Param)('id')),
|
|
104
|
+
__param(1, (0, common_1.Body)()),
|
|
105
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
106
|
+
__metadata("design:type", Function),
|
|
107
|
+
__metadata("design:paramtypes", [Number, update_import_transaction_error_log_dto_1.UpdateImportTransactionErrorLogDto, Array]),
|
|
108
|
+
__metadata("design:returntype", void 0)
|
|
109
|
+
], ImportTransactionErrorLogController.prototype, "partialUpdate", null);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
112
|
+
(0, common_1.Post)('/bulk-recover'),
|
|
113
|
+
openapi.ApiResponse({ status: 201 }),
|
|
114
|
+
__param(0, (0, common_1.Body)()),
|
|
115
|
+
__metadata("design:type", Function),
|
|
116
|
+
__metadata("design:paramtypes", [Array]),
|
|
117
|
+
__metadata("design:returntype", Promise)
|
|
118
|
+
], ImportTransactionErrorLogController.prototype, "recoverMany", null);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
121
|
+
(0, common_1.Get)('/recover/:id'),
|
|
122
|
+
openapi.ApiResponse({ status: 200 }),
|
|
123
|
+
__param(0, (0, common_1.Param)('id')),
|
|
124
|
+
__metadata("design:type", Function),
|
|
125
|
+
__metadata("design:paramtypes", [Number]),
|
|
126
|
+
__metadata("design:returntype", Promise)
|
|
127
|
+
], ImportTransactionErrorLogController.prototype, "recover", null);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
130
|
+
(0, swagger_1.ApiQuery)({ name: 'showSoftDeleted', required: false, enum: ShowSoftDeleted }),
|
|
131
|
+
(0, swagger_1.ApiQuery)({ name: 'limit', required: false, type: Number }),
|
|
132
|
+
(0, swagger_1.ApiQuery)({ name: 'offset', required: false, type: Number }),
|
|
133
|
+
(0, swagger_1.ApiQuery)({ name: 'fields', required: false, type: Array }),
|
|
134
|
+
(0, swagger_1.ApiQuery)({ name: 'sort', required: false, type: Array }),
|
|
135
|
+
(0, swagger_1.ApiQuery)({ name: 'groupBy', required: false, type: Array }),
|
|
136
|
+
(0, swagger_1.ApiQuery)({ name: 'populate', required: false, type: Array }),
|
|
137
|
+
(0, swagger_1.ApiQuery)({ name: 'populateMedia', required: false, type: Array }),
|
|
138
|
+
(0, swagger_1.ApiQuery)({ name: 'filters', required: false, type: Array }),
|
|
139
|
+
(0, common_1.Get)(),
|
|
140
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
141
|
+
__param(0, (0, common_1.Query)()),
|
|
142
|
+
__metadata("design:type", Function),
|
|
143
|
+
__metadata("design:paramtypes", [Object]),
|
|
144
|
+
__metadata("design:returntype", Promise)
|
|
145
|
+
], ImportTransactionErrorLogController.prototype, "findMany", null);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
148
|
+
(0, common_1.Get)(':id'),
|
|
149
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/import-transaction-error-log.entity").ImportTransactionErrorLog }),
|
|
150
|
+
__param(0, (0, common_1.Param)('id')),
|
|
151
|
+
__param(1, (0, common_1.Query)()),
|
|
152
|
+
__metadata("design:type", Function),
|
|
153
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
154
|
+
__metadata("design:returntype", Promise)
|
|
155
|
+
], ImportTransactionErrorLogController.prototype, "findOne", null);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
158
|
+
(0, common_1.Delete)('/bulk'),
|
|
159
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
160
|
+
__param(0, (0, common_1.Body)()),
|
|
161
|
+
__metadata("design:type", Function),
|
|
162
|
+
__metadata("design:paramtypes", [Array]),
|
|
163
|
+
__metadata("design:returntype", Promise)
|
|
164
|
+
], ImportTransactionErrorLogController.prototype, "deleteMany", null);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
167
|
+
(0, common_1.Delete)(':id'),
|
|
168
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/import-transaction-error-log.entity").ImportTransactionErrorLog }),
|
|
169
|
+
__param(0, (0, common_1.Param)('id')),
|
|
170
|
+
__metadata("design:type", Function),
|
|
171
|
+
__metadata("design:paramtypes", [Number]),
|
|
172
|
+
__metadata("design:returntype", Promise)
|
|
173
|
+
], ImportTransactionErrorLogController.prototype, "delete", null);
|
|
174
|
+
exports.ImportTransactionErrorLogController = ImportTransactionErrorLogController = __decorate([
|
|
175
|
+
(0, swagger_1.ApiTags)('Solid Core'),
|
|
176
|
+
(0, common_1.Controller)('import-transaction-error-log'),
|
|
177
|
+
__metadata("design:paramtypes", [import_transaction_error_log_service_1.ImportTransactionErrorLogService])
|
|
178
|
+
], ImportTransactionErrorLogController);
|
|
179
|
+
//# sourceMappingURL=import-transaction-error-log.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-transaction-error-log.controller.js","sourceRoot":"","sources":["../../src/controllers/import-transaction-error-log.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA+H;AAC/H,+DAA+D;AAC/D,6CAAmE;AACnE,2GAAoG;AACpG,6GAAqG;AACrG,6GAAqG;AAErG,IAAK,eAGJ;AAHD,WAAK,eAAe;IAClB,0CAAuB,CAAA;IACvB,0CAAuB,CAAA;AACzB,CAAC,EAHI,eAAe,KAAf,eAAe,QAGnB;AAIM,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IAC9C,YAA6B,OAAyC;QAAzC,YAAO,GAAP,OAAO,CAAkC;IAAG,CAAC;IAK1E,MAAM,CAAS,SAA6C,EAAmB,KAAiC;QAC9G,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;IAKD,UAAU,CAAS,UAAgD,EAAmB,aAAsC,EAAE;QAC5H,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACzD,CAAC;IAMD,MAAM,CAAc,EAAU,EAAU,SAA6C,EAAmB,KAAiC;QACvI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;IAKD,aAAa,CAAc,EAAU,EAAU,SAA6C,EAAmB,KAAiC;QAC9I,OAAO,IAAI,CAAC,OAAO,C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ACA,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;iEAExB;8CA3EU,mCAAmC;IAF/C,IAAA,iBAAO,EAAC,YAAY,CAAC;IACrB,IAAA,mBAAU,EAAC,8BAA8B,CAAC;qCAEH,uEAAgC;GAD3D,mCAAmC,CA8E/C"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ImportTransactionService } from '../services/import-transaction.service';
|
|
2
|
+
import { CreateImportTransactionDto } from '../dtos/create-import-transaction.dto';
|
|
3
|
+
import { UpdateImportTransactionDto } from '../dtos/update-import-transaction.dto';
|
|
4
|
+
import { Response } from 'express';
|
|
5
|
+
export declare class ImportTransactionController {
|
|
6
|
+
private readonly service;
|
|
7
|
+
constructor(service: ImportTransactionService);
|
|
8
|
+
getImportTemplate(modelMetadataId: number, format: string, res: Response): Promise<void>;
|
|
9
|
+
getImportInstructions(modelMetadataId: number): Promise<import("../dtos/import-instructions.dto").ImportInstructionsResponseDto>;
|
|
10
|
+
create(createDto: CreateImportTransactionDto, files: Array<Express.Multer.File>): Promise<import("..").ImportTransaction>;
|
|
11
|
+
insertMany(createDtos: CreateImportTransactionDto[], filesArray?: Express.Multer.File[][]): Promise<import("..").ImportTransaction[]>;
|
|
12
|
+
update(id: number, updateDto: UpdateImportTransactionDto, files: Array<Express.Multer.File>): Promise<import("..").ImportTransaction>;
|
|
13
|
+
partialUpdate(id: number, updateDto: UpdateImportTransactionDto, files: Array<Express.Multer.File>): Promise<import("..").ImportTransaction>;
|
|
14
|
+
recoverMany(ids: number[]): Promise<{
|
|
15
|
+
message: string;
|
|
16
|
+
recoveredIds: number[];
|
|
17
|
+
}>;
|
|
18
|
+
recover(id: number): Promise<{
|
|
19
|
+
message: string;
|
|
20
|
+
data: import("..").ImportTransaction;
|
|
21
|
+
}>;
|
|
22
|
+
findMany(query: any): Promise<{
|
|
23
|
+
groupMeta: any[];
|
|
24
|
+
groupRecords: any[];
|
|
25
|
+
meta?: undefined;
|
|
26
|
+
records?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
meta: {
|
|
29
|
+
totalRecords: number;
|
|
30
|
+
currentPage: number;
|
|
31
|
+
nextPage: number;
|
|
32
|
+
prevPage: number;
|
|
33
|
+
totalPages: number;
|
|
34
|
+
perPage: number;
|
|
35
|
+
};
|
|
36
|
+
records: import("..").ImportTransaction[];
|
|
37
|
+
groupMeta?: undefined;
|
|
38
|
+
groupRecords?: undefined;
|
|
39
|
+
}>;
|
|
40
|
+
findOne(id: string, query: any): Promise<import("..").ImportTransaction>;
|
|
41
|
+
getImportMappingInfo(id: string): Promise<import("../services/import-transaction.service").ImportMappingInfo>;
|
|
42
|
+
saveImportMapping(id: string): Promise<void>;
|
|
43
|
+
deleteMany(ids: number[]): Promise<any>;
|
|
44
|
+
delete(id: number): Promise<import("..").ImportTransaction>;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=import-transaction.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-transaction.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/import-transaction.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOnC,qBAEa,2BAA2B;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,wBAAwB;IAIxD,iBAAiB,CAA2B,eAAe,EAAE,MAAM,EAAmB,MAAM,EAAE,MAAM,EAAS,GAAG,EAAE,QAAQ;IAgB1H,qBAAqB,CAA2B,eAAe,EAAE,MAAM;IAQ7E,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;IAMlI,WAAW,CAAS,GAAG,EAAE,MAAM,EAAE;;;;IAMjC,OAAO,CAAc,EAAE,EAAE,MAAM;;;;IAe/B,QAAQ,CAAU,KAAK,EAAE,GAAG;;;;;;;;;;;;;;;;;;IAM5B,OAAO,CAAc,EAAE,EAAE,MAAM,EAAW,KAAK,EAAE,GAAG;IAMpD,oBAAoB,CAAc,EAAE,EAAE,MAAM;IAM5C,iBAAiB,CAAc,EAAE,EAAE,MAAM;IAMzC,UAAU,CAAS,GAAG,EAAE,MAAM,EAAE;IAMhC,MAAM,CAAc,EAAE,EAAE,MAAM;CAIrC"}
|
|
@@ -0,0 +1,236 @@
|
|
|
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.ImportTransactionController = 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 import_transaction_service_1 = require("../services/import-transaction.service");
|
|
21
|
+
const create_import_transaction_dto_1 = require("../dtos/create-import-transaction.dto");
|
|
22
|
+
const update_import_transaction_dto_1 = require("../dtos/update-import-transaction.dto");
|
|
23
|
+
var ShowSoftDeleted;
|
|
24
|
+
(function (ShowSoftDeleted) {
|
|
25
|
+
ShowSoftDeleted["INCLUSIVE"] = "inclusive";
|
|
26
|
+
ShowSoftDeleted["EXCLUSIVE"] = "exclusive";
|
|
27
|
+
})(ShowSoftDeleted || (ShowSoftDeleted = {}));
|
|
28
|
+
let ImportTransactionController = class ImportTransactionController {
|
|
29
|
+
constructor(service) {
|
|
30
|
+
this.service = service;
|
|
31
|
+
}
|
|
32
|
+
async getImportTemplate(modelMetadataId, format, res) {
|
|
33
|
+
const importTemplateFileInfo = await this.service.getImportTemplate(+modelMetadataId, format);
|
|
34
|
+
if (importTemplateFileInfo.stream === null) {
|
|
35
|
+
throw new common_1.InternalServerErrorException("Sample Import template stream is null");
|
|
36
|
+
}
|
|
37
|
+
res.setHeader('Content-Disposition', `attachment; filename="${importTemplateFileInfo.fileName}"`);
|
|
38
|
+
res.setHeader('Content-Type', importTemplateFileInfo.mimeType);
|
|
39
|
+
res.setHeader('Access-Control-Expose-Headers', 'Content-Disposition, Content-Type');
|
|
40
|
+
importTemplateFileInfo.stream.pipe(res);
|
|
41
|
+
}
|
|
42
|
+
async getImportInstructions(modelMetadataId) {
|
|
43
|
+
return this.service.getImportInstructions(modelMetadataId);
|
|
44
|
+
}
|
|
45
|
+
create(createDto, files) {
|
|
46
|
+
return this.service.create(createDto, files);
|
|
47
|
+
}
|
|
48
|
+
insertMany(createDtos, filesArray = []) {
|
|
49
|
+
return this.service.insertMany(createDtos, filesArray);
|
|
50
|
+
}
|
|
51
|
+
update(id, updateDto, files) {
|
|
52
|
+
return this.service.update(id, updateDto, files);
|
|
53
|
+
}
|
|
54
|
+
partialUpdate(id, updateDto, files) {
|
|
55
|
+
return this.service.update(id, updateDto, files, true);
|
|
56
|
+
}
|
|
57
|
+
async recoverMany(ids) {
|
|
58
|
+
return this.service.recoverMany(ids);
|
|
59
|
+
}
|
|
60
|
+
async recover(id) {
|
|
61
|
+
return this.service.recover(id);
|
|
62
|
+
}
|
|
63
|
+
async findMany(query) {
|
|
64
|
+
return this.service.find(query);
|
|
65
|
+
}
|
|
66
|
+
async findOne(id, query) {
|
|
67
|
+
return this.service.findOne(+id, query);
|
|
68
|
+
}
|
|
69
|
+
async getImportMappingInfo(id) {
|
|
70
|
+
return this.service.getImportMappingInfo(+id);
|
|
71
|
+
}
|
|
72
|
+
async saveImportMapping(id) {
|
|
73
|
+
return this.service.saveImportMapping(+id);
|
|
74
|
+
}
|
|
75
|
+
async deleteMany(ids) {
|
|
76
|
+
return this.service.deleteMany(ids);
|
|
77
|
+
}
|
|
78
|
+
async delete(id) {
|
|
79
|
+
return this.service.delete(id);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
exports.ImportTransactionController = ImportTransactionController;
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
85
|
+
(0, common_1.Get)('/import-template/:modelMetadataId/:format'),
|
|
86
|
+
openapi.ApiResponse({ status: 200 }),
|
|
87
|
+
__param(0, (0, common_1.Param)('modelMetadataId')),
|
|
88
|
+
__param(1, (0, common_1.Param)('format')),
|
|
89
|
+
__param(2, (0, common_1.Res)()),
|
|
90
|
+
__metadata("design:type", Function),
|
|
91
|
+
__metadata("design:paramtypes", [Number, String, Object]),
|
|
92
|
+
__metadata("design:returntype", Promise)
|
|
93
|
+
], ImportTransactionController.prototype, "getImportTemplate", null);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
96
|
+
(0, common_1.Get)('/import-instructions/:modelMetadataId'),
|
|
97
|
+
openapi.ApiResponse({ status: 200, type: require("../dtos/import-instructions.dto").ImportInstructionsResponseDto }),
|
|
98
|
+
__param(0, (0, common_1.Param)('modelMetadataId')),
|
|
99
|
+
__metadata("design:type", Function),
|
|
100
|
+
__metadata("design:paramtypes", [Number]),
|
|
101
|
+
__metadata("design:returntype", Promise)
|
|
102
|
+
], ImportTransactionController.prototype, "getImportInstructions", null);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
105
|
+
(0, common_1.Post)(),
|
|
106
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
107
|
+
openapi.ApiResponse({ status: 201, type: require("../entities/import-transaction.entity").ImportTransaction }),
|
|
108
|
+
__param(0, (0, common_1.Body)()),
|
|
109
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
110
|
+
__metadata("design:type", Function),
|
|
111
|
+
__metadata("design:paramtypes", [create_import_transaction_dto_1.CreateImportTransactionDto, Array]),
|
|
112
|
+
__metadata("design:returntype", void 0)
|
|
113
|
+
], ImportTransactionController.prototype, "create", null);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
116
|
+
(0, common_1.Post)('/bulk'),
|
|
117
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
118
|
+
openapi.ApiResponse({ status: 201, type: [require("../entities/import-transaction.entity").ImportTransaction] }),
|
|
119
|
+
__param(0, (0, common_1.Body)()),
|
|
120
|
+
__param(1, (0, common_1.UploadedFiles)()),
|
|
121
|
+
__metadata("design:type", Function),
|
|
122
|
+
__metadata("design:paramtypes", [Array, Array]),
|
|
123
|
+
__metadata("design:returntype", void 0)
|
|
124
|
+
], ImportTransactionController.prototype, "insertMany", null);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
127
|
+
(0, common_1.Put)(':id'),
|
|
128
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
129
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/import-transaction.entity").ImportTransaction }),
|
|
130
|
+
__param(0, (0, common_1.Param)('id')),
|
|
131
|
+
__param(1, (0, common_1.Body)()),
|
|
132
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
133
|
+
__metadata("design:type", Function),
|
|
134
|
+
__metadata("design:paramtypes", [Number, update_import_transaction_dto_1.UpdateImportTransactionDto, Array]),
|
|
135
|
+
__metadata("design:returntype", void 0)
|
|
136
|
+
], ImportTransactionController.prototype, "update", null);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
139
|
+
(0, common_1.Patch)(':id'),
|
|
140
|
+
(0, common_1.UseInterceptors)((0, platform_express_1.AnyFilesInterceptor)()),
|
|
141
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/import-transaction.entity").ImportTransaction }),
|
|
142
|
+
__param(0, (0, common_1.Param)('id')),
|
|
143
|
+
__param(1, (0, common_1.Body)()),
|
|
144
|
+
__param(2, (0, common_1.UploadedFiles)()),
|
|
145
|
+
__metadata("design:type", Function),
|
|
146
|
+
__metadata("design:paramtypes", [Number, update_import_transaction_dto_1.UpdateImportTransactionDto, Array]),
|
|
147
|
+
__metadata("design:returntype", void 0)
|
|
148
|
+
], ImportTransactionController.prototype, "partialUpdate", null);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
151
|
+
(0, common_1.Post)('/bulk-recover'),
|
|
152
|
+
openapi.ApiResponse({ status: 201 }),
|
|
153
|
+
__param(0, (0, common_1.Body)()),
|
|
154
|
+
__metadata("design:type", Function),
|
|
155
|
+
__metadata("design:paramtypes", [Array]),
|
|
156
|
+
__metadata("design:returntype", Promise)
|
|
157
|
+
], ImportTransactionController.prototype, "recoverMany", null);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
160
|
+
(0, common_1.Get)('/recover/:id'),
|
|
161
|
+
openapi.ApiResponse({ status: 200 }),
|
|
162
|
+
__param(0, (0, common_1.Param)('id')),
|
|
163
|
+
__metadata("design:type", Function),
|
|
164
|
+
__metadata("design:paramtypes", [Number]),
|
|
165
|
+
__metadata("design:returntype", Promise)
|
|
166
|
+
], ImportTransactionController.prototype, "recover", null);
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
169
|
+
(0, swagger_1.ApiQuery)({ name: 'showSoftDeleted', required: false, enum: ShowSoftDeleted }),
|
|
170
|
+
(0, swagger_1.ApiQuery)({ name: 'limit', required: false, type: Number }),
|
|
171
|
+
(0, swagger_1.ApiQuery)({ name: 'offset', required: false, type: Number }),
|
|
172
|
+
(0, swagger_1.ApiQuery)({ name: 'fields', required: false, type: Array }),
|
|
173
|
+
(0, swagger_1.ApiQuery)({ name: 'sort', required: false, type: Array }),
|
|
174
|
+
(0, swagger_1.ApiQuery)({ name: 'groupBy', required: false, type: Array }),
|
|
175
|
+
(0, swagger_1.ApiQuery)({ name: 'populate', required: false, type: Array }),
|
|
176
|
+
(0, swagger_1.ApiQuery)({ name: 'populateMedia', required: false, type: Array }),
|
|
177
|
+
(0, swagger_1.ApiQuery)({ name: 'filters', required: false, type: Array }),
|
|
178
|
+
(0, common_1.Get)(),
|
|
179
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
180
|
+
__param(0, (0, common_1.Query)()),
|
|
181
|
+
__metadata("design:type", Function),
|
|
182
|
+
__metadata("design:paramtypes", [Object]),
|
|
183
|
+
__metadata("design:returntype", Promise)
|
|
184
|
+
], ImportTransactionController.prototype, "findMany", null);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
187
|
+
(0, common_1.Get)(':id'),
|
|
188
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/import-transaction.entity").ImportTransaction }),
|
|
189
|
+
__param(0, (0, common_1.Param)('id')),
|
|
190
|
+
__param(1, (0, common_1.Query)()),
|
|
191
|
+
__metadata("design:type", Function),
|
|
192
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
193
|
+
__metadata("design:returntype", Promise)
|
|
194
|
+
], ImportTransactionController.prototype, "findOne", null);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
197
|
+
(0, common_1.Get)(':id/import-mapping-info'),
|
|
198
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
199
|
+
__param(0, (0, common_1.Param)('id')),
|
|
200
|
+
__metadata("design:type", Function),
|
|
201
|
+
__metadata("design:paramtypes", [String]),
|
|
202
|
+
__metadata("design:returntype", Promise)
|
|
203
|
+
], ImportTransactionController.prototype, "getImportMappingInfo", null);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
206
|
+
(0, common_1.Post)(':id/import-mapping'),
|
|
207
|
+
openapi.ApiResponse({ status: 201 }),
|
|
208
|
+
__param(0, (0, common_1.Param)('id')),
|
|
209
|
+
__metadata("design:type", Function),
|
|
210
|
+
__metadata("design:paramtypes", [String]),
|
|
211
|
+
__metadata("design:returntype", Promise)
|
|
212
|
+
], ImportTransactionController.prototype, "saveImportMapping", null);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
215
|
+
(0, common_1.Delete)('/bulk'),
|
|
216
|
+
openapi.ApiResponse({ status: 200, type: Object }),
|
|
217
|
+
__param(0, (0, common_1.Body)()),
|
|
218
|
+
__metadata("design:type", Function),
|
|
219
|
+
__metadata("design:paramtypes", [Array]),
|
|
220
|
+
__metadata("design:returntype", Promise)
|
|
221
|
+
], ImportTransactionController.prototype, "deleteMany", null);
|
|
222
|
+
__decorate([
|
|
223
|
+
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
224
|
+
(0, common_1.Delete)(':id'),
|
|
225
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/import-transaction.entity").ImportTransaction }),
|
|
226
|
+
__param(0, (0, common_1.Param)('id')),
|
|
227
|
+
__metadata("design:type", Function),
|
|
228
|
+
__metadata("design:paramtypes", [Number]),
|
|
229
|
+
__metadata("design:returntype", Promise)
|
|
230
|
+
], ImportTransactionController.prototype, "delete", null);
|
|
231
|
+
exports.ImportTransactionController = ImportTransactionController = __decorate([
|
|
232
|
+
(0, swagger_1.ApiTags)('Solid Core'),
|
|
233
|
+
(0, common_1.Controller)('import-transaction'),
|
|
234
|
+
__metadata("design:paramtypes", [import_transaction_service_1.ImportTransactionService])
|
|
235
|
+
], ImportTransactionController);
|
|
236
|
+
//# sourceMappingURL=import-transaction.controller.js.map
|