quankee-framework-report 1.5.2 → 1.5.3

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.
@@ -20,6 +20,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
20
20
  }]
21
21
  }], ctorParameters: () => [{ type: i1.HttpClient }] });
22
22
 
23
+ class ReportDataSourceService {
24
+ http;
25
+ constructor(http) {
26
+ this.http = http;
27
+ }
28
+ getReportDataSources(baseUrl) {
29
+ return this.http.get(`${baseUrl}/api/report/engine/data/source`);
30
+ }
31
+ registerDataSource(baseUrl, request) {
32
+ return this.http.post(`${baseUrl}/api/report/engine/data/source`, request);
33
+ }
34
+ updateDataSource(baseUrl, request) {
35
+ return this.http.put(`${baseUrl}/api/report/engine/data/source`, request);
36
+ }
37
+ deleteDataSource(baseUrl, reportDataSourceId) {
38
+ return this.http.delete(`${baseUrl}/api/report/engine/data/source/${reportDataSourceId}`);
39
+ }
40
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ReportDataSourceService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
41
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ReportDataSourceService, providedIn: 'root' });
42
+ }
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ReportDataSourceService, decorators: [{
44
+ type: Injectable,
45
+ args: [{
46
+ providedIn: 'root'
47
+ }]
48
+ }], ctorParameters: () => [{ type: i1.HttpClient }] });
49
+
23
50
  /*
24
51
  * Public API Surface of quankee-framework-report
25
52
  */
@@ -28,5 +55,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
28
55
  * Generated bundle index. Do not edit.
29
56
  */
30
57
 
31
- export { ReportModuleService };
58
+ export { ReportDataSourceService, ReportModuleService };
32
59
  //# sourceMappingURL=quankee-framework-report.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"quankee-framework-report.mjs","sources":["../../../projects/quankee-framework-report/src/lib/core/module/report-module.service.ts","../../../projects/quankee-framework-report/src/public-api.ts","../../../projects/quankee-framework-report/src/quankee-framework-report.ts"],"sourcesContent":["import {HttpClient} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {Response} from 'quankee-framework-response';\nimport {ReportModule} from './report-module';\nimport {Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ReportModuleService {\n\n constructor(private readonly http: HttpClient) { }\n\n getReportModules(baseUrl: string): Observable<Response<ReportModule[]>> {\n return this.http.get<Response<ReportModule[]>>(`${baseUrl}/api/report/engine/module`);\n }\n}\n","/*\n * Public API Surface of quankee-framework-report\n */\n\n\nexport * from './lib/core/module/report-module';\n\nexport * from './lib/core/module/report-module.service'\n\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MASa,mBAAmB,CAAA;AAED,IAAA,IAAA;AAA7B,IAAA,WAAA,CAA6B,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI;;AAEjC,IAAA,gBAAgB,CAAC,OAAe,EAAA;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA2B,CAAG,EAAA,OAAO,CAA2B,yBAAA,CAAA,CAAC;;wGAL5E,mBAAmB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,cAFlB,MAAM,EAAA,CAAA;;4FAEP,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAH/B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACRD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"quankee-framework-report.mjs","sources":["../../../projects/quankee-framework-report/src/lib/core/module/report-module.service.ts","../../../projects/quankee-framework-report/src/lib/core/data/source/report-data-source.service.ts","../../../projects/quankee-framework-report/src/public-api.ts","../../../projects/quankee-framework-report/src/quankee-framework-report.ts"],"sourcesContent":["import {HttpClient} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {Response} from 'quankee-framework-response';\nimport {ReportModule} from './report-module';\nimport {Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ReportModuleService {\n\n constructor(private readonly http: HttpClient) { }\n\n getReportModules(baseUrl: string): Observable<Response<ReportModule[]>> {\n return this.http.get<Response<ReportModule[]>>(`${baseUrl}/api/report/engine/module`);\n }\n}\n","import {HttpClient} from '@angular/common/http';\nimport {Injectable} from '@angular/core';\nimport {Observable} from 'rxjs';\nimport {Response} from 'quankee-framework-response';\nimport {ReportDataSource} from './report-data-source';\nimport {ReportDataSourceRequest} from './report-data-source-request';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ReportDataSourceService {\n\n constructor(private readonly http: HttpClient) {}\n\n getReportDataSources(baseUrl: string): Observable<Response<ReportDataSource[]>> {\n return this.http.get<Response<ReportDataSource[]>>(`${baseUrl}/api/report/engine/data/source`);\n }\n\n registerDataSource(baseUrl: string, request: ReportDataSourceRequest): Observable<Response<string>> {\n return this.http.post<Response<string>>(`${baseUrl}/api/report/engine/data/source`, request);\n }\n\n updateDataSource(baseUrl: string, request: ReportDataSourceRequest): Observable<Response<string>> {\n return this.http.put<Response<string>>(`${baseUrl}/api/report/engine/data/source`, request);\n }\n\n deleteDataSource(baseUrl: string,reportDataSourceId:string): Observable<Response<string>> {\n return this.http.delete<Response<string>>(`${baseUrl}/api/report/engine/data/source/${reportDataSourceId}`);\n }\n\n}\n","/*\n * Public API Surface of quankee-framework-report\n */\n\n\nexport * from './lib/core/module/report-module';\nexport * from './lib/core/data/source/report-data-source';\nexport * from './lib/core/data/source/report-data-source-request';\n\nexport * from './lib/core/module/report-module.service'\nexport * from './lib/core/data/source/report-data-source.service';\n\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MASa,mBAAmB,CAAA;AAED,IAAA,IAAA;AAA7B,IAAA,WAAA,CAA6B,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI;;AAEjC,IAAA,gBAAgB,CAAC,OAAe,EAAA;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA2B,CAAG,EAAA,OAAO,CAA2B,yBAAA,CAAA,CAAC;;wGAL5E,mBAAmB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,cAFlB,MAAM,EAAA,CAAA;;4FAEP,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAH/B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;MCEY,uBAAuB,CAAA;AAEL,IAAA,IAAA;AAA7B,IAAA,WAAA,CAA6B,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI;;AAEjC,IAAA,oBAAoB,CAAC,OAAe,EAAA;QAClC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAA+B,CAAG,EAAA,OAAO,CAAgC,8BAAA,CAAA,CAAC;;IAGhG,kBAAkB,CAAC,OAAe,EAAE,OAAgC,EAAA;AAClE,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAmB,CAAG,EAAA,OAAO,CAAgC,8BAAA,CAAA,EAAE,OAAO,CAAC;;IAG9F,gBAAgB,CAAC,OAAe,EAAE,OAAgC,EAAA;AAChE,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAmB,CAAG,EAAA,OAAO,CAAgC,8BAAA,CAAA,EAAE,OAAO,CAAC;;IAG7F,gBAAgB,CAAC,OAAe,EAAC,kBAAyB,EAAA;AACxD,QAAA,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAmB,CAAG,EAAA,OAAO,CAAkC,+BAAA,EAAA,kBAAkB,CAAE,CAAA,CAAC;;wGAjBlG,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAvB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFtB,MAAM,EAAA,CAAA;;4FAEP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACTD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,6 @@
