tango-api-schema 2.1.21 → 2.1.23
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
|
@@ -43,6 +43,8 @@ import storeEmpDetectionModel from "./schema/storeEmpDetection.model.js";
|
|
|
43
43
|
import lowcountReasonModel from "./schema/lowcountReason.model.js";
|
|
44
44
|
import auditUserWalletModel from "./schema/auditUserWallet.model.js";
|
|
45
45
|
import mailOnlyuserModel from "./schema/mailOnlyuser.model.js";
|
|
46
|
+
import empDetectionOutputModel from "./schema/empDetectionOutput.model.js";
|
|
47
|
+
import auditUsersModel from "./schema/auditUsers.model.js";
|
|
46
48
|
|
|
47
49
|
|
|
48
50
|
|
|
@@ -92,5 +94,7 @@ export default {
|
|
|
92
94
|
storeEmpDetectionModel,
|
|
93
95
|
lowcountReasonModel,
|
|
94
96
|
auditUserWalletModel,
|
|
95
|
-
mailOnlyuserModel
|
|
97
|
+
mailOnlyuserModel,
|
|
98
|
+
empDetectionOutputModel,
|
|
99
|
+
auditUsersModel
|
|
96
100
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name api_audit_user
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// NPM Modules
|
|
6
|
+
import mongoose from 'mongoose';
|
|
7
|
+
|
|
8
|
+
// Schema
|
|
9
|
+
const auditUsersSchema = new mongoose.Schema( {
|
|
10
|
+
email: {
|
|
11
|
+
type: String,
|
|
12
|
+
trim:true
|
|
13
|
+
},
|
|
14
|
+
isActive:{
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default:true
|
|
17
|
+
},
|
|
18
|
+
type:{
|
|
19
|
+
type: String,
|
|
20
|
+
enum:["consultant"]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
timestamps: true,
|
|
26
|
+
strict: true,
|
|
27
|
+
versionKey: false,
|
|
28
|
+
} );
|
|
29
|
+
|
|
30
|
+
auditUsersSchema.index({
|
|
31
|
+
email: 1,
|
|
32
|
+
type: 1,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export default mongoose.model( 'auditUsers', auditUsersSchema, 'auditUsers' );
|
|
36
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name api_emp_detection_output
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// NPM Modules
|
|
6
|
+
import mongoose from 'mongoose';
|
|
7
|
+
|
|
8
|
+
// Schema
|
|
9
|
+
const empDetectionOutputSchema = new mongoose.Schema( {
|
|
10
|
+
userId: {
|
|
11
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
12
|
+
},
|
|
13
|
+
storeId: {
|
|
14
|
+
type: String,
|
|
15
|
+
},
|
|
16
|
+
moduleType:{
|
|
17
|
+
type:String,
|
|
18
|
+
enum:["mobile-detection", "uniform-detection"]
|
|
19
|
+
},
|
|
20
|
+
totalCount: {
|
|
21
|
+
type: Number,
|
|
22
|
+
},
|
|
23
|
+
auditId: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
auditType: {
|
|
27
|
+
type: String,
|
|
28
|
+
},
|
|
29
|
+
fileDate: {
|
|
30
|
+
type: String,
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
junkCount: {
|
|
34
|
+
type: Number,
|
|
35
|
+
},
|
|
36
|
+
junk: {
|
|
37
|
+
type: Array,
|
|
38
|
+
},
|
|
39
|
+
employeeCount: {
|
|
40
|
+
type: Number,
|
|
41
|
+
},
|
|
42
|
+
employee: {
|
|
43
|
+
type: Array,
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
timestamps: true,
|
|
48
|
+
strict: true,
|
|
49
|
+
versionKey: false,
|
|
50
|
+
} );
|
|
51
|
+
|
|
52
|
+
empDetectionOutputSchema.index({
|
|
53
|
+
storeId: 1,
|
|
54
|
+
clientId: 1,
|
|
55
|
+
userId: 1,
|
|
56
|
+
moduleType: 1,
|
|
57
|
+
fileDate: 1
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export default mongoose.model( 'empDetectionOutput', empDetectionOutputSchema, 'empDetectionOutput' );
|
|
61
|
+
|