@volo/abp.ng.audit-logging 9.3.0-rc.2 → 9.3.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/common/index.d.ts +30 -5
  2. package/config/index.d.ts +116 -5
  3. package/fesm2022/volo-abp.ng.audit-logging-common.mjs +64 -32
  4. package/fesm2022/volo-abp.ng.audit-logging-common.mjs.map +1 -1
  5. package/fesm2022/volo-abp.ng.audit-logging-config.mjs +22 -22
  6. package/fesm2022/volo-abp.ng.audit-logging-config.mjs.map +1 -1
  7. package/fesm2022/volo-abp.ng.audit-logging-proxy.mjs +43 -6
  8. package/fesm2022/volo-abp.ng.audit-logging-proxy.mjs.map +1 -1
  9. package/fesm2022/volo-abp.ng.audit-logging.mjs +39 -32
  10. package/fesm2022/volo-abp.ng.audit-logging.mjs.map +1 -1
  11. package/index.d.ts +215 -3
  12. package/package.json +4 -4
  13. package/proxy/index.d.ts +187 -5
  14. package/common/components/entity-change-details/entity-change-details.component.d.ts +0 -14
  15. package/common/components/index.d.ts +0 -1
  16. package/common/enums/index.d.ts +0 -1
  17. package/common/enums/route-names.d.ts +0 -3
  18. package/common/public-api.d.ts +0 -3
  19. package/common/tokens/features.token.d.ts +0 -6
  20. package/common/tokens/index.d.ts +0 -1
  21. package/config/abstracts/abstract-audit-log-settings.component.d.ts +0 -27
  22. package/config/abstracts/index.d.ts +0 -1
  23. package/config/audit-logging-config.module.d.ts +0 -15
  24. package/config/components/entity-change-modal.component.d.ts +0 -14
  25. package/config/components/index.d.ts +0 -2
  26. package/config/components/settings/audit-log-settings.component.d.ts +0 -8
  27. package/config/components/settings/index.d.ts +0 -2
  28. package/config/components/settings/tabs/audit-log-settings-general/audit-log-settings-general.component.d.ts +0 -6
  29. package/config/components/settings/tabs/audit-log-settings-global/audit-log-settings-global.component.d.ts +0 -7
  30. package/config/components/settings/tabs/index.d.ts +0 -2
  31. package/config/enums/index.d.ts +0 -3
  32. package/config/enums/policy-names.d.ts +0 -3
  33. package/config/enums/route-names.d.ts +0 -2
  34. package/config/enums/setting-tab-names.d.ts +0 -3
  35. package/config/providers/audit-logging-config.provider.d.ts +0 -1
  36. package/config/providers/entity-details.provider.d.ts +0 -7
  37. package/config/providers/entity-history.provider.d.ts +0 -7
  38. package/config/providers/index.d.ts +0 -5
  39. package/config/providers/route.provider.d.ts +0 -2
  40. package/config/providers/setting-tab.provider.d.ts +0 -2
  41. package/config/public-api.d.ts +0 -6
  42. package/config/services/entity-change-modal.service.d.ts +0 -15
  43. package/config/services/index.d.ts +0 -1
  44. package/lib/audit-logging-routing.module.d.ts +0 -7
  45. package/lib/audit-logging.module.d.ts +0 -25
  46. package/lib/audit-logging.routes.d.ts +0 -3
  47. package/lib/components/audit-logs/audit-logs.component.d.ts +0 -29
  48. package/lib/components/audit-logs/index.d.ts +0 -1
  49. package/lib/components/entity-change/entity-changes.component.d.ts +0 -23
  50. package/lib/components/index.d.ts +0 -5
  51. package/lib/components/widgets/average-execution-duration-widget.component.d.ts +0 -24
  52. package/lib/components/widgets/error-rate-widget.component.d.ts +0 -24
  53. package/lib/constants/http.d.ts +0 -5
  54. package/lib/constants/index.d.ts +0 -1
  55. package/lib/defaults/default-audit-logs-entity-actions.d.ts +0 -3
  56. package/lib/defaults/default-audit-logs-entity-props.d.ts +0 -3
  57. package/lib/defaults/default-audit-logs-toolbar-actions.d.ts +0 -3
  58. package/lib/defaults/default-entity-changes-entity-actions.d.ts +0 -3
  59. package/lib/enums/components.d.ts +0 -4
  60. package/lib/enums/entity-change.d.ts +0 -5
  61. package/lib/enums/index.d.ts +0 -2
  62. package/lib/guards/audit-logging.guard.d.ts +0 -14
  63. package/lib/guards/extensions.guard.d.ts +0 -11
  64. package/lib/guards/index.d.ts +0 -2
  65. package/lib/models/audit-logging.d.ts +0 -9
  66. package/lib/models/config-options.d.ts +0 -18
  67. package/lib/models/index.d.ts +0 -2
  68. package/lib/resolvers/extensions.resolver.d.ts +0 -2
  69. package/lib/resolvers/index.d.ts +0 -1
  70. package/lib/tokens/entity-details.token.d.ts +0 -2
  71. package/lib/tokens/extensions.token.d.ts +0 -23
  72. package/lib/tokens/index.d.ts +0 -2
  73. package/proxy/lib/index.d.ts +0 -2
  74. package/proxy/lib/proxy/audit-logging/audit-log-settings.service.d.ts +0 -14
  75. package/proxy/lib/proxy/audit-logging/audit-logs.service.d.ts +0 -19
  76. package/proxy/lib/proxy/audit-logging/index.d.ts +0 -3
  77. package/proxy/lib/proxy/audit-logging/models.d.ts +0 -105
  78. package/proxy/lib/proxy/auditing/entity-change-type.enum.d.ts +0 -6
  79. package/proxy/lib/proxy/auditing/index.d.ts +0 -1
  80. package/proxy/public-api.d.ts +0 -1
  81. package/public-api.d.ts +0 -9
