( base: string, params: AgiloftRemoveAttachmentParams )
| 109 | } |
| 110 | |
| 111 | export function buildRemoveAttachmentUrl( |
| 112 | base: string, |
| 113 | params: AgiloftRemoveAttachmentParams |
| 114 | ): string { |
| 115 | const id = encodeURIComponent(params.recordId.trim()) |
| 116 | const field = encodeURIComponent(params.fieldName.trim()) |
| 117 | const position = encodeURIComponent(params.position) |
| 118 | return `${base}/ewws/EWRemoveAttachment?${buildEwBaseQuery(params)}&id=${id}&field=${field}&filePosition=${position}` |
| 119 | } |
| 120 | |
| 121 | export function buildAttachmentInfoUrl(base: string, params: AgiloftAttachmentInfoParams): string { |
| 122 | const id = encodeURIComponent(params.recordId.trim()) |
no test coverage detected