tango-api-schema 2.2.53 → 2.2.55

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
@@ -80,6 +80,8 @@ import planoComplianceModel from './schema/planoCompliance.model.js';
80
80
  import storeFixtureModel from './schema/storeFixture.model.js';
81
81
  import fixtureConfigModel from './schema/fixtureConfig.model.js';
82
82
  import fixtureShelfModel from './schema/fixtureShelf.model.js';
83
+ import planoTaskCompliance from './schema/planoTaskCompliance.model.js';
84
+
83
85
 
84
86
  export default {
85
87
  leadModel,
@@ -164,4 +166,5 @@ export default {
164
166
  storeFixtureModel,
165
167
  fixtureConfigModel,
166
168
  fixtureShelfModel,
169
+ planoTaskCompliance
167
170
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.2.53",
3
+ "version": "2.2.55",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -11,18 +11,30 @@ const emailersSchema = new mongoose.Schema({
11
11
  toDate: {
12
12
  type: String,
13
13
  },
14
- userEmail: {
14
+ templateType: {
15
15
  type: String,
16
16
  },
17
- storeIds: {
18
- type: Array,
19
- default: [],
20
- },
21
17
  status: {
22
18
  type: String,
23
19
  enum: ['open','inprogress','completed'],
24
20
  default:'open'
25
21
  },
22
+ createdAt: {
23
+ type: Date
24
+ },
25
+ dateISO: {
26
+ type: Date
27
+ },
28
+ userEmail: {
29
+ type: String,
30
+ },
31
+ userName: {
32
+ type: String,
33
+ },
34
+ storeIds: {
35
+ type: Array,
36
+ default: [],
37
+ },
26
38
  },
27
39
  {
28
40
  strict: true,
@@ -0,0 +1,38 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const planoTaskCompliance = new mongoose.Schema(
4
+ {
5
+ status: {
6
+ type: String,
7
+ enum: ['complete', 'incomplete', 'missing'],
8
+ required: true
9
+ },
10
+ answers: {
11
+ type: Array,
12
+ default: []
13
+ },
14
+ planoId: {
15
+ type: mongoose.Types.ObjectId,
16
+ required: true
17
+ },
18
+ floorId: {
19
+ type: mongoose.Types.ObjectId,
20
+ required: true
21
+ },
22
+ fixtureId: {
23
+ type: mongoose.Types.ObjectId,
24
+ required: true
25
+ },
26
+ type: {
27
+ type: String,
28
+ enum: ['fixture', 'vm', 'product'],
29
+ required: true
30
+ },
31
+ },
32
+ {
33
+ timestamps: true,
34
+ versionKey: false,
35
+ }
36
+ );
37
+
38
+ export default mongoose.model('planotaskcompliance', planoTaskCompliance);