package/index.d.ts CHANGED
@@ -1,5 +1,217 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, Injector, AfterViewInit, ChangeDetectorRef, ModuleWithProviders, NgModuleFactory, InjectionToken } from '@angular/core';
3
+ import * as _abp_ng_components_extensible from '@abp/ng.components/extensible';
4
+ import { EntityActionContributorCallback, ToolbarActionContributorCallback, EntityPropContributorCallback } from '@abp/ng.components/extensible';
5
+ import { AuditLogDto, EntityChangeDto, AuditLogsService, GetAuditLogListDto, EntityChangeWithUsernameDto, EntityChangeType } from '@volo/abp.ng.audit-logging/proxy';
6
+ import * as i1 from '@angular/router';
7
+ import { Routes, ResolveFn } from '@angular/router';
8
+ import * as _abp_ng_core from '@abp/ng.core';
9
+ import { ListService, PagedResultDto, TrackByService, PermissionService, LocalizationService } from '@abp/ng.core';
10
+ import * as i3 from '@volo/abp.commercial.ng.ui';
11
+ import * as i4 from '@abp/ng.theme.shared';
12
+ import { Statistics } from '@abp/ng.theme.shared';
13
+ import * as i5 from '@ng-bootstrap/ng-bootstrap';
14
+ import * as i6 from '@abp/ng.components/page';
15
+ import * as i7 from '@abp/ng.components/chart.js';
16
+ import { ChartComponent } from '@abp/ng.components/chart.js';
17
+ import * as i8 from '@volo/abp.ng.audit-logging/common';
18
+ import * as _angular_forms from '@angular/forms';
19
+ import { UntypedFormBuilder } from '@angular/forms';
20
+ import { BehaviorSubject, Observable } from 'rxjs';
21
+ import { ModuleVisibility } from '@volo/abp.commercial.ng.ui/config';
22
+
23
+ declare const enum eAuditLoggingComponents {
24
+ AuditLogs = "AuditLogging.AuditLogsComponent",
25
+ EntityChanges = "AuditLogging.EntityChangesComponent"
26
+ }
27
+
28
+ type AuditLoggingEntityActionContributors = Partial<{
29
+ [eAuditLoggingComponents.AuditLogs]: EntityActionContributorCallback<AuditLogDto>[];
30
+ [eAuditLoggingComponents.EntityChanges]: EntityActionContributorCallback<EntityChangeDto>[];
31
+ }>;
32
+ type AuditLoggingToolbarActionContributors = Partial<{
33
+ [eAuditLoggingComponents.AuditLogs]: ToolbarActionContributorCallback<AuditLogDto[]>[];
34
+ }>;
35
+ type AuditLoggingEntityPropContributors = Partial<{
36
+ [eAuditLoggingComponents.AuditLogs]: EntityPropContributorCallback<AuditLogDto>[];
37
+ }>;
38
+ interface AuditLoggingConfigOptions {
39
+ entityActionContributors?: AuditLoggingEntityActionContributors;
40
+ toolbarActionContributors?: AuditLoggingToolbarActionContributors;
41
+ entityPropContributors?: AuditLoggingEntityPropContributors;
42
+ }
43
+
44
+ declare class AuditLoggingRoutingModule {
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingRoutingModule, never>;
46
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AuditLoggingRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
47
+ static ɵinj: i0.ɵɵInjectorDeclaration<AuditLoggingRoutingModule>;
48
+ }
49
+
50
+ declare class AuditLogsComponent implements OnInit {
51
+ protected readonly service: AuditLogsService;
52
+ protected readonly injector: Injector;
53
+ protected readonly list: ListService<any>;
54
+ data: PagedResultDto<AuditLogDto>;
55
+ selected: AuditLogDto;
56
+ pageQuery: GetAuditLogListDto;
57
+ httpMethods: string[];
58
+ httpStatusCodes: {
59
+ code: number;
60
+ message: string;
61
+ }[];
62
+ modalVisible: boolean;
63
+ sortOrder: string;
64
+ sortKey: string;
65
+ selectedTab: string;
66
+ protected hookToQuery(): void;
67
+ ngOnInit(): void;
68
+ openModal(id: string): void;
69
+ httpCodeClass(httpStatusCode: number): string;
70
+ httpMethodClass(httpMethod: string): string;
71
+ getEntityChangeDetails(change: EntityChangeDto): EntityChangeWithUsernameDto;
72
+ exportToExcel(): void;
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogsComponent, never>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuditLogsComponent, "abp-audit-logs", never, {}, {}, never, never, true, never>;
75
+ }
76
+
77
+ declare class EntityChangesComponent implements AfterViewInit {
78
+ protected readonly fb: UntypedFormBuilder;
79
+ protected readonly auditLogsService: AuditLogsService;
80
+ protected readonly cdRef: ChangeDetectorRef;
81
+ readonly list: ListService<any>;
82
+ readonly track: TrackByService<any>;
83
+ readonly injector: Injector;
84
+ response: PagedResultDto<EntityChangeDto>;
85
+ changeType: typeof EntityChangeType;
86
+ changeTypes: _abp_ng_core.ABP.Option<typeof EntityChangeType>[];
87
+ form: _angular_forms.UntypedFormGroup;
88
+ get data(): EntityChangeDto[];
89
+ get count(): number;
90
+ ngAfterViewInit(): void;
91
+ private hookToQuery;
92
+ handleSubmit(): void;
93
+ exportToExcel(): void;
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityChangesComponent, never>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangesComponent, "abp-entity-changes", never, {}, {}, never, never, true, never>;
96
+ }
97
+
98
+ declare class ErrorRateWidgetComponent {
99
+ protected permissionService: PermissionService;
100
+ protected service: AuditLogsService;
101
+ data: Statistics.Data;
102
+ initialized: BehaviorSubject<this>;
103
+ width: number;
104
+ height: number;
105
+ chart: ChartComponent;
106
+ chartData: any;
107
+ draw: (filter: {
108
+ startDate: string;
109
+ endDate: string;
110
+ }) => void;
111
+ constructor(permissionService: PermissionService, service: AuditLogsService);
112
+ private setChartData;
113
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorRateWidgetComponent, never>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorRateWidgetComponent, "abp-error-rate-widget", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "initialized": "initialized"; }, never, never, true, never>;
115
+ }
116
+
117
+ declare class AverageExecutionDurationWidgetComponent {
118
+ protected localizationService: LocalizationService;
119
+ protected permissionService: PermissionService;
120
+ protected service: AuditLogsService;
121
+ data: Statistics.Data;
122
+ initialized: BehaviorSubject<this>;
123
+ width: number;
124
+ height: number;
125
+ chart: ChartComponent;
126
+ chartData: any;
127
+ draw: (filter: {
128
+ startDate: string;
129
+ endDate: string;
130
+ }) => void;
131
+ private setChartData;
132
+ static ɵfac: i0.ɵɵFactoryDeclaration<AverageExecutionDurationWidgetComponent, never>;
133
+ static ɵcmp: i0.ɵɵComponentDeclaration<AverageExecutionDurationWidgetComponent, "abp-average-execution-duration-widget", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "initialized": "initialized"; }, never, never, true, never>;
134
+ }
135
+
136
+ declare class AuditLoggingModule {
137
+ static forChild(options?: AuditLoggingConfigOptions): ModuleWithProviders<AuditLoggingModule>;
138
+ /**
139
+ * @deprecated `AuditLoggingModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.
140
+ */
141
+ static forLazy(options?: AuditLoggingConfigOptions): NgModuleFactory<AuditLoggingModule>;
142
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingModule, never>;
143
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AuditLoggingModule, never, [typeof AuditLoggingRoutingModule, typeof _abp_ng_core.CoreModule, typeof i3.CommercialUiModule, typeof i4.ThemeSharedModule, typeof i5.NgbNavModule, typeof i5.NgbDatepickerModule, typeof i6.PageModule, typeof i7.ChartModule, typeof i3.DatetimePickerComponent, typeof i8.EntityChangeDetailsComponent, typeof AuditLogsComponent, typeof EntityChangesComponent, typeof ErrorRateWidgetComponent, typeof AverageExecutionDurationWidgetComponent], [typeof AuditLogsComponent, typeof EntityChangesComponent, typeof ErrorRateWidgetComponent, typeof AverageExecutionDurationWidgetComponent]>;
144
+ static ɵinj: i0.ɵɵInjectorDeclaration<AuditLoggingModule>;
145
+ }
146
+
147
+ declare namespace AuditLogging {
148
+ interface State {
149
+ result: PagedResultDto<AuditLogDto>;
150
+ averageExecutionStatistics: Record<string, number>;
151
+ errorRateStatistics: Record<string, number>;
152
+ }
153
+ }
154
+
155
+ declare function createRoutes(config?: AuditLoggingConfigOptions): Routes;
156
+
157
+ declare const HTTP_METHODS: string[];
158
+ declare const HTTP_STATUS_CODES: {
159
+ code: number;
160
+ message: string;
161
+ }[];
162
+
163
+ declare enum eEntityChangeType {
164
+ Created = 0,
165
+ Updated = 1,
166
+ Deleted = 2
167
+ }
168
+
1
169
  /**
2
- * Generated bundle index. Do not edit.
170
+ * @deprecated Use `auditLoggingGuard` *function* instead.
3
171
  */
