@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',
@@ -302,7 +302,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
302
302
  args: ['dxGrid', { static: false }]
303
303
  }] } });
304
304
 
305
- const routes$4 = [
305
+ const routes$5 = [
306
306
  {
307
307
  path: '',
308
308
  component: HitProcessLogComponent,
@@ -313,11 +313,11 @@ class HitProcessLogRoutingModule {
313
313
  }
314
314
  HitProcessLogRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
315
315
  HitProcessLogRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
316
- HitProcessLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, imports: [RouterModule.forChild(routes$4), RouterModule] });
316
+ HitProcessLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, imports: [RouterModule.forChild(routes$5), RouterModule] });
317
317
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, decorators: [{
318
318
  type: NgModule,
319
319
  args: [{
320
- imports: [RouterModule.forChild(routes$4)],
320
+ imports: [RouterModule.forChild(routes$5)],
321
321
  exports: [RouterModule],
322
322
  }]
323
323
  }] });
@@ -578,7 +578,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
578
578
  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>" }]
579
579
  }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: SystemParameterService }, { type: HitSystemParameterService }, { type: i4.ToasterService }, { type: i2.TrackByService }]; } });
580
580
 
581
- const routes$3 = [
581
+ const routes$4 = [
582
582
  {
583
583
  path: '',
584
584
  component: HitSystemParameterComponent,
@@ -589,11 +589,11 @@ class HitSystemParameterRoutingModule {
589
589
  }
590
590
  HitSystemParameterRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
591
591
  HitSystemParameterRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
592
- HitSystemParameterRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, imports: [RouterModule.forChild(routes$3), RouterModule] });
592
+ HitSystemParameterRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, imports: [RouterModule.forChild(routes$4), RouterModule] });
593
593
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, decorators: [{
594
594
  type: NgModule,
595
595
  args: [{
596
- imports: [RouterModule.forChild(routes$3)],
596
+ imports: [RouterModule.forChild(routes$4)],
597
597
  exports: [RouterModule],
598
598
  }]
599
599
  }] });
@@ -778,19 +778,27 @@ class HitFuelIntegrationLogComponent {
778
778
  this.FuelIntegrationLogDataSource = this.hitFuelIntegrationLogService.LoadFuelIntegrationLogs;
779
779
  }
780
780
  showRequestBody(id) {
781
- // Yükleme durumunu başlat (gerekirse)
782
781
  this.isLoadingRequestBodyModel = true;
783
- // Önce popup'ı kapat (önceki tıklamalarda açık kalmış olabilir)
784
782
  this.isRequestBodyModalOpen = false;
785
783
  this.hitFuelIntegrationLogService.getRequesteBody({ logId: id })
786
784
  .subscribe({
787
785
  next: (data) => {
788
- this.selectedRequestBodyModel = typeof data === 'string' ? JSON.parse(data) : data;
789
- // Veri geldikten sonra popup'ı aç
790
- this.isRequestBodyModalOpen = true;
786
+ try {
787
+ this.selectedRequestBodyModel =
788
+ typeof data === 'string' ? JSON.parse(data) : data;
789
+ this.isRequestBodyModalOpen = true;
790
+ }
791
+ catch (parseError) {
792
+ this.toaster.info('Gelen veri gösterilecek formatta değil.');
793
+ }
794
+ },
795
+ error: (err) => {
796
+ this.toaster.info('Veri alınırken hata oluştu.');
797
+ },
798
+ complete: () => {
799
+ this.isLoadingRequestBodyModel = false;
791
800
  }
792
801
  });
793
- this.isLoadingRequestBodyModel = false;
794
802
  }
795
803
  showResponseBody(id) {
796
804
  // Yükleme durumunu başlat (gerekirse)
@@ -800,12 +808,22 @@ class HitFuelIntegrationLogComponent {
800
808
  this.hitFuelIntegrationLogService.getResponseBody({ logId: id })
801
809
  .subscribe({
802
810
  next: (data) => {
803
- this.selectedResponseBodyModel = typeof data === 'string' ? JSON.parse(data) : data;
804
- // Veri geldikten sonra popup'ı
805
- this.isResponseBodyModalOpen = true;
811
+ try {
812
+ this.selectedResponseBodyModel = typeof data === 'string' ? JSON.parse(data) : data;
813
+ // Veri geldikten sonra popup'ı aç
814
+ this.isResponseBodyModalOpen = true;
815
+ }
816
+ catch (parseError) {
817
+ this.toaster.info('Gelen veri gösterilecek formatta değil.');
818
+ }
819
+ },
820
+ error: (err) => {
821
+ this.toaster.info('Veri alınırken hata oluştu.');
822
+ },
823
+ complete: () => {
824
+ this.isLoadingRequestBodyModel = false;
806
825
  }
807
826
  });
808
- this.isLoadingResponseBodyModel = false;
809
827
  }
810
828
  editFuelIntegrationLog(record) {
811
829
  console.log('Edit:', record);
@@ -858,7 +876,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
858
876
  args: ['dxGrid', { static: false }]
859
877
  }] } });
