tango-api-schema 2.0.138 → 2.0.140

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.138",
3
+ "version": "2.0.140",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -79,6 +79,24 @@ const invoiceSchema = new mongoose.Schema(
79
79
  toDate:{
80
80
  type:Date
81
81
  },
82
+ currency: {
83
+ type:String
84
+ },
85
+ orderId: {
86
+ type:String
87
+ },
88
+ groupName: {
89
+ type:String
90
+ },
91
+ groupId: {
92
+ type:String
93
+ },
94
+ discountAmount: {
95
+ type:Number
96
+ },
97
+ discountPercentage: {
98
+ type:Number
99
+ },
82
100
  },{
83
101
  strict: true,
84
102
  versionKey: false,
@@ -2,6 +2,9 @@ import mongoose from 'mongoose';
2
2
 
3
3
  const roles = new mongoose.Schema(
4
4
  {
5
+ clientId:{
6
+ type:String
7
+ },
5
8
  roleName: {
6
9
  type: String,
7
10
  },
@@ -26,39 +26,38 @@ const user = new mongoose.Schema(
26
26
  },
27
27
  role: {
28
28
  type: String,
29
- enum: [ 'superadmin', 'admin', 'user' ],
30
29
  default: 'user',
31
30
  },
32
31
  isActive: {
33
32
  type: Boolean,
34
33
  default: true,
35
34
  },
36
- permission: [
37
- {
38
- featureName: {
39
- type: String,
40
- },
41
- product: [
42
- {
43
- name: {
44
- type: String,
45
- },
46
- isView: {
47
- type: Boolean,
48
- },
49
- isEdit: {
50
- type: Boolean,
51
- },
52
- isDownload: {
53
- type: Boolean,
54
- },
55
- isDelete: {
56
- type: Boolean,
57
- },
58
- },
59
- ],
60
- },
61
- ],
35
+ // permission: [
36
+ // {
37
+ // featureName: {
38
+ // type: String,
39
+ // },
40
+ // product: [
41
+ // {
42
+ // name: {
43
+ // type: String,
44
+ // },
45
+ // isView: {
46
+ // type: Boolean,
47
+ // },
48
+ // isEdit: {
49
+ // type: Boolean,
50
+ // },
51
+ // isDownload: {
52
+ // type: Boolean,
53
+ // },
54
+ // isDelete: {
55
+ // type: Boolean,
56
+ // },
57
+ // },
58
+ // ],
59
+ // },
60
+ // ],
62
61
  userType:{
63
62
  type: String,
64
63
  enum:['tango','client','lead']
@@ -82,7 +81,10 @@ const user = new mongoose.Schema(
82
81
  type: Boolean,
83
82
  default: false
84
83
  }
85
- },
84
+ },
85
+ roleId:{
86
+ type:mongoose.Types.ObjectId
87
+ },
86
88
  },
87
89
  {
88
90
  strict: true,