tango-api-schema 2.2.181 → 2.2.183

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": "tango-api-schema",
3
- "version": "2.2.181",
3
+ "version": "2.2.183",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -17,14 +17,17 @@ const fixtureShelfSchema = new mongoose.Schema(
17
17
  planoId: {
18
18
  type: mongoose.Types.ObjectId,
19
19
  required: true,
20
+ index:true
20
21
  },
21
22
  floorId: {
22
23
  type: mongoose.Types.ObjectId,
23
24
  required: true,
25
+ index:true
24
26
  },
25
27
  fixtureId: {
26
28
  type: mongoose.Types.ObjectId,
27
29
  required: true,
30
+ index:true
28
31
  },
29
32
  shelfNumber: {
30
33
  type: Number,
@@ -20,7 +20,7 @@ const planoTaskCompliance = new mongoose.Schema(
20
20
  },
21
21
  timeStamp: {
22
22
  type: Date,
23
- default: Date.now()
23
+ default: new Date()
24
24
  },
25
25
  video: {
26
26
  type: String
@@ -47,7 +47,7 @@ const planoTaskCompliance = new mongoose.Schema(
47
47
  },
48
48
  timeStamp: {
49
49
  type: Date,
50
- default: Date.now()
50
+ default: new Date()
51
51
  }
52
52
  }
53
53
  ],
@@ -70,7 +70,7 @@ const planoTaskCompliance = new mongoose.Schema(
70
70
  },
71
71
  timeStamp: {
72
72
  type: Date,
73
- default: Date.now()
73
+ default: new Date()
74
74
  },
75
75
  issueType: {
76
76
  type: String,
@@ -103,7 +103,7 @@ const planoTaskCompliance = new mongoose.Schema(
103
103
  },
104
104
  timeStamp: {
105
105
  type: Date,
106
- default: Date.now()
106
+ default: new Date()
107
107
  }
108
108
  }
109
109
  ],
@@ -128,7 +128,7 @@ const planoTaskCompliance = new mongoose.Schema(
128
128
  },
129
129
  timeStamp: {
130
130
  type: Date,
131
- default: Date.now()
131
+ default: new Date()
132
132
  }
133
133
  }
134
134
  ],
@@ -17,10 +17,12 @@ const storeFixtureSchema = new mongoose.Schema(
17
17
  planoId: {
18
18
  type: mongoose.Types.ObjectId,
19
19
  required: true,
20
+ index:true
20
21
  },
21
22
  floorId: {
22
23
  type: mongoose.Types.ObjectId,
23
24
  required: true,
25
+ index:true
24
26
  },
25
27
  fixtureName: {
26
28
  type: String,
@@ -184,9 +186,11 @@ const storeFixtureSchema = new mongoose.Schema(
184
186
  ],
185
187
  fixtureLibraryId: {
186
188
  type: mongoose.Types.ObjectId,
189
+ index:true
187
190
  },
188
191
  fixtureConfigId: {
189
192
  type: mongoose.Types.ObjectId,
193
+ index:true
190
194
  },
191
195
  fixtureNumber: {
192
196
  type: Number,
@@ -49,12 +49,16 @@ const storeLayoutSchema = new mongoose.Schema( {
49
49
  planoId: {
50
50
  type: mongoose.Types.ObjectId,
51
51
  required: true,
52
+ index:true
52
53
  },
53
54
  storeOrder: {
54
55
  type: String,
55
56
  enum: [ 'LTR', 'RTL' ],
56
57
  // LTR - Left to Right, RTL - Right to Left
57
58
  },
59
+ isEdited: {
60
+ type: Boolean,
61
+ },
58
62
  },
59
63
  {
60
64
  strict: true,
@@ -199,9 +199,11 @@ const processedTaskSchema = new mongoose.Schema(
199
199
  },
200
200
  planoType:{
201
201
  type: String,
202
+ index:true
202
203
  },
203
204
  planoId:{
204
205
  type:mongoose.SchemaTypes.ObjectId,
206
+ index:true
205
207
  },
206
208
  streamId:{
207
209
  type: String,
@@ -234,6 +236,7 @@ const processedTaskSchema = new mongoose.Schema(
234
236
  },
235
237
  floorId:{
236
238
  type:mongoose.SchemaTypes.ObjectId,
239
+ index:true
237
240
  },
238
241
  checkListFrom: {
239
242
  type: String