(value: Integration.Method)
| 236 | } |
| 237 | |
| 238 | function method(value: Integration.Method) { |
| 239 | if (value.type === "env") return { type: value.type, names: [...value.names] } |
| 240 | if (value.type === "key") return { type: value.type, label: value.label } |
| 241 | return { |
| 242 | type: value.type, |
| 243 | id: value.id, |
| 244 | label: value.label, |
| 245 | prompts: value.prompts?.map((prompt) => { |
| 246 | if (prompt.type === "text") return { ...prompt } |
| 247 | return { ...prompt, options: prompt.options.map((option) => ({ ...option })) } |
| 248 | }), |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | function internalMethod( |
| 253 | value: IntegrationOAuthMethod | IntegrationKeyMethod | IntegrationEnvMethod, |
no outgoing calls
no test coverage detected