tango-api-schema 2.0.53 → 2.0.55

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.53",
3
+ "version": "2.0.55",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -22,7 +22,8 @@ const clientRequestSchema = new mongoose.Schema(
22
22
  type:String
23
23
  },
24
24
  status:{
25
- type:String
25
+ type:String,
26
+ enum: [ 'pending','completed' ],
26
27
  },
27
28
  markasRead:{
28
29
  type:Boolean,
@@ -21,6 +21,15 @@ const invoiceSchema = new mongoose.Schema(
21
21
  amount:{
22
22
  type:Number
23
23
  },
24
+ totalAmount:{
25
+ type:Number
26
+ },
27
+ revisedAmount:{
28
+ type:Number
29
+ },
30
+ discount:{
31
+ type:Number
32
+ },
24
33
  status:{
25
34
  type:String
26
35
  }
@@ -15,16 +15,23 @@ const tangoTickets = new mongoose.Schema(
15
15
  type: String,
16
16
  enum: ['infra', 'highcount', 'lowcount', 'installation']
17
17
  },
18
- hibernation:{
19
- type:Date
18
+ hibernation: {
19
+ type: Date
20
20
  },
21
+ attachments: [
22
+ {
23
+ filePath: {
24
+ type: String
25
+ }
26
+ }
27
+ ],
21
28
  ticketDetails: {
22
- issueIdentifiedDate:{
23
- type:Date
29
+ issueIdentifiedDate: {
30
+ type: Date
24
31
  },
25
- issueIdentifiedBy:{
26
- type:String,
27
- enum:["client",'tango',"automated"]
32
+ issueIdentifiedBy: {
33
+ type: String,
34
+ enum: ["client", 'tango', "automated"]
28
35
  },
29
36
  addressingClient: {
30
37
  type: mongoose.Types.ObjectId
@@ -55,13 +62,13 @@ const tangoTickets = new mongoose.Schema(
55
62
  },
56
63
  ticketActivity: [
57
64
  {
58
- statusCheckAlertTime:{
65
+ statusCheckAlertTime: {
59
66
  type: Date,
60
67
  },
61
- statusCheckReply:{
68
+ statusCheckReply: {
62
69
  type: String,
63
70
  },
64
- hibernationDays:{
71
+ hibernationDays: {
65
72
  type: String,
66
73
  },
67
74
  actionType: {
@@ -82,19 +89,19 @@ const tangoTickets = new mongoose.Schema(
82
89
  String
83
90
  }
84
91
  },
85
- reasons:[
86
- {
87
- primaryIssue: {
92
+ reasons: [
93
+ {
94
+ primaryIssue: {
88
95
  type: String
89
- },
90
- secondaryIssue: [
91
- {
92
- name: {
93
- type: String
96
+ },
97
+ secondaryIssue: [
98
+ {
99
+ name: {
100
+ type: String
101
+ }
94
102
  }
95
- }
96
- ]
97
- }]
103
+ ]
104
+ }]
98
105
  }
99
106
  ],
100
107
  basicDetails: {
@@ -112,6 +119,10 @@ const tangoTickets = new mongoose.Schema(
112
119
  type: String,
113
120
  trim: true,
114
121
  },
122
+ address:{
123
+ type: String,
124
+ trim: true,
125
+ }
115
126
  },
116
127
  status: {
117
128
  type: String,