tango-api-schema 2.1.19 → 2.1.21

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
@@ -41,7 +41,10 @@ import binaryAuditModel from "./schema/binaryAudit.model.js";
41
41
  import userEmpDetectionModel from "./schema/userEmpDetection.model.js";
42
42
  import storeEmpDetectionModel from "./schema/storeEmpDetection.model.js";
43
43
  import lowcountReasonModel from "./schema/lowcountReason.model.js";
44
- import auditUserWalletMedel from "./schema/auditUserWallet.model.js";
44
+ import auditUserWalletModel from "./schema/auditUserWallet.model.js";
45
+ import mailOnlyuserModel from "./schema/mailOnlyuser.model.js";
46
+
47
+
45
48
 
46
49
 
47
50
  export default {
@@ -88,5 +91,6 @@ export default {
88
91
  userEmpDetectionModel,
89
92
  storeEmpDetectionModel,
90
93
  lowcountReasonModel,
91
- auditUserWalletMedel
94
+ auditUserWalletModel,
95
+ mailOnlyuserModel
92
96
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.19",
3
+ "version": "2.1.21",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -6,7 +6,7 @@
6
6
  import mongoose from 'mongoose';
7
7
 
8
8
  // Schema
9
- const auditUserWalletSchem = new mongoose.Schema( {
9
+ const auditUserWalletSchema = new mongoose.Schema( {
10
10
  userEmail: {
11
11
  type: String,
12
12
  trim:true
@@ -65,11 +65,11 @@ const auditUserWalletSchem = new mongoose.Schema( {
65
65
  versionKey: false,
66
66
  } );
67
67
 
68
- auditUserWalletSchem.index({
68
+ auditUserWalletSchema.index({
69
69
  userEmail: 1,
70
70
  date: 1,
71
71
  moduleType:1
72
72
  });
73
73
 
74
- export default mongoose.model( 'auditUserWallet', auditUserWalletSchem, 'auditUserWallet' );
74
+ export default mongoose.model( 'auditUserWallet', auditUserWalletSchema, 'auditUserWallet' );
75
75
 
@@ -4,12 +4,12 @@ import mongoose from 'mongoose';
4
4
  // schema
5
5
  const collection = new mongoose.Schema( {
6
6
  email: {
7
- type: String,
8
- trim: true,
7
+ type: String,
9
8
  unique: true,
10
9
  required:true
11
10
  },
12
11
  clientId:{
12
+ type: String,
13
13
  trim: true,
14
14
  required:true
15
15
  },