@seatlayer/js 0.12.1 → 0.12.2
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/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -656,6 +656,14 @@ interface ControlRoomSectionMetric {
|
|
|
656
656
|
not_for_sale: number;
|
|
657
657
|
bookedRevenue: number;
|
|
658
658
|
}
|
|
659
|
+
/** Recent seat-state change safe for an event:view control-room grant. Full
|
|
660
|
+
* audit references remain available only through the event:reports log API. */
|
|
661
|
+
interface ControlRoomActivityEntry {
|
|
662
|
+
id: number;
|
|
663
|
+
at: number;
|
|
664
|
+
action: string;
|
|
665
|
+
labels: string[];
|
|
666
|
+
}
|
|
659
667
|
interface ControlRoomSnapshot {
|
|
660
668
|
version: number;
|
|
661
669
|
currency: string;
|
|
@@ -683,6 +691,8 @@ interface ControlRoomSnapshot {
|
|
|
683
691
|
shoppingSessions: number;
|
|
684
692
|
activeHolds: number;
|
|
685
693
|
};
|
|
694
|
+
/** Present on workers that support reload-safe activity hydration. */
|
|
695
|
+
activity?: ControlRoomActivityEntry[];
|
|
686
696
|
event: {
|
|
687
697
|
key: string;
|
|
688
698
|
name: string;
|
|
@@ -1022,4 +1032,4 @@ declare class SeatManager {
|
|
|
1022
1032
|
private fail;
|
|
1023
1033
|
}
|
|
1024
1034
|
|
|
1025
|
-
export { ApiError, type BestAvailableResult, type CheckoutHandoff, type CheckoutLineItem, type ControlRoomSectionMetric, type ControlRoomSnapshot, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type HoldConflict, type HoldLineItem, type HoldResult, type LogEntry, type LogPage, ManageApi, ManageApiError, type ReportByStatus, type ReportCategoryMeta, type ReportCategoryRow, type ReportResult, SeatManager, type SeatManagerActionResult, type SeatManagerActivity, type SeatManagerMode, type SeatManagerOptions, type SeatManagerTallies, SeatPicker, type SeatPickerOptions, type SeatPickerTheme, SeatingChart, type SeatingChartOptions, type SelectedSeat };
|
|
1035
|
+
export { ApiError, type BestAvailableResult, type CheckoutHandoff, type CheckoutLineItem, type ControlRoomActivityEntry, type ControlRoomSectionMetric, type ControlRoomSnapshot, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type HoldConflict, type HoldLineItem, type HoldResult, type LogEntry, type LogPage, ManageApi, ManageApiError, type ReportByStatus, type ReportCategoryMeta, type ReportCategoryRow, type ReportResult, SeatManager, type SeatManagerActionResult, type SeatManagerActivity, type SeatManagerMode, type SeatManagerOptions, type SeatManagerTallies, SeatPicker, type SeatPickerOptions, type SeatPickerTheme, SeatingChart, type SeatingChartOptions, type SelectedSeat };
|
package/dist/index.d.ts
CHANGED
|
@@ -656,6 +656,14 @@ interface ControlRoomSectionMetric {
|
|
|
656
656
|
not_for_sale: number;
|
|
657
657
|
bookedRevenue: number;
|
|
658
658
|
}
|
|
659
|
+
/** Recent seat-state change safe for an event:view control-room grant. Full
|
|
660
|
+
* audit references remain available only through the event:reports log API. */
|
|
661
|
+
interface ControlRoomActivityEntry {
|
|
662
|
+
id: number;
|
|
663
|
+
at: number;
|
|
664
|
+
action: string;
|
|
665
|
+
labels: string[];
|
|
666
|
+
}
|
|
659
667
|
interface ControlRoomSnapshot {
|
|
660
668
|
version: number;
|
|
661
669
|
currency: string;
|
|
@@ -683,6 +691,8 @@ interface ControlRoomSnapshot {
|
|
|
683
691
|
shoppingSessions: number;
|
|
684
692
|
activeHolds: number;
|
|
685
693
|
};
|
|
694
|
+
/** Present on workers that support reload-safe activity hydration. */
|
|
695
|
+
activity?: ControlRoomActivityEntry[];
|
|
686
696
|
event: {
|
|
687
697
|
key: string;
|
|
688
698
|
name: string;
|
|
@@ -1022,4 +1032,4 @@ declare class SeatManager {
|
|
|
1022
1032
|
private fail;
|
|
1023
1033
|
}
|
|
1024
1034
|
|
|
1025
|
-
export { ApiError, type BestAvailableResult, type CheckoutHandoff, type CheckoutLineItem, type ControlRoomSectionMetric, type ControlRoomSnapshot, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type HoldConflict, type HoldLineItem, type HoldResult, type LogEntry, type LogPage, ManageApi, ManageApiError, type ReportByStatus, type ReportCategoryMeta, type ReportCategoryRow, type ReportResult, SeatManager, type SeatManagerActionResult, type SeatManagerActivity, type SeatManagerMode, type SeatManagerOptions, type SeatManagerTallies, SeatPicker, type SeatPickerOptions, type SeatPickerTheme, SeatingChart, type SeatingChartOptions, type SelectedSeat };
|
|
1035
|
+
export { ApiError, type BestAvailableResult, type CheckoutHandoff, type CheckoutLineItem, type ControlRoomActivityEntry, type ControlRoomSectionMetric, type ControlRoomSnapshot, EmbeddedDesigner, type EmbeddedDesignerEventType, type EmbeddedDesignerMessage, type EmbeddedDesignerOptions, type GAAreaAvailability, type HoldConflict, type HoldLineItem, type HoldResult, type LogEntry, type LogPage, ManageApi, ManageApiError, type ReportByStatus, type ReportCategoryMeta, type ReportCategoryRow, type ReportResult, SeatManager, type SeatManagerActionResult, type SeatManagerActivity, type SeatManagerMode, type SeatManagerOptions, type SeatManagerTallies, SeatPicker, type SeatPickerOptions, type SeatPickerTheme, SeatingChart, type SeatingChartOptions, type SelectedSeat };
|
package/dist/index.js
CHANGED
|
@@ -2500,11 +2500,12 @@ var SeatManager = class {
|
|
|
2500
2500
|
}
|
|
2501
2501
|
this.buildRenderer();
|
|
2502
2502
|
this.buildSectionOptions();
|
|
2503
|
-
await Promise.all([
|
|
2503
|
+
const [, controlRoom] = await Promise.all([
|
|
2504
2504
|
this.resnapshot(),
|
|
2505
2505
|
this.refreshControlRoom().catch((err) => this.opts.onError?.(err))
|
|
2506
2506
|
]);
|
|
2507
|
-
|
|
2507
|
+
if (controlRoom?.activity) this.seedFeed(controlRoom.activity);
|
|
2508
|
+
else this.api.log(this.key, { limit: 24 }).then((page) => this.seedFeed(page.entries)).catch(() => {
|
|
2508
2509
|
});
|
|
2509
2510
|
this.connect();
|
|
2510
2511
|
this.startFeedClock();
|
|
@@ -3010,7 +3011,8 @@ var SeatManager = class {
|
|
|
3010
3011
|
release: "released",
|
|
3011
3012
|
expire: "expired",
|
|
3012
3013
|
block: "blocked",
|
|
3013
|
-
unblock: "unblocked"
|
|
3014
|
+
unblock: "unblocked",
|
|
3015
|
+
unbook: "cancelled"
|
|
3014
3016
|
};
|
|
3015
3017
|
const stByAction = {
|
|
3016
3018
|
hold: "held",
|
|
@@ -3018,7 +3020,8 @@ var SeatManager = class {
|
|
|
3018
3020
|
release: "free",
|
|
3019
3021
|
expire: "free",
|
|
3020
3022
|
block: "blocked",
|
|
3021
|
-
unblock: "free"
|
|
3023
|
+
unblock: "free",
|
|
3024
|
+
unbook: "free"
|
|
3022
3025
|
};
|
|
3023
3026
|
for (const e of entries) {
|
|
3024
3027
|
const label = e.labels[0];
|