tango-api-schema 2.0.6 → 2.0.8

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.6",
3
+ "version": "2.0.8",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -19,9 +19,13 @@ const client = new mongoose.Schema(
19
19
  type: Number,
20
20
  require: true,
21
21
  },
22
+ userId: {
23
+ type: mongoose.Types.ObjectId,
24
+ required: true,
25
+ },
22
26
  planDetails: {
23
27
  totalStores: {
24
- type: Number,
28
+ type: String,
25
29
  require: true,
26
30
  },
27
31
  storeSize: {
@@ -64,6 +68,7 @@ const client = new mongoose.Schema(
64
68
  status: {
65
69
  type: String,
66
70
  enum: [ 'active', 'deactive', 'hold' ],
71
+ default: 'active'
67
72
  },
68
73
  profileDetails: {
69
74
  registeredCompanyName: {
@@ -168,6 +173,14 @@ const client = new mongoose.Schema(
168
173
  type: String,
169
174
  },
170
175
  },
176
+ auditConfigs: {
177
+ audit: {
178
+ type: Boolean,
179
+ },
180
+ queueName: {
181
+ type: String,
182
+ },
183
+ },
171
184
  assignedUsers: {
172
185
  csm: {
173
186
  type: Object,
@@ -5,14 +5,33 @@ const tangoTickets = new mongoose.Schema(
5
5
  ticketId:{
6
6
  type:String,
7
7
  },
8
- issueFoundDate:{
8
+ issueDate:{
9
9
  type:Date
10
10
  },
11
11
  issueClosedDate:{
12
12
  type:Date
13
+ },
14
+ issueType:{
15
+ type:String,
16
+ enum:['infra','highcount','lowcount','installation']
13
17
  },
14
- dataReceivedDate:{
15
- type:Date
18
+ infraTicketDetails:{
19
+ ticketClosingtime:{
20
+ type:Date
21
+ },
22
+ filesCount:{
23
+ type:Number
24
+ },
25
+ issueStatus:{
26
+ type:String,
27
+ default:'notidentified',
28
+ enum:['identified','notidentified']
29
+ },
30
+ ticketType:{
31
+ type:String,
32
+ enum:['firsttimeticket','refreshticket'],
33
+ default:'firsttimeticket'
34
+ }
16
35
  },
17
36
  basicDetails: {
18
37
  storeId: {
@@ -30,21 +49,11 @@ const tangoTickets = new mongoose.Schema(
30
49
  trim: true,
31
50
  },
32
51
  },
33
- Status:{
52
+ status:{
34
53
  type:String,
35
54
  enum:['open','inprogress','close'],
36
- default:"open",
37
- },
38
- IssueStatus:{
39
- type:String,
40
- enum:["identified",'notidentified'],
41
- default:"identified",
55
+ default:'open',
42
56
  },
43
- ticketType:{
44
- type:String,
45
- enum:['firsttimeticket','refreshticket'],
46
- default:"firsttimeticket"
47
- }
48
57
  },
49
58
  {
50
59
  strict: true,
@@ -54,4 +63,4 @@ const tangoTickets = new mongoose.Schema(
54
63
  );
55
64
 
56
65
 
57
- export default mongoose.model('tangoTickets', tangoTickets, 'tangoTickets');
66
+ export default mongoose.model('tangoTicket', tangoTickets, 'tangoTicket');