tango-api-schema 2.2.160 → 2.2.162

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.
Files changed (74) hide show
  1. package/index.js +0 -8
  2. package/package.json +1 -1
  3. package/schema/aiTicketConfig.js +42 -42
  4. package/schema/applicationDefault.model.js +24 -24
  5. package/schema/assignAudit.model.js +55 -55
  6. package/schema/auditLogs.model.js +77 -77
  7. package/schema/auditStoreData.model.js +56 -56
  8. package/schema/auditUserWallet.model.js +98 -98
  9. package/schema/auditUsers.model.js +53 -53
  10. package/schema/authentication.model.js +27 -27
  11. package/schema/basePricing.model.js +28 -28
  12. package/schema/billing.model.js +99 -99
  13. package/schema/checklistconfig.js +1 -1
  14. package/schema/clientRequest.model.js +38 -38
  15. package/schema/cluster.model.js +70 -70
  16. package/schema/controlCenterTemplateList.model.js +39 -39
  17. package/schema/countryCodes.model.js +26 -26
  18. package/schema/dailyPricing.model.js +86 -86
  19. package/schema/dataMismatchDraft.model.js +22 -22
  20. package/schema/domain.js +18 -18
  21. package/schema/edgeAppVersion.model.js +33 -33
  22. package/schema/edgeappAuth.model.js +30 -30
  23. package/schema/empDetectionOutput.model.js +67 -67
  24. package/schema/externalParameter.model.js +33 -1
  25. package/schema/eyetest.model.js +18 -18
  26. package/schema/fitting.model.js +52 -52
  27. package/schema/fixtureConfig.model.js +16 -149
  28. package/schema/fixtureShelf.model.js +57 -66
  29. package/schema/group.model.js +34 -34
  30. package/schema/hotjar.model.js +11 -11
  31. package/schema/infraReason.model.js +44 -44
  32. package/schema/internalAuth.model.js +35 -35
  33. package/schema/invoice.model.js +104 -104
  34. package/schema/ipLogs.model.js +37 -37
  35. package/schema/lead.model.js +76 -76
  36. package/schema/lenskartEmployeeMapping.model.js +63 -63
  37. package/schema/locusOrder.model.js +154 -154
  38. package/schema/locusOrderUser.model.js +14 -14
  39. package/schema/lowcountReason.model.js +44 -44
  40. package/schema/mailOnlyuser.model.js +42 -42
  41. package/schema/matLog.model.js +26 -26
  42. package/schema/nobBilling.model.js +41 -41
  43. package/schema/otp.model.js +25 -25
  44. package/schema/paymentAccount.model.js +60 -60
  45. package/schema/planoCompliance.model.js +62 -62
  46. package/schema/planoProductDetail.model.js +18 -1
  47. package/schema/planoStaticData.model.js +1 -1
  48. package/schema/planoTaskCompliance.model.js +14 -333
  49. package/schema/planogram.model.js +0 -4
  50. package/schema/processedchecklist.js +1 -1
  51. package/schema/processedchecklistconfig.js +1 -1
  52. package/schema/processeddetection.js +85 -85
  53. package/schema/quality.model.js +57 -57
  54. package/schema/report.model.js +30 -30
  55. package/schema/standaredRole.model.js +76 -76
  56. package/schema/storeAudit.model.js +62 -62
  57. package/schema/storeEmpDetection.model.js +62 -62
  58. package/schema/storeFixture.model.js +56 -100
  59. package/schema/tagging.model.js +42 -42
  60. package/schema/tangoTicket.model.js +210 -210
  61. package/schema/taskProcessed.model.js +0 -3
  62. package/schema/taskQuestion.model.js +46 -46
  63. package/schema/teams.model.js +46 -46
  64. package/schema/transaction.model.js +54 -54
  65. package/schema/traxApprover.model.js +35 -35
  66. package/schema/traxAuditData.model.js +64 -64
  67. package/schema/userAssignedStore.model.js +41 -41
  68. package/schema/userAudit.model.js +77 -77
  69. package/schema/userEmpDetection.model.js +83 -83
  70. package/schema/workstation.model.js +75 -75
  71. package/schema/fixtureLibrary.model.js +0 -165
  72. package/schema/planoProductCategoryDetails.model.js +0 -26
  73. package/schema/planoVmDetail.model.js +0 -63
  74. package/schema/vmType.model.js +0 -24
