tango-api-schema 2.5.80 → 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 +51 -9
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
|
|
@@ -393,6 +384,57 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
393
384
|
type: String
|
|
394
385
|
}
|
|
395
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 ────
|
|
396
438
|
alertConfig: {
|
|
397
439
|
allowBuffer: {
|
|
398
440
|
enabled: {
|