4
- /// <amd-module name="@volo/abp.ng.audit-logging" />
5
- export * from './public-api';
172
+ declare class AuditLoggingGuard {
173
+ private auditLoggingFeatures;
174
+ constructor(auditLoggingFeatures: Observable<ModuleVisibility>);
175
+ canActivate(): Observable<boolean>;
176
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingGuard, never>;
177
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuditLoggingGuard>;
178
+ }
179
+ declare const auditLoggingGuard: () => Observable<boolean>;
180
+
181
+ /**
182
+ * @deprecated Use `auditLoggingExtensionsResolver` *function* instead.
183
+ */
184
+ declare class AuditLoggingExtensionsGuard {
185
+ private readonly injector;
186
+ canActivate(): Observable<boolean>;
187
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingExtensionsGuard, never>;
188
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuditLoggingExtensionsGuard>;
189
+ }
190
+
191
+ declare const SHOW_ENTITY_DETAILS: InjectionToken<(entityChangeId: string) => void>;
192
+
193
+ declare const DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS: {
194
+ "AuditLogging.AuditLogsComponent": _abp_ng_components_extensible.EntityAction<AuditLogDto>[];
195
+ "AuditLogging.EntityChangesComponent": _abp_ng_components_extensible.EntityAction<EntityChangeDto>[];
196
+ };
197
+ declare const DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS: {
198
+ "AuditLogging.AuditLogsComponent": _abp_ng_components_extensible.ToolbarAction<AuditLogDto[]>[];
199
+ };
200
+ declare const DEFAULT_AUDIT_LOGGING_ENTITY_PROPS: {
201
+ "AuditLogging.AuditLogsComponent": _abp_ng_components_extensible.EntityProp<AuditLogDto>[];
202
+ };
203
+ declare const AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
204
+ "AuditLogging.AuditLogsComponent": EntityActionContributorCallback<AuditLogDto>[];
205
+ "AuditLogging.EntityChangesComponent": EntityActionContributorCallback<EntityChangeDto>[];
206
+ }>>;
207
+ declare const AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
208
+ "AuditLogging.AuditLogsComponent": ToolbarActionContributorCallback<AuditLogDto[]>[];
209
+ }>>;
210
+ declare const AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS: InjectionToken<Partial<{
211
+ "AuditLogging.AuditLogsComponent": EntityPropContributorCallback<AuditLogDto>[];
212
+ }>>;
213
+
214
+ declare const auditLoggingExtensionsResolver: ResolveFn<any>;
215
+
216
+ export { AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS, AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS, AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS, AuditLogging, AuditLoggingExtensionsGuard, AuditLoggingGuard, AuditLoggingModule, AuditLogsComponent, AverageExecutionDurationWidgetComponent, DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS, DEFAULT_AUDIT_LOGGING_ENTITY_PROPS, DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS, EntityChangesComponent, ErrorRateWidgetComponent, HTTP_METHODS, HTTP_STATUS_CODES, SHOW_ENTITY_DETAILS, auditLoggingExtensionsResolver, auditLoggingGuard, createRoutes, eAuditLoggingComponents, eEntityChangeType };
217
+ export type { AuditLoggingConfigOptions, AuditLoggingEntityActionContributors, AuditLoggingEntityPropContributors, AuditLoggingToolbarActionContributors };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@volo/abp.ng.audit-logging",
3
- "version": "9.3.0-rc.2",
3
+ "version": "9.3.0-rc.3",
4
4
  "homepage": "https://abp.io",
5
5
  "dependencies": {
6
- "@abp/ng.components": "~9.3.0-rc.2",
7
- "@abp/ng.theme.shared": "~9.3.0-rc.2",
8
- "@volo/abp.commercial.ng.ui": "^9.3.0-rc.2",
6
+ "@abp/ng.components": "~9.3.0-rc.3",
7
+ "@abp/ng.theme.shared": "~9.3.0-rc.3",
8
+ "@volo/abp.commercial.ng.ui": "^9.3.0-rc.3",
9
9
  "tslib": "^2.0.0"
10
10
  },
11
11
  "publishConfig": {
package/proxy/index.d.ts CHANGED
@@ -1,5 +1,187 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@volo/abp.ng.audit-logging/proxy" />
5
- export * from './public-api';
1
+ import * as rxjs from 'rxjs';
2
+ import * as _abp_ng_core from '@abp/ng.core';
3
+ import { ExtensibleEntityDto, EntityDto, PagedAndSortedResultRequestDto, Rest, RestService, PagedResultDto } from '@abp/ng.core';
4
+ import * as i0 from '@angular/core';
5
+
6
+ declare enum EntityChangeType {
7
+ Created = 0,
8
+ Updated = 1,
9
+ Deleted = 2
10
+ }
11
+ declare const entityChangeTypeOptions: _abp_ng_core.ABP.Option<typeof EntityChangeType>[];
12
+
13
+ interface AuditLogActionDto extends ExtensibleEntityDto<string> {
14
+ tenantId?: string;
15
+ auditLogId?: string;
16
+ serviceName?: string;
17
+ methodName?: string;
18
+ parameters?: string;
19
+ executionTime?: string;
20
+ executionDuration: number;
21
+ }
22
+ interface AuditLogDto extends ExtensibleEntityDto<string> {
23
+ userId?: string;
24
+ userName?: string;
25
+ tenantId?: string;
26
+ tenantName?: string;
27
+ impersonatorUserId?: string;
28
+ impersonatorUserName?: string;
29
+ impersonatorTenantId?: string;
30
+ impersonatorTenantName?: string;
31
+ executionTime?: string;
32
+ executionDuration: number;
33
+ clientIpAddress?: string;
34
+ clientId?: string;
35
+ clientName?: string;
36
+ browserInfo?: string;
37
+ httpMethod?: string;
38
+ url?: string;
39
+ exceptions?: string;
40
+ comments?: string;
41
+ httpStatusCode?: number;
42
+ applicationName?: string;
43
+ correlationId?: string;
44
+ entityChanges: EntityChangeDto[];
45
+ actions: AuditLogActionDto[];
46
+ }
47
+ interface AuditLogGlobalSettingsDto extends AuditLogSettingsDto {
48
+ isPeriodicDeleterEnabled: boolean;
49
+ }
50
+ interface AuditLogSettingsDto {
51
+ isExpiredDeleterEnabled: boolean;
52
+ expiredDeleterPeriod: number;
53
+ }
54
+ interface EntityChangeDto extends ExtensibleEntityDto<string> {
55
+ auditLogId?: string;
56
+ tenantId?: string;
57
+ changeTime?: string;
58
+ changeType: EntityChangeType;
59
+ entityId?: string;
60
+ entityTypeFullName?: string;
61
+ propertyChanges: EntityPropertyChangeDto[];
62
+ }
63
+ interface EntityChangeFilter {
64
+ entityId?: string;
65
+ entityTypeFullName?: string;
66
+ }
67
+ interface EntityChangeWithUsernameDto {
68
+ entityChange: EntityChangeDto;
69
+ userName?: string;
70
+ }
71
+ interface EntityPropertyChangeDto extends EntityDto<string> {
72
+ tenantId?: string;
73
+ entityChangeId?: string;
74
+ newValue?: string;
75
+ originalValue?: string;
76
+ propertyName?: string;
77
+ propertyTypeFullName?: string;
78
+ }
79
+ interface ExportAuditLogsInput {
80
+ startTime?: string;
81
+ endTime?: string;
82
+ url?: string;
83
+ clientId?: string;
84
+ userName?: string;
85
+ applicationName?: string;
86
+ clientIpAddress?: string;
87
+ correlationId?: string;
88
+ httpMethod?: string;
89
+ httpStatusCode?: number;
90
+ maxExecutionDuration?: number;
91
+ minExecutionDuration?: number;
92
+ hasException?: boolean;
93
+ sorting?: string;
94
+ }
95
+ interface ExportAuditLogsOutput {
96
+ message?: string;
97
+ fileData: number[];
98
+ fileName?: string;
99
+ downloadUrl?: string;
100
+ isBackgroundJob: boolean;
101
+ }
102
+ interface ExportEntityChangesInput {
103
+ startDate?: string;
104
+ endDate?: string;
105
+ entityChangeType?: EntityChangeType;
106
+ entityId?: string;
107
+ entityTypeFullName?: string;
108
+ sorting?: string;
109
+ }
110
+ interface ExportEntityChangesOutput {
111
+ message?: string;
112
+ fileData: number[];
113
+ fileName?: string;
114
+ downloadUrl?: string;
115
+ isBackgroundJob: boolean;
116
+ }
117
+ interface GetAuditLogListDto extends PagedAndSortedResultRequestDto {
118
+ startTime?: string;
119
+ endTime?: string;
120
+ url?: string;
121
+ clientId?: string;
122
+ userName?: string;
123
+ applicationName?: string;
124
+ clientIpAddress?: string;
125
+ correlationId?: string;
126
+ httpMethod?: string;
127
+ httpStatusCode?: number;
128
+ maxExecutionDuration?: number;
129
+ minExecutionDuration?: number;
130
+ hasException?: boolean;
131
+ }
132
+ interface GetAverageExecutionDurationPerDayInput {
133
+ startDate?: string;
134
+ endDate?: string;
135
+ }
136
+ interface GetAverageExecutionDurationPerDayOutput {
137
+ data: Record<string, number>;
138
+ }
139
+ interface GetEntityChangesDto extends PagedAndSortedResultRequestDto {
140
+ auditLogId?: string;
141
+ entityChangeType?: EntityChangeType;
142
+ entityId?: string;
143
+ entityTypeFullName?: string;
144
+ startDate?: string;
145
+ endDate?: string;
146
+ }
147
+ interface GetErrorRateFilter {
148
+ startDate?: string;
149
+ endDate?: string;
150
+ }
151
+ interface GetErrorRateOutput {
152
+ data: Record<string, number>;
153
+ }
154
+
155
+ declare class AuditLogSettingsService {
156
+ private restService;
157
+ apiName: string;
158
+ get: (config?: Partial<Rest.Config>) => rxjs.Observable<AuditLogSettingsDto>;
159
+ getGlobal: (config?: Partial<Rest.Config>) => rxjs.Observable<AuditLogGlobalSettingsDto>;
160
+ update: (input: AuditLogSettingsDto, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
161
+ updateGlobal: (input: AuditLogGlobalSettingsDto, config?: Partial<Rest.Config>) => rxjs.Observable<void>;
162
+ constructor(restService: RestService);
163
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogSettingsService, never>;
164
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuditLogSettingsService>;
165
+ }
166
+
167
+ declare class AuditLogsService {
168
+ private restService;
169
+ apiName: string;
170
+ downloadExcel: (fileName: string, config?: Partial<Rest.Config>) => rxjs.Observable<Blob>;
171
+ exportEntityChangesToExcel: (input: ExportEntityChangesInput, config?: Partial<Rest.Config>) => rxjs.Observable<ExportEntityChangesOutput>;
172
+ exportToExcel: (input: ExportAuditLogsInput, config?: Partial<Rest.Config>) => rxjs.Observable<ExportAuditLogsOutput>;
173
+ get: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<AuditLogDto>;
174
+ getAverageExecutionDurationPerDay: (filter: GetAverageExecutionDurationPerDayInput, config?: Partial<Rest.Config>) => rxjs.Observable<GetAverageExecutionDurationPerDayOutput>;
175
+ getEntityChange: (entityChangeId: string, config?: Partial<Rest.Config>) => rxjs.Observable<EntityChangeDto>;
176
+ getEntityChangeWithUsername: (entityChangeId: string, config?: Partial<Rest.Config>) => rxjs.Observable<EntityChangeWithUsernameDto>;
177
+ getEntityChanges: (input: GetEntityChangesDto, config?: Partial<Rest.Config>) => rxjs.Observable<PagedResultDto<EntityChangeDto>>;
178
+ getEntityChangesWithUsername: (input: EntityChangeFilter, config?: Partial<Rest.Config>) => rxjs.Observable<EntityChangeWithUsernameDto[]>;
179
+ getErrorRate: (filter: GetErrorRateFilter, config?: Partial<Rest.Config>) => rxjs.Observable<GetErrorRateOutput>;
180
+ getList: (input: GetAuditLogListDto, config?: Partial<Rest.Config>) => rxjs.Observable<PagedResultDto<AuditLogDto>>;
181
+ constructor(restService: RestService);
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogsService, never>;
183
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuditLogsService>;
184
+ }
185
+
186
+ export { AuditLogSettingsService, AuditLogsService, EntityChangeType, entityChangeTypeOptions };
187
+ export type { AuditLogActionDto, AuditLogDto, AuditLogGlobalSettingsDto, AuditLogSettingsDto, EntityChangeDto, EntityChangeFilter, EntityChangeWithUsernameDto, EntityPropertyChangeDto, ExportAuditLogsInput, ExportAuditLogsOutput, ExportEntityChangesInput, ExportEntityChangesOutput, GetAuditLogListDto, GetAverageExecutionDurationPerDayInput, GetAverageExecutionDurationPerDayOutput, GetEntityChangesDto, GetErrorRateFilter, GetErrorRateOutput };
@@ -1,14 +0,0 @@
1
- import { LocalizationService } from '@abp/ng.core';
2
- import { EntityChangeDto, EntityChangeWithUsernameDto, EntityPropertyChangeDto } from '@volo/abp.ng.audit-logging/proxy';
3
- import * as i0 from "@angular/core";
4
- export declare class EntityChangeDetailsComponent {
5
- set itemWithUserName(item: EntityChangeWithUsernameDto);
6
- readonly localization: LocalizationService;
7
- entityChange: EntityChangeDto;
8
- userName: string;
9
- changeType: string;
10
- getPropColor(propertyChange: EntityPropertyChangeDto): string;
11
- getEntityChangeTimeParams(): string[];
12
- static ɵfac: i0.ɵɵFactoryDeclaration<EntityChangeDetailsComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangeDetailsComponent, "abp-entity-change-details", never, { "itemWithUserName": { "alias": "itemWithUserName"; "required": false; }; }, {}, never, never, true, never>;
14
- }
@@ -1 +0,0 @@
1
- export * from './entity-change-details/entity-change-details.component';
@@ -1 +0,0 @@
1
- export * from './route-names';
@@ -1,3 +0,0 @@
1
- export declare const enum eAuditLoggingRouteNames {
2
- AuditLogging = "AbpAuditLogging::Menu:AuditLogging"
3
- }
@@ -1,3 +0,0 @@
1
- export * from './enums';
2
- export * from './tokens';
3
- export * from './components';
@@ -1,6 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { ModuleVisibility } from '@volo/abp.commercial.ng.ui/config';
3
- import { Observable } from 'rxjs';
4
- export declare const AUDIT_LOGGING_FEATURES: InjectionToken<Observable<ModuleVisibility>>;
5
- export declare const SET_AUDIT_LOGGING_ROUTE_VISIBILITY: InjectionToken<void>;
6
- export declare const AUDIT_LOGGING_FEATURES_PROVIDERS: import("@angular/core").EnvironmentProviders[];
@@ -1 +0,0 @@
1
- export * from './features.token';
@@ -1,27 +0,0 @@
1
- import { ChangeDetectorRef, OnInit } from '@angular/core';
2
- import { FormBuilder, FormGroup } from '@angular/forms';
3
- import { ConfigStateService } from '@abp/ng.core';
4
- import { ToasterService } from '@abp/ng.theme.shared';
5
- import { AuditLogSettingsService } from '@volo/abp.ng.audit-logging/proxy';
6
- import * as i0 from "@angular/core";
7
- export declare abstract class AbstractAuditLogSettingsComponent implements OnInit {
8
- protected readonly cdr: ChangeDetectorRef;
9
- protected readonly fb: FormBuilder;
10
- protected readonly toasterService: ToasterService;
11
- protected readonly configState: ConfigStateService;
12
- protected readonly settingsService: AuditLogSettingsService;
13
- globalTab: boolean;
14
- today: Date;
15
- isTenant: boolean;
16
- form: FormGroup;
17
- private _loading;
18
- set loading(value: boolean);
19
- get loading(): boolean;
20
- protected buildForm(): void;
21
- protected adjustFormValues(): void;
22
- ngOnInit(): void;
23
- submit(): void;
24
- getDateBeforeToday(day: number): Date;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAuditLogSettingsComponent, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAuditLogSettingsComponent, never, never, { "isTenant": { "alias": "isTenant"; "required": false; }; }, {}, never, never, true, never>;
27
- }
@@ -1 +0,0 @@
1
- export * from './abstract-audit-log-settings.component';
@@ -1,15 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@abp/ng.core";
4
- import * as i2 from "@abp/ng.theme.shared";
5
- import * as i3 from "@volo/abp.ng.audit-logging/common";
6
- import * as i4 from "./components/entity-change-modal.component";
7
- export declare class AuditLoggingConfigModule {
8
- /**
9
- * @deprecated forRoot method is deprecated, use `provideAuditLoggingConfig` *function* for config settings.
10
- */
11
- static forRoot(): ModuleWithProviders<AuditLoggingConfigModule>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingConfigModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<AuditLoggingConfigModule, never, [typeof i1.CoreModule, typeof i2.ThemeSharedModule, typeof i3.EntityChangeDetailsComponent, typeof i4.EntityChangeModalComponent], [typeof i4.EntityChangeModalComponent]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<AuditLoggingConfigModule>;
15
- }
@@ -1,14 +0,0 @@
1
- import { ChangeDetectorRef } from '@angular/core';
2
- import { TrackByService } from '@abp/ng.core';
3
- import { EntityChangeWithUsernameDto } from '@volo/abp.ng.audit-logging/proxy';
4
- import * as i0 from "@angular/core";
5
- export declare class EntityChangeModalComponent {
6
- readonly cdRef: ChangeDetectorRef;
7
- readonly track: TrackByService<any>;
8
- history: EntityChangeWithUsernameDto[];
9
- entityId: string;
10
- entityTypeFullName: string;
11
- visible: boolean;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<EntityChangeModalComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangeModalComponent, "abp-entity-change-modal", never, {}, {}, never, never, true, never>;
14
- }
@@ -1,2 +0,0 @@
1
- export * from './settings';
2
- export * from './entity-change-modal.component';
@@ -1,8 +0,0 @@
1
- import { SessionStateService } from '@abp/ng.core';
2
- import * as i0 from "@angular/core";
3
- export declare class AuditLogSettingsComponent {
4
- protected readonly sessionStateService: SessionStateService;
5
- isTenant: boolean;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogSettingsComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<AuditLogSettingsComponent, "abp-audit-log-settings", never, {}, {}, never, never, true, never>;
8
- }
@@ -1,2 +0,0 @@
1
- export * from './audit-log-settings.component';
2
- export * from './tabs';
@@ -1,6 +0,0 @@
1
- import { AbstractAuditLogSettingsComponent } from '../../../../abstracts';
2
- import * as i0 from "@angular/core";
3
- export declare class AuditLogSettingsGeneralComponent extends AbstractAuditLogSettingsComponent {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogSettingsGeneralComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<AuditLogSettingsGeneralComponent, "abp-audit-log-settings-general", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,7 +0,0 @@
1
- import { AbstractAuditLogSettingsComponent } from '../../../../abstracts';
2
- import * as i0 from "@angular/core";
3
- export declare class AuditLogSettingsGlobalComponent extends AbstractAuditLogSettingsComponent {
4
- globalTab: boolean;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogSettingsGlobalComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<AuditLogSettingsGlobalComponent, "abp-audit-log-settings-global", never, {}, {}, never, never, true, never>;
7
- }
@@ -1,2 +0,0 @@
1
- export * from './audit-log-settings-general/audit-log-settings-general.component';
2
- export * from './audit-log-settings-global/audit-log-settings-global.component';
@@ -1,3 +0,0 @@
1
- export * from './policy-names';
2
- export * from './route-names';
3
- export * from './setting-tab-names';
@@ -1,3 +0,0 @@
1
- export declare const enum eAuditLoggingPolicyNames {
2
- AuditLogging = "AuditLogging.AuditLogs"
3
- }
@@ -1,2 +0,0 @@
1
- import { eAuditLoggingRouteNames } from '@volo/abp.ng.audit-logging/common';
2
- export { eAuditLoggingRouteNames };
@@ -1,3 +0,0 @@
1
- export declare const enum eAuditLoggingSettingTabNames {
2
- AuditLogging = "AbpAuditLogging::Menu:AuditLogging"
3
- }
@@ -1 +0,0 @@
1
- export declare function provideAuditLoggingConfig(): import("@angular/core").EnvironmentProviders;
@@ -1,7 +0,0 @@
1
- import { EntityChangeModalService } from '../services/entity-change-modal.service';
2
- export declare const ENTITY_DETAILS_PROVIDERS: {
3
- provide: import("@angular/core").InjectionToken<(entityChangeId: string) => void>;
4
- useFactory: typeof bindShowDetails;
5
- deps: (typeof EntityChangeModalService)[];
6
- }[];
7
- export declare function bindShowDetails(service: EntityChangeModalService): any;
@@ -1,7 +0,0 @@
1
- import { EntityChangeModalService } from '../services/entity-change-modal.service';
2
- export declare const ENTITY_HISTORY_PROVIDERS: {
3
- provide: import("@angular/core").InjectionToken<(entityId: string, entityTypeFullName: string) => void>;
4
- useFactory: typeof bindShowHistory;
5
- deps: (typeof EntityChangeModalService)[];
6
- }[];
7
- export declare function bindShowHistory(service: EntityChangeModalService): any;
@@ -1,5 +0,0 @@
1
- export * from './entity-details.provider';
2
- export * from './entity-history.provider';
3
- export * from './route.provider';
4
- export * from './setting-tab.provider';
5
- export * from './audit-logging-config.provider';
@@ -1,2 +0,0 @@
1
- export declare const AUDIT_LOGGING_ROUTE_PROVIDERS: import("@angular/core").EnvironmentProviders[];
2
- export declare function configureRoutes(): void;
@@ -1,2 +0,0 @@
1
- export declare const AUDIT_LOGGING_SETTING_TAB_PROVIDERS: import("@angular/core").EnvironmentProviders[];
2
- export declare function configureSettingTabs(): void;
@@ -1,6 +0,0 @@
1
- export * from './abstracts';
2
- export * from './components';
3
- export * from './enums';
4
- export * from './providers';
5
- export * from './services';
6
- export * from './audit-logging-config.module';