tango-api-schema 2.5.58 → 2.5.60

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.5.58",
3
+ "version": "2.5.60",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -131,7 +131,7 @@ const checklistconfigSchema = new mongoose.Schema({
131
131
  checkListType: {
132
132
  type: String,
133
133
  default: "custom",
134
- 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', 'backroommonitoring', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance']
134
+ 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', 'backroommonitoring', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering']
135
135
  },
136
136
  createdAt: {
137
137
  type: Date,
@@ -298,7 +298,13 @@ const checklistconfigSchema = new mongoose.Schema({
298
298
  },
299
299
  },
300
300
  },
301
- tvcompliance: {
301
+ cameraAngle: {
302
+ enabled: {
303
+ type: Boolean,
304
+ default: false
305
+ }
306
+ },
307
+ tvcompliance: {
302
308
  schedule: {
303
309
  scheduletype: {
304
310
  type: String
@@ -320,14 +326,28 @@ const checklistconfigSchema = new mongoose.Schema({
320
326
  }
321
327
  },
322
328
  detectedStatus: {
323
- status: {
324
- type: Boolean,
325
- default: false
326
- },
327
- detections: {
328
- type: Number
329
+ status: {
330
+ type: Boolean,
331
+ default: false
332
+ },
333
+ detections: {
334
+ type: Number
335
+ },
329
336
  },
330
337
  },
338
+ queuealert: {
339
+ queueLengthEnabled: {
340
+ type: Boolean
341
+ },
342
+ queueLimit: {
343
+ type: String
344
+ },
345
+ waitTimeEnabled: {
346
+ type: Boolean
347
+ },
348
+ waitTimeLimit: {
349
+ type: String
350
+ }
331
351
  },
332
352
  alertConfig: {
333
353
  allowBuffer: {
@@ -152,7 +152,15 @@ const client = new mongoose.Schema(
152
152
  enum: [0, 1],
153
153
  default: 0
154
154
  },
155
- infraReport: {},
155
+ infraReport: {
156
+ type: mongoose.Schema.Types.Mixed,
157
+ default: () => ({
158
+ type: "defined",
159
+ startTime: "09:00",
160
+ endTime: "22:00",
161
+ interval: "60"
162
+ })
163
+ },
156
164
  infraDownTime: {
157
165
  type: Number,
158
166
  default: 1,
@@ -224,7 +232,7 @@ const client = new mongoose.Schema(
224
232
  type: Boolean,
225
233
  default: true
226
234
  },
227
- unattendedAuditZone:{
235
+ unattendedAuditZone: {
228
236
  type: Boolean,
229
237
  default: false
230
238
  },
@@ -293,6 +301,12 @@ const client = new mongoose.Schema(
293
301
  },
294
302
  },
295
303
  featureConfigs: {
304
+ trackerEndPoint: {
305
+ type: String,
306
+ },
307
+ trafficEndPoint: {
308
+ type: String,
309
+ },
296
310
  open: {
297
311
  type: String,
298
312
  default: "10:00:00"
@@ -375,6 +389,10 @@ const client = new mongoose.Schema(
375
389
  type: Boolean,
376
390
  default: false,
377
391
  },
392
+ isFootfallDirectoryonlyTango: {
393
+ type: Boolean,
394
+ default: false,
395
+ },
378
396
  isExcludedArea: {
379
397
  type: Boolean,
380
398
  default: true
@@ -487,8 +505,8 @@ const client = new mongoose.Schema(
487
505
 
488
506
  },
489
507
  footfallDirectoryConfigs: {
490
- contactEmail:{
491
- type: String,
508
+ contactEmail: {
509
+ type: String,
492
510
  default: ""
493
511
  },
494
512
  revision: {
@@ -520,17 +538,17 @@ const client = new mongoose.Schema(
520
538
  type: Number,
521
539
  default: 3
522
540
  },
523
- allowTangoReview: {
541
+ allowTangoReview: {
524
542
  type: Number,
525
543
  default: 4
526
544
  },
527
- allowTangoApprove: {
545
+ allowTangoApprove: {
528
546
  type: Number,
529
547
  default: 4
530
548
  },
531
549
  allowImageView: {
532
550
  type: Number,
533
- default:90
551
+ default: 90
534
552
  },
535
553
  isAutoCloseEnable: {
536
554
  type: Boolean,
@@ -597,10 +615,10 @@ const client = new mongoose.Schema(
597
615
  type: String,
598
616
  default: "85%"
599
617
  },
600
- tangoApproved:{ // this key for decide the final count is reflected by tango or client
601
- type: Boolean,
618
+ tangoApproved: { // this key for decide the final count is reflected by tango or client
619
+ type: Boolean,
602
620
  default: false
603
- }
621
+ }
604
622
  },
605
623
  document: {
606
624
  addressProof: {
@@ -786,7 +804,7 @@ const client = new mongoose.Schema(
786
804
  sendTo: {
787
805
  type: Array,
788
806
  },
789
- otherEmailList:{
807
+ otherEmailList: {
790
808
  type: Array
791
809
  }
792
810
  },
@@ -816,9 +834,9 @@ const client = new mongoose.Schema(
816
834
  type: Boolean,
817
835
  default: true
818
836
  },
819
- traxVideoUploadTimeLimit:{
820
- type:Number,
821
- default:0
837
+ traxVideoUploadTimeLimit: {
838
+ type: Number,
839
+ default: 0
822
840
  }
823
841
  },
824
842
  {
@@ -67,6 +67,12 @@ const findReplaceAi = new mongoose.Schema(
67
67
  type: Boolean,
68
68
  default: false,
69
69
  },
70
+ merchRolloutId: {
71
+ type: String,
72
+ },
73
+ vmRolloutId: {
74
+ type: String,
75
+ },
70
76
  },
71
77
  ],
72
78
  selectedClusters: [
@@ -385,7 +385,7 @@ const planoTaskCompliance = new mongoose.Schema(
385
385
  },
386
386
  type: {
387
387
  type: String,
388
- enum: ['fixture', 'vm', 'product', 'layout', 'merchRollout', 'vmRollout', 'fixtureMeasurement'],
388
+ enum: ['fixture', 'vm', 'product', 'layout', 'merchRollout', 'vmRollout', 'fixtureMeasurement','fixtureImage'],
389
389
  required: true
390
390
  },
391
391
  date_string: {
@@ -415,6 +415,7 @@ const planoTaskCompliance = new mongoose.Schema(
415
415
  }
416
416
  },
417
417
  {
418
+ strict: false,
418
419
  timestamps: true,
419
420
  versionKey: false,
420
421
  }
@@ -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','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter','tvcompliance']
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','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter','tvcompliance','cameratampering']
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', 'unauthorisedentry', 'backroommonitoring', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance']
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', 'backroommonitoring', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance','cameratampering']
85
85
  },
86
86
  startTime: {
87
87
  type: Date
@@ -218,6 +218,12 @@ const processedchecklistconfigSchema = new mongoose.Schema({
218
218
  persondetectiontimethreshold: {
219
219
  type: String
220
220
  },
221
+ },
222
+ cameraAngle: {
223
+ enabled: {
224
+ type: Boolean,
225
+ default: false
226
+ }
221
227
  },
222
228
  halfshutter: {
223
229
  schedule: {
@@ -260,6 +266,20 @@ const processedchecklistconfigSchema = new mongoose.Schema({
260
266
  },
261
267
  },
262
268
  },
269
+ queuealert:{
270
+ queueLengthEnabled:{
271
+ type:Boolean
272
+ },
273
+ queueLimit:{
274
+ type:String
275
+ },
276
+ waitTimeEnabled:{
277
+ type:Boolean
278
+ },
279
+ waitTimeLimit:{
280
+ type:String
281
+ }
282
+ },
263
283
  alertConfig: {
264
284
  allowBuffer: {
265
285
  enabled: {
@@ -11,6 +11,7 @@ const store = new mongoose.Schema(
11
11
  storeName: {
12
12
  type: String,
13
13
  require: true,
14
+ trim:true
14
15
  },
15
16
  appId: {
16
17
  type: String,
@@ -235,6 +236,9 @@ const store = new mongoose.Schema(
235
236
  serialNumber: {
236
237
  type: String,
237
238
  },
239
+ systemID: {
240
+ type: String,
241
+ },
238
242
  reScanIp: {
239
243
  type: Boolean,
240
244
  default: false
@@ -43,7 +43,7 @@ const storeLayoutSchema = new mongoose.Schema( {
43
43
  },
44
44
  status: {
45
45
  type: String,
46
- enum: [ 'draft', 'completed' ],
46
+ enum: [ 'draft','allocationPending', 'completed' ],
47
47
  default: 'draft',
48
48
  },
49
49
  planoId: {
@@ -266,6 +266,9 @@ const processedTaskSchema = new mongoose.Schema(
266
266
  autoRedo:{
267
267
  type:Boolean,
268
268
  default:false
269
+ },
270
+ fixtureNewUI:{
271
+ type:Boolean
269
272
  }
270
273
  },
271
274
  {
@@ -4,11 +4,13 @@ const user = new mongoose.Schema(
4
4
  {
5
5
  userName: {
6
6
  type: String,
7
+ trim:true
7
8
  },
8
9
  email: {
9
10
  type: String,
10
11
  required: true,
11
12
  unique: true,
13
+ trim:true
12
14
  },
13
15
  userProfile:{
14
16
  type:String