Adrià Vilanova MartÃnez | 9c418ab | 2024-12-05 15:34:40 +0100 | [diff] [blame] | 1 | import { Interceptor } from './InterceptorHandler.port'; |
| 2 | |
| 3 | const interceptors: { interceptors: Interceptor[] } = { |
| 4 | interceptors: [ |
| 5 | { |
| 6 | eventName: 'ViewForumRequest', |
| 7 | urlRegex: /api\/ViewForum/, |
| 8 | intercepts: 'request', |
| 9 | }, |
| 10 | { |
| 11 | eventName: 'ViewForumResponse', |
| 12 | urlRegex: /api\/ViewForum/, |
| 13 | intercepts: 'response', |
| 14 | }, |
| 15 | { |
| 16 | eventName: 'CreateMessageRequest', |
| 17 | urlRegex: /api\/CreateMessage/, |
| 18 | intercepts: 'request', |
| 19 | }, |
| 20 | { |
| 21 | eventName: 'ViewUnifiedUserResponse', |
| 22 | urlRegex: /api\/ViewUnifiedUser/, |
| 23 | intercepts: 'response', |
| 24 | }, |
| 25 | { |
| 26 | eventName: 'ListCannedResponsesResponse', |
| 27 | urlRegex: /api\/ListCannedResponses/, |
| 28 | intercepts: 'response', |
| 29 | }, |
| 30 | { |
| 31 | eventName: 'ViewThreadResponse', |
| 32 | urlRegex: /api\/ViewThread/, |
| 33 | intercepts: 'response', |
| 34 | }, |
| 35 | ], |
| 36 | }; |
| 37 | |
| 38 | export default interceptors; |