tango-api-schema 2.1.10 → 2.1.12
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 +3 -1
- package/package.json +1 -1
- package/schema/auditUserWallet.model.js +61 -0
- package/schema/store.model.js +2 -2
package/index.js
CHANGED
|
@@ -41,6 +41,7 @@ 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
45
|
|
|
45
46
|
|
|
46
47
|
export default {
|
|
@@ -86,5 +87,6 @@ export default {
|
|
|
86
87
|
binaryAuditModel,
|
|
87
88
|
userEmpDetectionModel,
|
|
88
89
|
storeEmpDetectionModel,
|
|
89
|
-
lowcountReasonModel
|
|
90
|
+
lowcountReasonModel,
|
|
91
|
+
auditUserWalletMedel
|
|
90
92
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name api_audit_logs
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// NPM Modules
|
|
6
|
+
import mongoose from 'mongoose';
|
|
7
|
+
|
|
8
|
+
// Schema
|
|
9
|
+
const auditUserWalletSchem = new mongoose.Schema( {
|
|
10
|
+
userEmail: {
|
|
11
|
+
type: String,
|
|
12
|
+
trim:true
|
|
13
|
+
},
|
|
14
|
+
userName:{
|
|
15
|
+
type:String,
|
|
16
|
+
trim:true
|
|
17
|
+
},
|
|
18
|
+
date:{
|
|
19
|
+
type:Date
|
|
20
|
+
},
|
|
21
|
+
moduleType:{
|
|
22
|
+
type:String
|
|
23
|
+
},
|
|
24
|
+
totalBeforeCount:{
|
|
25
|
+
type: Number
|
|
26
|
+
},
|
|
27
|
+
totalAfterCount:{
|
|
28
|
+
type:Number
|
|
29
|
+
},
|
|
30
|
+
timeSpent:{
|
|
31
|
+
type: Number
|
|
32
|
+
},
|
|
33
|
+
minimumTarget:{
|
|
34
|
+
type: Number
|
|
35
|
+
},
|
|
36
|
+
totalEarn:{
|
|
37
|
+
type:Number
|
|
38
|
+
},
|
|
39
|
+
totalReducedAmount:{
|
|
40
|
+
type:Number
|
|
41
|
+
},
|
|
42
|
+
totalCredit:{
|
|
43
|
+
type:Number
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
timestamps: true,
|
|
50
|
+
strict: true,
|
|
51
|
+
versionKey: false,
|
|
52
|
+
} );
|
|
53
|
+
|
|
54
|
+
auditUserWalletSchem.index({
|
|
55
|
+
userEmail: 1,
|
|
56
|
+
date: 1,
|
|
57
|
+
moduleType:1
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export default mongoose.model( 'auditUserWallet', auditUserWalletSchem, 'auditUserWallet' );
|
|
61
|
+
|
package/schema/store.model.js
CHANGED
|
@@ -266,7 +266,7 @@ const store = new mongoose.Schema(
|
|
|
266
266
|
pipelineTrigger: {
|
|
267
267
|
version: {
|
|
268
268
|
type: String,
|
|
269
|
-
default: '
|
|
269
|
+
default: 'v3',
|
|
270
270
|
},
|
|
271
271
|
filterType: {
|
|
272
272
|
type: String,
|
|
@@ -274,7 +274,7 @@ const store = new mongoose.Schema(
|
|
|
274
274
|
},
|
|
275
275
|
queueList: {
|
|
276
276
|
type: Array,
|
|
277
|
-
default: ['
|
|
277
|
+
default: ['YOLO-V3'],
|
|
278
278
|
},
|
|
279
279
|
productFilter: [
|
|
280
280
|
{
|