tango-api-schema 2.0.148 → 2.0.150
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 +1 -1
- package/schema/auditStoreData.model.js +3 -3
- package/schema/camera.model.js +1 -1
- package/schema/client.model.js +3 -0
- package/schema/storeAudit.model.js +18 -11
- package/schema/userAudit.model.js +21 -21
- package/schema/assignZoneAudit.model.js +0 -51
- package/schema/auditClientData.model.js +0 -59
- package/schema/storeZoneAudit.model.js +0 -57
package/package.json
CHANGED
|
@@ -15,6 +15,9 @@ const auditStoreData = new mongoose.Schema( {
|
|
|
15
15
|
type: String,
|
|
16
16
|
trim:true
|
|
17
17
|
},
|
|
18
|
+
storeId:{
|
|
19
|
+
type:String
|
|
20
|
+
},
|
|
18
21
|
fileDate: {
|
|
19
22
|
type: String,
|
|
20
23
|
},
|
|
@@ -31,9 +34,6 @@ const auditStoreData = new mongoose.Schema( {
|
|
|
31
34
|
totalFilesCount: {
|
|
32
35
|
type: Number,
|
|
33
36
|
},
|
|
34
|
-
storeId:{
|
|
35
|
-
type:String
|
|
36
|
-
},
|
|
37
37
|
sqs:{
|
|
38
38
|
type:Object
|
|
39
39
|
}
|
package/schema/camera.model.js
CHANGED
package/schema/client.model.js
CHANGED
|
@@ -7,18 +7,34 @@ import mongoose from 'mongoose';
|
|
|
7
7
|
|
|
8
8
|
// Schema
|
|
9
9
|
const storeAuditSchema = new mongoose.Schema( {
|
|
10
|
-
|
|
11
|
-
type:
|
|
10
|
+
clientId: {
|
|
11
|
+
type: String,
|
|
12
12
|
},
|
|
13
13
|
storeId: {
|
|
14
14
|
type: String,
|
|
15
15
|
},
|
|
16
|
+
zoneName:{
|
|
17
|
+
type: String,
|
|
18
|
+
},
|
|
19
|
+
moduleType:{
|
|
20
|
+
type: String,
|
|
21
|
+
enum: [ 'traffic', 'zone' ],
|
|
22
|
+
},
|
|
16
23
|
auditType: {
|
|
17
24
|
type: String,
|
|
18
25
|
},
|
|
26
|
+
queueName: {
|
|
27
|
+
type: String,
|
|
28
|
+
},
|
|
19
29
|
fileDate: {
|
|
20
30
|
type: String,
|
|
21
31
|
},
|
|
32
|
+
fileDateISO: {
|
|
33
|
+
type: Date,
|
|
34
|
+
},
|
|
35
|
+
userId: {
|
|
36
|
+
type:Array,
|
|
37
|
+
},
|
|
22
38
|
timeSpent: {
|
|
23
39
|
type: Number,
|
|
24
40
|
default: 0,
|
|
@@ -34,15 +50,6 @@ const storeAuditSchema = new mongoose.Schema( {
|
|
|
34
50
|
afterCount: {
|
|
35
51
|
type: Number,
|
|
36
52
|
},
|
|
37
|
-
clientId: {
|
|
38
|
-
type: String,
|
|
39
|
-
},
|
|
40
|
-
queueName: {
|
|
41
|
-
type: String,
|
|
42
|
-
},
|
|
43
|
-
fileDateISO: {
|
|
44
|
-
type: Date,
|
|
45
|
-
},
|
|
46
53
|
},
|
|
47
54
|
{
|
|
48
55
|
timestamps: true,
|
|
@@ -10,15 +10,18 @@ const userAuditSchem = new mongoose.Schema( {
|
|
|
10
10
|
userId: {
|
|
11
11
|
type: mongoose.Schema.Types.ObjectId,
|
|
12
12
|
},
|
|
13
|
+
clientId: {
|
|
14
|
+
type: String,
|
|
15
|
+
},
|
|
13
16
|
storeId: {
|
|
14
17
|
type: String,
|
|
15
18
|
},
|
|
16
|
-
|
|
19
|
+
zoneName:{
|
|
17
20
|
type: String,
|
|
18
21
|
},
|
|
19
|
-
|
|
20
|
-
type:
|
|
21
|
-
|
|
22
|
+
moduleType:{
|
|
23
|
+
type: String,
|
|
24
|
+
enum: [ 'traffic', 'zone' ],
|
|
22
25
|
},
|
|
23
26
|
auditType: {
|
|
24
27
|
type: String,
|
|
@@ -26,13 +29,16 @@ const userAuditSchem = new mongoose.Schema( {
|
|
|
26
29
|
fileDate: {
|
|
27
30
|
type: String,
|
|
28
31
|
},
|
|
29
|
-
|
|
30
|
-
type: Number,
|
|
31
|
-
default: 0,
|
|
32
|
-
},
|
|
33
|
-
startTime: {
|
|
32
|
+
fileDateISO: {
|
|
34
33
|
type: Date,
|
|
35
34
|
},
|
|
35
|
+
queueName: {
|
|
36
|
+
type: String,
|
|
37
|
+
},
|
|
38
|
+
isDraft: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false,
|
|
41
|
+
},
|
|
36
42
|
auditStatus: {
|
|
37
43
|
type: String,
|
|
38
44
|
enum: [ 'inprogress', 'drafted', 'completed', 'skipped' ],
|
|
@@ -43,26 +49,20 @@ const userAuditSchem = new mongoose.Schema( {
|
|
|
43
49
|
afterCount: {
|
|
44
50
|
type: Number,
|
|
45
51
|
},
|
|
46
|
-
|
|
47
|
-
type:
|
|
48
|
-
},
|
|
49
|
-
queueName: {
|
|
50
|
-
type: String,
|
|
52
|
+
startTime: {
|
|
53
|
+
type: Date,
|
|
51
54
|
},
|
|
52
55
|
endTime: {
|
|
53
56
|
type: Date,
|
|
54
57
|
},
|
|
55
|
-
|
|
56
|
-
type:
|
|
58
|
+
timeSpent: {
|
|
59
|
+
type: Number,
|
|
60
|
+
default: 0,
|
|
57
61
|
},
|
|
58
62
|
dueHour: {
|
|
59
63
|
type: String
|
|
60
64
|
},
|
|
61
|
-
|
|
62
|
-
type: String,
|
|
63
|
-
enum: [ 'traffic', 'zone', ],
|
|
64
|
-
},
|
|
65
|
-
zoneName:{
|
|
65
|
+
userCommands: {
|
|
66
66
|
type: String,
|
|
67
67
|
},
|
|
68
68
|
},
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name api_audit
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// NPM Modules
|
|
6
|
-
import mongoose from 'mongoose';
|
|
7
|
-
|
|
8
|
-
// Schema
|
|
9
|
-
const assignZoneAuditModel = new mongoose.Schema( {
|
|
10
|
-
storeId: {
|
|
11
|
-
type: String,
|
|
12
|
-
},
|
|
13
|
-
clientId: {
|
|
14
|
-
type: String,
|
|
15
|
-
},
|
|
16
|
-
auditType: {
|
|
17
|
-
type: String,
|
|
18
|
-
},
|
|
19
|
-
zoneName:{
|
|
20
|
-
type: String,
|
|
21
|
-
},
|
|
22
|
-
fileDate: {
|
|
23
|
-
type: String,
|
|
24
|
-
},
|
|
25
|
-
fileDateISO: {
|
|
26
|
-
type: Date,
|
|
27
|
-
},
|
|
28
|
-
fileCount: {
|
|
29
|
-
type: Number,
|
|
30
|
-
},
|
|
31
|
-
userId: {
|
|
32
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
33
|
-
},
|
|
34
|
-
queueName: {
|
|
35
|
-
type: String,
|
|
36
|
-
},
|
|
37
|
-
isCompleted: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: false,
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
timestamps: true,
|
|
44
|
-
strict: true,
|
|
45
|
-
versionKey: false,
|
|
46
|
-
expires: '6h',
|
|
47
|
-
},
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
export default mongoose.model( 'assignZoneAudit', assignZoneAuditModel, 'assignZoneAudit' );
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name api_audit
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// NPM Modules
|
|
6
|
-
import mongoose from 'mongoose';
|
|
7
|
-
|
|
8
|
-
// Schema
|
|
9
|
-
const auditClientData = new mongoose.Schema( {
|
|
10
|
-
|
|
11
|
-
clientId: {
|
|
12
|
-
type: String,
|
|
13
|
-
},
|
|
14
|
-
clientName: {
|
|
15
|
-
type: String,
|
|
16
|
-
trim:true
|
|
17
|
-
},
|
|
18
|
-
fileDate: {
|
|
19
|
-
type: String,
|
|
20
|
-
},
|
|
21
|
-
fileDateISO: {
|
|
22
|
-
type: Date,
|
|
23
|
-
},
|
|
24
|
-
moduleType: {
|
|
25
|
-
type: String,
|
|
26
|
-
enum:["traffic", "zone"]
|
|
27
|
-
},
|
|
28
|
-
queueName: {
|
|
29
|
-
type: String,
|
|
30
|
-
trim:true
|
|
31
|
-
},
|
|
32
|
-
installedStore: {
|
|
33
|
-
type: Number,
|
|
34
|
-
},
|
|
35
|
-
totalFilesCount: {
|
|
36
|
-
type: Number,
|
|
37
|
-
},
|
|
38
|
-
storeList:{
|
|
39
|
-
type:Array
|
|
40
|
-
},
|
|
41
|
-
zoneList:[
|
|
42
|
-
{
|
|
43
|
-
storeId:{
|
|
44
|
-
type:String
|
|
45
|
-
},
|
|
46
|
-
zoneName: {
|
|
47
|
-
type:String
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
timestamps: true,
|
|
54
|
-
strict: true,
|
|
55
|
-
versionKey: false,
|
|
56
|
-
} );
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export default mongoose.model( 'auditClientData', auditClientData, 'auditClientData' );
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name api_audit
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// NPM Modules
|
|
6
|
-
import mongoose from 'mongoose';
|
|
7
|
-
|
|
8
|
-
// Schema
|
|
9
|
-
const storeZoneAuditSchema = new mongoose.Schema( {
|
|
10
|
-
userId: {
|
|
11
|
-
type:Array,
|
|
12
|
-
},
|
|
13
|
-
storeId: {
|
|
14
|
-
type: String,
|
|
15
|
-
},
|
|
16
|
-
auditType: {
|
|
17
|
-
type: String,
|
|
18
|
-
},
|
|
19
|
-
fileDate: {
|
|
20
|
-
type: String,
|
|
21
|
-
},
|
|
22
|
-
timeSpent: {
|
|
23
|
-
type: Number,
|
|
24
|
-
default: 0,
|
|
25
|
-
},
|
|
26
|
-
zoneName:{
|
|
27
|
-
type: String,
|
|
28
|
-
},
|
|
29
|
-
status: {
|
|
30
|
-
type: String,
|
|
31
|
-
enum: [ 'completed', 'inprogress', 'not_assign', 'drafted', 'skipped', 'assigned' ],
|
|
32
|
-
default: 'inprogress',
|
|
33
|
-
},
|
|
34
|
-
beforeCount: {
|
|
35
|
-
type: Number,
|
|
36
|
-
},
|
|
37
|
-
afterCount: {
|
|
38
|
-
type: Number,
|
|
39
|
-
},
|
|
40
|
-
clientId: {
|
|
41
|
-
type: String,
|
|
42
|
-
},
|
|
43
|
-
queueName: {
|
|
44
|
-
type: String,
|
|
45
|
-
},
|
|
46
|
-
fileDateISO: {
|
|
47
|
-
type: Date,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
timestamps: true,
|
|
52
|
-
strict: true,
|
|
53
|
-
versionKey: false,
|
|
54
|
-
} );
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
export default mongoose.model( 'storeZoneAudit', storeZoneAuditSchema, 'storeZoneAudit' );
|