Showing the changes to plugins/graphql (1 of 36 files). Show all
Unified · Split
| @@ -12,7 +12,7 @@ import { · 11 unmodified lines | ||
| 12 | 12 | createSourceCatalogSyncResult, |
| 13 | 13 | } from "@executor/source-core"; |
| 14 | 14 | import type { |
| 15 | − LocalExecutorConfig, | |
| 15 | + ExecutorScopeConfig, | |
| 16 | 16 | Source, |
| 17 | 17 | } from "@executor/platform-sdk/schema"; |
| 18 | 18 | import { |
| @@ -23,8 +23,8 @@ import { · 4 unmodified lines | ||
| 23 | 23 | } from "@executor/platform-sdk/plugins"; |
| 24 | 24 | import { |
| 25 | 25 | SecretMaterialResolverService, |
| 26 | − createPluginLocalConfigEntrySchema, | |
| 27 | − pluginLocalConfigSourceFromConfig, | |
| 26 | + createPluginScopeConfigEntrySchema, | |
| 27 | + pluginScopeConfigSourceFromConfig, | |
| 28 | 28 | provideExecutorRuntime, |
| 29 | 29 | runtimeEffectError, |
| 30 | 30 | } from "@executor/platform-sdk/runtime"; |
| @@ -151,7 +151,7 @@ const asStringRecord = (value: unknown): Record<string, string> => · 120 unmodified lines | ||
| 151 | 151 | ); |
| 152 | 152 | |
| 153 | 153 | const decodeGraphqlCurrentLocalConfigOption = Schema.decodeUnknownOption( |
| 154 | − createPluginLocalConfigEntrySchema({ | |
| 154 | + createPluginScopeConfigEntrySchema({ | |
| 155 | 155 | kind: "graphql", |
| 156 | 156 | config: GraphqlStoredSourceDataSchema, |
| 157 | 157 | }), |
| @@ -336,7 +336,7 @@ const graphqlConnectInputFromAddInput = ( · 178 unmodified lines | ||
| 336 | 336 | |
| 337 | 337 | const graphqlStoredSourceDataFromLocalConfig = (input: { |
| 338 | 338 | config: unknown; |
| 339 | − loadedConfig: LocalExecutorConfig | null; | |
| 339 | + loadedConfig: ExecutorScopeConfig | null; | |
| 340 | 340 | }): GraphqlStoredSourceData => { |
| 341 | 341 | const current = decodeGraphqlCurrentLocalConfigOption(input.config); |
| 342 | 342 | if (Option.isSome(current)) { |
| @@ -397,9 +397,9 @@ export const graphqlSdkPlugin = (options: { · 54 unmodified lines | ||
| 397 | 397 | toConfig: ({ source, stored }) => |
| 398 | 398 | sourceConfigFromStored(source, normalizeStoredSourceData(stored)), |
| 399 | 399 | }, |
| 400 | − localConfig: { | |
| 400 | + scopeConfig: { | |
| 401 | 401 | toConfigSource: ({ source, stored }) => |
| 402 | − pluginLocalConfigSourceFromConfig({ | |
| 402 | + pluginScopeConfigSourceFromConfig({ | |
| 403 | 403 | source, |
| 404 | 404 | config: normalizeStoredSourceData(stored), |
| 405 | 405 | }), |