tango-api-schema 2.4.23 → 2.4.25
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 +27 -27
- package/schema/client.model.js +6 -2
- package/schema/vmsuserAudit.model.js +66 -0
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tango-api-schema",
|
|
3
|
-
"version": "2.4.
|
|
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
|
-
"build:patch": "node build.js patch && npm publish",
|
|
11
|
-
"build:minor": "node build.js minor && npm publish",
|
|
12
|
-
"build:major": "node build.js major && npm publish"
|
|
13
|
-
},
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
|
|
17
|
-
},
|
|
18
|
-
"author": "praveenraj",
|
|
19
|
-
"license": "ISC",
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
|
|
22
|
-
},
|
|
23
|
-
"homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"express": "^4.21.1",
|
|
26
|
-
"mongoose": "^7.5.3"
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tango-api-schema",
|
|
3
|
+
"version": "2.4.25",
|
|
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
|
+
"build:patch": "node build.js patch && npm publish",
|
|
11
|
+
"build:minor": "node build.js minor && npm publish",
|
|
12
|
+
"build:major": "node build.js major && npm publish"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://praveen22raj@bitbucket.org/tangoeye-retail/tango-api-schema.git"
|
|
17
|
+
},
|
|
18
|
+
"author": "praveenraj",
|
|
19
|
+
"license": "ISC",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://bitbucket.org/tangoeye-retail/tango-api-schema/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://bitbucket.org/tangoeye-retail/tango-api-schema#readme",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"express": "^4.21.1",
|
|
26
|
+
"mongoose": "^7.5.3"
|
|
27
|
+
}
|
|
28
28
|
}
|
package/schema/client.model.js
CHANGED
|
@@ -519,6 +519,10 @@ const client = new mongoose.Schema(
|
|
|
519
519
|
taggingLimitation: {
|
|
520
520
|
type: [
|
|
521
521
|
{
|
|
522
|
+
name: {
|
|
523
|
+
type: String,
|
|
524
|
+
default: ""
|
|
525
|
+
},
|
|
522
526
|
type: {
|
|
523
527
|
type: String,
|
|
524
528
|
default: ""
|
|
@@ -531,8 +535,8 @@ const client = new mongoose.Schema(
|
|
|
531
535
|
type: String,
|
|
532
536
|
default: "%"
|
|
533
537
|
},
|
|
534
|
-
key:{
|
|
535
|
-
|
|
538
|
+
key: {
|
|
539
|
+
type: String,
|
|
536
540
|
default: ""
|
|
537
541
|
}
|
|
538
542
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name api_audit
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// NPM Modules
|
|
6
|
+
import mongoose from 'mongoose';
|
|
7
|
+
|
|
8
|
+
// Schema
|
|
9
|
+
const vmsuserAuditSchem = new mongoose.Schema( {
|
|
10
|
+
userId: {
|
|
11
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
12
|
+
},
|
|
13
|
+
clientId: {
|
|
14
|
+
type: String,
|
|
15
|
+
},
|
|
16
|
+
storeId: {
|
|
17
|
+
type: String,
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
fileDate: {
|
|
21
|
+
type: String,
|
|
22
|
+
},
|
|
23
|
+
fileDateISO: {
|
|
24
|
+
type: Date,
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
isDraft: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false,
|
|
30
|
+
},
|
|
31
|
+
auditStatus: {
|
|
32
|
+
type: String,
|
|
33
|
+
enum: [ 'inprogress', 'drafted', 'completed', 'skipped' ],
|
|
34
|
+
},
|
|
35
|
+
beforeCount: {
|
|
36
|
+
type: Number,
|
|
37
|
+
},
|
|
38
|
+
afterCount: {
|
|
39
|
+
type: Number,
|
|
40
|
+
},
|
|
41
|
+
startTime: {
|
|
42
|
+
type: Date,
|
|
43
|
+
},
|
|
44
|
+
endTime: {
|
|
45
|
+
type: Date,
|
|
46
|
+
},
|
|
47
|
+
timeSpent: {
|
|
48
|
+
type: Number,
|
|
49
|
+
default: 0,
|
|
50
|
+
},
|
|
51
|
+
dueHour: {
|
|
52
|
+
type: String
|
|
53
|
+
},
|
|
54
|
+
userCommands: {
|
|
55
|
+
type: String,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
timestamps: true,
|
|
60
|
+
strict: true,
|
|
61
|
+
versionKey: false,
|
|
62
|
+
} );
|
|
63
|
+
|
|
64
|
+
vmsuserAuditSchem.index({ storeId: 1,moduleType:1, fileDate:1,clientId:1,userId:1, auditType:1, fileDateISO:1});
|
|
65
|
+
|
|
66
|
+
export default mongoose.model( 'vmsuserAudit', vmsuserAuditSchem, 'vmsuserAudit' );
|