@sachin9822/reports-lib 0.0.212 → 0.0.214
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/esm2020/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.mjs +240 -0
- package/esm2020/lib/components/accounting-report/accounting-report.component.mjs +596 -0
- package/esm2020/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.mjs +218 -0
- package/esm2020/lib/components/branch-activity-send-report/branch-activity-send-report.component.mjs +243 -0
- package/esm2020/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.mjs +700 -0
- package/esm2020/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.mjs +255 -0
- package/esm2020/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.mjs +192 -0
- package/esm2020/lib/components/funding-report/funding-report.component.mjs +198 -0
- package/esm2020/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.mjs +244 -0
- package/esm2020/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.mjs +776 -0
- package/esm2020/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.mjs +266 -0
- package/esm2020/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.mjs +311 -0
- package/esm2020/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.mjs +658 -0
- package/esm2020/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.mjs +2 -0
- package/esm2020/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.mjs +2 -0
- package/esm2020/lib/models/accounting-report/accounting-report-branch-group.mjs +2 -0
- package/esm2020/lib/models/accounting-report/accounting-report-entry-model.mjs +2 -0
- package/esm2020/lib/models/accounting-report/accounting-report-model.mjs +2 -0
- package/esm2020/lib/models/accounting-report/accounting-report-sub-group.mjs +2 -0
- package/esm2020/lib/models/app-config.model.mjs +2 -0
- package/esm2020/lib/models/branch-activity-receive-report/branch-activity-receive.model.mjs +2 -0
- package/esm2020/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.mjs +6 -0
- package/esm2020/lib/models/branch-activity-report/branch-activity-send-report.mjs +3 -0
- package/esm2020/lib/models/cancellation-transaction-report/cancellation-transaction.model.mjs +10 -0
- package/esm2020/lib/models/component-loading-states.mjs +7 -0
- package/esm2020/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.mjs +5 -0
- package/esm2020/lib/models/revenue-per-transaction-report/revenue-per-transaction.model.mjs +2 -0
- package/esm2020/lib/models/statement-of-account-report/statement-of-accounts.model.mjs +2 -0
- package/esm2020/lib/models/transaction-enquiry-report/transaction-enquiry.model.mjs +8 -0
- package/esm2020/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.mjs +6 -0
- package/esm2020/lib/models/transaction-monitoring-report/transaction-monitoring-report.mjs +5 -0
- package/esm2020/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.mjs +3 -0
- package/esm2020/lib/reports-lib-routing.module.mjs +24 -0
- package/esm2020/lib/reports-lib.component.mjs +22 -0
- package/esm2020/lib/reports-lib.module.mjs +172 -0
- package/esm2020/lib/reports-lib.service.mjs +14 -0
- package/esm2020/lib/services/config.service.mjs +39 -0
- package/esm2020/lib/services/report.service.mjs +374 -0
- package/esm2020/lib/shared/export-generic.service.mjs +443 -0
- package/esm2020/lib/shared/export.service.mjs +379 -0
- package/esm2020/lib/shared/loader/loader.component.mjs +11 -0
- package/esm2020/lib/shared/metadata/metadata.component.mjs +51 -0
- package/esm2020/lib/shared/page-size-selector/page-size-selector.component.mjs +44 -0
- package/esm2020/lib/shared/search-filter/search-filter.component.mjs +2134 -0
- package/esm2020/lib/shared/shared.module.mjs +21 -0
- package/esm2020/public-api.mjs +41 -0
- package/esm2020/sachin9822-reports-lib.mjs +5 -0
- package/fesm2015/sachin9822-reports-lib.mjs +8429 -0
- package/fesm2015/sachin9822-reports-lib.mjs.map +1 -0
- package/fesm2020/sachin9822-reports-lib.mjs +8411 -0
- package/fesm2020/sachin9822-reports-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.d.ts +70 -0
- package/lib/components/accounting-report/accounting-report.component.d.ts +76 -0
- package/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.d.ts +58 -0
- package/lib/components/branch-activity-send-report/branch-activity-send-report.component.d.ts +69 -0
- package/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.d.ts +78 -0
- package/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.d.ts +95 -0
- package/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.d.ts +55 -0
- package/lib/components/funding-report/funding-report.component.d.ts +55 -0
- package/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.d.ts +57 -0
- package/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.d.ts +109 -0
- package/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.d.ts +76 -0
- package/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.d.ts +68 -0
- package/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.d.ts +72 -0
- package/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.d.ts +8 -0
- package/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.d.ts +18 -0
- package/lib/models/accounting-report/accounting-report-branch-group.d.ts +6 -0
- package/lib/models/accounting-report/accounting-report-entry-model.d.ts +24 -0
- package/lib/models/accounting-report/accounting-report-model.d.ts +6 -0
- package/{src/lib/models/accounting-report/accounting-report-sub-group.ts → lib/models/accounting-report/accounting-report-sub-group.d.ts} +2 -3
- package/{src/lib/models/app-config.model.ts → lib/models/app-config.model.d.ts} +7 -8
- package/lib/models/branch-activity-receive-report/branch-activity-receive.model.d.ts +18 -0
- package/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.d.ts +13 -0
- package/lib/models/branch-activity-report/branch-activity-send-report.d.ts +24 -0
- package/lib/models/cancellation-transaction-report/cancellation-transaction.model.d.ts +44 -0
- package/lib/models/component-loading-states.d.ts +5 -0
- package/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.d.ts +26 -0
- package/{src/lib/models/revenue-per-transaction-report/revenue-per-transaction.model.ts → lib/models/revenue-per-transaction-report/revenue-per-transaction.model.d.ts} +1 -1
- package/lib/models/statement-of-account-report/statement-of-accounts.model.d.ts +18 -0
- package/lib/models/transaction-enquiry-report/transaction-enquiry.model.d.ts +113 -0
- package/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.d.ts +13 -0
- package/lib/models/transaction-monitoring-report/transaction-monitoring-report.d.ts +23 -0
- package/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.d.ts +39 -0
- package/lib/reports-lib-routing.module.d.ts +7 -0
- package/lib/reports-lib.component.d.ts +8 -0
- package/lib/reports-lib.module.d.ts +33 -0
- package/lib/reports-lib.service.d.ts +6 -0
- package/lib/services/config.service.d.ts +20 -0
- package/lib/services/report.service.d.ts +80 -0
- package/lib/shared/export-generic.service.d.ts +50 -0
- package/lib/shared/export.service.d.ts +32 -0
- package/lib/shared/loader/loader.component.d.ts +5 -0
- package/lib/shared/metadata/metadata.component.d.ts +24 -0
- package/lib/shared/page-size-selector/page-size-selector.component.d.ts +15 -0
- package/lib/shared/search-filter/search-filter.component.d.ts +127 -0
- package/lib/shared/shared.module.d.ts +11 -0
- package/package.json +31 -16
- package/{src/public-api.ts → public-api.d.ts} +7 -17
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -17
- package/src/assets/images/BreadcrumbArrow.png +0 -0
- package/src/assets/images/XMCoral.png +0 -0
- package/src/lib/assets/images/Search.svg +0 -10
- package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.html +0 -27
- package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.scss +0 -46
- package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.spec.ts +0 -23
- package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.ts +0 -292
- package/src/lib/components/accounting-report/accounting-report.component.html +0 -64
- package/src/lib/components/accounting-report/accounting-report.component.scss +0 -24
- package/src/lib/components/accounting-report/accounting-report.component.spec.ts +0 -23
- package/src/lib/components/accounting-report/accounting-report.component.ts +0 -738
- package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.html +0 -46
- package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.scss +0 -2
- package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.spec.ts +0 -23
- package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.ts +0 -247
- package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.html +0 -46
- package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.scss +0 -3
- package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.spec.ts +0 -23
- package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.ts +0 -276
- package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.html +0 -51
- package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.scss +0 -7
- package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.spec.ts +0 -23
- package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.ts +0 -840
- package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.html +0 -68
- package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.scss +0 -65
- package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.spec.ts +0 -23
- package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.ts +0 -290
- package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.html +0 -25
- package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.scss +0 -1
- package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.spec.ts +0 -23
- package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.ts +0 -213
- package/src/lib/components/funding-report/funding-report.component.html +0 -49
- package/src/lib/components/funding-report/funding-report.component.scss +0 -1
- package/src/lib/components/funding-report/funding-report.component.spec.ts +0 -23
- package/src/lib/components/funding-report/funding-report.component.ts +0 -221
- package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.html +0 -26
- package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.scss +0 -1
- package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.spec.ts +0 -23
- package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.ts +0 -267
- package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.html +0 -95
- package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.scss +0 -54
- package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.spec.ts +0 -23
- package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.ts +0 -904
- package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.html +0 -49
- package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.scss +0 -2
- package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.spec.ts +0 -32
- package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.ts +0 -304
- package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.html +0 -46
- package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.scss +0 -7
- package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.ts +0 -343
- package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.html +0 -25
- package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.scss +0 -23
- package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.spec.ts +0 -23
- package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.ts +0 -745
- package/src/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.ts +0 -10
- package/src/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.ts +0 -20
- package/src/lib/models/accounting-report/accounting-report-branch-group.ts +0 -7
- package/src/lib/models/accounting-report/accounting-report-entry-model.ts +0 -25
- package/src/lib/models/accounting-report/accounting-report-model.ts +0 -7
- package/src/lib/models/branch-activity-receive-report/branch-activity-receive.model.ts +0 -18
- package/src/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.ts +0 -16
- package/src/lib/models/branch-activity-report/branch-activity-send-report.ts +0 -26
- package/src/lib/models/cancellation-transaction-report/cancellation-transaction.model.ts +0 -65
- package/src/lib/models/component-loading-states.ts +0 -5
- package/src/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.ts +0 -28
- package/src/lib/models/statement-of-account-report/statement-of-accounts.model.ts +0 -21
- package/src/lib/models/transaction-enquiry-report/transaction-enquiry.model.ts +0 -127
- package/src/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.ts +0 -16
- package/src/lib/models/transaction-monitoring-report/transaction-monitoring-report.ts +0 -29
- package/src/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.ts +0 -46
- package/src/lib/reports-lib-routing.module.ts +0 -20
- package/src/lib/reports-lib.component.spec.ts +0 -23
- package/src/lib/reports-lib.component.ts +0 -20
- package/src/lib/reports-lib.module.ts +0 -102
- package/src/lib/reports-lib.service.spec.ts +0 -16
- package/src/lib/reports-lib.service.ts +0 -9
- package/src/lib/services/config.service.ts +0 -43
- package/src/lib/services/report.service.spec.ts +0 -16
- package/src/lib/services/report.service.ts +0 -463
- package/src/lib/shared/export-generic.service.ts +0 -557
- package/src/lib/shared/export.service.spec.ts +0 -16
- package/src/lib/shared/export.service.ts +0 -457
- package/src/lib/shared/loader/loader.component.html +0 -8
- package/src/lib/shared/loader/loader.component.scss +0 -52
- package/src/lib/shared/loader/loader.component.ts +0 -10
- package/src/lib/shared/metadata/metadata.component.html +0 -42
- package/src/lib/shared/metadata/metadata.component.scss +0 -95
- package/src/lib/shared/metadata/metadata.component.spec.ts +0 -23
- package/src/lib/shared/metadata/metadata.component.ts +0 -38
- package/src/lib/shared/page-size-selector/page-size-selector.component.html +0 -7
- package/src/lib/shared/page-size-selector/page-size-selector.component.scss +0 -42
- package/src/lib/shared/page-size-selector/page-size-selector.component.spec.ts +0 -23
- package/src/lib/shared/page-size-selector/page-size-selector.component.ts +0 -38
- package/src/lib/shared/search-filter/search-filter.component.html +0 -601
- package/src/lib/shared/search-filter/search-filter.component.scss +0 -203
- package/src/lib/shared/search-filter/search-filter.component.spec.ts +0 -23
- package/src/lib/shared/search-filter/search-filter.component.ts +0 -2387
- package/src/lib/shared/shared.module.ts +0 -13
- package/src/styles/ag-grid-report-style.scss +0 -71
- package/src/styles/common-ag-grid-style.scss +0 -146
- package/src/styles/common-report-style.scss +0 -395
- package/src/styles/common-style.scss +0 -615
- package/src/test.ts +0 -27
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- /package/{src/lib → lib}/assets/config/app-config.json +0 -0
- /package/{src → lib}/assets/images/Search.svg +0 -0
- /package/{src/lib → lib}/assets/images/XMLogo.png +0 -0
- /package/{src/lib → lib}/assets/svg-loaders/blue-tail-spin.svg +0 -0
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import {tap} from 'rxjs/operators';
|
|
3
|
-
import { IAppConfig } from '../models/app-config.model';
|
|
4
|
-
import { Injectable } from '@angular/core';
|
|
5
|
-
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
6
|
-
import { Observable , BehaviorSubject } from 'rxjs';
|
|
7
|
-
import * as _ from 'lodash';
|
|
8
|
-
|
|
9
|
-
@Injectable()
|
|
10
|
-
export class ConfigService {
|
|
11
|
-
private config: IAppConfig;
|
|
12
|
-
|
|
13
|
-
onConfigChanged: BehaviorSubject<any>;
|
|
14
|
-
|
|
15
|
-
constructor(private http: HttpClient) {}
|
|
16
|
-
|
|
17
|
-
load(url: string): Observable<any> {
|
|
18
|
-
return this.http.get(url).pipe(tap((json: any) => {
|
|
19
|
-
// Set the config
|
|
20
|
-
this.config = json;
|
|
21
|
-
|
|
22
|
-
// Create the behavior subject
|
|
23
|
-
this.onConfigChanged = new BehaviorSubject(this.config);
|
|
24
|
-
}));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
get get(): IAppConfig {
|
|
28
|
-
return this.config;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Set the new config from given object
|
|
33
|
-
*
|
|
34
|
-
* @param config
|
|
35
|
-
*/
|
|
36
|
-
setConfig(config: IAppConfig): void {
|
|
37
|
-
// Merge the config
|
|
38
|
-
this.config = _.merge({}, this.config, config);
|
|
39
|
-
|
|
40
|
-
// Trigger the event
|
|
41
|
-
this.onConfigChanged.next(this.config);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { ReportService } from './report.service';
|
|
4
|
-
|
|
5
|
-
describe('ReportService', () => {
|
|
6
|
-
let service: ReportService;
|
|
7
|
-
|
|
8
|
-
beforeEach(() => {
|
|
9
|
-
TestBed.configureTestingModule({});
|
|
10
|
-
service = TestBed.inject(ReportService);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it('should be created', () => {
|
|
14
|
-
expect(service).toBeTruthy();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,463 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { AccGlDetailsEnquiryReportModel } from '../models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { map, retry } from 'rxjs/operators';
|
|
6
|
-
import { BranchActivitySendReportRequestDomainModel } from '../models/branch-activity-report/branch-activity-send-report-request-domain-model';
|
|
7
|
-
import { BranchActivityReport } from '../models/branch-activity-report/branch-activity-send-report';
|
|
8
|
-
import { Product, User, Branch, TransactionData, PageLoadDataResponse, SearchCriteria } from '../models/transaction-enquiry-report/transaction-enquiry.model';
|
|
9
|
-
import { ConfigService } from './config.service';
|
|
10
|
-
import { BranchActivityReceiveReportModel } from '../models/branch-activity-receive-report/branch-activity-receive.model';
|
|
11
|
-
import { CancellationTransaction } from '../models/cancellation-transaction-report/cancellation-transaction.model';
|
|
12
|
-
import { RevenuePerTransactionResponseModel } from '../models/revenue-per-transaction-report/revenue-per-transaction.model';
|
|
13
|
-
import { StatementOfAccountRequest, StatementOfAccountResponse } from '../models/statement-of-account-report/statement-of-accounts.model';
|
|
14
|
-
import { AccountingReportModel } from '../models/accounting-report/accounting-report-model';
|
|
15
|
-
import { TrialBalanceReport } from '../models/trial-balance-accounts-report/trial-balance-accounts.models';
|
|
16
|
-
import { TransactionMonitoringRequestDomainModel } from '../models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model';
|
|
17
|
-
import { TransactionMonitoringReport } from '../models/transaction-monitoring-report/transaction-monitoring-report';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
@Injectable({
|
|
21
|
-
providedIn: 'root'
|
|
22
|
-
})
|
|
23
|
-
export class ReportService {
|
|
24
|
-
|
|
25
|
-
private reportServiceUrl: string;
|
|
26
|
-
// private reportUrl = '/api/v1/Report';
|
|
27
|
-
// private systemReportUrl = '/api/v1/CompanyConfiguration/SystemReports';
|
|
28
|
-
|
|
29
|
-
constructor(private http: HttpClient, private config: ConfigService) {
|
|
30
|
-
if (!this.config.get) {
|
|
31
|
-
throw new Error('ConfigService is not initialized. Ensure APP_INITIALIZER ran before using ReportService.');
|
|
32
|
-
}
|
|
33
|
-
this.reportServiceUrl = this.config.get.reportServiceUrl;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
public getAccGLDetailsReport(formattedDate: string | undefined, dateType: string): Observable<AccGlDetailsEnquiryReportModel> {
|
|
37
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/AccGlDetailsEnquiryReport/GetAccGLDetailsEnquiryReport/${formattedDate}/${dateType}`;
|
|
38
|
-
return this.http.get<AccGlDetailsEnquiryReportModel>(apiPath);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
getPayInAgents(): Observable<any[]> {
|
|
42
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/GetAllPayInAgents`;
|
|
43
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
44
|
-
return <any[]>response;
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
getBranchByAgent(code: string): Observable<any[]> {
|
|
49
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/GetBranchByAgent/${code}/BH`;
|
|
50
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
51
|
-
retry(2),
|
|
52
|
-
map(response => response)
|
|
53
|
-
return <any[]>response;
|
|
54
|
-
}));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
getParams(): Observable<any[]> {
|
|
58
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/GetBranchActivitySendReportParams`;
|
|
59
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
60
|
-
retry(2),
|
|
61
|
-
map(response => response)
|
|
62
|
-
return <any[]>response;
|
|
63
|
-
}));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
getBranchActivityReport(data: BranchActivitySendReportRequestDomainModel | any): Observable<Record<string, BranchActivityReport[]>> {
|
|
67
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/GetBranchActivitySendReport`;
|
|
68
|
-
return this.http.post(apiPath, data).pipe(map(response => {
|
|
69
|
-
return <Record<string, BranchActivityReport[]>>response;
|
|
70
|
-
}));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
public getUserNameFromSessionStorage(): string {
|
|
74
|
-
let fossilUserName = sessionStorage.getItem('fossilusername');
|
|
75
|
-
let ezremitusername = sessionStorage.getItem('ezremitusername');
|
|
76
|
-
if (fossilUserName) {
|
|
77
|
-
return fossilUserName.replace(/^"(.*)"$/, '$1');
|
|
78
|
-
} else {
|
|
79
|
-
return ezremitusername.replace(/^"(.*)"$/, '$1');
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
//Trasaction Enquiry Report Apis
|
|
84
|
-
// API 1: Get initial page load data
|
|
85
|
-
getPageLoadData(): Observable<PageLoadDataResponse> {
|
|
86
|
-
const url = `${this.reportServiceUrl}/api/v1/Report/TransactionEnquiry/pageLoadData`;
|
|
87
|
-
return this.http.get(url).pipe(
|
|
88
|
-
map(response => <PageLoadDataResponse>response)
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// API 2: Get branches by agent
|
|
93
|
-
getBranchesByAgent(agentCode: string): Observable<Branch[]> {
|
|
94
|
-
const url = `${this.reportServiceUrl}/api/v1/Report/TransactionEnquiry/branches/${agentCode}`;
|
|
95
|
-
return this.http.get(url).pipe(
|
|
96
|
-
map(response => <Branch[]>response)
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// API 4: Get users by branch
|
|
101
|
-
getUsersByBranch(businessPartnerCode: string, branchCode: string): Observable<User[]> {
|
|
102
|
-
const url = `${this.reportServiceUrl}/api/v1/Report/TransactionEnquiry/users/${businessPartnerCode}/${branchCode}`;
|
|
103
|
-
return this.http.get(url).pipe(
|
|
104
|
-
map(response => <User[]>response)
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// API 5: Search transactions
|
|
109
|
-
searchTransactions(data: any): Observable<TransactionData[]> {
|
|
110
|
-
const url = `${this.reportServiceUrl}/api/v1/Report/TransactionEnquiry/viewReport`;
|
|
111
|
-
return this.http.post(url, data).pipe(
|
|
112
|
-
map(response => <TransactionData[]>response)
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Branch Activity Receive Report API
|
|
117
|
-
getAllPayOutAgents(): Observable<any[]> {
|
|
118
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/BranchActivityReceive/GetAllPayoutAgents/`;
|
|
119
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
120
|
-
return <any[]>response;
|
|
121
|
-
}))
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
getBranchActivityReceiveParams(): Observable<any[]> {
|
|
125
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/BranchActivityReceive/GetBranchActivityReceiveReportParams`;
|
|
126
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
127
|
-
return <any[]>response;
|
|
128
|
-
}));
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
getBranchActivityReceivePayoutAgentBranch(code: string): Observable<any[]> {
|
|
132
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/BranchActivityReceive/GetBranchByPayoutAgent/${code}/BH`;
|
|
133
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
134
|
-
retry(2),
|
|
135
|
-
map(response => response)
|
|
136
|
-
return <any[]>response;
|
|
137
|
-
}));
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
getBranchActivityReceiveReport(data: any): Observable<Record<string, BranchActivityReceiveReportModel[]>> {
|
|
141
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/BranchActivityReceive/GetBranchActivityReceiveReport`;
|
|
142
|
-
return this.http.post(apiPath, data).pipe(map(response => {
|
|
143
|
-
return <Record<string, BranchActivityReceiveReportModel[]>>response;
|
|
144
|
-
}));
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
//Cancellation Transaction Report apis
|
|
148
|
-
//Api 1
|
|
149
|
-
loadDataforCancallation(): Observable<any> {
|
|
150
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/CancellationTransactionReport/pageLoadData`;
|
|
151
|
-
return this.http.get<any>(apiPath);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/** Api 2 - Get list of branches for an agent */
|
|
155
|
-
getBranches(agentCode: string): Observable<Branch[]> {
|
|
156
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/CancellationTransactionReport/branches/${agentCode}`;
|
|
157
|
-
return this.http.get<Branch[]>(apiPath).pipe(
|
|
158
|
-
map(response => response || [])
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
//Api 3
|
|
163
|
-
getCancellationReport(criteria: any): Observable<Record<string, CancellationTransaction[]>> {
|
|
164
|
-
const url = `${this.reportServiceUrl}/api/v1/Report/CancellationTransactionReport/viewReport`;
|
|
165
|
-
return this.http.post(url, criteria).pipe(map(response => {
|
|
166
|
-
return <Record<string, CancellationTransaction[]>>response;
|
|
167
|
-
}));
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// Revenue Per Transaction Report API
|
|
171
|
-
getAgentsForRevenuePerTransaction(): Observable<any[]> {
|
|
172
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/RevenuePerTransaction/GetAgentsForRevenuePerTransaction`;
|
|
173
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
174
|
-
return <any[]>response;
|
|
175
|
-
}))
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
getRevenuePerTransactionReportParams(): Observable<any> {
|
|
179
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/RevenuePerTransaction/GetRevenuePerTransactionParams`;
|
|
180
|
-
return this.http.get(apiPath);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
getRevenuePerTransactionReport(data: any): Observable<RevenuePerTransactionResponseModel[]> {
|
|
184
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/RevenuePerTransaction/GetRevenuePerTransactionReport`;
|
|
185
|
-
return this.http.post(apiPath, data).pipe(
|
|
186
|
-
map(response => {
|
|
187
|
-
return <RevenuePerTransactionResponseModel[]>response;
|
|
188
|
-
})
|
|
189
|
-
)
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
//Statement of Accounts Report
|
|
193
|
-
loadClientsForStatementOfAccounts(): Observable<any[]> {
|
|
194
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/StatementofAccounts/Clients`;
|
|
195
|
-
return this.http.get<any[]>(apiPath);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
checkClientForStatementOfAccounts(clientId: string): Observable<{ result: string }> {
|
|
199
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/StatementofAccounts/checkClient/${clientId}`;
|
|
200
|
-
return this.http.get<{ result: string }>(apiPath);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
getStatementOfAccount(criteria: StatementOfAccountRequest): Observable<StatementOfAccountResponse> {
|
|
204
|
-
const url = `${this.reportServiceUrl}/api/v1/Report/StatementofAccounts/statementOfAccount`;
|
|
205
|
-
return this.http.post<StatementOfAccountResponse>(url, criteria).pipe(
|
|
206
|
-
map(response => response || {
|
|
207
|
-
openingBalAndFunding: [],
|
|
208
|
-
sendDetails: [],
|
|
209
|
-
receiveDetails: []
|
|
210
|
-
})
|
|
211
|
-
);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
// Accounting Report
|
|
217
|
-
|
|
218
|
-
// Api 1 - get accounting report
|
|
219
|
-
getAccountingReport(object: any): Observable<AccountingReportModel> {
|
|
220
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/AccountingReport/GetAccountingReport`;
|
|
221
|
-
return this.http.post<AccountingReportModel>(apiPath, object).pipe(
|
|
222
|
-
map(response => response || undefined)
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
// Api 2 - get All clients
|
|
227
|
-
getClientsForAccountingReport(sysUserID: string): Observable<any[]> {
|
|
228
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/AccountingReport/GetAllPayInAgents/${sysUserID}`;
|
|
229
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
230
|
-
return <any[]>response;
|
|
231
|
-
}))
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
// Api 3 - get branch by agent or client
|
|
235
|
-
getBranchByAgentForAccountingReport(sysUserId: string, code: string): Observable<any[]> {
|
|
236
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/AccountingReport/GetBranchByAgent/${code}/${sysUserId}/BH`;
|
|
237
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
238
|
-
retry(2),
|
|
239
|
-
map(response => response)
|
|
240
|
-
return <any[]>response;
|
|
241
|
-
}));
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// Api 4 - get All transaction types ( products )
|
|
245
|
-
getTransactionTypesForAccountingReport(): Observable<Product[]> {
|
|
246
|
-
const url = `${this.reportServiceUrl}/api/v1/Report/AccountingReport/getTransactionTypes`;
|
|
247
|
-
return this.http.get(url).pipe(
|
|
248
|
-
map(response => <Product[]>response)
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
// Api 5 - get All currencies
|
|
253
|
-
getAllCurrenciesForAccountingReport(): Observable<any[]> {
|
|
254
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/AccountingReport/getAllCurrencies`;
|
|
255
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
256
|
-
return <any[]>response;
|
|
257
|
-
}))
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
// Api 6 - get All Transaction Status
|
|
261
|
-
getAllTransactionStatusForAccountingReport(): Observable<any[]> {
|
|
262
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/AccountingReport/GetAllTransactionStatus`;
|
|
263
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
264
|
-
return <any[]>response;
|
|
265
|
-
}))
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
// Api 7 - get All Countries
|
|
269
|
-
getAllCountriesForAccountingReport(): Observable<any[]> {
|
|
270
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/AccountingReport/GetAllCountries`;
|
|
271
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
272
|
-
return <any[]>response;
|
|
273
|
-
}))
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
// Trial Balance - Accounts Report
|
|
278
|
-
|
|
279
|
-
// Api 1 - Get Trial Balance - Accounts report
|
|
280
|
-
getTrialBalanceAccountsReport(object: any): Observable<TrialBalanceReport> {
|
|
281
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetTrialBalanceAccountsReport`;
|
|
282
|
-
return this.http.post<TrialBalanceReport>(apiPath, object).pipe(
|
|
283
|
-
map(response => response || undefined)
|
|
284
|
-
);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// Api 2 - Get Business Unit
|
|
288
|
-
GetBusinessUnitForTrialBalanceAccountsReport(): Observable<any[]> {
|
|
289
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetBusinessUnit`;
|
|
290
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
291
|
-
return <any[]>response;
|
|
292
|
-
}))
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// Api 3 - Get Account Status
|
|
296
|
-
GetAccountStatusForTrialBalanceAccountsReport(): Observable<any[]> {
|
|
297
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetAccountStatus`;
|
|
298
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
299
|
-
return <any[]>response;
|
|
300
|
-
}))
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
// Api 4 - Get Date Type
|
|
304
|
-
GetDateTypeForTrialBalanceAccountsReport(): Observable<any[]> {
|
|
305
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetDateType`;
|
|
306
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
307
|
-
return <any[]>response;
|
|
308
|
-
}))
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
// Api 5 - Get Year
|
|
312
|
-
GetYearForTrialBalanceAccountsReport(): Observable<any[]> {
|
|
313
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetFinancialYear`;
|
|
314
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
315
|
-
return <any[]>response;
|
|
316
|
-
}))
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
// Api 6 - Get From Months
|
|
320
|
-
GetFromMonthsForTrialBalanceAccountsReport(): Observable<any[]> {
|
|
321
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetFromMonths`;
|
|
322
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
323
|
-
return <any[]>response;
|
|
324
|
-
}))
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
// Api 7 - Get To Months
|
|
328
|
-
GetToMonthsForTrialBalanceAccountsReport(year: number, month: number): Observable<any[]> {
|
|
329
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetToMonths/${year}/${month}`;
|
|
330
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
331
|
-
return <any[]>response;
|
|
332
|
-
}))
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
// Api 8 - Get From Dates
|
|
336
|
-
GetFromDatesForTrialBalanceAccountsReport(year: number, fromMonthLabel: string): Observable<any[]> {
|
|
337
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetFromDates/${year}/${fromMonthLabel}`;
|
|
338
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
339
|
-
return <any[]>response;
|
|
340
|
-
}))
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
// Api 9 - Get To Dates
|
|
344
|
-
GetToDatesForTrialBalanceAccountsReport(object: any): Observable<any[]> {
|
|
345
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetToDates`;
|
|
346
|
-
return this.http.post(apiPath, object).pipe(map(response => {
|
|
347
|
-
return <any[]>response;
|
|
348
|
-
}))
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
// Api 10 - Get Currencies
|
|
352
|
-
GetCurrenciesForTrialBalanceAccountsReport(): Observable<any[]> {
|
|
353
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetCurrencies`;
|
|
354
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
355
|
-
return <any[]>response;
|
|
356
|
-
}))
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
// Api 11 - Get default month,year
|
|
360
|
-
GetParamDateDefaultForTrialBalanceAccountsReport(): Observable<any[]> {
|
|
361
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TrialBalanceAccountsReport/GetParamDateDefault`;
|
|
362
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
363
|
-
return <any[]>response;
|
|
364
|
-
}))
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
//Credit Limit Status Enquiry Report APIs
|
|
369
|
-
getClientsForCreditLimitStatusEnquiryReport(): Observable<any[]> {
|
|
370
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/CreditLimitStatusEnquiry/GetBusinessPartners`;
|
|
371
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
372
|
-
return <any[]>response;
|
|
373
|
-
}));
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
getTransactionTypesForCreditLimitStatusEnquiryReport(): Observable<any[]> {
|
|
377
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/CreditLimitStatusEnquiry/GetTransactionStatus`;
|
|
378
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
379
|
-
return <any[]>response;
|
|
380
|
-
}));
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
getCreditLimitStatusEnquiryReport(model: any): Observable<any[]> {
|
|
384
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/CreditLimitStatusEnquiry/GetCreditLimitStatusEnquiryReport`;
|
|
385
|
-
return this.http.post(apiPath, model).pipe(map(response => {
|
|
386
|
-
return <any[]>response;
|
|
387
|
-
}))
|
|
388
|
-
}
|
|
389
|
-
//Funding Report
|
|
390
|
-
getFundingReport(criteria: any): Observable<any> {
|
|
391
|
-
const url = `${this.reportServiceUrl}/api/v1/Report/Funding/viewReport`;
|
|
392
|
-
return this.http.post(url, criteria).pipe(
|
|
393
|
-
map(response => response || {})
|
|
394
|
-
);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
//Branch Activity Send Summary Report
|
|
398
|
-
getPayInAgentforSendSummaryReport(): Observable<any[]> {
|
|
399
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/SendSummaryReport/GetAllPayInAgents`;
|
|
400
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
401
|
-
return <any[]>response;
|
|
402
|
-
}));
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
getBranchByAgentForSendSummaryReport(code: string): Observable<any[]> {
|
|
406
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/SendSummaryReport/GetBranchByAgent/${code}/BH`;
|
|
407
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
408
|
-
retry(2),
|
|
409
|
-
map(response => response)
|
|
410
|
-
return <any[]>response;
|
|
411
|
-
}));
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
getParamsForSendSummaryReport(): Observable<any[]> {
|
|
415
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/SendSummaryReport/GetBranchActivitySendSummaryReportParams`;
|
|
416
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
417
|
-
retry(2),
|
|
418
|
-
map(response => response)
|
|
419
|
-
return <any[]>response;
|
|
420
|
-
}));
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
getBranchActivitySendSummaryReport(data: BranchActivitySendReportRequestDomainModel | any): Observable<Record<string, BranchActivityReport[]>> {
|
|
424
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/SendSummaryReport/GetBranchActivitySendSummaryReport`;
|
|
425
|
-
return this.http.post(apiPath, data).pipe(map(response => {
|
|
426
|
-
return <Record<string, BranchActivityReport[]>>response;
|
|
427
|
-
}));
|
|
428
|
-
}
|
|
429
|
-
//Transaction monitoring Report.
|
|
430
|
-
|
|
431
|
-
getParamsForTransactionMonitoringReport(): Observable<any[]> {
|
|
432
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TransactionMonitoringReport/TransactionMonitoringReportParams`;
|
|
433
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
434
|
-
retry(2),
|
|
435
|
-
map(response => response)
|
|
436
|
-
return <any[]>response;
|
|
437
|
-
}));
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
getBranchByAgentForTransactionMonitoringReport(code: string): Observable<any[]> {
|
|
441
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TransactionMonitoringReport/GetBranchByAgent/${code}/BH`;
|
|
442
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
443
|
-
retry(2),
|
|
444
|
-
map(response => response)
|
|
445
|
-
return <any[]>response;
|
|
446
|
-
}));
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
getPayInAgentforTransactionMonitoringReport(): Observable<any[]> {
|
|
450
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TransactionMonitoringReport/GetAllPayInAgents`;
|
|
451
|
-
return this.http.get(apiPath).pipe(map(response => {
|
|
452
|
-
return <any[]>response;
|
|
453
|
-
}));
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
getTransactionMonitoringReport(data: TransactionMonitoringRequestDomainModel | any): Observable<Record<string, TransactionMonitoringReport[]>> {
|
|
458
|
-
const apiPath = `${this.reportServiceUrl}/api/v1/Report/TransactionMonitoringReport/GetTransactionMonitoringReport`;
|
|
459
|
-
return this.http.post(apiPath, data).pipe(map(response => {
|
|
460
|
-
return <Record<string, TransactionMonitoringReport[]>>response;
|
|
461
|
-
}));
|
|
462
|
-
}
|
|
463
|
-
}
|