tango-api-schema 2.5.88 → 2.5.90
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
|
@@ -122,7 +122,7 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
122
122
|
checkListType: {
|
|
123
123
|
type: String,
|
|
124
124
|
default: "custom",
|
|
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']
|
|
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','employeeCount']
|
|
126
126
|
},
|
|
127
127
|
createdAt: {
|
|
128
128
|
type: Date,
|
|
@@ -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','staffgrouping']
|
|
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','staffgrouping','employeeCount']
|
|
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','staffgrouping']
|
|
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','staffgrouping','employeeCount']
|
|
85
85
|
},
|
|
86
86
|
startTime: {
|
|
87
87
|
type: Date
|
|
@@ -326,6 +326,96 @@ const processedchecklistconfigSchema = new mongoose.Schema({
|
|
|
326
326
|
type:String
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
|
+
// ──── Staff Grouping ────
|
|
330
|
+
staffGrouping: {
|
|
331
|
+
schedule: {
|
|
332
|
+
scheduletype: {
|
|
333
|
+
type: String,
|
|
334
|
+
enum: ['standard', 'custom'],
|
|
335
|
+
default: 'standard'
|
|
336
|
+
},
|
|
337
|
+
openTime: {
|
|
338
|
+
type: String
|
|
339
|
+
},
|
|
340
|
+
closeTime: {
|
|
341
|
+
type: String
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
countAlert: {
|
|
345
|
+
enabled: {
|
|
346
|
+
type: Boolean,
|
|
347
|
+
default: false
|
|
348
|
+
},
|
|
349
|
+
threshold: {
|
|
350
|
+
type: Number,
|
|
351
|
+
default: 3
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
timeSpentAlert: {
|
|
355
|
+
enabled: {
|
|
356
|
+
type: Boolean,
|
|
357
|
+
default: false
|
|
358
|
+
},
|
|
359
|
+
duration: {
|
|
360
|
+
type: Number,
|
|
361
|
+
default: 3
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
hibernation: {
|
|
365
|
+
enabled: {
|
|
366
|
+
type: Boolean,
|
|
367
|
+
default: false
|
|
368
|
+
},
|
|
369
|
+
startTime: {
|
|
370
|
+
type: String,
|
|
371
|
+
default: '13:00'
|
|
372
|
+
},
|
|
373
|
+
endTime: {
|
|
374
|
+
type: String,
|
|
375
|
+
default: '14:00'
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
// ──── NEW: Box Alert ────
|
|
380
|
+
boxAlert: {
|
|
381
|
+
schedule: {
|
|
382
|
+
scheduletype: {
|
|
383
|
+
type: String,
|
|
384
|
+
enum: ['standard', 'custom'],
|
|
385
|
+
default: 'standard'
|
|
386
|
+
},
|
|
387
|
+
openTime: {
|
|
388
|
+
type: String
|
|
389
|
+
},
|
|
390
|
+
closeTime: {
|
|
391
|
+
type: String
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
recurrence: {
|
|
395
|
+
status: {
|
|
396
|
+
type: Boolean,
|
|
397
|
+
default: false
|
|
398
|
+
},
|
|
399
|
+
time: {
|
|
400
|
+
type: Number
|
|
401
|
+
},
|
|
402
|
+
type: {
|
|
403
|
+
type: String,
|
|
404
|
+
enum: ['custom', 'random', ''],
|
|
405
|
+
default: ''
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
emptyShelfAlert: {
|
|
409
|
+
enabled: {
|
|
410
|
+
type: Boolean,
|
|
411
|
+
default: false
|
|
412
|
+
},
|
|
413
|
+
duration: {
|
|
414
|
+
type: Number,
|
|
415
|
+
default: 20
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
},
|
|
329
419
|
alertConfig: {
|
|
330
420
|
allowBuffer: {
|
|
331
421
|
enabled: {
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const recurringFlagTrackerSchema = new mongoose.Schema({
|
|
4
|
-
client_id: {
|
|
5
|
-
type: String,
|
|
6
|
-
required: true,
|
|
7
|
-
},
|
|
8
|
-
sourceCheckList_id: {
|
|
9
|
-
type: mongoose.SchemaTypes.ObjectId,
|
|
10
|
-
ref: 'checklistconfig',
|
|
11
|
-
required: true,
|
|
12
|
-
},
|
|
13
|
-
checkListName: {
|
|
14
|
-
type: String,
|
|
15
|
-
},
|
|
16
|
-
coverage: {
|
|
17
|
-
type: String,
|
|
18
|
-
enum: ['store', 'user'],
|
|
19
|
-
default: 'store',
|
|
20
|
-
},
|
|
21
|
-
store_id: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: '',
|
|
24
|
-
},
|
|
25
|
-
storeName: {
|
|
26
|
-
type: String,
|
|
27
|
-
},
|
|
28
|
-
user_id: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: '',
|
|
31
|
-
},
|
|
32
|
-
userName: {
|
|
33
|
-
type: String,
|
|
34
|
-
},
|
|
35
|
-
userEmail: {
|
|
36
|
-
type: String,
|
|
37
|
-
},
|
|
38
|
-
section_id: {
|
|
39
|
-
type: String,
|
|
40
|
-
},
|
|
41
|
-
sectionName: {
|
|
42
|
-
type: String,
|
|
43
|
-
},
|
|
44
|
-
qno: {
|
|
45
|
-
type: String,
|
|
46
|
-
},
|
|
47
|
-
qname: {
|
|
48
|
-
type: String,
|
|
49
|
-
},
|
|
50
|
-
consecutiveCount: {
|
|
51
|
-
type: Number,
|
|
52
|
-
default: 0,
|
|
53
|
-
},
|
|
54
|
-
lastFlaggedDate: {
|
|
55
|
-
type: String,
|
|
56
|
-
},
|
|
57
|
-
lastEmailDate: {
|
|
58
|
-
type: String,
|
|
59
|
-
},
|
|
60
|
-
runAICount: {
|
|
61
|
-
type: Number,
|
|
62
|
-
default: 0,
|
|
63
|
-
},
|
|
64
|
-
lastRunAIFlaggedDate: {
|
|
65
|
-
type: String,
|
|
66
|
-
},
|
|
67
|
-
emailHistory: {
|
|
68
|
-
type: [ String ],
|
|
69
|
-
default: [],
|
|
70
|
-
},
|
|
71
|
-
lastSubmittedBy: {
|
|
72
|
-
type: String,
|
|
73
|
-
},
|
|
74
|
-
lastSubmissionDate: {
|
|
75
|
-
type: String,
|
|
76
|
-
},
|
|
77
|
-
}, {
|
|
78
|
-
strict: true,
|
|
79
|
-
versionKey: false,
|
|
80
|
-
timestamps: true,
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
recurringFlagTrackerSchema.index({
|
|
84
|
-
client_id: 1,
|
|
85
|
-
sourceCheckList_id: 1,
|
|
86
|
-
store_id: 1,
|
|
87
|
-
user_id: 1,
|
|
88
|
-
section_id: 1,
|
|
89
|
-
qno: 1,
|
|
90
|
-
}, { unique: true });
|
|
91
|
-
|
|
92
|
-
export default mongoose.model('recurringFlagTracker', recurringFlagTrackerSchema);
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const recurringFlagTrackerSchema = new mongoose.Schema({
|
|
4
|
+
client_id: {
|
|
5
|
+
type: String,
|
|
6
|
+
required: true,
|
|
7
|
+
},
|
|
8
|
+
sourceCheckList_id: {
|
|
9
|
+
type: mongoose.SchemaTypes.ObjectId,
|
|
10
|
+
ref: 'checklistconfig',
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
checkListName: {
|
|
14
|
+
type: String,
|
|
15
|
+
},
|
|
16
|
+
coverage: {
|
|
17
|
+
type: String,
|
|
18
|
+
enum: ['store', 'user'],
|
|
19
|
+
default: 'store',
|
|
20
|
+
},
|
|
21
|
+
store_id: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: '',
|
|
24
|
+
},
|
|
25
|
+
storeName: {
|
|
26
|
+
type: String,
|
|
27
|
+
},
|
|
28
|
+
user_id: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: '',
|
|
31
|
+
},
|
|
32
|
+
userName: {
|
|
33
|
+
type: String,
|
|
34
|
+
},
|
|
35
|
+
userEmail: {
|
|
36
|
+
type: String,
|
|
37
|
+
},
|
|
38
|
+
section_id: {
|
|
39
|
+
type: String,
|
|
40
|
+
},
|
|
41
|
+
sectionName: {
|
|
42
|
+
type: String,
|
|
43
|
+
},
|
|
44
|
+
qno: {
|
|
45
|
+
type: String,
|
|
46
|
+
},
|
|
47
|
+
qname: {
|
|
48
|
+
type: String,
|
|
49
|
+
},
|
|
50
|
+
consecutiveCount: {
|
|
51
|
+
type: Number,
|
|
52
|
+
default: 0,
|
|
53
|
+
},
|
|
54
|
+
lastFlaggedDate: {
|
|
55
|
+
type: String,
|
|
56
|
+
},
|
|
57
|
+
lastEmailDate: {
|
|
58
|
+
type: String,
|
|
59
|
+
},
|
|
60
|
+
runAICount: {
|
|
61
|
+
type: Number,
|
|
62
|
+
default: 0,
|
|
63
|
+
},
|
|
64
|
+
lastRunAIFlaggedDate: {
|
|
65
|
+
type: String,
|
|
66
|
+
},
|
|
67
|
+
emailHistory: {
|
|
68
|
+
type: [ String ],
|
|
69
|
+
default: [],
|
|
70
|
+
},
|
|
71
|
+
lastSubmittedBy: {
|
|
72
|
+
type: String,
|
|
73
|
+
},
|
|
74
|
+
lastSubmissionDate: {
|
|
75
|
+
type: String,
|
|
76
|
+
},
|
|
77
|
+
}, {
|
|
78
|
+
strict: true,
|
|
79
|
+
versionKey: false,
|
|
80
|
+
timestamps: true,
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
recurringFlagTrackerSchema.index({
|
|
84
|
+
client_id: 1,
|
|
85
|
+
sourceCheckList_id: 1,
|
|
86
|
+
store_id: 1,
|
|
87
|
+
user_id: 1,
|
|
88
|
+
section_id: 1,
|
|
89
|
+
qno: 1,
|
|
90
|
+
}, { unique: true });
|
|
91
|
+
|
|
92
|
+
export default mongoose.model('recurringFlagTracker', recurringFlagTrackerSchema);
|