@epztickets/common 1.70.0 → 1.71.0
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.
|
@@ -33,7 +33,8 @@ export declare enum Subjects {
|
|
|
33
33
|
ConnectDisconnectApproved = "events.user.connect-disconnect-approved",
|
|
34
34
|
ConnectDisconnectRejected = "events.user.connect-disconnect-rejected",
|
|
35
35
|
UserSelfBookingRecorded = "events.user.self-booking-recorded",
|
|
36
|
-
UserSelfBookingTrialChanged = "events.user.self-booking-trial-changed"
|
|
36
|
+
UserSelfBookingTrialChanged = "events.user.self-booking-trial-changed",
|
|
37
|
+
UserCommissionRateChanged = "events.user.commission-rate-changed"
|
|
37
38
|
}
|
|
38
39
|
export declare enum Streams {
|
|
39
40
|
Events = "events",
|
package/build/events/subjects.js
CHANGED
|
@@ -85,6 +85,13 @@ var Subjects;
|
|
|
85
85
|
// by set-trial-expiry, and the dedicated listener in orders
|
|
86
86
|
// applies the trial change unconditionally. No version check.
|
|
87
87
|
Subjects["UserSelfBookingTrialChanged"] = "events.user.self-booking-trial-changed";
|
|
88
|
+
// Same architecture as UserSelfBookingTrialChanged but for the
|
|
89
|
+
// per-owner platform commission override. set-commission-rate
|
|
90
|
+
// publishes this; orders consumes to keep computeCommissionRate's
|
|
91
|
+
// owner lookup in sync. The regular UserUpdated path is still
|
|
92
|
+
// published for backward-compat consumers, but it can race-lose
|
|
93
|
+
// against payments' Stripe-webhook updates the same way.
|
|
94
|
+
Subjects["UserCommissionRateChanged"] = "events.user.commission-rate-changed";
|
|
88
95
|
})(Subjects || (exports.Subjects = Subjects = {}));
|
|
89
96
|
var Streams;
|
|
90
97
|
(function (Streams) {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Subjects } from "./subjects";
|
|
2
|
+
export interface UserCommissionRateChangedEvent {
|
|
3
|
+
subject: Subjects.UserCommissionRateChanged;
|
|
4
|
+
data: {
|
|
5
|
+
userId: string;
|
|
6
|
+
/** New override, or -1 to clear. */
|
|
7
|
+
commissionRate: number;
|
|
8
|
+
/** Which admin made the change. */
|
|
9
|
+
changedByAdminId: string;
|
|
10
|
+
/** When auth applied the change. */
|
|
11
|
+
changedAt: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
package/build/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export * from "./events/user-deletion-rejected-event";
|
|
|
51
51
|
export * from "./events/user-email-verification-requested-event";
|
|
52
52
|
export * from "./events/user-self-booking-recorded-event";
|
|
53
53
|
export * from "./events/user-self-booking-trial-changed-event";
|
|
54
|
+
export * from "./events/user-commission-rate-changed-event";
|
|
54
55
|
export * from "./events/connect-disconnect-requested-event";
|
|
55
56
|
export * from "./events/connect-disconnect-approved-event";
|
|
56
57
|
export * from "./events/connect-disconnect-rejected-event";
|
package/build/index.js
CHANGED
|
@@ -71,6 +71,7 @@ __exportStar(require("./events/user-deletion-rejected-event"), exports);
|
|
|
71
71
|
__exportStar(require("./events/user-email-verification-requested-event"), exports);
|
|
72
72
|
__exportStar(require("./events/user-self-booking-recorded-event"), exports);
|
|
73
73
|
__exportStar(require("./events/user-self-booking-trial-changed-event"), exports);
|
|
74
|
+
__exportStar(require("./events/user-commission-rate-changed-event"), exports);
|
|
74
75
|
__exportStar(require("./events/connect-disconnect-requested-event"), exports);
|
|
75
76
|
__exportStar(require("./events/connect-disconnect-approved-event"), exports);
|
|
76
77
|
__exportStar(require("./events/connect-disconnect-rejected-event"), exports);
|