tango-api-schema 1.0.24 → 1.0.26
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 +1 -1
- package/schema/client.model.js +21 -57
package/package.json
CHANGED
package/schema/client.model.js
CHANGED
|
@@ -20,31 +20,7 @@ const clientSchema = new mongoose.Schema(
|
|
|
20
20
|
userDetail: {
|
|
21
21
|
userId: {
|
|
22
22
|
type: mongoose.Schema.Types.ObjectId,
|
|
23
|
-
ref:
|
|
24
|
-
},
|
|
25
|
-
firstName: {
|
|
26
|
-
type: String,
|
|
27
|
-
trim: true,
|
|
28
|
-
},
|
|
29
|
-
lastName: {
|
|
30
|
-
type: String,
|
|
31
|
-
trim: true,
|
|
32
|
-
},
|
|
33
|
-
phone: {
|
|
34
|
-
type: String,
|
|
35
|
-
trim: true,
|
|
36
|
-
required: true,
|
|
37
|
-
unique: true,
|
|
38
|
-
},
|
|
39
|
-
email: {
|
|
40
|
-
type: String,
|
|
41
|
-
trim: true,
|
|
42
|
-
required: true,
|
|
43
|
-
unique: true,
|
|
44
|
-
},
|
|
45
|
-
dialCode: {
|
|
46
|
-
type: String,
|
|
47
|
-
trim: true,
|
|
23
|
+
ref: 'User',
|
|
48
24
|
},
|
|
49
25
|
},
|
|
50
26
|
active: {
|
|
@@ -163,56 +139,44 @@ const clientSchema = new mongoose.Schema(
|
|
|
163
139
|
},
|
|
164
140
|
},
|
|
165
141
|
ticketConfigs: {
|
|
166
|
-
|
|
167
142
|
liveTickets: {
|
|
168
|
-
// live needs to create for a day
|
|
169
143
|
type: Boolean,
|
|
170
144
|
default: false,
|
|
171
145
|
},
|
|
172
|
-
|
|
173
|
-
ticketPeriod: { //live ticket period in minutes
|
|
174
|
-
type: Number,
|
|
175
|
-
default: 120, // in minutes
|
|
176
|
-
},
|
|
177
|
-
|
|
178
146
|
infraTickets: {
|
|
179
147
|
// infratickets needs to create for a day t-1
|
|
180
148
|
type: Boolean,
|
|
181
149
|
default: false,
|
|
182
150
|
},
|
|
183
|
-
// liveConfig: { // live one - Every 1 hour, three - every three hour
|
|
184
|
-
// type: Number, // liveConfig is changed to ticketPeriod by praveen
|
|
185
|
-
// default: 0,
|
|
186
|
-
// },
|
|
187
|
-
ticketReopen: {
|
|
188
|
-
type: Number,
|
|
189
|
-
default: 0,
|
|
190
|
-
},
|
|
191
|
-
|
|
192
151
|
infraLimit: {
|
|
193
|
-
// Downtime limit for creating ticket
|
|
194
152
|
type: Number,
|
|
195
153
|
},
|
|
196
|
-
|
|
197
154
|
autoGenerate: {
|
|
198
155
|
// if its 2 day downtime is past two days reach the infralimit then will need to create ticket
|
|
199
156
|
type: Number,
|
|
200
157
|
default: 0,
|
|
201
158
|
},
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
159
|
+
ticketPeriod: {
|
|
160
|
+
//live ticket period in minutes
|
|
161
|
+
type: Number,
|
|
162
|
+
default: 120, // in minutes
|
|
163
|
+
},
|
|
164
|
+
ReInstallation: {
|
|
165
|
+
type: Number,
|
|
166
|
+
default: 0,
|
|
167
|
+
},
|
|
168
|
+
liveConfig: {
|
|
169
|
+
// live one - Every 1 hour, three - every three hour
|
|
170
|
+
type: String,
|
|
171
|
+
default: 0,
|
|
172
|
+
},
|
|
173
|
+
ticketReopen: {
|
|
174
|
+
type: Number,
|
|
175
|
+
default: 0,
|
|
176
|
+
},
|
|
177
|
+
liveTicketTime: {
|
|
178
|
+
type: Date,
|
|
212
179
|
},
|
|
213
|
-
liveTicketTime:{
|
|
214
|
-
type:Date
|
|
215
|
-
}
|
|
216
180
|
},
|
|
217
181
|
},
|
|
218
182
|
{
|