@jusbid/common-auth 1.0.11 → 1.0.13

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/index.js CHANGED
@@ -7,6 +7,7 @@ const { encryptToken } = require("@jusbid/utils");
7
7
  const { propertyOnBoard } = require('./scripts/propertySlug');
8
8
  const { notificationType } = require('./scripts/notification');
9
9
  const { roles } = require('./scripts/role');
10
+ const bidding = require('./scripts/bidding');
10
11
 
11
12
 
12
13
  async function getPermissions(roleName) {
@@ -144,5 +145,6 @@ module.exports = {
144
145
  getPropertyMasterSlug,
145
146
  notificationType,
146
147
  roles,
147
- authMandate
148
+ authMandate,
149
+ bidding
148
150
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jusbid/common-auth",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "main": "index.js",
5
5
  "private": false,
6
6
  "dependencies": {
@@ -0,0 +1,44 @@
1
+ module.exports = {
2
+ STATUS: {
3
+ PENDING: 'pending',
4
+ HOTELIER_ACCEPTED: 'hotelier-accepted',
5
+ CUSTOMER_ACCEPTED: 'customer-accepted',
6
+ APPROVED: 'approved',
7
+ CONFIRMED: 'confirmed',
8
+ CANCELLED: 'cancelled',
9
+ COUNTER: 'counter',
10
+ ONHOLD: 'onHold',
11
+ CLOSED: 'closed',
12
+ REJECTED: 'rejected',
13
+ COUNTERED: 'countered',
14
+ EXPIRED: 'expired',
15
+ PAID: 'paid',
16
+ MISSED: 'missed'
17
+ },
18
+ CATEGORY: {
19
+ FLIGHT: 'Flight',
20
+ PROPERTY: 'Property',
21
+ TRAIN: 'Train',
22
+ BUS: 'Bus',
23
+ CAB: 'Cab',
24
+ },
25
+
26
+ CHAT_TYPE: {
27
+ BID_INITIATED: 'bid-initiated', //first time auto initiate on place bid
28
+ BID_INCREASE: 'bid-increase', // customer increase bid from his side
29
+ BID_COUNTER: 'bid-counter', //hotelier asked for counter
30
+ BID_CUSTOMER_ACCEPTED: 'bid-customer-accepted',
31
+ BID_HOTELIER_ACCEPTED: 'bid-hotelier-accepted',
32
+ BID_HOTELIER_REJECTED: 'bid-hotelier-rejected',
33
+ BID_APPROVED: 'bid-approved',
34
+ BID_ON_HOLD: 'bid-on-hold',
35
+ BID_CONFIRMED: 'bid-confirmed',
36
+ BID_CLOSED: 'bid-closed',
37
+ BID_CUSTOMER_REJECTED: 'bid-customer-rejected',
38
+ BID_SYSTEM_REJECTED: 'bid-system-rejected',
39
+ BID_SYSTEM_MISS: 'bid-system-miss',
40
+ BID_PAID: 'bid-paid',
41
+ BID_CANCELLED: 'bid-cancelled',
42
+ BID_EXPIRED: 'bid-expired'
43
+ }
44
+ }
@@ -9,6 +9,8 @@ export const notificationType = {
9
9
  PAYMENT_FAILED: "payment-failed",
10
10
  CHECK_IN_REMINDER: "check-in-reminder",
11
11
  ANNOUNCEMENT: "announcement",
12
+ MISSED_BID_REMINDER: "bid-reminder",
13
+ BID_RAISE_REQUESTED: "bid-raise-requested"
12
14
  },
13
15
  HOTELIER: {
14
16
  NEW_BOOKING: "new-booking",
@@ -17,6 +19,11 @@ export const notificationType = {
17
19
  PROPERTY_STATUS_UPDATE: "property-status-update",
18
20
  PAYMENT_RECEIVED: "payment-received",
19
21
  ANNOUNCEMENT: "announcement",
22
+ MISSED_BID_REMINDER: "bid-reminder",
23
+ BID_RAISE_REQUEST_ACCEPTED: "bid-raise-request-accepted",
24
+ BID_RAISE_REQUEST_REJECTED: "bid-raise-request-rejected",
25
+ BID_CONFIRM_REQUEST: "bid-confirm-request",
26
+ BID_COUNTER: "bid-counter"
20
27
  },
21
28
  STAFF: {
22
29
  PROPERTY_ADDED: "property-added",