tango-api-schema 2.0.11 → 2.0.13
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 +17 -5
- package/package.json +1 -1
- package/schema/client.model.js +22 -0
- package/schema/basePricing.model.js +0 -25
- /package/schema/{iplogs.js → ipLogs.model.js} +0 -0
package/index.js
CHANGED
|
@@ -3,9 +3,15 @@ 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 tangoTicketModel from "./schema/tangoTicket.model.js"
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import tangoTicketModel from "./schema/tangoTicket.model.js"
|
|
7
|
+
import virtualAccountModel from "./schema/virtualAccount.model.js";
|
|
8
|
+
import ipLogModel from "./schema/ipLogs.model.js";
|
|
9
|
+
import userModel from "./schema/user.model.js";
|
|
10
|
+
import edgeAppVersionModel from './schema/edgeAppVersion.model.js';
|
|
11
|
+
import applicationDefaultModel from "./schema/applicationDefault.model.js";
|
|
12
|
+
import cameraModel from "./schema/camera.model.js";
|
|
13
|
+
import reportModel from "./schema/report.model.js";
|
|
14
|
+
|
|
9
15
|
|
|
10
16
|
export default {
|
|
11
17
|
leadModel,
|
|
@@ -14,6 +20,12 @@ export default {
|
|
|
14
20
|
countryCodesModel,
|
|
15
21
|
clientModel,
|
|
16
22
|
tangoTicketModel,
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
virtualAccountModel,
|
|
24
|
+
ipLogModel,
|
|
25
|
+
userModel,
|
|
26
|
+
edgeAppVersionModel,
|
|
27
|
+
applicationDefaultModel,
|
|
28
|
+
cameraModel,
|
|
29
|
+
userModel,
|
|
30
|
+
reportModel
|
|
19
31
|
};
|
package/package.json
CHANGED
package/schema/client.model.js
CHANGED
|
@@ -279,6 +279,28 @@ const client = new mongoose.Schema(
|
|
|
279
279
|
type: Number, // calculate no of past days
|
|
280
280
|
enum:[1,2,3,4,5,6,8,9,10,11,12]
|
|
281
281
|
},
|
|
282
|
+
isRcaTicketAssign:{
|
|
283
|
+
type: Boolean,
|
|
284
|
+
default:true
|
|
285
|
+
},
|
|
286
|
+
isRefreshAlert:{
|
|
287
|
+
type: Boolean,
|
|
288
|
+
default:true
|
|
289
|
+
},
|
|
290
|
+
isStatusCheckAlert:{
|
|
291
|
+
type: Boolean,
|
|
292
|
+
default:true
|
|
293
|
+
},
|
|
294
|
+
alertSentTo:{
|
|
295
|
+
admin:{
|
|
296
|
+
type:Boolean,
|
|
297
|
+
default:false
|
|
298
|
+
},
|
|
299
|
+
user:{
|
|
300
|
+
type:Boolean,
|
|
301
|
+
default:false
|
|
302
|
+
}
|
|
303
|
+
}
|
|
282
304
|
|
|
283
305
|
},
|
|
284
306
|
reportConfigs: {
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import mongoose from 'mongoose'
|
|
2
|
-
import mongooseUniqueValidator from 'mongoose-unique-validator'
|
|
3
|
-
|
|
4
|
-
let pricingSchema = new mongoose.Schema(
|
|
5
|
-
{
|
|
6
|
-
product_name:{
|
|
7
|
-
type:String,
|
|
8
|
-
required:true
|
|
9
|
-
},
|
|
10
|
-
base_price: {
|
|
11
|
-
type:Number,
|
|
12
|
-
required: true
|
|
13
|
-
},
|
|
14
|
-
discout_percentage: {
|
|
15
|
-
type:Number,
|
|
16
|
-
required:true
|
|
17
|
-
},
|
|
18
|
-
camara_per_stores: {
|
|
19
|
-
type:Array
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
pricingSchema.plugin(mongooseUniqueValidator);
|
|
25
|
-
export default mongoose.model('basepricing', pricingSchema);
|
|
File without changes
|