1
+ import { ReportDataSource } from './report-data-source';
2
+ import { Language } from 'quankee-framework-language';
3
+ export interface ReportDataSourceRequest {
4
+ reportDataSource: ReportDataSource;
5
+ language: Language;
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface ReportDataSource {
2
+ reportDataSourceId: string;
3
+ name: string;
4
+ url: string;
5
+ driverClassName: string;
6
+ username: string;
7
+ password: string;
8
+ }
@@ -0,0 +1,16 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { Response } from 'quankee-framework-response';
4
+ import { ReportDataSource } from './report-data-source';
5
+ import { ReportDataSourceRequest } from './report-data-source-request';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ReportDataSourceService {
8
+ private readonly http;
9
+ constructor(http: HttpClient);
10
+ getReportDataSources(baseUrl: string): Observable<Response<ReportDataSource[]>>;
11
+ registerDataSource(baseUrl: string, request: ReportDataSourceRequest): Observable<Response<string>>;
12
+ updateDataSource(baseUrl: string, request: ReportDataSourceRequest): Observable<Response<string>>;
13
+ deleteDataSource(baseUrl: string, reportDataSourceId: string): Observable<Response<string>>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReportDataSourceService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReportDataSourceService>;
16
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quankee-framework-report",
3
3
  "description": "Quankee Framework Report Lib",
4
- "version": "1.5.2",
4
+ "version": "1.5.3",
5
5
  "author": {
6
6
  "email": "info@quankee.co.mz",
7
7
  "name": "Quankee Software, Lda",
package/public-api.d.ts CHANGED
@@ -1,2 +1,5 @@
1
1
  export * from './lib/core/module/report-module';
2
+ export * from './lib/core/data/source/report-data-source';
3
+ export * from './lib/core/data/source/report-data-source-request';
2
4
  export * from './lib/core/module/report-module.service';
5
+ export * from './lib/core/data/source/report-data-source.service';