tango-api-schema 2.5.84 → 2.5.86
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/index.js
CHANGED
|
@@ -125,6 +125,7 @@ import customZonetagsModel from "./schema/customZonetags.model.js";
|
|
|
125
125
|
import zonegroupsModel from "./schema/zonegroups.model.js";
|
|
126
126
|
import pidAllocationEngine from "./schema/pidAllocationEngine.model.js";
|
|
127
127
|
import audioStaticValueModel from "./schema/audioStaticValue.model.js";
|
|
128
|
+
import recurringFlagTrackerModel from "./schema/recurringFlagTracker.model.js";
|
|
128
129
|
|
|
129
130
|
|
|
130
131
|
export default {
|
|
@@ -251,5 +252,6 @@ export default {
|
|
|
251
252
|
customZonetagsModel,
|
|
252
253
|
zonegroupsModel,
|
|
253
254
|
pidAllocationEngine,
|
|
254
|
-
audioStaticValueModel
|
|
255
|
+
audioStaticValueModel,
|
|
256
|
+
recurringFlagTrackerModel
|
|
255
257
|
};
|
package/package.json
CHANGED
|
@@ -609,6 +609,20 @@ const checklistconfigSchema = new mongoose.Schema({
|
|
|
609
609
|
default: []
|
|
610
610
|
}
|
|
611
611
|
},
|
|
612
|
+
recurringFlag:{
|
|
613
|
+
notifyType:{
|
|
614
|
+
type:Array,
|
|
615
|
+
default:[]
|
|
616
|
+
},
|
|
617
|
+
users:{
|
|
618
|
+
type:Array,
|
|
619
|
+
default:[]
|
|
620
|
+
},
|
|
621
|
+
threshold:{
|
|
622
|
+
type:Number,
|
|
623
|
+
default:0
|
|
624
|
+
}
|
|
625
|
+
},
|
|
612
626
|
complianceCount: {
|
|
613
627
|
type: Number
|
|
614
628
|
},
|
|
@@ -24,6 +24,16 @@ const findReplaceAi = new mongoose.Schema(
|
|
|
24
24
|
},
|
|
25
25
|
replacePrompt: {
|
|
26
26
|
type: String,
|
|
27
|
+
},
|
|
28
|
+
replaceBrand: {
|
|
29
|
+
_id: { type: String },
|
|
30
|
+
brandName: { type: String },
|
|
31
|
+
},
|
|
32
|
+
replaceVm: {
|
|
33
|
+
_id: { type: String },
|
|
34
|
+
vmName: { type: String },
|
|
35
|
+
vmType: { type: String },
|
|
36
|
+
vmBrand: { type: String },
|
|
27
37
|
},
|
|
28
38
|
stores: [
|
|
29
39
|
{
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
store_id: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
storeName: {
|
|
21
|
+
type: String,
|
|
22
|
+
},
|
|
23
|
+
section_id: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
sectionName: {
|
|
27
|
+
type: String,
|
|
28
|
+
},
|
|
29
|
+
qno: {
|
|
30
|
+
type: String,
|
|
31
|
+
},
|
|
32
|
+
qname: {
|
|
33
|
+
type: String,
|
|
34
|
+
},
|
|
35
|
+
consecutiveCount: {
|
|
36
|
+
type: Number,
|
|
37
|
+
default: 0,
|
|
38
|
+
},
|
|
39
|
+
lastFlaggedDate: {
|
|
40
|
+
type: String,
|
|
41
|
+
},
|
|
42
|
+
lastEmailDate: {
|
|
43
|
+
type: String,
|
|
44
|
+
},
|
|
45
|
+
lastSubmittedBy: {
|
|
46
|
+
type: String,
|
|
47
|
+
},
|
|
48
|
+
lastSubmissionDate: {
|
|
49
|
+
type: String,
|
|
50
|
+
},
|
|
51
|
+
}, {
|
|
52
|
+
strict: true,
|
|
53
|
+
versionKey: false,
|
|
54
|
+
timestamps: true,
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
recurringFlagTrackerSchema.index({
|
|
58
|
+
client_id: 1,
|
|
59
|
+
sourceCheckList_id: 1,
|
|
60
|
+
store_id: 1,
|
|
61
|
+
section_id: 1,
|
|
62
|
+
qno: 1,
|
|
63
|
+
}, { unique: true });
|
|
64
|
+
|
|
65
|
+
export default mongoose.model('recurringFlagTracker', recurringFlagTrackerSchema);
|