tango-api-schema 2.0.32 → 2.0.34

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.0.32",
3
+ "version": "2.0.34",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -67,7 +67,6 @@ const collection = new Schema(
67
67
  },
68
68
  captureAt: {
69
69
  type: Date,
70
- default: Date.now,
71
70
  },
72
71
  macId: {
73
72
  type: String,
@@ -72,7 +72,6 @@ const store = new mongoose.Schema(
72
72
  type: String,
73
73
  enum: ["active", "suspend", "deactive"],
74
74
  },
75
-
76
75
  edge: {
77
76
  timeZone: {
78
77
  type: String,
@@ -16,6 +16,10 @@ const tangoTickets = new mongoose.Schema(
16
16
  enum: ['infra', 'highcount', 'lowcount', 'installation']
17
17
  },
18
18
  infraTicketDetails: {
19
+ issueIdentifiedBy:{
20
+ type:String,
21
+ enum:["client",'tango',"automated"]
22
+ },
19
23
  addressingClient: {
20
24
  type: mongoose.Types.ObjectId
21
25
  },
@@ -96,7 +100,7 @@ const tangoTickets = new mongoose.Schema(
96
100
  },
97
101
  status: {
98
102
  type: String,
99
- enum: ['open', 'inprogress', 'close'],
103
+ enum: ['open', 'inprogress', 'closed'],
100
104
  default: 'open',
101
105
  },
102
106
  },
@@ -11,6 +11,9 @@ const user = new mongoose.Schema(
11
11
  required: true,
12
12
  unique: true,
13
13
  },
14
+ userProfile:{
15
+ type:String
16
+ },
14
17
  countryCode: {
15
18
  type: String,
16
19
  },
@@ -40,14 +43,22 @@ const user = new mongoose.Schema(
40
43
  // },
41
44
  // },
42
45
  userType:{
43
- type: String,
44
- enum:['tango','client']
46
+ type: String,
47
+ enum:['tango','client']
45
48
  },
46
49
  password: {
47
50
  typ: String
48
51
  },
49
52
  refreshToken:{
50
53
  type: String
54
+ },
55
+ twoFactorAuthentication : {
56
+ code: {
57
+ type: String
58
+ },
59
+ isEnable : {
60
+ type: Boolean
61
+ }
51
62
  }
52
63
 
53
64
  },