tango-api-schema 2.6.9 → 2.6.11
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
|
@@ -681,6 +681,38 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
},
|
|
684
|
+
detectionConfig:[
|
|
685
|
+
{
|
|
686
|
+
detectionType:{
|
|
687
|
+
type:String
|
|
688
|
+
},
|
|
689
|
+
enabled: {
|
|
690
|
+
type: Boolean,
|
|
691
|
+
default: false
|
|
692
|
+
},
|
|
693
|
+
duration: {
|
|
694
|
+
type: Number,
|
|
695
|
+
default: 2
|
|
696
|
+
},
|
|
697
|
+
durationUnit: {
|
|
698
|
+
type: String,
|
|
699
|
+
enum: ['sec', 'min', 'hour'],
|
|
700
|
+
default: 'sec'
|
|
701
|
+
},
|
|
702
|
+
condition: {
|
|
703
|
+
type: String,
|
|
704
|
+
enum: ['<', '>', '=', '!=', '>=', '<='],
|
|
705
|
+
default: '>'
|
|
706
|
+
},
|
|
707
|
+
detections: {
|
|
708
|
+
type: Number,
|
|
709
|
+
default: 0
|
|
710
|
+
},
|
|
711
|
+
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
]
|
|
684
716
|
},
|
|
685
717
|
rawVideoUpload: {
|
|
686
718
|
type: Boolean,
|
|
@@ -600,6 +600,59 @@ const processedchecklistconfigSchema = new mongoose.Schema({
|
|
|
600
600
|
},
|
|
601
601
|
},
|
|
602
602
|
},
|
|
603
|
+
schedule:{
|
|
604
|
+
scheduletype: {
|
|
605
|
+
type: String
|
|
606
|
+
},
|
|
607
|
+
times:{
|
|
608
|
+
type:Array
|
|
609
|
+
},
|
|
610
|
+
recurrence: {
|
|
611
|
+
status: {
|
|
612
|
+
type: Boolean,
|
|
613
|
+
default: false
|
|
614
|
+
},
|
|
615
|
+
time: {
|
|
616
|
+
type: Number
|
|
617
|
+
},
|
|
618
|
+
type: {
|
|
619
|
+
type: String
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
detectionConfig:[
|
|
624
|
+
{
|
|
625
|
+
detectionType:{
|
|
626
|
+
type:String
|
|
627
|
+
},
|
|
628
|
+
enabled: {
|
|
629
|
+
type: Boolean,
|
|
630
|
+
default: false
|
|
631
|
+
},
|
|
632
|
+
duration: {
|
|
633
|
+
type: Number,
|
|
634
|
+
default: 2
|
|
635
|
+
|
|
636
|
+
},
|
|
637
|
+
durationUnit: {
|
|
638
|
+
type: String,
|
|
639
|
+
enum: ['sec', 'min', 'hour'],
|
|
640
|
+
default: 'sec'
|
|
641
|
+
},
|
|
642
|
+
condition: {
|
|
643
|
+
type: String,
|
|
644
|
+
enum: ['<', '>', '=', '!=', '>=', '<='],
|
|
645
|
+
default: '>'
|
|
646
|
+
},
|
|
647
|
+
detections: {
|
|
648
|
+
type: Number,
|
|
649
|
+
default: 0
|
|
650
|
+
},
|
|
651
|
+
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
]
|
|
603
656
|
},
|
|
604
657
|
rawVideoUpload: {
|
|
605
658
|
type: Boolean,
|
|
@@ -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');
|