tango-api-schema 2.5.58 → 2.5.59
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 +27 -27
- package/schema/checklistconfig.js +28 -8
- package/schema/client.model.js +32 -14
- package/schema/findReplaceAi.model.js +6 -0
- package/schema/planoTaskCompliance.model.js +2 -1
- package/schema/processedchecklist.js +1 -1
- package/schema/processedchecklistconfig.js +21 -1
- package/schema/store.model.js +3 -0
- package/schema/storeLayout.model.js +1 -1
- package/schema/taskProcessed.model.js +3 -0
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tango-api-schema",
|
|
3
|
-
"version": "2.5.
|
|
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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tango-api-schema",
|
|
3
|
+
"version": "2.5.59",
|
|
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
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']
|
|
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
|
-
|
|
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
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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: {
|
package/schema/client.model.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
541
|
+
allowTangoReview: {
|
|
524
542
|
type: Number,
|
|
525
543
|
default: 4
|
|
526
544
|
},
|
|
527
|
-
|
|
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
|
-
|
|
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
|
{
|
|
@@ -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: {
|
package/schema/store.model.js
CHANGED