tango-api-schema 2.0.4 → 2.0.5

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.4",
3
+ "version": "2.0.5",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -130,8 +130,8 @@ const client = new mongoose.Schema(
130
130
  },
131
131
  infraDownTime: {
132
132
  type: Number,
133
- default:60,
134
- enum:[60,120,180,240,300,360,420,480,540,600,660,720]
133
+ default:1,
134
+ enum:[1,2,3,4,5,6,8,9,10,11,12]
135
135
  },
136
136
  MinFilesCount:{
137
137
  type: Number,
@@ -111,7 +111,15 @@ const store = new mongoose.Schema(
111
111
  type: mongoose.Schema.Types.Number,
112
112
  default: 0.75,
113
113
  },
114
- }
114
+ },
115
+ ticketConfigs:{
116
+ nextTicektGenerationTime:{
117
+ type:Date
118
+ },
119
+ hibernation:{
120
+ type:Date
121
+ }
122
+ },
115
123
  },
116
124
  {
117
125
  strict: true,
@@ -0,0 +1,57 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const tangoTickets = new mongoose.Schema(
4
+ {
5
+ ticketId:{
6
+ type:String,
7
+ },
8
+ issueFoundDate:{
9
+ type:Date
10
+ },
11
+ issueClosedDate:{
12
+ type:Date
13
+ },
14
+ dataReceivedDate:{
15
+ type:Date
16
+ },
17
+ basicDetails: {
18
+ storeId: {
19
+ type: String
20
+ },
21
+ storeName: {
22
+ type: String,
23
+ },
24
+ clientId: {
25
+ type: String,
26
+ trim: true,
27
+ },
28
+ clientName: {
29
+ type: String,
30
+ trim: true,
31
+ },
32
+ },
33
+ Status:{
34
+ type:String,
35
+ enum:['open','inprogress','close'],
36
+ default:"open",
37
+ },
38
+ IssueStatus:{
39
+ type:String,
40
+ enum:["identified",'notidentified'],
41
+ default:"identified",
42
+ },
43
+ ticketType:{
44
+ type:String,
45
+ enum:['firsttimeticket','refreshticket'],
46
+ default:"firsttimeticket"
47
+ }
48
+ },
49
+ {
50
+ strict: true,
51
+ versionKey: false,
52
+ timestamps: true,
53
+ },
54
+ );
55
+
56
+
57
+ export default mongoose.model('tangoTickets', tangoTickets, 'tangoTickets');