mypetbook-core 1.1.41 → 1.1.43

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
  {
2
2
  "name": "mypetbook-core",
3
- "version": "1.1.41",
3
+ "version": "1.1.43",
4
4
  "description": "This contain all the entity model for the mypetbook",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
- const SmsTemplateID = {
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',
@@ -9,7 +9,7 @@ const SmsTemplateID = {
9
9
  Other_Notification:'other_notification',
10
10
  };
11
11
 
12
- const SmsNotificationTemplateSchema = new mongoose.Schema(
12
+ const PushNotificationTemplateSchema = new mongoose.Schema(
13
13
  {
14
14
  title: {
15
15
  type: String,
@@ -23,12 +23,12 @@ const SmsNotificationTemplateSchema = new mongoose.Schema(
23
23
  },
24
24
  templateId: {
25
25
  type: String,
26
- enum: Object.values(SmsTemplateID),
26
+ enum: Object.values(PushTemplateID),
27
27
  },
28
28
  }
29
29
  );
30
30
 
31
31
  module.exports = mongoose.model(
32
- 'SmsNotificationTemplate',
33
- SmsNotificationTemplateSchema
32
+ 'PushNotificationTemplate',
33
+ PushNotificationTemplateSchema
34
34
  );
@@ -1,11 +1,11 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
- const PushTemplateID = {
3
+ const SmsTemplateID = {
4
4
  Appointment_Reminder: 'appointment_reminder',
5
5
  Vaccination_Due_Today: 'vaccination_due_today'
6
6
  };
7
7
 
8
- const PushNotificationTemplateSchema = new mongoose.Schema(
8
+ const SmsNotificationTemplateSchema = new mongoose.Schema(
9
9
  {
10
10
  title: {
11
11
  type: String,
@@ -19,12 +19,12 @@ const PushNotificationTemplateSchema = new mongoose.Schema(
19
19
  },
20
20
  templateId: {
21
21
  type: String,
22
- enum: Object.values(PushTemplateID),
22
+ enum: Object.values(SmsTemplateID),
23
23
  },
24
24
  }
25
25
  );
26
26
 
27
27
  module.exports = mongoose.model(
28
- 'PushNotificationTemplate',
29
- PushNotificationTemplateSchema
28
+ 'SmsNotificationTemplate',
29
+ SmsNotificationTemplateSchema
30
30
  );