@hitsoft/ovolt 0.0.10 → 0.0.12

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 (41) hide show
  1. package/config/providers/ovolt-integration-log-route.provider.d.ts +9 -0
  2. package/esm2020/config/ovolt-config.module.mjs +3 -1
  3. package/esm2020/config/providers/ovolt-integration-log-route.provider.mjs +19 -0
  4. package/esm2020/config/providers/process-log-route.provider.mjs +1 -1
  5. package/esm2020/lib/components/hit-fuel-integration-logs/components/hit-fuel-integration-log.component.mjs +29 -11
  6. package/esm2020/lib/components/hit-ovolt-integration-logs/components/hit-ovolt-integration-log.component.mjs +170 -0
  7. package/esm2020/lib/components/hit-ovolt-integration-logs/hit-ovolt-integration-log-routing.module.mjs +26 -0
  8. package/esm2020/lib/components/hit-ovolt-integration-logs/hit-ovolt-integration-log.module.mjs +71 -0
  9. package/esm2020/lib/components/hit-proxy/hit-ovolt-integration-logs/hit-ovolt-integration-log.service.mjs +40 -0
  10. package/esm2020/lib/components/hit-proxy/hit-ovolt-integration-logs/models.mjs +2 -0
  11. package/esm2020/lib/ovolt-integration-logs/ovolt-integration-log/components/ovolt-integration-log.component.mjs +113 -0
  12. package/esm2020/lib/ovolt-integration-logs/ovolt-integration-log/ovolt-integration-log-routing.module.mjs +26 -0
  13. package/esm2020/lib/ovolt-integration-logs/ovolt-integration-log/ovolt-integration-log.module.mjs +52 -0
  14. package/esm2020/lib/ovolt-routing.module.mjs +3 -1
  15. package/esm2020/lib/process-logs/process-log/components/process-log.component.mjs +6 -4
  16. package/esm2020/lib/process-logs/process-log/process-log-routing.module.mjs +1 -1
  17. package/esm2020/lib/process-logs/process-log/process-log.module.mjs +1 -1
  18. package/esm2020/lib/proxy/ovolt-integration-logs/models.mjs +2 -0
  19. package/esm2020/lib/proxy/ovolt-integration-logs/ovolt-integration-log.service.mjs +51 -0
  20. package/esm2020/lib/proxy/process-logs/models.mjs +1 -1
  21. package/esm2020/lib/proxy/process-logs/process-log.service.mjs +2 -2
  22. package/fesm2015/hitsoft-ovolt-config.mjs +29 -11
  23. package/fesm2015/hitsoft-ovolt-config.mjs.map +1 -1
  24. package/fesm2015/hitsoft-ovolt.mjs +363 -23
  25. package/fesm2015/hitsoft-ovolt.mjs.map +1 -1
  26. package/fesm2020/hitsoft-ovolt-config.mjs +29 -11
  27. package/fesm2020/hitsoft-ovolt-config.mjs.map +1 -1
  28. package/fesm2020/hitsoft-ovolt.mjs +362 -23
  29. package/fesm2020/hitsoft-ovolt.mjs.map +1 -1
  30. package/lib/components/hit-ovolt-integration-logs/components/hit-ovolt-integration-log.component.d.ts +39 -0
  31. package/lib/components/hit-ovolt-integration-logs/hit-ovolt-integration-log-routing.module.d.ts +7 -0
  32. package/lib/components/hit-ovolt-integration-logs/hit-ovolt-integration-log.module.d.ts +16 -0
  33. package/lib/components/hit-proxy/hit-ovolt-integration-logs/hit-ovolt-integration-log.service.d.ts +16 -0
  34. package/lib/components/hit-proxy/hit-ovolt-integration-logs/models.d.ts +3 -0
  35. package/lib/ovolt-integration-logs/ovolt-integration-log/components/ovolt-integration-log.component.d.ts +35 -0
  36. package/lib/ovolt-integration-logs/ovolt-integration-log/ovolt-integration-log-routing.module.d.ts +7 -0
  37. package/lib/ovolt-integration-logs/ovolt-integration-log/ovolt-integration-log.module.d.ts +15 -0
  38. package/lib/proxy/ovolt-integration-logs/models.d.ts +47 -0
  39. package/lib/proxy/ovolt-integration-logs/ovolt-integration-log.service.d.ts +19 -0
  40. package/lib/proxy/process-logs/models.d.ts +8 -0
  41. package/package.json +1 -1
@@ -80,7 +80,7 @@ class ProcessLogService {
80
80
  this.getList = (input) => this.restService.request({
81
81
  method: 'GET',
82
82
  url: '/api/ovolt/process-logs',
83
- params: { filterText: input.filterText, processId: input.processId, type: input.type, name: input.name, status: input.status, request: input.request, response: input.response, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
83
+ params: { filterText: input.filterText, processId: input.processId, type: input.type, name: input.name, status: input.status, request: input.request, response: input.response, jobRunId: input.jobRunId, jobName: input.jobName, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
84
84
  }, { apiName: this.apiName });
85
85
  this.getListAsExcelFile = (input) => this.restService.request({
86
86
  method: 'GET',
@@ -301,7 +301,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
301
301
  args: ['dxGrid', { static: false }]
302
302
  }] } });
303
303
 
304
- const routes$4 = [
304
+ const routes$5 = [
305
305
  {
306
306
  path: '',
307
307
  component: HitProcessLogComponent,
@@ -312,11 +312,11 @@ class HitProcessLogRoutingModule {
312
312
  }
313
313
  HitProcessLogRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
314
314
  HitProcessLogRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
315
- HitProcessLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, imports: [RouterModule.forChild(routes$4), RouterModule] });
315
+ HitProcessLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, imports: [RouterModule.forChild(routes$5), RouterModule] });
316
316
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, decorators: [{
317
317
  type: NgModule,
318
318
  args: [{
319
- imports: [RouterModule.forChild(routes$4)],
319
+ imports: [RouterModule.forChild(routes$5)],
320
320
  exports: [RouterModule],
321
321
  }]
322
322
  }] });
