@solidstarters/solid-core 1.2.89 → 1.2.91
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/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/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/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 +316 -0
- 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 +70 -2
- package/dist/services/excel.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/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/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/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 +318 -2
- package/src/services/csv.service.ts +116 -7
- package/src/services/excel.service.ts +111 -55
- 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
|
@@ -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":";;;;;;;;;;;;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EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC3D,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC5D,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACjE,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC3D,IAAA,YAAG,GAAE;;IACU,WAAA,IAAA,cAAK,GAAE,CAAA;;;;mEAEtB;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,YAAG,EAAC,KAAK,CAAC;;IACI,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,cAAK,GAAE,CAAA;;;;kEAE9C;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,OAAO,CAAC;;IACE,WAAA,IAAA,aAAI,GAAE,CAAA;;;;qEAEvB;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,KAAK,CAAC;;IACA,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-transaction.controller.js","sourceRoot":"","sources":["../../src/controllers/import-transaction.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAkK;AAClK,+DAA+D;AAC/D,6CAAmE;AACnE,uFAAgG;AAChG,yFAAmF;AACnF,yFAAmF;AAGnF,IAAK,eAGJ;AAHD,WAAK,eAAe;IAClB,0CAAuB,CAAA;IACvB,0CAAuB,CAAA;AACzB,CAAC,EAHI,eAAe,KAAf,eAAe,QAGnB;AAIM,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACtC,YAA6B,OAAiC;QAAjC,YAAO,GAAP,OAAO,CAA0B;IAAG,CAAC;IAI5D,AAAN,KAAK,CAAC,iBAAiB,CAA2B,eAAuB,EAAmB,MAAc,EAAS,GAAa;QAC9H,MAAM,sBAAsB,GAAI,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,eAAe,EAAE,MAAsB,CAAC,CAAC;QAC/G,IAAI,sBAAsB,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YAC3C,MAAM,IAAI,qCAA4B,CAAC,uCAAuC,CAAC,CAAC;QAClF,CAAC;QAGD,GAAG,CAAC,SAAS,CAAC,qBAAqB,EAAE,yBAAyB,sBAAsB,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClG,G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A;IAAc,WAAA,IAAA,cAAK,GAAE,CAAA;;;;0DAE9C;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,YAAG,EAAC,yBAAyB,CAAC;;IACH,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;uEAEtC;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,aAAI,EAAC,oBAAoB,CAAC;;IACF,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;oEAEnC;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,OAAO,CAAC;;IACE,WAAA,IAAA,aAAI,GAAE,CAAA;;;;6DAEvB;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,KAAK,CAAC;;IACA,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;yDAExB;sCA9GU,2BAA2B;IAFvC,IAAA,iBAAO,EAAC,YAAY,CAAC;IACrB,IAAA,mBAAU,EAAC,oBAAoB,CAAC;qCAEO,qDAAwB;GADnD,2BAA2B,CAgHvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class CreateImportTransactionErrorLogDto {
|
|
2
|
+
importTransactionErrorLogId: string;
|
|
3
|
+
rowNumber: number;
|
|
4
|
+
rowData: any;
|
|
5
|
+
importTransactionId: number;
|
|
6
|
+
importTransactionUserKey: string;
|
|
7
|
+
errorMessage: string;
|
|
8
|
+
errorTrace: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=create-import-transaction-error-log.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-import-transaction-error-log.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-import-transaction-error-log.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,kCAAkC;IAI3C,2BAA2B,EAAE,MAAM,CAAC;IAIpC,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,GAAG,CAAC;IAIb,mBAAmB,EAAE,MAAM,CAAC;IAI5B,wBAAwB,EAAE,MAAM,CAAC;IAIjC,YAAY,EAAE,MAAM,CAAC;IAIrB,UAAU,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.CreateImportTransactionErrorLogDto = void 0;
|
|
13
|
+
const openapi = require("@nestjs/swagger");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const class_validator_2 = require("class-validator");
|
|
17
|
+
class CreateImportTransactionErrorLogDto {
|
|
18
|
+
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
+
return { importTransactionErrorLogId: { required: true, type: () => String }, rowNumber: { required: true, type: () => Number }, rowData: { required: true, type: () => Object }, importTransactionId: { required: true, type: () => Number }, importTransactionUserKey: { required: true, type: () => String }, errorMessage: { required: true, type: () => String }, errorTrace: { required: true, type: () => String } };
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.CreateImportTransactionErrorLogDto = CreateImportTransactionErrorLogDto;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, swagger_1.ApiProperty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateImportTransactionErrorLogDto.prototype, "importTransactionErrorLogId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
31
|
+
(0, class_validator_2.IsInt)(),
|
|
32
|
+
(0, swagger_1.ApiProperty)(),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], CreateImportTransactionErrorLogDto.prototype, "rowNumber", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_2.IsOptional)(),
|
|
37
|
+
(0, class_validator_2.IsJSON)(),
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], CreateImportTransactionErrorLogDto.prototype, "rowData", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_2.IsOptional)(),
|
|
43
|
+
(0, class_validator_2.IsInt)(),
|
|
44
|
+
(0, swagger_1.ApiProperty)(),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], CreateImportTransactionErrorLogDto.prototype, "importTransactionId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_2.IsOptional)(),
|
|
50
|
+
(0, swagger_1.ApiProperty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateImportTransactionErrorLogDto.prototype, "importTransactionUserKey", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_2.IsNotEmpty)(),
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
(0, swagger_1.ApiProperty)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CreateImportTransactionErrorLogDto.prototype, "errorMessage", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_2.IsOptional)(),
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
(0, swagger_1.ApiProperty)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], CreateImportTransactionErrorLogDto.prototype, "errorTrace", void 0);
|
|
65
|
+
//# sourceMappingURL=create-import-transaction-error-log.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-import-transaction-error-log.dto.js","sourceRoot":"","sources":["../../src/dtos/create-import-transaction-error-log.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAAwE;AAExE,MAAa,kCAAkC;;;;CA6B9C;AA7BD,gFA6BC;AAzBG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;uFACsB;AAIpC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;qEACI;AAIlB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;mEACD;AAIb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;+EACc;AAI5B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;oFACmB;AAIjC;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;wEACO;AAIrB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;sEACK"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UpdateImportTransactionErrorLogDto } from 'src/dtos/update-import-transaction-error-log.dto';
|
|
2
|
+
export declare class CreateImportTransactionDto {
|
|
3
|
+
status: string;
|
|
4
|
+
importTransactionId: string;
|
|
5
|
+
mapping: any;
|
|
6
|
+
modelMetadataId: number;
|
|
7
|
+
modelMetadataUserKey: string;
|
|
8
|
+
moduleMetadataId: number;
|
|
9
|
+
moduleMetadataUserKey: string;
|
|
10
|
+
importTransactionErrorLog: UpdateImportTransactionErrorLogDto[];
|
|
11
|
+
importTransactionErrorLogIds: number[];
|
|
12
|
+
importTransactionErrorLogCommand: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=create-import-transaction.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-import-transaction.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-import-transaction.dto.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AAEtG,qBAAa,0BAA0B;IAInC,MAAM,EAAE,MAAM,CAAW;IAIzB,mBAAmB,EAAE,MAAM,CAAC;IAI5B,OAAO,EAAE,GAAG,CAAC;IAIb,eAAe,EAAE,MAAM,CAAC;IAIxB,oBAAoB,EAAE,MAAM,CAAC;IAI7B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,qBAAqB,EAAE,MAAM,CAAC;IAM9B,yBAAyB,EAAE,kCAAkC,EAAE,CAAC;IAIhE,4BAA4B,EAAE,MAAM,EAAE,CAAC;IAIvC,gCAAgC,EAAE,MAAM,CAAC;CAC5C"}
|