@@ -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
  {
@@ -81,7 +81,7 @@ const processedchecklistSchema = new mongoose.Schema({
81
81
  checkListType: {
82
82
  type: String,
83
83
  default: "custom",
84
- enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in']
84
+ enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry']
85
85
  },
86
86
  store_id: {
87
87
  type: String,
@@ -81,7 +81,7 @@ const processedchecklistconfigSchema = new mongoose.Schema({
81
81
  checkListType: {
82
82
  type: String,
83
83
  default: "custom",
84
- enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in']
84
+ enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry']
85
85
  },
86
86
  startTime:{
87
87
  type:Date
@@ -1,86 +1,86 @@
1
- import mongoose from 'mongoose';
2
-
3
- const processeddetectionSchema = new mongoose.Schema({
4
- client_id:{
5
- type:String,
6
- required:true
7
- },
8
- store_id:{
9
- type:String,
10
- required:true
11
- },
12
- userName:{
13
- type:String,
14
- required:true,
15
- default:'System Created'
16
- },
17
- userId:{
18
- type:mongoose.SchemaTypes.ObjectId,
19
- },
20
- time:{
21
- type:String,
22
- required:true
23
- },
24
- type:{
25
- type:String,
26
- required:true,
27
- default:'negative'
28
- },
29
- checklistName:{
30
- type: String,
31
- required: true,
32
- },
33
- checklistId:{
34
- type:mongoose.SchemaTypes.ObjectId,
35
- required:true
36
- },
37
- sourceChecklist_id:{
38
- type:mongoose.SchemaTypes.ObjectId,
39
- required:true
40
- },
41
- category:{
42
- type:String
43
- },
44
- reason:{
45
- type:String,
46
- default:''
47
- },
48
- acknowledgedDate:{
49
- type:Date,
50
- default:''
51
- },
52
- date_iso:{
53
- type:Date
54
- },
55
- date_string:{
56
- type:String
57
- },
58
- startRange:{
59
- type:String
60
- },
61
- scheduleTime:{
62
- type:Date
63
- },
64
- timeStamp:{
65
- type:Number
66
- },
67
- timeFormat:{
68
- type:String
69
- },
70
- createdAt: {
71
- type: Date,
72
- default: Date.now()
73
- },
74
- updatedAt: {
75
- type: Date,
76
- default: Date.now()
77
- }
78
- },
79
- {
80
- strict: true,
81
- versionKey: false,
82
- timestamps: true,
83
- },
84
- );
85
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const processeddetectionSchema = new mongoose.Schema({
4
+ client_id:{
5
+ type:String,
6
+ required:true
7
+ },
8
+ store_id:{
9
+ type:String,
10
+ required:true
11
+ },
12
+ userName:{
13
+ type:String,
14
+ required:true,
15
+ default:'System Created'
16
+ },
17
+ userId:{
18
+ type:mongoose.SchemaTypes.ObjectId,
19
+ },
20
+ time:{
21
+ type:String,
22
+ required:true
23
+ },
24
+ type:{
25
+ type:String,
26
+ required:true,
27
+ default:'negative'
28
+ },
29
+ checklistName:{
30
+ type: String,
31
+ required: true,
32
+ },
33
+ checklistId:{
34
+ type:mongoose.SchemaTypes.ObjectId,
35
+ required:true
36
+ },
37
+ sourceChecklist_id:{
38
+ type:mongoose.SchemaTypes.ObjectId,
39
+ required:true
40
+ },
41
+ category:{
42
+ type:String
43
+ },
44
+ reason:{
45
+ type:String,
46
+ default:''
47
+ },
48
+ acknowledgedDate:{
49
+ type:Date,
50
+ default:''
51
+ },
52
+ date_iso:{
53
+ type:Date
54
+ },
55
+ date_string:{
56
+ type:String
57
+ },
58
+ startRange:{
59
+ type:String
60
+ },
61
+ scheduleTime:{
62
+ type:Date
63
+ },
64
+ timeStamp:{
65
+ type:Number
66
+ },
67
+ timeFormat:{
68
+ type:String
69
+ },
70
+ createdAt: {
71
+ type: Date,
72
+ default: Date.now()
73
+ },
74
+ updatedAt: {
75
+ type: Date,
76
+ default: Date.now()
77
+ }
78
+ },
79
+ {
80
+ strict: true,
81
+ versionKey: false,
82
+ timestamps: true,
83
+ },
84
+ );
85
+
86
86
  export default mongoose.model( 'processeddetection', processeddetectionSchema);
@@ -1,57 +1,57 @@
1
- /**
2
- * @name api_eyeTest_models
3
- * @description EyeTest Schema
4
- */
5
-
6
- import { Schema, model } from 'mongoose';
7
-
8
-
9
- // Schema
10
- const collection = new Schema( {
11
- actionType: {
12
- type: String,
13
- required:true
14
- },
15
- workstationId: {
16
- type: String,
17
- required:true
18
- },
19
- staticIP: {
20
- type: String,
21
- },
22
- orderId: {
23
- type: String,
24
- },
25
- userId: {
26
- type: String,
27
- },
28
- productId : {
29
- type: String,
30
- },
31
- QCHold : {
32
- type: Boolean,
33
- default:false
34
- },
35
- timestamp:{
36
- type: String,
37
- },
38
- userEmail:{
39
- type: String,
40
- },
41
- fittingId:{
42
- type: String,
43
- },
44
- status:{
45
- type: Boolean,
46
- }
47
- }, {
48
- timestamps: true,
49
- strict: true,
50
- versionKey: false,
51
- } );
52
-
53
- collection.index({ createdAt: 1 })
54
- collection.index({ fittingId: 1 })
55
- collection.index({ userId: 1 })
56
-
57
- export default model( 'qualityCheck', collection );
1
+ /**
2
+ * @name api_eyeTest_models
3
+ * @description EyeTest Schema
4
+ */
5
+
6
+ import { Schema, model } from 'mongoose';
7
+
8
+
9
+ // Schema
10
+ const collection = new Schema( {
11
+ actionType: {
12
+ type: String,
13
+ required:true
14
+ },
15
+ workstationId: {
16
+ type: String,
17
+ required:true
18
+ },
19
+ staticIP: {
20
+ type: String,
21
+ },
22
+ orderId: {
23
+ type: String,
24
+ },
25
+ userId: {
26
+ type: String,
27
+ },
28
+ productId : {
29
+ type: String,
30
+ },
31
+ QCHold : {
32
+ type: Boolean,
33
+ default:false
34
+ },
35
+ timestamp:{
36
+ type: String,
37
+ },
38
+ userEmail:{
39
+ type: String,
40
+ },
41
+ fittingId:{
42
+ type: String,
43
+ },
44
+ status:{
45
+ type: Boolean,
46
+ }
47
+ }, {
48
+ timestamps: true,
49
+ strict: true,
50
+ versionKey: false,
51
+ } );
52
+
53
+ collection.index({ createdAt: 1 })
54
+ collection.index({ fittingId: 1 })
55
+ collection.index({ userId: 1 })
56
+
57
+ export default model( 'qualityCheck', collection );