@bondsports/types 2.5.28-a-1 → 2.5.29
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.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/audit/entities/audit-action-outbox.entity.d.ts +3 -2
- package/dist/types/audit/entities/audit-action.entity.d.ts +3 -2
- package/dist/types/audit/entities/audit-entity.entity.d.ts +2 -2
- package/dist/types/audit/entities/audit-entity.entity.js.map +1 -1
- package/dist/types/audit/entities/audit-event.entity.d.ts +3 -2
- package/dist/types/audit/entities/audit-event.entity.js.map +1 -1
- package/dist/types/audit/entities/audit-outbox.entity.d.ts +3 -2
- package/dist/types/audit/entities/audit-outbox.entity.js.map +1 -1
- package/dist/types/audit/processor/drain/types/interfaces/audit-drain.interfaces.d.ts +4 -3
- package/dist/types/audit/producer/types/interfaces/audit-action-params.interface.d.ts +3 -2
- package/dist/types/audit/producer/types/interfaces/emit-capture-params.interface.d.ts +3 -2
- package/dist/types/audit/read/dto/audit-action-response.dto.d.ts +3 -2
- package/dist/types/audit/read/dto/audit-event-change-response.dto.d.ts +3 -2
- package/dist/types/audit/read/dto/audit-event-change-response.dto.js.map +1 -1
- package/dist/types/audit/read/dto/audit-related-record.dto.d.ts +2 -2
- package/dist/types/audit/read/dto/get-audit-actions.dto.d.ts +3 -2
- package/dist/types/audit/read/dto/get-audit-actions.dto.js.map +1 -1
- package/dist/types/audit/read/types/interfaces/audit-read.interfaces.d.ts +5 -4
- package/dist/types/audit/schemas/types/audit-schema.types.d.ts +2 -2
- package/dist/types/audit/types/enums/audit.enums.d.ts +0 -22
- package/dist/types/audit/types/enums/audit.enums.js +1 -24
- package/dist/types/audit/types/enums/audit.enums.js.map +1 -1
- package/dist/types/external-validation/types/interfaces.d.ts +1 -0
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BondBaseEntity } from '../../entity/bond-base-entity';
|
|
2
2
|
import { PlatformsEnum } from '../../types/enums/platform.enums';
|
|
3
|
-
import {
|
|
3
|
+
import { ResourceNameTypeEnum } from '../../types/enums/resource-name.enums';
|
|
4
|
+
import { ActionOutboxStatusEnum, AuditActionNameEnum, AuditActionTypeEnum, AuditActorTypeEnum, AuditAreaEnum } from '../types/enums/audit.enums';
|
|
4
5
|
/**
|
|
5
6
|
* Relational Action envelope plus drain ops. Written by the API inside the business
|
|
6
7
|
* transaction; claimed and transitioned to `completed` / `dead` by the Ingestor.
|
|
@@ -9,7 +10,7 @@ export declare class AuditActionOutbox extends BondBaseEntity {
|
|
|
9
10
|
type: AuditActionTypeEnum;
|
|
10
11
|
area: AuditAreaEnum;
|
|
11
12
|
organizationId: number;
|
|
12
|
-
parentType:
|
|
13
|
+
parentType: ResourceNameTypeEnum;
|
|
13
14
|
parentId: number;
|
|
14
15
|
platform: PlatformsEnum;
|
|
15
16
|
facilityId?: number;
|
|
@@ -2,8 +2,9 @@ import { BaseEntity } from 'typeorm';
|
|
|
2
2
|
import { Customer } from '../../customers/entities/customer.entity';
|
|
3
3
|
import { Facility } from '../../facilities/entities/facility.entity';
|
|
4
4
|
import { PlatformsEnum } from '../../types/enums/platform.enums';
|
|
5
|
+
import { ResourceNameTypeEnum } from '../../types/enums/resource-name.enums';
|
|
5
6
|
import { User } from '../../user/entities/user.entity';
|
|
6
|
-
import { AuditActionNameEnum, AuditActionTypeEnum, AuditActorTypeEnum, AuditAreaEnum
|
|
7
|
+
import { AuditActionNameEnum, AuditActionTypeEnum, AuditActorTypeEnum, AuditAreaEnum } from '../types/enums/audit.enums';
|
|
7
8
|
import { AuditActionOutbox } from './audit-action-outbox.entity';
|
|
8
9
|
/**
|
|
9
10
|
* Immutable trail Action, persisted by the Ingestor from a claimed ActionOutbox.
|
|
@@ -17,7 +18,7 @@ export declare class AuditAction extends BaseEntity {
|
|
|
17
18
|
area: AuditAreaEnum;
|
|
18
19
|
name?: AuditActionNameEnum;
|
|
19
20
|
organizationId: number;
|
|
20
|
-
parentType:
|
|
21
|
+
parentType: ResourceNameTypeEnum;
|
|
21
22
|
parentId: number;
|
|
22
23
|
platform: PlatformsEnum;
|
|
23
24
|
facilityId?: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AuditEntityTypeEnum } from '../types/enums/audit.enums';
|
|
2
1
|
import { DatedBaseEntity } from '../../entity/dated-base-entity';
|
|
2
|
+
import { ResourceNameTypeEnum } from '../../types/enums/resource-name.enums';
|
|
3
3
|
import { IAuditSnapshot } from '../schemas';
|
|
4
4
|
/**
|
|
5
5
|
* Canonical post-registry projection of one entity, used as the diff baseline for ingest.
|
|
6
6
|
* `removedAt` is the Delete tombstone marker — never `deletedAt` / soft-delete.
|
|
7
7
|
*/
|
|
8
8
|
export declare class AuditEntity extends DatedBaseEntity {
|
|
9
|
-
entityType:
|
|
9
|
+
entityType: ResourceNameTypeEnum;
|
|
10
10
|
entityId: number;
|
|
11
11
|
organizationId: number;
|
|
12
12
|
projectedSnapshot: IAuditSnapshot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-entity.entity.js","sourceRoot":"","sources":["../../../../src/types/audit/entities/audit-entity.entity.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"audit-entity.entity.js","sourceRoot":"","sources":["../../../../src/types/audit/entities/audit-entity.entity.ts"],"names":[],"mappings":";;;AAEA,sEAAiE;AAIjE;;;GAGG;AACH,MAAa,WAAY,SAAQ,mCAAe;CAY/C;AAZD,kCAYC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
|
-
import {
|
|
2
|
+
import { ResourceNameTypeEnum } from '../../types/enums/resource-name.enums';
|
|
3
|
+
import { AuditEventTypeEnum } from '../types/enums/audit.enums';
|
|
3
4
|
import { AuditAction } from './audit-action.entity';
|
|
4
5
|
/**
|
|
5
6
|
* One logical change to one entity instance under an Action. Slim by design:
|
|
@@ -12,7 +13,7 @@ export declare class AuditEvent extends BaseEntity {
|
|
|
12
13
|
action?: AuditAction;
|
|
13
14
|
organizationId: number;
|
|
14
15
|
eventType: AuditEventTypeEnum;
|
|
15
|
-
entityType:
|
|
16
|
+
entityType: ResourceNameTypeEnum;
|
|
16
17
|
entityId: number;
|
|
17
18
|
predecessorId?: number;
|
|
18
19
|
semanticsVersion: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-event.entity.js","sourceRoot":"","sources":["../../../../src/types/audit/entities/audit-event.entity.ts"],"names":[],"mappings":";;;AAAA,qCASiB;
|
|
1
|
+
{"version":3,"file":"audit-event.entity.js","sourceRoot":"","sources":["../../../../src/types/audit/entities/audit-event.entity.ts"],"names":[],"mappings":";;;AAAA,qCASiB;AAOjB;;;GAGG;AACH,MAAa,UAAW,SAAQ,oBAAU;CAoBzC;AApBD,gCAoBC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { ResourceNameTypeEnum } from '../../types/enums/resource-name.enums';
|
|
2
3
|
import { IAuditSnapshot } from '../schemas';
|
|
3
|
-
import {
|
|
4
|
+
import { AuditEventTypeEnum } from '../types/enums/audit.enums';
|
|
4
5
|
import { AuditActionOutbox } from './audit-action-outbox.entity';
|
|
5
6
|
/**
|
|
6
7
|
* Per-capture after-snapshot for one Action, keyed by `(actionOutboxId, entityType, entityId)`.
|
|
@@ -13,7 +14,7 @@ export declare class AuditOutbox extends BaseEntity {
|
|
|
13
14
|
actionOutbox?: AuditActionOutbox;
|
|
14
15
|
organizationId: number;
|
|
15
16
|
eventType: AuditEventTypeEnum;
|
|
16
|
-
entityType:
|
|
17
|
+
entityType: ResourceNameTypeEnum;
|
|
17
18
|
entityId: number;
|
|
18
19
|
rawSnapshot: IAuditSnapshot;
|
|
19
20
|
predecessorId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-outbox.entity.js","sourceRoot":"","sources":["../../../../src/types/audit/entities/audit-outbox.entity.ts"],"names":[],"mappings":";;;AAAA,qCASiB;
|
|
1
|
+
{"version":3,"file":"audit-outbox.entity.js","sourceRoot":"","sources":["../../../../src/types/audit/entities/audit-outbox.entity.ts"],"names":[],"mappings":";;;AAAA,qCASiB;AAQjB;;;GAGG;AACH,MAAa,WAAY,SAAQ,oBAAU;CAoB1C;AApBD,kCAoBC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ResourceNameTypeEnum } from '../../../../../types/enums/resource-name.enums';
|
|
1
2
|
import { AuditDeadReasonEnum } from '../../../../alerts/types/enums/audit-alert.enums';
|
|
2
3
|
import { AuditActionOutbox } from '../../../../entities/audit-action-outbox.entity';
|
|
3
4
|
import { AuditOutbox } from '../../../../entities/audit-outbox.entity';
|
|
4
5
|
import { IAuditSnapshot, IPropertyChange } from '../../../../schemas';
|
|
5
|
-
import {
|
|
6
|
+
import { AuditEventTypeEnum } from '../../../../types/enums/audit.enums';
|
|
6
7
|
import { AuditActionOutcomeEnum, AuditChildPlanOutcomeEnum } from '../enums/audit-drain.enum';
|
|
7
8
|
/**
|
|
8
9
|
* A trail Audit Event planned for one child, not yet persisted. Delete and
|
|
@@ -16,7 +17,7 @@ export interface IAuditPlannedEvent {
|
|
|
16
17
|
/** Set only for Update succession; ignored for every other EventType. */
|
|
17
18
|
predecessorId?: number;
|
|
18
19
|
/** The audited entity's type. */
|
|
19
|
-
entityType:
|
|
20
|
+
entityType: ResourceNameTypeEnum;
|
|
20
21
|
/** What happened to this entity: Create, Update, Delete, or Archive. */
|
|
21
22
|
eventType: AuditEventTypeEnum;
|
|
22
23
|
/** Per-property changes; non-empty only for Update Events. */
|
|
@@ -33,7 +34,7 @@ export interface IAuditPlannedEntityUpsert {
|
|
|
33
34
|
/** The audited entity's id. */
|
|
34
35
|
entityId: number;
|
|
35
36
|
/** The audited entity's type. */
|
|
36
|
-
entityType:
|
|
37
|
+
entityType: ResourceNameTypeEnum;
|
|
37
38
|
/** The canonical projected snapshot to store. */
|
|
38
39
|
projectedSnapshot: IAuditSnapshot;
|
|
39
40
|
/** Set to the ingest timestamp on Delete; left as-is otherwise. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PlatformsEnum } from '../../../../types/enums/platform.enums';
|
|
2
|
-
import {
|
|
2
|
+
import { ResourceNameTypeEnum } from '../../../../types/enums/resource-name.enums';
|
|
3
|
+
import { AuditActionNameEnum, AuditActionTypeEnum, AuditActorTypeEnum, AuditAreaEnum } from '../../../types/enums/audit.enums';
|
|
3
4
|
/**
|
|
4
5
|
* Action envelope fields the emit session accumulates on the top ALS frame
|
|
5
6
|
* across `begin` and `commit` calls. Every field is optional here because
|
|
@@ -16,7 +17,7 @@ export interface IAuditActionParams {
|
|
|
16
17
|
actorType?: AuditActorTypeEnum;
|
|
17
18
|
area?: AuditAreaEnum;
|
|
18
19
|
name?: AuditActionNameEnum;
|
|
19
|
-
parentType?:
|
|
20
|
+
parentType?: ResourceNameTypeEnum;
|
|
20
21
|
platform?: PlatformsEnum;
|
|
21
22
|
type?: AuditActionTypeEnum;
|
|
22
23
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ResourceNameTypeEnum } from '../../../../types/enums/resource-name.enums';
|
|
1
2
|
import { IAuditSnapshot } from '../../../schemas';
|
|
2
|
-
import {
|
|
3
|
+
import { AuditEventTypeEnum } from '../../../types/enums/audit.enums';
|
|
3
4
|
/**
|
|
4
5
|
* Parameters for one `capture` call on the emit session's top ALS frame.
|
|
5
6
|
* Captures are keyed by `entityType` + `entityId` on the frame — a second
|
|
@@ -15,7 +16,7 @@ export interface IEmitCaptureParams {
|
|
|
15
16
|
*/
|
|
16
17
|
predecessorId?: number;
|
|
17
18
|
/** The shared resource-type label, matching `AuditOutbox.entityType`. */
|
|
18
|
-
entityType:
|
|
19
|
+
entityType: ResourceNameTypeEnum;
|
|
19
20
|
/**
|
|
20
21
|
* What happened to this specific entity within the Action. One Action can
|
|
21
22
|
* mix event types (e.g. some entities created while others are updated or
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BasicFacilityDto } from '../../../facilities/dto/facilities.dto';
|
|
2
2
|
import { ByOrganizationIdDto } from '../../../organization/dto/organization.dto';
|
|
3
3
|
import { PlatformsEnum } from '../../../types/enums/platform.enums';
|
|
4
|
-
import {
|
|
4
|
+
import { ResourceNameTypeEnum } from '../../../types/enums/resource-name.enums';
|
|
5
|
+
import { AuditActionNameEnum, AuditActionTypeEnum, AuditActorTypeEnum, AuditAreaEnum } from '../../types/enums/audit.enums';
|
|
5
6
|
import { IAuditActionResponse } from '../types/interfaces/audit-read.interfaces';
|
|
6
7
|
import { AuditActorDto } from './audit-actor.dto';
|
|
7
8
|
export declare class AuditActionResponseDto extends ByOrganizationIdDto implements IAuditActionResponse {
|
|
@@ -10,7 +11,7 @@ export declare class AuditActionResponseDto extends ByOrganizationIdDto implemen
|
|
|
10
11
|
type: AuditActionTypeEnum;
|
|
11
12
|
area: AuditAreaEnum;
|
|
12
13
|
name?: AuditActionNameEnum;
|
|
13
|
-
parentType:
|
|
14
|
+
parentType: ResourceNameTypeEnum;
|
|
14
15
|
parentId: number;
|
|
15
16
|
parentName?: string;
|
|
16
17
|
platform: PlatformsEnum;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IdDto } from '../../../dto/general.dto';
|
|
2
|
+
import { ResourceNameTypeEnum } from '../../../types/enums/resource-name.enums';
|
|
2
3
|
import { AuditJsonValue } from '../../schemas';
|
|
3
|
-
import {
|
|
4
|
+
import { AuditEventTypeEnum } from '../../types/enums/audit.enums';
|
|
4
5
|
export declare class AuditEventChangeResponseDto extends IdDto {
|
|
5
6
|
eventId: number;
|
|
6
7
|
eventType: AuditEventTypeEnum;
|
|
7
|
-
entityType:
|
|
8
|
+
entityType: ResourceNameTypeEnum;
|
|
8
9
|
entityId: number;
|
|
9
10
|
entityName?: string;
|
|
10
11
|
propertyName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-event-change-response.dto.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/dto/audit-event-change-response.dto.ts"],"names":[],"mappings":";;;AACA,0DAAiD;
|
|
1
|
+
{"version":3,"file":"audit-event-change-response.dto.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/dto/audit-event-change-response.dto.ts"],"names":[],"mappings":";;;AACA,0DAAiD;AAKjD,MAAa,2BAA4B,SAAQ,mBAAK;CAgBrD;AAhBD,kEAgBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResourceNameTypeEnum } from '../../../types/enums/resource-name.enums';
|
|
2
2
|
import { IAuditRelatedRecord } from '../types/interfaces/audit-read.interfaces';
|
|
3
3
|
export declare class AuditRelatedRecordDto implements IAuditRelatedRecord {
|
|
4
|
-
entityType:
|
|
4
|
+
entityType: ResourceNameTypeEnum;
|
|
5
5
|
entityId: number;
|
|
6
6
|
userId?: number;
|
|
7
7
|
name?: string;
|
|
@@ -2,7 +2,8 @@ import { PaginationSearchQuery } from '../../../dto/general.dto';
|
|
|
2
2
|
import { ByOrganizationIdDto } from '../../../organization/dto/organization.dto';
|
|
3
3
|
import { PlatformsEnum } from '../../../types/enums/platform.enums';
|
|
4
4
|
import { OrderByEnum } from '../../../types/enums/query.enums';
|
|
5
|
-
import {
|
|
5
|
+
import { ResourceNameTypeEnum } from '../../../types/enums/resource-name.enums';
|
|
6
|
+
import { AuditActionNameEnum, AuditActionTypeEnum, AuditAreaEnum } from '../../types/enums/audit.enums';
|
|
6
7
|
import { AuditActionChangesSortEnum, AuditActionsSortEnum, AuditSearchByFieldsEnum } from '../types/enums/audit-read.enums';
|
|
7
8
|
import { IAuditActionsListFilters } from '../types/interfaces/audit-read.interfaces';
|
|
8
9
|
export declare class GetAuditActionsDto extends PaginationSearchQuery<AuditActionsSortEnum> implements IAuditActionsListFilters {
|
|
@@ -12,7 +13,7 @@ export declare class GetAuditActionsDto extends PaginationSearchQuery<AuditActio
|
|
|
12
13
|
actionTypes?: AuditActionTypeEnum[];
|
|
13
14
|
names?: AuditActionNameEnum[];
|
|
14
15
|
facilityIds?: number[];
|
|
15
|
-
parentTypes?:
|
|
16
|
+
parentTypes?: ResourceNameTypeEnum[];
|
|
16
17
|
platforms?: PlatformsEnum[];
|
|
17
18
|
searchBy?: AuditSearchByFieldsEnum[];
|
|
18
19
|
search?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-audit-actions.dto.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/dto/get-audit-actions.dto.ts"],"names":[],"mappings":";;;AACA,0DAAiE;AACjE,iFAAiF;AAEjF,kEAA+D;
|
|
1
|
+
{"version":3,"file":"get-audit-actions.dto.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/dto/get-audit-actions.dto.ts"],"names":[],"mappings":";;;AACA,0DAAiE;AACjE,iFAAiF;AAEjF,kEAA+D;AAG/D,sEAIyC;AAGzC,MAAa,kBACZ,SAAQ,mCAA2C;IADpD;;QAwBC,YAAO,GAA0B,uCAAoB,CAAC,UAAU,CAAC;QAEjE,UAAK,GAAiB,yBAAW,CAAC,IAAI,CAAC;IACxC,CAAC;CAAA;AA3BD,gDA2BC;AAED,MAAa,qBAAsB,SAAQ,sCAAmB;CAE7D;AAFD,sDAEC;AAED,MAAa,wBAAyB,SAAQ,mCAAiD;IAA/F;;QAGC,YAAO,GAAgC,6CAA0B,CAAC,EAAE,CAAC;QAErE,UAAK,GAAiB,yBAAW,CAAC,GAAG,CAAC;IACvC,CAAC;CAAA;AAND,4DAMC"}
|
|
@@ -3,10 +3,11 @@ import { BasicFacilityDto } from '../../../../facilities/dto/facilities.dto';
|
|
|
3
3
|
import { SimpleMediaDto } from '../../../../media/dto/media-public.dto';
|
|
4
4
|
import { PlatformsEnum } from '../../../../types/enums/platform.enums';
|
|
5
5
|
import { OrderByEnum } from '../../../../types/enums/query.enums';
|
|
6
|
+
import { ResourceNameTypeEnum } from '../../../../types/enums/resource-name.enums';
|
|
6
7
|
import { AuditAction } from '../../../entities/audit-action.entity';
|
|
7
8
|
import { AuditEventChange } from '../../../entities/audit-event-change.entity';
|
|
8
9
|
import { IAuditSnapshot } from '../../../schemas/types/audit-json.types';
|
|
9
|
-
import { AuditActionNameEnum, AuditActionTypeEnum, AuditActorTypeEnum, AuditAreaEnum
|
|
10
|
+
import { AuditActionNameEnum, AuditActionTypeEnum, AuditActorTypeEnum, AuditAreaEnum } from '../../../types/enums/audit.enums';
|
|
10
11
|
import { AuditActionsSortEnum } from '../enums/audit-read.enums';
|
|
11
12
|
export interface IAuditActor {
|
|
12
13
|
id: number;
|
|
@@ -28,7 +29,7 @@ export interface IAuditActionResponse {
|
|
|
28
29
|
facility?: BasicFacilityDto;
|
|
29
30
|
name?: AuditActionNameEnum;
|
|
30
31
|
parentName?: string;
|
|
31
|
-
parentType:
|
|
32
|
+
parentType: ResourceNameTypeEnum;
|
|
32
33
|
platform: PlatformsEnum;
|
|
33
34
|
type: AuditActionTypeEnum;
|
|
34
35
|
}
|
|
@@ -44,7 +45,7 @@ export interface IAuditActionsPage {
|
|
|
44
45
|
export interface IAuditRelatedRecord {
|
|
45
46
|
entityId: number;
|
|
46
47
|
userId?: number;
|
|
47
|
-
entityType:
|
|
48
|
+
entityType: ResourceNameTypeEnum;
|
|
48
49
|
name?: string;
|
|
49
50
|
}
|
|
50
51
|
export interface IAuditActionDetails {
|
|
@@ -73,7 +74,7 @@ export interface IAuditActionsListFilters {
|
|
|
73
74
|
names?: AuditActionNameEnum[];
|
|
74
75
|
order?: OrderByEnum;
|
|
75
76
|
orderBy?: AuditActionsSortEnum;
|
|
76
|
-
parentTypes?:
|
|
77
|
+
parentTypes?: ResourceNameTypeEnum[];
|
|
77
78
|
platforms?: PlatformsEnum[];
|
|
78
79
|
}
|
|
79
80
|
export interface IAuditActionsSearch {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResourceNameTypeEnum } from '../../../types/enums/resource-name.enums';
|
|
2
2
|
import { IAuditRow } from './audit-json.types';
|
|
3
3
|
import { AuditOrderEnum } from './audit-order.enum';
|
|
4
4
|
import { AuditPropertyKindEnum } from './audit-property-kind.enum';
|
|
@@ -109,7 +109,7 @@ export type AuditPropertyDefinition = IAuditScalarPropertyDefinition | IAuditSca
|
|
|
109
109
|
*/
|
|
110
110
|
export interface IAuditEntitySchema {
|
|
111
111
|
/** The entity type this schema audits. */
|
|
112
|
-
entityType:
|
|
112
|
+
entityType: ResourceNameTypeEnum;
|
|
113
113
|
/** The audited properties; anything not listed is omitted from diffs. */
|
|
114
114
|
properties: readonly AuditPropertyDefinition[];
|
|
115
115
|
/**
|
|
@@ -76,28 +76,6 @@ export declare enum ActionOutboxStatusEnum {
|
|
|
76
76
|
COMPLETED = "completed",
|
|
77
77
|
DEAD = "dead"
|
|
78
78
|
}
|
|
79
|
-
export declare enum AuditEntityTypeEnum {
|
|
80
|
-
PRODUCT = "product",
|
|
81
|
-
EMPLOYEE = "employee",
|
|
82
|
-
RESERVATION = "reservation",
|
|
83
|
-
SLOT = "slot",
|
|
84
|
-
ADDON = "addon",
|
|
85
|
-
PROGRAM = "program",
|
|
86
|
-
PROGRAM_SEASON = "program_season",
|
|
87
|
-
SEGMENT = "segment",
|
|
88
|
-
EVENT = "event",
|
|
89
|
-
FOLDER = "folder",
|
|
90
|
-
SEASON_ATTENDEE = "season_attendee",
|
|
91
|
-
EVENT_ATTENDEE = "event_attendee",
|
|
92
|
-
PURCHASED_RESOURCE = "purchased_resource",
|
|
93
|
-
USER_REDEMPTION = "user_redemption",
|
|
94
|
-
FOLDER_CONTENT = "folder_content",
|
|
95
|
-
WAITLIST_ENTRY = "waitlist_entry",
|
|
96
|
-
SEGMENT_TAG = "segment_tag",
|
|
97
|
-
ROLE = "role",
|
|
98
|
-
CUSTOMER = "customer",
|
|
99
|
-
INVOICE = "invoice"
|
|
100
|
-
}
|
|
101
79
|
export declare enum AuditActorTypeEnum {
|
|
102
80
|
USER = "user",
|
|
103
81
|
SYSTEM = "system"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuditActorTypeEnum = exports.
|
|
3
|
+
exports.AuditActorTypeEnum = exports.ActionOutboxStatusEnum = exports.AuditAreaEnum = exports.AuditEventTypeEnum = exports.AuditActionNameEnum = exports.AuditActionTypeEnum = void 0;
|
|
4
4
|
var AuditActionTypeEnum;
|
|
5
5
|
(function (AuditActionTypeEnum) {
|
|
6
6
|
AuditActionTypeEnum["CREATE"] = "create";
|
|
@@ -84,29 +84,6 @@ var ActionOutboxStatusEnum;
|
|
|
84
84
|
ActionOutboxStatusEnum["COMPLETED"] = "completed";
|
|
85
85
|
ActionOutboxStatusEnum["DEAD"] = "dead";
|
|
86
86
|
})(ActionOutboxStatusEnum = exports.ActionOutboxStatusEnum || (exports.ActionOutboxStatusEnum = {}));
|
|
87
|
-
var AuditEntityTypeEnum;
|
|
88
|
-
(function (AuditEntityTypeEnum) {
|
|
89
|
-
AuditEntityTypeEnum["PRODUCT"] = "product";
|
|
90
|
-
AuditEntityTypeEnum["EMPLOYEE"] = "employee";
|
|
91
|
-
AuditEntityTypeEnum["RESERVATION"] = "reservation";
|
|
92
|
-
AuditEntityTypeEnum["SLOT"] = "slot";
|
|
93
|
-
AuditEntityTypeEnum["ADDON"] = "addon";
|
|
94
|
-
AuditEntityTypeEnum["PROGRAM"] = "program";
|
|
95
|
-
AuditEntityTypeEnum["PROGRAM_SEASON"] = "program_season";
|
|
96
|
-
AuditEntityTypeEnum["SEGMENT"] = "segment";
|
|
97
|
-
AuditEntityTypeEnum["EVENT"] = "event";
|
|
98
|
-
AuditEntityTypeEnum["FOLDER"] = "folder";
|
|
99
|
-
AuditEntityTypeEnum["SEASON_ATTENDEE"] = "season_attendee";
|
|
100
|
-
AuditEntityTypeEnum["EVENT_ATTENDEE"] = "event_attendee";
|
|
101
|
-
AuditEntityTypeEnum["PURCHASED_RESOURCE"] = "purchased_resource";
|
|
102
|
-
AuditEntityTypeEnum["USER_REDEMPTION"] = "user_redemption";
|
|
103
|
-
AuditEntityTypeEnum["FOLDER_CONTENT"] = "folder_content";
|
|
104
|
-
AuditEntityTypeEnum["WAITLIST_ENTRY"] = "waitlist_entry";
|
|
105
|
-
AuditEntityTypeEnum["SEGMENT_TAG"] = "segment_tag";
|
|
106
|
-
AuditEntityTypeEnum["ROLE"] = "role";
|
|
107
|
-
AuditEntityTypeEnum["CUSTOMER"] = "customer";
|
|
108
|
-
AuditEntityTypeEnum["INVOICE"] = "invoice";
|
|
109
|
-
})(AuditEntityTypeEnum = exports.AuditEntityTypeEnum || (exports.AuditEntityTypeEnum = {}));
|
|
110
87
|
var AuditActorTypeEnum;
|
|
111
88
|
(function (AuditActorTypeEnum) {
|
|
112
89
|
AuditActorTypeEnum["USER"] = "user";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.enums.js","sourceRoot":"","sources":["../../../../../src/types/audit/types/enums/audit.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,oCAAa,CAAA;AACd,CAAC,EAVW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAU9B;AAED,IAAY,mBA4CX;AA5CD,WAAY,mBAAmB;IAC9B,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,gDAAyB,CAAA;IACzB,8CAAuB,CAAA;IACvB,gDAAyB,CAAA;IACzB,oCAAa,CAAA;IACb,wCAAiB,CAAA;IACjB,sCAAe,CAAA;IACf,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,4CAAqB,CAAA;IACrB,4CAAqB,CAAA;IACrB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;IACzB,sCAAe,CAAA;IACf,0CAAmB,CAAA;IACnB,8CAAuB,CAAA;IACvB,gDAAyB,CAAA;IACzB,oCAAa,CAAA;IACb,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,0CAAmB,CAAA;IACnB,oDAA6B,CAAA;IAC7B,gDAAyB,CAAA;IACzB,8CAAuB,CAAA;IACvB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,gDAAyB,CAAA;IACzB,4DAAqC,CAAA;IACrC,wDAAiC,CAAA;IACjC,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,sDAA+B,CAAA;IAC/B,wDAAiC,CAAA;IACjC,4CAAqB,CAAA;IACrB,0DAAmC,CAAA;AACpC,CAAC,EA5CW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QA4C9B;AAED,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC7B,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACpB,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AAED,IAAY,aAUX;AAVD,WAAY,aAAa;IACxB,8CAA6B,CAAA;IAC7B,sCAAqB,CAAA;IACrB,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,kDAAiC,CAAA;IACjC,gCAAe,CAAA;AAChB,CAAC,EAVW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAUxB;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,6CAAmB,CAAA;IACnB,iDAAuB,CAAA;IACvB,uCAAa,CAAA;AACd,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"audit.enums.js","sourceRoot":"","sources":["../../../../../src/types/audit/types/enums/audit.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,oCAAa,CAAA;AACd,CAAC,EAVW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAU9B;AAED,IAAY,mBA4CX;AA5CD,WAAY,mBAAmB;IAC9B,8CAAuB,CAAA;IACvB,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,gDAAyB,CAAA;IACzB,8CAAuB,CAAA;IACvB,gDAAyB,CAAA;IACzB,oCAAa,CAAA;IACb,wCAAiB,CAAA;IACjB,sCAAe,CAAA;IACf,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,4CAAqB,CAAA;IACrB,4CAAqB,CAAA;IACrB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;IACzB,sCAAe,CAAA;IACf,0CAAmB,CAAA;IACnB,8CAAuB,CAAA;IACvB,gDAAyB,CAAA;IACzB,oCAAa,CAAA;IACb,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,0CAAmB,CAAA;IACnB,oDAA6B,CAAA;IAC7B,gDAAyB,CAAA;IACzB,8CAAuB,CAAA;IACvB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,gDAAyB,CAAA;IACzB,4DAAqC,CAAA;IACrC,wDAAiC,CAAA;IACjC,oDAA6B,CAAA;IAC7B,oDAA6B,CAAA;IAC7B,sDAA+B,CAAA;IAC/B,wDAAiC,CAAA;IACjC,4CAAqB,CAAA;IACrB,0DAAmC,CAAA;AACpC,CAAC,EA5CW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QA4C9B;AAED,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC7B,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACpB,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AAED,IAAY,aAUX;AAVD,WAAY,aAAa;IACxB,8CAA6B,CAAA;IAC7B,sCAAqB,CAAA;IACrB,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,kDAAiC,CAAA;IACjC,gCAAe,CAAA;AAChB,CAAC,EAVW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAUxB;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,6CAAmB,CAAA;IACnB,iDAAuB,CAAA;IACvB,uCAAa,CAAA;AACd,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,mCAAa,CAAA;IACb,uCAAiB,CAAA;AAClB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SportsEnum } from '../../../activities/types/activities.enums';
|
|
2
2
|
import { AnswerTemplateDataDto, QuestionAnswersDto } from '../../../applications/dto/application.dto';
|
|
3
3
|
import { IBaseActionParams, IEmitCaptureParams } from '../../../audit/producer/types';
|
|
4
|
-
import {
|
|
4
|
+
import { AuditEventTypeEnum } from '../../../audit/types/enums/audit.enums';
|
|
5
5
|
import { CartItem } from '../../../cart/entities/cart-item.entity';
|
|
6
6
|
import { Cart } from '../../../cart/entities/cart.entity';
|
|
7
7
|
import { ICreateCartItem, ICreateCartOptions, IUpdateCartPrices } from '../../../cart/types/interfaces/cart.interfaces';
|
|
@@ -369,7 +369,7 @@ export interface IBuildReservationTreeCapturesOptions {
|
|
|
369
369
|
eventTypes?: TReservationAuditEventTypes;
|
|
370
370
|
}
|
|
371
371
|
/** Event type per audited row, by entity type and id. */
|
|
372
|
-
export type TReservationAuditEventTypes = Partial<Record<
|
|
372
|
+
export type TReservationAuditEventTypes = Partial<Record<ResourceNameTypeEnum, Map<number, AuditEventTypeEnum>>>;
|
|
373
373
|
/** The Action and rows of one append, resolved from the draft. */
|
|
374
374
|
export type TReservationAppendAudit = Pick<IReservationAuditSource, 'action' | 'eventTypes'>;
|
|
375
375
|
export interface IGetDraftReservationSlotsFilter {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bondsports/types",
|
|
3
|
-
"version": "2.5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.5.29",
|
|
4
|
+
"description": "backend types module for Bond-Sports",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"format": "prettier --check .",
|