@servicelabsco/slabs-access-manager 0.1.124 → 0.1.125
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.
|
@@ -34,12 +34,15 @@ let DashboardComponentController = class DashboardComponentController {
|
|
|
34
34
|
async getAllDashboards(params) {
|
|
35
35
|
const business = await this.accessBusinessService.validateAccess();
|
|
36
36
|
const user = nestjs_utility_services_1.Auth.user();
|
|
37
|
-
return dashboard_entity_1.DashboardEntity.findOne({
|
|
37
|
+
return dashboard_entity_1.DashboardEntity.findOne({
|
|
38
|
+
where: { identifier: params.slug },
|
|
39
|
+
relations: ['components.custom_report.summary', 'components.custom_report.trend', 'components.custom_report.listing'],
|
|
40
|
+
});
|
|
38
41
|
}
|
|
39
42
|
async allReports() {
|
|
40
43
|
const business = await this.accessBusinessService.validateAccess();
|
|
41
44
|
const user = nestjs_utility_services_1.Auth.user();
|
|
42
|
-
return custom_report_entity_1.CustomReportEntity.find({ where: { product_id: user?.attributes?.product_id } });
|
|
45
|
+
return custom_report_entity_1.CustomReportEntity.find({ where: { product_id: user?.attributes?.product_id }, relations: ['summary', 'trend', 'listing', 'type'] });
|
|
43
46
|
}
|
|
44
47
|
};
|
|
45
48
|
exports.DashboardComponentController = DashboardComponentController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.component.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/dashboard.component.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAA8D;AAC9D,qFAA+E;AAC/E,mEAA8D;AAC9D,2EAAsE;AACtE,mEAA+D;AAC/D,0FAAqF;AACrF,iFAA4E;AAQrE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACrC,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAGvE,AAAN,KAAK,CAAC,MAAM,CAAS,IAA8B;QAC/C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,IAAI,CAAC,QAAQ;YAAE,OAAO;QAEtB,OAAO,IAAI,uDAAyB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CAAU,MAAwB;QACpD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,MAAM,IAAI,GAAG,8BAAI,CAAC,IAAI,EAAE,CAAC;QAEzB,OAAO,kCAAe,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"dashboard.component.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/dashboard.component.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAA8D;AAC9D,qFAA+E;AAC/E,mEAA8D;AAC9D,2EAAsE;AACtE,mEAA+D;AAC/D,0FAAqF;AACrF,iFAA4E;AAQrE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACrC,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAGvE,AAAN,KAAK,CAAC,MAAM,CAAS,IAA8B;QAC/C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,IAAI,CAAC,QAAQ;YAAE,OAAO;QAEtB,OAAO,IAAI,uDAAyB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CAAU,MAAwB;QACpD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,CAAC;QACnE,MAAM,IAAI,GAAG,8BAAI,CAAC,IAAI,EAAE,CAAC;QAEzB,OAAO,kCAAe,CAAC,OAAO,CAAC;YAC3B,KAAK,EAAE,EAAE,UAAU,EAAE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