tango-api-schema 2.2.158 → 2.2.159

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
@@ -76,7 +76,6 @@ import planogramModel from "./schema/planogram.model.js";
76
76
  import emailersModel from "./schema/emailers.model.js";
77
77
  import planoMappingModel from './schema/planoMapping.model.js';
78
78
  import planoProductModel from './schema/planoProductDetail.model.js';
79
- import planoVmModel from './schema/planoVmDetail.model.js';
80
79
  import planoComplianceModel from './schema/planoCompliance.model.js';
81
80
  import storeFixtureModel from './schema/storeFixture.model.js';
82
81
  import fixtureConfigModel from './schema/fixtureConfig.model.js';
@@ -89,9 +88,6 @@ import auditConfigModel from "./schema/auditConfig.model.js";
89
88
  import revopConfigModel from "./schema/revopConfig.model.js";
90
89
  import planoCrestLogModel from './schema/planoCrestLog.model.js';
91
90
  import countryCurrencyModel from './schema/countryCurrency.model.js';
92
- import fixtureLibraryModel from './schema/fixtureLibrary.model.js';
93
- import vmTypeModel from "./schema/vmType.model.js";
94
- import planoProductCategoryModel from './schema/planoProductCategoryDetails.model.js'
95
91
  import streamingModel from './schema/streaming.model.js';
96
92
  import loginAttempt from "./schema/loginAttempt.model.js";
97
93
  import notification from "./schema/notification.model.js";
@@ -188,10 +184,6 @@ export default {
188
184
  revopConfigModel,
189
185
  planoCrestLogModel,
190
186
  countryCurrencyModel,
191
- fixtureLibraryModel,
192
- planoVmModel,
193
- vmTypeModel,
194
- planoProductCategoryModel,
195
187
  streamingModel,
196
188
  loginAttempt,
197
189
  notification
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.2.158",
3
+ "version": "2.2.159",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -20,6 +20,7 @@
20
20
  "homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
21
21
  "dependencies": {
22
22
  "express": "^4.21.1",
23
- "mongoose": "^7.5.3"
23
+ "mongoose": "^7.5.3",
24
+ "tango-api-schema": "^2.2.130"
24
25
  }
25
26
  }
@@ -224,7 +224,39 @@ const externalParameter = new mongoose.Schema(
224
224
  dynamicFrameRate:{
225
225
  type:Boolean,
226
226
  default:true
227
- }
227
+ },
228
+ CheckForEmployee: {
229
+ type: Boolean,
230
+ default: false
231
+ },
232
+ CheckUniqueCustomers: {
233
+ type: Boolean,
234
+ default: false
235
+ },
236
+ AuditCustomers: {
237
+ type: Boolean,
238
+ default: false
239
+ },
240
+ EnableTesting: {
241
+ type: Boolean,
242
+ default: true
243
+ },
244
+ TimestampLimit: {
245
+ type: String,
246
+ default: "2"
247
+ },
248
+ DecisionThreshold: {
249
+ type: Boolean,
250
+ default: false
251
+ },
252
+ StoreProcessingStatus: {
253
+ type: String,
254
+ default: "EOD"
255
+ },
256
+ LiveTimeGap: {
257
+ type: String,
258
+ default: "30"
259
+ },
228
260
  }
229
261
 
230
262
 
@@ -13,186 +13,53 @@ const fixtureConfigSchema = new mongoose.Schema(
13
13
  type: String,
14
14
  enum: [ 'wall', 'floor' ],
15
15
  },
