tango-app-api-trax 3.7.75 → 3.7.76

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.
@@ -0,0 +1,337 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <title>{{data.checkListName}}</title>
6
+ <style type="text/css">
7
+
8
+ body {
9
+ font-family: Inter !important;
10
+ }
11
+ .pdffile {
12
+ position: relative;
13
+ font-family: Inter !important;
14
+ }
15
+
16
+ .sectionname {
17
+ width: 300px;
18
+ font-weight: 600;
19
+ font-size: 12px;
20
+ Line height: 30px;
21
+ }
22
+
23
+ .pdfcontent {
24
+ font-family: Inter !important;
25
+ color: #000 !important;
26
+ margin: 10px 20px 20px 20px !important;
27
+ padding-bottom: 60pt !important;
28
+
29
+ }
30
+
31
+ .question {
32
+ font-size: 12px !important;
33
+ font-weight: 600;
34
+ line-height: 30px;
35
+ }
36
+
37
+
38
+ .pdfheader {
39
+ padding-left: 20px !important;
40
+ }
41
+
42
+ .headerimage {
43
+ width: 100px !important;
44
+ height: 60px !important;
45
+ }
46
+
47
+ .headertitle {
48
+ color: #000 !important;
49
+ font-size: 10px !important;
50
+ font-weight: 600 !important;
51
+ width: 120px;
52
+ display: inline-block;
53
+ line-height: 20px !important;
54
+ }
55
+
56
+ .date {
57
+ width: 40px !important;
58
+ }
59
+
60
+ .headercontent {
61
+ color: #000;
62
+ font-size: 10px !important;
63
+ font-weight: 400;
64
+ line-height: 28px;
65
+ }
66
+
67
+ .dateandtime {
68
+ padding-right: 5px !important;
69
+ }
70
+
71
+ .Reference {
72
+ font-size: 10px !important;
73
+ font-weight: 400 !important;
74
+ color:#101828;
75
+ line-height: 24px;
76
+ }
77
+
78
+ .horizondal-line {
79
+ color: var(--gray-400, #98A2B3) !important;
80
+ min-width:75% !important;
81
+ }
82
+
83
+ hr {
84
+ margin-top: -10px;
85
+ margin-left: 15%
86
+ }
87
+ #agreed {
88
+ font-size: 10px !important;
89
+ font-style: italic;
90
+ font-weight: 500 !important;
91
+ line-height: 28px;
92
+ color:#000;
93
+ }
94
+
95
+ #remarks {
96
+ font-size: 10px !important;
97
+ font-weight: 400;
98
+ line-height: 28px;
99
+ }
100
+
101
+ .text-center {
102
+ text-align: center;
103
+ }
104
+
105
+ .align-items-center {
106
+ align-items: center;
107
+ }
108
+
109
+ .justify-content-between {
110
+ justify-content: space-between;
111
+ }
112
+
113
+ .justify-content-start {
114
+ justify-content: start;
115
+ }
116
+
117
+ .mx-10 {
118
+ margin: 10px;
119
+ }
120
+
121
+ .mb-6 {
122
+ margin-bottom: 4px;
123
+ }
124
+
125
+ .mt-8 {
126
+ margin-top: 8px;
127
+ }
128
+
129
+ .px-4 {
130
+ padding: 4px;
131
+ }
132
+ .headertitle.questionText {
133
+ width:118px !important;
134
+ }
135
+ .headertitle.submittedText {
136
+ width:116px !important;
137
+ }
138
+ </style>
139
+ </head>
140
+
141
+ <body>
142
+ <div class="pdffile">
143
+ <div class="pdfheader">
144
+ {{#neq data.brandLogo ''}}
145
+ <div class="text-center mb-6 mt-8">
146
+ <img class="headerimage" src="{{data.brandLogo}}" alt="{{data.brandName}}"/>
147
+ </div>
148
+ {{/neq}}
149
+ {{#eq data.brandLogo ''}}
150
+ <div class="text-center mb-6 mt-8 mx-10">
151
+ {{data.brandName}}
152
+ </div>
153
+ {{/eq}}
154
+ <div class="mb-6">
155
+ <span class="headertitle">Store Name:</span><span class="headercontent">{{data.storeName}}
156
+ {{data.city}} {{data.state}} {{data.country}}</span>
157
+ </div>
158
+ <div class="mb-6">
159
+ <span class="headertitle">Checklist Name:</span><span
160
+ class="headercontent">{{data.checkListName}}</span><br>
161
+ </div>
162
+ <table style="border:none;width:100%">
163
+ <tr style="width:100%">
164
+ <td style="width:50%">
165
+ <div class="mb-6">
166
+ <div><span class="headertitle questionText">No of Questions:</span><span
167
+ class="headercontent">{{data.questionCount}}</span></div>
168
+ </div>
169
+ </td>
170
+ <td style="width:50%;float:right">
171
+ <div class="dateandtime mb-6">
172
+ <div><span class="headertitle date">Date:</span><span
173
+ class="headercontent">{{data.submitDate }}</span></div>
174
+ </div>
175
+ </td>
176
+ </tr>
177
+ <tr style="width:100%">
178
+ <td style="width:50%">
179
+ <div class="mb-6">
180
+ <div><span class="headertitle submittedText">Submitted By:</span>
181
+ <span class="headercontent">{{data.userName}}</span>
182
+ </div>
183
+ </div>
184
+ </td>
185
+ <td style="width:50%;float:right">
186
+ <div class="dateandtime mb-6">
187
+ <div><span class="headertitle date">Time:</span><span
188
+ class="headercontent">{{data.submitTime
189
+ }}</span></div>
190
+ </div>
191
+ </td>
192
+ </tr>
193
+ </table>
194
+ </div>
195
+ {{#if data.questionAnswers.length}}
196
+ {{#each data.questionAnswers}}
197
+ <div class="pdfcontent">
198
+ <div style="padding-bottom:20px;">
199
+ <span class="sectionname">{{sectionName}} </span>&nbsp;<div class="horizondal-line">
200
+ <hr />
201
+ </div>
202
+ </div>
203
+ {{#each questions}}
204
+ <div style="padding-bottom:20px">
205
+ {{#if userAnswer.length}}
206
+ <span class="question">{{qno}}.</span>&nbsp;<span class="question">{{qname}}</span>
207
+ {{#each userAnswer}}
208
+ <div class="px-4 answer">
209
+ {{#if (includes ../../../data.validateType ../answerType)}}
210
+ {{#eq sopFlag true }}
211
+ <span id="agreed" style="color:red">{{answer}}</span><br>
212
+ {{/eq}}
213
+ {{#eq sopFlag false }}
214
+ <span id="agreed">{{answer}}</span><br>
215
+ {{/eq}}
216
+ {{#eq validation true}}
217
+ {{#eq validationType 'Capture Image'}}
218
+ <img src = "{{validationAnswer}}" alt="test" width="200" height="180">
219
+ {{/eq}}
220
+ {{#eq validationType 'Capture Video'}}
221
+ <a href="{{validationAnswer}}" target="_blank" style="text-decoration: underline;color:#0085D2" id="agreed">{{validationAnswer}}</a><br>
222
+ {{/eq}}
223
+ {{#eq validationType 'Descriptive Answer'}}
224
+ {{validationAnswer}}
225
+ {{/eq}}
226
+ {{/eq}}
227
+ {{/if}}
228
+ {{#eq ../answerType 'video'}}
229
+ <a href="{{answer}}" target="_blank" style="text-decoration: underline;color:#0085D2"
230
+ id="agreed">{{answer}}</a><br>
231
+ {{/eq}}
232
+ {{#eq ../answerType 'image'}}
233
+ {{!-- {{#each ../answers}} --}}
234
+ <table style="width:100%">
235
+ <tr>
236
+ {{#neq referenceImage ''}}
237
+ <td style="width:50%">
238
+ <div class="Reference"><span>Reference Image</span><br>
239
+ <img src="{{referenceImage}}" width="200" height="180" />
240
+ </div>
241
+ </td>
242
+ {{/neq}}
243
+ <td style="width:50%">
244
+ <div class="Reference"><span>Uploaded Image</span><br>
245
+ <img src="{{answer}}" width="200" height="180" />
246
+ </div>
247
+ </td>
248
+ </tr>
249
+ </table>
250
+ {{!-- {{/each}} --}}
251
+ {{/eq}}
252
+ {{#eq ../answerType 'multipleImage'}}
253
+ {{!-- {{#each ../answers}} --}}
254
+ <table style="width:100%">
255
+ <tr>
256
+ {{#neq referenceImage ''}}
257
+ <td style="width:50%">
258
+ <div class="Reference"><span>Reference Image</span><br>
259
+ <img src="{{referenceImage}}" width="200" height="180" />
260
+ </div>
261
+ </td>
262
+ {{/neq}}
263
+ <td style="width:50%">
264
+ <div class="Reference"><span>Uploaded Image</span><br>
265
+ <img src="{{answer}}" width="200" height="180" />
266
+ </div>
267
+ </td>
268
+ </tr>
269
+ </table>
270
+ {{!-- {{/each}} --}}
271
+ {{/eq}}
272
+ {{#eq ../answerType 'image/video'}}
273
+ {{!-- {{#each ../answers}} --}}
274
+ <table style="width:100%">
275
+ <tr>
276
+ {{#neq referenceImage ''}}
277
+ <td style="width:50%">
278
+ <div class="Reference"><span>Reference Image</span><br>
279
+ <img src="{{referenceImage}}" width="200" height="180" />
280
+ </div>
281
+ </td>
282
+ {{/neq}}
283
+ {{#eq answerType 'image'}}
284
+ <td style="width:50%">
285
+ <div class="Reference"><span>Uploaded Image</span><br>
286
+ <img src="{{answer}}" width="200" height="180" />
287
+ </div>
288
+ </td>
289
+ {{/eq}}
290
+ {{#eq answerType 'video'}}
291
+ <td style="width:50%">
292
+ <a href="{{answer}}" target="_blank" style="text-decoration: underline;color:#0085D2" id="agreed">{{answer}}</a><br>
293
+ </td>
294
+ {{/eq}}
295
+ </tr>
296
+ </table>
297
+ {{!-- {{/each}} --}}
298
+ {{/eq}}
299
+ {{#eq ../answerType 'descriptiveImage'}}
300
+ {{!-- {{#each ../answers}} --}}
301
+ <table style="width:100%">
302
+ <tr>
303
+ {{#neq referenceImage ''}}
304
+ <td style="width:50%">
305
+ <div class="Reference"><span>Reference Image</span><br>
306
+ <img src="{{referenceImage}}" width="200" height="180" />
307
+ </div>
308
+ </td>
309
+ {{/neq}}
310
+ <td style="width:50%">
311
+ <div class="Reference"><span>Uploaded Image</span><br>
312
+ <img src="{{answer}}" width="200" height="180" />
313
+ </div>
314
+ </td>
315
+ </tr>
316
+ </table>
317
+ {{!-- {{/each}} --}}
318
+ {{/eq}}
319
+ </div>
320
+ {{/each}}
321
+ {{#neq answerType 'descriptive'}}
322
+ {{#neq remarks ''}}
323
+ <div class="mt-8">
324
+ <span id="remarks">Remarks: {{remarks}}</span><br>
325
+ </div>
326
+ {{/neq}}
327
+ {{/neq}}
328
+ {{/if}}
329
+ </div>
330
+ {{/each}}
331
+ </div>
332
+ {{/each}}
333
+ {{/if}}
334
+ </div>
335
+ </body>
336
+
337
+ </html>
@@ -35,6 +35,7 @@ internalTraxRouter
35
35
  .get( '/getSubmittedDetails', isAllowedInternalAPIHandler, internalController.submittedInfo )
36
36
  .post( '/checklistCreation', isAllowedInternalAPIHandler, internalController.checklistCreation )
37
37
  .post( '/getSubmissionDetails', isAllowedInternalAPIHandler, internalController.checklistTaskSubmissionDetails )
38
+ .post( '/posblock', isAllowedInternalAPIHandler, internalController.getStoreTaskDetails )
38
39
  ;
39
40
 
40
41
 
@@ -30,5 +30,7 @@ mobileRouter
30
30
  .post( '/checkUpdateVersionv1', mobileController.checkVersionV1 )
31
31
  .post( '/checkClientConfig', isAllowedSessionHandler, mobileController.clientConfig )
32
32
  .post( '/updatePlanoStatus', isAllowedSessionHandler, mobileController.updatePlanoStatus )
33
- .post( '/chunkUpload', isAllowedSessionHandler, mobileController.chunkUpload );
33
+ .post( '/chunkUpload', isAllowedSessionHandler, mobileController.chunkUpload )
34
+ .post( '/downloadChecklist', isAllowedSessionHandler, mobileController.downloadChecklist )
35
+ ;
34
36
 
@@ -35,6 +35,7 @@ traxRouter
35
35
  .post( '/updateRunAIFeatures', isAllowedSessionHandler, traxController.updateRunAIFeatures )
36
36
  .post( '/updateRunAIRequest', isAllowedSessionHandler, validate( runAIRequestValidation ), traxController.updateRunAIRequest )
37
37
  .post( '/createChecklistName', isAllowedSessionHandler, validate( createChecklistNameValidation ), traxController.createChecklistName )
38
- .post( '/updateOSProcessedData', isAllowedInternalAPIHandler, validate( updateOSDataValidation ), traxController.updateOSProcessedData );
38
+ .post( '/updateOSProcessedData', isAllowedInternalAPIHandler, validate( updateOSDataValidation ), traxController.updateOSProcessedData )
39
+ .post( '/exportQuestions', isAllowedSessionHandler, traxController.downloadQuestionTemplate );
39
40
 
40
41
  // isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ ] } ] } ),