@servicelabsco/slabs-access-manager 0.1.228 → 0.1.230
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/access/controllers/business.report.controller.d.ts +17 -0
- package/dist/access/controllers/business.report.controller.js +96 -0
- package/dist/access/controllers/business.report.controller.js.map +1 -0
- package/dist/access/controllers/index.d.ts +2 -0
- package/dist/access/controllers/index.js +2 -0
- package/dist/access/controllers/index.js.map +1 -1
- package/dist/access/controllers/user.business.secret.controller.d.ts +14 -0
- package/dist/access/controllers/user.business.secret.controller.js +100 -0
- package/dist/access/controllers/user.business.secret.controller.js.map +1 -0
- package/dist/access/dtos/add.custom.field.dto.d.ts +1 -0
- package/dist/access/dtos/add.custom.field.dto.js +5 -0
- package/dist/access/dtos/add.custom.field.dto.js.map +1 -1
- package/dist/access/dtos/add.user.secret.dto.d.ts +3 -0
- package/dist/access/dtos/add.user.secret.dto.js +24 -0
- package/dist/access/dtos/add.user.secret.dto.js.map +1 -0
- package/dist/access/dtos/generate.business.report.dto.d.ts +4 -0
- package/dist/access/dtos/generate.business.report.dto.js +28 -0
- package/dist/access/dtos/generate.business.report.dto.js.map +1 -0
- package/dist/access/dtos/index.d.ts +3 -0
- package/dist/access/dtos/index.js +3 -0
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/dtos/user.business.secret.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/user.business.secret.attributes.dto.js +8 -0
- package/dist/access/dtos/user.business.secret.attributes.dto.js.map +1 -0
- package/dist/access/entities/business.downloadable.report.entity.d.ts +10 -0
- package/dist/access/entities/business.downloadable.report.entity.js +48 -0
- package/dist/access/entities/business.downloadable.report.entity.js.map +1 -0
- package/dist/access/entities/business.report.entity.d.ts +15 -0
- package/dist/access/entities/business.report.entity.js +69 -0
- package/dist/access/entities/business.report.entity.js.map +1 -0
- package/dist/access/entities/index.d.ts +3 -0
- package/dist/access/entities/index.js +3 -0
- package/dist/access/entities/index.js.map +1 -1
- package/dist/access/entities/user.business.secret.entity.d.ts +17 -0
- package/dist/access/entities/user.business.secret.entity.js +73 -0
- package/dist/access/entities/user.business.secret.entity.js.map +1 -0
- package/dist/access/es6.classes.d.ts +23 -8
- package/dist/access/es6.classes.js +36 -1
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/jobs/business.downloadable.report.job.d.ts +7 -0
- package/dist/access/jobs/business.downloadable.report.job.js +29 -0
- package/dist/access/jobs/business.downloadable.report.job.js.map +1 -0
- package/dist/access/jobs/business.report.job.d.ts +10 -0
- package/dist/access/jobs/business.report.job.js +41 -0
- package/dist/access/jobs/business.report.job.js.map +1 -0
- package/dist/access/jobs/generate.business.report.job.d.ts +16 -0
- package/dist/access/jobs/generate.business.report.job.js +52 -0
- package/dist/access/jobs/generate.business.report.job.js.map +1 -0
- package/dist/access/jobs/index.d.ts +4 -0
- package/dist/access/jobs/index.js +4 -0
- package/dist/access/jobs/index.js.map +1 -1
- package/dist/access/jobs/user.business.secret.job.d.ts +7 -0
- package/dist/access/jobs/user.business.secret.job.js +29 -0
- package/dist/access/jobs/user.business.secret.job.js.map +1 -0
- package/dist/access/libraries/create.user.business.secret.d.ts +15 -0
- package/dist/access/libraries/create.user.business.secret.js +51 -0
- package/dist/access/libraries/create.user.business.secret.js.map +1 -0
- package/dist/access/libraries/index.d.ts +1 -0
- package/dist/access/libraries/index.js +1 -0
- package/dist/access/libraries/index.js.map +1 -1
- package/dist/access/libraries/process.custom.field.creation.js +4 -3
- package/dist/access/libraries/process.custom.field.creation.js.map +1 -1
- package/dist/access/middlewares/index.d.ts +1 -0
- package/dist/access/middlewares/index.js +1 -0
- package/dist/access/middlewares/index.js.map +1 -1
- package/dist/access/middlewares/user.business.access.middleware.d.ts +9 -0
- package/dist/access/middlewares/user.business.access.middleware.js +45 -0
- package/dist/access/middlewares/user.business.access.middleware.js.map +1 -0
- package/dist/access/services/access.report.service.d.ts +2 -0
- package/dist/access/services/access.report.service.js +17 -0
- package/dist/access/services/access.report.service.js.map +1 -1
- package/dist/access/services/es6.jobs.service.d.ts +9 -1
- package/dist/access/services/es6.jobs.service.js +18 -2
- package/dist/access/services/es6.jobs.service.js.map +1 -1
- package/dist/access/services/index.d.ts +1 -0
- package/dist/access/services/index.js +1 -0
- package/dist/access/services/index.js.map +1 -1
- package/dist/access/services/user.business.access.service.d.ts +18 -0
- package/dist/access/services/user.business.access.service.js +69 -0
- package/dist/access/services/user.business.access.service.js.map +1 -0
- package/dist/access/subscribers/business.downloadable.report.subscriber.d.ts +10 -0
- package/dist/access/subscribers/business.downloadable.report.subscriber.js +34 -0
- package/dist/access/subscribers/business.downloadable.report.subscriber.js.map +1 -0
- package/dist/access/subscribers/business.report.subscriber.d.ts +10 -0
- package/dist/access/subscribers/business.report.subscriber.js +34 -0
- package/dist/access/subscribers/business.report.subscriber.js.map +1 -0
- package/dist/access/subscribers/index.d.ts +3 -0
- package/dist/access/subscribers/index.js +3 -0
- package/dist/access/subscribers/index.js.map +1 -1
- package/dist/access/subscribers/user.business.secret.subscriber.d.ts +11 -0
- package/dist/access/subscribers/user.business.secret.subscriber.js +37 -0
- package/dist/access/subscribers/user.business.secret.subscriber.js.map +1 -0
- package/dist/config/entity.constants.d.ts +6 -0
- package/dist/config/entity.constants.js +6 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/migrations/1733723463746-CreateBusinessDownloadableReportTable.d.ts +5 -0
- package/dist/migrations/1733723463746-CreateBusinessDownloadableReportTable.js +20 -0
- package/dist/migrations/1733723463746-CreateBusinessDownloadableReportTable.js.map +1 -0
- package/dist/migrations/1733724130691-CreateBusinessReportTable.d.ts +5 -0
- package/dist/migrations/1733724130691-CreateBusinessReportTable.js +24 -0
- package/dist/migrations/1733724130691-CreateBusinessReportTable.js.map +1 -0
- package/dist/migrations/1748933950283-CreateUserBusinessSecretTable.d.ts +5 -0
- package/dist/migrations/1748933950283-CreateUserBusinessSecretTable.js +26 -0
- package/dist/migrations/1748933950283-CreateUserBusinessSecretTable.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AwsS3Service } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { BusinessParamDto } from '../dtos/business.param.dto';
|
|
3
|
+
import { GenerateBusinessReportDto } from '../dtos/generate.business.report.dto';
|
|
4
|
+
import { BusinessDownloadableReportEntity } from '../entities/business.downloadable.report.entity';
|
|
5
|
+
import { BusinessReportEntity } from '../entities/business.report.entity';
|
|
6
|
+
import { AccessBusinessService } from '../services/access.business.service';
|
|
7
|
+
export declare class BusinessReportController {
|
|
8
|
+
private readonly accessBusinessService;
|
|
9
|
+
private readonly awsS3Service;
|
|
10
|
+
constructor(accessBusinessService: AccessBusinessService, awsS3Service: AwsS3Service);
|
|
11
|
+
getAvailableReport(): Promise<BusinessDownloadableReportEntity[]>;
|
|
12
|
+
getGeneratedReport(): Promise<BusinessReportEntity[]>;
|
|
13
|
+
downloadReport(param: BusinessParamDto): Promise<{
|
|
14
|
+
url: string;
|
|
15
|
+
}>;
|
|
16
|
+
generateReport(body: GenerateBusinessReportDto, param: BusinessParamDto): Promise<BusinessReportEntity>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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.BusinessReportController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const business_param_dto_1 = require("../dtos/business.param.dto");
|
|
19
|
+
const generate_business_report_dto_1 = require("../dtos/generate.business.report.dto");
|
|
20
|
+
const business_downloadable_report_entity_1 = require("../entities/business.downloadable.report.entity");
|
|
21
|
+
const business_report_entity_1 = require("../entities/business.report.entity");
|
|
22
|
+
const access_business_service_1 = require("../services/access.business.service");
|
|
23
|
+
let BusinessReportController = class BusinessReportController {
|
|
24
|
+
constructor(accessBusinessService, awsS3Service) {
|
|
25
|
+
this.accessBusinessService = accessBusinessService;
|
|
26
|
+
this.awsS3Service = awsS3Service;
|
|
27
|
+
}
|
|
28
|
+
async getAvailableReport() {
|
|
29
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
30
|
+
return business_downloadable_report_entity_1.BusinessDownloadableReportEntity.find({
|
|
31
|
+
where: { active: true, business_id: business.id },
|
|
32
|
+
relations: ['sys_report'],
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
async getGeneratedReport() {
|
|
36
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
37
|
+
return business_report_entity_1.BusinessReportEntity.find({
|
|
38
|
+
where: { business_id: business.id },
|
|
39
|
+
relations: ['business', 'creator', 'sys_report'],
|
|
40
|
+
order: { updated_at: 'DESC' },
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
async downloadReport(param) {
|
|
44
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
45
|
+
const rep = await business_report_entity_1.BusinessReportEntity.findOne({ where: { business_id: business.id, id: param.id } });
|
|
46
|
+
if (!rep?.url)
|
|
47
|
+
throw new nestjs_utility_services_1.OperationException('no report url found');
|
|
48
|
+
const attributes = this.awsS3Service.getS3BucketKeyFromUrl(rep.url);
|
|
49
|
+
const url = await this.awsS3Service.getPublicUrl(attributes.bucket, attributes.key);
|
|
50
|
+
return { url };
|
|
51
|
+
}
|
|
52
|
+
async generateReport(body, param) {
|
|
53
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
54
|
+
const businessReport = await business_downloadable_report_entity_1.BusinessDownloadableReportEntity.findOne({ where: { id: param.id, active: true } });
|
|
55
|
+
if (!businessReport)
|
|
56
|
+
throw new nestjs_utility_services_1.OperationException('This report is cannot be downloaded');
|
|
57
|
+
const newReport = business_report_entity_1.BusinessReportEntity.create({ business_id: business.id, sys_report_id: businessReport.sys_report_id });
|
|
58
|
+
newReport.params = body.params;
|
|
59
|
+
newReport.comment = body?.comment;
|
|
60
|
+
return newReport.save();
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
exports.BusinessReportController = BusinessReportController;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, common_1.Get)('available-report'),
|
|
66
|
+
__metadata("design:type", Function),
|
|
67
|
+
__metadata("design:paramtypes", []),
|
|
68
|
+
__metadata("design:returntype", Promise)
|
|
69
|
+
], BusinessReportController.prototype, "getAvailableReport", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, common_1.Get)('generated-report'),
|
|
72
|
+
__metadata("design:type", Function),
|
|
73
|
+
__metadata("design:paramtypes", []),
|
|
74
|
+
__metadata("design:returntype", Promise)
|
|
75
|
+
], BusinessReportController.prototype, "getGeneratedReport", null);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, common_1.Get)(':id/download-report'),
|
|
78
|
+
__param(0, (0, common_1.Param)()),
|
|
79
|
+
__metadata("design:type", Function),
|
|
80
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
81
|
+
__metadata("design:returntype", Promise)
|
|
82
|
+
], BusinessReportController.prototype, "downloadReport", null);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, common_1.Post)(':id/generate-report'),
|
|
85
|
+
__param(0, (0, common_1.Body)()),
|
|
86
|
+
__param(1, (0, common_1.Param)()),
|
|
87
|
+
__metadata("design:type", Function),
|
|
88
|
+
__metadata("design:paramtypes", [generate_business_report_dto_1.GenerateBusinessReportDto, business_param_dto_1.BusinessParamDto]),
|
|
89
|
+
__metadata("design:returntype", Promise)
|
|
90
|
+
], BusinessReportController.prototype, "generateReport", null);
|
|
91
|
+
exports.BusinessReportController = BusinessReportController = __decorate([
|
|
92
|
+
(0, common_1.Controller)('api/b/report'),
|
|
93
|
+
__metadata("design:paramtypes", [access_business_service_1.AccessBusinessService,
|
|
94
|
+
nestjs_utility_services_1.AwsS3Service])
|
|
95
|
+
], BusinessReportController);
|
|
96
|
+
//# sourceMappingURL=business.report.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business.report.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/business.report.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAA0F;AAC1F,mEAA8D;AAC9D,uFAAiF;AACjF,yGAAmG;AACnG,+EAA0E;AAC1E,iFAA4E;AAQrE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACjC,YACqB,qBAA4C,EAC5C,YAA0B;QAD1B,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,iBAAY,GAAZ,YAAY,CAAc;IAC5C,CAAC;IAGE,AAAN,KAAK,CAAC,kBAAkB;QACpB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,OAAO,sEAAgC,CAAC,IAAI,CAAC;YACzC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,EAAE;YACjD,SAAS,EAAE,CAAC,YAAY,CAAC;SAC5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EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACjH,IAAI,CAAC,cAAc;YAAE,MAAM,IAAI,4CAAkB,CAAC,qCAAqC,CAAC,CAAC;QAEzF,MAAM,SAAS,GAAG,6CAAoB,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,EAAE,aAAa,EAAE,cAAc,CAAC,aAAa,EAAE,CAAC,CAAC;QAEzH,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC/B,SAAS,CAAC,OAAO,GAAG,IAAI,EAAE,OAAO,CAAC;QAElC,OAAO,SAAS,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CACJ,CAAA;AApDY,4DAAwB;AAO3B;IADL,IAAA,YAAG,EAAC,kBAAkB,CAAC;;;;kEAOvB;AAGK;IADL,IAAA,YAAG,EAAC,kBAAkB,CAAC;;;;kEAQvB;AAGK;IADL,IAAA,YAAG,EAAC,qBAAqB,CAAC;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAQ,qCAAgB;;8DAUpD;AAGK;IADL,IAAA,aAAI,EAAC,qBAAqB,CAAC;IACN,WAAA,IAAA,aAAI,GAAE,CAAA;IAAmC,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAnC,wDAAyB,EAAkB,qCAAgB;;8DAY7F;mCAnDQ,wBAAwB;IADpC,IAAA,mBAAU,EAAC,cAAc,CAAC;qCAGqB,+CAAqB;QAC9B,sCAAY;GAHtC,wBAAwB,CAoDpC"}
|
|
@@ -5,6 +5,7 @@ export * from './bulk.upload.item.controller';
|
|
|
5
5
|
export * from './business.app.integration.controller';
|
|
6
6
|
export * from './business.notification.channel.preference.controller';
|
|
7
7
|
export * from './business.preference.controller';
|
|
8
|
+
export * from './business.report.controller';
|
|
8
9
|
export * from './business.user.group.controller';
|
|
9
10
|
export * from './business.user.notification.preference.controller';
|
|
10
11
|
export * from './business.webhook.controller';
|
|
@@ -27,5 +28,6 @@ export * from './listing.preference.controller';
|
|
|
27
28
|
export * from './scheduled.report.controller';
|
|
28
29
|
export * from './scheduled.report.item.controller';
|
|
29
30
|
export * from './tag.controller';
|
|
31
|
+
export * from './user.business.secret.controller';
|
|
30
32
|
export * from './user.notification.controller';
|
|
31
33
|
export * from './user.preference.controller';
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./bulk.upload.item.controller"), exports);
|
|
|
21
21
|
__exportStar(require("./business.app.integration.controller"), exports);
|
|
22
22
|
__exportStar(require("./business.notification.channel.preference.controller"), exports);
|
|
23
23
|
__exportStar(require("./business.preference.controller"), exports);
|
|
24
|
+
__exportStar(require("./business.report.controller"), exports);
|
|
24
25
|
__exportStar(require("./business.user.group.controller"), exports);
|
|
25
26
|
__exportStar(require("./business.user.notification.preference.controller"), exports);
|
|
26
27
|
__exportStar(require("./business.webhook.controller"), exports);
|
|
@@ -43,6 +44,7 @@ __exportStar(require("./listing.preference.controller"), exports);
|
|
|
43
44
|
__exportStar(require("./scheduled.report.controller"), exports);
|
|
44
45
|
__exportStar(require("./scheduled.report.item.controller"), exports);
|
|
45
46
|
__exportStar(require("./tag.controller"), exports);
|
|
47
|
+
__exportStar(require("./user.business.secret.controller"), exports);
|
|
46
48
|
__exportStar(require("./user.notification.controller"), exports);
|
|
47
49
|
__exportStar(require("./user.preference.controller"), exports);
|
|
48
50
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,wEAAsD;AAAA,wFAAsE;AAAA,mEAAiD;AAAA,mEAAiD;AAAA,qFAAmE;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,uDAAqC;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,qEAAmD;AAAA,mDAAiC;AAAA,iEAA+C;AAAA,+DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,wEAAsD;AAAA,wFAAsE;AAAA,mEAAiD;AAAA,+DAA6C;AAAA,mEAAiD;AAAA,qFAAmE;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,2DAAyC;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,8DAA4C;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,yDAAuC;AAAA,4DAA0C;AAAA,0DAAwC;AAAA,uDAAqC;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,qEAAmD;AAAA,mDAAiC;AAAA,oEAAkD;AAAA,iEAA+C;AAAA,+DAA4C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AddUserSecretDto } from '../dtos/add.user.secret.dto';
|
|
2
|
+
import { BusinessParamDto } from '../dtos/business.param.dto';
|
|
3
|
+
import { UserBusinessSecretEntity } from '../entities/user.business.secret.entity';
|
|
4
|
+
import { AccessBusinessService } from '../services/access.business.service';
|
|
5
|
+
export declare class UserBusinessSecretController {
|
|
6
|
+
private readonly accessBusinessService;
|
|
7
|
+
constructor(accessBusinessService: AccessBusinessService);
|
|
8
|
+
show(): Promise<UserBusinessSecretEntity[]>;
|
|
9
|
+
create(body: AddUserSecretDto): Promise<UserBusinessSecretEntity>;
|
|
10
|
+
delete(params: BusinessParamDto): Promise<UserBusinessSecretEntity>;
|
|
11
|
+
activate(params: BusinessParamDto): Promise<UserBusinessSecretEntity>;
|
|
12
|
+
deactivate(params: BusinessParamDto): Promise<UserBusinessSecretEntity>;
|
|
13
|
+
handleStatus(status: boolean, id: number): Promise<UserBusinessSecretEntity>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.UserBusinessSecretController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const add_user_secret_dto_1 = require("../dtos/add.user.secret.dto");
|
|
19
|
+
const business_param_dto_1 = require("../dtos/business.param.dto");
|
|
20
|
+
const user_business_secret_entity_1 = require("../entities/user.business.secret.entity");
|
|
21
|
+
const create_user_business_secret_1 = require("../libraries/create.user.business.secret");
|
|
22
|
+
const access_business_service_1 = require("../services/access.business.service");
|
|
23
|
+
let UserBusinessSecretController = class UserBusinessSecretController {
|
|
24
|
+
constructor(accessBusinessService) {
|
|
25
|
+
this.accessBusinessService = accessBusinessService;
|
|
26
|
+
}
|
|
27
|
+
async show() {
|
|
28
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
29
|
+
return user_business_secret_entity_1.UserBusinessSecretEntity.find({ where: { business_id: business.id, user_id: nestjs_utility_services_1.Auth.user().id } });
|
|
30
|
+
}
|
|
31
|
+
async create(body) {
|
|
32
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
33
|
+
return new create_user_business_secret_1.CreateUserBusinessSecret(business).process(body);
|
|
34
|
+
}
|
|
35
|
+
async delete(params) {
|
|
36
|
+
const user = nestjs_utility_services_1.Auth.user();
|
|
37
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
38
|
+
const r = await user_business_secret_entity_1.UserBusinessSecretEntity.findOne({ where: { business_id: business.id, user_id: user.id, id: params.id } });
|
|
39
|
+
if (!r)
|
|
40
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
41
|
+
return r.softDelete();
|
|
42
|
+
}
|
|
43
|
+
async activate(params) {
|
|
44
|
+
return this.handleStatus(true, params?.id);
|
|
45
|
+
}
|
|
46
|
+
async deactivate(params) {
|
|
47
|
+
return this.handleStatus(false, params?.id);
|
|
48
|
+
}
|
|
49
|
+
async handleStatus(status, id) {
|
|
50
|
+
const user = nestjs_utility_services_1.Auth.user();
|
|
51
|
+
const business = await this.accessBusinessService.validateAccess();
|
|
52
|
+
const r = await user_business_secret_entity_1.UserBusinessSecretEntity.findOne({ where: { business_id: business.id, user_id: user.id, id } });
|
|
53
|
+
if (r?.business_id !== business.id)
|
|
54
|
+
throw new nestjs_utility_services_1.AccessException();
|
|
55
|
+
if (status === r.active)
|
|
56
|
+
throw new nestjs_utility_services_1.OperationException(`Invalid Operation`);
|
|
57
|
+
r.active = status;
|
|
58
|
+
return r.save();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
exports.UserBusinessSecretController = UserBusinessSecretController;
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, common_1.Get)(),
|
|
64
|
+
__metadata("design:type", Function),
|
|
65
|
+
__metadata("design:paramtypes", []),
|
|
66
|
+
__metadata("design:returntype", Promise)
|
|
67
|
+
], UserBusinessSecretController.prototype, "show", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, common_1.Post)(),
|
|
70
|
+
__param(0, (0, common_1.Body)()),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", [add_user_secret_dto_1.AddUserSecretDto]),
|
|
73
|
+
__metadata("design:returntype", Promise)
|
|
74
|
+
], UserBusinessSecretController.prototype, "create", null);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, common_1.Delete)(':id'),
|
|
77
|
+
__param(0, (0, common_1.Param)()),
|
|
78
|
+
__metadata("design:type", Function),
|
|
79
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
80
|
+
__metadata("design:returntype", Promise)
|
|
81
|
+
], UserBusinessSecretController.prototype, "delete", null);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, common_1.Post)('activate/:id'),
|
|
84
|
+
__param(0, (0, common_1.Param)()),
|
|
85
|
+
__metadata("design:type", Function),
|
|
86
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
87
|
+
__metadata("design:returntype", Promise)
|
|
88
|
+
], UserBusinessSecretController.prototype, "activate", null);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, common_1.Post)('deactivate/:id'),
|
|
91
|
+
__param(0, (0, common_1.Param)()),
|
|
92
|
+
__metadata("design:type", Function),
|
|
93
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
94
|
+
__metadata("design:returntype", Promise)
|
|
95
|
+
], UserBusinessSecretController.prototype, "deactivate", null);
|
|
96
|
+
exports.UserBusinessSecretController = UserBusinessSecretController = __decorate([
|
|
97
|
+
(0, common_1.Controller)('api/b/user-secrets'),
|
|
98
|
+
__metadata("design:paramtypes", [access_business_service_1.AccessBusinessService])
|
|
99
|
+
], UserBusinessSecretController);
|
|
100
|
+
//# sourceMappingURL=user.business.secret.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.business.secret.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/user.business.secret.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4E;AAC5E,oFAAmG;AACnG,qEAA+D;AAC/D,mEAA8D;AAC9D,yFAAmF;AACnF,0FAAoF;AACpF,iFAA4E;AAQrE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACrC,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAGvE,AAAN,KAAK,CAAC,IAAI;QACN,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,OAAO,sDAAwB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,8BAAI,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3G,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAS,IAAsB;QACvC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,OAAO,IAAI,sDAAwB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAU,MAAwB;QAC1C,MAAM,IAAI,GAAG,8BAAI,CAAC,IAAI,EAAE,CAAC;QACzB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QAEnE,MAAM,CAAC,GAAG,MAAM,sDAAwB,CAAC,OAAO,CAAC,EAAE,KA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AAG,GAAE;;;;wDAIL;AAGK;IADL,IAAA,aAAI,GAAE;IACO,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sCAAgB;;0DAG1C;AAGK;IADL,IAAA,eAAM,EAAC,KAAK,CAAC;IACA,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;0DAQ7C;AAGK;IADL,IAAA,aAAI,EAAC,cAAc,CAAC;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;4DAE/C;AAGK;IADL,IAAA,aAAI,EAAC,gBAAgB,CAAC;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,qCAAgB;;8DAEjD;uCAlCQ,4BAA4B;IADxC,IAAA,mBAAU,EAAC,oBAAoB,CAAC;qCAEuB,+CAAqB;GADhE,4BAA4B,CAgDxC"}
|
|
@@ -42,6 +42,11 @@ __decorate([
|
|
|
42
42
|
(0, class_transformer_1.Expose)(),
|
|
43
43
|
__metadata("design:type", Number)
|
|
44
44
|
], AddCustomFieldDto.prototype, "choice_type_id", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], AddCustomFieldDto.prototype, "identifier", void 0);
|
|
45
50
|
__decorate([
|
|
46
51
|
(0, class_validator_1.IsNotEmpty)(),
|
|
47
52
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.custom.field.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.custom.field.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA2E;AAC3E,8EAAwE;AACxE,qFAA8E;AAE9E,MAAa,iBAAkB,SAAQ,2DAA0B;
|
|
1
|
+
{"version":3,"file":"add.custom.field.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.custom.field.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA2E;AAC3E,8EAAwE;AACxE,qFAA8E;AAE9E,MAAa,iBAAkB,SAAQ,2DAA0B;CAsChE;AAtCD,8CAsCC;AAlCG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACC;AAKZ;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;kDACG;AAMhB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,EAAC,8CAAoB,CAAC;;yDACN;AAKvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;yDACe;AAIxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;qDACO;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;+CACI;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;mDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;wDACa"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.AddUserSecretDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class AddUserSecretDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AddUserSecretDto = AddUserSecretDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], AddUserSecretDto.prototype, "name", void 0);
|
|
24
|
+
//# sourceMappingURL=add.user.secret.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.user.secret.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.user.secret.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA6E;AAE7E,MAAa,gBAAgB;CAK5B;AALD,4CAKC;AADG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.GenerateBusinessReportDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class GenerateBusinessReportDto {
|
|
16
|
+
}
|
|
17
|
+
exports.GenerateBusinessReportDto = GenerateBusinessReportDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
|
+
], GenerateBusinessReportDto.prototype, "params", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], GenerateBusinessReportDto.prototype, "comment", void 0);
|
|
28
|
+
//# sourceMappingURL=generate.business.report.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.business.report.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/generate.business.report.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAyD;AAEzD,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AALG;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;yDACD;AAIZ;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;0DACG"}
|
|
@@ -20,6 +20,7 @@ export * from './add.scheduled.report.dto';
|
|
|
20
20
|
export * from './add.short.url.dto';
|
|
21
21
|
export * from './add.tag.dto';
|
|
22
22
|
export * from './add.user.preference.dto';
|
|
23
|
+
export * from './add.user.secret.dto';
|
|
23
24
|
export * from './add.webhook.dto';
|
|
24
25
|
export * from './api.account.attributes.dto';
|
|
25
26
|
export * from './api.account.list.filter.dto';
|
|
@@ -83,6 +84,7 @@ export * from './gchat.template.attributes.dto';
|
|
|
83
84
|
export * from './gchat.user.attributes.dto';
|
|
84
85
|
export * from './gchat.webhook.attributes.dto';
|
|
85
86
|
export * from './gchat.webhook.message.attributes.dto';
|
|
87
|
+
export * from './generate.business.report.dto';
|
|
86
88
|
export * from './get.nsql.response.dto';
|
|
87
89
|
export * from './get.script.values.dto';
|
|
88
90
|
export * from './group.member.attributes.dto';
|
|
@@ -139,6 +141,7 @@ export * from './token.payload.dto';
|
|
|
139
141
|
export * from './ui.action.attributes.dto';
|
|
140
142
|
export * from './ui.action.role.attributes.dto';
|
|
141
143
|
export * from './upi.vpa.payload.dto';
|
|
144
|
+
export * from './user.business.secret.attributes.dto';
|
|
142
145
|
export * from './user.notification.attributes.dto';
|
|
143
146
|
export * from './user.notification.list.filter.dto';
|
|
144
147
|
export * from './user.preference.attributes.dto';
|
|
@@ -36,6 +36,7 @@ __exportStar(require("./add.scheduled.report.dto"), exports);
|
|
|
36
36
|
__exportStar(require("./add.short.url.dto"), exports);
|
|
37
37
|
__exportStar(require("./add.tag.dto"), exports);
|
|
38
38
|
__exportStar(require("./add.user.preference.dto"), exports);
|
|
39
|
+
__exportStar(require("./add.user.secret.dto"), exports);
|
|
39
40
|
__exportStar(require("./add.webhook.dto"), exports);
|
|
40
41
|
__exportStar(require("./api.account.attributes.dto"), exports);
|
|
41
42
|
__exportStar(require("./api.account.list.filter.dto"), exports);
|
|
@@ -99,6 +100,7 @@ __exportStar(require("./gchat.template.attributes.dto"), exports);
|
|
|
99
100
|
__exportStar(require("./gchat.user.attributes.dto"), exports);
|
|
100
101
|
__exportStar(require("./gchat.webhook.attributes.dto"), exports);
|
|
101
102
|
__exportStar(require("./gchat.webhook.message.attributes.dto"), exports);
|
|
103
|
+
__exportStar(require("./generate.business.report.dto"), exports);
|
|
102
104
|
__exportStar(require("./get.nsql.response.dto"), exports);
|
|
103
105
|
__exportStar(require("./get.script.values.dto"), exports);
|
|
104
106
|
__exportStar(require("./group.member.attributes.dto"), exports);
|
|
@@ -155,6 +157,7 @@ __exportStar(require("./token.payload.dto"), exports);
|
|
|
155
157
|
__exportStar(require("./ui.action.attributes.dto"), exports);
|
|
156
158
|
__exportStar(require("./ui.action.role.attributes.dto"), exports);
|
|
157
159
|
__exportStar(require("./upi.vpa.payload.dto"), exports);
|
|
160
|
+
__exportStar(require("./user.business.secret.attributes.dto"), exports);
|
|
158
161
|
__exportStar(require("./user.notification.attributes.dto"), exports);
|
|
159
162
|
__exportStar(require("./user.notification.list.filter.dto"), exports);
|
|
160
163
|
__exportStar(require("./user.preference.attributes.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAAA,wDAAsC;AAAA,qEAAmD;AAAA,gEAA8C;AAAA,gEAA8C;AAAA,kFAAgE;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,gEAA8C;AAAA,2EAAyD;AAAA,uDAAqC;AAAA,yDAAuC;AAAA,mEAAiD;AAAA,+DAA6C;AAAA,4EAA0D;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,sDAAoC;AAAA,gDAA8B;AAAA,4DAA0C;AAAA,oDAAkC;AAAA,+DAA6C;AAAA,gEAA8C;AAAA,mEAAiD;AAAA,6DAA2C;AAAA,2EAAyD;AAAA,qEAAmD;AAAA,gEAA8C;AAAA,4EAA0D;AAAA,uFAAqE;AAAA,iFAA+D;AAAA,qFAAmE;AAAA,kEAAgD;AAAA,iEAA+C;AAAA,6FAA2E;AAAA,uDAAqC;AAAA,uEAAqD;AAAA,iEAA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;AAAA,iEAA+C;AAAA,yEAAuD;AAAA,sDAAoC;AAAA,oDAAkC;AAAA,sDAAoC;AAAA,6DAA2C;AAAA,kEAAgD;AAAA,wDAAsC;AAAA,wEAAsD;AAAA,qEAAmD;AAAA,sEAAoD;AAAA,mEAAiD;AAAA,6DAA2C;AAAA,wEAAsD;AAAA,iEAA+C;AAAA,+DAA6C;AAAA,gEAA8C;AAAA,gEAA8C;AAAA,oEAAkD;AAAA,iEAA+C;AAAA,qEAAmD;AAAA,+EAA4D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserBusinessSecretAttributesDto = void 0;
|
|
4
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
5
|
+
class UserBusinessSecretAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
|
|
6
|
+
}
|
|
7
|
+
exports.UserBusinessSecretAttributesDto = UserBusinessSecretAttributesDto;
|
|
8
|
+
//# sourceMappingURL=user.business.secret.attributes.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.business.secret.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/user.business.secret.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,+BAAgC,SAAQ,6CAAmB;CAAG;AAA3E,0EAA2E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommonAttributesDto, CommonEntity, ReportEntity } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { AccessBusinessEntity } from './access.business.entity';
|
|
3
|
+
export declare class BusinessDownloadableReportEntity extends CommonEntity {
|
|
4
|
+
sys_report_id: number;
|
|
5
|
+
business_id: number;
|
|
6
|
+
active: boolean;
|
|
7
|
+
attributes: CommonAttributesDto;
|
|
8
|
+
sys_report: ReportEntity;
|
|
9
|
+
business: AccessBusinessEntity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.BusinessDownloadableReportEntity = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const access_business_entity_1 = require("./access.business.entity");
|
|
16
|
+
let BusinessDownloadableReportEntity = class BusinessDownloadableReportEntity extends nestjs_utility_services_1.CommonEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.BusinessDownloadableReportEntity = BusinessDownloadableReportEntity;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], BusinessDownloadableReportEntity.prototype, "sys_report_id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], BusinessDownloadableReportEntity.prototype, "business_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)(),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], BusinessDownloadableReportEntity.prototype, "active", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)('json'),
|
|
33
|
+
__metadata("design:type", nestjs_utility_services_1.CommonAttributesDto)
|
|
34
|
+
], BusinessDownloadableReportEntity.prototype, "attributes", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.ReportEntity),
|
|
37
|
+
(0, typeorm_1.JoinColumn)({ name: 'sys_report_id' }),
|
|
38
|
+
__metadata("design:type", nestjs_utility_services_1.ReportEntity)
|
|
39
|
+
], BusinessDownloadableReportEntity.prototype, "sys_report", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
|
|
42
|
+
(0, typeorm_1.JoinColumn)({ name: 'business_id' }),
|
|
43
|
+
__metadata("design:type", access_business_entity_1.AccessBusinessEntity)
|
|
44
|
+
], BusinessDownloadableReportEntity.prototype, "business", void 0);
|
|
45
|
+
exports.BusinessDownloadableReportEntity = BusinessDownloadableReportEntity = __decorate([
|
|
46
|
+
(0, typeorm_1.Entity)('utl_business_downloadable_reports')
|
|
47
|
+
], BusinessDownloadableReportEntity);
|
|
48
|
+
//# sourceMappingURL=business.downloadable.report.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business.downloadable.report.entity.js","sourceRoot":"","sources":["../../../src/access/entities/business.downloadable.report.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAyG;AACzG,qCAAgE;AAChE,qEAAgE;AASzD,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,sCAAY;CAgBjE,CAAA;AAhBY,4EAAgC;AAEzC;IADC,IAAA,gBAAM,GAAE;;uEACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;qEACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;gEACO;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,6CAAmB;oEAAC;AAGsC;IAArE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sCAAY,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;8BAAa,sCAAY;oEAAC;AACnB;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;kEAAC;2CAflG,gCAAgC;IAD5C,IAAA,gBAAM,EAAC,mCAAmC,CAAC;GAC/B,gCAAgC,CAgB5C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CommonAttributesDto, CommonEntity, LookupValueEntity, ReportEntity } from '@servicelabsco/nestjs-utility-services';
|
|
2
|
+
import { AccessBusinessEntity } from './access.business.entity';
|
|
3
|
+
export declare class BusinessReportEntity extends CommonEntity {
|
|
4
|
+
business_id: number;
|
|
5
|
+
sys_report_id: number;
|
|
6
|
+
url: string;
|
|
7
|
+
processed_at: Date;
|
|
8
|
+
type_id: number;
|
|
9
|
+
comment: string;
|
|
10
|
+
params: any;
|
|
11
|
+
attributes: CommonAttributesDto;
|
|
12
|
+
sys_report: ReportEntity;
|
|
13
|
+
business: AccessBusinessEntity;
|
|
14
|
+
type: LookupValueEntity;
|
|
15
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.BusinessReportEntity = void 0;
|
|
13
|
+
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const access_business_entity_1 = require("./access.business.entity");
|
|
16
|
+
let BusinessReportEntity = class BusinessReportEntity extends nestjs_utility_services_1.CommonEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.BusinessReportEntity = BusinessReportEntity;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], BusinessReportEntity.prototype, "business_id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], BusinessReportEntity.prototype, "sys_report_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Column)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], BusinessReportEntity.prototype, "url", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)(),
|
|
33
|
+
__metadata("design:type", Date)
|
|
34
|
+
], BusinessReportEntity.prototype, "processed_at", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], BusinessReportEntity.prototype, "type_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], BusinessReportEntity.prototype, "comment", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)('json'),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], BusinessReportEntity.prototype, "params", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)('json'),
|
|
49
|
+
__metadata("design:type", nestjs_utility_services_1.CommonAttributesDto)
|
|
50
|
+
], BusinessReportEntity.prototype, "attributes", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.ReportEntity),
|
|
53
|
+
(0, typeorm_1.JoinColumn)({ name: 'sys_report_id' }),
|
|
54
|
+
__metadata("design:type", nestjs_utility_services_1.ReportEntity)
|
|
55
|
+
], BusinessReportEntity.prototype, "sys_report", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
|
|
58
|
+
(0, typeorm_1.JoinColumn)({ name: 'business_id' }),
|
|
59
|
+
__metadata("design:type", access_business_entity_1.AccessBusinessEntity)
|
|
60
|
+
], BusinessReportEntity.prototype, "business", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.LookupValueEntity),
|
|
63
|
+
(0, typeorm_1.JoinColumn)({ name: 'type_id' }),
|
|
64
|
+
__metadata("design:type", nestjs_utility_services_1.LookupValueEntity)
|
|
65
|
+
], BusinessReportEntity.prototype, "type", void 0);
|
|
66
|
+
exports.BusinessReportEntity = BusinessReportEntity = __decorate([
|
|
67
|
+
(0, typeorm_1.Entity)('bz_business_reports')
|
|
68
|
+
], BusinessReportEntity);
|
|
69
|
+
//# sourceMappingURL=business.report.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business.report.entity.js","sourceRoot":"","sources":["../../../src/access/entities/business.report.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA4H;AAC5H,qCAAgE;AAChE,qEAAgE;AASzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,sCAAY;CA6BrD,CAAA;AA7BY,oDAAoB;AAE7B;IADC,IAAA,gBAAM,GAAE;;yDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;2DACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;iDACG;AAGZ;IADC,IAAA,gBAAM,GAAE;8BACK,IAAI;0DAAC;AAGnB;IADC,IAAA,gBAAM,GAAE;;qDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;qDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;oDACH;AAGZ;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,6CAAmB;wDAAC;AAGsC;IAArE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sCAAY,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;8BAAa,sCAAY;wDAAC;AACnB;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;sDAAC;AACtC;IAApE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,2CAAiB;kDAAC;+BA5BpF,oBAAoB;IADhC,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,oBAAoB,CA6BhC"}
|