(
base: string,
params: AgiloftBaseParams & { recordId: string }
)
| 46 | } |
| 47 | |
| 48 | export function buildUpdateRecordUrl( |
| 49 | base: string, |
| 50 | params: AgiloftBaseParams & { recordId: string } |
| 51 | ): string { |
| 52 | const { kb, table } = encodeTable(params) |
| 53 | const id = encodeURIComponent(params.recordId.trim()) |
| 54 | return `${base}/ewws/REST/${kb}/${table}/${id}?$lang=en` |
| 55 | } |
| 56 | |
| 57 | export function buildDeleteRecordUrl(base: string, params: AgiloftDeleteRecordParams): string { |
| 58 | const { kb, table } = encodeTable(params) |