(input: GraphqlAddIntegrationInput)
| 877 | // no longer takes one. |
| 878 | const makeGraphqlExtension = (ctx: PluginCtx<GraphqlStore>) => { |
| 879 | const buildConfig = (input: GraphqlAddIntegrationInput): GraphqlIntegrationConfig => |
| 880 | GraphqlIntegrationConfig.make({ |
| 881 | endpoint: input.endpoint, |
| 882 | name: input.name?.trim() || slugFromEndpoint(input.endpoint), |
| 883 | ...(input.headers !== undefined ? { headers: input.headers } : {}), |
| 884 | ...(input.queryParams !== undefined ? { queryParams: input.queryParams } : {}), |
| 885 | authenticationTemplate: input.authenticationTemplate |
| 886 | ? normalizeGraphqlAuthMethods(input.authenticationTemplate) |
| 887 | : [], |
| 888 | }); |
| 889 | |
| 890 | /** Register the integration in the catalog. Registering an integration is a |
| 891 | * catalog statement ("we use this GraphQL endpoint now") and MUST NOT make a |
no test coverage detected