tango-api-schema 2.2.95 → 2.2.96

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.
@@ -1,169 +1,169 @@
1
- import mongoose from 'mongoose';
2
-
3
- const processedchecklistconfigSchema = new mongoose.Schema({
4
- client_id: {
5
- type: String,
6
- required:true
7
- },
8
- // brandId: {
9
- // type: mongoose.SchemaTypes.ObjectId,
10
- // required:true
11
- // },
12
- date_iso: {
13
- type: Date,
14
- },
15
- date_string: {
16
- type: String,
17
- },
18
- sourceCheckList_id: {
19
- type: mongoose.Schema.Types.ObjectId,
20
- ref: 'checklistconfig'
21
- },
22
- checkListName: {
23
- type: String,
24
- required:true
25
- },
26
- scheduleStartTime: {
27
- type: String
28
- },
29
- scheduleEndTime: {
30
- type: String
31
- },
32
- scheduleStartTime_iso: {
33
- type: Date
34
- },
35
- scheduleEndTime_iso: {
36
- type: Date
37
- },
38
- allowedOverTime: {
39
- type: Boolean,
40
- default:false
41
- },
42
- allowedStoreLocation: {
43
- type: Boolean,
44
- default:false
45
- },
46
- createdBy: {
47
- type: mongoose.SchemaTypes.ObjectId,
48
- },
49
- createdByName: {
50
- type: String,
51
- },
52
- questionAnswers: {
53
- type: Array
54
- },
55
- createdAt: {
56
- type: Date,
57
- default: Date.now
58
- },
59
- updatedAt: {
60
- type: Date,
61
- default: Date.now
62
- },
63
- isdeleted: {
64
- type: Boolean,
65
- default: false
66
- },
67
- questionCount: {
68
- type: Number,
69
- default: 0
70
- },
71
- storeCount: {
72
- type: Number,
73
- default: 0
74
- },
75
- publishDate: {
76
- type: Date,
77
- },
78
- locationCount: {
79
- type: Number
80
- },
81
- checkListType: {
82
- type: String,
83
- default: "custom",
84
- enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall']
85
- },
86
- startTime:{
87
- type:Date
88
- },
89
- scheduleRepeatedType: {
90
- type: String,
91
- default: '',
92
- enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
93
- },
94
- allowedMultiSubmit: {
95
- type: Boolean,
96
- default:false
97
- },
98
- approver:{
99
- type:Array,
100
- default:[]
101
- },
102
- checkListDescription:{
103
- type: String,
104
- },
105
- remainder:{
106
- type:Array,
107
- default:[]
108
- },
109
- restrictAttendance:{
110
- type:Boolean,
111
- default:false
112
- },
113
- coverage:{
114
- type: String,
115
- default: 'store',
116
- enum: ["store", "user"]
117
- },
118
- isPlano:{
119
- type:Boolean,
120
- },
121
- rawImageUpload: {
122
- type: Boolean,
123
- default:false
124
- },aiStoreList:{
125
- type:Array
126
- },
127
- aiConfig:{
128
- assignConfig: {
129
- type:String
130
- },
131
- events:{
132
- type:Array
133
- },
134
- alerts: {
135
- users:{
136
- type:Array
137
- },
138
- },
139
- storeOpenClose:{
140
- buffer: {
141
- openTime:{
142
- type:Number
143
- },
144
- closeTime:{
145
- type:Number
146
- }
147
- },
148
- },
149
- mobileDetection:{
150
- usageExceed: {
151
- type:Number
152
- },
153
- detectionArea: {
154
- type:Array
155
- }
156
- },
157
- autoTask:{
158
- type:Boolean
159
- }
160
- },
161
- },
162
- {
163
- strict: true,
164
- versionKey: false,
165
- timestamps: true,
166
- },
167
- );
168
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const processedchecklistconfigSchema = new mongoose.Schema({
4
+ client_id: {
5
+ type: String,
6
+ required:true
7
+ },
8
+ // brandId: {
9
+ // type: mongoose.SchemaTypes.ObjectId,
10
+ // required:true
11
+ // },
12
+ date_iso: {
13
+ type: Date,
14
+ },
15
+ date_string: {
16
+ type: String,
17
+ },
18
+ sourceCheckList_id: {
19
+ type: mongoose.Schema.Types.ObjectId,
20
+ ref: 'checklistconfig'
21
+ },
22
+ checkListName: {
23
+ type: String,
24
+ required:true
25
+ },
26
+ scheduleStartTime: {
27
+ type: String
28
+ },
29
+ scheduleEndTime: {
30
+ type: String
31
+ },
32
+ scheduleStartTime_iso: {
33
+ type: Date
34
+ },
35
+ scheduleEndTime_iso: {
36
+ type: Date
37
+ },
38
+ allowedOverTime: {
39
+ type: Boolean,
40
+ default:false
41
+ },
42
+ allowedStoreLocation: {
43
+ type: Boolean,
44
+ default:false
45
+ },
46
+ createdBy: {
47
+ type: mongoose.SchemaTypes.ObjectId,
48
+ },
49
+ createdByName: {
50
+ type: String,
51
+ },
52
+ questionAnswers: {
53
+ type: Array
54
+ },
55
+ createdAt: {
56
+ type: Date,
57
+ default: Date.now
58
+ },
59
+ updatedAt: {
60
+ type: Date,
61
+ default: Date.now
62
+ },
63
+ isdeleted: {
64
+ type: Boolean,
65
+ default: false
66
+ },
67
+ questionCount: {
68
+ type: Number,
69
+ default: 0
70
+ },
71
+ storeCount: {
72
+ type: Number,
73
+ default: 0
74
+ },
75
+ publishDate: {
76
+ type: Date,
77
+ },
78
+ locationCount: {
79
+ type: Number
80
+ },
81
+ checkListType: {
82
+ type: String,
83
+ default: "custom",
84
+ enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall']
85
+ },
86
+ startTime:{
87
+ type:Date
88
+ },
89
+ scheduleRepeatedType: {
90
+ type: String,
91
+ default: '',
92
+ enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
93
+ },
94
+ allowedMultiSubmit: {
95
+ type: Boolean,
96
+ default:false
97
+ },
98
+ approver:{
99
+ type:Array,
100
+ default:[]
101
+ },
102
+ checkListDescription:{
103
+ type: String,
104
+ },
105
+ remainder:{
106
+ type:Array,
107
+ default:[]
108
+ },
109
+ restrictAttendance:{
110
+ type:Boolean,
111
+ default:false
112
+ },
113
+ coverage:{
114
+ type: String,
115
+ default: 'store',
116
+ enum: ["store", "user"]
117
+ },
118
+ isPlano:{
119
+ type:Boolean,
120
+ },
121
+ rawImageUpload: {
122
+ type: Boolean,
123
+ default:false
124
+ },aiStoreList:{
125
+ type:Array
126
+ },
127
+ aiConfig:{
128
+ assignConfig: {
129
+ type:String
130
+ },
131
+ events:{
132
+ type:Array
133
+ },
134
+ alerts: {
135
+ users:{
136
+ type:Array
137
+ },
138
+ },
139
+ storeOpenClose:{
140
+ buffer: {
141
+ openTime:{
142
+ type:Number
143
+ },
144
+ closeTime:{
145
+ type:Number
146
+ }
147
+ },
148
+ },
149
+ mobileDetection:{
150
+ usageExceed: {
151
+ type:Number
152
+ },
153
+ detectionArea: {
154
+ type:Array
155
+ }
156
+ },
157
+ autoTask:{
158
+ type:Boolean
159
+ }
160
+ },
161
+ },
162
+ {
163
+ strict: true,
164
+ versionKey: false,
165
+ timestamps: true,
166
+ },
167
+ );
168
+
169
169
  export default mongoose.model( 'processedchecklistconfig', processedchecklistconfigSchema);