tango-api-schema 2.1.14 → 2.1.15
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 +91 -93
- package/package.json +27 -27
- package/schema/applicationDefault.model.js +24 -24
- package/schema/assignAudit.model.js +55 -55
- package/schema/auditLogs.model.js +72 -72
- package/schema/auditStoreData.model.js +55 -55
- package/schema/auditUserWallet.model.js +68 -68
- package/schema/authentication.model.js +27 -27
- package/schema/basePricing.model.js +29 -29
- package/schema/billing.model.js +99 -99
- package/schema/binaryAudit.model.js +84 -84
- package/schema/camera.model.js +146 -146
- package/schema/client.model.js +518 -514
- package/schema/clientRequest.model.js +40 -40
- package/schema/countryCodes.model.js +28 -28
- package/schema/dailyPricing.model.js +88 -88
- package/schema/dataMismatchDraft.model.js +22 -22
- package/schema/edgeAppVersion.model.js +33 -33
- package/schema/edgeappAuth.model.js +32 -32
- package/schema/externalParameter.model.js +202 -202
- package/schema/eyetest.model.js +18 -18
- package/schema/fitting.model.js +52 -52
- package/schema/group.model.js +36 -36
- package/schema/infraReason.model.js +44 -44
- package/schema/internalAuth.model.js +36 -36
- package/schema/invoice.model.js +106 -106
- package/schema/ipLogs.model.js +39 -39
- package/schema/lead.model.js +78 -78
- package/schema/lowcountReason.model.js +44 -44
- package/schema/matLog.model.js +26 -26
- package/schema/otp.model.js +27 -27
- package/schema/paymentAccount.model.js +60 -60
- package/schema/quality.model.js +57 -57
- package/schema/report.model.js +30 -30
- package/schema/standaredRole.model.js +56 -56
- package/schema/store.model.js +321 -321
- package/schema/storeAudit.model.js +61 -61
- package/schema/storeEmpDetection.model.js +61 -61
- package/schema/tagging.model.js +44 -44
- package/schema/tangoTicket.model.js +210 -210
- package/schema/transaction.model.js +54 -54
- package/schema/traxAuditData.model.js +60 -60
- package/schema/user.model.js +95 -95
- package/schema/userAssignedStore.model.js +41 -41
- package/schema/userAudit.model.js +76 -76
- package/schema/userEmpDetection.model.js +74 -74
- package/schema/workstation.model.js +77 -77
package/index.js
CHANGED
|
@@ -1,94 +1,92 @@
|
|
|
1
|
-
import leadModel from "./schema/lead.model.js";
|
|
2
|
-
import otpModel from "./schema/otp.model.js";
|
|
3
|
-
import storeModel from "./schema/store.model.js";
|
|
4
|
-
import countryCodesModel from "./schema/countryCodes.model.js";
|
|
5
|
-
import clientModel from "./schema/client.model.js";
|
|
6
|
-
import tangoTicketModel from "./schema/tangoTicket.model.js";
|
|
7
|
-
import ipLogModel from "./schema/ipLogs.model.js";
|
|
8
|
-
import userModel from "./schema/user.model.js";
|
|
9
|
-
import edgeAppVersionModel from "./schema/edgeAppVersion.model.js";
|
|
10
|
-
import applicationDefaultModel from "./schema/applicationDefault.model.js";
|
|
11
|
-
import cameraModel from "./schema/camera.model.js";
|
|
12
|
-
import reportModel from "./schema/report.model.js";
|
|
13
|
-
import standaredRoleModel from "./schema/standaredRole.model.js";
|
|
14
|
-
import infraReasonModel from "./schema/infraReason.model.js";
|
|
15
|
-
import groupModel from "./schema/group.model.js";
|
|
16
|
-
import authenticationModel from "./schema/authentication.model.js";
|
|
17
|
-
import userAssignedStoreModel from "./schema/userAssignedStore.model.js";
|
|
18
|
-
import edgeappAuthModel from "./schema/edgeappAuth.model.js";
|
|
19
|
-
import clientRequestModel from "./schema/clientRequest.model.js";
|
|
20
|
-
import basePricingModel from "./schema/basePricing.model.js";
|
|
21
|
-
import invoiceModel from "./schema/invoice.model.js";
|
|
22
|
-
import workstationModel from "./schema/workstation.model.js";
|
|
23
|
-
import dailyPricingModel from "./schema/dailyPricing.model.js";
|
|
24
|
-
import fittingModel from "./schema/fitting.model.js";
|
|
25
|
-
import qualityCheckModel from "./schema/quality.model.js";
|
|
26
|
-
import taggingModel from "./schema/tagging.model.js";
|
|
27
|
-
import userAuditModel from "./schema/userAudit.model.js";
|
|
28
|
-
import storeAuditModel from "./schema/storeAudit.model.js";
|
|
29
|
-
import assignAuditModel from "./schema/assignAudit.model.js";
|
|
30
|
-
import auditStoreDataModel from "./schema/auditStoreData.model.js";
|
|
31
|
-
import matLogModel from "./schema/matLog.model.js";
|
|
32
|
-
import billingModel from "./schema/billing.model.js";
|
|
33
|
-
import auditLogsModel from "./schema/auditLogs.model.js";
|
|
34
|
-
import internalAuthModel from "./schema/internalAuth.model.js";
|
|
35
|
-
import paymentAccountModel from "./schema/paymentAccount.model.js";
|
|
36
|
-
import externalParameterModel from "./schema/externalParameter.model.js";
|
|
37
|
-
import transactionModel from "./schema/transaction.model.js";
|
|
38
|
-
import dataMismatchDraftModel from "./schema/dataMismatchDraft.model.js";
|
|
39
|
-
import traxAuditDataModel from "./schema/traxAuditData.model.js";
|
|
40
|
-
import binaryAuditModel from "./schema/binaryAudit.model.js";
|
|
41
|
-
import userEmpDetectionModel from "./schema/userEmpDetection.model.js";
|
|
42
|
-
import storeEmpDetectionModel from "./schema/storeEmpDetection.model.js";
|
|
43
|
-
import lowcountReasonModel from "./schema/lowcountReason.model.js";
|
|
44
|
-
import auditUserWalletMedel from "./schema/auditUserWallet.model.js";
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
auditUserWalletMedel,
|
|
93
|
-
eyetestModel
|
|
1
|
+
import leadModel from "./schema/lead.model.js";
|
|
2
|
+
import otpModel from "./schema/otp.model.js";
|
|
3
|
+
import storeModel from "./schema/store.model.js";
|
|
4
|
+
import countryCodesModel from "./schema/countryCodes.model.js";
|
|
5
|
+
import clientModel from "./schema/client.model.js";
|
|
6
|
+
import tangoTicketModel from "./schema/tangoTicket.model.js";
|
|
7
|
+
import ipLogModel from "./schema/ipLogs.model.js";
|
|
8
|
+
import userModel from "./schema/user.model.js";
|
|
9
|
+
import edgeAppVersionModel from "./schema/edgeAppVersion.model.js";
|
|
10
|
+
import applicationDefaultModel from "./schema/applicationDefault.model.js";
|
|
11
|
+
import cameraModel from "./schema/camera.model.js";
|
|
12
|
+
import reportModel from "./schema/report.model.js";
|
|
13
|
+
import standaredRoleModel from "./schema/standaredRole.model.js";
|
|
14
|
+
import infraReasonModel from "./schema/infraReason.model.js";
|
|
15
|
+
import groupModel from "./schema/group.model.js";
|
|
16
|
+
import authenticationModel from "./schema/authentication.model.js";
|
|
17
|
+
import userAssignedStoreModel from "./schema/userAssignedStore.model.js";
|
|
18
|
+
import edgeappAuthModel from "./schema/edgeappAuth.model.js";
|
|
19
|
+
import clientRequestModel from "./schema/clientRequest.model.js";
|
|
20
|
+
import basePricingModel from "./schema/basePricing.model.js";
|
|
21
|
+
import invoiceModel from "./schema/invoice.model.js";
|
|
22
|
+
import workstationModel from "./schema/workstation.model.js";
|
|
23
|
+
import dailyPricingModel from "./schema/dailyPricing.model.js";
|
|
24
|
+
import fittingModel from "./schema/fitting.model.js";
|
|
25
|
+
import qualityCheckModel from "./schema/quality.model.js";
|
|
26
|
+
import taggingModel from "./schema/tagging.model.js";
|
|
27
|
+
import userAuditModel from "./schema/userAudit.model.js";
|
|
28
|
+
import storeAuditModel from "./schema/storeAudit.model.js";
|
|
29
|
+
import assignAuditModel from "./schema/assignAudit.model.js";
|
|
30
|
+
import auditStoreDataModel from "./schema/auditStoreData.model.js";
|
|
31
|
+
import matLogModel from "./schema/matLog.model.js";
|
|
32
|
+
import billingModel from "./schema/billing.model.js";
|
|
33
|
+
import auditLogsModel from "./schema/auditLogs.model.js";
|
|
34
|
+
import internalAuthModel from "./schema/internalAuth.model.js";
|
|
35
|
+
import paymentAccountModel from "./schema/paymentAccount.model.js";
|
|
36
|
+
import externalParameterModel from "./schema/externalParameter.model.js";
|
|
37
|
+
import transactionModel from "./schema/transaction.model.js";
|
|
38
|
+
import dataMismatchDraftModel from "./schema/dataMismatchDraft.model.js";
|
|
39
|
+
import traxAuditDataModel from "./schema/traxAuditData.model.js";
|
|
40
|
+
import binaryAuditModel from "./schema/binaryAudit.model.js";
|
|
41
|
+
import userEmpDetectionModel from "./schema/userEmpDetection.model.js";
|
|
42
|
+
import storeEmpDetectionModel from "./schema/storeEmpDetection.model.js";
|
|
43
|
+
import lowcountReasonModel from "./schema/lowcountReason.model.js";
|
|
44
|
+
import auditUserWalletMedel from "./schema/auditUserWallet.model.js";
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
export default {
|
|
48
|
+
leadModel,
|
|
49
|
+
otpModel,
|
|
50
|
+
storeModel,
|
|
51
|
+
countryCodesModel,
|
|
52
|
+
clientModel,
|
|
53
|
+
tangoTicketModel,
|
|
54
|
+
ipLogModel,
|
|
55
|
+
userModel,
|
|
56
|
+
edgeAppVersionModel,
|
|
57
|
+
applicationDefaultModel,
|
|
58
|
+
cameraModel,
|
|
59
|
+
reportModel,
|
|
60
|
+
standaredRoleModel,
|
|
61
|
+
infraReasonModel,
|
|
62
|
+
groupModel,
|
|
63
|
+
authenticationModel,
|
|
64
|
+
userAssignedStoreModel,
|
|
65
|
+
edgeappAuthModel,
|
|
66
|
+
clientRequestModel,
|
|
67
|
+
basePricingModel,
|
|
68
|
+
invoiceModel,
|
|
69
|
+
workstationModel,
|
|
70
|
+
dailyPricingModel,
|
|
71
|
+
fittingModel,
|
|
72
|
+
qualityCheckModel,
|
|
73
|
+
taggingModel,
|
|
74
|
+
userAuditModel,
|
|
75
|
+
storeAuditModel,
|
|
76
|
+
assignAuditModel,
|
|
77
|
+
auditStoreDataModel,
|
|
78
|
+
matLogModel,
|
|
79
|
+
billingModel,
|
|
80
|
+
auditLogsModel,
|
|
81
|
+
internalAuthModel,
|
|
82
|
+
paymentAccountModel,
|
|
83
|
+
externalParameterModel,
|
|
84
|
+
transactionModel,
|
|
85
|
+
dataMismatchDraftModel,
|
|
86
|
+
traxAuditDataModel,
|
|
87
|
+
binaryAuditModel,
|
|
88
|
+
userEmpDetectionModel,
|
|
89
|
+
storeEmpDetectionModel,
|
|
90
|
+
lowcountReasonModel,
|
|
91
|
+
auditUserWalletMedel
|
|
94
92
|
};
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tango-api-schema",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"description": "tangoEye model schema",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
-
"start": "node index.js"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
|
|
14
|
-
},
|
|
15
|
-
"author": "praveenraj",
|
|
16
|
-
"license": "ISC",
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
|
|
19
|
-
},
|
|
20
|
-
"homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"express": "^4.18.2",
|
|
23
|
-
"mongoose": "^7.5.3",
|
|
24
|
-
"mongoose-unique-validator": "^4.0.0",
|
|
25
|
-
"nodemon": "^3.0.1"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tango-api-schema",
|
|
3
|
+
"version": "2.1.15",
|
|
4
|
+
"description": "tangoEye model schema",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"start": "node index.js"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
|
|
14
|
+
},
|
|
15
|
+
"author": "praveenraj",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"express": "^4.18.2",
|
|
23
|
+
"mongoose": "^7.5.3",
|
|
24
|
+
"mongoose-unique-validator": "^4.0.0",
|
|
25
|
+
"nodemon": "^3.0.1"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Schema, model } from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const collection = new Schema(
|
|
4
|
-
{
|
|
5
|
-
type: {
|
|
6
|
-
type: String,
|
|
7
|
-
},
|
|
8
|
-
subType: {
|
|
9
|
-
type: String,
|
|
10
|
-
},
|
|
11
|
-
data: {
|
|
12
|
-
type: Object,
|
|
13
|
-
},
|
|
14
|
-
active: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
timestamps: true,
|
|
20
|
-
strict: true,
|
|
21
|
-
versionKey: false,
|
|
22
|
-
} );
|
|
23
|
-
|
|
24
|
-
export default model( 'applicationDefault', collection, 'applicationDefault' );
|
|
1
|
+
import { Schema, model } from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const collection = new Schema(
|
|
4
|
+
{
|
|
5
|
+
type: {
|
|
6
|
+
type: String,
|
|
7
|
+
},
|
|
8
|
+
subType: {
|
|
9
|
+
type: String,
|
|
10
|
+
},
|
|
11
|
+
data: {
|
|
12
|
+
type: Object,
|
|
13
|
+
},
|
|
14
|
+
active: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
timestamps: true,
|
|
20
|
+
strict: true,
|
|
21
|
+
versionKey: false,
|
|
22
|
+
} );
|
|
23
|
+
|
|
24
|
+
export default model( 'applicationDefault', collection, 'applicationDefault' );
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name api_audit
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// NPM Modules
|
|
6
|
-
import mongoose from 'mongoose';
|
|
7
|
-
|
|
8
|
-
// Schema
|
|
9
|
-
const assignAudit = new mongoose.Schema( {
|
|
10
|
-
storeId: {
|
|
11
|
-
type: String,
|
|
12
|
-
},
|
|
13
|
-
clientId: {
|
|
14
|
-
type: String,
|
|
15
|
-
},
|
|
16
|
-
moduleType:{
|
|
17
|
-
type:String,
|
|
18
|
-
enum:["traffic", "zone"]
|
|
19
|
-
},
|
|
20
|
-
zoneName: {
|
|
21
|
-
type:String
|
|
22
|
-
},
|
|
23
|
-
auditType: {
|
|
24
|
-
type: String,
|
|
25
|
-
},
|
|
26
|
-
fileDate: {
|
|
27
|
-
type: String,
|
|
28
|
-
},
|
|
29
|
-
fileDateISO: {
|
|
30
|
-
type: Date,
|
|
31
|
-
},
|
|
32
|
-
fileCount: {
|
|
33
|
-
type: Number,
|
|
34
|
-
},
|
|
35
|
-
userId: {
|
|
36
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
37
|
-
},
|
|
38
|
-
queueName: {
|
|
39
|
-
type: String,
|
|
40
|
-
},
|
|
41
|
-
isCompleted: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false,
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
timestamps: true,
|
|
48
|
-
strict: true,
|
|
49
|
-
versionKey: false,
|
|
50
|
-
expires: '6h',
|
|
51
|
-
},
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export default mongoose.model( 'assignAudit', assignAudit, 'assignAudit' );
|
|
1
|
+
/**
|
|
2
|
+
* @name api_audit
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// NPM Modules
|
|
6
|
+
import mongoose from 'mongoose';
|
|
7
|
+
|
|
8
|
+
// Schema
|
|
9
|
+
const assignAudit = new mongoose.Schema( {
|
|
10
|
+
storeId: {
|
|
11
|
+
type: String,
|
|
12
|
+
},
|
|
13
|
+
clientId: {
|
|
14
|
+
type: String,
|
|
15
|
+
},
|
|
16
|
+
moduleType:{
|
|
17
|
+
type:String,
|
|
18
|
+
enum:["traffic", "zone"]
|
|
19
|
+
},
|
|
20
|
+
zoneName: {
|
|
21
|
+
type:String
|
|
22
|
+
},
|
|
23
|
+
auditType: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
fileDate: {
|
|
27
|
+
type: String,
|
|
28
|
+
},
|
|
29
|
+
fileDateISO: {
|
|
30
|
+
type: Date,
|
|
31
|
+
},
|
|
32
|
+
fileCount: {
|
|
33
|
+
type: Number,
|
|
34
|
+
},
|
|
35
|
+
userId: {
|
|
36
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
37
|
+
},
|
|
38
|
+
queueName: {
|
|
39
|
+
type: String,
|
|
40
|
+
},
|
|
41
|
+
isCompleted: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false,
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
timestamps: true,
|
|
48
|
+
strict: true,
|
|
49
|
+
versionKey: false,
|
|
50
|
+
expires: '6h',
|
|
51
|
+
},
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
export default mongoose.model( 'assignAudit', assignAudit, 'assignAudit' );
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name api_audit_logs
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// NPM Modules
|
|
6
|
-
import mongoose from 'mongoose';
|
|
7
|
-
|
|
8
|
-
// Schema
|
|
9
|
-
const auditLogSchem = 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:["traffic", "zone"]
|
|
19
|
-
},
|
|
20
|
-
zoneName:{
|
|
21
|
-
type:String
|
|
22
|
-
},
|
|
23
|
-
auditId: {
|
|
24
|
-
type: String,
|
|
25
|
-
},
|
|
26
|
-
auditType: {
|
|
27
|
-
type: String,
|
|
28
|
-
},
|
|
29
|
-
fileDate: {
|
|
30
|
-
type: String,
|
|
31
|
-
},
|
|
32
|
-
queueName: {
|
|
33
|
-
type: String,
|
|
34
|
-
},
|
|
35
|
-
totalCount: {
|
|
36
|
-
type: Number,
|
|
37
|
-
},
|
|
38
|
-
junkCount: {
|
|
39
|
-
type: Number,
|
|
40
|
-
},
|
|
41
|
-
junk: {
|
|
42
|
-
type: Array,
|
|
43
|
-
},
|
|
44
|
-
employeeCount: {
|
|
45
|
-
type: Number,
|
|
46
|
-
},
|
|
47
|
-
employee: {
|
|
48
|
-
type: Array,
|
|
49
|
-
},
|
|
50
|
-
customerCount: {
|
|
51
|
-
type: Number,
|
|
52
|
-
},
|
|
53
|
-
customer: {
|
|
54
|
-
type: Array,
|
|
55
|
-
},
|
|
56
|
-
retagCount: {
|
|
57
|
-
type: Number,
|
|
58
|
-
},
|
|
59
|
-
retagImage: {
|
|
60
|
-
type: Array,
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
timestamps: true,
|
|
65
|
-
strict: true,
|
|
66
|
-
versionKey: false,
|
|
67
|
-
expires: '3d',
|
|
68
|
-
} );
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
export default mongoose.model( 'auditLog', auditLogSchem, 'auditLog' );
|
|
72
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @name api_audit_logs
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// NPM Modules
|
|
6
|
+
import mongoose from 'mongoose';
|
|
7
|
+
|
|
8
|
+
// Schema
|
|
9
|
+
const auditLogSchem = 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:["traffic", "zone"]
|
|
19
|
+
},
|
|
20
|
+
zoneName:{
|
|
21
|
+
type:String
|
|
22
|
+
},
|
|
23
|
+
auditId: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
auditType: {
|
|
27
|
+
type: String,
|
|
28
|
+
},
|
|
29
|
+
fileDate: {
|
|
30
|
+
type: String,
|
|
31
|
+
},
|
|
32
|
+
queueName: {
|
|
33
|
+
type: String,
|
|
34
|
+
},
|
|
35
|
+
totalCount: {
|
|
36
|
+
type: Number,
|
|
37
|
+
},
|
|
38
|
+
junkCount: {
|
|
39
|
+
type: Number,
|
|
40
|
+
},
|
|
41
|
+
junk: {
|
|
42
|
+
type: Array,
|
|
43
|
+
},
|
|
44
|
+
employeeCount: {
|
|
45
|
+
type: Number,
|
|
46
|
+
},
|
|
47
|
+
employee: {
|
|
48
|
+
type: Array,
|
|
49
|
+
},
|
|
50
|
+
customerCount: {
|
|
51
|
+
type: Number,
|
|
52
|
+
},
|
|
53
|
+
customer: {
|
|
54
|
+
type: Array,
|
|
55
|
+
},
|
|
56
|
+
retagCount: {
|
|
57
|
+
type: Number,
|
|
58
|
+
},
|
|
59
|
+
retagImage: {
|
|
60
|
+
type: Array,
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
timestamps: true,
|
|
65
|
+
strict: true,
|
|
66
|
+
versionKey: false,
|
|
67
|
+
expires: '3d',
|
|
68
|
+
} );
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
export default mongoose.model( 'auditLog', auditLogSchem, 'auditLog' );
|
|
72
|
+
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name api_audit
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// NPM Modules
|
|
6
|
-
import mongoose from 'mongoose';
|
|
7
|
-
|
|
8
|
-
// Schema
|
|
9
|
-
const auditStoreData = new mongoose.Schema( {
|
|
10
|
-
|
|
11
|
-
clientId: {
|
|
12
|
-
type: String,
|
|
13
|
-
},
|
|
14
|
-
clientName: {
|
|
15
|
-
type: String,
|
|
16
|
-
trim:true
|
|
17
|
-
},
|
|
18
|
-
storeId:{
|
|
19
|
-
type:String
|
|
20
|
-
},
|
|
21
|
-
moduleType:{
|
|
22
|
-
type: String,
|
|
23
|
-
enum:['traffic','zone']
|
|
24
|
-
},
|
|
25
|
-
zoneName:{
|
|
26
|
-
type: String
|
|
27
|
-
},
|
|
28
|
-
fileDate: {
|
|
29
|
-
type: String,
|
|
30
|
-
},
|
|
31
|
-
fileDateISO: {
|
|
32
|
-
type: Date,
|
|
33
|
-
},
|
|
34
|
-
queueName: {
|
|
35
|
-
type: String,
|
|
36
|
-
trim:true
|
|
37
|
-
},
|
|
38
|
-
installedStore: {
|
|
39
|
-
type: Number,
|
|
40
|
-
},
|
|
41
|
-
totalFilesCount: {
|
|
42
|
-
type: Number,
|
|
43
|
-
},
|
|
44
|
-
sqs:{
|
|
45
|
-
type:Object
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
timestamps: true,
|
|
50
|
-
strict: true,
|
|
51
|
-
versionKey: false,
|
|
52
|
-
} );
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export default mongoose.model( 'auditStoreData', auditStoreData, 'auditStoreData' );
|
|
1
|
+
/**
|
|
2
|
+
* @name api_audit
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// NPM Modules
|
|
6
|
+
import mongoose from 'mongoose';
|
|
7
|
+
|
|
8
|
+
// Schema
|
|
9
|
+
const auditStoreData = new mongoose.Schema( {
|
|
10
|
+
|
|
11
|
+
clientId: {
|
|
12
|
+
type: String,
|
|
13
|
+
},
|
|
14
|
+
clientName: {
|
|
15
|
+
type: String,
|
|
16
|
+
trim:true
|
|
17
|
+
},
|
|
18
|
+
storeId:{
|
|
19
|
+
type:String
|
|
20
|
+
},
|
|
21
|
+
moduleType:{
|
|
22
|
+
type: String,
|
|
23
|
+
enum:['traffic','zone']
|
|
24
|
+
},
|
|
25
|
+
zoneName:{
|
|
26
|
+
type: String
|
|
27
|
+
},
|
|
28
|
+
fileDate: {
|
|
29
|
+
type: String,
|
|
30
|
+
},
|
|
31
|
+
fileDateISO: {
|
|
32
|
+
type: Date,
|
|
33
|
+
},
|
|
34
|
+
queueName: {
|
|
35
|
+
type: String,
|
|
36
|
+
trim:true
|
|
37
|
+
},
|
|
38
|
+
installedStore: {
|
|
39
|
+
type: Number,
|
|
40
|
+
},
|
|
41
|
+
totalFilesCount: {
|
|
42
|
+
type: Number,
|
|
43
|
+
},
|
|
44
|
+
sqs:{
|
|
45
|
+
type:Object
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
timestamps: true,
|
|
50
|
+
strict: true,
|
|
51
|
+
versionKey: false,
|
|
52
|
+
} );
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
export default mongoose.model( 'auditStoreData', auditStoreData, 'auditStoreData' );
|