tango-api-schema 2.5.56 → 2.5.58

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,28 +1,28 @@
1
- {
2
- "name": "tango-api-schema",
3
- "version": "2.5.56",
4
- "description": "tangoEye model schema",
5
- "main": "index.js",
6
- "type": "module",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
9
- "start": "node index.js",
10
- "build:patch": "node build.js patch && npm publish",
11
- "build:minor": "node build.js minor && npm publish",
12
- "build:major": "node build.js major && npm publish"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
17
- },
18
- "author": "praveenraj",
19
- "license": "ISC",
20
- "bugs": {
21
- "url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
22
- },
23
- "homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
24
- "dependencies": {
25
- "express": "^4.21.1",
26
- "mongoose": "^7.5.3"
27
- }
28
- }
1
+ {
2
+ "name": "tango-api-schema",
3
+ "version": "2.5.58",
4
+ "description": "tangoEye model schema",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "start": "node index.js",
10
+ "build:patch": "node build.js patch && npm publish",
11
+ "build:minor": "node build.js minor && npm publish",
12
+ "build:major": "node build.js major && npm publish"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
17
+ },
18
+ "author": "praveenraj",
19
+ "license": "ISC",
20
+ "bugs": {
21
+ "url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
22
+ },
23
+ "homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
24
+ "dependencies": {
25
+ "express": "^4.21.1",
26
+ "mongoose": "^7.5.3"
27
+ }
28
+ }
@@ -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', 'cameratampering']
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']
135
135
  },
136
136
  createdAt: {
137
137
  type: Date,
@@ -298,13 +298,7 @@ const checklistconfigSchema = new mongoose.Schema({
298
298
  },
299
299
  },
300
300
  },
