@bondsports/types 2.5.24-squad-c-1 → 2.5.25-c-1

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.
@@ -1,9 +1,10 @@
1
1
  import { ResourceNameTypeEnum } from '../../../../../types/enums/resource-name.enums';
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
6
  import { AuditEventTypeEnum } from '../../../../types/enums/audit.enums';
6
- import { AuditChildPlanOutcomeEnum } from '../enums/audit-drain.enum';
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
9
10
  * Archive plan an identity-only event with zero field changes.
@@ -72,3 +73,25 @@ export interface IAuditClaimedAction {
72
73
  /** The claimed Action's `AuditOutbox` children, ordered by `id` ASC. */
73
74
  children: AuditOutbox[];
74
75
  }
76
+ /**
77
+ * The terminal outcome of one claimed Action, plus the fields an alert needs.
78
+ */
79
+ export interface IAuditActionOutcomeParams {
80
+ /** The processed AuditActionOutbox row, as claimed. */
81
+ actionOutbox: AuditActionOutbox;
82
+ /** The terminal outcome returned from the success transaction. */
83
+ outcome: AuditActionOutcomeEnum;
84
+ }
85
+ /**
86
+ * A newly dead AuditActionOutbox and the reason recorded on its log line.
87
+ */
88
+ export interface IAuditDeadAlertParams {
89
+ /** The AuditActionOutbox row that became dead, as claimed. */
90
+ actionOutbox: AuditActionOutbox;
91
+ /** The error that exhausted ingest attempts, when there was one. */
92
+ error?: unknown;
93
+ /** The reason recorded on the existing dead-action log line. */
94
+ logReason: string;
95
+ /** Why the action is dead: no children, or the attempt cap. */
96
+ reason: AuditDeadReasonEnum;
97
+ }
@@ -60,6 +60,11 @@ export interface IAuditParentHydration {
60
60
  namesByKey: Map<string, string>;
61
61
  snapshotsByKey: Map<string, IAuditSnapshot>;
62
62
  }
63
+ export interface IFillNamesFromLinkedProductsParams {
64
+ namesByKey: Map<string, string>;
65
+ organizationId: number;
66
+ snapshotsByKey: Map<string, IAuditSnapshot>;
67
+ }
63
68
  export interface IAuditActionsListFilters {
64
69
  actionTypes?: AuditActionTypeEnum[];
65
70
  areas?: AuditAreaEnum[];
@@ -158,6 +158,7 @@ export interface IGetTaggedSegmentsBySessionIdsParams {
158
158
  parentSessionIds: number[];
159
159
  publishedOnly?: boolean;
160
160
  search?: string;
161
+ sessionNameFirst?: boolean;
161
162
  tagged?: boolean;
162
163
  tagIds?: number[];
163
164
  segmentId?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.5.24-squad-c-1",
3
+ "version": "2.5.25-c-1",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {