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
  {
2
2
  "name": "mypetbook-core",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
4
4
  "description": "This contain all the entity model for the mypetbook",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -56,7 +56,8 @@ const PushNotificationSchema = new mongoose.Schema(
56
56
  }
57
57
  );
58
58
 
59
- module.exports = mongoose.model(
59
+ const PushNotification = mongoose.model(
60
60
  'PushNotification',
61
61
  PushNotificationSchema
62
- );
62
+ );
63
+ module.exports = {PushNotification};
@@ -1,6 +1,6 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
- const PushTemplateID = {
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(PushTemplateID),
26
+ enum: Object.values(PushTemplateId),
27
27
  },
28
28
  }
29
29
  );
30
30
 
31
- module.exports = mongoose.model(
31
+ const PushNotificationTemplate = mongoose.model(
32
32
  'PushNotificationTemplate',
33
33
  PushNotificationTemplateSchema
34
- );
34
+ );
35
+
36
+ module.exports = {
37
+ PushNotificationTemplate,
38
+ PushTemplateId
39
+ };
@@ -56,7 +56,8 @@ const SmsNotificationSchema = new mongoose.Schema(
56
56
  }
57
57
  );
58
58
 
59
- module.exports = mongoose.model(
59
+ const SmsNotification = mongoose.model(
60
60
  'SmsNotification',
61
61
  SmsNotificationSchema
62
- );
62
+ );
63
+ module.exports = {SmsNotification};
@@ -1,6 +1,6 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
- const SmsTemplateID = {
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(SmsTemplateID),
22
+ enum: Object.values(SmsTemplateId),
23
23
  },
24
24
  }
25
25
  );
26
26
 
27
- module.exports = mongoose.model(
27
+ const SmsNotificationTemplate = mongoose.model(
28
28
  'SmsNotificationTemplate',
29
29
  SmsNotificationTemplateSchema
30
- );
30
+ );
31
+ module.exports = {
32
+ SmsNotificationTemplate,
33
+ SmsTemplateId
34
+ };
@@ -138,4 +138,5 @@ module.exports = {
138
138
  Treatment,
139
139
  TreatmentItem,
140
140
  TreatmentStatus,
141
+ PaymentMethod
141
142
  };
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
  };