301
- camerAngle: {
302
- enabled: {
303
- type: Boolean,
304
- default: false
305
- }
306
- },
307
- tvcompliance: {
301
+ tvcompliance: {
308
302
  schedule: {
309
303
  scheduletype: {
310
304
  type: String
@@ -326,28 +320,14 @@ const checklistconfigSchema = new mongoose.Schema({
326
320
  }
327
321
  },
328
322
  detectedStatus: {
329
- status: {
330
- type: Boolean,
331
- default: false
332
- },
333
- detections: {
334
- type: Number
335
- },
336
- },
337
- },
338
- queuealert: {
339
- queueLengthEnabled: {
340
- type: Boolean
341
- },
342
- queueLimit: {
343
- type: String
323
+ status: {
324
+ type: Boolean,
325
+ default: false
344
326
  },
345
- waitTimeEnabled: {
346
- type: Boolean
327
+ detections: {
328
+ type: Number
347
329
  },
348
- waitTimeLimit: {
349
- type: String
350
- }
330
+ },
351
331
  },
352
332
  alertConfig: {
353
333
  allowBuffer: {
@@ -152,15 +152,7 @@ const client = new mongoose.Schema(
152
152
  enum: [0, 1],
153
153
  default: 0
154
154
  },
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
- },
155
+ infraReport: {},
164
156
  infraDownTime: {
165
157
  type: Number,
166
158
  default: 1,
@@ -232,7 +224,7 @@ const client = new mongoose.Schema(
232
224
  type: Boolean,
233
225
  default: true
234
226
  },
235
- unattendedAuditZone: {
227
+ unattendedAuditZone:{
236
228
  type: Boolean,
237
229
  default: false
238
230
  },
@@ -301,12 +293,6 @@ const client = new mongoose.Schema(
301
293
  },
302
294
  },
303
295
  featureConfigs: {
304
- trackerEndPoint: {
305
- type: String,
306
- },
307
- trafficEndPoint: {
308
- type: String,
309
- },
310
296
  open: {
311
297
  type: String,
312
298
  default: "10:00:00"
@@ -389,10 +375,6 @@ const client = new mongoose.Schema(
389
375
  type: Boolean,
390
376
  default: false,
391
377
  },
392
- isFootfallDirectoryonlyTango: {
393
- type: Boolean,
394
- default: false,
395
- },
396
378
  isExcludedArea: {
397
379
  type: Boolean,
398
380
  default: true
@@ -505,8 +487,8 @@ const client = new mongoose.Schema(
505
487
 
506
488
  },
507
489
  footfallDirectoryConfigs: {
508
- contactEmail: {
509
- type: String,
490
+ contactEmail:{
491
+ type: String,
510
492
  default: ""
511
493
  },
512
494
  revision: {
@@ -538,17 +520,17 @@ const client = new mongoose.Schema(
538
520
  type: Number,
539
521
  default: 3
540
522
  },
541
- allowTangoReview: {
523
+ allowTangoReview: {
542
524
  type: Number,
543
525
  default: 4
544
526
  },
545
- allowTangoApprove: {
527
+ allowTangoApprove: {
546
528
  type: Number,
547
529
  default: 4
548
530
  },
549
531
  allowImageView: {
550
532
  type: Number,
551
- default: 90
533
+ default:90
552
534
  },
553
535
  isAutoCloseEnable: {
554
536
  type: Boolean,
@@ -615,10 +597,10 @@ const client = new mongoose.Schema(
615
597
  type: String,
616
598
  default: "85%"
617
599
  },
618
- tangoApproved: { // this key for decide the final count is reflected by tango or client
619
- type: Boolean,
600
+ tangoApproved:{ // this key for decide the final count is reflected by tango or client
601
+ type: Boolean,
620
602
  default: false
621
- }
603
+ }
622
604
  },
623
605
  document: {
624
606
  addressProof: {
@@ -804,7 +786,7 @@ const client = new mongoose.Schema(
804
786
  sendTo: {
805
787
  type: Array,
806
788
  },
807
- otherEmailList: {
789
+ otherEmailList:{
808
790
  type: Array
809
791
  }
810
792
  },
@@ -834,9 +816,9 @@ const client = new mongoose.Schema(
834
816
  type: Boolean,
835
817
  default: true
836
818
  },
837
- traxVideoUploadTimeLimit: {
838
- type: Number,
839
- default: 0
819
+ traxVideoUploadTimeLimit:{
820
+ type:Number,
821
+ default:0
840
822
  }
841
823
  },
842
824
  {
@@ -24,7 +24,7 @@ const collection = new mongoose.Schema({
24
24
  ],
25
25
  configureType: {
26
26
  type: String,
27
- enum: ['user', 'email'],
27
+ enum: ['user', 'email', 'rm'],
28
28
  },
29
29
  complianceThreshold: {
30
30
  condition: {
@@ -67,12 +67,6 @@ 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
- },
76
70
  },
77
71
  ],
78
72
  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','fixtureImage'],
388
+ enum: ['fixture', 'vm', 'product', 'layout', 'merchRollout', 'vmRollout', 'fixtureMeasurement'],
389
389
  required: true
390
390
  },
391
391
  date_string: {
@@ -415,7 +415,6 @@ const planoTaskCompliance = new mongoose.Schema(
415
415
  }
416
416
  },
417
417
  {
418
- strict: false,
419
418
  timestamps: true,
420
419
  versionKey: false,
421
420
  }
@@ -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','cameratampering']
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']
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','cameratampering']
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']
85
85
  },
86
86
  startTime: {
87
87
  type: Date
@@ -218,12 +218,6 @@ const processedchecklistconfigSchema = new mongoose.Schema({
218
218
  persondetectiontimethreshold: {
219
219
  type: String
220
220
  },
221
- },
222
- camerAngle: {
223
- enabled: {
224
- type: Boolean,
225
- default: false
226
- }
227
221
  },
228
222
  halfshutter: {
229
223
  schedule: {
@@ -266,20 +260,6 @@ const processedchecklistconfigSchema = new mongoose.Schema({
266
260
  },
267
261
  },
268
262
  },
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
- },
283
263
  alertConfig: {
284
264
  allowBuffer: {
285
265
  enabled: {
@@ -235,9 +235,6 @@ const store = new mongoose.Schema(
235
235
  serialNumber: {
236
236
  type: String,
237
237
  },
238
- systemID: {
239
- type: String,
240
- },
241
238
  reScanIp: {
242
239
  type: Boolean,
243
240
  default: false
@@ -43,7 +43,7 @@ const storeLayoutSchema = new mongoose.Schema( {
43
43
  },
44
44
  status: {
45
45
  type: String,
46
- enum: [ 'draft','allocationPending', 'completed' ],
46
+ enum: [ 'draft', 'completed' ],
47
47
  default: 'draft',
48
48
  },
49
49
  planoId: {
@@ -266,9 +266,6 @@ const processedTaskSchema = new mongoose.Schema(
266
266
  autoRedo:{
267
267
  type:Boolean,
268
268
  default:false
269
- },
270
- fixtureNewUI:{
271
- type:Boolean
272
269
  }
273
270
  },
274
271
  {