(unpublished?: boolean)
| 55 | } |
| 56 | |
| 57 | export function buildCreateFormUrl(unpublished?: boolean): string { |
| 58 | const url = new URL(`${FORMS_API_BASE}/forms`) |
| 59 | if (unpublished) { |
| 60 | url.searchParams.set('unpublished', 'true') |
| 61 | } |
| 62 | const finalUrl = url.toString() |
| 63 | logger.debug('Built Google Forms create form URL', { finalUrl }) |
| 64 | return finalUrl |
| 65 | } |
| 66 | |
| 67 | export function buildBatchUpdateUrl(formId: string): string { |
| 68 | const finalUrl = `${FORMS_API_BASE}/forms/${encodeURIComponent(formId)}:batchUpdate` |
no test coverage detected