16
- fixtureName: {
17
- type: String,
18
- required: true,
19
- },
20
- description: {
21
- type: String,
22
- },
23
- fixtureLength: {
24
- value: {
25
- type: Number,
26
- default: 0,
27
- },
28
- unit: {
29
- type: String,
30
- default: '',
31
- },
32
- },
33
- fixtureWidth: {
16
+ fixtureHeight: {
34
17
  value: {
35
18
  type: Number,
36
- default: 0,
37
19
  },
38
20
  unit: {
39
21
  type: String,
40
- default: '',
41
22
  },
42
23
  },
43
- fixtureStaticLength: {
24
+ fixtureLength: {
44
25
  value: {
45
26
  type: Number,
46
- default: 0,
47
27
  },
48
28
  unit: {
49
29
  type: String,
50
- default: '',
51
30
  },
52
31
  },
53
- fixtureStaticWidth: {
32
+ fixtureWidth: {
54
33
  value: {
55
34
  type: Number,
56
- default: 0,
57
35
  },
58
36
  unit: {
59
37
  type: String,
60
- default: '',
61
- },
62
- },
63
- shelfConfig: [ {
64
- shelfNumber: {
65
- type: Number,
66
- required: true,
67
- },
68
- shelfType: {
69
- type: String,
70
- enum: ['shelf', 'tray'],
71
- },
72
- productPerShelf: {
73
- type: Number,
74
- default: 0,
75
- },
76
- trayRows: {
77
- type: Number,
78
- default: 0,
79
- },
80
- label: {
81
- type: String,
82
- default: '',
83
- },
84
- productBrandName: {
85
- type: Array,
86
- },
87
- productSubBrandName: {
88
- type: Array,
89
- },
90
- productCategory:{
91
- type:Array
92
- },
93
- productSubCategory:{
94
- type:Array
95
- },
96
- zone: {
97
- type: String,
98
- },
99
- } ],
100
- vmConfig: [
101
- {
102
- vmId: {
103
- type: mongoose.Types.ObjectId,
104
- },
105
- startYPosition: {
106
- type: Number,
107
- },
108
- endYPosition: {
109
- type: Number,
110
- },
111
- xZone: {
112
- type: String,
113
- },
114
- yZone: {
115
- type: String,
116
- },
117
- position: {
118
- type: String,
119
- },
120
- },
121
- ],
122
- header: {
123
- height: {
124
- value: {
125
- type: Number,
126
- default: 0,
127
- },
128
- unit: {
129
- type: String,
130
- default: '',
131
- },
132
- },
133
- label: {
134
- type: String,
135
- },
136
- isEnabled: {
137
- type: Boolean,
138
- default: true,
139
- },
140
- },
141
- footer: {
142
- height: {
143
- value: {
144
- type: Number,
145
- default: 0,
146
- },
147
- unit: {
148
- type: String,
149
- default: '',
150
- },
151
- },
152
- label: {
153
- type: String,
154
38
  },
155
- isEnabled: {
156
- type: Boolean,
157
- default: true,
158
- },
159
- },
160
- isBodyEnabled: {
161
- type: Boolean,
162
- default: true,
163
39
  },
164
- productResolutionLevel: {
165
- type: String,
166
- enum: [ 'L1', 'L2', 'L3', 'L4' ],
40
+ shelfCount: {
41
+ type: Number,
167
42
  },
168
- fixtureLibraryId:{
169
- type: mongoose.Types.ObjectId,
170
- required: true,
43
+ productPerShelf: {
44
+ type: Number,
171
45
  },
172
46
  fixtureCapacity: {
173
47
  type: Number,
174
- default: 0,
175
48
  },
176
- productBrandName: {
49
+ sections:{
177
50
  type: Array,
178
51
  },
179
- productCategory:{
180
- type:Array
181
- },
182
- productSubCategory:{
183
- type:Array
184
- },
185
- status: {
52
+ fixtureCode:{
186
53
  type: String,
187
- enum: [ 'draft', 'complete' ],
188
- default: 'draft',
189
54
  },
190
- crestMapKey: {
191
- type: String,
55
+ fixtureConfigType: {
56
+ type: String
192
57
  },
193
- templateIndex: {
194
- type: Number,
195
- default: 1,
58
+ shelfConfig:{
59
+ type: Array,
60
+ },
61
+ vmConfig:{
62
+ type: Array,
196
63
  },
197
64
  },
198
65
  {
@@ -1,72 +1,63 @@
1
1
  import mongoose from 'mongoose';
2
2
 
3
3
  const fixtureShelfSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ storeName: {
10
+ type: String,
11
+ required: true,
12
+ },
13
+ storeId: {
14
+ type: String,
15
+ required: true,
16
+ },
17
+ planoId: {
18
+ type: mongoose.Types.ObjectId,
19
+ required: true,
20
+ },
21
+ floorId: {
22
+ type: mongoose.Types.ObjectId,
23
+ required: true,
24
+ },
25
+ fixtureId: {
26
+ type: mongoose.Types.ObjectId,
27
+ required: true,
28
+ },
29
+ shelfNumber: {
30
+ type: Number,
31
+ required: true,
32
+ },
33
+ shelfOrder: {
34
+ type: String,
35
+ enum: [ 'LTR', 'RTL' ],
36
+ // LTR - Left to Right, RTL - Right to Left
37
+ required: true,
38
+ },
39
+ shelfCapacity: {
40
+ type: Number,
41
+ required: true,
42
+ },
43
+ sectionName:{
44
+ type: String
45
+ },
46
+ sectionZone:{
47
+ type: String
48
+ },
49
+ rfId:{
50
+ type:String
51
+ },
52
+ shelfSplitup: {
53
+ type: Number,
54
+ }
55
+ },
56
+ {
57
+ strict: true,
58
+ versionKey: false,
59
+ timestamps: true,
8
60
  },
9
- storeName: {
10
- type: String,
11
- required: true,
12
- },
13
- storeId: {
14
- type: String,
15
- required: true,
16
- },
17
- planoId: {
18
- type: mongoose.Types.ObjectId,
19
- required: true,
20
- },
21
- floorId: {
22
- type: mongoose.Types.ObjectId,
23
- required: true,
24
- },
25
- fixtureId: {
26
- type: mongoose.Types.ObjectId,
27
- required: true,
28
- },
29
- shelfNumber: {
30
- type: Number,
31
- required: true,
32
- },
33
- productBrandName: {
34
- type: Array,
35
- },
36
- productCategory: {
37
- type: Array
38
- },
39
- productSubCategory: {
40
- type: Array
41
- },
42
- zone: {
43
- type: String
44
- },
45
- rfId: {
46
- type: String
47
- },
48
- shelfType: {
49
- type: String,
50
- enum: ['shelf', 'tray'],
51
- },
52
- productPerShelf: {
53
- type: Number,
54
- default: 0,
55
- },
56
- trayRows: {
57
- type: Number,
58
- default: 0,
59
- },
60
- label: {
61
- type: String,
62
- default: '',
63
- },
64
- },
65
- {
66
- strict: true,
67
- versionKey: false,
68
- timestamps: true,
69
- },
70
61
  );
71
62
 
72
- export default mongoose.model('fixtureShelf', fixtureShelfSchema);
63
+ export default mongoose.model( 'fixtureShelf', fixtureShelfSchema );
@@ -10,6 +10,10 @@ const planoProductDetailSchema = new mongoose.Schema(
10
10
  type: String,
11
11
  required: true,
12
12
  },
13
+ type: {
14
+ type: String,
15
+ enum: [ 'product', 'vm' ],
16
+ },
13
17
  productName: {
14
18
  type: String,
15
19
  },
@@ -51,7 +55,20 @@ const planoProductDetailSchema = new mongoose.Schema(
51
55
  },
52
56
  productImageUrl: {
53
57
  type: String,
54
- }
58
+ },
59
+ startYPosition: {
60
+ type: String,
61
+ },
62
+ endYPosition: {
63
+ type: String,
64
+ },
65
+ xZone:{
66
+ type: String
67
+ },
68
+ fixtureConfigId: {
69
+ type: mongoose.Types.ObjectId,
70
+ },
71
+
55
72
  },
56
73
  {
57
74
  strict: false,
@@ -9,7 +9,7 @@ const planoStaticData = new mongoose.Schema({
9
9
  }
10
10
  },
11
11
  {
12
- strict: false,
12
+ strict: true,
13
13
  versionKey: false,
14
14
  timestamps: true,
15
15
  },
@@ -7,322 +7,10 @@ const planoTaskCompliance = new mongoose.Schema(
7
7
  enum: ['complete', 'incomplete', 'missing'],
8
8
  required: true
9
9
  },
10
- answers: [
11
- {
12
- userId: {
13
- type: mongoose.Types.ObjectId,
14
- },
15
- userName: {
16
- type: String
17
- },
18
- role: {
19
- type: String
20
- },
21
- timeStamp: {
22
- type: Date,
23
- default: Date.now()
24
- },
25
- video: {
26
- type: String
27
- },
28
- image: {
29
- type: String
30
- },
31
- comments: [{
32
- userId: {
33
- type: mongoose.Types.ObjectId,
34
- },
35
- userName: {
36
- type: String
37
- },
38
- role: {
39
- type: String
40
- },
41
- comment: {
42
- type: String
43
- },
44
- responsetype: {
45
- type: String,
46
- default: "comment",
47
- },
48
- timeStamp: {
49
- type: Date,
50
- default: Date.now()
51
- }
52
- }
53
- ],
54
- issues: [
55
- {
56
- userId: {
57
- type: mongoose.Types.ObjectId,
58
- },
59
- userName: {
60
- type: String
61
- },
62
- role: {
63
- type: String
64
- },
65
- qno: {
66
- type: Number,
67
- },
68
- question: {
69
- type: String
70
- },
71
- timeStamp: {
72
- type: Date,
73
- default: Date.now()
74
- },
75
- issueType: {
76
- type: String,
77
- enum: ["extraFixture", 'fixtureMissing', 'fixtureMismatch', 'categoryWrong', 'sizeWrong', 'shelfWrong', 'brandWrong', 'productcategoryWrong', "extraVm", 'VmMissing', 'VmMismatch', 'VmSizeWrong','others']
78
- },
79
- image: {
80
- type: String
81
- },
82
- status: {
83
- type: String,
84
- default: 'pending',
85
- enum: ['completed', 'pending']
86
- },
87
- comments: [{
88
- userId: {
89
- type: mongoose.Types.ObjectId,
90
- },
91
- userName: {
92
- type: String
93
- },
94
- role: {
95
- type: String
96
- },
97
- comment: {
98
- type: String
99
- },
100
- responsetype: {
101
- type: String,
102
- default: "comment",
103
- },
104
- timeStamp: {
105
- type: Date,
106
- default: Date.now()
107
- }
108
- }
109
- ],
110
- Details: [
111
- {
112
- comments: [{
113
- userId: {
114
- type: mongoose.Types.ObjectId,
115
- },
116
- userName: {
117
- type: String
118
- },
119
- role: {
120
- type: String
121
- },
122
- comment: {
123
- type: String
124
- },
125
- responsetype: {
126
- type: String,
127
- default: "comment",
128
- },
129
- timeStamp: {
130
- type: Date,
131
- default: Date.now()
132
- }
133
- }
134
- ],
135
- missingData:[
136
- {
137
- zone:{
138
- type:String
139
- },
140
- brand:[{
141
- type:String
142
- }],
143
- productCategory:[{
144
- type:String
145
- }]
146
- }
147
- ],
148
-
149
- image: {
150
- type: String
151
- },
152
- video: {
153
- type: String
154
- },
155
- floorId: {
156
- type: mongoose.Types.ObjectId,
157
- },
158
- fixtureLibraryId: {
159
- type: mongoose.Types.ObjectId
160
- },
161
- fixtureConfigId: {
162
- type: mongoose.Types.ObjectId
163
- },
164
- fixtureId: {
165
- type: mongoose.Types.ObjectId
166
- },
167
- status: {
168
- type: String,
169
- default: 'pending',
170
- enum: ['agree', 'disagree', 'pending']
171
- },
172
- image: {
173
- type: String
174
- },
175
- fixtureName: {
176
- type: String
177
- },
178
- fixtureCategory: {
179
- type: String
180
- },
181
- fixtureTemplateName: {
182
- type: String
183
- },
184
- associatedElementFixtureNumber: {
185
- type: Number
186
- },
187
- associatedElementNumber: {
188
- type: Number
189
- },
190
- associatedElementType: {
191
- type: String
192
- },
193
- newassociatedElementFixtureNumber: {
194
- type: Number
195
- },
196
- newassociatedElementNumber: {
197
- type: Number
198
- },
199
- newassociatedElementType: {
200
- type: String
201
- },
202
- fixtureWidth:
203
- {
204
- value:{
205
- type:Number
206
- },
207
- unit:{
208
- type: String
209
- }
210
- }
211
- ,
212
- header: {
213
- height: {
214
- value: {
215
- type: Number,
216
- default: 0,
217
- },
218
- unit: {
219
- type: String,
220
- default: '',
221
- },
222
- },
223
- label: {
224
- type: String,
225
- },
226
- isEnabled: {
227
- type: Boolean,
228
- default: true,
229
- },
230
- },
231
- footer: {
232
- height: {
233
- value: {
234
- type: Number,
235
- default: 0,
236
- },
237
- unit: {
238
- type: String,
239
- default: '',
240
- },
241
- },
242
- label: {
243
- type: String,
244
- },
245
- isEnabled: {
246
- type: Boolean,
247
- default: true,
248
- },
249
- },
250
- shelfConfig: [
251
- {
252
- _id: {
253
- type: mongoose.Types.ObjectId,
254
- required: true
255
- },
256
- shelfNumber: {
257
- type: Number
258
- },
259
- shelfType: {
260
- type: String
261
- },
262
- productPerShelf: {
263
- type: Number
264
- },
265
- trayRows: {
266
- type: Number
267
- },
268
- zone: {
269
- type: String
270
- },
271
- productBrandName: {
272
- type: [String],
273
- default: []
274
- },
275
- productCategory: {
276
- type: [String],
277
- default: []
278
- }
279
- }
280
- ],
281
- vmConfig: [
282
- {
283
- vmName: {
284
- type: String
285
- },
286
- vmId: {
287
- type: mongoose.Schema.Types.ObjectId,
288
-
289
- },
290
- startYPosition: {
291
- type: Number
292
- },
293
- endYPosition: {
294
- type: Number
295
- },
296
- xZone: {
297
- type: String
298
- },
299
- yZone: {
300
- type: String
301
- },
302
- position: {
303
- type: String
304
- },
305
- newstartYPosition: {
306
- type: Number
307
- },
308
- newendYPosition: {
309
- type: Number
310
- },
311
- newxZone: {
312
- type: String
313
- },
314
- newyZone: {
315
- type: String
316
- },
317
- newposition: {
318
- type: String
319
- }
320
- }]
321
- }
322
- ]
323
- }
324
- ]
325
- }],
10
+ answers: {
11
+ type: Array,
12
+ default: []
13
+ },
326
14
  planoId: {
327
15
  type: mongoose.Types.ObjectId,
328
16
  required: true
@@ -339,25 +27,18 @@ const planoTaskCompliance = new mongoose.Schema(
339
27
  enum: ['fixture', 'vm', 'product', 'layout'],
340
28
  required: true
341
29
  },
342
- date_string: {
343
- type: String,
344
- required: true
345
- },
346
- storeName: {
347
- type: String
348
- },
349
- storeId: {
350
- type: String
30
+ date_string:{
31
+ type:String,
32
+ required:true
351
33
  },
352
- taskId: {
353
- type: mongoose.Types.ObjectId
34
+ storeName:{
35
+ type:String
354
36
  },
355
- taskType:{
356
- type: String,
357
- enum:['redo','initial']
37
+ taskId:{
38
+ type:mongoose.Types.ObjectId
358
39
  },
359
- date_iso: {
360
- type: Date
40
+ date_iso:{
41
+ type:Date
361
42
  }
362
43
  },
363
44
  {
@@ -366,4 +47,4 @@ const planoTaskCompliance = new mongoose.Schema(
366
47
  }
367
48
  );
368
49
 
369
- export default mongoose.model('planotaskcompliance', planoTaskCompliance);
50
+ export default mongoose.model('planotaskcompliance', planoTaskCompliance);
@@ -54,10 +54,6 @@ const planogramSchema = new mongoose.Schema( {
54
54
  },
55
55
  validateShelfSections: {
56
56
  type: Boolean
57
- },
58
- planoProgress:{
59
- type:Number,
60
- default:25
61
57
  }
62
58
  },
63
59
  {
@@ -26,69 +26,72 @@ const storeFixtureSchema = new mongoose.Schema(
26
26
  type: String,
27
27
  required: true,
28
28
  },
29
- description: {
30
- type: String,
31
- },
32
29
  fixtureCategory: {
33
30
  type: String,
34
31
  },
35
- productBrandName: {
36
- type: Array,
37
- },
38
- productCategory:{
39
- type:Array
32
+ fixtureBrandCategory: {
33
+ type: String,
40
34
  },
41
- productSubCategory:{
42
- type:Array
35
+ fixtureBrandSubCategory: {
36
+ type: String,
43
37
  },
44
38
  fixtureType: {
45
39
  type: String,
46
40
  enum: [ 'wall', 'floor', 'other' ],
47
41
  required: true,
48
42
  },
43
+ fixtureHeight: {
44
+ value: {
45
+ type: Number,
46
+ },
47
+ unit: {
48
+ type: String,
49
+ },
50
+ },
49
51
  fixtureLength: {
50
52
  value: {
51
53
  type: Number,
52
- default: 0,
53
54
  },
54
55
  unit: {
55
56
  type: String,
56
- default: '',
57
57
  },
58
58
  },
59
59
  fixtureWidth: {
60
60
  value: {
61
61
  type: Number,
62
- default: 0,
63
62
  },
64
63
  unit: {
65
64
  type: String,
66
- default: '',
67
65
  },
68
66
  },
69
- fixtureStaticLength: {
67
+ detailedFixtureLength: {
70
68
  value: {
71
69
  type: Number,
72
- default: 0,
73
70
  },
74
71
  unit: {
75
72
  type: String,
76
- default: '',
77
73
  },
78
74
  },
79
- fixtureStaticWidth: {
75
+ detailedFixtureWidth: {
80
76
  value: {
81
77
  type: Number,
82
- default: 0,
83
78
  },
84
79
  unit: {
85
80
  type: String,
86
- default: '',
87
81
  },
88
82
  },
83
+ productPerShelf: {
84
+ type: Number,
85
+ },
86
+ mbq: {
87
+ type: Number,
88
+ },
89
89
  fixtureCapacity: {
90
90
  type: Number,
91
91
  },
92
+ shelfcount: {
93
+ type: Number,
94
+ },
92
95
  associatedElementType: {
93
96
  type: String,
94
97
  enum: [ 'wall', 'facade' ],
@@ -96,6 +99,9 @@ const storeFixtureSchema = new mongoose.Schema(
96
99
  associatedElementNumber: {
97
100
  type: Number,
98
101
  },
102
+ fixtureConfigId: {
103
+ type: mongoose.Types.ObjectId,
104
+ },
99
105
  relativePosition: {
100
106
  x: {
101
107
  type: Number,
@@ -107,95 +113,48 @@ const storeFixtureSchema = new mongoose.Schema(
107
113
  type: String,
108
114
  },
109
115
  },
110
- productResolutionLevel: {
111
- type: String,
112
- enum: [ 'L1', 'L2', 'L3', 'L4' ],
113
- // L1- fixture level, L2- shelf level, L3- section level, L4- product level
114
- },
115
- imageUrl: {
116
- type: String,
117
- },
118
- header: {
119
- height: {
120
- value: {
121
- type: Number,
122
- default: 0,
123
- },
124
- unit: {
125
- type: String,
126
- default: '',
127
- },
128
- },
129
- label: {
130
- type: String,
116
+ relativeDetailedPosition: {
117
+ x: {
118
+ type: Number,
131
119
  },
132
- isEnabled: {
133
- type: Boolean,
134
- default: true,
120
+ y: {
121
+ type: Number,
135
122
  },
136
- },
137
- footer: {
138
- height: {
139
- value: {
140
- type: Number,
141
- default: 0,
142
- },
143
- unit: {
144
- type: String,
145
- default: '',
146
- },
147
- },
148
- label: {
123
+ unit: {
149
124
  type: String,
150
125
  },
151
- isEnabled: {
152
- type: Boolean,
153
- default: true,
154
- },
155
126
  },
156
- isBodyEnabled: {
157
- type: Boolean,
158
- default: true,
127
+ fixtureOrder: {
128
+ type: String,
129
+ enum: [ 'TTB', 'BTT' ],
130
+ // TTB - Top to Bottom, BTT - Bottom to Top
159
131
  },
160
- associatedElementFixtureNumber: {
132
+ fixtureNumber: {
161
133
  type: Number,
162
134
  },
163
- vmConfig: [
164
- {
165
- vmId: {
166
- type: mongoose.Types.ObjectId,
167
- },
168
- startYPosition: {
169
- type: Number,
170
- },
171
- endYPosition: {
172
- type: Number,
173
- },
174
- xZone: {
175
- type: String,
176
- },
177
- yZone: {
178
- type: String,
179
- },
180
- position: {
181
- type: String,
182
- },
183
- },
184
- ],
185
- fixtureLibraryId: {
186
- type: mongoose.Types.ObjectId,
135
+ productResolutionLevel: {
136
+ type: String,
137
+ enum: [ 'L1', 'L2', 'L3', 'L4', 'L5' ],
138
+ // L1- floor level, L2- fixture level, L3- fixture-shelf level, L4- fixture-shelf-product level
187
139
  },
188
- fixtureConfigId: {
189
- type: mongoose.Types.ObjectId,
140
+ imageUrl: {
141
+ type: String,
190
142
  },
191
- fixtureNumber: {
192
- type: Number,
143
+ vmImageUrl: {
144
+ type: String,
145
+ },
146
+ fixtureCode: {
147
+ type: String,
193
148
  },
194
- templateIndex: {
149
+ header: {
150
+ type: String,
151
+ },
152
+ footer: {
153
+ type: String,
154
+ },
155
+ associatedElementFixtureNumber: {
195
156
  type: Number,
196
- default: 1,
197
157
  },
198
-
199
158
  },
200
159
  {
201
160
  strict: true,
@@ -204,7 +163,4 @@ const storeFixtureSchema = new mongoose.Schema(
204
163
  },
205
164
  );
206
165
 
207
- export default mongoose.model( 'storeFixture', storeFixtureSchema );
208
-
209
-
210
-
166
+ export default mongoose.model( 'storeFixture', storeFixtureSchema );
@@ -237,9 +237,6 @@ const processedTaskSchema = new mongoose.Schema(
237
237
  },
238
238
  checkListFrom: {
239
239
  type: String
240
- },
241
- comments:{
242
- type:Array
243
240
  }
244
241
  },
245
242
  {
@@ -1,165 +0,0 @@
1
- import mongoose from 'mongoose';
2
-
3
- const fixtureLibrarySchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- },
9
- fixtureCategory: {
10
- type: String,
11
- },
12
- fixtureType: {
13
- type: String,
14
- enum: ['wall', 'floor'],
15
- },
16
- fixtureLength: {
17
- value: {
18
- type: Number,
19
- default: 0,
20
- },
21
- unit: {
22
- type: String,
23
- default: 'ft',
24
- },
25
- },
26
- fixtureWidth: {
27
- value: {
28
- type: Number,
29
- default: 0,
30
- },
31
- unit: {
32
- type: String,
33
- default: 'ft',
34
- },
35
- },
36
- fixtureStaticLength: {
37
- value: {
38
- type: Number,
39
- default: 1524,
40
- },
41
- unit: {
42
- type: String,
43
- default: 'mm',
44
- },
45
- },
46
- fixtureStaticWidth: {
47
- value: {
48
- type: Number,
49
- default: 1220,
50
- },
51
- unit: {
52
- type: String,
53
- default: 'mm',
54
- },
55
- },
56
- header: {
57
- isEnabled: {
58
- type: Boolean,
59
- default: true,
60
- },
61
- height: {
62
- value: {
63
- type: Number,
64
- default: 0,
65
- },
66
- unit: {
67
- type: String,
68
- default: 'mm',
69
- },
70
- }
71
- },
72
- footer: {
73
- isEnabled: {
74
- type: Boolean,
75
- default: true,
76
- },
77
- height: {
78
- value: {
79
- type: Number,
80
- default: 0,
81
- },
82
- unit: {
83
- type: String,
84
- default: 'mm',
85
- },
86
- }
87
- },
88
- isBodyEnabled: {
89
- type: Boolean,
90
- default: true,
91
- },
92
- fixtureCapacity: {
93
- type: Number,
94
- default: 0,
95
- },
96
- status: {
97
- type: String,
98
- enum: ['draft', 'complete'],
99
- default: 'draft',
100
- },
101
- shelfConfig: [
102
- {
103
- shelfNumber: {
104
- type: Number,
105
- required: true,
106
- },
107
- shelfType: {
108
- type: String,
109
- enum: ['shelf', 'tray'],
110
- },
111
- zone: {
112
- type: String,
113
- },
114
- productPerShelf: {
115
- type: Number,
116
- default: 0,
117
- },
118
- trayRows: {
119
- type: Number,
120
- default: 0,
121
- },
122
- label: {
123
- type: String,
124
- default: '',
125
- },
126
- },
127
- ],
128
- vmConfig: [
129
- {
130
- vmNumber: {
131
- type: Number,
132
- },
133
- vmHeightmm: {
134
- type: Number,
135
- },
136
- vmWidthmm: {
137
- type: Number,
138
- },
139
- startShelf: {
140
- type: Number,
141
- },
142
- endShelf: {
143
- type: Number,
144
- },
145
- zone: {
146
- type: String,
147
- },
148
- position: {
149
- type: String,
150
- },
151
- },
152
- ],
153
- fixtureLibCode:{
154
- type:String
155
- },
156
- },
157
- {
158
- strict: true,
159
- versionKey: false,
160
- timestamps: true,
161
- },
162
- );
163
-
164
- export default mongoose.model( 'fixtureLibrary', fixtureLibrarySchema );
165
-
@@ -1,26 +0,0 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planoProductCategorySchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- },
9
- brandName:{
10
- type:String
11
- },
12
- category:{
13
- type:Array
14
- },
15
- subCategory:{
16
- type:Array
17
- }
18
- },
19
- {
20
- strict: true,
21
- versionKey: false,
22
- timestamps: true,
23
- },
24
- );
25
-
26
- export default mongoose.model( 'planoProductCategory', planoProductCategorySchema );
@@ -1,63 +0,0 @@
1
- import mongoose from 'mongoose';
2
-
3
- const planoVmDetailSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- },
9
- vmName: {
10
- type: String,
11
- },
12
- vmType: {
13
- type: String,
14
- },
15
- vmHeight: {
16
- value: {
17
- type: Number,
18
- },
19
- unit: {
20
- type: String,
21
- },
22
- },
23
- vmWidth: {
24
- value: {
25
- type: Number,
26
- },
27
- unit: {
28
- type: String,
29
- },
30
- },
31
- vmImageUrl: {
32
- type: String,
33
- },
34
- isDoubleSided: {
35
- type: Boolean,
36
- },
37
- status: {
38
- type: String,
39
- enum: [ 'draft', 'complete' ],
40
- default: 'draft',
41
- },
42
- vmBrand:{
43
- type:String
44
- },
45
- vmSubBrand: {
46
- type: String,
47
- },
48
- vmCategory: {
49
- type: String,
50
- },
51
- crestImageId: {
52
- type: String,
53
- },
54
-
55
- },
56
- {
57
- strict: false,
58
- versionKey: false,
59
- timestamps: true,
60
- },
61
- );
62
-
63
- export default mongoose.model( 'planoVmDetail', planoVmDetailSchema );
@@ -1,24 +0,0 @@
1
- import mongoose from 'mongoose';
2
-
3
- const vmTypeSchema = new mongoose.Schema(
4
- {
5
- clientId: {
6
- type: String,
7
- required: true,
8
- },
9
- vmType:{
10
- type:String,
11
- required:true
12
- },
13
- imageUrls:{
14
- type:Array
15
- }
16
- },
17
- {
18
- strict: true,
19
- versionKey: false,
20
- timestamps: true,
21
- },
22
- );
23
-
24
- export default mongoose.model( 'vmType', vmTypeSchema );