tango-api-schema 2.4.0 → 2.4.2

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,28 +1,28 @@
1
- {
2
- "name": "tango-api-schema",
3
- "version": "2.4.0",
4
- "description": "tangoEye model schema",
5
- "main": "index.js",
6
- "type": "module",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
9
- "start": "node index.js",
10
- "build:patch": "node build.js patch && npm publish",
11
- "build:minor": "node build.js minor && npm publish",
12
- "build:major": "node build.js major && npm publish"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
17
- },
18
- "author": "praveenraj",
19
- "license": "ISC",
20
- "bugs": {
21
- "url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
22
- },
23
- "homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
24
- "dependencies": {
25
- "express": "^4.21.1",
26
- "mongoose": "^7.5.3"
27
- }
1
+ {
2
+ "name": "tango-api-schema",
3
+ "version": "2.4.2",
4
+ "description": "tangoEye model schema",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "start": "node index.js",
10
+ "build:patch": "node build.js patch && npm publish",
11
+ "build:minor": "node build.js minor && npm publish",
12
+ "build:major": "node build.js major && npm publish"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
17
+ },
18
+ "author": "praveenraj",
19
+ "license": "ISC",
20
+ "bugs": {
21
+ "url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
22
+ },
23
+ "homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
24
+ "dependencies": {
25
+ "express": "^4.21.1",
26
+ "mongoose": "^7.5.3"
27
+ }
28
28
  }
@@ -29,6 +29,9 @@ const appVersionSchema = new mongoose.Schema({
29
29
  clientId: {
30
30
  type: String,
31
31
  },
32
+ scanditKey:{
33
+ type:String
34
+ }
32
35
  },
33
36
  {
34
37
  strict: true,
@@ -131,7 +131,7 @@ const checklistconfigSchema = new mongoose.Schema({
131
131
  checkListType:{
132
132
  type:String,
133
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']
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']
135
135
  },
136
136
  createdAt: {
137
137
  type: Date,
@@ -209,7 +209,7 @@ const checklistconfigSchema = new mongoose.Schema({
209
209
  users:{
210
210
  type:Array
211
211
  },
212
- },
212
+ },
213
213
  alertSendTo: {
214
214
  mobile: {
215
215
  type:Array
@@ -288,6 +288,97 @@ const checklistconfigSchema = new mongoose.Schema({
288
288
  type:String
289
289
  },
290
290
  },
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
+ },
313
+ },
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
+ },
329
+ },
330
+ },
331
+ autoTaskConfig:{
332
+ enabled:{
333
+ type:Boolean,
334
+ default:false
335
+ },
336
+ approver:{
337
+ type:Array,
338
+ default:[]
339
+ },
340
+ },
341
+ exportConfig:{
342
+ enabled:{
343
+ type:Boolean,
344
+ default:false
345
+ },
346
+ format:{
347
+ type:Array,
348
+ default:[]
349
+ },
350
+ },
351
+ advancedConfig:{
352
+ dataProcessing:{
353
+ live:{
354
+ type:Boolean,
355
+ default:false
356
+ },
357
+ daily:{
358
+ type:Boolean,
359
+ default:false
360
+ },
361
+ },
362
+ detectedStatus:{
363
+ enabled:{
364
+ type:Boolean,
365
+ default:false
366
+ },
367
+ detections:{
368
+ type:Array,
369
+ default:[]
370
+ },
371
+ },
372
+ auditConfig:{
373
+ enabled:{
374
+ type:Boolean,
375
+ default:false
376
+ },
377
+ inputSourceFile:{
378
+ type:String
379
+ },
380
+ },
381
+ },
291
382
  },
292
383
  rawVideoUpload: {
293
384
  type: Boolean,
@@ -211,6 +211,12 @@ const fixtureConfigSchema = new mongoose.Schema(
211
211
  },
212
212
  isEdited: {
213
213
  type: Boolean,
214
+ },
215
+ templateGroupNumber:{
216
+ type:Number
217
+ },
218
+ templateGroupMax:{
219
+ type:Number
214
220
  }
215
221
  },
216
222
  {
@@ -348,6 +348,16 @@ const planoTaskCompliance = new mongoose.Schema(
348
348
  }
349
349
  ]
350
350
  }
351
+ ],
352
+ zoneStatus:[
353
+ {
354
+ zone:{
355
+ type:String
356
+ },
357
+ status:{
358
+ type:String
359
+ }
360
+ }
351
361
  ]
352
362
  }],
353
363
  planoId: {
@@ -81,7 +81,7 @@ const processedchecklistSchema = new mongoose.Schema({
81
81
  checkListType: {
82
82
  type: String,
83
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']
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']
85
85
  },
86
86
  store_id: {
87
87
  type: String,
@@ -81,7 +81,7 @@ const processedchecklistconfigSchema = new mongoose.Schema({
81
81
  checkListType: {
82
82
  type: String,
83
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']
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']
85
85
  },
86
86
  startTime:{
87
87
  type:Date
@@ -140,7 +140,7 @@ const processedchecklistconfigSchema = new mongoose.Schema({
140
140
  users:{
141
141
  type:Array
142
142
  },
143
- },
143
+ },
144
144
  alertSendTo: {
145
145
  mobile: {
146
146
  type:Array
@@ -219,6 +219,97 @@ const processedchecklistconfigSchema = new mongoose.Schema({
219
219
  type:String
220
220
  },
221
221
  },
222
+ halfshutter:{
223
+ schedule:{
224
+ afterOpenTime:{
225
+ type:Number
226
+ },
227
+ beforeCloseTime:{
228
+ type:Number
229
+ },
230
+ },
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
+ },
244
+ },
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
+ },
260
+ },
261
+ },
262
+ autoTaskConfig:{
263
+ enabled:{
264
+ type:Boolean,
265
+ default:false
266
+ },
267
+ approver:{
268
+ type:Array,
269
+ default:[]
270
+ },
271
+ },
272
+ exportConfig:{
273
+ enabled:{
274
+ type:Boolean,
275
+ default:false
276
+ },
277
+ format:{
278
+ type:Array,
279
+ default:[]
280
+ },
281
+ },
282
+ advancedConfig:{
283
+ dataProcessing:{
284
+ live:{
285
+ type:Boolean,
286
+ default:false
287
+ },
288
+ daily:{
289
+ type:Boolean,
290
+ default:false
291
+ },
292
+ },
293
+ detectedStatus:{
294
+ enabled:{
295
+ type:Boolean,
296
+ default:false
297
+ },
298
+ detections:{
299
+ type:Array,
300
+ default:[]
301
+ },
302
+ },
303
+ auditConfig:{
304
+ enabled:{
305
+ type:Boolean,
306
+ default:false
307
+ },
308
+ inputSourceFile:{
309
+ type:String
310
+ },
311
+ },
312
+ },
222
313
  },
223
314
  rawVideoUpload: {
224
315
  type: Boolean,
@@ -216,6 +216,12 @@ const storeFixtureSchema = new mongoose.Schema(
216
216
  templateGroupName: {
217
217
  type: String
218
218
  },
219
+ templateGroupNumber:{
220
+ type:Number
221
+ },
222
+ templateGroupMax:{
223
+ type:Number
224
+ }
219
225
 
220
226
  },
221
227
  {