860
878
 
861
- const routes$2 = [
879
+ const routes$3 = [
862
880
  {
863
881
  path: '',
864
882
  component: HitFuelIntegrationLogComponent,
@@ -869,11 +887,11 @@ class HitFuelIntegrationLogRoutingModule {
869
887
  }
870
888
  HitFuelIntegrationLogRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFuelIntegrationLogRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
871
889
  HitFuelIntegrationLogRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitFuelIntegrationLogRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
872
- HitFuelIntegrationLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFuelIntegrationLogRoutingModule, imports: [RouterModule.forChild(routes$2), RouterModule] });
890
+ HitFuelIntegrationLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFuelIntegrationLogRoutingModule, imports: [RouterModule.forChild(routes$3), RouterModule] });
873
891
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFuelIntegrationLogRoutingModule, decorators: [{
874
892
  type: NgModule,
875
893
  args: [{
876
- imports: [RouterModule.forChild(routes$2)],
894
+ imports: [RouterModule.forChild(routes$3)],
877
895
  exports: [RouterModule],
878
896
  }]
879
897
  }] });
@@ -992,7 +1010,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
992
1010
  args: ['dxGrid', { static: false }]
993
1011
  }] } });
994
1012
 
995
- const routes$1 = [
1013
+ const routes$2 = [
996
1014
  {
997
1015
  path: '',
998
1016
  component: HitLatestFailedProcessLogComponent,
@@ -1003,11 +1021,11 @@ class HitLatestFailedProcessLogRoutingModule {
1003
1021
  }
1004
1022
  HitLatestFailedProcessLogRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitLatestFailedProcessLogRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1005
1023
  HitLatestFailedProcessLogRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitLatestFailedProcessLogRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
1006
- HitLatestFailedProcessLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitLatestFailedProcessLogRoutingModule, imports: [RouterModule.forChild(routes$1), RouterModule] });
1024
+ HitLatestFailedProcessLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitLatestFailedProcessLogRoutingModule, imports: [RouterModule.forChild(routes$2), RouterModule] });
1007
1025
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitLatestFailedProcessLogRoutingModule, decorators: [{
1008
1026
  type: NgModule,
1009
1027
  args: [{
1010
- imports: [RouterModule.forChild(routes$1)],
1028
+ imports: [RouterModule.forChild(routes$2)],
1011
1029
  exports: [RouterModule],
1012
1030
  }]
1013
1031
  }] });
@@ -1073,6 +1091,327 @@ function loadHitLatestFailedProcessLogModuleAsChild() {
1073
1091
  return Promise.resolve(HitLatestFailedProcessLogModule);
1074
1092
  }
1075
1093
 
