tango-api-schema 2.5.80 → 2.5.82

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,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.5.80",
3
+ "version": "2.5.82",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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,97 @@ const checklistconfigSchema = new mongoose.Schema({
393
384
  type: String
394
385
  }
395
386
  },
387
+ // ──── 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
+ // ──── NEW: Box Alert ────
438
+ boxAlert: {
439
+ schedule: {
440
+ scheduletype: {
441
+ type: String,
442
+ enum: ['standard', 'custom'],
443
+ default: 'standard'
444
+ },
445
+ openTime: {
446
+ type: String
447
+ },
448
+ closeTime: {
449
+ type: String
450
+ },
451
+ },
452
+ recurrence: {
453
+ status: {
454
+ type: Boolean,
455
+ default: false
456
+ },
457
+ time: {
458
+ type: Number
459
+ },
460
+ type: {
461
+ type: String,
462
+ enum: ['custom', 'random', ''],
463
+ default: ''
464
+ }
465
+ },
466
+ emptyShelfAlert: {
467
+ enabled: {
468
+ type: Boolean,
469
+ default: false
470
+ },
471
+ duration: {
472
+ type: Number,
473
+ default: 20
474
+ },
475
+ },
476
+ },
477
+ // ──── END: Box Alert ────
396
478
  alertConfig: {
397
479
  allowBuffer: {
398
480
  enabled: {