tango-api-schema 2.4.16 → 2.4.18

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.4.16",
3
+ "version": "2.4.18",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -478,6 +478,56 @@ const client = new mongoose.Schema(
478
478
  },
479
479
 
480
480
  },
481
+ footfallDirectoryConfigs: {
482
+ revision: [
483
+ {
484
+ actionType: {
485
+ type: String,
486
+ enum: ["reviewer", "approver", "tango"]
487
+ },
488
+ isChecked: {
489
+ type: Boolean
490
+ }
491
+ }
492
+
493
+ ],
494
+ allowTicketCreation: {
495
+ type: Number
496
+ },
497
+ isAutoCloseEnable: {
498
+ type: Boolean
499
+ },
500
+ autoCloseAccuracy: {
501
+ type: String
502
+ },
503
+ taggingLimitation: [
504
+ {
505
+ Type: {
506
+ type: String
507
+ },
508
+ value: {
509
+ type: Number
510
+ },
511
+ unit: {
512
+ type: String
513
+ }
514
+ }
515
+ ],
516
+ accuracyBreach: {
517
+ ticketCount: {
518
+ type: String
519
+ },
520
+ days: {
521
+ type: String
522
+ },
523
+ accuracy: {
524
+ type: String
525
+ }
526
+ },
527
+ tangoReview: {
528
+ type: String
529
+ }
530
+ },
481
531
  document: {
482
532
  addressProof: {
483
533
  path: {
@@ -67,6 +67,10 @@ const fixtureShelfSchema = new mongoose.Schema(
67
67
  type: String,
68
68
  default: '',
69
69
  },
70
+ antennaNo: {
71
+ type: Number,
72
+ default: 0,
73
+ },
70
74
  },
71
75
  {
72
76
  strict: true,
@@ -16,7 +16,7 @@ const planoComplianceSchema = new mongoose.Schema(
16
16
  },
17
17
  type: {
18
18
  type: String,
19
- enum: [ 'product', 'vm' ],
19
+ enum: [ 'product', 'vm' ,'storageBox'],
20
20
  default:'product'
21
21
  },
22
22
  planoId: {
@@ -16,7 +16,7 @@ const planoMappingSchema = new mongoose.Schema(
16
16
  },
17
17
  type: {
18
18
  type: String,
19
- enum: [ 'product', 'vm' ],
19
+ enum: [ 'product', 'vm',,'storageBox' ],
20
20
  required: true,
21
21
  },
22
22
  planoId: {
@@ -221,6 +221,13 @@ const storeFixtureSchema = new mongoose.Schema(
221
221
  },
222
222
  templateGroupMax:{
223
223
  type:Number
224
+ },
225
+ readerId:{
226
+ type:String
227
+ },
228
+ isEdited:{
229
+ type:Boolean,
230
+ default:false
224
231
  }
225
232
 
226
233
  },
@@ -0,0 +1,40 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ // schema
4
+ const collection = new mongoose.Schema({
5
+ clientId: {
6
+ type: String,
7
+ required: true
8
+ },
9
+ storeId: {
10
+ type: String,
11
+ required: true
12
+ },
13
+ storeName: {
14
+ type: String,
15
+ required: true
16
+ },
17
+ dateString: {
18
+ type: String,
19
+ required: true
20
+ },
21
+ raisedBy: {
22
+ type: String,
23
+ required: true
24
+ },
25
+ approvedBy: {
26
+ type: String,
27
+ required: true
28
+ }
29
+ },
30
+ {
31
+ timestamps: true,
32
+ strict: true,
33
+ versionKey: false,
34
+ });
35
+
36
+
37
+ collection.index({ storeId:1,dateString: 1, });
38
+ collection.index({ clientId:1,dateString: 1 });
39
+
40
+ export default mongoose.model('vmsStoreRequest', collection, 'vmsStoreRequest');