tango-app-api-audit 3.4.0-alpha.1 → 3.4.0-alpha.11

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.
@@ -1,5 +1,5 @@
1
1
  import j2s from 'joi-to-swagger';
2
- import { getFileSchema } from '../dtos/traxAudit.dtos.js';
2
+ import { getFileSchema, userAuditHistorySchema, workSpaceSchema, saveSchema, clientMetricsSchema, storeMetricsSchema, userMetricsSchema, pendingSummaryTableSchema, overAllAuditSummarySchema, overviewTableSchema, summarySplitSchema } from '../dtos/traxAudit.dtos.js';
3
3
 
4
4
  export const traxAuditDocs = {
5
5
 
@@ -43,4 +43,229 @@ export const traxAuditDocs = {
43
43
  },
44
44
  },
45
45
  },
46
+
47
+ '/v3/trax-audit/work-space': {
48
+ post: {
49
+ tags: [ 'Trax Audit' ],
50
+ description: 'queue wise info of audit files ',
51
+ operationId: 'work-space',
52
+ requestBody: {
53
+ content: {
54
+ 'application/json': {
55
+ schema: j2s( workSpaceSchema ).swagger,
56
+ },
57
+ },
58
+ },
59
+ responses: {
60
+ 200: { description: 'Successful' },
61
+ 401: { description: 'Unauthorized User' },
62
+ 422: { description: 'Field Error' },
63
+ 500: { description: 'Server Error' },
64
+ 204: { description: 'Not Found' },
65
+ },
66
+ },
67
+ },
68
+
69
+ '/v3/trax-audit/save-binary-audit': {
70
+ post: {
71
+ tags: [ 'Trax Audit' ],
72
+ description: 'Save binay data type',
73
+ operationId: 'save-binary-audit',
74
+ parameters: {},
75
+ requestBody: {
76
+ content: {
77
+ 'application/json': {
78
+ schema: j2s( saveSchema ).swagger,
79
+ },
80
+ },
81
+ },
82
+ responses: {
83
+ 200: { description: 'Successful' },
84
+ 401: { description: 'Unauthorized User' },
85
+ 422: { description: 'Field Error' },
86
+ 500: { description: 'Server Error' },
87
+ 204: { description: 'Not Found' },
88
+ },
89
+ },
90
+ },
91
+
92
+ '/v3/trax-audit/metrics/user-audit-history': {
93
+ post: {
94
+ tags: [ 'Trax Audit' ],
95
+ description: `Get list of user wise audit user details with date range`,
96
+ operationId: 'metrics/user-audit-history',
97
+ parameters: {},
98
+ requestBody: {
99
+ content: {
100
+ 'application/json': {
101
+ schema: j2s( userAuditHistorySchema ).swagger,
102
+ },
103
+ },
104
+ },
105
+ responses: {
106
+ 200: { description: 'Successful' },
107
+ 401: { description: 'Unauthorized User' },
108
+ 422: { description: 'Field Error' },
109
+ 500: { description: 'Server Error' },
110
+ 204: { description: 'Not Found' },
111
+ },
112
+ },
113
+ },
114
+ '/v3/trax-audit/metrics/client-metrics': {
115
+ post: {
116
+ tags: [ 'Trax Audit' ],
117
+ description: `Get list of client wise details with date range`,
118
+ operationId: 'metrics/client-metrics',
119
+ parameters: {},
120
+ requestBody: {
121
+ content: {
122
+ 'application/json': {
123
+ schema: j2s( clientMetricsSchema ).swagger,
124
+ },
125
+ },
126
+ },
127
+ responses: {
128
+ 200: { description: 'Successful' },
129
+ 401: { description: 'Unauthorized User' },
130
+ 422: { description: 'Field Error' },
131
+ 500: { description: 'Server Error' },
132
+ 204: { description: 'Not Found' },
133
+ },
134
+ },
135
+ },
136
+
137
+ '/v3/trax-audit/metrics/store-metrics': {
138
+ post: {
139
+ tags: [ 'Trax Audit' ],
140
+ description: `Get list of store wise details with date range and client Id`,
141
+ operationId: 'metrics/store-metrics',
142
+ parameters: {},
143
+ requestBody: {
144
+ content: {
145
+ 'application/json': {
146
+ schema: j2s( storeMetricsSchema ).swagger,
147
+ },
148
+ },
149
+ },
150
+ responses: {
151
+ 200: { description: 'Successful' },
152
+ 401: { description: 'Unauthorized User' },
153
+ 422: { description: 'Field Error' },
154
+ 500: { description: 'Server Error' },
155
+ 204: { description: 'Not Found' },
156
+ },
157
+ },
158
+ },
159
+ '/v3/trax-audit/metrics/user-metrics': {
160
+ post: {
161
+ tags: [ 'Trax Audit' ],
162
+ description: `Get list of file wise details with date range and users`,
163
+ operationId: 'metrics/user-metrics',
164
+ parameters: {},
165
+ requestBody: {
166
+ content: {
167
+ 'application/json': {
168
+ schema: j2s( userMetricsSchema ).swagger,
169
+ },
170
+ },
171
+ },
172
+ responses: {
173
+ 200: { description: 'Successful' },
174
+ 401: { description: 'Unauthorized User' },
175
+ 422: { description: 'Field Error' },
176
+ 500: { description: 'Server Error' },
177
+ 204: { description: 'Not Found' },
178
+ },
179
+ },
180
+ },
181
+ '/v3/trax-audit/metrics/pending-summary-table': {
182
+ post: {
183
+ tags: [ 'Trax Audit' ],
184
+ description: `Get overall user taken data with some filters `,
185
+ operationId: 'metrics/pending-summary-table',
186
+ parameters: {},
187
+ requestBody: {
188
+ content: {
189
+ 'application/json': {
190
+ schema: j2s( pendingSummaryTableSchema ).swagger,
191
+ },
192
+ },
193
+ },
194
+ responses: {
195
+ 200: { description: 'Successful' },
196
+ 401: { description: 'Unauthorized User' },
197
+ 422: { description: 'Field Error' },
198
+ 500: { description: 'Server Error' },
199
+ 204: { description: 'Not Found' },
200
+ },
201
+ },
202
+ },
203
+ '/v3/trax-audit/metrics/overall-audit-summary': {
204
+ post: {
205
+ tags: [ 'Trax Audit' ],
206
+ description: `Get overall user taken data with some filters `,
207
+ operationId: 'metrics/overall-audit-summary',
208
+ parameters: {},
209
+ requestBody: {
210
+ content: {
211
+ 'application/json': {
212
+ schema: j2s( overAllAuditSummarySchema ).swagger,
213
+ },
214
+ },
215
+ },
216
+ responses: {
217
+ 200: { description: 'Successful' },
218
+ 401: { description: 'Unauthorized User' },
219
+ 422: { description: 'Field Error' },
220
+ 500: { description: 'Server Error' },
221
+ 204: { description: 'Not Found' },
222
+ },
223
+ },
224
+ },
225
+
226
+ '/v3/trax-audit/metrics/summary-split-up': {
227
+ post: {
228
+ tags: [ 'Trax Audit' ],
229
+ description: `Get overall high level audited files count splitup`,
230
+ operationId: 'metrics/summary-split-up',
231
+ parameters: {},
232
+ requestBody: {
233
+ content: {
234
+ 'application/json': {
235
+ schema: j2s( summarySplitSchema ).swagger,
236
+ },
237
+ },
238
+ },
239
+ responses: {
240
+ 200: { description: 'Successful' },
241
+ 401: { description: 'Unauthorized User' },
242
+ 422: { description: 'Field Error' },
243
+ 500: { description: 'Server Error' },
244
+ 204: { description: 'Not Found' },
245
+ },
246
+ },
247
+ },
248
+
249
+ '/v3/trax-audit/metrics/overview-table': {
250
+ post: {
251
+ tags: [ 'Trax Audit' ],
252
+ description: `Get overall user taken data with some filters `,
253
+ operationId: 'metrics/overview-table',
254
+ parameters: {},
255
+ requestBody: {
256
+ content: {
257
+ 'application/json': {
258
+ schema: j2s( overviewTableSchema ).swagger,
259
+ },
260
+ },
261
+ },
262
+ responses: {
263
+ 200: { description: 'Successful' },
264
+ 401: { description: 'Unauthorized User' },
265
+ 422: { description: 'Field Error' },
266
+ 500: { description: 'Server Error' },
267
+ 204: { description: 'Not Found' },
268
+ },
269
+ },
270
+ },
46
271
  };