picker-db 3.7.0 → 3.7.1

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/constants.js CHANGED
@@ -422,5 +422,11 @@ module.exports = {
422
422
  RECOMMENDED_VALUE: "RECOMMENDED_VALUE",
423
423
  CUSTOM_VALUE: "CUSTOM_VALUE",
424
424
  NONE: "NONE",
425
- }
425
+ },
426
+ BOOKING_REQUEST: {
427
+ STATUS: {
428
+ CREATED: "CREATED",
429
+ FAILED: "FAILED",
430
+ },
431
+ },
426
432
  };
@@ -1,3 +1,5 @@
1
+ const { BOOKING_REQUEST } = require("../../../constants");
2
+
1
3
  /** @param {import("mongoose")} connection */
2
4
  module.exports = (connection) => {
3
5
  const BookingRequestSchema = new connection.base.Schema({
@@ -26,6 +28,13 @@ module.exports = (connection) => {
26
28
  type: String,
27
29
  index: true,
28
30
  },
31
+ status: {
32
+ type: String,
33
+ enum: [BOOKING_REQUEST.STATUS.CREATED, BOOKING_REQUEST.STATUS.FAILED],
34
+ },
35
+ errorMessage: {
36
+ type: String,
37
+ },
29
38
  }, { timestamps: true, strict: false });
30
39
 
31
40
  return BookingRequestSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {