@jusbid/common-auth 1.0.14 → 1.0.16
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/package.json +1 -1
- package/scripts/notification.js +4 -2
- package/scripts/permission.js +46 -0
package/package.json
CHANGED
package/scripts/notification.js
CHANGED
|
@@ -5,12 +5,14 @@ export const notificationType = {
|
|
|
5
5
|
BOOKING_CANCELLED: "booking-cancelled",
|
|
6
6
|
BID_ACCEPTED: "bid-accepted",
|
|
7
7
|
BID_REJECTED: "bid-customer-rejected",
|
|
8
|
+
BID_APPROVED: "bid-approved",
|
|
8
9
|
PAYMENT_SUCCESS: "payment-success",
|
|
9
10
|
PAYMENT_FAILED: "payment-failed",
|
|
10
11
|
CHECK_IN_REMINDER: "check-in-reminder",
|
|
11
12
|
ANNOUNCEMENT: "announcement",
|
|
12
13
|
MISSED_BID_REMINDER: "bid-reminder",
|
|
13
|
-
BID_RAISE_REQUESTED: "bid-raise-requested"
|
|
14
|
+
BID_RAISE_REQUESTED: "bid-raise-requested",
|
|
15
|
+
BID_HOLD: "bid-hold"
|
|
14
16
|
},
|
|
15
17
|
HOTELIER: {
|
|
16
18
|
NEW_BOOKING: "new-booking",
|
|
@@ -24,7 +26,7 @@ export const notificationType = {
|
|
|
24
26
|
BID_RAISE_REQUEST_REJECTED: "bid-raise-request-rejected",
|
|
25
27
|
BID_CONFIRM_REQUEST: "bid-confirm-request",
|
|
26
28
|
BID_COUNTER: "bid-counter",
|
|
27
|
-
BID_REJECTED: "bid-hotelier-rejected"
|
|
29
|
+
BID_REJECTED: "bid-hotelier-rejected",
|
|
28
30
|
},
|
|
29
31
|
STAFF: {
|
|
30
32
|
PROPERTY_ADDED: "property-added",
|
package/scripts/permission.js
CHANGED
|
@@ -195,6 +195,52 @@ const permissions = {
|
|
|
195
195
|
LANDING_PAGE_UPDATE: { action: "landing-page.landing-page.update", module: "landing-page" },
|
|
196
196
|
LANDING_PAGE_DELETE: { action: "landing-page.landing-page.delete", module: "landing-page" },
|
|
197
197
|
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
ROOM_UNIT_ADD: { action: "hotelier-inventory.room-unit.add", module: "hotelier-inventory" },
|
|
201
|
+
ROOM_UNIT_UPDATE: { action: "hotelier-inventory.room-unit.add", module: "hotelier-inventory" },
|
|
202
|
+
ROOM_UNIT_DELETE: { action: "hotelier-inventory.room-unit.delete", module: "hotelier-inventory" },
|
|
203
|
+
ROOM_UNIT_BULK: { action: "hotelier-inventory.room-unit.bulk", module: "hotelier-inventory" },
|
|
204
|
+
ROOM_UNIT_CALENDER: { action: "hotelier-inventory.room-unit.calender", module: "hotelier-inventory" },
|
|
205
|
+
ROOM_UNIT_VIEW: { action: "hotelier-inventory.room-unit.view", module: "hotelier-inventory" },
|
|
206
|
+
ROOM_UNIT_CLEANING: { action: "hotelier-inventory.room-unit.cleaning", module: "hotelier-inventory" },
|
|
207
|
+
|
|
208
|
+
ROOM_INVENTORY_VIEW: { action: "hotelier-inventory.inventory.view", module: "hotelier-inventory" },
|
|
209
|
+
ROOM_INVENTORY_UPDATE: { action: "hotelier-inventory.inventory.update", module: "hotelier-inventory" },
|
|
210
|
+
|
|
211
|
+
ROOM_RESERVATION_ADD: { action: "hotelier-inventory.reservation.add", module: "hotelier-inventory" },
|
|
212
|
+
ROOM_RESERVATION_UPDATE: { action: "hotelier-inventory.reservation.update", module: "hotelier-inventory" },
|
|
213
|
+
ROOM_RESERVATION_VIEW: { action: "hotelier-inventory.reservation.view", module: "hotelier-inventory" },
|
|
214
|
+
|
|
215
|
+
ROOM_RESERVATION_EVENT_BLOCK_ADD: { action: "hotelier-inventory.reservation.event-block.add", module: "hotelier-inventory" },
|
|
216
|
+
ROOM_RESERVATION_EVENT_BLOCK_UPDATE: { action: "hotelier-inventory.reservation.event-block.update", module: "hotelier-inventory" },
|
|
217
|
+
ROOM_RESERVATION_EVENT_BLOCK_VIEW: { action: "hotelier-inventory.reservation.event-block.view", module: "hotelier-inventory" },
|
|
218
|
+
ROOM_RESERVATION_EVENT_BLOCK_DELETE: { action: "hotelier-inventory.reservation.event-block.delete", module: "hotelier-inventory" },
|
|
219
|
+
|
|
220
|
+
ROOM_RESERVATION_STOP_SELL_ADD: { action: "hotelier-inventory.reservation.stop-sell.add", module: "hotelier-inventory" },
|
|
221
|
+
ROOM_RESERVATION_STOP_SELL_UPDATE: { action: "hotelier-inventory.reservation.stop-sell.update", module: "hotelier-inventory" },
|
|
222
|
+
ROOM_RESERVATION_STOP_SELL_DELETE: { action: "hotelier-inventory.reservation.stop-sell.delete", module: "hotelier-inventory" },
|
|
223
|
+
ROOM_RESERVATION_STOP_SELL_VIEW: { action: "hotelier-inventory.reservation.stop-sell.view", module: "hotelier-inventory" },
|
|
224
|
+
|
|
225
|
+
CLEANING_MASTER_ADD: { action: "hotelier-inventory.cleaning-master.add", module: "hotelier-inventory" },
|
|
226
|
+
CLEANING_MASTER_UPDATE: { action: "hotelier-inventory.cleaning-master.update", module: "hotelier-inventory" },
|
|
227
|
+
CLEANING_MASTER_DELETE: { action: "hotelier-inventory.cleaning-master.delete", module: "hotelier-inventory" },
|
|
228
|
+
CLEANING_MASTER_VIEW: { action: "hotelier-inventory.cleaning-master.view", module: "hotelier-inventory" },
|
|
229
|
+
|
|
230
|
+
BOOKING_ADD: { action: "hotelier-inventory.booking.add", module: "hotelier-inventory" },
|
|
231
|
+
BOOKING_VIEW: { action: "hotelier-inventory.booking.view", module: "hotelier-inventory" },
|
|
232
|
+
BOOKING_CHECK_IN: { action: "hotelier-inventory.booking.check_in", module: "hotelier-inventory" },
|
|
233
|
+
BOOKING_CHECK_OUT: { action: "hotelier-inventory.booking.check_out", module: "hotelier-inventory" },
|
|
234
|
+
BOOKING_CANCEL: { action: "hotelier-inventory.booking.cancel", module: "hotelier-inventory" },
|
|
235
|
+
BOOKING_REALLOCATE: { action: "hotelier-inventory.booking.reallocate", module: "hotelier-inventory" },
|
|
236
|
+
|
|
237
|
+
TASK_VIEW: { action: "hotelier-inventory.task.view", module: "hotelier-inventory" },
|
|
238
|
+
TASK_ADD: { action: "hotelier-inventory.task.add", module: "hotelier-inventory" },
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
PRICING_VIEW: { action: "pricing.view", module: "pricing" },
|
|
242
|
+
PRICING_UPDATE: { action: "pricing.update", module: "pricing" },
|
|
243
|
+
PRICING_BULK: { action: "pricing.bulk", module: "pricing" }
|
|
198
244
|
}
|
|
199
245
|
|
|
200
246
|
module.exports = { permissions }
|