tango-api-schema 2.2.23 → 2.2.25
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 +2 -0
- package/package.json +1 -1
- package/schema/client.model.js +19 -1
- package/schema/emailers.model.js +34 -0
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
package/schema/client.model.js
CHANGED
|
@@ -562,7 +562,25 @@ const client = new mongoose.Schema(
|
|
|
562
562
|
message: 'List must have between 1 and 15 task.',
|
|
563
563
|
},
|
|
564
564
|
}
|
|
565
|
-
}
|
|
565
|
+
},
|
|
566
|
+
traxRAWImageUpload: {
|
|
567
|
+
type: Boolean,
|
|
568
|
+
default:false
|
|
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
|
+
},
|
|
566
584
|
},
|
|
567
585
|
{
|
|
568
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);
|