URL builders (credential-free -- auth is via Bearer token header)
(params: AgiloftBaseParams)
| 16 | /** URL builders (credential-free -- auth is via Bearer token header) */ |
| 17 | |
| 18 | function encodeTable(params: AgiloftBaseParams) { |
| 19 | return { |
| 20 | kb: encodeURIComponent(params.knowledgeBase), |
| 21 | table: encodeURIComponent(params.table), |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | export function buildCreateRecordUrl(base: string, params: AgiloftBaseParams): string { |
| 26 | const { kb, table } = encodeTable(params) |
no outgoing calls
no test coverage detected