tango-app-api-report 3.0.14-dev → 3.0.15-dev

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-report",
3
- "version": "3.0.14-dev",
3
+ "version": "3.0.15-dev",
4
4
  "description": "report",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  import j2s from 'joi-to-swagger';
2
2
 
3
- import { clientListTableSchema, deleteReportSchemaParam, downloadReportSchema, generateReportSchema, getReportListSchema, getReportLogSchema, sendReportSchema, uploadManualReportSchema, uploadManualReportSchema2 } from '../dtos/report.dtos.js';
3
+ import { clientListTableSchema, deleteReportSchemaParam, downloadReportSchema, generateReportSchema, getReportListSchema, getReportLogSchema, getReportSchemaParam, sendReportSchema, uploadManualReportSchema, uploadManualReportSchema2 } from '../dtos/report.dtos.js';
4
4
 
5
5
  export const reportDocs = {
6
6
 
@@ -199,5 +199,29 @@ export const reportDocs = {
199
199
  },
200
200
  },
201
201
 
202
+ '/v3/report/get-client-reports/{id}': {
203
+ get: {
204
+ tags: [ 'Report' ],
205
+ description: 'Get list of reports by client wise',
206
+ operationId: 'get-client-reports/{id}',
207
+ parameters: [
208
+ {
209
+ in: 'path',
210
+ name: 'id',
211
+ required: true,
212
+ description: 'client Id',
213
+ scema: j2s( getReportSchemaParam ).swagger,
214
+ },
215
+ ],
216
+ responses: {
217
+ 200: { description: 'Success' },
218
+ 401: { description: 'Unauthorized User' },
219
+ 422: { description: 'Field Error' },
220
+ 500: { description: 'Server Error' },
221
+ 204: { description: 'Not Found' },
222
+ },
223
+ },
224
+ },
225
+
202
226
  };
203
227
 
@@ -17,7 +17,9 @@ export function reportGet( { clientId } ) {
17
17
  },
18
18
  {
19
19
  'fileName': 1,
20
- '_id': 1,
20
+ 'fileType': 1,
21
+ 'email': 1,
22
+ 'clientId': 1,
21
23
  } );
22
24
  }
23
25