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

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
@@ -1,15 +0,0 @@
1
- import { ContentProjectionService } from '@abp/ng.core';
2
- import { AuditLogsService } from '@volo/abp.ng.audit-logging/proxy';
3
- import * as i0 from "@angular/core";
4
- export declare class EntityChangeModalService {
5
- private auditLogsService;
6
- private contentProjectionService;
7
- private modalRef;
8
- constructor(auditLogsService: AuditLogsService, contentProjectionService: ContentProjectionService);
9
- private projectModal;
10
- detectChanges(): void;
11
- showDetails(entityChangeId: string): void;
12
- showHistory(entityId: string, entityTypeFullName: string): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<EntityChangeModalService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<EntityChangeModalService>;
15
- }
@@ -1 +0,0 @@
1
- export * from './entity-change-modal.service';
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/router";
3
- export declare class AuditLoggingRoutingModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingRoutingModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<AuditLoggingRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<AuditLoggingRoutingModule>;
7
- }
@@ -1,25 +0,0 @@
1
- import { ModuleWithProviders, NgModuleFactory } from '@angular/core';
2
- import { AuditLoggingConfigOptions } from './models/config-options';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./audit-logging-routing.module";
5
- import * as i2 from "@abp/ng.core";
6
- import * as i3 from "@volo/abp.commercial.ng.ui";
7
- import * as i4 from "@abp/ng.theme.shared";
8
- import * as i5 from "@ng-bootstrap/ng-bootstrap";
9
- import * as i6 from "@abp/ng.components/page";
10
- import * as i7 from "@abp/ng.components/chart.js";
11
- import * as i8 from "@volo/abp.ng.audit-logging/common";
12
- import * as i9 from "./components/audit-logs/audit-logs.component";
13
- import * as i10 from "./components/entity-change/entity-changes.component";
14
- import * as i11 from "./components/widgets/error-rate-widget.component";
15
- import * as i12 from "./components/widgets/average-execution-duration-widget.component";
16
- export declare class AuditLoggingModule {
17
- static forChild(options?: AuditLoggingConfigOptions): ModuleWithProviders<AuditLoggingModule>;
18
- /**
19
- * @deprecated `AuditLoggingModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.
20
- */
21
- static forLazy(options?: AuditLoggingConfigOptions): NgModuleFactory<AuditLoggingModule>;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingModule, never>;
23
- static ɵmod: i0.ɵɵNgModuleDeclaration<AuditLoggingModule, never, [typeof i1.AuditLoggingRoutingModule, typeof i2.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 i9.AuditLogsComponent, typeof i10.EntityChangesComponent, typeof i11.ErrorRateWidgetComponent, typeof i12.AverageExecutionDurationWidgetComponent], [typeof i9.AuditLogsComponent, typeof i10.EntityChangesComponent, typeof i11.ErrorRateWidgetComponent, typeof i12.AverageExecutionDurationWidgetComponent]>;
24
- static ɵinj: i0.ɵɵInjectorDeclaration<AuditLoggingModule>;
25
- }
@@ -1,3 +0,0 @@
1
- import { Routes } from '@angular/router';
2
- import { AuditLoggingConfigOptions } from './models';
3
- export declare function createRoutes(config?: AuditLoggingConfigOptions): Routes;
@@ -1,29 +0,0 @@
1
- import { Injector, OnInit } from '@angular/core';
2
- import { ListService, PagedResultDto } from '@abp/ng.core';
3
- import { AuditLogDto, AuditLogsService, EntityChangeDto, EntityChangeWithUsernameDto, GetAuditLogListDto } from '@volo/abp.ng.audit-logging/proxy';
4
- import * as i0 from "@angular/core";
5
- export declare class AuditLogsComponent implements OnInit {
6
- protected readonly service: AuditLogsService;
7
- protected readonly injector: Injector;
8
- protected readonly list: ListService<any>;
9
- data: PagedResultDto<AuditLogDto>;
10
- selected: AuditLogDto;
11
- pageQuery: GetAuditLogListDto;
12
- httpMethods: string[];
13
- httpStatusCodes: {
14
- code: number;
15
- message: string;
16
- }[];
17
- modalVisible: boolean;
18
- sortOrder: string;
19
- sortKey: string;
20
- selectedTab: string;
21
- protected hookToQuery(): void;
22
- ngOnInit(): void;
23
- openModal(id: string): void;
24
- httpCodeClass(httpStatusCode: number): string;
25
- httpMethodClass(httpMethod: string): string;
26
- getEntityChangeDetails(change: EntityChangeDto): EntityChangeWithUsernameDto;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogsComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<AuditLogsComponent, "abp-audit-logs", never, {}, {}, never, never, true, never>;
29
- }
@@ -1 +0,0 @@
1
- export * from './audit-logs.component';
@@ -1,23 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
2
- import { UntypedFormBuilder } from '@angular/forms';
3
- import { ListService, PagedResultDto, TrackByService } from '@abp/ng.core';
4
- import { AuditLogsService, EntityChangeDto, EntityChangeType } from '@volo/abp.ng.audit-logging/proxy';
5
- import * as i0 from "@angular/core";
6
- export declare class EntityChangesComponent implements AfterViewInit {
7
- protected readonly fb: UntypedFormBuilder;
8
- protected readonly auditLogsService: AuditLogsService;
9
- protected readonly cdRef: ChangeDetectorRef;
10
- readonly list: ListService<any>;
11
- readonly track: TrackByService<any>;
12
- response: PagedResultDto<EntityChangeDto>;
13
- changeType: typeof EntityChangeType;
14
- changeTypes: import("@abp/ng.core").ABP.Option<typeof EntityChangeType>[];
15
- form: import("@angular/forms").UntypedFormGroup;
16
- get data(): EntityChangeDto[];
17
- get count(): number;
18
- ngAfterViewInit(): void;
19
- private hookToQuery;
20
- handleSubmit(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<EntityChangesComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangesComponent, "abp-entity-changes", never, {}, {}, never, never, true, never>;
23
- }
@@ -1,5 +0,0 @@
1
- export * from './audit-logs/audit-logs.component';
2
- export * from './entity-change/entity-changes.component';
3
- export * from './widgets/average-execution-duration-widget.component';
4
- export * from './widgets/error-rate-widget.component';
5
- export * from './audit-logs';
@@ -1,24 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { ChartComponent } from '@abp/ng.components/chart.js';
3
- import { LocalizationService, PermissionService } from '@abp/ng.core';
4
- import { Statistics } from '@abp/ng.theme.shared';
5
- import { AuditLogsService } from '@volo/abp.ng.audit-logging/proxy';
6
- import * as i0 from "@angular/core";
7
- export declare class AverageExecutionDurationWidgetComponent {
8
- protected localizationService: LocalizationService;
9
- protected permissionService: PermissionService;
10
- protected service: AuditLogsService;
11
- data: Statistics.Data;
12
- initialized: BehaviorSubject<this>;
13
- width: number;
14
- height: number;
15
- chart: ChartComponent;
16
- chartData: any;
17
- draw: (filter: {
18
- startDate: string;
19
- endDate: string;
20
- }) => void;
21
- private setChartData;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<AverageExecutionDurationWidgetComponent, never>;
23
- 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>;
24
- }
@@ -1,24 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { PermissionService } from '@abp/ng.core';
3
- import { Statistics } from '@abp/ng.theme.shared';
4
- import { ChartComponent } from '@abp/ng.components/chart.js';
5
- import { AuditLogsService } from '@volo/abp.ng.audit-logging/proxy';
6
- import * as i0 from "@angular/core";
7
- export declare class ErrorRateWidgetComponent {
8
- protected permissionService: PermissionService;
9
- protected service: AuditLogsService;
10
- data: Statistics.Data;
11
- initialized: BehaviorSubject<this>;
12
- width: number;
13
- height: number;
14
- chart: ChartComponent;
15
- chartData: any;
16
- draw: (filter: {
17
- startDate: string;
18
- endDate: string;
19
- }) => void;
20
- constructor(permissionService: PermissionService, service: AuditLogsService);
21
- private setChartData;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorRateWidgetComponent, never>;
23
- 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>;
24
- }
@@ -1,5 +0,0 @@
1
- export declare const HTTP_METHODS: string[];
2
- export declare const HTTP_STATUS_CODES: {
3
- code: number;
4
- message: string;
5
- }[];
@@ -1 +0,0 @@
1
- export * from './http';
@@ -1,3 +0,0 @@
1
- import { EntityAction } from '@abp/ng.components/extensible';
2
- import { AuditLogDto } from '@volo/abp.ng.audit-logging/proxy';
3
- export declare const DEFAULT_AUDIT_LOGS_ENTITY_ACTIONS: EntityAction<AuditLogDto>[];
@@ -1,3 +0,0 @@
1
- import { EntityProp } from '@abp/ng.components/extensible';
2
- import { AuditLogDto } from '@volo/abp.ng.audit-logging/proxy';
3
- export declare const DEFAULT_AUDIT_LOGS_ENTITY_PROPS: EntityProp<AuditLogDto>[];
@@ -1,3 +0,0 @@
1
- import { ToolbarAction } from '@abp/ng.components/extensible';
2
- import { AuditLogDto } from '@volo/abp.ng.audit-logging/proxy';
3
- export declare const DEFAULT_AUDIT_LOGS_TOOLBAR_ACTIONS: ToolbarAction<AuditLogDto[]>[];
@@ -1,3 +0,0 @@
1
- import { EntityAction } from '@abp/ng.components/extensible';
2
- import { EntityChangeDto } from '@volo/abp.ng.audit-logging/proxy';
3
- export declare const DEFAULT_ENTITY_CHANGES_ENTITY_ACTIONS: EntityAction<EntityChangeDto>[];
@@ -1,4 +0,0 @@
1
- export declare const enum eAuditLoggingComponents {
2
- AuditLogs = "AuditLogging.AuditLogsComponent",
3
- EntityChanges = "AuditLogging.EntityChangesComponent"
4
- }
@@ -1,5 +0,0 @@
1
- export declare enum eEntityChangeType {
2
- Created = 0,
3
- Updated = 1,
4
- Deleted = 2
5
- }
@@ -1,2 +0,0 @@
1
- export * from './components';
2
- export * from './entity-change';
@@ -1,14 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ModuleVisibility } from '@volo/abp.commercial.ng.ui/config';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @deprecated Use `auditLoggingGuard` *function* instead.
6
- */
7
- export declare class AuditLoggingGuard {
8
- private auditLoggingFeatures;
9
- constructor(auditLoggingFeatures: Observable<ModuleVisibility>);
10
- canActivate(): Observable<boolean>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingGuard, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<AuditLoggingGuard>;
13
- }
14
- export declare const auditLoggingGuard: () => Observable<boolean>;
@@ -1,11 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated Use `auditLoggingExtensionsResolver` *function* instead.
5
- */
6
- export declare class AuditLoggingExtensionsGuard {
7
- private readonly injector;
8
- canActivate(): Observable<boolean>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingExtensionsGuard, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<AuditLoggingExtensionsGuard>;
11
- }
@@ -1,2 +0,0 @@
1
- export * from './audit-logging.guard';
2
- export * from './extensions.guard';
@@ -1,9 +0,0 @@
1
- import { PagedResultDto } from '@abp/ng.core';
2
- import { AuditLogDto } from '@volo/abp.ng.audit-logging/proxy';
3
- export declare namespace AuditLogging {
4
- interface State {
5
- result: PagedResultDto<AuditLogDto>;
6
- averageExecutionStatistics: Record<string, number>;
7
- errorRateStatistics: Record<string, number>;
8
- }
9
- }
@@ -1,18 +0,0 @@
1
- import { EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback } from '@abp/ng.components/extensible';
2
- import { AuditLogDto, EntityChangeDto } from '@volo/abp.ng.audit-logging/proxy';
3
- import { eAuditLoggingComponents } from '../enums/components';
4
- export type AuditLoggingEntityActionContributors = Partial<{
5
- [eAuditLoggingComponents.AuditLogs]: EntityActionContributorCallback<AuditLogDto>[];
6
- [eAuditLoggingComponents.EntityChanges]: EntityActionContributorCallback<EntityChangeDto>[];
7
- }>;
8
- export type AuditLoggingToolbarActionContributors = Partial<{
9
- [eAuditLoggingComponents.AuditLogs]: ToolbarActionContributorCallback<AuditLogDto[]>[];
10
- }>;
11
- export type AuditLoggingEntityPropContributors = Partial<{
12
- [eAuditLoggingComponents.AuditLogs]: EntityPropContributorCallback<AuditLogDto>[];
13
- }>;
14
- export interface AuditLoggingConfigOptions {
15
- entityActionContributors?: AuditLoggingEntityActionContributors;
16
- toolbarActionContributors?: AuditLoggingToolbarActionContributors;
17
- entityPropContributors?: AuditLoggingEntityPropContributors;
18
- }
@@ -1,2 +0,0 @@
1
- export * from './audit-logging';
2
- export * from './config-options';
@@ -1,2 +0,0 @@
1
- import { ResolveFn } from '@angular/router';
2
- export declare const auditLoggingExtensionsResolver: ResolveFn<any>;
@@ -1 +0,0 @@
1
- export * from './extensions.resolver';
@@ -1,2 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const SHOW_ENTITY_DETAILS: InjectionToken<(entityChangeId: string) => void>;
@@ -1,23 +0,0 @@
1
- import { EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback } from '@abp/ng.components/extensible';
2
- import { InjectionToken } from '@angular/core';
3
- import { AuditLogDto, EntityChangeDto } from '@volo/abp.ng.audit-logging/proxy';
4
- export declare const DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS: {
5
- "AuditLogging.AuditLogsComponent": import("@abp/ng.components/extensible").EntityAction<AuditLogDto>[];
6
- "AuditLogging.EntityChangesComponent": import("@abp/ng.components/extensible").EntityAction<EntityChangeDto>[];
7
- };
8
- export declare const DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS: {
9
- "AuditLogging.AuditLogsComponent": import("@abp/ng.components/extensible").ToolbarAction<AuditLogDto[]>[];
10
- };
11
- export declare const DEFAULT_AUDIT_LOGGING_ENTITY_PROPS: {
12
- "AuditLogging.AuditLogsComponent": import("@abp/ng.components/extensible").EntityProp<AuditLogDto>[];
13
- };
14
- export declare const AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
15
- "AuditLogging.AuditLogsComponent": EntityActionContributorCallback<AuditLogDto>[];
16
- "AuditLogging.EntityChangesComponent": EntityActionContributorCallback<EntityChangeDto>[];
17
- }>>;
18
- export declare const AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
19
- "AuditLogging.AuditLogsComponent": ToolbarActionContributorCallback<AuditLogDto[]>[];
20
- }>>;
21
- export declare const AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS: InjectionToken<Partial<{
22
- "AuditLogging.AuditLogsComponent": EntityPropContributorCallback<AuditLogDto>[];
23
- }>>;
@@ -1,2 +0,0 @@
1
- export * from './entity-details.token';
2
- export * from './extensions.token';
@@ -1,2 +0,0 @@
1
- export * from './proxy/audit-logging';
2
- export * from './proxy/auditing';
@@ -1,14 +0,0 @@
1
- import type { AuditLogGlobalSettingsDto, AuditLogSettingsDto } from './models';
2
- import { RestService, Rest } from '@abp/ng.core';
3
- import * as i0 from "@angular/core";
4
- export declare class AuditLogSettingsService {
5
- private restService;
6
- apiName: string;
7
- get: (config?: Partial<Rest.Config>) => import("rxjs").Observable<AuditLogSettingsDto>;
8
- getGlobal: (config?: Partial<Rest.Config>) => import("rxjs").Observable<AuditLogGlobalSettingsDto>;
9
- update: (input: AuditLogSettingsDto, config?: Partial<Rest.Config>) => import("rxjs").Observable<void>;
10
- updateGlobal: (input: AuditLogGlobalSettingsDto, config?: Partial<Rest.Config>) => import("rxjs").Observable<void>;
11
- constructor(restService: RestService);
12
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogSettingsService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<AuditLogSettingsService>;
14
- }
@@ -1,19 +0,0 @@
1
- import type { AuditLogDto, EntityChangeDto, EntityChangeFilter, EntityChangeWithUsernameDto, GetAuditLogListDto, GetAverageExecutionDurationPerDayInput, GetAverageExecutionDurationPerDayOutput, GetEntityChangesDto, GetErrorRateFilter, GetErrorRateOutput } from './models';
2
- import { RestService, Rest } from '@abp/ng.core';
3
- import type { PagedResultDto } from '@abp/ng.core';
4
- import * as i0 from "@angular/core";
5
- export declare class AuditLogsService {
6
- private restService;
7
- apiName: string;
8
- get: (id: string, config?: Partial<Rest.Config>) => import("rxjs").Observable<AuditLogDto>;
9
- getAverageExecutionDurationPerDay: (filter: GetAverageExecutionDurationPerDayInput, config?: Partial<Rest.Config>) => import("rxjs").Observable<GetAverageExecutionDurationPerDayOutput>;
10
- getEntityChange: (entityChangeId: string, config?: Partial<Rest.Config>) => import("rxjs").Observable<EntityChangeDto>;
11
- getEntityChangeWithUsername: (entityChangeId: string, config?: Partial<Rest.Config>) => import("rxjs").Observable<EntityChangeWithUsernameDto>;
12
- getEntityChanges: (input: GetEntityChangesDto, config?: Partial<Rest.Config>) => import("rxjs").Observable<PagedResultDto<EntityChangeDto>>;
13
- getEntityChangesWithUsername: (input: EntityChangeFilter, config?: Partial<Rest.Config>) => import("rxjs").Observable<EntityChangeWithUsernameDto[]>;
14
- getErrorRate: (filter: GetErrorRateFilter, config?: Partial<Rest.Config>) => import("rxjs").Observable<GetErrorRateOutput>;
15
- getList: (input: GetAuditLogListDto, config?: Partial<Rest.Config>) => import("rxjs").Observable<PagedResultDto<AuditLogDto>>;
16
- constructor(restService: RestService);
17
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogsService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<AuditLogsService>;
19
- }
@@ -1,3 +0,0 @@
1
- export * from './audit-log-settings.service';
2
- export * from './audit-logs.service';
3
- export * from './models';
@@ -1,105 +0,0 @@
1
- import type { EntityDto, ExtensibleEntityDto, PagedAndSortedResultRequestDto } from '@abp/ng.core';
2
- import type { EntityChangeType } from '../auditing/entity-change-type.enum';
3
- export interface AuditLogActionDto extends ExtensibleEntityDto<string> {
4
- tenantId?: string;
5
- auditLogId?: string;
6
- serviceName?: string;
7
- methodName?: string;
8
- parameters?: string;
9
- executionTime?: string;
10
- executionDuration: number;
11
- }
12
- export interface AuditLogDto extends ExtensibleEntityDto<string> {
13
- userId?: string;
14
- userName?: string;
15
- tenantId?: string;
16
- tenantName?: string;
17
- impersonatorUserId?: string;
18
- impersonatorUserName?: string;
19
- impersonatorTenantId?: string;
20
- impersonatorTenantName?: string;
21
- executionTime?: string;
22
- executionDuration: number;
23
- clientIpAddress?: string;
24
- clientId?: string;
25
- clientName?: string;
26
- browserInfo?: string;
27
- httpMethod?: string;
28
- url?: string;
29
- exceptions?: string;
30
- comments?: string;
31
- httpStatusCode?: number;
32
- applicationName?: string;
33
- correlationId?: string;
34
- entityChanges: EntityChangeDto[];
35
- actions: AuditLogActionDto[];
36
- }
37
- export interface AuditLogGlobalSettingsDto extends AuditLogSettingsDto {
38
- isPeriodicDeleterEnabled: boolean;
39
- }
40
- export interface AuditLogSettingsDto {
41
- isExpiredDeleterEnabled: boolean;
42
- expiredDeleterPeriod: number;
43
- }
44
- export interface EntityChangeDto extends ExtensibleEntityDto<string> {
45
- auditLogId?: string;
46
- tenantId?: string;
47
- changeTime?: string;
48
- changeType: EntityChangeType;
49
- entityId?: string;
50
- entityTypeFullName?: string;
51
- propertyChanges: EntityPropertyChangeDto[];
52
- }
53
- export interface EntityChangeFilter {
54
- entityId?: string;
55
- entityTypeFullName?: string;
56
- }
57
- export interface EntityChangeWithUsernameDto {
58
- entityChange: EntityChangeDto;
59
- userName?: string;
60
- }
61
- export interface EntityPropertyChangeDto extends EntityDto<string> {
62
- tenantId?: string;
63
- entityChangeId?: string;
64
- newValue?: string;
65
- originalValue?: string;
66
- propertyName?: string;
67
- propertyTypeFullName?: string;
68
- }
69
- export interface GetAuditLogListDto extends PagedAndSortedResultRequestDto {
70
- startTime?: string;
71
- endTime?: string;
72
- url?: string;
73
- clientId?: string;
74
- userName?: string;
75
- applicationName?: string;
76
- clientIpAddress?: string;
77
- correlationId?: string;
78
- httpMethod?: string;
79
- httpStatusCode?: number;
80
- maxExecutionDuration?: number;
81
- minExecutionDuration?: number;
82
- hasException?: boolean;
83
- }
84
- export interface GetAverageExecutionDurationPerDayInput {
85
- startDate?: string;
86
- endDate?: string;
87
- }
88
- export interface GetAverageExecutionDurationPerDayOutput {
89
- data: Record<string, number>;
90
- }
91
- export interface GetEntityChangesDto extends PagedAndSortedResultRequestDto {
92
- auditLogId?: string;
93
- entityChangeType?: EntityChangeType;
94
- entityId?: string;
95
- entityTypeFullName?: string;
96
- startDate?: string;
97
- endDate?: string;
98
- }
99
- export interface GetErrorRateFilter {
100
- startDate?: string;
101
- endDate?: string;
102
- }
103
- export interface GetErrorRateOutput {
104
- data: Record<string, number>;
105
- }
@@ -1,6 +0,0 @@
1
- export declare enum EntityChangeType {
2
- Created = 0,
3
- Updated = 1,
4
- Deleted = 2
5
- }
6
- export declare const entityChangeTypeOptions: import("@abp/ng.core").ABP.Option<typeof EntityChangeType>[];
@@ -1 +0,0 @@
1
- export * from './entity-change-type.enum';
@@ -1 +0,0 @@
1
- export * from './lib/index';
package/public-api.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export * from './lib/audit-logging.module';
2
- export * from './lib/audit-logging.routes';
3
- export * from './lib/components';
4
- export * from './lib/constants';
5
- export * from './lib/enums';
6
- export * from './lib/guards';
7
- export * from './lib/models';
8
- export * from './lib/tokens';
9
- export * from './lib/resolvers';