picker-db 4.15.0 → 4.17.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.
@@ -22,3 +22,12 @@ pipelines:
22
22
  - pipe: atlassian/npm-publish:0.3.3
23
23
  variables:
24
24
  NPM_TOKEN: $NPM_TOKEN
25
+ custom:
26
+ weekly-security-audit:
27
+ - step:
28
+ name: Weekly Security Audit
29
+ caches:
30
+ - node
31
+ script:
32
+ - npm install
33
+ - npm audit --audit-level=critical
@@ -769,6 +769,9 @@ module.exports = (connection) => {
769
769
  userBookingCreator: {
770
770
  type: String,
771
771
  },
772
+ userBookingCreatorEmail: {
773
+ type: String,
774
+ },
772
775
  isActiveOnBatch: {
773
776
  type: Boolean,
774
777
  default: true,
@@ -11,7 +11,6 @@ module.exports = (connection) => {
11
11
  enum: ["PENDING", "ACTIVE"],
12
12
  default: "PENDING",
13
13
  required: true,
14
- index: true,
15
14
  },
16
15
  }, { timestamps: true });
17
16
 
@@ -17,8 +17,6 @@ module.exports = (connection) => {
17
17
  deviceToken: {
18
18
  type: String,
19
19
  trim: true,
20
- index: true,
21
- sparse: true,
22
20
  },
23
21
  tag: { type: String },
24
22
  fareSettings: [FareSettingsSchema(connection)],
@@ -21,8 +21,6 @@ module.exports = (connection) => {
21
21
  deviceToken: {
22
22
  type: String,
23
23
  trim: true,
24
- index: true,
25
- sparse: true,
26
24
  },
27
25
  vehicleType: {
28
26
  type: String,
@@ -43,7 +43,15 @@ module.exports = (connection) => {
43
43
  type: String,
44
44
  required: false,
45
45
  index: true,
46
- }
46
+ },
47
+ userBookingCreator: {
48
+ type: String,
49
+ required: false,
50
+ },
51
+ userBookingCreatorEmail: {
52
+ type: String,
53
+ required: false,
54
+ },
47
55
  }, { timestamps: false });
48
56
 
49
57
  return MiniBookingSchema;
@@ -22,34 +22,25 @@ module.exports = (connection) => {
22
22
  }, // ID of the event that triggered the notification
23
23
  eventType: {
24
24
  type: String,
25
- index: true,
26
25
  }, // Notification type
27
26
  title: { type: String },
28
27
  message: { type: String },
29
28
  messageHtml: { type: String }, // Html version of the message
30
29
  provider: {
31
30
  type: String,
32
- index: true,
33
- sparse: true,
34
31
  },
35
32
  via: {
36
33
  type: String,
37
34
  required: true,
38
- index: true,
39
- sparse: true,
40
35
  enum: _.keys(VIA),
41
36
  },
42
37
  sentStatus: {
43
38
  type: String,
44
39
  enum: ["success", "failed"],
45
- index: true,
46
- sparse: true,
47
40
  },
48
41
  isAdminNotification: {
49
42
  type: Boolean,
50
43
  default: false,
51
- index: true,
52
- sparse: true,
53
44
  },
54
45
  isRead: {
55
46
  type: Boolean,
@@ -72,8 +63,6 @@ module.exports = (connection) => {
72
63
  },
73
64
  deviceToken: {
74
65
  type: String,
75
- index: true,
76
- sparse: true,
77
66
  },
78
67
  }, { timestamp: true });
79
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "4.15.0",
3
+ "version": "4.17.0",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {