tango-api-schema 2.2.24 → 2.2.26

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/index.js CHANGED
@@ -73,6 +73,7 @@ import traxApproverModel from './schema/traxApprover.model.js';
73
73
  import nobBillingModel from "./schema/nobBilling.model.js";
74
74
  import storeLayoutModel from "./schema/storeLayout.model.js";
75
75
  import planogramModel from "./schema/planogram.model.js";
76
+ import emailersModel from "./schema/emailers.model.js";
76
77
 
77
78
  export default {
78
79
  leadModel,
@@ -150,4 +151,5 @@ export default {
150
151
  nobBillingModel,
151
152
  storeLayoutModel,
152
153
  planogramModel,
154
+ emailersModel,
153
155
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.2.24",
3
+ "version": "2.2.26",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -567,6 +567,20 @@ const client = new mongoose.Schema(
567
567
  type: Boolean,
568
568
  default:false
569
569
  },
570
+ emailersConfig: {
571
+ daily: {
572
+ type: Boolean,
573
+ default:false
574
+ },
575
+ weekly: {
576
+ type: Boolean,
577
+ default:false
578
+ },
579
+ monthly: {
580
+ type: Boolean,
581
+ default:false
582
+ },
583
+ },
570
584
  },
571
585
  {
572
586
  strict: true,
@@ -0,0 +1,34 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const emailersSchema = new mongoose.Schema({
4
+ clientId: {
5
+ type: String,
6
+ required:true
7
+ },
8
+ fromDate: {
9
+ type: String,
10
+ },
11
+ toDate: {
12
+ type: String,
13
+ },
14
+ userEmail: {
15
+ type: String,
16
+ },
17
+ storeIds: {
18
+ type: Array,
19
+ default: [],
20
+ },
21
+ status: {
22
+ type: String,
23
+ enum: ['open','inprogress','completed'],
24
+ default:'open'
25
+ },
26
+ },
27
+ {
28
+ strict: true,
29
+ versionKey: false,
30
+ timestamps: true,
31
+ },
32
+ );
33
+
34
+ export default mongoose.model( 'emailers', emailersSchema);