tango-api-schema 2.5.99 → 2.6.1

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.99",
3
+ "version": "2.6.1",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -324,6 +324,10 @@ 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 }
327
331
  },
328
332
  recurrence: {
329
333
  status: {
@@ -156,6 +156,11 @@ const fixtureLibrarySchema = new mongoose.Schema(
156
156
  fixtureLibCode:{
157
157
  type:String
158
158
  },
159
+ country: {
160
+ type: [ String ],
161
+ enum: [ 'IN', 'SG', 'SA', 'TH', 'AE' ],
162
+ default: [],
163
+ },
159
164
  },
160
165
  {
161
166
  strict: true,
@@ -45,7 +45,9 @@ const invoiceSchema = new mongoose.Schema(
45
45
  type:String
46
46
  },
47
47
  status:{
48
- type:String
48
+ type:String,
49
+ default:'pendingCsm',
50
+ enum:['pendingCsm','pendingFinance','pendingApproval','approved']
49
51
  },
50
52
  receivedAmount:{
51
53
  type:Number
@@ -277,6 +277,10 @@ const processedchecklistconfigSchema = new mongoose.Schema({
277
277
  enabled: { type: Boolean, default: false },
278
278
  duration: { type: Number, default: 4 }
279
279
  },
280
+ unattendedDetection: {
281
+ enabled: { type: Boolean, default: false },
282
+ duration: { type: Number, default: 2 }
283
+ },
280
284
  },
281
285
  cameraAngle: {
282
286
  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');