@sachin9822/reports-lib 0.0.211 → 0.0.213

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.
Files changed (211) hide show
  1. package/karma.conf.js +44 -0
  2. package/ng-package.json +17 -0
  3. package/package.json +16 -31
  4. package/src/assets/images/BreadcrumbArrow.png +0 -0
  5. package/src/lib/assets/images/Search.svg +10 -0
  6. package/src/lib/assets/images/XMLogo.png +0 -0
  7. package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.html +27 -0
  8. package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.scss +46 -0
  9. package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.spec.ts +23 -0
  10. package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.ts +292 -0
  11. package/src/lib/components/accounting-report/accounting-report.component.html +64 -0
  12. package/src/lib/components/accounting-report/accounting-report.component.scss +24 -0
  13. package/src/lib/components/accounting-report/accounting-report.component.spec.ts +23 -0
  14. package/src/lib/components/accounting-report/accounting-report.component.ts +738 -0
  15. package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.html +46 -0
  16. package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.scss +2 -0
  17. package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.spec.ts +23 -0
  18. package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.ts +247 -0
  19. package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.html +46 -0
  20. package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.scss +3 -0
  21. package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.spec.ts +23 -0
  22. package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.ts +276 -0
  23. package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.html +51 -0
  24. package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.scss +7 -0
  25. package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.spec.ts +23 -0
  26. package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.ts +840 -0
  27. package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.html +68 -0
  28. package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.scss +65 -0
  29. package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.spec.ts +23 -0
  30. package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.ts +290 -0
  31. package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.html +25 -0
  32. package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.scss +1 -0
  33. package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.spec.ts +23 -0
  34. package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.ts +213 -0
  35. package/src/lib/components/funding-report/funding-report.component.html +49 -0
  36. package/src/lib/components/funding-report/funding-report.component.scss +1 -0
  37. package/src/lib/components/funding-report/funding-report.component.spec.ts +23 -0
  38. package/src/lib/components/funding-report/funding-report.component.ts +221 -0
  39. package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.html +26 -0
  40. package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.scss +1 -0
  41. package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.spec.ts +23 -0
  42. package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.ts +267 -0
  43. package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.html +95 -0
  44. package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.scss +54 -0
  45. package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.spec.ts +23 -0
  46. package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.ts +904 -0
  47. package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.html +49 -0
  48. package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.scss +2 -0
  49. package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.spec.ts +32 -0
  50. package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.ts +304 -0
  51. package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.html +46 -0
  52. package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.scss +7 -0
  53. package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.ts +343 -0
  54. package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.html +25 -0
  55. package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.scss +23 -0
  56. package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.spec.ts +23 -0
  57. package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.ts +745 -0
  58. package/src/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.ts +10 -0
  59. package/src/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.ts +20 -0
  60. package/src/lib/models/accounting-report/accounting-report-branch-group.ts +7 -0
  61. package/src/lib/models/accounting-report/accounting-report-entry-model.ts +25 -0
  62. package/src/lib/models/accounting-report/accounting-report-model.ts +7 -0
  63. package/{lib/models/accounting-report/accounting-report-sub-group.d.ts → src/lib/models/accounting-report/accounting-report-sub-group.ts} +3 -2
  64. package/{lib/models/app-config.model.d.ts → src/lib/models/app-config.model.ts} +8 -7
  65. package/src/lib/models/branch-activity-receive-report/branch-activity-receive.model.ts +18 -0
  66. package/src/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.ts +16 -0
  67. package/src/lib/models/branch-activity-report/branch-activity-send-report.ts +26 -0
  68. package/src/lib/models/cancellation-transaction-report/cancellation-transaction.model.ts +65 -0
  69. package/src/lib/models/component-loading-states.ts +5 -0
  70. package/src/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.ts +28 -0
  71. package/{lib/models/revenue-per-transaction-report/revenue-per-transaction.model.d.ts → src/lib/models/revenue-per-transaction-report/revenue-per-transaction.model.ts} +1 -1
  72. package/src/lib/models/statement-of-account-report/statement-of-accounts.model.ts +21 -0
  73. package/src/lib/models/transaction-enquiry-report/transaction-enquiry.model.ts +127 -0
  74. package/src/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.ts +16 -0
  75. package/src/lib/models/transaction-monitoring-report/transaction-monitoring-report.ts +29 -0
  76. package/src/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.ts +46 -0
  77. package/src/lib/reports-lib-routing.module.ts +20 -0
  78. package/src/lib/reports-lib.component.spec.ts +23 -0
  79. package/src/lib/reports-lib.component.ts +20 -0
  80. package/src/lib/reports-lib.module.ts +102 -0
  81. package/src/lib/reports-lib.service.spec.ts +16 -0
  82. package/src/lib/reports-lib.service.ts +9 -0
  83. package/src/lib/services/config.service.ts +43 -0
  84. package/src/lib/services/report.service.spec.ts +16 -0
  85. package/src/lib/services/report.service.ts +463 -0
  86. package/src/lib/shared/export-generic.service.ts +557 -0
  87. package/src/lib/shared/export.service.spec.ts +16 -0
  88. package/src/lib/shared/export.service.ts +457 -0
  89. package/src/lib/shared/loader/loader.component.html +8 -0
  90. package/src/lib/shared/loader/loader.component.scss +52 -0
  91. package/src/lib/shared/loader/loader.component.ts +10 -0
  92. package/src/lib/shared/metadata/metadata.component.html +42 -0
  93. package/src/lib/shared/metadata/metadata.component.scss +95 -0
  94. package/src/lib/shared/metadata/metadata.component.spec.ts +23 -0
  95. package/src/lib/shared/metadata/metadata.component.ts +38 -0
  96. package/src/lib/shared/page-size-selector/page-size-selector.component.html +7 -0
  97. package/src/lib/shared/page-size-selector/page-size-selector.component.scss +42 -0
  98. package/src/lib/shared/page-size-selector/page-size-selector.component.spec.ts +23 -0
  99. package/src/lib/shared/page-size-selector/page-size-selector.component.ts +38 -0
  100. package/src/lib/shared/search-filter/search-filter.component.html +601 -0
  101. package/src/lib/shared/search-filter/search-filter.component.scss +203 -0
  102. package/src/lib/shared/search-filter/search-filter.component.spec.ts +23 -0
  103. package/src/lib/shared/search-filter/search-filter.component.ts +2387 -0
  104. package/src/lib/shared/shared.module.ts +13 -0
  105. package/{public-api.d.ts → src/public-api.ts} +17 -7
  106. package/src/styles/ag-grid-report-style.scss +71 -0
  107. package/src/styles/common-ag-grid-style.scss +146 -0
  108. package/src/styles/common-report-style.scss +395 -0
  109. package/src/styles/common-style.scss +615 -0
  110. package/src/test.ts +27 -0
  111. package/tsconfig.lib.json +15 -0
  112. package/tsconfig.lib.prod.json +10 -0
  113. package/tsconfig.spec.json +17 -0
  114. package/esm2020/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.mjs +0 -240
  115. package/esm2020/lib/components/accounting-report/accounting-report.component.mjs +0 -596
  116. package/esm2020/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.mjs +0 -218
  117. package/esm2020/lib/components/branch-activity-send-report/branch-activity-send-report.component.mjs +0 -243
  118. package/esm2020/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.mjs +0 -700
  119. package/esm2020/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.mjs +0 -255
  120. package/esm2020/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.mjs +0 -192
  121. package/esm2020/lib/components/funding-report/funding-report.component.mjs +0 -198
  122. package/esm2020/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.mjs +0 -244
  123. package/esm2020/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.mjs +0 -776
  124. package/esm2020/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.mjs +0 -266
  125. package/esm2020/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.mjs +0 -311
  126. package/esm2020/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.mjs +0 -631
  127. package/esm2020/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.mjs +0 -2
  128. package/esm2020/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.mjs +0 -2
  129. package/esm2020/lib/models/accounting-report/accounting-report-branch-group.mjs +0 -2
  130. package/esm2020/lib/models/accounting-report/accounting-report-entry-model.mjs +0 -2
  131. package/esm2020/lib/models/accounting-report/accounting-report-model.mjs +0 -2
  132. package/esm2020/lib/models/accounting-report/accounting-report-sub-group.mjs +0 -2
  133. package/esm2020/lib/models/app-config.model.mjs +0 -2
  134. package/esm2020/lib/models/branch-activity-receive-report/branch-activity-receive.model.mjs +0 -2
  135. package/esm2020/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.mjs +0 -6
  136. package/esm2020/lib/models/branch-activity-report/branch-activity-send-report.mjs +0 -3
  137. package/esm2020/lib/models/cancellation-transaction-report/cancellation-transaction.model.mjs +0 -10
  138. package/esm2020/lib/models/component-loading-states.mjs +0 -7
  139. package/esm2020/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.mjs +0 -5
  140. package/esm2020/lib/models/revenue-per-transaction-report/revenue-per-transaction.model.mjs +0 -2
  141. package/esm2020/lib/models/statement-of-account-report/statement-of-accounts.model.mjs +0 -2
  142. package/esm2020/lib/models/transaction-enquiry-report/transaction-enquiry.model.mjs +0 -8
  143. package/esm2020/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.mjs +0 -6
  144. package/esm2020/lib/models/transaction-monitoring-report/transaction-monitoring-report.mjs +0 -5
  145. package/esm2020/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.mjs +0 -3
  146. package/esm2020/lib/reports-lib-routing.module.mjs +0 -24
  147. package/esm2020/lib/reports-lib.component.mjs +0 -22
  148. package/esm2020/lib/reports-lib.module.mjs +0 -172
  149. package/esm2020/lib/reports-lib.service.mjs +0 -14
  150. package/esm2020/lib/services/config.service.mjs +0 -39
  151. package/esm2020/lib/services/report.service.mjs +0 -374
  152. package/esm2020/lib/shared/export-generic.service.mjs +0 -443
  153. package/esm2020/lib/shared/export.service.mjs +0 -379
  154. package/esm2020/lib/shared/loader/loader.component.mjs +0 -11
  155. package/esm2020/lib/shared/metadata/metadata.component.mjs +0 -51
  156. package/esm2020/lib/shared/page-size-selector/page-size-selector.component.mjs +0 -44
  157. package/esm2020/lib/shared/search-filter/search-filter.component.mjs +0 -2134
  158. package/esm2020/lib/shared/shared.module.mjs +0 -21
  159. package/esm2020/public-api.mjs +0 -41
  160. package/esm2020/sachin9822-reports-lib.mjs +0 -5
  161. package/fesm2015/sachin9822-reports-lib.mjs +0 -8402
  162. package/fesm2015/sachin9822-reports-lib.mjs.map +0 -1
  163. package/fesm2020/sachin9822-reports-lib.mjs +0 -8384
  164. package/fesm2020/sachin9822-reports-lib.mjs.map +0 -1
  165. package/index.d.ts +0 -5
  166. package/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.d.ts +0 -70
  167. package/lib/components/accounting-report/accounting-report.component.d.ts +0 -76
  168. package/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.d.ts +0 -58
  169. package/lib/components/branch-activity-send-report/branch-activity-send-report.component.d.ts +0 -69
  170. package/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.d.ts +0 -78
  171. package/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.d.ts +0 -95
  172. package/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.d.ts +0 -55
  173. package/lib/components/funding-report/funding-report.component.d.ts +0 -55
  174. package/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.d.ts +0 -57
  175. package/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.d.ts +0 -109
  176. package/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.d.ts +0 -76
  177. package/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.d.ts +0 -68
  178. package/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.d.ts +0 -71
  179. package/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.d.ts +0 -8
  180. package/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.d.ts +0 -18
  181. package/lib/models/accounting-report/accounting-report-branch-group.d.ts +0 -6
  182. package/lib/models/accounting-report/accounting-report-entry-model.d.ts +0 -24
  183. package/lib/models/accounting-report/accounting-report-model.d.ts +0 -6
  184. package/lib/models/branch-activity-receive-report/branch-activity-receive.model.d.ts +0 -18
  185. package/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.d.ts +0 -13
  186. package/lib/models/branch-activity-report/branch-activity-send-report.d.ts +0 -24
  187. package/lib/models/cancellation-transaction-report/cancellation-transaction.model.d.ts +0 -44
  188. package/lib/models/component-loading-states.d.ts +0 -5
  189. package/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.d.ts +0 -26
  190. package/lib/models/statement-of-account-report/statement-of-accounts.model.d.ts +0 -18
  191. package/lib/models/transaction-enquiry-report/transaction-enquiry.model.d.ts +0 -113
  192. package/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.d.ts +0 -13
  193. package/lib/models/transaction-monitoring-report/transaction-monitoring-report.d.ts +0 -23
  194. package/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.d.ts +0 -38
  195. package/lib/reports-lib-routing.module.d.ts +0 -7
  196. package/lib/reports-lib.component.d.ts +0 -8
  197. package/lib/reports-lib.module.d.ts +0 -33
  198. package/lib/reports-lib.service.d.ts +0 -6
  199. package/lib/services/config.service.d.ts +0 -20
  200. package/lib/services/report.service.d.ts +0 -80
  201. package/lib/shared/export-generic.service.d.ts +0 -50
  202. package/lib/shared/export.service.d.ts +0 -32
  203. package/lib/shared/loader/loader.component.d.ts +0 -5
  204. package/lib/shared/metadata/metadata.component.d.ts +0 -24
  205. package/lib/shared/page-size-selector/page-size-selector.component.d.ts +0 -15
  206. package/lib/shared/search-filter/search-filter.component.d.ts +0 -127
  207. package/lib/shared/shared.module.d.ts +0 -11
  208. /package/{lib → src}/assets/images/Search.svg +0 -0
  209. /package/{lib/assets/images/XMLogo.png → src/assets/images/XMCoral.png} +0 -0
  210. /package/{lib → src/lib}/assets/config/app-config.json +0 -0
  211. /package/{lib → src/lib}/assets/svg-loaders/blue-tail-spin.svg +0 -0
