mypetbook-core 1.1.44 → 1.1.45
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const PushTemplateId = {
|
|
4
4
|
Appointment_Confirmation: 'appointment_confirmation',
|
|
5
5
|
Appointment_Reminder: 'appointment_reminder',
|
|
6
6
|
Vaccination_Reminder_Four_Days: 'vaccination_reminder_four_days',
|
|
@@ -23,12 +23,17 @@ const PushNotificationTemplateSchema = new mongoose.Schema(
|
|
|
23
23
|
},
|
|
24
24
|
templateId: {
|
|
25
25
|
type: String,
|
|
26
|
-
enum: Object.values(
|
|
26
|
+
enum: Object.values(PushTemplateId),
|
|
27
27
|
},
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
const PushNotificationTemplate = mongoose.model(
|
|
32
32
|
'PushNotificationTemplate',
|
|
33
33
|
PushNotificationTemplateSchema
|
|
34
|
-
);
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
module.exports = {
|
|
37
|
+
PushNotificationTemplate,
|
|
38
|
+
PushTemplateId
|
|
39
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const SmsTemplateId = {
|
|
4
4
|
Appointment_Reminder: 'appointment_reminder',
|
|
5
5
|
Vaccination_Due_Today: 'vaccination_due_today'
|
|
6
6
|
};
|
|
@@ -19,12 +19,16 @@ const SmsNotificationTemplateSchema = new mongoose.Schema(
|
|
|
19
19
|
},
|
|
20
20
|
templateId: {
|
|
21
21
|
type: String,
|
|
22
|
-
enum: Object.values(
|
|
22
|
+
enum: Object.values(SmsTemplateId),
|
|
23
23
|
},
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
const SmsNotificationTemplate = mongoose.model(
|
|
28
28
|
'SmsNotificationTemplate',
|
|
29
29
|
SmsNotificationTemplateSchema
|
|
30
|
-
);
|
|
30
|
+
);
|
|
31
|
+
module.exports = {
|
|
32
|
+
SmsNotificationTemplate,
|
|
33
|
+
SmsTemplateId
|
|
34
|
+
};
|
package/src/TreatmentEntity.js
CHANGED
package/src/index.js
CHANGED
|
@@ -36,6 +36,7 @@ const {
|
|
|
36
36
|
Treatment,
|
|
37
37
|
TreatmentItem,
|
|
38
38
|
TreatmentStatus,
|
|
39
|
+
PaymentMethod,
|
|
39
40
|
} = require("./TreatmentEntity");
|
|
40
41
|
const { TreatmentRecording } = require("./TreatmentRecordingEntity");
|
|
41
42
|
const { TreatmentReport } = require("./TreatmentReportEntity");
|
|
@@ -55,6 +56,10 @@ const { HomeRequest } = require("./HomeRequestEntity");
|
|
|
55
56
|
const { AppDocument } = require("./AppDocumentEntity");
|
|
56
57
|
const { DoctorBill } = require("./DoctorBillEntity");
|
|
57
58
|
const { DeviceRegistraion, DeviceType } = require("./DeviceRegistrationEntity");
|
|
59
|
+
const PushNotification = require("./PushNotificationEntity");
|
|
60
|
+
const {PushNotificationTemplate, PushTemplateId} = require("./PushNotificationTemplateEntity");
|
|
61
|
+
const SmsNotification = require("./SmsNotificationEntity");
|
|
62
|
+
const {SmsNotificationTemplate, SmsTemplateId} = require("./SmsNotificationTemplateEntity");
|
|
58
63
|
|
|
59
64
|
module.exports = {
|
|
60
65
|
Appointment: Appointment,
|
|
@@ -124,4 +129,11 @@ module.exports = {
|
|
|
124
129
|
AccountStatus: AccountStatus,
|
|
125
130
|
DeviceRegistraion: DeviceRegistraion,
|
|
126
131
|
DeviceType: DeviceType,
|
|
132
|
+
PaymentMethod: PaymentMethod,
|
|
133
|
+
PushNotification: PushNotification,
|
|
134
|
+
PushNotificationTemplate: PushNotificationTemplate,
|
|
135
|
+
PushTemplateId: PushTemplateId,
|
|
136
|
+
SmsNotification: SmsNotification,
|
|
137
|
+
SmsNotificationTemplate: SmsNotificationTemplate,
|
|
138
|
+
SmsTemplateId: SmsTemplateId,
|
|
127
139
|
};
|