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.
- package/bitbucket-pipelines.yml +9 -0
- package/modules/picker/schemas/bookings.js +3 -0
- package/modules/picker/schemas/conversation.js +0 -1
- package/modules/picker/schemas/customer.js +0 -2
- package/modules/picker/schemas/driver.js +0 -2
- package/modules/picker/schemas/miniBooking.js +9 -1
- package/modules/picker/schemas/notification.js +0 -11
- package/package.json +1 -1
package/bitbucket-pipelines.yml
CHANGED
|
@@ -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
|
|
@@ -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
|
|