tango-api-schema 2.0.45 → 2.0.47

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,8 +3,7 @@ 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 virtualAccountModel from "./schema/virtualAccount.model.js";
6
+ import tangoTicketModel from "./schema/tangoTicket.model.js";
8
7
  import ipLogModel from "./schema/ipLogs.model.js";
9
8
  import userModel from "./schema/user.model.js";
10
9
  import edgeAppVersionModel from './schema/edgeAppVersion.model.js';
@@ -19,8 +18,7 @@ import userAssignedStoreModel from "./schema/userAssignedStore.model.js";
19
18
  import edgeappAuthModel from "./schema/edgeappAuth.model.js";
20
19
  import clientRequestModel from "./schema/clientRequest.model.js";
21
20
  import basePricingModel from "./schema/basePricing.model.js";
22
-
23
-
21
+ import invoiceModel from "./schema/invoice.model.js";
24
22
 
25
23
  export default {
26
24
  leadModel,
@@ -29,7 +27,6 @@ export default {
29
27
  countryCodesModel,
30
28
  clientModel,
31
29
  tangoTicketModel,
32
- virtualAccountModel,
33
30
  ipLogModel,
34
31
  userModel,
35
32
  edgeAppVersionModel,
@@ -44,4 +41,5 @@ export default {
44
41
  edgeappAuthModel,
45
42
  clientRequestModel,
46
43
  basePricingModel,
47
- };
44
+ invoiceModel,
45
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.45",
3
+ "version": "2.0.47",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3,21 +3,26 @@ import mongooseUniqueValidator from 'mongoose-unique-validator'
3
3
 
4
4
  let pricingSchema = new mongoose.Schema(
5
5
  {
6
- product_name:{
7
- type:String,
8
- required:true
6
+ clientId: {
7
+ type:String
9
8
  },
10
- base_price: {
11
- type:Number,
12
- required: true
9
+ basePricing:{
10
+ type:Array
11
+ },
12
+ storeRange: {
13
+ type: String,
13
14
  },
14
- discout_percentage: {
15
- type:Number,
16
- required:true
15
+ standard:{
16
+ type:Array
17
17
  },
18
- camara_per_stores: {
18
+ step:{
19
19
  type:Array
20
20
  }
21
+ },
22
+ {
23
+ strict: true,
24
+ versionKey: false,
25
+ timestamps: true,
21
26
  }
22
27
  )
23
28
 
@@ -19,15 +19,15 @@ const collection = new Schema(
19
19
  type: String,
20
20
  trim: true,
21
21
  },
22
- manufacture: {
22
+ manufacturer: {
23
23
  type: String,
24
24
  trim: true,
25
25
  },
26
- camNumber: {
26
+ cameraNumber: {
27
27
  type: String,
28
28
  trim: true,
29
29
  },
30
- username: {
30
+ userName: {
31
31
  type: String,
32
32
  trim: true,
33
33
  },
@@ -75,7 +75,7 @@ const collection = new Schema(
75
75
  type: Number,
76
76
  default: 13,
77
77
  },
78
- camName: {
78
+ cameraName: {
79
79
  type: String,
80
80
  trim: true,
81
81
  },
@@ -3,15 +3,12 @@ import mongooseUniqueValidator from 'mongoose-unique-validator'
3
3
 
4
4
  const clientRequestSchema = new mongoose.Schema(
5
5
  {
6
- user:{
7
- type:mongoose.SchemaTypes.ObjectId
8
- },
9
- client: {
10
- type:mongoose.SchemaTypes.ObjectId
11
- },
12
6
  clientId: {
13
7
  type:String
14
8
  },
9
+ user:{
10
+ type:mongoose.SchemaTypes.ObjectId
11
+ },
15
12
  name:{
16
13
  type:String
17
14
  },
@@ -0,0 +1,35 @@
1
+ import mongoose from 'mongoose';
2
+ import mongooseUniqueValidator from 'mongoose-unique-validator';
3
+
4
+ const invoiceSchema = new mongoose.Schema(
5
+ {
6
+ clientId: {
7
+ type:String
8
+ },
9
+ invoice: {
10
+ type:String,
11
+ },
12
+ billingDate:{
13
+ type:Date
14
+ },
15
+ stores: {
16
+ type:Number
17
+ },
18
+ products:{
19
+ type:Array
20
+ },
21
+ amount:{
22
+ type:Number
23
+ },
24
+ status:{
25
+ type:String
26
+ }
27
+ },{
28
+ strict: true,
29
+ versionKey: false,
30
+ timestamps: true,
31
+ }
32
+ )
33
+
34
+ invoiceSchema.plugin(mongooseUniqueValidator);
35
+ export default mongoose.model('invoice', invoiceSchema);
@@ -1,34 +0,0 @@
1
- import mongoose, { Mongoose } from 'mongoose';
2
- import mongooseUniqueValidator from 'mongoose-unique-validator';
3
-
4
- const vitualSchema = new mongoose.Schema({
5
- paymentType: {
6
- type:String,
7
- required:true
8
- },
9
- accNo:{
10
- type:String,
11
- required:true
12
- },
13
- IFSCCode:{
14
- type: String,
15
- required: true
16
- },
17
- swiftCode:{
18
- type: String,
19
- required: true
20
- },
21
- branch:{
22
- type: String,
23
- required: true
24
- }
25
- }, {
26
- strict: true,
27
- versionKey: false,
28
- timestamps: true,
29
- },)
30
- vitualSchema.plugin(mongooseUniqueValidator);
31
-
32
- const vitualModel = mongoose.model('virtualAccount',vitualSchema);
33
-
34
- export default vitualModel;