@@ -577,7 +577,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
577
577
  args: [{ selector: 'lib-hit-system-parameter', changeDetection: ChangeDetectionStrategy.Default, providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], template: "<abp-page [title]=\"'Ovolt::SystemParameters' | abpLocalization\">\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\">\r\n\r\n <!-- Rest Company Select -->\r\n <div class=\"row mb-2\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label\" for=\"system-parameter-selected-rest-company\">\r\n {{ 'Ovolt::SelectedRestCompany' | abpLocalization }}\r\n </label>\r\n <select id=\"selectedRestCompany\" formControlName=\"selectedRestCompany\" class=\"form-select\">\r\n <option *ngFor=\"let option of restCompanyTypeOptions; trackBy: track.by('key')\"\r\n [value]=\"option.key\">\r\n {{ 'Ovolt::Enum:RestCompanyType.' + option.key | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label\" for=\"system-parameter-pokey\">\r\n {{ 'Ovolt::POKey' | abpLocalization }}\r\n </label>\r\n <input id=\"system-parameter-pokey\" formControlName=\"poKey\" class=\"form-control\" />\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n <!-- Di\u011Fer Alanlar Grid -->\r\n <div class=\"row\">\r\n <div class=\"col-md-6 mb-2\" *ngFor=\"let field of fields\">\r\n <label>{{ ('Ovolt::' + fieldLocalizationMap[field]) | abpLocalization }}</label>\r\n <input [type]=\"(field.includes('GroupCode') ) ? 'number' : 'text'\" class=\"form-control\"\r\n [formControlName]=\"field\" />\r\n <div *ngIf=\"form.get(field)?.touched && form.get(field)?.invalid\" class=\"text-danger\">\r\n {{ 'Ovolt::FieldRequiredOrInvalid' | abpLocalization }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label\" for=\"system-parameter-mail-addresses\">\r\n {{ 'Ovolt::MailAddresses' | abpLocalization }}\r\n </label>\r\n\r\n <textarea id=\"system-parameter-mail-addresses\" formControlName=\"mailAddresses\"\r\n class=\"form-control\" rows=\"3\" placeholder=\"example1@mail.com, example2@mail.com\">\r\n </textarea>\r\n\r\n <div *ngIf=\"form.get('mailAddresses')?.invalid && form.get('mailAddresses')?.touched\"\r\n class=\"text-danger mt-1\">\r\n {{ 'Ovolt::InvalidMailAddresses' | abpLocalization }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"text-end mt-4\">\r\n <button type=\"submit\" class=\"btn btn-primary\" [disabled]=\"isBusy\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</abp-page>" }]
578
578
  }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: SystemParameterService }, { type: HitSystemParameterService }, { type: i4.ToasterService }, { type: i2.TrackByService }]; } });
579
579
 
580
- const routes$3 = [
580
+ const routes$4 = [
581
581
  {
582
582
  path: '',
583
583
  component: HitSystemParameterComponent,
@@ -588,11 +588,11 @@ class HitSystemParameterRoutingModule {
588
588
  }
589
589
  HitSystemParameterRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
590
590
  HitSystemParameterRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
591
- HitSystemParameterRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, imports: [RouterModule.forChild(routes$3), RouterModule] });
591
+ HitSystemParameterRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, imports: [RouterModule.forChild(routes$4), RouterModule] });
592
592
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, decorators: [{
593
593
  type: NgModule,
594
594
  args: [{
595
- imports: [RouterModule.forChild(routes$3)],
595
+ imports: [RouterModule.forChild(routes$4)],
596
596
  exports: [RouterModule],
597
597
  }]
598
598
  }] });
@@ -777,19 +777,27 @@ class HitFuelIntegrationLogComponent {
777
777
  this.FuelIntegrationLogDataSource = this.hitFuelIntegrationLogService.LoadFuelIntegrationLogs;
778
778
  }
779
779
  showRequestBody(id) {
780
- // Yükleme durumunu başlat (gerekirse)
781
780
  this.isLoadingRequestBodyModel = true;
782
- // Önce popup'ı kapat (önceki tıklamalarda açık kalmış olabilir)
783
781
  this.isRequestBodyModalOpen = false;
784
782
  this.hitFuelIntegrationLogService.getRequesteBody({ logId: id })
785
783
  .subscribe({
786
784
  next: (data) => {
787
- this.selectedRequestBodyModel = typeof data === 'string' ? JSON.parse(data) : data;
788
- // Veri geldikten sonra popup'ı aç
789
- this.isRequestBodyModalOpen = true;
785
+ try {
786
+ this.selectedRequestBodyModel =
787
+ typeof data === 'string' ? JSON.parse(data) : data;
788
+ this.isRequestBodyModalOpen = true;
789
+ }
790
+ catch (parseError) {
791
+ this.toaster.info('Gelen veri gösterilecek formatta değil.');
792
+ }
793
+ },
794
+ error: (err) => {
795
+ this.toaster.info('Veri alınırken hata oluştu.');
796
+ },
797
+ complete: () => {
798
+ this.isLoadingRequestBodyModel = false;
790
799
  }
791
800
  });
792
- this.isLoadingRequestBodyModel = false;
793
801
  }
794
802
  showResponseBody(id) {
795
803
  // Yükleme durumunu başlat (gerekirse)
@@ -799,12 +807,22 @@ class HitFuelIntegrationLogComponent {
799
807
  this.hitFuelIntegrationLogService.getResponseBody({ logId: id })
800
808
  .subscribe({
801
809
  next: (data) => {
802
- this.selectedResponseBodyModel = typeof data === 'string' ? JSON.parse(data) : data;
803
- // Veri geldikten sonra popup'ı
804
- this.isResponseBodyModalOpen = true;
810
+ try {
811
+ this.selectedResponseBodyModel = typeof data === 'string' ? JSON.parse(data) : data;
812
+ // Veri geldikten sonra popup'ı aç
813
+ this.isResponseBodyModalOpen = true;
814
+ }
815
+ catch (parseError) {
816
+ this.toaster.info('Gelen veri gösterilecek formatta değil.');
817
+ }
818
+ },
819
+ error: (err) => {
820
+ this.toaster.info('Veri alınırken hata oluştu.');
821
+ },
822
+ complete: () => {
823
+ this.isLoadingRequestBodyModel = false;
805
824
  }
806
825
  });
807
- this.isLoadingResponseBodyModel = false;
808
826
  }
809
827
  editFuelIntegrationLog(record) {
810
828
  console.log('Edit:', record);
@@ -856,7 +874,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
856
874
  args: ['dxGrid', { static: false }]
857
875
  }] } });
858
876
 
859
- const routes$2 = [
877
+ const routes$3 = [
860
878
  {
861
879
  path: '',
862
880
  component: HitFuelIntegrationLogComponent,
@@ -867,11 +885,11 @@ class HitFuelIntegrationLogRoutingModule {
867
885
  }
868
886
  HitFuelIntegrationLogRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFuelIntegrationLogRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
869
887
  HitFuelIntegrationLogRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitFuelIntegrationLogRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
870
- HitFuelIntegrationLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFuelIntegrationLogRoutingModule, imports: [RouterModule.forChild(routes$2), RouterModule] });
888
+ HitFuelIntegrationLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFuelIntegrationLogRoutingModule, imports: [RouterModule.forChild(routes$3), RouterModule] });
871
889
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFuelIntegrationLogRoutingModule, decorators: [{
872
890
  type: NgModule,
873
891
  args: [{
874
- imports: [RouterModule.forChild(routes$2)],
892
+ imports: [RouterModule.forChild(routes$3)],
875
893
  exports: [RouterModule],
876
894
  }]
877
895
  }] });
@@ -990,7 +1008,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
990
1008
  args: ['dxGrid', { static: false }]
991
1009
  }] } });
992
1010
 
