tango-api-schema 2.0.5 → 2.0.7

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
@@ -3,11 +3,13 @@ import otpModel from "./schema/otp.model.js";
3
3
  import storeModel from "./schema/store.model.js";
4
4
  import countryCodesModel from './schema/countryCodes.model.js';
5
5
  import clientModel from "./schema/client.model.js";
6
+ import tangoTicket from "./schema/tangoTicket.model.js"
6
7
 
7
8
  export default {
8
9
  leadModel,
9
10
  otpModel,
10
11
  storeModel,
11
12
  countryCodesModel,
12
- clientModel
13
+ clientModel,
14
+ tangoTicket
13
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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');