@bondsports/types 2.5.8-squad-c-2 → 2.5.8-squad-c-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.
@@ -3,5 +3,6 @@ import { IAuditRelatedRecord } from '../types/interfaces/audit-read.interfaces';
3
3
  export declare class AuditRelatedRecordDto implements IAuditRelatedRecord {
4
4
  entityType: ResourceNameTypeEnum;
5
5
  entityId: number;
6
+ userId?: number;
6
7
  name?: string;
7
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"audit-related-record.dto.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/dto/audit-related-record.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,qBAAqB;CAMjC;AAND,sDAMC"}
1
+ {"version":3,"file":"audit-related-record.dto.js","sourceRoot":"","sources":["../../../../../src/types/audit/read/dto/audit-related-record.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,qBAAqB;CAQjC;AARD,sDAQC"}
@@ -35,8 +35,14 @@ export interface IAuditActionsPage {
35
35
  actions: AuditAction[];
36
36
  meta: PaginationMetaDto;
37
37
  }
38
+ /**
39
+ * A record the Action page links to. `userId` is a secondary id some record
40
+ * types need for navigation: the linked user or family account id of the
41
+ * customer, or of the customer that owns the invoice.
42
+ */
38
43
  export interface IAuditRelatedRecord {
39
44
  entityId: number;
45
+ userId?: number;
40
46
  entityType: ResourceNameTypeEnum;
41
47
  name?: string;
42
48
  }
@@ -65,7 +71,7 @@ export interface IAuditActionsListFilters {
65
71
  platforms?: PlatformsEnum[];
66
72
  }
67
73
  export interface IAuditActionsSearch {
68
- actorName?: string;
69
74
  recordId?: number;
75
+ actorName?: string;
70
76
  recordName?: string;
71
77
  }
@@ -302,7 +302,6 @@ export interface ICartReservationOptions extends ICreateCartOptions {
302
302
  platform?: PlatformsEnum;
303
303
  reservation?: DraftReservation;
304
304
  skipUpdatePrices?: boolean;
305
- targetGlobalPrice?: number;
306
305
  updatePrices?: IUpdateCartPrices;
307
306
  }
308
307
  export interface IProductItems {
@@ -319,8 +318,31 @@ export interface ISaveReservationOptions {
319
318
  draftReservation?: DraftReservation;
320
319
  platform?: PlatformsEnum;
321
320
  slotType?: SlotTypeEnum;
321
+ /** Only callers that own the Action set this; internal re-saves must not emit a second one. */
322
+ emitAudit?: boolean;
322
323
  updatePrices?: IUpdateCartPrices;
323
324
  }
325
+ /**
326
+ * Reservation tree and owner a create flow already holds.
327
+ * Builds reservation.create audit captures without reloading those rows.
328
+ */
329
+ export interface IReservationCreateAuditSource {
330
+ owner?: Customer;
331
+ reservation: Reservation;
332
+ }
333
+ /**
334
+ * Options for building CREATE captures from an already loaded reservation tree.
335
+ */
336
+ export interface IBuildReservationTreeCapturesOptions {
337
+ customer?: Customer;
338
+ }
339
+ /**
340
+ * An invoice id linked to a reservation, as returned by the raw invoice lookup.
341
+ */
342
+ export interface IReservationInvoiceIdRow {
343
+ id: number;
344
+ reservationId: number;
345
+ }
324
346
  export interface IGetDraftReservationSlotsFilter {
325
347
  days?: number[];
326
348
  endDate?: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.5.8-squad-c-2",
3
+ "version": "2.5.8-squad-c-3",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {