tango-api-schema 2.5.30 → 2.5.32

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.30",
3
+ "version": "2.5.32",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -27,6 +27,9 @@ const checklistassignconfigSchema = new mongoose.Schema({
27
27
  country:{
28
28
  type:String
29
29
  },
30
+ state:{
31
+ type:String
32
+ },
30
33
  checkFlag: {
31
34
  type: Boolean,
32
35
  default:true
@@ -1,395 +1,426 @@
1
1
  import mongoose from 'mongoose';
2
-
2
+
3
3
  const checklistconfigSchema = new mongoose.Schema({
4
- type: {
5
- type: String,
6
- required: true,
7
- enum:['checklist','section']
8
- },
9
- checkListNumber: {
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: {
10
101
  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
102
  default: ''
48
103
  },
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
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', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'unauthorisedentry', 'backroommonitoring', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance']
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
95
204
  },
96
- detectionArea: {
205
+ events: {
97
206
  type: Array
98
207
  },
99
- alert: {
100
- usageExceeds: {
101
- type: Number,
102
- default:''
208
+ alerts: {
209
+ users: {
210
+ type: Array
103
211
  },
104
- alertsTo: {
212
+ },
213
+ alertSendTo: {
214
+ mobile: {
215
+ type: Array
216
+ },
217
+ web: {
105
218
  type: Array
106
219
  }
107
220
  },
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','drinking','bagdetection','inventorycount','carsattended','numberplateinfo','vehicle_check_in','unauthorisedentry','backroommonitoring','outsidebusinesshoursqueuetracking','halfshutter','tvcompliance']
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"]
221
+ storeOpenClose: {
222
+ buffer: {
223
+ openTime: {
224
+ type: Number
225
+ },
226
+ closeTime: {
227
+ type: Number
228
+ }
229
+ },
193
230
  },
194
- isPlano:{
195
- type:Boolean
231
+ mobileDetection: {
232
+ usageExceed: {
233
+ type: Number
234
+ },
235
+ detectionArea: {
236
+ type: Array
237
+ }
196
238
  },
197
- rawImageUpload: {
198
- type: Boolean,
199
- default:false
239
+ autoTask: {
240
+ type: Boolean
200
241
  },
201
- aiConfig: {
202
- assignConfig: {
203
- type:String
204
- },
205
- events:{
206
- type:Array
207
- },
208
- alerts: {
209
- users:{
210
- type:Array
242
+ backroomMonitoring: {
243
+ countAlert: {
244
+ status: {
245
+ type: Boolean
211
246
  },
212
- },
213
- alertSendTo: {
214
- mobile: {
215
- type:Array
247
+ condition: {
248
+ type: String
216
249
  },
217
- web: {
218
- type:Array
219
- }
220
- },
221
- storeOpenClose:{
222
- buffer: {
223
- openTime:{
224
- type:Number
225
- },
226
- closeTime:{
227
- type:Number
228
- }
250
+ value: {
251
+ type: String
229
252
  },
230
253
  },
231
- mobileDetection:{
232
- usageExceed: {
233
- type:Number
254
+ timeSpendAlert: {
255
+ status: {
256
+ type: Boolean
257
+ },
258
+ condition: {
259
+ type: String
260
+ },
261
+ value: {
262
+ type: String
234
263
  },
235
- detectionArea: {
236
- type:Array
237
- }
238
- },
239
- autoTask:{
240
- type:Boolean
241
264
  },
242
- backroomMonitoring: {
243
- countAlert: {
244
- status: {
245
- type:Boolean
246
- },
247
- condition: {
248
- type:String
249
- },
250
- value: {
251
- type:String
252
- },
265
+ hibernation: {
266
+ status: {
267
+ type: Boolean
253
268
  },
254
- timeSpendAlert: {
255
- status: {
256
- type:Boolean
257
- },
258
- condition: {
259
- type:String
260
- },
261
- value: {
262
- type:String
263
- },
269
+ start: {
270
+ type: String
264
271
  },
265
- hibernation: {
266
- status: {
267
- type:Boolean
268
- },
269
- start: {
270
- type:String
271
- },
272
- end: {
273
- type:String
274
- },
272
+ end: {
273
+ type: String
275
274
  },
276
275
  },
277
- detectionArea: {
278
- type:Array
276
+ },
277
+ detectionArea: {
278
+ type: Array
279
+ },
280
+ outsidebusinesshoursqueuetracking: {
281
+ preopentimeconfig: {
282
+ type: String
279
283
  },
280
- outsidebusinesshoursqueuetracking:{
281
- preopentimeconfig:{
282
- type:String
283
- },
284
- preclosetimeconfig:{
285
- type:String
284
+ preclosetimeconfig: {
285
+ type: String
286
+ },
287
+ persondetectiontimethreshold: {
288
+ type: String
289
+ },
290
+ },
291
+ halfshutter: {
292
+ schedule: {
293
+ afterOpenTime: {
294
+ type: Number
286
295
  },
287
- persondetectiontimethreshold:{
288
- type:String
296
+ beforeCloseTime: {
297
+ type: Number
289
298
  },
290
299
  },
291
- halfshutter:{
292
- schedule:{
293
- afterOpenTime:{
294
- type:Number
295
- },
296
- beforeCloseTime:{
297
- type:Number
298
- },
299
- },
300
- },
301
- alertConfig: {
302
- allowBuffer:{
303
- enabled:{
304
- type:Boolean,
305
- default:false
306
- },
307
- afterOpenTime:{
308
- type:Number
309
- },
310
- beforeCloseTime:{
311
- type:Number
312
- },
300
+ },
301
+ tvcompliance: {
302
+ schedule: {
303
+ scheduletype: {
304
+ type: String
313
305
  },
314
- alertSendTo: {
315
- enabled:{
316
- type:Boolean,
317
- default:false
318
- },
319
- syncMobileWeb:{
320
- type:Boolean,
321
- default:false
322
- },
323
- mobile:{
324
- type:Array
325
- },
326
- web:{
327
- type:Array
328
- },
306
+ openTime: {
307
+ type: String
329
308
  },
330
- },
331
- autoTaskConfig:{
332
- enabled:{
333
- type:Boolean,
334
- default:false
309
+ closeTime: {
310
+ type: String
335
311
  },
336
- approver:{
337
- type:Array,
338
- default:[]
312
+ },
313
+ recurrence: {
314
+ status: {
315
+ type: Boolean,
316
+ default: false
339
317
  },
318
+ time: {
319
+ type: Number
320
+ }
340
321
  },
341
- exportConfig:{
342
- enabled:{
343
- type:Boolean,
344
- default:false
322
+ detectedStatus: {
323
+ status: {
324
+ type: Boolean,
325
+ default: false
326
+ },
327
+ detections: {
328
+ type: Number
329
+ },
330
+ },
331
+ },
332
+ alertConfig: {
333
+ allowBuffer: {
334
+ enabled: {
335
+ type: Boolean,
336
+ default: false
345
337
  },
346
- format:{
347
- type:Array,
348
- default:[]
338
+ afterOpenTime: {
339
+ type: Number
340
+ },
341
+ beforeCloseTime: {
342
+ type: Number
349
343
  },
350
344
  },
351
- advancedConfig:{
352
- dataProcessing:{
353
- type:String,
345
+ alertSendTo: {
346
+ enabled: {
347
+ type: Boolean,
348
+ default: false
354
349
  },
355
- detectedStatus:{
356
- enabled:{
357
- type:Boolean,
358
- default:false
359
- },
360
- detections:{
361
- type:Array,
362
- default:[]
363
- },
350
+ syncMobileWeb: {
351
+ type: Boolean,
352
+ default: false
364
353
  },
365
- auditConfig:{
366
- enabled:{
367
- type:Boolean,
368
- default:false
369
- },
370
- inputSourceFile:{
371
- type:String
372
- },
354
+ mobile: {
355
+ type: Array
356
+ },
357
+ web: {
358
+ type: Array
373
359
  },
374
360
  },
375
361
  },
376
- rawVideoUpload: {
377
- type: Boolean,
378
- default:false
362
+ autoTaskConfig: {
363
+ enabled: {
364
+ type: Boolean,
365
+ default: false
366
+ },
367
+ approver: {
368
+ type: Array,
369
+ default: []
370
+ },
379
371
  },
380
- runAIQuestionCount:{
381
- type:Number
372
+ exportConfig: {
373
+ enabled: {
374
+ type: Boolean,
375
+ default: false
376
+ },
377
+ format: {
378
+ type: Array,
379
+ default: []
380
+ },
382
381
  },
383
- videoUploadTimeLimit:{
384
- type:Number,
385
- default:0
382
+ advancedConfig: {
383
+ dataProcessing: {
384
+ type: String,
385
+ },
386
+ detectedStatus: {
387
+ enabled: {
388
+ type: Boolean,
389
+ default: false
390
+ },
391
+ detections: {
392
+ type: Array,
393
+ default: []
394
+ },
395
+ },
396
+ auditConfig: {
397
+ enabled: {
398
+ type: Boolean,
399
+ default: false
400
+ },
401
+ inputSourceFile: {
402
+ type: String
403
+ },
404
+ },
386
405
  },
387
406
  },
407
+ rawVideoUpload: {
408
+ type: Boolean,
409
+ default: false
410
+ },
411
+ runAIQuestionCount: {
412
+ type: Number
413
+ },
414
+ videoUploadTimeLimit: {
415
+ type: Number,
416
+ default: 0
417
+ },
418
+ },
388
419
  {
389
420
  strict: true,
390
421
  versionKey: false,
391
422
  timestamps: true,
392
423
  },
393
424
  );
394
-
395
- export default mongoose.model( 'checklistconfig', checklistconfigSchema);
425
+
426
+ export default mongoose.model('checklistconfig', checklistconfigSchema);
@@ -92,6 +92,10 @@ const processedchecklistSchema = new mongoose.Schema({
92
92
  required:false,
93
93
  default:''
94
94
  },
95
+ state:{
96
+ type:String,
97
+ default:''
98
+ },
95
99
  storeName: {
96
100
  type: String,
97
101
  default:''
@@ -27,6 +27,9 @@ const taskassignconfigSchema = new mongoose.Schema({
27
27
  country:{
28
28
  type:String
29
29
  },
30
+ state:{
31
+ type:String
32
+ },
30
33
  checkFlag: {
31
34
  type: Boolean,
32
35
  default:true
@@ -89,6 +89,11 @@ const processedTaskSchema = new mongoose.Schema(
89
89
  required:false,
90
90
  default:''
91
91
  },
92
+ state: {
93
+ type: String,
94
+ required:false,
95
+ default:''
96
+ },
92
97
  storeName: {
93
98
  type: String,
94
99
  default:''