tango-api-schema 2.1.99 → 2.2.1-plano
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 +50 -1
- package/package.json +3 -2
- package/schema/appVersion.js +7 -0
- package/schema/assignAudit.model.js +1 -1
- package/schema/auditConfig.model.js +41 -0
- package/schema/auditLogs.model.js +1 -1
- package/schema/auditStoreData.model.js +1 -1
- package/schema/auditUsers.model.js +21 -7
- package/schema/binaryAudit.model.js +1 -1
- package/schema/camera.model.js +67 -0
- package/schema/checklistassignconfig.js +22 -3
- package/schema/checklistconfig.js +69 -1
- package/schema/checklistlog.js +17 -0
- package/schema/checklistquestionconfig.js +6 -0
- package/schema/client.model.js +116 -1
- package/schema/countryCurrency.model.js +18 -0
- package/schema/download.js +17 -1
- package/schema/emailers.model.js +46 -0
- package/schema/empDetectionOutput.model.js +4 -1
- package/schema/externalParameter.model.js +48 -9
- package/schema/fixtureConfig.model.js +202 -0
- package/schema/fixtureLibrary.model.js +165 -0
- package/schema/fixtureShelf.model.js +72 -0
- package/schema/liveConnection.model.js +7 -1
- package/schema/loginAttempt.model.js +26 -0
- package/schema/nobBilling.model.js +10 -4
- package/schema/notification.model.js +33 -0
- package/schema/planoCompliance.model.js +62 -0
- package/schema/planoCrestLog.model.js +18 -0
- package/schema/planoMapping.model.js +56 -0
- package/schema/planoProductCategoryDetails.model.js +33 -0
- package/schema/planoProductDetail.model.js +63 -0
- package/schema/planoQrConversionRequest.model.js +61 -0
- package/schema/planoStaticData.model.js +18 -0
- package/schema/planoTaskCompliance.model.js +107 -0
- package/schema/planoVmDetail.model.js +63 -0
- package/schema/planogram.model.js +66 -0
- package/schema/processedchecklist.js +45 -3
- package/schema/processedchecklistconfig.js +76 -1
- package/schema/revopConfig.model.js +19 -0
- package/schema/store.model.js +58 -0
- package/schema/storeAudit.model.js +1 -1
- package/schema/storeEmpDetection.model.js +1 -1
- package/schema/storeFixture.model.js +206 -0
- package/schema/storeLayout.model.js +66 -0
- package/schema/streaming.model.js +29 -0
- package/schema/suspiciousActivity.model.js +54 -0
- package/schema/taskAssign.model.js +87 -71
- package/schema/taskConfig.model.js +115 -106
- package/schema/taskProcessed.model.js +245 -194
- package/schema/taskProcessedConfig.model.js +128 -108
- package/schema/taskQuestion.model.js +46 -43
- package/schema/traxApprover.model.js +35 -31
- package/schema/traxAuditData.model.js +3 -0
- package/schema/user.model.js +16 -1
- package/schema/userAudit.model.js +1 -1
- package/schema/userEmpDetection.model.js +4 -2
- package/schema/vmType.model.js +24 -0
|
@@ -1,109 +1,129 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const processestaskconfigSchema = new mongoose.Schema({
|
|
4
|
-
client_id: {
|
|
5
|
-
type: String,
|
|
6
|
-
required:true
|
|
7
|
-
},
|
|
8
|
-
date_iso: {
|
|
9
|
-
type: Date,
|
|
10
|
-
},
|
|
11
|
-
date_string: {
|
|
12
|
-
type: String,
|
|
13
|
-
},
|
|
14
|
-
sourceCheckList_id: {
|
|
15
|
-
type: mongoose.Schema.Types.ObjectId,
|
|
16
|
-
ref: 'taskConfig'
|
|
17
|
-
},
|
|
18
|
-
checkListName: {
|
|
19
|
-
type: String,
|
|
20
|
-
required:true
|
|
21
|
-
},
|
|
22
|
-
scheduleStartTime: {
|
|
23
|
-
type: String
|
|
24
|
-
},
|
|
25
|
-
scheduleEndTime: {
|
|
26
|
-
type: String
|
|
27
|
-
},
|
|
28
|
-
scheduleStartTime_iso: {
|
|
29
|
-
type: Date
|
|
30
|
-
},
|
|
31
|
-
scheduleEndTime_iso: {
|
|
32
|
-
type: Date
|
|
33
|
-
},
|
|
34
|
-
allowedOverTime: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default:false
|
|
37
|
-
},
|
|
38
|
-
allowedStoreLocation: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default:false
|
|
41
|
-
},
|
|
42
|
-
createdBy: {
|
|
43
|
-
type: mongoose.SchemaTypes.ObjectId,
|
|
44
|
-
},
|
|
45
|
-
createdByName: {
|
|
46
|
-
type: String,
|
|
47
|
-
},
|
|
48
|
-
questionAnswers: {
|
|
49
|
-
type: Array
|
|
50
|
-
},
|
|
51
|
-
createdAt: {
|
|
52
|
-
type: Date,
|
|
53
|
-
default: Date.now
|
|
54
|
-
},
|
|
55
|
-
updatedAt: {
|
|
56
|
-
type: Date,
|
|
57
|
-
default: Date.now
|
|
58
|
-
},
|
|
59
|
-
isdeleted: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: false
|
|
62
|
-
},
|
|
63
|
-
questionCount: {
|
|
64
|
-
type: Number,
|
|
65
|
-
default: 0
|
|
66
|
-
},
|
|
67
|
-
storeCount: {
|
|
68
|
-
type: Number,
|
|
69
|
-
default: 0
|
|
70
|
-
},
|
|
71
|
-
publishDate: {
|
|
72
|
-
type: Date,
|
|
73
|
-
},
|
|
74
|
-
locationCount: {
|
|
75
|
-
type: Number
|
|
76
|
-
},
|
|
77
|
-
checkListType: {
|
|
78
|
-
type: String,
|
|
79
|
-
default: "task",
|
|
80
|
-
enum: ['task',"checklistTask",'cctv']
|
|
81
|
-
},
|
|
82
|
-
startTime:{
|
|
83
|
-
type:Date
|
|
84
|
-
},
|
|
85
|
-
scheduleRepeatedType: {
|
|
86
|
-
type: String,
|
|
87
|
-
default: '',
|
|
88
|
-
enum: ["daily"]
|
|
89
|
-
},
|
|
90
|
-
allowedMultiSubmit: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default:false
|
|
93
|
-
},
|
|
94
|
-
approver:{
|
|
95
|
-
type:Array,
|
|
96
|
-
default:[]
|
|
97
|
-
},
|
|
98
|
-
checkListDescription:{
|
|
99
|
-
type: String,
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const processestaskconfigSchema = new mongoose.Schema({
|
|
4
|
+
client_id: {
|
|
5
|
+
type: String,
|
|
6
|
+
required:true
|
|
7
|
+
},
|
|
8
|
+
date_iso: {
|
|
9
|
+
type: Date,
|
|
10
|
+
},
|
|
11
|
+
date_string: {
|
|
12
|
+
type: String,
|
|
13
|
+
},
|
|
14
|
+
sourceCheckList_id: {
|
|
15
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
16
|
+
ref: 'taskConfig'
|
|
17
|
+
},
|
|
18
|
+
checkListName: {
|
|
19
|
+
type: String,
|
|
20
|
+
required:true
|
|
21
|
+
},
|
|
22
|
+
scheduleStartTime: {
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
25
|
+
scheduleEndTime: {
|
|
26
|
+
type: String
|
|
27
|
+
},
|
|
28
|
+
scheduleStartTime_iso: {
|
|
29
|
+
type: Date
|
|
30
|
+
},
|
|
31
|
+
scheduleEndTime_iso: {
|
|
32
|
+
type: Date
|
|
33
|
+
},
|
|
34
|
+
allowedOverTime: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default:false
|
|
37
|
+
},
|
|
38
|
+
allowedStoreLocation: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default:false
|
|
41
|
+
},
|
|
42
|
+
createdBy: {
|
|
43
|
+
type: mongoose.SchemaTypes.ObjectId,
|
|
44
|
+
},
|
|
45
|
+
createdByName: {
|
|
46
|
+
type: String,
|
|
47
|
+
},
|
|
48
|
+
questionAnswers: {
|
|
49
|
+
type: Array
|
|
50
|
+
},
|
|
51
|
+
createdAt: {
|
|
52
|
+
type: Date,
|
|
53
|
+
default: Date.now
|
|
54
|
+
},
|
|
55
|
+
updatedAt: {
|
|
56
|
+
type: Date,
|
|
57
|
+
default: Date.now
|
|
58
|
+
},
|
|
59
|
+
isdeleted: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false
|
|
62
|
+
},
|
|
63
|
+
questionCount: {
|
|
64
|
+
type: Number,
|
|
65
|
+
default: 0
|
|
66
|
+
},
|
|
67
|
+
storeCount: {
|
|
68
|
+
type: Number,
|
|
69
|
+
default: 0
|
|
70
|
+
},
|
|
71
|
+
publishDate: {
|
|
72
|
+
type: Date,
|
|
73
|
+
},
|
|
74
|
+
locationCount: {
|
|
75
|
+
type: Number
|
|
76
|
+
},
|
|
77
|
+
checkListType: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: "task",
|
|
80
|
+
enum: ['task',"checklistTask",'cctv']
|
|
81
|
+
},
|
|
82
|
+
startTime:{
|
|
83
|
+
type:Date
|
|
84
|
+
},
|
|
85
|
+
scheduleRepeatedType: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: '',
|
|
88
|
+
enum: ["daily"]
|
|
89
|
+
},
|
|
90
|
+
allowedMultiSubmit: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default:false
|
|
93
|
+
},
|
|
94
|
+
approver:{
|
|
95
|
+
type:Array,
|
|
96
|
+
default:[]
|
|
97
|
+
},
|
|
98
|
+
checkListDescription:{
|
|
99
|
+
type: String,
|
|
100
|
+
},
|
|
101
|
+
priorityType:{
|
|
102
|
+
type:String
|
|
103
|
+
},
|
|
104
|
+
remainder:{
|
|
105
|
+
type:Array,
|
|
106
|
+
default:[]
|
|
107
|
+
},
|
|
108
|
+
restrictAttendance:{
|
|
109
|
+
type:Boolean,
|
|
110
|
+
default:false
|
|
111
|
+
},
|
|
112
|
+
coverage:{
|
|
113
|
+
type: String,
|
|
114
|
+
default: 'store',
|
|
115
|
+
enum: ["store", "user", "checklist"]
|
|
116
|
+
},
|
|
117
|
+
rawImageUpload: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default:false
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
strict: true,
|
|
124
|
+
versionKey: false,
|
|
125
|
+
timestamps: true,
|
|
126
|
+
},
|
|
127
|
+
);
|
|
128
|
+
|
|
109
129
|
export default mongoose.model( 'processedTaskConfig', processestaskconfigSchema);
|
|
@@ -1,44 +1,47 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const taskQuestionconfigSchema = new mongoose.Schema({
|
|
4
|
-
question: {
|
|
5
|
-
type: Array,
|
|
6
|
-
required:true
|
|
7
|
-
},
|
|
8
|
-
section: {
|
|
9
|
-
type: String,
|
|
10
|
-
required:true
|
|
11
|
-
},
|
|
12
|
-
checkList: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
checkListId: {
|
|
17
|
-
type: mongoose.SchemaTypes.ObjectId,
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
client_id: {
|
|
21
|
-
type: String,
|
|
22
|
-
required: true
|
|
23
|
-
},
|
|
24
|
-
createdAt: {
|
|
25
|
-
type: Date,
|
|
26
|
-
default: Date.now
|
|
27
|
-
},
|
|
28
|
-
updatedAt: {
|
|
29
|
-
type: Date,
|
|
30
|
-
default: Date.now
|
|
31
|
-
},
|
|
32
|
-
isdeleted: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: false
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const taskQuestionconfigSchema = new mongoose.Schema({
|
|
4
|
+
question: {
|
|
5
|
+
type: Array,
|
|
6
|
+
required:true
|
|
7
|
+
},
|
|
8
|
+
section: {
|
|
9
|
+
type: String,
|
|
10
|
+
required:true
|
|
11
|
+
},
|
|
12
|
+
checkList: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
checkListId: {
|
|
17
|
+
type: mongoose.SchemaTypes.ObjectId,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
client_id: {
|
|
21
|
+
type: String,
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
createdAt: {
|
|
25
|
+
type: Date,
|
|
26
|
+
default: Date.now
|
|
27
|
+
},
|
|
28
|
+
updatedAt: {
|
|
29
|
+
type: Date,
|
|
30
|
+
default: Date.now
|
|
31
|
+
},
|
|
32
|
+
isdeleted: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
sectionOldName:{
|
|
37
|
+
type: String,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
strict: true,
|
|
42
|
+
versionKey: false,
|
|
43
|
+
timestamps: true,
|
|
44
|
+
},
|
|
45
|
+
);
|
|
46
|
+
|
|
44
47
|
export default mongoose.model( 'taskQuestionsConfig', taskQuestionconfigSchema);
|
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
|
|
3
|
-
const traxApproverSchema = new mongoose.Schema({
|
|
4
|
-
userEmail:{
|
|
5
|
-
type:String,
|
|
6
|
-
require:true
|
|
7
|
-
},
|
|
8
|
-
checkListId:{
|
|
9
|
-
type:mongoose.Types.ObjectId,
|
|
10
|
-
required:true
|
|
11
|
-
},
|
|
12
|
-
isDeleted:{
|
|
13
|
-
type:Boolean,
|
|
14
|
-
default:false
|
|
15
|
-
},
|
|
16
|
-
type:{
|
|
17
|
-
type:String,
|
|
18
|
-
enum:['checklist','task']
|
|
19
|
-
},
|
|
20
|
-
client_id:{
|
|
21
|
-
type:String,
|
|
22
|
-
default:''
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const traxApproverSchema = new mongoose.Schema({
|
|
4
|
+
userEmail:{
|
|
5
|
+
type:String,
|
|
6
|
+
require:true
|
|
7
|
+
},
|
|
8
|
+
checkListId:{
|
|
9
|
+
type:mongoose.Types.ObjectId,
|
|
10
|
+
required:true
|
|
11
|
+
},
|
|
12
|
+
isDeleted:{
|
|
13
|
+
type:Boolean,
|
|
14
|
+
default:false
|
|
15
|
+
},
|
|
16
|
+
type:{
|
|
17
|
+
type:String,
|
|
18
|
+
enum:['checklist','task']
|
|
19
|
+
},
|
|
20
|
+
client_id:{
|
|
21
|
+
type:String,
|
|
22
|
+
default:''
|
|
23
|
+
},
|
|
24
|
+
checkListName:{
|
|
25
|
+
type:String,
|
|
26
|
+
default:''
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
strict: true,
|
|
31
|
+
versionKey: false,
|
|
32
|
+
timestamps: true,
|
|
33
|
+
},
|
|
34
|
+
);
|
|
35
|
+
|
|
32
36
|
export default mongoose.model( 'traxApprover', traxApproverSchema);
|
package/schema/user.model.js
CHANGED
|
@@ -18,7 +18,6 @@ const user = new mongoose.Schema(
|
|
|
18
18
|
},
|
|
19
19
|
mobileNumber: {
|
|
20
20
|
type: String,
|
|
21
|
-
// required: true,
|
|
22
21
|
},
|
|
23
22
|
clientId: {
|
|
24
23
|
type: String,
|
|
@@ -82,6 +81,10 @@ const user = new mongoose.Schema(
|
|
|
82
81
|
type: String,
|
|
83
82
|
enum:['tango','client','lead']
|
|
84
83
|
},
|
|
84
|
+
tangoUserType:{
|
|
85
|
+
type: String,
|
|
86
|
+
enum:['audit','dashboard']
|
|
87
|
+
},
|
|
85
88
|
password: {
|
|
86
89
|
type: String
|
|
87
90
|
},
|
|
@@ -112,6 +115,18 @@ const user = new mongoose.Schema(
|
|
|
112
115
|
type:String,
|
|
113
116
|
default:''
|
|
114
117
|
},
|
|
118
|
+
loginFrom:{
|
|
119
|
+
type:String,
|
|
120
|
+
enum: [ 'web', 'android', 'ios' ],
|
|
121
|
+
default:'web'
|
|
122
|
+
},
|
|
123
|
+
termsAndCondition: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: false
|
|
126
|
+
},
|
|
127
|
+
employeeTagId:{
|
|
128
|
+
type:String
|
|
129
|
+
},
|
|
115
130
|
},
|
|
116
131
|
{
|
|
117
132
|
strict: true,
|
|
@@ -16,10 +16,12 @@ const userEmpDetectionSchema = new mongoose.Schema( {
|
|
|
16
16
|
storeId: {
|
|
17
17
|
type: String,
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
zoneName:{
|
|
20
|
+
type: String,
|
|
21
|
+
},
|
|
20
22
|
moduleType:{
|
|
21
23
|
type: String,
|
|
22
|
-
enum: ['mobile-detection','uniform-detection' ],
|
|
24
|
+
enum: ['mobile-detection','uniform-detection', "hygiene", "open-time","close-time" ],
|
|
23
25
|
},
|
|
24
26
|
auditType: {
|
|
25
27
|
type: String,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const vmTypeSchema = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
vmType:{
|
|
10
|
+
type:String,
|
|
11
|
+
required:true
|
|
12
|
+
},
|
|
13
|
+
imageUrls:{
|
|
14
|
+
type:Array
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
strict: true,
|
|
19
|
+
versionKey: false,
|
|
20
|
+
timestamps: true,
|
|
21
|
+
},
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
export default mongoose.model( 'vmType', vmTypeSchema );
|