993
- const routes$1 = [
1011
+ const routes$2 = [
994
1012
  {
995
1013
  path: '',
996
1014
  component: HitLatestFailedProcessLogComponent,
@@ -1001,11 +1019,11 @@ class HitLatestFailedProcessLogRoutingModule {
1001
1019
  }
1002
1020
  HitLatestFailedProcessLogRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitLatestFailedProcessLogRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1003
1021
  HitLatestFailedProcessLogRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitLatestFailedProcessLogRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
1004
- HitLatestFailedProcessLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitLatestFailedProcessLogRoutingModule, imports: [RouterModule.forChild(routes$1), RouterModule] });
1022
+ HitLatestFailedProcessLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitLatestFailedProcessLogRoutingModule, imports: [RouterModule.forChild(routes$2), RouterModule] });
1005
1023
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitLatestFailedProcessLogRoutingModule, decorators: [{
1006
1024
  type: NgModule,
1007
1025
  args: [{
1008
- imports: [RouterModule.forChild(routes$1)],
1026
+ imports: [RouterModule.forChild(routes$2)],
1009
1027
  exports: [RouterModule],
1010
1028
  }]
1011
1029
  }] });
@@ -1071,6 +1089,326 @@ function loadHitLatestFailedProcessLogModuleAsChild() {
1071
1089
  return Promise.resolve(HitLatestFailedProcessLogModule);
1072
1090
  }
1073
1091
 
