@epztickets/common 1.77.0 → 1.79.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.
@@ -0,0 +1,14 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface ApprovedLocationAddedEvent {
3
+ subject: Subjects.ApprovedLocationAdded;
4
+ data: {
5
+ id: string;
6
+ userId: string;
7
+ address: string;
8
+ lat: number;
9
+ lng: number;
10
+ addedByAdminId: string;
11
+ addedAt: string;
12
+ notes?: string;
13
+ };
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface ApprovedLocationRemovedEvent {
3
+ subject: Subjects.ApprovedLocationRemoved;
4
+ data: {
5
+ id: string;
6
+ userId: string;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -51,5 +51,6 @@ export interface RoomCreatedEvent {
51
51
  close?: string;
52
52
  };
53
53
  };
54
+ waiverText?: string;
54
55
  };
55
56
  }
@@ -47,5 +47,6 @@ export interface RoomUpdatedEvent {
47
47
  close?: string;
48
48
  };
49
49
  };
50
+ waiverText?: string;
50
51
  };
51
52
  }
@@ -37,7 +37,9 @@ export declare enum Subjects {
37
37
  UserSelfBookingRecorded = "events.user.self-booking-recorded",
38
38
  UserSelfBookingTrialChanged = "events.user.self-booking-trial-changed",
39
39
  UserCommissionRateChanged = "events.user.commission-rate-changed",
40
- UserSelfBookingPaymentReminderRequested = "events.user.self-booking-payment-reminder-requested"
40
+ UserSelfBookingPaymentReminderRequested = "events.user.self-booking-payment-reminder-requested",
41
+ ApprovedLocationAdded = "events.approved-location.added",
42
+ ApprovedLocationRemoved = "events.approved-location.removed"
41
43
  }
42
44
  export declare enum Streams {
43
45
  Events = "events",
@@ -109,6 +109,19 @@ var Subjects;
109
109
  // SelfBookingReminderLog with a unique (userId, periodLabel)
110
110
  // index so a pod restart on the 1st can't double-send.
111
111
  Subjects["UserSelfBookingPaymentReminderRequested"] = "events.user.self-booking-payment-reminder-requested";
112
+ // Published by auth when an admin adds a physical address to a
113
+ // (prospective or existing) owner's approved-location list. The
114
+ // rooms service consumes this to keep its ApprovedLocation
115
+ // replica in sync; that replica is the source of truth for the
116
+ // dropdown that owners pick from in RoomForm / BuildingForm.
117
+ // Renters never see approved-location events — they see the
118
+ // downstream Room/Building records after admin approval.
119
+ Subjects["ApprovedLocationAdded"] = "events.approved-location.added";
120
+ // Counterpart for removal. Rooms/Buildings already-created off
121
+ // the deleted location are grandfathered (their cached address/
122
+ // lat/lng stays); only NEW rooms are blocked from picking a
123
+ // removed location.
124
+ Subjects["ApprovedLocationRemoved"] = "events.approved-location.removed";
112
125
  })(Subjects || (exports.Subjects = Subjects = {}));
113
126
  var Streams;
114
127
  (function (Streams) {
package/build/index.d.ts CHANGED
@@ -28,6 +28,8 @@ export * from "./nats/ensure-streams";
28
28
  export * from "./events/room-created-event";
29
29
  export * from "./events/room-deleted-event";
30
30
  export * from "./events/room-updated-event";
31
+ export * from "./events/approved-location-added-event";
32
+ export * from "./events/approved-location-removed-event";
31
33
  export * from "./events/order-cancelled-event";
32
34
  export * from "./events/order-completed-event";
33
35
  export * from "./events/order-created-event";
package/build/index.js CHANGED
@@ -48,6 +48,8 @@ __exportStar(require("./nats/ensure-streams"), exports);
48
48
  __exportStar(require("./events/room-created-event"), exports);
49
49
  __exportStar(require("./events/room-deleted-event"), exports);
50
50
  __exportStar(require("./events/room-updated-event"), exports);
51
+ __exportStar(require("./events/approved-location-added-event"), exports);
52
+ __exportStar(require("./events/approved-location-removed-event"), exports);
51
53
  __exportStar(require("./events/order-cancelled-event"), exports);
52
54
  __exportStar(require("./events/order-completed-event"), exports);
53
55
  __exportStar(require("./events/order-created-event"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epztickets/common",
3
- "version": "1.77.0",
3
+ "version": "1.79.0",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [