tango-api-schema 2.5.32 → 2.5.34

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.5.32",
3
+ "version": "2.5.34",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -68,8 +68,7 @@ const fixtureShelfSchema = new mongoose.Schema(
68
68
  default: '',
69
69
  },
70
70
  antennaNo: {
71
- type: Number,
72
- default: 0,
71
+ type: Array,
73
72
  },
74
73
  },
75
74
  {
@@ -1,326 +1,357 @@
1
1
  import mongoose from 'mongoose';
2
-
2
+
3
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: {
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', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'unauthorisedentry', 'backroommonitoring', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance']
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
+ webnotification: {
122
+ type: Boolean,
123
+ default: false
124
+ },
125
+ rawImageUpload: {
126
+ type: Boolean,
127
+ default: false
128
+ },
129
+ aiStoreList: {
130
+ type: Array
131
+ },
132
+ aiConfig: {
133
+ assignConfig: {
30
134
  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
135
  },
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: {
136
+ events: {
53
137
  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','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter','tvcompliance']
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
138
  },
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,
139
+ alerts: {
140
+ users: {
141
+ type: Array
142
+ },
120
143
  },
121
- webnotification:{
122
- type:Boolean,
123
- default:false
144
+ alertSendTo: {
145
+ mobile: {
146
+ type: Array
147
+ },
148
+ web: {
149
+ type: Array
150
+ }
151
+ },
152
+ storeOpenClose: {
153
+ buffer: {
154
+ openTime: {
155
+ type: Number
156
+ },
157
+ closeTime: {
158
+ type: Number
159
+ }
160
+ },
124
161
  },
125
- rawImageUpload: {
126
- type: Boolean,
127
- default:false
162
+ mobileDetection: {
163
+ usageExceed: {
164
+ type: Number
165
+ },
166
+ detectionArea: {
167
+ type: Array
168
+ }
128
169
  },
129
- aiStoreList:{
130
- type:Array
170
+ autoTask: {
171
+ type: Boolean
131
172
  },
132
- aiConfig: {
133
- assignConfig: {
134
- type:String
135
- },
136
- events:{
137
- type:Array
138
- },
139
- alerts: {
140
- users:{
141
- type:Array
173
+ backroomMonitoring: {
174
+ countAlert: {
175
+ status: {
176
+ type: Boolean
142
177
  },
143
- },
144
- alertSendTo: {
145
- mobile: {
146
- type:Array
178
+ condition: {
179
+ type: String
147
180
  },
148
- web: {
149
- type:Array
150
- }
151
- },
152
- storeOpenClose:{
153
- buffer: {
154
- openTime:{
155
- type:Number
156
- },
157
- closeTime:{
158
- type:Number
159
- }
181
+ value: {
182
+ type: String
160
183
  },
161
184
  },
162
- mobileDetection:{
163
- usageExceed: {
164
- type:Number
185
+ timeSpendAlert: {
186
+ status: {
187
+ type: Boolean
188
+ },
189
+ condition: {
190
+ type: String
191
+ },
192
+ value: {
193
+ type: String
165
194
  },
166
- detectionArea: {
167
- type:Array
168
- }
169
- },
170
- autoTask:{
171
- type:Boolean
172
195
  },
173
- backroomMonitoring: {
174
- countAlert: {
175
- status: {
176
- type:Boolean
177
- },
178
- condition: {
179
- type:String
180
- },
181
- value: {
182
- type:String
183
- },
196
+ hibernation: {
197
+ status: {
198
+ type: Boolean
184
199
  },
185
- timeSpendAlert: {
186
- status: {
187
- type:Boolean
188
- },
189
- condition: {
190
- type:String
191
- },
192
- value: {
193
- type:String
194
- },
200
+ start: {
201
+ type: String
195
202
  },
196
- hibernation: {
197
- status: {
198
- type:Boolean
199
- },
200
- start: {
201
- type:String
202
- },
203
- end: {
204
- type:String
205
- },
203
+ end: {
204
+ type: String
206
205
  },
207
206
  },
208
- detectionArea: {
209
- type:Array
207
+ },
208
+ detectionArea: {
209
+ type: Array
210
+ },
211
+ outsidebusinesshoursqueuetracking: {
212
+ preopentimeconfig: {
213
+ type: String
210
214
  },
211
- outsidebusinesshoursqueuetracking:{
212
- preopentimeconfig:{
213
- type:String
214
- },
215
- preclosetimeconfig:{
216
- type:String
215
+ preclosetimeconfig: {
216
+ type: String
217
+ },
218
+ persondetectiontimethreshold: {
219
+ type: String
220
+ },
221
+ },
222
+ halfshutter: {
223
+ schedule: {
224
+ afterOpenTime: {
225
+ type: Number
217
226
  },
218
- persondetectiontimethreshold:{
219
- type:String
227
+ beforeCloseTime: {
228
+ type: Number
220
229
  },
221
230
  },
222
- halfshutter:{
223
- schedule:{
224
- afterOpenTime:{
225
- type:Number
226
- },
227
- beforeCloseTime:{
228
- type:Number
229
- },
231
+ },
232
+ tvcompliance: {
233
+ schedule: {
234
+ scheduletype: {
235
+ type: String
230
236
  },
231
- },
232
- alertConfig: {
233
- allowBuffer:{
234
- enabled:{
235
- type:Boolean,
236
- default:false
237
- },
238
- afterOpenTime:{
239
- type:Number
240
- },
241
- beforeCloseTime:{
242
- type:Number
243
- },
237
+ openTime: {
238
+ type: String
244
239
  },
245
- alertSendTo: {
246
- enabled:{
247
- type:Boolean,
248
- default:false
249
- },
250
- syncMobileWeb:{
251
- type:Boolean,
252
- default:false
253
- },
254
- mobile:{
255
- type:Array
256
- },
257
- web:{
258
- type:Array
259
- },
240
+ closeTime: {
241
+ type: String
260
242
  },
261
- },
262
- autoTaskConfig:{
263
- enabled:{
264
- type:Boolean,
265
- default:false
243
+ },
244
+ recurrence: {
245
+ status: {
246
+ type: Boolean,
247
+ default: false
248
+ },
249
+ time: {
250
+ type: Number
251
+ }
252
+ },
253
+ detectedStatus: {
254
+ status: {
255
+ type: Boolean,
256
+ default: false
266
257
  },
267
- approver:{
268
- type:Array,
269
- default:[]
258
+ detections: {
259
+ type: Number
270
260
  },
271
261
  },
272
- exportConfig:{
273
- enabled:{
274
- type:Boolean,
275
- default:false
262
+ },
263
+ alertConfig: {
264
+ allowBuffer: {
265
+ enabled: {
266
+ type: Boolean,
267
+ default: false
268
+ },
269
+ afterOpenTime: {
270
+ type: Number
276
271
  },
277
- format:{
278
- type:Array,
279
- default:[]
272
+ beforeCloseTime: {
273
+ type: Number
280
274
  },
281
275
  },
282
- advancedConfig:{
283
- dataProcessing:{
284
- type:String,
276
+ alertSendTo: {
277
+ enabled: {
278
+ type: Boolean,
279
+ default: false
285
280
  },
286
- detectedStatus:{
287
- enabled:{
288
- type:Boolean,
289
- default:false
290
- },
291
- detections:{
292
- type:Array,
293
- default:[]
294
- },
281
+ syncMobileWeb: {
282
+ type: Boolean,
283
+ default: false
295
284
  },
296
- auditConfig:{
297
- enabled:{
298
- type:Boolean,
299
- default:false
300
- },
301
- inputSourceFile:{
302
- type:String
303
- },
285
+ mobile: {
286
+ type: Array
287
+ },
288
+ web: {
289
+ type: Array
304
290
  },
305
291
  },
306
292
  },
307
- rawVideoUpload: {
308
- type: Boolean,
309
- default:false
293
+ autoTaskConfig: {
294
+ enabled: {
295
+ type: Boolean,
296
+ default: false
297
+ },
298
+ approver: {
299
+ type: Array,
300
+ default: []
301
+ },
310
302
  },
311
- runAIQuestionCount:{
312
- type:Number
303
+ exportConfig: {
304
+ enabled: {
305
+ type: Boolean,
306
+ default: false
307
+ },
308
+ format: {
309
+ type: Array,
310
+ default: []
311
+ },
313
312
  },
314
- videoUploadTimeLimit:{
315
- type:Number,
316
- default:0
313
+ advancedConfig: {
314
+ dataProcessing: {
315
+ type: String,
316
+ },
317
+ detectedStatus: {
318
+ enabled: {
319
+ type: Boolean,
320
+ default: false
321
+ },
322
+ detections: {
323
+ type: Array,
324
+ default: []
325
+ },
326
+ },
327
+ auditConfig: {
328
+ enabled: {
329
+ type: Boolean,
330
+ default: false
331
+ },
332
+ inputSourceFile: {
333
+ type: String
334
+ },
335
+ },
317
336
  },
318
337
  },
338
+ rawVideoUpload: {
339
+ type: Boolean,
340
+ default: false
341
+ },
342
+ runAIQuestionCount: {
343
+ type: Number
344
+ },
345
+ videoUploadTimeLimit: {
346
+ type: Number,
347
+ default: 0
348
+ },
349
+ },
319
350
  {
320
351
  strict: true,
321
352
  versionKey: false,
322
353
  timestamps: true,
323
354
  },
324
355
  );
325
-
326
- export default mongoose.model( 'processedchecklistconfig', processedchecklistconfigSchema);
356
+
357
+ export default mongoose.model('processedchecklistconfig', processedchecklistconfigSchema);
@@ -158,7 +158,7 @@ const storeFixtureSchema = new mongoose.Schema(
158
158
  default: true,
159
159
  },
160
160
  antennaNo:{
161
- type:Number
161
+ type:Array
162
162
  }
163
163
  },
164
164
  isBodyEnabled: {