(options: CreateTemplateOptions)
| 234 | }; |
| 235 | |
| 236 | const createTemplateFn = async (options: CreateTemplateOptions) => { |
| 237 | const version = await API.createTemplateVersion( |
| 238 | options.organization, |
| 239 | options.version, |
| 240 | ); |
| 241 | options.onCreateVersion?.(version); |
| 242 | await waitBuildToBeFinished(version, options.onTemplateVersionChanges); |
| 243 | return API.createTemplate(options.organization, { |
| 244 | ...options.template, |
| 245 | template_version_id: version.id, |
| 246 | }); |
| 247 | }; |
| 248 | |
| 249 | export const templateVersionLogs = (versionId: string) => { |
| 250 | return { |
nothing calls this directly
no test coverage detected