Showing the changes to plugins/openapi (1 of 36 files). Show all
Unified · Split
| @@ -8,7 +8,7 @@ import { · 7 unmodified lines | |||
| 8 | createSourceCatalogSyncResult, | 8 | createSourceCatalogSyncResult, |
| 9 | } from "@executor/source-core"; | 9 | } from "@executor/source-core"; |
| 10 | import type { | 10 | import type { |
| 11 | LocalExecutorConfig, | 11 | ExecutorScopeConfig, |
| 12 | Source, | 12 | Source, |
| 13 | } from "@executor/platform-sdk/schema"; | 13 | } from "@executor/platform-sdk/schema"; |
| 14 | import { | 14 | import { |
| @@ -18,9 +18,9 @@ import { · 3 unmodified lines | |||
| 18 | defineExecutorSourcePlugin, | 18 | defineExecutorSourcePlugin, |
| 19 | } from "@executor/platform-sdk/plugins"; | 19 | } from "@executor/platform-sdk/plugins"; |
| 20 | import { | 20 | import { |
| 21 | createPluginLocalConfigEntrySchema, | 21 | createPluginScopeConfigEntrySchema, |
| 22 | provideExecutorRuntime, | 22 | provideExecutorRuntime, |
| 23 | pluginLocalConfigSourceFromConfig, | 23 | pluginScopeConfigSourceFromConfig, |
| 24 | runtimeEffectError, | 24 | runtimeEffectError, |
| 25 | SecretMaterialResolverService, | 25 | SecretMaterialResolverService, |
| 26 | } from "@executor/platform-sdk/runtime"; | 26 | } from "@executor/platform-sdk/runtime"; |
| @@ -157,7 +157,7 @@ const OpenApiLocalSourceConfigSchema = Schema.Struct({ · 130 unmodified lines | |||
| 157 | }); | 157 | }); |
| 158 | 158 | ||
| 159 | const decodeOpenApiCurrentLocalConfigOption = Schema.decodeUnknownOption( | 159 | const decodeOpenApiCurrentLocalConfigOption = Schema.decodeUnknownOption( |
| 160 | createPluginLocalConfigEntrySchema({ | 160 | createPluginScopeConfigEntrySchema({ |
| 161 | kind: "openapi", | 161 | kind: "openapi", |
| 162 | config: OpenApiLocalSourceConfigSchema, | 162 | config: OpenApiLocalSourceConfigSchema, |
| 163 | }), | 163 | }), |
| @@ -193,7 +193,7 @@ const configFromStoredSourceData = ( · 29 unmodified lines | |||
| 193 | 193 | ||
| 194 | const openApiStoredSourceDataFromLocalConfig = (input: { | 194 | const openApiStoredSourceDataFromLocalConfig = (input: { |
| 195 | config: unknown; | 195 | config: unknown; |
| 196 | loadedConfig: LocalExecutorConfig | null; | 196 | loadedConfig: ExecutorScopeConfig | null; |
| 197 | }): OpenApiStoredSourceData => { | 197 | }): OpenApiStoredSourceData => { |
| 198 | const current = decodeOpenApiCurrentLocalConfigOption(input.config); | 198 | const current = decodeOpenApiCurrentLocalConfigOption(input.config); |
| 199 | if (Option.isSome(current)) { | 199 | if (Option.isSome(current)) { |
| @@ -539,9 +539,9 @@ export const openApiSdkPlugin = ( · 339 unmodified lines | |||
| 539 | toConfig: ({ source, stored }) => | 539 | toConfig: ({ source, stored }) => |
| 540 | configFromStoredSourceData(source, normalizeStoredSourceData(stored)), | 540 | configFromStoredSourceData(source, normalizeStoredSourceData(stored)), |
| 541 | }, | 541 | }, |
| 542 | localConfig: { | 542 | scopeConfig: { |
| 543 | toConfigSource: ({ source, stored }) => | 543 | toConfigSource: ({ source, stored }) => |
| 544 | pluginLocalConfigSourceFromConfig({ | 544 | pluginScopeConfigSourceFromConfig({ |
| 545 | source, | 545 | source, |
| 546 | config: { | 546 | config: { |
| 547 | specUrl: stored.specUrl, | 547 | specUrl: stored.specUrl, |