@@ -0,0 +1,102 @@
1
+ import { APP_INITIALIZER, NgModule } from '@angular/core';
2
+ import { AccGlDetailsEnquiryReportComponent } from './components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component';
3
+ import { AgGridModule } from 'ag-grid-angular';
4
+ import { ReportsLibRoutingModule } from './reports-lib-routing.module';
5
+
6
+ import { BrowserModule } from '@angular/platform-browser';
7
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8
+ import { BranchActivitySendReportComponent } from './components/branch-activity-send-report/branch-activity-send-report.component';
9
+ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
10
+ import { NgSelectModule } from '@ng-select/ng-select';
11
+ import { LoaderComponent } from './shared/loader/loader.component'
12
+ import { CommonModule } from '@angular/common';
13
+ import { RouterModule } from '@angular/router';
14
+ import { ConfigService } from '../lib/services/config.service';
15
+ import { NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
16
+ import { SharedModule } from './shared/shared.module';
17
+ import { TransactionEnquiryComponent } from './components/transaction-enquiry-report/transaction-enquiry-report.component';
18
+ import { SearchFilterComponent } from './shared/search-filter/search-filter.component';
19
+ import { ReportsLibComponent } from './reports-lib.component';
20
+ import { BranchActivityReceiveReportComponent } from './components/branch-activity-receive-report/branch-activity-receive-report.component';
21
+ import { CancellationTransactionReportComponent } from './components/cancellation-transaction-report/cancellation-transaction-report.component';
22
+ import { RevenuePerTransactionReportComponent } from './components/revenue-per-transaction-report/revenue-per-transaction-report.component';
23
+ import { StatementOfAccountsReportComponent } from './components/statement-of-accounts-report/statement-of-accounts-report.component';
24
+ import { AccountingReportComponent } from './components/accounting-report/accounting-report.component';
25
+ import { CreditLimitStatusEnquiryReportComponent } from './components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component';
26
+ import { FundingReportComponent } from './components/funding-report/funding-report.component';
27
+
28
+ import { TrialBalanceAccountsReportComponent } from './components/trial-balance-accounts-report/trial-balance-accounts-report.component';
29
+ import { BranchActivitySendSummaryReportComponent } from './components/branch-activity-send-summary-report/branch-activity-send-summary-report.component';
30
+ import { TransactionMonitoringReportComponent } from './components/transaction-monitoring-report/transaction-monitoring-report.component';
31
+ export function initializeApp(config: ConfigService) {
32
+ const configFile = '/assets/config/app-config.json';
33
+
34
+ return () => config.load(configFile).toPromise();
35
+ }
36
+
37
+
38
+ @NgModule({
39
+ declarations: [
40
+ ReportsLibComponent,
41
+ AccGlDetailsEnquiryReportComponent,
42
+ BranchActivitySendReportComponent,
43
+ LoaderComponent,
44
+ TransactionEnquiryComponent,
45
+ LoaderComponent,
46
+ SearchFilterComponent,
47
+ BranchActivityReceiveReportComponent,
48
+ CancellationTransactionReportComponent,
49
+ RevenuePerTransactionReportComponent,
50
+ StatementOfAccountsReportComponent,
51
+ AccountingReportComponent,
52
+ CreditLimitStatusEnquiryReportComponent,
53
+ FundingReportComponent,
54
+ TrialBalanceAccountsReportComponent,
55
+ BranchActivitySendSummaryReportComponent,
56
+ TransactionMonitoringReportComponent
57
+
58
+ ],
59
+ imports: [
60
+ AgGridModule,
61
+ ReportsLibRoutingModule,
62
+ CommonModule,
63
+ RouterModule,
64
+ NgbDatepickerModule,
65
+ SharedModule,
66
+ BrowserModule,
67
+ AgGridModule,
68
+ ReportsLibRoutingModule,
69
+ FormsModule,
70
+ AgGridModule,
71
+ NgbModule,
72
+ ReactiveFormsModule,
73
+ NgSelectModule,
74
+ ReactiveFormsModule,
75
+ NgbModule,
76
+ NgSelectModule
77
+ ],
78
+ providers: [
79
+ ConfigService,
80
+ {
81
+ provide: APP_INITIALIZER,
82
+ useFactory: initializeApp,
83
+ deps: [ConfigService],
84
+ multi: true
85
+ }
86
+ ],
87
+ exports: [
88
+ ReportsLibComponent,
89
+ AccGlDetailsEnquiryReportComponent,
90
+ BranchActivitySendReportComponent,
91
+ TransactionEnquiryComponent,
92
+ CancellationTransactionReportComponent,
93
+ StatementOfAccountsReportComponent,
94
+ AccountingReportComponent,
95
+ FundingReportComponent,
96
+ CreditLimitStatusEnquiryReportComponent,
97
+ TrialBalanceAccountsReportComponent,
98
+ BranchActivitySendSummaryReportComponent ,
99
+ TransactionMonitoringReportComponent
100
+ ]
101
+ })
102
+ export class ReportsLibModule { }
@@ -0,0 +1,16 @@
1
+ import { TestBed } from '@angular/core/testing';
2
+
3
+ import { ReportsLibService } from './reports-lib.service';
4
+
5
+ describe('ReportsLibService', () => {
6
+ let service: ReportsLibService;
7
+
8
+ beforeEach(() => {
9
+ TestBed.configureTestingModule({});
10
+ service = TestBed.inject(ReportsLibService);
11
+ });
12
+
13
+ it('should be created', () => {
14
+ expect(service).toBeTruthy();
15
+ });
16
+ });
@@ -0,0 +1,9 @@
1
+ import { Injectable } from '@angular/core';
2
+
3
+ @Injectable({
4
+ providedIn: 'root'
5
+ })
6
+ export class ReportsLibService {
7
+
8
+ constructor() { }
9
+ }
@@ -0,0 +1,43 @@
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
+ }
@@ -0,0 +1,16 @@
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
+ });
@@ -0,0 +1,463 @@
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
+ }