tango-api-schema 2.2.185 → 2.2.187

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.
@@ -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: new Date()
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: new Date()
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: new Date()
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: new Date()
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: new Date()
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,30 +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
30
+ date_string:{
31
+ type:String,
32
+ required:true
345
33
  },
346
- storeName: {
347
- type: String
34
+ storeName:{
35
+ type:String
348
36
  },
349
- storeId: {
350
- type: String
37
+ taskId:{
38
+ type:mongoose.Types.ObjectId
351
39
  },
352
- taskId: {
353
- type: mongoose.Types.ObjectId
354
- },
355
- taskType: {
356
- type: String,
357
- enum: ['redo', 'initial']
358
- },
359
- date_iso: {
360
- type: Date
361
- },
362
- approvalStatus: {
363
- type: String,
364
- enum: ['pending', 'approved', 'rejected'],
365
- default:'pending'
40
+ date_iso:{
41
+ type:Date
366
42
  }
367
43
  },
368
44
  {
@@ -371,4 +47,4 @@ const planoTaskCompliance = new mongoose.Schema(
371
47
  }
372
48
  );
373
49
 
374
- 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
  {
@@ -17,80 +17,81 @@ const storeFixtureSchema = new mongoose.Schema(
17
17
  planoId: {
18
18
  type: mongoose.Types.ObjectId,
19
19
  required: true,
20
- index:true
21
20
  },
22
21
  floorId: {
23
22
  type: mongoose.Types.ObjectId,
24
23
  required: true,
25
- index:true
26
24
  },
27
25
  fixtureName: {
28
26
  type: String,
29
27
  required: true,
30
28
  },
31
- description: {
32
- type: String,
33
- },
34
29
  fixtureCategory: {
35
30
  type: String,
36
31
  },
37
- productBrandName: {
38
- type: Array,
39
- },
40
- productCategory:{
41
- type:Array
32
+ fixtureBrandCategory: {
33
+ type: String,
42
34
  },
43
- productSubCategory:{
44
- type:Array
35
+ fixtureBrandSubCategory: {
36
+ type: String,
45
37
  },
46
38
  fixtureType: {
47
39
  type: String,
48
40
  enum: [ 'wall', 'floor', 'other' ],
49
41
  required: true,
50
42
  },
43
+ fixtureHeight: {
44
+ value: {
45
+ type: Number,
46
+ },
47
+ unit: {
48
+ type: String,
49
+ },
50
+ },
51
51
  fixtureLength: {
52
52
  value: {
53
53
  type: Number,
54
- default: 0,
55
54
  },
56
55
  unit: {
57
56
  type: String,
58
- default: '',
59
57
  },
60
58
  },
61
59
  fixtureWidth: {
62
60
  value: {
63
61
  type: Number,
64
- default: 0,
65
62
  },
66
63
  unit: {
67
64
  type: String,
68
- default: '',
69
65
  },
70
66
  },
71
- fixtureStaticLength: {
67
+ detailedFixtureLength: {
72
68
  value: {
73
69
  type: Number,
74
- default: 0,
75
70
  },
76
71
  unit: {
77
72
  type: String,
78
- default: '',
79
73
  },
80
74
  },
81
- fixtureStaticWidth: {
75
+ detailedFixtureWidth: {
82
76
  value: {
83
77
  type: Number,
84
- default: 0,
85
78
  },
86
79
  unit: {
87
80
  type: String,
88
- default: '',
89
81
  },
90
82
  },
83
+ productPerShelf: {
84
+ type: Number,
85
+ },
86
+ mbq: {
87
+ type: Number,
88
+ },
91
89
  fixtureCapacity: {
92
90
  type: Number,
93
91
  },
92
+ shelfcount: {
93
+ type: Number,
94
+ },
94
95
  associatedElementType: {
95
96
  type: String,
96
97
  enum: [ 'wall', 'facade' ],
@@ -98,6 +99,9 @@ const storeFixtureSchema = new mongoose.Schema(
98
99
  associatedElementNumber: {
99
100
  type: Number,
100
101
  },
102
+ fixtureConfigId: {
103
+ type: mongoose.Types.ObjectId,
104
+ },
101
105
  relativePosition: {
102
106
  x: {
103
107
  type: Number,
@@ -109,97 +113,48 @@ const storeFixtureSchema = new mongoose.Schema(
109
113
  type: String,
110
114
  },
111
115
  },
112
- productResolutionLevel: {
113
- type: String,
114
- enum: [ 'L1', 'L2', 'L3', 'L4' ],
115
- // L1- fixture level, L2- shelf level, L3- section level, L4- product level
116
- },
117
- imageUrl: {
118
- type: String,
119
- },
120
- header: {
121
- height: {
122
- value: {
123
- type: Number,
124
- default: 0,
125
- },
126
- unit: {
127
- type: String,
128
- default: '',
129
- },
130
- },
131
- label: {
132
- type: String,
116
+ relativeDetailedPosition: {
117
+ x: {
118
+ type: Number,
133
119
  },
134
- isEnabled: {
135
- type: Boolean,
136
- default: true,
120
+ y: {
121
+ type: Number,
137
122
  },
138
- },
139
- footer: {
140
- height: {
141
- value: {
142
- type: Number,
143
- default: 0,
144
- },
145
- unit: {
146
- type: String,
147
- default: '',
148
- },
149
- },
150
- label: {
123
+ unit: {
151
124
  type: String,
152
125
  },
153
- isEnabled: {
154
- type: Boolean,
155
- default: true,
156
- },
157
126
  },
158
- isBodyEnabled: {
159
- type: Boolean,
160
- default: true,
127
+ fixtureOrder: {
128
+ type: String,
129
+ enum: [ 'TTB', 'BTT' ],
130
+ // TTB - Top to Bottom, BTT - Bottom to Top
161
131
  },
162
- associatedElementFixtureNumber: {
132
+ fixtureNumber: {
163
133
  type: Number,
164
134
  },
165
- vmConfig: [
166
- {
167
- vmId: {
168
- type: mongoose.Types.ObjectId,
169
- },
170
- startYPosition: {
171
- type: Number,
172
- },
173
- endYPosition: {
174
- type: Number,
175
- },
176
- xZone: {
177
- type: String,
178
- },
179
- yZone: {
180
- type: String,
181
- },
182
- position: {
183
- type: String,
184
- },
185
- },
186
- ],
187
- fixtureLibraryId: {
188
- type: mongoose.Types.ObjectId,
189
- index:true
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
190
139
  },
191
- fixtureConfigId: {
192
- type: mongoose.Types.ObjectId,
193
- index:true
140
+ imageUrl: {
141
+ type: String,
194
142
  },
195
- fixtureNumber: {
196
- type: Number,
143
+ vmImageUrl: {
144
+ type: String,
145
+ },
146
+ fixtureCode: {
147
+ type: String,
197
148
  },
198
- templateIndex: {
149
+ header: {
150
+ type: String,
151
+ },
152
+ footer: {
153
+ type: String,
154
+ },
155
+ associatedElementFixtureNumber: {
199
156
  type: Number,
200
- default: 1,
201
157
  },
202
-
203
158
  },
204
159
  {
205
160
  strict: true,
@@ -208,7 +163,4 @@ const storeFixtureSchema = new mongoose.Schema(
208
163
  },
209
164
  );
210
165
 
211
- export default mongoose.model( 'storeFixture', storeFixtureSchema );
212
-
213
-
214
-
166
+ export default mongoose.model( 'storeFixture', storeFixtureSchema );
@@ -49,16 +49,12 @@ const storeLayoutSchema = new mongoose.Schema( {
49
49
  planoId: {
50
50
  type: mongoose.Types.ObjectId,
51
51
  required: true,
52
- index:true
53
52
  },
54
53
  storeOrder: {
55
54
  type: String,
56
55
  enum: [ 'LTR', 'RTL' ],
57
56
  // LTR - Left to Right, RTL - Right to Left
58
57
  },
59
- isEdited: {
60
- type: Boolean,
61
- },
62
58
  },
63
59
  {
64
60
  strict: true,
@@ -199,11 +199,9 @@ const processedTaskSchema = new mongoose.Schema(
199
199
  },
200
200
  planoType:{
201
201
  type: String,
202
- index:true
203
202
  },
204
203
  planoId:{
205
204
  type:mongoose.SchemaTypes.ObjectId,
206
- index:true
207
205
  },
208
206
  streamId:{
209
207
  type: String,
@@ -236,13 +234,9 @@ const processedTaskSchema = new mongoose.Schema(
236
234
  },
237
235
  floorId:{
238
236
  type:mongoose.SchemaTypes.ObjectId,
239
- index:true
240
237
  },
241
238
  checkListFrom: {
242
239
  type: String
243
- },
244
- comments:{
245
- type:Array
246
240
  }
247
241
  },
248
242
  {