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,243 +1,243 @@
1
- import mongoose from 'mongoose';
2
-
3
- const checklistconfigSchema = new mongoose.Schema({
4
- type: {
5
- type: String,
6
- required: true,
7
- enum:['checklist','section']
8
- },
9
- checkListNumber: {
10
- type: Number,
11
- },
12
- checkListName: {
13
- type: String,
14
- },
15
- checkListDescription:{
16
- type: String,
17
- },
18
- // sectionNumber: {
19
- // type: Number
20
- // },
21
- // sectionName: {
22
- // type: String
23
- // },
24
- createdBy: {
25
- type: mongoose.SchemaTypes.ObjectId,
26
- required: true
27
- },
28
- createdByName: {
29
- type: String,
30
- required: true
31
- },
32
- publish: {
33
- type: Boolean,
34
- default: false
35
- },
36
- schedule: {
37
- type: String,
38
- default: 'onetime',
39
- enum: ["daily", "weekly", "monthly","range", "onetime",'weekday']
40
- },
41
- scheduleRepeatedDay: {
42
- type: Array,
43
- default:[]
44
- },
45
- scheduleStartTime: {
46
- type: String,
47
- default: ''
48
- },
49
- scheduleStartTimeISO: {
50
- type: Date
51
- },
52
- scheduleEndTime: {
53
- type: String,
54
- default: ''
55
- },
56
- scheduleEndTimeISO: {
57
- type: Date
58
- },
59
- scheduleDate: {
60
- type: Date,
61
- default: Date.now
62
- },
63
- configStartDate:{
64
- type:Date,
65
- default:''
66
- },
67
- configEndDate:{
68
- type:Date,
69
- default:''
70
- },
71
- specificDate:{
72
- type:Array,
73
- default:[]
74
- },
75
- scheduleWeekDays:{
76
- type:Array,
77
- default:[]
78
- },
79
- scheduleRepeatedMonthSetup: {
80
- type: String,
81
- enum: ["day", "date","specific",""],
82
- default:'date'
83
- },
84
- scheduleRepeatedMonthDate: {
85
- type: String,
86
- default:''
87
- },
88
- allowedOverTime: {
89
- type: Boolean,
90
- default:false
91
- },
92
- allowedStoreLocation: {
93
- type: Boolean,
94
- default:false
95
- },
96
- detectionArea: {
97
- type: Array
98
- },
99
- alert: {
100
- usageExceeds: {
101
- type: Number,
102
- default:''
103
- },
104
- alertsTo: {
105
- type: Array
106
- }
107
- },
108
- client_id: {
109
- type: String
110
- },
111
- // brandId: {
112
- // type: mongoose.SchemaTypes.ObjectId
113
- // },
114
- questionCount: {
115
- type: Number,
116
- default:0
117
- },
118
- storeCount: {
119
- type: Number,
120
- default: 0
121
- },
122
- publishDate: {
123
- type: Date,
124
- },
125
- locationCount:{
126
- type:Number
127
- },
128
- checkListId:{
129
- type:mongoose.SchemaTypes.ObjectId
130
- },
131
- checkListType:{
132
- type:String,
133
- default:"custom",
134
- enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall']
135
- },
136
- createdAt: {
137
- type: Date,
138
- default: Date.now
139
- },
140
- updatedAt: {
141
- type: Date,
142
- default: Date.now
143
- },
144
- isdeleted: {
145
- type: Boolean,
146
- default: false
147
- },
148
- markasread:{
149
- type:Boolean,
150
- default:false
151
- },
152
- allowedMultiSubmit: {
153
- type: Boolean,
154
- default:false
155
- },
156
- allowOnce:{
157
- type:Boolean,
158
- default:false
159
- },
160
- scheduleRepeatedMonthWeek:{
161
- type:String,
162
- default:''
163
- },
164
- scheduleRepeatedType: {
165
- type: String,
166
- default: '',
167
- enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
168
- },
169
- approver:{
170
- type:Array,
171
- default:[]
172
- },
173
- remainder:{
174
- type:Array,
175
- default:[]
176
- },
177
- owner:{
178
- type:Array,
179
- default:[]
180
- },
181
- restrictAttendance:{
182
- type:Boolean,
183
- default:false
184
- },
185
- enableNewDeployedStore:{
186
- type:Boolean,
187
- default:false
188
- },
189
- coverage:{
190
- type: String,
191
- default: 'store',
192
- enum: ["store", "user"]
193
- },
194
- isPlano:{
195
- type:Boolean
196
- },
197
- rawImageUpload: {
198
- type: Boolean,
199
- default:false
200
- },
201
- aiConfig:{
202
- assignConfig: {
203
- type:String
204
- },
205
- events:{
206
- type:Array
207
- },
208
- alerts: {
209
- users:{
210
- type:Array
211
- },
212
- },
213
- storeOpenClose:{
214
- buffer: {
215
- openTime:{
216
- type:Number
217
- },
218
- closeTime:{
219
- type:Number
220
- }
221
- },
222
- },
223
- mobileDetection:{
224
- usageExceed: {
225
- type:Number
226
- },
227
- detectionArea: {
228
- type:Array
229
- }
230
- },
231
- autoTask:{
232
- type:Boolean
233
- }
234
- },
235
- },
236
- {
237
- strict: true,
238
- versionKey: false,
239
- timestamps: true,
240
- },
241
- );
242
-
1
+ import mongoose from 'mongoose';
2
+
3
+ const checklistconfigSchema = new mongoose.Schema({
4
+ type: {
5
+ type: String,
6
+ required: true,
7
+ enum:['checklist','section']
8
+ },
9
+ checkListNumber: {
10
+ type: Number,
11
+ },
12
+ checkListName: {
13
+ type: String,
14
+ },
15
+ checkListDescription:{
16
+ type: String,
17
+ },
18
+ // sectionNumber: {
19
+ // type: Number
20
+ // },
21
+ // sectionName: {
22
+ // type: String
23
+ // },
24
+ createdBy: {
25
+ type: mongoose.SchemaTypes.ObjectId,
26
+ required: true
27
+ },
28
+ createdByName: {
29
+ type: String,
30
+ required: true
31
+ },
32
+ publish: {
33
+ type: Boolean,
34
+ default: false
35
+ },
36
+ schedule: {
37
+ type: String,
38
+ default: 'onetime',
39
+ enum: ["daily", "weekly", "monthly","range", "onetime",'weekday']
40
+ },
41
+ scheduleRepeatedDay: {
42
+ type: Array,
43
+ default:[]
44
+ },
45
+ scheduleStartTime: {
46
+ type: String,
47
+ default: ''
48
+ },
49
+ scheduleStartTimeISO: {
50
+ type: Date
51
+ },
52
+ scheduleEndTime: {
53
+ type: String,
54
+ default: ''
55
+ },
56
+ scheduleEndTimeISO: {
57
+ type: Date
58
+ },
59
+ scheduleDate: {
60
+ type: Date,
61
+ default: Date.now
62
+ },
63
+ configStartDate:{
64
+ type:Date,
65
+ default:''
66
+ },
67
+ configEndDate:{
68
+ type:Date,
69
+ default:''
70
+ },
71
+ specificDate:{
72
+ type:Array,
73
+ default:[]
74
+ },
75
+ scheduleWeekDays:{
76
+ type:Array,
77
+ default:[]
78
+ },
79
+ scheduleRepeatedMonthSetup: {
80
+ type: String,
81
+ enum: ["day", "date","specific",""],
82
+ default:'date'
83
+ },
84
+ scheduleRepeatedMonthDate: {
85
+ type: String,
86
+ default:''
87
+ },
88
+ allowedOverTime: {
89
+ type: Boolean,
90
+ default:false
91
+ },
92
+ allowedStoreLocation: {
93
+ type: Boolean,
94
+ default:false
95
+ },
96
+ detectionArea: {
97
+ type: Array
98
+ },
99
+ alert: {
100
+ usageExceeds: {
101
+ type: Number,
102
+ default:''
103
+ },
104
+ alertsTo: {
105
+ type: Array
106
+ }
107
+ },
108
+ client_id: {
109
+ type: String
110
+ },
111
+ // brandId: {
112
+ // type: mongoose.SchemaTypes.ObjectId
113
+ // },
114
+ questionCount: {
115
+ type: Number,
116
+ default:0
117
+ },
118
+ storeCount: {
119
+ type: Number,
120
+ default: 0
121
+ },
122
+ publishDate: {
123
+ type: Date,
124
+ },
125
+ locationCount:{
126
+ type:Number
127
+ },
128
+ checkListId:{
129
+ type:mongoose.SchemaTypes.ObjectId
130
+ },
131
+ checkListType:{
132
+ type:String,
133
+ default:"custom",
134
+ enum: ["storeopenandclose","mobileusagedetection","uniformdetection","custom","customerunattended","staffleftinthemiddle",'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum','suspiciousactivity','boxalert','suspiciousfootfall']
135
+ },
136
+ createdAt: {
137
+ type: Date,
138
+ default: Date.now
139
+ },
140
+ updatedAt: {
141
+ type: Date,
142
+ default: Date.now
143
+ },
144
+ isdeleted: {
145
+ type: Boolean,
146
+ default: false
147
+ },
148
+ markasread:{
149
+ type:Boolean,
150
+ default:false
151
+ },
152
+ allowedMultiSubmit: {
153
+ type: Boolean,
154
+ default:false
155
+ },
156
+ allowOnce:{
157
+ type:Boolean,
158
+ default:false
159
+ },
160
+ scheduleRepeatedMonthWeek:{
161
+ type:String,
162
+ default:''
163
+ },
164
+ scheduleRepeatedType: {
165
+ type: String,
166
+ default: '',
167
+ enum: ["daily", "weekly", "monthly","range","onetime","weekday",""]
168
+ },
169
+ approver:{
170
+ type:Array,
171
+ default:[]
172
+ },
173
+ remainder:{
174
+ type:Array,
175
+ default:[]
176
+ },
177
+ owner:{
178
+ type:Array,
179
+ default:[]
180
+ },
181
+ restrictAttendance:{
182
+ type:Boolean,
183
+ default:false
184
+ },
185
+ enableNewDeployedStore:{
186
+ type:Boolean,
187
+ default:false
188
+ },
189
+ coverage:{
190
+ type: String,
191
+ default: 'store',
192
+ enum: ["store", "user"]
193
+ },
194
+ isPlano:{
195
+ type:Boolean
196
+ },
197
+ rawImageUpload: {
198
+ type: Boolean,
199
+ default:false
200
+ },
201
+ aiConfig:{
202
+ assignConfig: {
203
+ type:String
204
+ },
205
+ events:{
206
+ type:Array
207
+ },
208
+ alerts: {
209
+ users:{
210
+ type:Array
211
+ },
212
+ },
213
+ storeOpenClose:{
214
+ buffer: {
215
+ openTime:{
216
+ type:Number
217
+ },
218
+ closeTime:{
219
+ type:Number
220
+ }
221
+ },
222
+ },
223
+ mobileDetection:{
224
+ usageExceed: {
225
+ type:Number
226
+ },
227
+ detectionArea: {
228
+ type:Array
229
+ }
230
+ },
231
+ autoTask:{
232
+ type:Boolean
233
+ }
234
+ },
235
+ },
236
+ {
237
+ strict: true,
238
+ versionKey: false,
239
+ timestamps: true,
240
+ },
241
+ );
242
+
243
243
  export default mongoose.model( 'checklistconfig', checklistconfigSchema);