tango-api-schema 2.6.1 → 2.6.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,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -324,10 +324,6 @@ const checklistconfigSchema = new mongoose.Schema({
324
324
  floorDetection: {
325
325
  enabled: { type: Boolean, default: false },
326
326
  duration: { type: Number, default: 2 }
327
- },
328
- unattendedDetection: {
329
- enabled: { type: Boolean, default: false },
330
- duration: { type: Number, default: 2 }
331
327
  },
332
328
  recurrence: {
333
329
  status: {
@@ -367,6 +363,36 @@ const checklistconfigSchema = new mongoose.Schema({
367
363
  }
368
364
  }
369
365
  },
366
+ unattendedDetection: {
367
+ schedule: {
368
+ scheduletype: {
369
+ type: String
370
+ },
371
+ openTime: {
372
+ type: String
373
+
374
+ },
375
+ closeTime: {
376
+ type: String
377
+ },
378
+ },
379
+ unattendedDetection: {
380
+ enabled: { type: Boolean, default: false },
381
+ duration: { type: Number, default: 2 }
382
+ },
383
+ recurrence: {
384
+ status: {
385
+ type: Boolean,
386
+ default: false
387
+ },
388
+ time: {
389
+ type: Number
390
+ },
391
+ type: {
392
+ type: String
393
+ }
394
+ }
395
+ },
370
396
  cameraAngle: {
371
397
  enabled: {
372
398
  type: Boolean,
@@ -277,10 +277,36 @@ const processedchecklistconfigSchema = new mongoose.Schema({
277
277
  enabled: { type: Boolean, default: false },
278
278
  duration: { type: Number, default: 4 }
279
279
  },
280
- unattendedDetection: {
280
+ },
281
+ unattendedDetection: {
282
+ schedule: {
283
+ scheduletype: {
284
+ type: String
285
+ },
286
+ openTime: {
287
+ type: String
288
+
289
+ },
290
+ closeTime: {
291
+ type: String
292
+ },
293
+ },
294
+ unattendedDetection: {
281
295
  enabled: { type: Boolean, default: false },
282
296
  duration: { type: Number, default: 2 }
283
297
  },
298
+ recurrence: {
299
+ status: {
300
+ type: Boolean,
301
+ default: false
302
+ },
303
+ time: {
304
+ type: Number
305
+ },
306
+ type: {
307
+ type: String
308
+ }
309
+ }
284
310
  },
285
311
  cameraAngle: {
286
312
  enabled: {
@@ -1,31 +1,31 @@
1
- import mongoose from 'mongoose';
2
- import { randomUUID } from 'crypto';
3
-
4
- // schema
5
- const collection = new mongoose.Schema({
6
- apiKey: {
7
- type: String,
8
- required: true,
9
- unique: true,
10
- default: () => randomUUID()
11
- },
12
- countryName: {
13
- type: String,
14
- },
15
- countryCode: {
16
- type: String,
17
- },
18
- clientId: {
19
- type: String,
20
- },
21
- },
22
- {
23
- timestamps: true,
24
- strict: true,
25
- versionKey: false,
26
- });
27
-
28
-
29
- collection.index({ apiKey: 1 });
30
-
31
- export default mongoose.model('regionKey', collection, 'regionKey');
1
+ import mongoose from 'mongoose';
2
+ import { randomUUID } from 'crypto';
3
+
4
+ // schema
5
+ const collection = new mongoose.Schema({
6
+ apiKey: {
7
+ type: String,
8
+ required: true,
9
+ unique: true,
10
+ default: () => randomUUID()
11
+ },
12
+ countryName: {
13
+ type: String,
14
+ },
15
+ countryCode: {
16
+ type: String,
17
+ },
18
+ clientId: {
19
+ type: String,
20
+ },
21
+ },
22
+ {
23
+ timestamps: true,
24
+ strict: true,
25
+ versionKey: false,
26
+ });
27
+
28
+
29
+ collection.index({ apiKey: 1 });
30
+
31
+ export default mongoose.model('regionKey', collection, 'regionKey');