tango-api-schema 2.5.26 → 2.5.28

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.26",
3
+ "version": "2.5.28",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -19,6 +19,9 @@ const binaryAuditSchema = new mongoose.Schema( {
19
19
  streamName:{
20
20
  type: String
21
21
  },
22
+ zoneName:{
23
+ type:String
24
+ },
22
25
  tempId:{
23
26
  type:Number
24
27
  },
@@ -1,16 +1,34 @@
1
1
  import mongoose from 'mongoose';
2
-
2
+
3
3
  const customZonetagsSchema = new mongoose.Schema({
4
+ clientId: {
5
+ type: String,
6
+ required: true,
7
+ default: ""
8
+ },
4
9
  tagName: {
5
10
  type: String,
6
11
  required: true,
7
12
  default: ""
8
13
  },
9
- clientId: {
14
+ groupName: {
15
+ type: String,
16
+ required: false,
17
+ default: ""
18
+ },
19
+ productName: {
10
20
  type: String,
11
21
  required: true,
12
22
  default: ""
13
- }
23
+ },
24
+ rgbColor: {
25
+ type: String,
26
+ required: true,
27
+ },
28
+ rgbBorderColor: {
29
+ type: String,
30
+ required: true,
31
+ },
14
32
  },
15
33
  {
16
34
  strict: true,
@@ -18,5 +36,5 @@ const customZonetagsSchema = new mongoose.Schema({
18
36
  timestamps: true,
19
37
  },
20
38
  );
21
-
22
- export default mongoose.model('customZonetags', customZonetagsSchema);
39
+
40
+ export default mongoose.model('customzonetags', customZonetagsSchema);
@@ -1,5 +1,4 @@
1
1
  import mongoose from 'mongoose';
2
-
3
2
  const zonegroupsSchema = new mongoose.Schema({
4
3
  groupName: {
5
4
  type: String,
@@ -18,5 +17,5 @@ const zonegroupsSchema = new mongoose.Schema({
18
17
  timestamps: true,
19
18
  },
20
19
  );
21
-
20
+
22
21
  export default mongoose.model('zonegroups', zonegroupsSchema);