tango-api-schema 2.0.36 → 2.0.38

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.36",
3
+ "version": "2.0.38",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -38,152 +38,41 @@ const client = new mongoose.Schema(
38
38
  },
39
39
  subscriptionPeriod: {
40
40
  type: String,
41
- enum: [ 'monthly', 'quarterly', 'annual' ],
41
+ enum: ['monthly','quarterly','annual'],
42
42
  },
43
43
  subscriptionType: {
44
44
  type: String,
45
- enum: [ 'free', 'premium', 'enterprice' ],
45
+ enum: ['free','premium','enterprice'],
46
46
  },
47
47
  paymentStatus: {
48
48
  type: String,
49
+ enum: ['free','trail','paid','unbilled','due'],
49
50
  },
50
51
  product: [
51
52
  {
52
53
  productName: {
53
54
  type: String,
54
55
  },
55
- trail: {
56
- type: Boolean,
57
- },
58
- initDate: {
59
- type: Date,
60
- },
61
- CompletedDate: {
62
- type: Date,
63
- },
64
- },
65
- ],
66
- subscribedFeatures: {
67
- tangoTraffic: {
68
- active: {
69
- type:Boolean,
70
- default:true
71
- },
72
- status:{
73
- type:String,
74
- enum: ["pending", "trail", "live"],
75
- default:"pending"
76
- },
77
- trailStartDate:{
78
- type:Date,
79
- },
80
- trailEndDate: {
81
- type:Date
82
- },
83
- subscribedDate:{
84
- type:Date
85
- },
86
- Price:{
87
- type:Number
88
- }
89
- },
90
- tangoZone: {
91
- active: {
92
- type: Boolean,
93
- default: false
94
- },
95
- status: {
96
- type: String,
97
- enum: ["pending", "trail", "live"],
98
- default: "pending"
99
- },
100
- trailStartDate: {
101
- type: Date,
102
- },
103
- trailEndDate: {
104
- type: Date
105
- },
106
- subscribedDate: {
107
- type: Date
108
- },
109
- Price: {
110
- type: Number
111
- },
112
- },
113
- revops: {
114
- active: {
115
- type: Boolean,
116
- default: false
117
- },
118
- status: {
119
- type: String,
120
- enum: ["pending", "trail", "live"],
121
- default: "pending"
122
- },
123
- trailStartDate: {
56
+ trialStartDate: {
124
57
  type: Date,
125
58
  },
126
- trailEndDate: {
127
- type: Date
128
- },
129
- subscribedDate: {
130
- type: Date
131
- },
132
- Price: {
133
- type: Number
134
- },
135
- },
136
- sop: {
137
- active: {
138
- type: Boolean,
139
- default: false
140
- },
141
- status: {
142
- type: String,
143
- enum: ["pending", "trail", "live"],
144
- default: "pending"
145
- },
146
- trailStartDate: {
59
+ trialEndDate: {
147
60
  type: Date,
148
61
  },
149
- trailEndDate: {
150
- type: Date
151
- },
152
62
  subscribedDate: {
153
63
  type: Date
154
64
  },
155
- Price: {
156
- type: Number
157
- },
158
- },
159
- support: {
160
- active: {
161
- type: Boolean,
162
- default: false
163
- },
164
65
  status: {
165
66
  type: String,
166
- enum: ["pending", "trail", "live"],
167
- default: "pending"
168
- },
169
- trailStartDate: {
170
- type: Date,
171
- },
172
- trailEndDate: {
173
- type: Date
174
- },
175
- subscribedDate: {
176
- type: Date
177
- },
178
- Price: {
179
- type: Number
180
- },
67
+ enum: ['pending','trail','live'],
68
+ default: 'pending'
69
+ }
181
70
  }
182
- },
71
+ ],
183
72
  },
184
73
  status: {
185
74
  type: String,
186
- enum: [ 'active', 'deactive', 'hold', 'suspended' ],
75
+ enum: ['active','deactive','hold','suspended'],
187
76
  default: 'active'
188
77
  },
189
78
  profileDetails: {
@@ -195,11 +84,11 @@ const client = new mongoose.Schema(
195
84
  },
196
85
  industry: {
197
86
  type: String,
198
- enum:['apparel','footwear','skincare','foodandbeverage','techstartup','grooming','leather','furniture','mattress',' customerelectronics','jewellery','interiordesign','ev','fintech','perfume','fashionaccessories','innerwear','nutrition','fashionandlifestyle','eyewear']
87
+ enum: ['apparel','footwear','skincare','foodandbeverage','techstartup','grooming','leather','furniture','mattress','customerelectronics','jewellery','interiordesign','ev','fintech','perfume','fashionaccessories','innerwear','nutrition','fashionandlifestyle','eyewear']
199
88
  },
200
89
  clientType: {
201
90
  type: String,
202
- enum:['partnership', 'proprietorship', 'pvtltd', 'person']
91
+ enum: ['partnership','proprietorship','pvtltd','person']
203
92
  },
204
93
  registeredAddress: {
205
94
  type: String,
@@ -210,7 +99,6 @@ const client = new mongoose.Schema(
210
99
  website: {
211
100
  type: String,
212
101
  },
213
-
214
102
  },
215
103
  billingDetails: {
216
104
  tradeName: {
@@ -422,15 +310,20 @@ const client = new mongoose.Schema(
422
310
  },
423
311
 
424
312
  },
425
- paymentInvoic: {
426
- paymentCycle: {
427
- type:String,
313
+ price:{
314
+ type:Number
315
+ },
316
+ paymentInvoice: {
317
+ proRate: {
318
+ type: String,
319
+ enum: ['before15','after15']
428
320
  },
429
321
  paymentType: {
430
- type:String
322
+ type:String,
323
+ enum: ['online','banktransfer']
431
324
  },
432
- extendPaymentPeriodDays: {
433
- type:Number
325
+ paymentCycle: {
326
+ type:String,
434
327
  },
435
328
  currencyType: {
436
329
  type:String
@@ -442,19 +335,30 @@ const client = new mongoose.Schema(
442
335
  type:Array
443
336
  },
444
337
  invoiceOn: {
445
- date: {
446
- type:Date
447
- },
448
- type: {
449
- type:String
450
- }
338
+ type:String,
339
+ enum: ['lastday','25th']
451
340
  },
452
- proRate:{
453
- type:Boolean
341
+ extendPaymentPeriodDays: {
342
+ type:Number
454
343
  }
455
344
  },
456
- price:{
457
- type:Number
345
+ priceType:{
346
+ type:String,
347
+ enum: ['standard','step']
348
+ },
349
+ virtualAccount:{
350
+ accountNo:{
351
+ type:String
352
+ },
353
+ ifscCode:{
354
+ type:String
355
+ },
356
+ swiftCode:{
357
+ type:String
358
+ },
359
+ branch:{
360
+ type:String
361
+ }
458
362
  }
459
363
  },
460
364
  {
@@ -0,0 +1,43 @@
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator'
3
+
4
+ const clientRequestSchema = new mongoose.Schema(
5
+ {
6
+ user:{
7
+ type:mongoose.SchemaTypes.ObjectId
8
+ },
9
+ client: {
10
+ type:mongoose.SchemaTypes.ObjectId
11
+ },
12
+ clientId: {
13
+ type:String
14
+ },
15
+ name:{
16
+ type:String
17
+ },
18
+ reason:{
19
+ type:String
20
+ },
21
+ description:{
22
+ type:String
23
+ },
24
+ category:{
25
+ type:String
26
+ },
27
+ status:{
28
+ type:String
29
+ },
30
+ markasRead:{
31
+ type:Boolean,
32
+ default:false
33
+ }
34
+ },
35
+ {
36
+ strict: true,
37
+ versionKey: false,
38
+ timestamps: true,
39
+ },
40
+ );
41
+
42
+ clientRequestSchema.plugin(mongooseUniqueValidator);
43
+ export default mongoose.model('clientRequest', clientRequestSchema)
@@ -279,6 +279,9 @@ const store = new mongoose.Schema(
279
279
  default: "yolo-v2-live",
280
280
  },
281
281
  },
282
+ product: {
283
+ type: Array,
284
+ },
282
285
  },
283
286
  {
284
287
  strict: true,
@@ -15,6 +15,9 @@ const tangoTickets = new mongoose.Schema(
15
15
  type: String,
16
16
  enum: ['infra', 'highcount', 'lowcount', 'installation']
17
17
  },
18
+ hibernation:{
19
+ type:Date
20
+ },
18
21
  infraTicketDetails: {
19
22
  issueIdentifiedBy:{
20
23
  type:String,
@@ -49,6 +52,15 @@ const tangoTickets = new mongoose.Schema(
49
52
  },
50
53
  infraActivity: [
51
54
  {
55
+ statusCheckAlertTime:{
56
+ type: Date,
57
+ },
58
+ statusCheckReply:{
59
+ type: String,
60
+ },
61
+ hibernationDays:{
62
+ type: String,
63
+ },
52
64
  actionType: {
53
65
  type: String
54
66
  },