1092
+ class OvoltIntegrationLogService {
1093
+ constructor(restService) {
1094
+ this.restService = restService;
1095
+ this.apiName = 'Ovolt';
1096
+ this.create = (input) => this.restService.request({
1097
+ method: 'POST',
1098
+ url: '/api/ovolt/ovolt-integration-logs',
1099
+ body: input,
1100
+ }, { apiName: this.apiName });
1101
+ this.delete = (id) => this.restService.request({
1102
+ method: 'DELETE',
1103
+ url: `/api/ovolt/ovolt-integration-logs/${id}`,
1104
+ }, { apiName: this.apiName });
1105
+ this.get = (id) => this.restService.request({
1106
+ method: 'GET',
1107
+ url: `/api/ovolt/ovolt-integration-logs/${id}`,
1108
+ }, { apiName: this.apiName });
1109
+ this.getDownloadToken = () => this.restService.request({
1110
+ method: 'GET',
1111
+ url: '/api/ovolt/ovolt-integration-logs/download-token',
1112
+ }, { apiName: this.apiName });
1113
+ this.getList = (input) => this.restService.request({
1114
+ method: 'GET',
1115
+ url: '/api/ovolt/ovolt-integration-logs',
1116
+ params: { filterText: input.filterText, path: input.path, method: input.method, requestBody: input.requestBody, responseBody: input.responseBody, statusCode: input.statusCode, requestTimeMin: input.requestTimeMin, requestTimeMax: input.requestTimeMax, responseTimeMin: input.responseTimeMin, responseTimeMax: input.responseTimeMax, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
1117
+ }, { apiName: this.apiName });
1118
+ this.getListAsExcelFile = (input) => this.restService.request({
1119
+ method: 'GET',
1120
+ responseType: 'blob',
1121
+ url: '/api/ovolt/ovolt-integration-logs/as-excel-file',
1122
+ params: { downloadToken: input.downloadToken, filterText: input.filterText, name: input.name },
1123
+ }, { apiName: this.apiName });
1124
+ this.update = (id, input) => this.restService.request({
1125
+ method: 'PUT',
1126
+ url: `/api/ovolt/ovolt-integration-logs/${id}`,
1127
+ body: input,
1128
+ }, { apiName: this.apiName });
1129
+ }
1130
+ }
1131
+ OvoltIntegrationLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltIntegrationLogService, deps: [{ token: i2.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
1132
+ OvoltIntegrationLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltIntegrationLogService, providedIn: 'root' });
1133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltIntegrationLogService, decorators: [{
1134
+ type: Injectable,
1135
+ args: [{
1136
+ providedIn: 'root',
1137
+ }]
1138
+ }], ctorParameters: function () { return [{ type: i2.RestService }]; } });
1139
+
1140
+ class HitOvoltIntegrationLogService {
1141
+ constructor(restService, devexService) {
1142
+ this.restService = restService;
1143
+ this.devexService = devexService;
1144
+ this.apiName = 'Ovolt';
1145
+ this.getRequesteBody = (input) => this.restService.request({
1146
+ method: 'POST',
1147
+ url: '/api/ovolt/ovolt-integration-logs/get-request-body',
1148
+ body: input
1149
+ }, { apiName: this.apiName });
1150
+ this.getResponseBody = (input) => this.restService.request({
1151
+ method: 'POST',
1152
+ url: '/api/ovolt/ovolt-integration-logs/get-response-body',
1153
+ body: input
1154
+ }, { apiName: this.apiName });
1155
+ this.deleteAll = () => this.restService.request({
1156
+ method: 'POST',
1157
+ url: '/api/ovolt/ovolt-integration-logs/delete-all',
1158
+ }, { apiName: this.apiName });
1159
+ }
1160
+ get LoadOvoltIntegrationLogs() {
1161
+ return this.devexService.createStore({
1162
+ key: 'id',
1163
+ loadUrl: 'api/ovolt/ovolt-integration-logs/load',
1164
+ });
1165
+ }
1166
+ }
1167
+ HitOvoltIntegrationLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogService, deps: [{ token: i2.RestService }, { token: DevexpressRestService }], target: i0.ɵɵFactoryTarget.Injectable });
1168
+ HitOvoltIntegrationLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogService, providedIn: 'root' });
1169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogService, decorators: [{
1170
+ type: Injectable,
1171
+ args: [{
1172
+ providedIn: 'root',
1173
+ }]
1174
+ }], ctorParameters: function () { return [{ type: i2.RestService }, { type: DevexpressRestService }]; } });
1175
+
1176
+ class HitOvoltIntegrationLogComponent {
1177
+ constructor(service, track, hitOvoltIntegrationLogService, toaster, localization, permissionService, confirmation) {
1178
+ this.service = service;
1179
+ this.track = track;
1180
+ this.hitOvoltIntegrationLogService = hitOvoltIntegrationLogService;
1181
+ this.toaster = toaster;
1182
+ this.localization = localization;
1183
+ this.permissionService = permissionService;
1184
+ this.confirmation = confirmation;
1185
+ this.isdeleteAll = false;
1186
+ this.isRequestBodyModalOpen = false;
1187
+ this.isLoadingRequestBodyModel = false;
1188
+ this.isResponseBodyModalOpen = false;
1189
+ this.isLoadingResponseBodyModel = false;
1190
+ }
1191
+ ngOnInit() {
1192
+ this.actionMenuItems = [];
1193
+ if (this.permissionService.getGrantedPolicy('Ovolt.OvoltIntegrationLogs.ShowRequestBody')) {
1194
+ this.actionMenuItems.push({
1195
+ key: 'requestBody',
1196
+ text: this.l('Ovolt::ShowRequestBody'),
1197
+ type: 'success'
1198
+ });
1199
+ }
1200
+ if (this.permissionService.getGrantedPolicy('Ovolt.OvoltIntegrationLogs.ShowResponseBody')) {
1201
+ this.actionMenuItems.push({
1202
+ key: 'responseBody',
1203
+ text: this.l('Ovolt::ShowResponseBody'),
1204
+ type: 'normal'
1205
+ });
1206
+ }
1207
+ if (this.permissionService.getGrantedPolicy('Ovolt.OvoltIntegrationLogs.Delete')) {
1208
+ this.actionMenuItems.push({
1209
+ key: 'delete',
1210
+ text: this.l('Ovolt::Delete'),
1211
+ type: 'danger'
1212
+ });
1213
+ }
1214
+ this.initDataSource();
1215
+ this.closeRequestBodyButtonOptions = {
1216
+ text: 'Close',
1217
+ stylingMode: 'outlined',
1218
+ type: 'normal',
1219
+ onClick: () => {
1220
+ this.isRequestBodyModalOpen = false;
1221
+ },
1222
+ };
1223
+ this.closeResponseBodyButtonOptions = {
1224
+ text: 'Close',
1225
+ stylingMode: 'outlined',
1226
+ type: 'normal',
1227
+ onClick: () => {
1228
+ this.isResponseBodyModalOpen = false;
1229
+ },
1230
+ };
1231
+ }
1232
+ l(key) {
1233
+ return this.localization.instant(key);
1234
+ }
1235
+ initDataSource() {
1236
+ // Store'u sadece bir kere oluşturuyoruz
1237
+ this.OvoltIntegrationLogDataSource = this.hitOvoltIntegrationLogService.LoadOvoltIntegrationLogs;
1238
+ }
1239
+ showRequestBody(id) {
1240
+ this.isLoadingRequestBodyModel = true;
1241
+ this.isRequestBodyModalOpen = false;
1242
+ this.hitOvoltIntegrationLogService.getRequesteBody({ logId: id })
1243
+ .subscribe({
1244
+ next: (data) => {
1245
+ try {
1246
+ this.selectedRequestBodyModel = typeof data === 'string' ? JSON.parse(data) : data;
1247
+ this.isRequestBodyModalOpen = true;
1248
+ }
1249
+ catch (parseError) {
1250
+ this.toaster.info('Gelen veri gösterilecek formatta değil.');
1251
+ }
1252
+ },
1253
+ error: (err) => {
1254
+ this.toaster.info('Veri alınırken hata oluştu.');
1255
+ },
1256
+ complete: () => {
1257
+ this.isLoadingRequestBodyModel = false;
1258
+ }
1259
+ });
1260
+ }
1261
+ showResponseBody(id) {
1262
+ // Yükleme durumunu başlat (gerekirse)
1263
+ this.isLoadingResponseBodyModel = true;
1264
+ // Önce popup'ı kapat (önceki tıklamalarda açık kalmış olabilir)
1265
+ this.isResponseBodyModalOpen = false;
1266
+ this.hitOvoltIntegrationLogService.getResponseBody({ logId: id })
1267
+ .subscribe({
1268
+ next: (data) => {
1269
+ try {
1270
+ this.selectedResponseBodyModel = typeof data === 'string' ? JSON.parse(data) : data;
1271
+ // Veri geldikten sonra popup'ı aç
1272
+ this.isResponseBodyModalOpen = true;
1273
+ }
1274
+ catch (parseError) {
1275
+ this.toaster.info('Gelen veri gösterilecek formatta değil.');
1276
+ }
1277
+ },
1278
+ error: (err) => {
1279
+ this.toaster.info('Veri alınırken hata oluştu.');
1280
+ },
1281
+ complete: () => {
1282
+ this.isLoadingRequestBodyModel = false;
1283
+ }
1284
+ });
1285
+ }
1286
+ deleteAll() {
1287
+ console.log('deleteAll');
1288
+ this.hitOvoltIntegrationLogService.deleteAll()
1289
+ .subscribe({
1290
+ next: (result) => {
1291
+ if (result) {
1292
+ // Grid'i refresh ediyoruz
1293
+ this.dxGrid.instance.refresh();
1294
+ }
1295
+ else {
1296
+ this.toaster.error('Veri yüklenirken hata oluştu.');
1297
+ }
1298
+ }
1299
+ });
1300
+ }
1301
+ deleteOvoltIntegrationLog(record) {
1302
+ if (confirm(this.l('Ovolt::DeleteConfirmationMessage'))) {
1303
+ this.service.delete(record).subscribe(() => {
1304
+ // Grid'i refresh ediyoruz
1305
+ this.dxGrid.instance.refresh();
1306
+ });
1307
+ }
1308
+ }
1309
+ onActionClick(e, id) {
1310
+ const action = e.itemData?.key;
1311
+ if (action === 'requestBody') {
1312
+ this.showRequestBody(id);
1313
+ }
1314
+ if (action === 'responseBody') {
1315
+ this.showResponseBody(id);
1316
+ }
1317
+ if (action === 'delete') {
1318
+ this.deleteOvoltIntegrationLog(id);
1319
+ }
1320
+ }
1321
+ }
1322
+ HitOvoltIntegrationLogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogComponent, deps: [{ token: OvoltIntegrationLogService }, { token: i2.TrackByService }, { token: HitOvoltIntegrationLogService }, { token: i4.ToasterService }, { token: i2.LocalizationService }, { token: i2.PermissionService }, { token: i4.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
1323
+ HitOvoltIntegrationLogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitOvoltIntegrationLogComponent, selector: "lib-hit-ovolt-integration-log", providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], viewQueries: [{ propertyName: "dxGrid", first: true, predicate: ["dxGrid"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'Ovolt::OvoltIntegrationLogs' | abpLocalization\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"text-lg-end pt-2\">\r\n <dx-button *abpPermission=\"'Ovolt.OvoltIntegrationLogs.DeleteAll'\"\r\n text=\"{{ 'Ovolt::DeleteAll' | abpLocalization }}\" type=\"danger\" (onClick)=\"deleteAll()\"\r\n [disabled]=\"isdeleteAll\"></dx-button>\r\n </div>\r\n </abp-page-toolbar-container>\r\n\r\n <div class=\"card mt-2\">\r\n <div class=\"card-body\">\r\n <dx-data-grid #dxGrid [dataSource]=\"OvoltIntegrationLogDataSource\" [showRowLines]=\"true\" [showBorders]=\"true\"\r\n [remoteOperations]=\"true\" [hoverStateEnabled]=\"true\" [repaintChangesOnly]=\"true\"\r\n [allowColumnResizing]=\"true\" columnResizingMode=\"widget\" [allowColumnReordering]=\"true\"\r\n [columnAutoWidth]=\"true\" [columnHidingEnabled]=\"true\" keyExpr=\"id\">\r\n <dxo-paging [pageSize]=\"50\"></dxo-paging>\r\n <dxo-column-fixing [enabled]=\"true\"></dxo-column-fixing>\r\n <dxo-header-filter [allowSearch]=\"true\" [visible]=\"true\"></dxo-header-filter>\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-column-fixing [enabled]=\"true\"></dxo-column-fixing>\r\n <dxo-filter-builder [allowHierarchicalFields]=\"true\"></dxo-filter-builder>\r\n <dxo-filter-panel [visible]=\"true\"></dxo-filter-panel>\r\n <dxo-sorting mode=\"single\"></dxo-sorting>\r\n <dxo-scrolling mode=\"horizontal\" showScrollbar=\"always\"></dxo-scrolling>\r\n\r\n <dxi-column *ngIf=\"actionMenuItems?.length > 0\" [fixed]=\"true\" alignment=\"center\"\r\n caption=\"{{ 'Ovolt::Processes' | abpLocalization }}\" dataField=\"id\"\r\n [cellTemplate]=\"'actionTemplate'\">\r\n <div *dxTemplate=\"let data of 'actionTemplate'\">\r\n <dx-drop-down-button text=\"{{ 'Ovolt::Show' | abpLocalization }}\" stylingMode=\"outlined\"\r\n displayExpr=\"text\" keyExpr=\"key\" [items]=\"actionMenuItems\"\r\n (onItemClick)=\"onActionClick($event, data.data.id)\">\r\n\r\n <div *dxTemplate=\"let item of 'item'\">\r\n <dx-button [text]=\"item.text\" stylingMode=\"text\" width=\"180\" height=\"40\">\r\n </dx-button>\r\n </div>\r\n </dx-drop-down-button>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"path\" caption=\"{{ 'Ovolt::Path' | abpLocalization }}\"></dxi-column>\r\n\r\n <dxi-column dataField=\"method\" caption=\"{{ 'Ovolt::Method' | abpLocalization }}\"></dxi-column>\r\n\r\n <!-- <dxi-column [fixed]=\"true\" caption=\"{{ 'Ovolt::RequestBody' | abpLocalization }}\" dataField=\"id\"\r\n [cellTemplate]=\"'requestBodyTemplate'\">\r\n <div *dxTemplate=\"let data of 'requestBodyTemplate'\">\r\n <dx-button text=\"{{ 'Ovolt::ShowRequestBody' | abpLocalization }}\" type=\"default\"\r\n (onClick)=\"showRequestBody(data.data.id)\"></dx-button>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column [fixed]=\"true\" caption=\"{{ 'Ovolt::ResponseBody' | abpLocalization }}\" dataField=\"id\"\r\n [cellTemplate]=\"'responseBodyTemplate'\">\r\n <div *dxTemplate=\"let data of 'responseBodyTemplate'\">\r\n <dx-button text=\"{{ 'Ovolt::ShowResponseBody' | abpLocalization }}\" type=\"default\"\r\n (onClick)=\"showResponseBody(data.data.id)\"></dx-button>\r\n </div>\r\n </dxi-column> -->\r\n\r\n <dxi-column dataField=\"statusCode\" caption=\"{{ 'Ovolt::StatusCode' | abpLocalization }}\"></dxi-column>\r\n\r\n <dxi-column caption=\"{{ 'Ovolt::RequestTime' | abpLocalization }}\" dataField=\"requestTime\"\r\n dataType=\"datetime\" [format]=\" 'dd.MM.yyyy HH:mm:ss' \" sortOrder=\"desc\" sortIndex=\"0\">\r\n </dxi-column>\r\n\r\n <dxi-column caption=\"{{ 'Ovolt::ResponseTime' | abpLocalization }}\" dataField=\"responseTime\"\r\n dataType=\"datetime\" [format]=\" 'dd.MM.yyyy HH:mm:ss' \">\r\n </dxi-column>\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n\r\n <!-- Request JSON Popup -->\r\n <dx-popup [(visible)]=\"isRequestBodyModalOpen\" [showTitle]=\"true\" [title]=\"'Ovolt::RequestBody' | abpLocalization\"\r\n [hideOnOutsideClick]=\"true\" [showCloseButton]=\"false\">\r\n <dxi-toolbar-item widget=\"dxButton\" toolbar=\"bottom\" location=\"after\" [options]=\"closeRequestBodyButtonOptions\">\r\n </dxi-toolbar-item>\r\n <div *dxTemplate=\"let data of 'content'\" class=\"p-3\">\r\n <dx-scroll-view>\r\n <pre style=\"white-space: pre-wrap; word-wrap: break-word;\">\r\n {{ selectedRequestBodyModel | json }}\r\n </pre>\r\n </dx-scroll-view>\r\n </div>\r\n </dx-popup>\r\n\r\n\r\n <!-- Response JSON Popup -->\r\n <dx-popup [(visible)]=\"isResponseBodyModalOpen\" [showTitle]=\"true\" [title]=\"'Ovolt::ResponseBody' | abpLocalization\"\r\n [hideOnOutsideClick]=\"true\" [showCloseButton]=\"false\">\r\n <dxi-toolbar-item widget=\"dxButton\" toolbar=\"bottom\" location=\"after\"\r\n [options]=\"closeResponseBodyButtonOptions\">\r\n </dxi-toolbar-item>\r\n <div *dxTemplate=\"let data of 'content'\" class=\"p-3\">\r\n <dx-scroll-view>\r\n <pre style=\"white-space: pre-wrap; word-wrap: break-word;\">\r\n {{ selectedResponseBodyModel | json }}\r\n </pre>\r\n </dx-scroll-view>\r\n </div>\r\n </dx-popup>\r\n</abp-page>", dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "component", type: i6.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i6.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i7.DxDataGridComponent, selector: "dx-data-grid", inputs: ["accessKey", "activeStateEnabled", "allowColumnReordering", "allowColumnResizing", "autoNavigateToFocusedRow", "cacheEnabled", "cellHintEnabled", "columnAutoWidth", "columnChooser", "columnFixing", "columnHidingEnabled", "columnMinWidth", "columnResizingMode", "columns", "columnWidth", "customizeColumns", "dataRowTemplate", "dataSource", "dateSerializationFormat", "disabled", "editing", "elementAttr", "errorRowEnabled", "export", "filterBuilder", "filterBuilderPopup", "filterPanel", "filterRow", "filterSyncEnabled", "filterValue", "focusedColumnIndex", "focusedRowEnabled", "focusedRowIndex", "focusedRowKey", "grouping", "groupPanel", "headerFilter", "height", "highlightChanges", "hint", "hoverStateEnabled", "keyboardNavigation", "keyExpr", "loadPanel", "masterDetail", "noDataText", "pager", "paging", "remoteOperations", "renderAsync", "repaintChangesOnly", "rowAlternationEnabled", "rowDragging", "rowTemplate", "rtlEnabled", "scrolling", "searchPanel", "selectedRowKeys", "selection", "selectionFilter", "showBorders", "showColumnHeaders", "showColumnLines", "showRowLines", "sortByGroupSummaryInfo", "sorting", "stateStoring", "summary", "syncLookupFilterValues", "tabIndex", "toolbar", "twoWayBindingEnabled", "visible", "width", "wordWrapEnabled"], outputs: ["onAdaptiveDetailRowPreparing", "onCellClick", "onCellDblClick", "onCellHoverChanged", "onCellPrepared", "onContentReady", "onContextMenuPreparing", "onDataErrorOccurred", "onDisposing", "onEditCanceled", "onEditCanceling", "onEditingStart", "onEditorPrepared", "onEditorPreparing", "onExporting", "onFocusedCellChanged", "onFocusedCellChanging", "onFocusedRowChanged", "onFocusedRowChanging", "onInitialized", "onInitNewRow", "onKeyDown", "onOptionChanged", "onRowClick", "onRowCollapsed", "onRowCollapsing", "onRowDblClick", "onRowExpanded", "onRowExpanding", "onRowInserted", "onRowInserting", "onRowPrepared", "onRowRemoved", "onRowRemoving", "onRowUpdated", "onRowUpdating", "onRowValidating", "onSaved", "onSaving", "onSelectionChanged", "onToolbarPreparing", "accessKeyChange", "activeStateEnabledChange", "allowColumnReorderingChange", "allowColumnResizingChange", "autoNavigateToFocusedRowChange", "cacheEnabledChange", "cellHintEnabledChange", "columnAutoWidthChange", "columnChooserChange", "columnFixingChange", "columnHidingEnabledChange", "columnMinWidthChange", "columnResizingModeChange", "columnsChange", "columnWidthChange", "customizeColumnsChange", "dataRowTemplateChange", "dataSourceChange", "dateSerializationFormatChange", "disabledChange", "editingChange", "elementAttrChange", "errorRowEnabledChange", "exportChange", "filterBuilderChange", "filterBuilderPopupChange", "filterPanelChange", "filterRowChange", "filterSyncEnabledChange", "filterValueChange", "focusedColumnIndexChange", "focusedRowEnabledChange", "focusedRowIndexChange", "focusedRowKeyChange", "groupingChange", "groupPanelChange", "headerFilterChange", "heightChange", "highlightChangesChange", "hintChange", "hoverStateEnabledChange", "keyboardNavigationChange", "keyExprChange", "loadPanelChange", "masterDetailChange", "noDataTextChange", "pagerChange", "pagingChange", "remoteOperationsChange", "renderAsyncChange", "repaintChangesOnlyChange", "rowAlternationEnabledChange", "rowDraggingChange", "rowTemplateChange", "rtlEnabledChange", "scrollingChange", "searchPanelChange", "selectedRowKeysChange", "selectionChange", "selectionFilterChange", "showBordersChange", "showColumnHeadersChange", "showColumnLinesChange", "showRowLinesChange", "sortByGroupSummaryInfoChange", "sortingChange", "stateStoringChange", "summaryChange", "syncLookupFilterValuesChange", "tabIndexChange", "toolbarChange", "twoWayBindingEnabledChange", "visibleChange", "widthChange", "wordWrapEnabledChange"] }, { kind: "component", type: i8.DxoColumnFixingComponent, selector: "dxo-column-fixing", inputs: ["enabled", "texts"] }, { kind: "component", type: i8.DxiColumnComponent, selector: "dxi-column", inputs: ["alignment", "allowEditing", "allowExporting", "allowFiltering", "allowFixing", "allowGrouping", "allowHeaderFiltering", "allowHiding", "allowReordering", "allowResizing", "allowSearch", "allowSorting", "autoExpandGroup", "buttons", "calculateCellValue", "calculateDisplayValue", "calculateFilterExpression", "calculateGroupValue", "calculateSortValue", "caption", "cellTemplate", "columns", "cssClass", "customizeText", "dataField", "dataType", "editCellTemplate", "editorOptions", "encodeHtml", "falseText", "filterOperations", "filterType", "filterValue", "filterValues", "fixed", "fixedPosition", "format", "formItem", "groupCellTemplate", "groupIndex", "headerCellTemplate", "headerFilter", "hidingPriority", "isBand", "lookup", "minWidth", "name", "ownerBand", "renderAsync", "selectedFilterOperation", "setCellValue", "showEditorAlways", "showInColumnChooser", "showWhenGrouped", "sortIndex", "sortingMethod", "sortOrder", "trueText", "type", "validationRules", "visible", "visibleIndex", "width"], outputs: ["filterValueChange", "filterValuesChange", "groupIndexChange", "selectedFilterOperationChange", "sortIndexChange", "sortOrderChange", "visibleChange", "visibleIndexChange"] }, { kind: "component", type: i8.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i8.DxiToolbarItemComponent, selector: "dxi-toolbar-item", inputs: ["cssClass", "disabled", "html", "locateInMenu", "location", "menuItemTemplate", "options", "showText", "template", "text", "toolbar", "visible", "widget"] }, { kind: "component", type: i8.DxoFilterBuilderComponent, selector: "dxo-filter-builder", inputs: ["accessKey", "activeStateEnabled", "allowHierarchicalFields", "customOperations", "disabled", "elementAttr", "fields", "filterOperationDescriptions", "focusStateEnabled", "groupOperationDescriptions", "groupOperations", "height", "hint", "hoverStateEnabled", "maxGroupLevel", "onContentReady", "onDisposing", "onEditorPrepared", "onEditorPreparing", "onInitialized", "onOptionChanged", "onValueChanged", "rtlEnabled", "tabIndex", "value", "visible", "width"], outputs: ["valueChange"] }, { kind: "component", type: i8.DxoFilterPanelComponent, selector: "dxo-filter-panel", inputs: ["customizeText", "filterEnabled", "texts", "visible"], outputs: ["filterEnabledChange"] }, { kind: "component", type: i8.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i8.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i8.DxoScrollingComponent, selector: "dxo-scrolling", inputs: ["columnRenderingMode", "mode", "preloadEnabled", "renderAsync", "rowRenderingMode", "scrollByContent", "scrollByThumb", "showScrollbar", "useNative"] }, { kind: "component", type: i8.DxoSortingComponent, selector: "dxo-sorting", inputs: ["ascendingText", "clearText", "descendingText", "mode", "showSortIndexes"] }, { kind: "directive", type: i9.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: i7.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "component", type: i7.DxPopupComponent, selector: "dx-popup", inputs: ["accessKey", "animation", "closeOnOutsideClick", "container", "contentTemplate", "copyRootClassesToWrapper", "deferRendering", "disabled", "dragAndResizeArea", "dragEnabled", "dragOutsideBoundary", "elementAttr", "focusStateEnabled", "fullScreen", "height", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "resizeEnabled", "restorePosition", "rtlEnabled", "shading", "shadingColor", "showCloseButton", "showTitle", "tabIndex", "title", "titleTemplate", "toolbarItems", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onResize", "onResizeEnd", "onResizeStart", "onShowing", "onShown", "onTitleRendered", "accessKeyChange", "animationChange", "closeOnOutsideClickChange", "containerChange", "contentTemplateChange", "copyRootClassesToWrapperChange", "deferRenderingChange", "disabledChange", "dragAndResizeAreaChange", "dragEnabledChange", "dragOutsideBoundaryChange", "elementAttrChange", "focusStateEnabledChange", "fullScreenChange", "heightChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "resizeEnabledChange", "restorePositionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showCloseButtonChange", "showTitleChange", "tabIndexChange", "titleChange", "titleTemplateChange", "toolbarItemsChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "component", type: i7.DxScrollViewComponent, selector: "dx-scroll-view", inputs: ["bounceEnabled", "direction", "disabled", "elementAttr", "height", "pulledDownText", "pullingDownText", "reachBottomText", "refreshingText", "rtlEnabled", "scrollByContent", "scrollByThumb", "showScrollbar", "useNative", "width"], outputs: ["onDisposing", "onInitialized", "onOptionChanged", "onPullDown", "onReachBottom", "onScroll", "onUpdated", "bounceEnabledChange", "directionChange", "disabledChange", "elementAttrChange", "heightChange", "pulledDownTextChange", "pullingDownTextChange", "reachBottomTextChange", "refreshingTextChange", "rtlEnabledChange", "scrollByContentChange", "scrollByThumbChange", "showScrollbarChange", "useNativeChange", "widthChange"] }, { kind: "component", type: i7.DxDropDownButtonComponent, selector: "dx-drop-down-button", inputs: ["accessKey", "activeStateEnabled", "dataSource", "deferRendering", "disabled", "displayExpr", "dropDownContentTemplate", "dropDownOptions", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "items", "itemTemplate", "keyExpr", "noDataText", "opened", "rtlEnabled", "selectedItem", "selectedItemKey", "showArrowIcon", "splitButton", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "useSelectMode", "visible", "width", "wrapItemText"], outputs: ["onButtonClick", "onContentReady", "onDisposing", "onInitialized", "onItemClick", "onOptionChanged", "onSelectionChanged", "accessKeyChange", "activeStateEnabledChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "dropDownContentTemplateChange", "dropDownOptionsChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "itemsChange", "itemTemplateChange", "keyExprChange", "noDataTextChange", "openedChange", "rtlEnabledChange", "selectedItemChange", "selectedItemKeyChange", "showArrowIconChange", "splitButtonChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "useSelectModeChange", "visibleChange", "widthChange", "wrapItemTextChange"] }, { kind: "pipe", type: i5.JsonPipe, name: "json" }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.Default });
1324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogComponent, decorators: [{
1325
+ type: Component,
1326
+ args: [{ selector: 'lib-hit-ovolt-integration-log', changeDetection: ChangeDetectionStrategy.Default, providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], template: "<abp-page [title]=\"'Ovolt::OvoltIntegrationLogs' | abpLocalization\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"text-lg-end pt-2\">\r\n <dx-button *abpPermission=\"'Ovolt.OvoltIntegrationLogs.DeleteAll'\"\r\n text=\"{{ 'Ovolt::DeleteAll' | abpLocalization }}\" type=\"danger\" (onClick)=\"deleteAll()\"\r\n [disabled]=\"isdeleteAll\"></dx-button>\r\n </div>\r\n </abp-page-toolbar-container>\r\n\r\n <div class=\"card mt-2\">\r\n <div class=\"card-body\">\r\n <dx-data-grid #dxGrid [dataSource]=\"OvoltIntegrationLogDataSource\" [showRowLines]=\"true\" [showBorders]=\"true\"\r\n [remoteOperations]=\"true\" [hoverStateEnabled]=\"true\" [repaintChangesOnly]=\"true\"\r\n [allowColumnResizing]=\"true\" columnResizingMode=\"widget\" [allowColumnReordering]=\"true\"\r\n [columnAutoWidth]=\"true\" [columnHidingEnabled]=\"true\" keyExpr=\"id\">\r\n <dxo-paging [pageSize]=\"50\"></dxo-paging>\r\n <dxo-column-fixing [enabled]=\"true\"></dxo-column-fixing>\r\n <dxo-header-filter [allowSearch]=\"true\" [visible]=\"true\"></dxo-header-filter>\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-column-fixing [enabled]=\"true\"></dxo-column-fixing>\r\n <dxo-filter-builder [allowHierarchicalFields]=\"true\"></dxo-filter-builder>\r\n <dxo-filter-panel [visible]=\"true\"></dxo-filter-panel>\r\n <dxo-sorting mode=\"single\"></dxo-sorting>\r\n <dxo-scrolling mode=\"horizontal\" showScrollbar=\"always\"></dxo-scrolling>\r\n\r\n <dxi-column *ngIf=\"actionMenuItems?.length > 0\" [fixed]=\"true\" alignment=\"center\"\r\n caption=\"{{ 'Ovolt::Processes' | abpLocalization }}\" dataField=\"id\"\r\n [cellTemplate]=\"'actionTemplate'\">\r\n <div *dxTemplate=\"let data of 'actionTemplate'\">\r\n <dx-drop-down-button text=\"{{ 'Ovolt::Show' | abpLocalization }}\" stylingMode=\"outlined\"\r\n displayExpr=\"text\" keyExpr=\"key\" [items]=\"actionMenuItems\"\r\n (onItemClick)=\"onActionClick($event, data.data.id)\">\r\n\r\n <div *dxTemplate=\"let item of 'item'\">\r\n <dx-button [text]=\"item.text\" stylingMode=\"text\" width=\"180\" height=\"40\">\r\n </dx-button>\r\n </div>\r\n </dx-drop-down-button>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"path\" caption=\"{{ 'Ovolt::Path' | abpLocalization }}\"></dxi-column>\r\n\r\n <dxi-column dataField=\"method\" caption=\"{{ 'Ovolt::Method' | abpLocalization }}\"></dxi-column>\r\n\r\n <!-- <dxi-column [fixed]=\"true\" caption=\"{{ 'Ovolt::RequestBody' | abpLocalization }}\" dataField=\"id\"\r\n [cellTemplate]=\"'requestBodyTemplate'\">\r\n <div *dxTemplate=\"let data of 'requestBodyTemplate'\">\r\n <dx-button text=\"{{ 'Ovolt::ShowRequestBody' | abpLocalization }}\" type=\"default\"\r\n (onClick)=\"showRequestBody(data.data.id)\"></dx-button>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column [fixed]=\"true\" caption=\"{{ 'Ovolt::ResponseBody' | abpLocalization }}\" dataField=\"id\"\r\n [cellTemplate]=\"'responseBodyTemplate'\">\r\n <div *dxTemplate=\"let data of 'responseBodyTemplate'\">\r\n <dx-button text=\"{{ 'Ovolt::ShowResponseBody' | abpLocalization }}\" type=\"default\"\r\n (onClick)=\"showResponseBody(data.data.id)\"></dx-button>\r\n </div>\r\n </dxi-column> -->\r\n\r\n <dxi-column dataField=\"statusCode\" caption=\"{{ 'Ovolt::StatusCode' | abpLocalization }}\"></dxi-column>\r\n\r\n <dxi-column caption=\"{{ 'Ovolt::RequestTime' | abpLocalization }}\" dataField=\"requestTime\"\r\n dataType=\"datetime\" [format]=\" 'dd.MM.yyyy HH:mm:ss' \" sortOrder=\"desc\" sortIndex=\"0\">\r\n </dxi-column>\r\n\r\n <dxi-column caption=\"{{ 'Ovolt::ResponseTime' | abpLocalization }}\" dataField=\"responseTime\"\r\n dataType=\"datetime\" [format]=\" 'dd.MM.yyyy HH:mm:ss' \">\r\n </dxi-column>\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n\r\n <!-- Request JSON Popup -->\r\n <dx-popup [(visible)]=\"isRequestBodyModalOpen\" [showTitle]=\"true\" [title]=\"'Ovolt::RequestBody' | abpLocalization\"\r\n [hideOnOutsideClick]=\"true\" [showCloseButton]=\"false\">\r\n <dxi-toolbar-item widget=\"dxButton\" toolbar=\"bottom\" location=\"after\" [options]=\"closeRequestBodyButtonOptions\">\r\n </dxi-toolbar-item>\r\n <div *dxTemplate=\"let data of 'content'\" class=\"p-3\">\r\n <dx-scroll-view>\r\n <pre style=\"white-space: pre-wrap; word-wrap: break-word;\">\r\n {{ selectedRequestBodyModel | json }}\r\n </pre>\r\n </dx-scroll-view>\r\n </div>\r\n </dx-popup>\r\n\r\n\r\n <!-- Response JSON Popup -->\r\n <dx-popup [(visible)]=\"isResponseBodyModalOpen\" [showTitle]=\"true\" [title]=\"'Ovolt::ResponseBody' | abpLocalization\"\r\n [hideOnOutsideClick]=\"true\" [showCloseButton]=\"false\">\r\n <dxi-toolbar-item widget=\"dxButton\" toolbar=\"bottom\" location=\"after\"\r\n [options]=\"closeResponseBodyButtonOptions\">\r\n </dxi-toolbar-item>\r\n <div *dxTemplate=\"let data of 'content'\" class=\"p-3\">\r\n <dx-scroll-view>\r\n <pre style=\"white-space: pre-wrap; word-wrap: break-word;\">\r\n {{ selectedResponseBodyModel | json }}\r\n </pre>\r\n </dx-scroll-view>\r\n </div>\r\n </dx-popup>\r\n</abp-page>" }]
1327
+ }], ctorParameters: function () { return [{ type: OvoltIntegrationLogService }, { type: i2.TrackByService }, { type: HitOvoltIntegrationLogService }, { type: i4.ToasterService }, { type: i2.LocalizationService }, { type: i2.PermissionService }, { type: i4.ConfirmationService }]; }, propDecorators: { dxGrid: [{
1328
+ type: ViewChild,
1329
+ args: ['dxGrid', { static: false }]
1330
+ }] } });
1331
+
1332
+ const routes$1 = [
1333
+ {
1334
+ path: '',
1335
+ component: HitOvoltIntegrationLogComponent,
1336
+ canActivate: [AuthGuard, PermissionGuard],
1337
+ },
1338
+ ];
1339
+ class HitOvoltIntegrationLogRoutingModule {
1340
+ }
1341
+ HitOvoltIntegrationLogRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1342
+ HitOvoltIntegrationLogRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
1343
+ HitOvoltIntegrationLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogRoutingModule, imports: [RouterModule.forChild(routes$1), RouterModule] });
1344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogRoutingModule, decorators: [{
1345
+ type: NgModule,
1346
+ args: [{
1347
+ imports: [RouterModule.forChild(routes$1)],
1348
+ exports: [RouterModule],
1349
+ }]
1350
+ }] });
1351
+
1352
+ class HitOvoltIntegrationLogModule {
1353
+ }
1354
+ HitOvoltIntegrationLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1355
+ HitOvoltIntegrationLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogModule, declarations: [HitOvoltIntegrationLogComponent], imports: [HitOvoltIntegrationLogRoutingModule,
1356
+ CoreModule,
1357
+ ThemeSharedModule,
1358
+ CommercialUiModule,
1359
+ NgxValidateCoreModule,
1360
+ NgbCollapseModule,
1361
+ NgbDatepickerModule,
1362
+ NgbDropdownModule,
1363
+ PageModule,
1364
+ DxDataGridModule,
1365
+ DxButtonModule,
1366
+ DxPopupModule,
1367
+ DxScrollViewModule,
1368
+ DxTemplateModule,
1369
+ DxDropDownButtonModule] });
1370
+ HitOvoltIntegrationLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogModule, imports: [HitOvoltIntegrationLogRoutingModule,
1371
+ CoreModule,
1372
+ ThemeSharedModule,
1373
+ CommercialUiModule,
1374
+ NgxValidateCoreModule,
1375
+ NgbCollapseModule,
1376
+ NgbDatepickerModule,
1377
+ NgbDropdownModule,
1378
+ PageModule,
1379
+ DxDataGridModule,
1380
+ DxButtonModule,
1381
+ DxPopupModule,
1382
+ DxScrollViewModule,
1383
+ DxTemplateModule,
1384
+ DxDropDownButtonModule] });
1385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogModule, decorators: [{
1386
+ type: NgModule,
1387
+ args: [{
1388
+ declarations: [HitOvoltIntegrationLogComponent],
1389
+ imports: [
1390
+ HitOvoltIntegrationLogRoutingModule,
1391
+ CoreModule,
1392
+ ThemeSharedModule,
1393
+ CommercialUiModule,
1394
+ NgxValidateCoreModule,
1395
+ NgbCollapseModule,
1396
+ NgbDatepickerModule,
1397
+ NgbDropdownModule,
1398
+ PageModule,
1399
+ DxDataGridModule,
1400
+ DxButtonModule,
1401
+ DxPopupModule,
1402
+ DxScrollViewModule,
1403
+ DxTemplateModule,
1404
+ DxDropDownButtonModule
1405
+ ],
1406
+ }]
1407
+ }] });
1408
+ function loadHitOvoltIntegrationLogModuleAsChild() {
1409
+ return Promise.resolve(HitOvoltIntegrationLogModule);
1410
+ }
1411
+
1074
1412
  const routes = [
1075
1413
  {
1076
1414
  path: '',
@@ -1081,6 +1419,7 @@ const routes = [
1081
1419
  { path: 'process-logs', loadChildren: loadHitProcessLogModuleAsChild },
1082
1420
  { path: 'latest-failed-process-logs', loadChildren: loadHitLatestFailedProcessLogModuleAsChild },
1083
1421
  { path: 'fuel-integration-logs', loadChildren: loadHitFuelIntegrationLogModuleAsChild },
1422
+ { path: 'ovolt-integration-logs', loadChildren: loadHitOvoltIntegrationLogModuleAsChild },
1084
1423
  ];
1085
1424
  class OvoltRoutingModule {
1086
1425
  }