tango-api-schema 2.5.79 → 2.5.81
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 +1 -1
- package/schema/checklistconfig.js +100 -54
package/package.json
CHANGED
|
@@ -15,12 +15,6 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
15
15
|
checkListDescription: {
|
|
16
16
|
type: String,
|
|
17
17
|
},
|
|
18
|
-
// sectionNumber: {
|
|
19
|
-
// type: Number
|
|
20
|
-
// },
|
|
21
|
-
// sectionName: {
|
|
22
|
-
// type: String
|
|
23
|
-
// },
|
|
24
18
|
createdBy: {
|
|
25
19
|
type: mongoose.SchemaTypes.ObjectId,
|
|
26
20
|
required: true
|
|
@@ -108,9 +102,6 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
108
102
|
client_id: {
|
|
109
103
|
type: String
|
|
110
104
|
},
|
|
111
|
-
// brandId: {
|
|
112
|
-
// type: mongoose.SchemaTypes.ObjectId
|
|
113
|
-
// },
|
|
114
105
|
questionCount: {
|
|
115
106
|
type: Number,
|
|
116
107
|
default: 0
|
|
@@ -131,7 +122,7 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
131
122
|
checkListType: {
|
|
132
123
|
type: String,
|
|
133
124
|
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','staffgrouping']
|
|
125
|
+
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', 'staffgrouping']
|
|
135
126
|
},
|
|
136
127
|
createdAt: {
|
|
137
128
|
type: Date,
|
|
@@ -296,12 +287,12 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
296
287
|
beforeCloseTime: {
|
|
297
288
|
type: Number
|
|
298
289
|
},
|
|
299
|
-
duration:{
|
|
300
|
-
type:Number
|
|
290
|
+
duration: {
|
|
291
|
+
type: Number
|
|
301
292
|
}
|
|
302
293
|
},
|
|
303
294
|
},
|
|
304
|
-
hygieneMonitoring:{
|
|
295
|
+
hygieneMonitoring: {
|
|
305
296
|
schedule: {
|
|
306
297
|
scheduletype: {
|
|
307
298
|
type: String
|
|
@@ -313,6 +304,10 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
313
304
|
type: String
|
|
314
305
|
},
|
|
315
306
|
},
|
|
307
|
+
floorDetection: {
|
|
308
|
+
enabled: { type: Boolean, default: false },
|
|
309
|
+
duration: { type: Number, default: 2 }
|
|
310
|
+
},
|
|
316
311
|
recurrence: {
|
|
317
312
|
status: {
|
|
318
313
|
type: Boolean,
|
|
@@ -321,8 +316,8 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
321
316
|
time: {
|
|
322
317
|
type: Number
|
|
323
318
|
},
|
|
324
|
-
type:{
|
|
325
|
-
type:String
|
|
319
|
+
type: {
|
|
320
|
+
type: String
|
|
326
321
|
}
|
|
327
322
|
}
|
|
328
323
|
},
|
|
@@ -332,13 +327,13 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
332
327
|
default: false
|
|
333
328
|
}
|
|
334
329
|
},
|
|
335
|
-
IPChanged:{
|
|
330
|
+
IPChanged: {
|
|
336
331
|
enabled: {
|
|
337
332
|
type: Boolean,
|
|
338
333
|
default: false
|
|
339
334
|
}
|
|
340
335
|
},
|
|
341
|
-
resolutionChange:{
|
|
336
|
+
resolutionChange: {
|
|
342
337
|
enabled: {
|
|
343
338
|
type: Boolean,
|
|
344
339
|
default: false
|
|
@@ -389,6 +384,57 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
389
384
|
type: String
|
|
390
385
|
}
|
|
391
386
|
},
|
|
387
|
+
// ──── NEW: Staff Grouping ────
|
|
388
|
+
staffGrouping: {
|
|
389
|
+
schedule: {
|
|
390
|
+
scheduletype: {
|
|
391
|
+
type: String,
|
|
392
|
+
enum: ['standard', 'custom'],
|
|
393
|
+
default: 'standard'
|
|
394
|
+
},
|
|
395
|
+
openTime: {
|
|
396
|
+
type: String
|
|
397
|
+
},
|
|
398
|
+
closeTime: {
|
|
399
|
+
type: String
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
countAlert: {
|
|
403
|
+
enabled: {
|
|
404
|
+
type: Boolean,
|
|
405
|
+
default: false
|
|
406
|
+
},
|
|
407
|
+
threshold: {
|
|
408
|
+
type: Number,
|
|
409
|
+
default: 3
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
timeSpentAlert: {
|
|
413
|
+
enabled: {
|
|
414
|
+
type: Boolean,
|
|
415
|
+
default: false
|
|
416
|
+
},
|
|
417
|
+
duration: {
|
|
418
|
+
type: Number,
|
|
419
|
+
default: 3
|
|
420
|
+
},
|
|
421
|
+
},
|
|
422
|
+
hibernation: {
|
|
423
|
+
enabled: {
|
|
424
|
+
type: Boolean,
|
|
425
|
+
default: false
|
|
426
|
+
},
|
|
427
|
+
startTime: {
|
|
428
|
+
type: String,
|
|
429
|
+
default: '13:00'
|
|
430
|
+
},
|
|
431
|
+
endTime: {
|
|
432
|
+
type: String,
|
|
433
|
+
default: '14:00'
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
// ──── END: Staff Grouping ────
|
|
392
438
|
alertConfig: {
|
|
393
439
|
allowBuffer: {
|
|
394
440
|
enabled: {
|
|
@@ -417,15 +463,15 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
417
463
|
web: {
|
|
418
464
|
type: Array
|
|
419
465
|
},
|
|
420
|
-
email:{
|
|
421
|
-
type:{
|
|
422
|
-
type:Array
|
|
466
|
+
email: {
|
|
467
|
+
type: {
|
|
468
|
+
type: Array
|
|
423
469
|
},
|
|
424
|
-
users:{
|
|
425
|
-
type:Array
|
|
470
|
+
users: {
|
|
471
|
+
type: Array
|
|
426
472
|
},
|
|
427
|
-
teams:{
|
|
428
|
-
type:Array
|
|
473
|
+
teams: {
|
|
474
|
+
type: Array
|
|
429
475
|
}
|
|
430
476
|
}
|
|
431
477
|
},
|
|
@@ -440,21 +486,21 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
440
486
|
default: []
|
|
441
487
|
},
|
|
442
488
|
taskAssignedTo: {
|
|
443
|
-
type:String
|
|
489
|
+
type: String
|
|
444
490
|
},
|
|
445
|
-
users:{
|
|
446
|
-
type:Array
|
|
491
|
+
users: {
|
|
492
|
+
type: Array
|
|
447
493
|
},
|
|
448
|
-
approverEnabled:{
|
|
449
|
-
type:Boolean
|
|
494
|
+
approverEnabled: {
|
|
495
|
+
type: Boolean
|
|
450
496
|
},
|
|
451
|
-
taskValidity:{
|
|
452
|
-
time:{
|
|
453
|
-
type:Number
|
|
497
|
+
taskValidity: {
|
|
498
|
+
time: {
|
|
499
|
+
type: Number
|
|
454
500
|
},
|
|
455
|
-
type:{
|
|
456
|
-
type:String
|
|
457
|
-
}
|
|
501
|
+
type: {
|
|
502
|
+
type: String
|
|
503
|
+
}
|
|
458
504
|
}
|
|
459
505
|
},
|
|
460
506
|
exportConfig: {
|
|
@@ -503,31 +549,31 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
503
549
|
type: Number,
|
|
504
550
|
default: 0
|
|
505
551
|
},
|
|
506
|
-
export:{
|
|
507
|
-
type:Boolean,
|
|
508
|
-
default:false
|
|
552
|
+
export: {
|
|
553
|
+
type: Boolean,
|
|
554
|
+
default: false
|
|
509
555
|
},
|
|
510
|
-
notifyFlags:{
|
|
511
|
-
notifyType:{
|
|
512
|
-
type:Array,
|
|
513
|
-
default:[]
|
|
556
|
+
notifyFlags: {
|
|
557
|
+
notifyType: {
|
|
558
|
+
type: Array,
|
|
559
|
+
default: []
|
|
514
560
|
},
|
|
515
|
-
users:{
|
|
516
|
-
type:Array,
|
|
517
|
-
default:[]
|
|
561
|
+
users: {
|
|
562
|
+
type: Array,
|
|
563
|
+
default: []
|
|
518
564
|
}
|
|
519
565
|
},
|
|
520
|
-
complianceCount:{
|
|
521
|
-
type:Number
|
|
566
|
+
complianceCount: {
|
|
567
|
+
type: Number
|
|
522
568
|
},
|
|
523
|
-
autoEmail:{
|
|
524
|
-
type:{
|
|
525
|
-
type:Array,
|
|
526
|
-
default:[]
|
|
569
|
+
autoEmail: {
|
|
570
|
+
type: {
|
|
571
|
+
type: Array,
|
|
572
|
+
default: []
|
|
527
573
|
},
|
|
528
|
-
users:{
|
|
529
|
-
type:Array,
|
|
530
|
-
default:[]
|
|
574
|
+
users: {
|
|
575
|
+
type: Array,
|
|
576
|
+
default: []
|
|
531
577
|
}
|
|
532
578
|
}
|
|
533
579
|
},
|