( base: string, params: AgiloftRetrieveAttachmentParams )
| 99 | } |
| 100 | |
| 101 | export function buildRetrieveAttachmentUrl( |
| 102 | base: string, |
| 103 | params: AgiloftRetrieveAttachmentParams |
| 104 | ): string { |
| 105 | const id = encodeURIComponent(params.recordId.trim()) |
| 106 | const field = encodeURIComponent(params.fieldName.trim()) |
| 107 | const position = encodeURIComponent(params.position) |
| 108 | return `${base}/ewws/EWRetrieve?${buildEwBaseQuery(params)}&id=${id}&field=${field}&filePosition=${position}` |
| 109 | } |
| 110 | |
| 111 | export function buildRemoveAttachmentUrl( |
| 112 | base: string, |
no test coverage detected