tango-api-schema 2.5.18 → 2.5.20

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/index.js CHANGED
@@ -120,6 +120,8 @@ import vmsStoreRequestModel from './schema/vmsStoreRequest.model.js'
120
120
  import sangeethaCamDataModel from "./schema/sangeethaCamData.model.js"
121
121
  import storeAccuracyIssuesModel from "./schema/storeAccuracyIssues.model.js";
122
122
  import RFIDdataModel from "./schema/RFIDdata.model.js";
123
+ import customZonetagsModel from "./schema/customZonetags.model.js";
124
+ import zonegroupsModel from "./schema/zonegroups.model.js";
123
125
 
124
126
 
125
127
  export default {
@@ -241,5 +243,7 @@ export default {
241
243
  vmsStoreRequestModel,
242
244
  sangeethaCamDataModel,
243
245
  storeAccuracyIssuesModel,
244
- RFIDdataModel
246
+ RFIDdataModel,
247
+ customZonetagsModel,
248
+ zonegroupsModel
245
249
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.5.18",
3
+ "version": "2.5.20",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -588,7 +588,11 @@ const client = new mongoose.Schema(
588
588
  tangoReview: {
589
589
  type: String,
590
590
  default: "85%"
591
- }
591
+ },
592
+ tangoApproved:{ // this key for decide the final count is reflected by tango or client
593
+ type: Boolean,
594
+ default: false
595
+ }
592
596
  },
593
597
  document: {
594
598
  addressProof: {
@@ -0,0 +1,22 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const customZonetagsSchema = new mongoose.Schema({
4
+ tagName: {
5
+ type: String,
6
+ required: true,
7
+ default: ""
8
+ },
9
+ clientId: {
10
+ type: String,
11
+ required: true,
12
+ default: ""
13
+ }
14
+ },
15
+ {
16
+ strict: true,
17
+ versionKey: false,
18
+ timestamps: true,
19
+ },
20
+ );
21
+
22
+ export default mongoose.model('customZonetags', customZonetagsSchema);
@@ -0,0 +1,22 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const zonegroupsSchema = new mongoose.Schema({
4
+ groupName: {
5
+ type: String,
6
+ required: true,
7
+ default: ""
8
+ },
9
+ clientId: {
10
+ type: String,
11
+ required: true,
12
+ default: ""
13
+ }
14
+ },
15
+ {
16
+ strict: true,
17
+ versionKey: false,
18
+ timestamps: true,
19
+ },
20
+ );
21
+
22
+ export default mongoose.model('zonegroups', zonegroupsSchema);