1094
+ class OvoltIntegrationLogService {
1095
+ constructor(restService) {
1096
+ this.restService = restService;
1097
+ this.apiName = 'Ovolt';
1098
+ this.create = (input) => this.restService.request({
1099
+ method: 'POST',
1100
+ url: '/api/ovolt/ovolt-integration-logs',
1101
+ body: input,
1102
+ }, { apiName: this.apiName });
1103
+ this.delete = (id) => this.restService.request({
1104
+ method: 'DELETE',
1105
+ url: `/api/ovolt/ovolt-integration-logs/${id}`,
1106
+ }, { apiName: this.apiName });
1107
+ this.get = (id) => this.restService.request({
1108
+ method: 'GET',
1109
+ url: `/api/ovolt/ovolt-integration-logs/${id}`,
1110
+ }, { apiName: this.apiName });
1111
+ this.getDownloadToken = () => this.restService.request({
1112
+ method: 'GET',
1113
+ url: '/api/ovolt/ovolt-integration-logs/download-token',
1114
+ }, { apiName: this.apiName });
1115
+ this.getList = (input) => this.restService.request({
1116
+ method: 'GET',
1117
+ url: '/api/ovolt/ovolt-integration-logs',
1118
+ 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 },
1119
+ }, { apiName: this.apiName });
1120
+ this.getListAsExcelFile = (input) => this.restService.request({
1121
+ method: 'GET',
1122
+ responseType: 'blob',
1123
+ url: '/api/ovolt/ovolt-integration-logs/as-excel-file',
1124
+ params: { downloadToken: input.downloadToken, filterText: input.filterText, name: input.name },
1125
+ }, { apiName: this.apiName });
1126
+ this.update = (id, input) => this.restService.request({
1127
+ method: 'PUT',
1128
+ url: `/api/ovolt/ovolt-integration-logs/${id}`,
1129
+ body: input,
1130
+ }, { apiName: this.apiName });
1131
+ }
1132
+ }
1133
+ OvoltIntegrationLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltIntegrationLogService, deps: [{ token: i2.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
1134
+ OvoltIntegrationLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltIntegrationLogService, providedIn: 'root' });
1135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltIntegrationLogService, decorators: [{
1136
+ type: Injectable,
1137
+ args: [{
1138
+ providedIn: 'root',
1139
+ }]
1140
+ }], ctorParameters: function () { return [{ type: i2.RestService }]; } });
1141
+
1142
+ class HitOvoltIntegrationLogService {
1143
+ constructor(restService, devexService) {
1144
+ this.restService = restService;
1145
+ this.devexService = devexService;
1146
+ this.apiName = 'Ovolt';
1147
+ this.getRequesteBody = (input) => this.restService.request({
1148
+ method: 'POST',
1149
+ url: '/api/ovolt/ovolt-integration-logs/get-request-body',
1150
+ body: input
1151
+ }, { apiName: this.apiName });
1152
+ this.getResponseBody = (input) => this.restService.request({
1153
+ method: 'POST',
1154
+ url: '/api/ovolt/ovolt-integration-logs/get-response-body',
1155
+ body: input
1156
+ }, { apiName: this.apiName });
1157
+ this.deleteAll = () => this.restService.request({
1158
+ method: 'POST',
1159
+ url: '/api/ovolt/ovolt-integration-logs/delete-all',
1160
+ }, { apiName: this.apiName });
1161
+ }
1162
+ get LoadOvoltIntegrationLogs() {
1163
+ return this.devexService.createStore({
1164
+ key: 'id',
1165
+ loadUrl: 'api/ovolt/ovolt-integration-logs/load',
1166
+ });
1167
+ }
1168
+ }
1169
+ 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 });
1170
+ HitOvoltIntegrationLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogService, providedIn: 'root' });
1171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogService, decorators: [{
1172
+ type: Injectable,
1173
+ args: [{
1174
+ providedIn: 'root',
1175
+ }]
1176
+ }], ctorParameters: function () { return [{ type: i2.RestService }, { type: DevexpressRestService }]; } });
1177
+
1178
+ class HitOvoltIntegrationLogComponent {
1179
+ constructor(service, track, hitOvoltIntegrationLogService, toaster, localization, permissionService, confirmation) {
1180
+ this.service = service;
1181
+ this.track = track;
1182
+ this.hitOvoltIntegrationLogService = hitOvoltIntegrationLogService;
1183
+ this.toaster = toaster;
1184
+ this.localization = localization;
1185
+ this.permissionService = permissionService;
1186
+ this.confirmation = confirmation;
1187
+ this.isdeleteAll = false;
1188
+ this.isRequestBodyModalOpen = false;
1189
+ this.isLoadingRequestBodyModel = false;
1190
+ this.isResponseBodyModalOpen = false;
1191
+ this.isLoadingResponseBodyModel = false;
1192
+ }
1193
+ ngOnInit() {
1194
+ this.actionMenuItems = [];
1195
+ if (this.permissionService.getGrantedPolicy('Ovolt.OvoltIntegrationLogs.ShowRequestBody')) {
1196
+ this.actionMenuItems.push({
1197
+ key: 'requestBody',
1198
+ text: this.l('Ovolt::ShowRequestBody'),
1199
+ type: 'success'
1200
+ });
1201
+ }
1202
+ if (this.permissionService.getGrantedPolicy('Ovolt.OvoltIntegrationLogs.ShowResponseBody')) {
1203
+ this.actionMenuItems.push({
1204
+ key: 'responseBody',
1205
+ text: this.l('Ovolt::ShowResponseBody'),
1206
+ type: 'normal'
1207
+ });
1208
+ }
1209
+ if (this.permissionService.getGrantedPolicy('Ovolt.OvoltIntegrationLogs.Delete')) {
1210
+ this.actionMenuItems.push({
1211
+ key: 'delete',
1212
+ text: this.l('Ovolt::Delete'),
1213
+ type: 'danger'
1214
+ });
1215
+ }
1216
+ this.initDataSource();
1217
+ this.closeRequestBodyButtonOptions = {
1218
+ text: 'Close',
1219
+ stylingMode: 'outlined',
1220
+ type: 'normal',
1221
+ onClick: () => {
1222
+ this.isRequestBodyModalOpen = false;
1223
+ },
1224
+ };
1225
+ this.closeResponseBodyButtonOptions = {
1226
+ text: 'Close',
1227
+ stylingMode: 'outlined',
1228
+ type: 'normal',
1229
+ onClick: () => {
1230
+ this.isResponseBodyModalOpen = false;
1231
+ },
1232
+ };
1233
+ }
1234
+ l(key) {
1235
+ return this.localization.instant(key);
1236
+ }
1237
+ initDataSource() {
1238
+ // Store'u sadece bir kere oluşturuyoruz
1239
+ this.OvoltIntegrationLogDataSource = this.hitOvoltIntegrationLogService.LoadOvoltIntegrationLogs;
1240
+ }
1241
+ showRequestBody(id) {
1242
+ this.isLoadingRequestBodyModel = true;
1243
+ this.isRequestBodyModalOpen = false;
1244
+ this.hitOvoltIntegrationLogService.getRequesteBody({ logId: id })
1245
+ .subscribe({
1246
+ next: (data) => {
1247
+ try {
1248
+ this.selectedRequestBodyModel = typeof data === 'string' ? JSON.parse(data) : data;
1249
+ this.isRequestBodyModalOpen = true;
1250
+ }
1251
+ catch (parseError) {
1252
+ this.toaster.info('Gelen veri gösterilecek formatta değil.');
1253
+ }
1254
+ },
1255
+ error: (err) => {
1256
+ this.toaster.info('Veri alınırken hata oluştu.');
1257
+ },
1258
+ complete: () => {
1259
+ this.isLoadingRequestBodyModel = false;
1260
+ }
1261
+ });
1262
+ }
1263
+ showResponseBody(id) {
1264
+ // Yükleme durumunu başlat (gerekirse)
1265
+ this.isLoadingResponseBodyModel = true;
1266
+ // Önce popup'ı kapat (önceki tıklamalarda açık kalmış olabilir)
1267
+ this.isResponseBodyModalOpen = false;
1268
+ this.hitOvoltIntegrationLogService.getResponseBody({ logId: id })
1269
+ .subscribe({
1270
+ next: (data) => {
1271
+ try {
1272
+ this.selectedResponseBodyModel = typeof data === 'string' ? JSON.parse(data) : data;
1273
+ // Veri geldikten sonra popup'ı aç
1274
+ this.isResponseBodyModalOpen = true;
1275
+ }
1276
+ catch (parseError) {
1277
+ this.toaster.info('Gelen veri gösterilecek formatta değil.');
1278
+ }
1279
+ },
1280
+ error: (err) => {
1281
+ this.toaster.info('Veri alınırken hata oluştu.');
1282
+ },
1283
+ complete: () => {
1284
+ this.isLoadingRequestBodyModel = false;
1285
+ }
1286
+ });
1287
+ }
1288
+ deleteAll() {
1289
+ console.log('deleteAll');
1290
+ this.hitOvoltIntegrationLogService.deleteAll()
1291
+ .subscribe({
1292
+ next: (result) => {
1293
+ if (result) {
1294
+ // Grid'i refresh ediyoruz
1295
+ this.dxGrid.instance.refresh();
1296
+ }
1297
+ else {
1298
+ this.toaster.error('Veri yüklenirken hata oluştu.');
1299
+ }
1300
+ }
1301
+ });
1302
+ }
1303
+ deleteOvoltIntegrationLog(record) {
1304
+ if (confirm(this.l('Ovolt::DeleteConfirmationMessage'))) {
1305
+ this.service.delete(record).subscribe(() => {
1306
+ // Grid'i refresh ediyoruz
1307
+ this.dxGrid.instance.refresh();
1308
+ });
1309
+ }
1310
+ }
1311
+ onActionClick(e, id) {
1312
+ var _a;
1313
+ const action = (_a = e.itemData) === null || _a === void 0 ? void 0 : _a.key;
1314
+ if (action === 'requestBody') {
1315
+ this.showRequestBody(id);
1316
+ }
1317
+ if (action === 'responseBody') {
1318
+ this.showResponseBody(id);
1319
+ }
1320
+ if (action === 'delete') {
1321
+ this.deleteOvoltIntegrationLog(id);
1322
+ }
1323
+ }
1324
+ }
1325
+ 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 });
1326
+ 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 });
1327
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogComponent, decorators: [{
1328
+ type: Component,
1329
+ 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>" }]
1330
+ }], ctorParameters: function () { return [{ type: OvoltIntegrationLogService }, { type: i2.TrackByService }, { type: HitOvoltIntegrationLogService }, { type: i4.ToasterService }, { type: i2.LocalizationService }, { type: i2.PermissionService }, { type: i4.ConfirmationService }]; }, propDecorators: { dxGrid: [{
1331
+ type: ViewChild,
1332
+ args: ['dxGrid', { static: false }]
1333
+ }] } });
1334
+
1335
+ const routes$1 = [
1336
+ {
1337
+ path: '',
1338
+ component: HitOvoltIntegrationLogComponent,
1339
+ canActivate: [AuthGuard, PermissionGuard],
1340
+ },
1341
+ ];
1342
+ class HitOvoltIntegrationLogRoutingModule {
1343
+ }
1344
+ HitOvoltIntegrationLogRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1345
+ HitOvoltIntegrationLogRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] });
1346
+ HitOvoltIntegrationLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogRoutingModule, imports: [RouterModule.forChild(routes$1), RouterModule] });
1347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogRoutingModule, decorators: [{
1348
+ type: NgModule,
1349
+ args: [{
1350
+ imports: [RouterModule.forChild(routes$1)],
1351
+ exports: [RouterModule],
1352
+ }]
1353
+ }] });
1354
+
1355
+ class HitOvoltIntegrationLogModule {
1356
+ }
1357
+ HitOvoltIntegrationLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1358
+ HitOvoltIntegrationLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogModule, declarations: [HitOvoltIntegrationLogComponent], imports: [HitOvoltIntegrationLogRoutingModule,
1359
+ CoreModule,
1360
+ ThemeSharedModule,
1361
+ CommercialUiModule,
1362
+ NgxValidateCoreModule,
1363
+ NgbCollapseModule,
1364
+ NgbDatepickerModule,
1365
+ NgbDropdownModule,
1366
+ PageModule,
1367
+ DxDataGridModule,
1368
+ DxButtonModule,
1369
+ DxPopupModule,
1370
+ DxScrollViewModule,
1371
+ DxTemplateModule,
1372
+ DxDropDownButtonModule] });
1373
+ HitOvoltIntegrationLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogModule, imports: [HitOvoltIntegrationLogRoutingModule,
1374
+ CoreModule,
1375
+ ThemeSharedModule,
1376
+ CommercialUiModule,
1377
+ NgxValidateCoreModule,
1378
+ NgbCollapseModule,
1379
+ NgbDatepickerModule,
1380
+ NgbDropdownModule,
1381
+ PageModule,
1382
+ DxDataGridModule,
1383
+ DxButtonModule,
1384
+ DxPopupModule,
1385
+ DxScrollViewModule,
1386
+ DxTemplateModule,
1387
+ DxDropDownButtonModule] });
1388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitOvoltIntegrationLogModule, decorators: [{
1389
+ type: NgModule,
1390
+ args: [{
1391
+ declarations: [HitOvoltIntegrationLogComponent],
1392
+ imports: [
1393
+ HitOvoltIntegrationLogRoutingModule,
1394
+ CoreModule,
1395
+ ThemeSharedModule,
1396
+ CommercialUiModule,
1397
+ NgxValidateCoreModule,
1398
+ NgbCollapseModule,
1399
+ NgbDatepickerModule,
1400
+ NgbDropdownModule,
1401
+ PageModule,
1402
+ DxDataGridModule,
1403
+ DxButtonModule,
1404
+ DxPopupModule,
1405
+ DxScrollViewModule,
1406
+ DxTemplateModule,
1407
+ DxDropDownButtonModule
1408
+ ],
1409
+ }]
1410
+ }] });
1411
+ function loadHitOvoltIntegrationLogModuleAsChild() {
1412
+ return Promise.resolve(HitOvoltIntegrationLogModule);
1413
+ }
1414
+
1076
1415
  const routes = [
1077
1416
  {
1078
1417
  path: '',
@@ -1083,6 +1422,7 @@ const routes = [
1083
1422
  { path: 'process-logs', loadChildren: loadHitProcessLogModuleAsChild },
1084
1423
  { path: 'latest-failed-process-logs', loadChildren: loadHitLatestFailedProcessLogModuleAsChild },
1085
1424
  { path: 'fuel-integration-logs', loadChildren: loadHitFuelIntegrationLogModuleAsChild },
1425
+ { path: 'ovolt-integration-logs', loadChildren: loadHitOvoltIntegrationLogModuleAsChild },
1086
1426
  ];
1087
1427
  class OvoltRoutingModule {
1088
1428
  }