tango-app-api-trax 3.2.1 → 3.3.1-airtalai-0
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 +3 -3
- package/src/controllers/download.controller.js +155 -17
- package/src/controllers/gallery.controller.js +124 -31
- package/src/controllers/internalTrax.controller.js +339 -8
- package/src/controllers/mobileTrax.controller.js +200 -40
- package/src/controllers/teaxFlag.controller.js +161 -142
- package/src/controllers/trax.controller.js +1844 -319
- package/src/controllers/traxDashboard.controllers.js +350 -105
- package/src/dtos/dashboardValidation.dtos.js +2 -0
- package/src/dtos/downloadValidation.dtos.js +3 -1
- package/src/dtos/validation.dtos.js +17 -5
- package/src/hbs/login-otp.hbs +943 -943
- package/src/routes/download.router.js +4 -0
- package/src/routes/gallery.routes.js +5 -1
- package/src/routes/internalTraxApi.router.js +4 -1
- package/src/routes/mobileTrax.routes.js +3 -1
- package/src/routes/trax.routes.js +14 -2
- package/src/routes/traxDashboard.routes.js +3 -1
- package/src/services/checklistAssign.service.js +8 -0
- package/src/services/planogram.service.js +5 -0
- package/src/services/processedchecklistconfig.services.js +1 -1
- package/src/services/teams.service.js +30 -0
|
@@ -5,6 +5,7 @@ const baseSchema = {
|
|
|
5
5
|
storeId: joi.array().required().empty(),
|
|
6
6
|
fromDate: joi.string().required(),
|
|
7
7
|
toDate: joi.string().required(),
|
|
8
|
+
userEmailes: joi.array().optional().empty(),
|
|
8
9
|
};
|
|
9
10
|
const tableSchema = {
|
|
10
11
|
searchValue: joi.string().optional().allow( '' ),
|
|
@@ -13,6 +14,7 @@ const tableSchema = {
|
|
|
13
14
|
limit: joi.number().required(),
|
|
14
15
|
offset: joi.number().required(),
|
|
15
16
|
sortColumnName: joi.string().optional().allow( '' ),
|
|
17
|
+
export: joi.boolean().optional().allow( '' ),
|
|
16
18
|
};
|
|
17
19
|
|
|
18
20
|
|
|
@@ -13,6 +13,7 @@ export const validateDownloadInsertSchema = joi.object( {
|
|
|
13
13
|
checklistName: joi.string().optional().allow( '' ),
|
|
14
14
|
fileType: joi.string().required(),
|
|
15
15
|
storeIds: joi.array().optional().allow( '' ),
|
|
16
|
+
userEmailList: joi.array().optional().allow( '' ),
|
|
16
17
|
questions: joi.array().optional().allow( '' ),
|
|
17
18
|
previewType: joi.string().optional().allow( '' ),
|
|
18
19
|
viewFlag: joi.boolean().optional().allow( '' ),
|
|
@@ -23,7 +24,8 @@ export const validateDownloadInsertSchema = joi.object( {
|
|
|
23
24
|
viewRedo: joi.boolean().optional().allow( '' ),
|
|
24
25
|
insertType: joi.string().optional().allow( '' ),
|
|
25
26
|
filter: joi.string().optional().allow( '' ),
|
|
26
|
-
|
|
27
|
+
filtertype: joi.string().optional().allow( '' ),
|
|
28
|
+
checkListType: joi.string().required(),
|
|
27
29
|
} );
|
|
28
30
|
|
|
29
31
|
export const validateDownloadInsertParams = {
|
|
@@ -81,13 +81,15 @@ export const checklistPageValidation = {
|
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
export const uploadUserSchema = joi.object( {
|
|
84
|
-
id: joi.string().
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
id: joi.string().optional(),
|
|
85
|
+
checklistId: joi.string().optional(),
|
|
86
|
+
assignedUsers: joi.array().optional(),
|
|
87
|
+
uploadUser: joi.boolean().optional(),
|
|
87
88
|
type: joi.string().optional().allow( '' ),
|
|
88
89
|
addUser: joi.boolean().optional(),
|
|
89
90
|
delete: joi.boolean().optional(),
|
|
90
91
|
clientId: joi.string().optional(),
|
|
92
|
+
coverage: joi.string().optional(),
|
|
91
93
|
} );
|
|
92
94
|
|
|
93
95
|
export const uploadUserValidation = {
|
|
@@ -114,7 +116,7 @@ export const publishValidation = {
|
|
|
114
116
|
};
|
|
115
117
|
|
|
116
118
|
export const dashboardSchema = joi.object( {
|
|
117
|
-
store_id: joi.string().
|
|
119
|
+
store_id: joi.string().optional().allow( '' ),
|
|
118
120
|
date: joi.string().required(),
|
|
119
121
|
} );
|
|
120
122
|
|
|
@@ -126,7 +128,7 @@ export const mobileChecklistSchema = joi.object( {
|
|
|
126
128
|
limit: joi.string().optional(),
|
|
127
129
|
offset: joi.string().optional(),
|
|
128
130
|
date: joi.string().optional(),
|
|
129
|
-
store_id: joi.string().optional(),
|
|
131
|
+
store_id: joi.string().optional().allow( '' ),
|
|
130
132
|
checklistStatus: joi.string().optional().allow( '' ),
|
|
131
133
|
searchValue: joi.string().optional().allow( '' ),
|
|
132
134
|
} );
|
|
@@ -144,4 +146,14 @@ export const startValidation = {
|
|
|
144
146
|
body: startSchema,
|
|
145
147
|
};
|
|
146
148
|
|
|
149
|
+
export const selectAssignSchema = joi.object( {
|
|
150
|
+
clientId: joi.string().required(),
|
|
151
|
+
coverage: joi.string().required(),
|
|
152
|
+
assignType: joi.string().required(),
|
|
153
|
+
} );
|
|
154
|
+
|
|
155
|
+
export const selectAssign = {
|
|
156
|
+
body: selectAssignSchema,
|
|
157
|
+
};
|
|
158
|
+
|
|
147
159
|
|