tango-api-schema 2.6.13 → 2.6.15

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.6.13",
3
+ "version": "2.6.15",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -312,6 +312,10 @@ const checklistconfigSchema = new mongoose.Schema({
312
312
  tableClutterDetection: {
313
313
  enabled: { type: Boolean, default: false },
314
314
  duration: { type: Number, default: 2 }
315
+ },
316
+ floorClutterDetection:{
317
+ enabled: { type: Boolean, default: false },
318
+ duration: { type: Number, default: 4 }
315
319
  },
316
320
  objectDetection: {
317
321
  enabled: { type: Boolean, default: false },
@@ -708,6 +712,19 @@ const checklistconfigSchema = new mongoose.Schema({
708
712
  type: Number,
709
713
  default: 0
710
714
  },
715
+ iscoolDown:{
716
+ type:Boolean,
717
+ default:false
718
+ },
719
+ coolAlertDuration:{
720
+ type:Number,
721
+ default:0
722
+ },
723
+ coolAlertDurationUnit:{
724
+ type:String,
725
+ enum:['sec','min','hour'],
726
+ default:'min'
727
+ }
711
728
 
712
729
  }
713
730
 
@@ -268,6 +268,10 @@ const processedchecklistconfigSchema = new mongoose.Schema({
268
268
  tableClutterDetection: {
269
269
  enabled: { type: Boolean, default: false },
270
270
  duration: { type: Number, default: 2 }
271
+ },
272
+ floorClutterDetection:{
273
+ enabled: { type: Boolean, default: false },
274
+ duration: { type: Number, default: 4 }
271
275
  },
272
276
  objectDetection: {
273
277
  enabled: { type: Boolean, default: false },
@@ -648,6 +652,19 @@ const processedchecklistconfigSchema = new mongoose.Schema({
648
652
  type: Number,
649
653
  default: 0
650
654
  },
655
+ iscoolDown:{
656
+ type:Boolean,
657
+ default:false
658
+ },
659
+ coolAlertDuration:{
660
+ type:Number,
661
+ default:0
662
+ },
663
+ coolAlertDurationUnit:{
664
+ type:String,
665
+ enum:['sec','min','hour'],
666
+ default:'min'
667
+ }
651
668
 
652
669
  }
653
670
 
@@ -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);
@@ -1,31 +1,31 @@
1
- import mongoose from 'mongoose';
2
- import { randomUUID } from 'crypto';
3
-
4
- // schema
5
- const collection = new mongoose.Schema({
6
- apiKey: {
7
- type: String,
8
- required: true,
9
- unique: true,
10
- default: () => randomUUID()
11
- },
12
- countryName: {
13
- type: String,
14
- },
15
- countryCode: {
16
- type: String,
17
- },
18
- clientId: {
19
- type: String,
20
- },
21
- },
22
- {
23
- timestamps: true,
24
- strict: true,
25
- versionKey: false,
26
- });
27
-
28
-
29
- collection.index({ apiKey: 1 });
30
-
31
- export default mongoose.model('regionKey', collection, 'regionKey');
1
+ import mongoose from 'mongoose';
2
+ import { randomUUID } from 'crypto';
3
+
4
+ // schema
5
+ const collection = new mongoose.Schema({
6
+ apiKey: {
7
+ type: String,
8
+ required: true,
9
+ unique: true,
10
+ default: () => randomUUID()
11
+ },
12
+ countryName: {
13
+ type: String,
14
+ },
15
+ countryCode: {
16
+ type: String,
17
+ },
18
+ clientId: {
19
+ type: String,
20
+ },
21
+ },
22
+ {
23
+ timestamps: true,
24
+ strict: true,
25
+ versionKey: false,
26
+ });
27
+
28
+
29
+ collection.index({ apiKey: 1 });
30
+
31
+ export default mongoose.model('regionKey', collection, 'regionKey');