@apimatic/cli 1.5.0 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +128 -212
- package/apimatic.schema.json +550 -0
- package/lib/actions/action-result.js +3 -0
- package/lib/actions/action-result.js.map +1 -1
- package/lib/actions/api/transform.js +36 -33
- package/lib/actions/api/transform.js.map +1 -1
- package/lib/actions/api/validate.d.ts +9 -6
- package/lib/actions/api/validate.js +44 -38
- package/lib/actions/api/validate.js.map +1 -1
- package/lib/actions/auth/login.js +7 -4
- package/lib/actions/auth/login.js.map +1 -1
- package/lib/actions/auth/logout.js +2 -1
- package/lib/actions/auth/logout.js.map +1 -1
- package/lib/actions/auth/status.js +5 -3
- package/lib/actions/auth/status.js.map +1 -1
- package/lib/actions/plugin/generate.d.ts +5 -1
- package/lib/actions/plugin/generate.js +83 -56
- package/lib/actions/plugin/generate.js.map +1 -1
- package/lib/actions/plugin/publish.d.ts +2 -1
- package/lib/actions/plugin/publish.js +34 -37
- package/lib/actions/plugin/publish.js.map +1 -1
- package/lib/actions/plugin/record-metadata.d.ts +3 -2
- package/lib/actions/plugin/record-metadata.js +33 -30
- package/lib/actions/plugin/record-metadata.js.map +1 -1
- package/lib/actions/portal/generate.d.ts +8 -6
- package/lib/actions/portal/generate.js +50 -61
- package/lib/actions/portal/generate.js.map +1 -1
- package/lib/actions/portal/prepare-project.d.ts +25 -0
- package/lib/actions/portal/prepare-project.js +68 -0
- package/lib/actions/portal/prepare-project.js.map +1 -0
- package/lib/actions/portal/serve.d.ts +21 -6
- package/lib/actions/portal/serve.js +170 -153
- package/lib/actions/portal/serve.js.map +1 -1
- package/lib/actions/publishing/profile/list.js +4 -2
- package/lib/actions/publishing/profile/list.js.map +1 -1
- package/lib/actions/quickstart.d.ts +23 -5
- package/lib/actions/quickstart.js +222 -21
- package/lib/actions/quickstart.js.map +1 -1
- package/lib/actions/sdk/generate.d.ts +4 -7
- package/lib/actions/sdk/generate.js +53 -93
- package/lib/actions/sdk/generate.js.map +1 -1
- package/lib/actions/sdk/publish/interactive.d.ts +4 -3
- package/lib/actions/sdk/publish/interactive.js +96 -97
- package/lib/actions/sdk/publish/interactive.js.map +1 -1
- package/lib/actions/sdk/publish/non-interactive.d.ts +4 -2
- package/lib/actions/sdk/publish/non-interactive.js +91 -90
- package/lib/actions/sdk/publish/non-interactive.js.map +1 -1
- package/lib/actions/sdk/publish.d.ts +3 -2
- package/lib/actions/sdk/publish.js +55 -53
- package/lib/actions/sdk/publish.js.map +1 -1
- package/lib/actions/sdk/record-published-sdk.d.ts +14 -0
- package/lib/actions/sdk/record-published-sdk.js +57 -0
- package/lib/actions/sdk/record-published-sdk.js.map +1 -0
- package/lib/client-utils/auth-manager.js +1 -1
- package/lib/client-utils/auth-manager.js.map +1 -1
- package/lib/commands/api/transform.d.ts +1 -1
- package/lib/commands/api/transform.js +44 -40
- package/lib/commands/api/transform.js.map +1 -1
- package/lib/commands/api/validate.js +16 -16
- package/lib/commands/api/validate.js.map +1 -1
- package/lib/commands/auth/login.js +14 -15
- package/lib/commands/auth/login.js.map +1 -1
- package/lib/commands/auth/logout.js +5 -6
- package/lib/commands/auth/logout.js.map +1 -1
- package/lib/commands/auth/status.js +4 -5
- package/lib/commands/auth/status.js.map +1 -1
- package/lib/commands/plugin/generate.d.ts +3 -3
- package/lib/commands/plugin/generate.js +20 -20
- package/lib/commands/plugin/generate.js.map +1 -1
- package/lib/commands/plugin/publish.js +18 -18
- package/lib/commands/plugin/publish.js.map +1 -1
- package/lib/commands/portal/generate.d.ts +9 -8
- package/lib/commands/portal/generate.js +36 -27
- package/lib/commands/portal/generate.js.map +1 -1
- package/lib/commands/portal/serve.d.ts +7 -9
- package/lib/commands/portal/serve.js +41 -44
- package/lib/commands/portal/serve.js.map +1 -1
- package/lib/commands/publishing/profile/list.js +8 -12
- package/lib/commands/publishing/profile/list.js.map +1 -1
- package/lib/commands/quickstart.d.ts +5 -5
- package/lib/commands/quickstart.js +18 -24
- package/lib/commands/quickstart.js.map +1 -1
- package/lib/commands/sdk/generate.d.ts +5 -7
- package/lib/commands/sdk/generate.js +58 -70
- package/lib/commands/sdk/generate.js.map +1 -1
- package/lib/commands/sdk/publish.d.ts +6 -7
- package/lib/commands/sdk/publish.js +66 -60
- package/lib/commands/sdk/publish.js.map +1 -1
- package/lib/hooks/node-version.d.ts +3 -0
- package/lib/hooks/node-version.js +12 -0
- package/lib/hooks/node-version.js.map +1 -0
- package/lib/hooks/not-found.js +2 -3
- package/lib/hooks/not-found.js.map +1 -1
- package/lib/hooks/utils.d.ts +4 -2
- package/lib/hooks/utils.js +2 -2
- package/lib/hooks/utils.js.map +1 -1
- package/lib/infrastructure/env-info.d.ts +3 -0
- package/lib/infrastructure/env-info.js +13 -6
- package/lib/infrastructure/env-info.js.map +1 -1
- package/lib/infrastructure/file-service.d.ts +35 -8
- package/lib/infrastructure/file-service.js +149 -53
- package/lib/infrastructure/file-service.js.map +1 -1
- package/lib/infrastructure/file-watch-service.d.ts +40 -0
- package/lib/infrastructure/file-watch-service.js +167 -0
- package/lib/infrastructure/file-watch-service.js.map +1 -0
- package/lib/infrastructure/generation-status-poller.d.ts +8 -7
- package/lib/infrastructure/generation-status-poller.js +20 -12
- package/lib/infrastructure/generation-status-poller.js.map +1 -1
- package/lib/infrastructure/launcher-service.js +6 -6
- package/lib/infrastructure/launcher-service.js.map +1 -1
- package/lib/infrastructure/network-service.d.ts +3 -0
- package/lib/infrastructure/network-service.js +15 -1
- package/lib/infrastructure/network-service.js.map +1 -1
- package/lib/infrastructure/portal-build-service.d.ts +19 -0
- package/lib/infrastructure/portal-build-service.js +58 -0
- package/lib/infrastructure/portal-build-service.js.map +1 -0
- package/lib/infrastructure/portal-dev-server-service.d.ts +29 -0
- package/lib/infrastructure/portal-dev-server-service.js +135 -0
- package/lib/infrastructure/portal-dev-server-service.js.map +1 -0
- package/lib/infrastructure/portal-pages-service.d.ts +17 -0
- package/lib/infrastructure/portal-pages-service.js +103 -0
- package/lib/infrastructure/portal-pages-service.js.map +1 -0
- package/lib/infrastructure/portal-project-service.d.ts +77 -0
- package/lib/infrastructure/portal-project-service.js +309 -0
- package/lib/infrastructure/portal-project-service.js.map +1 -0
- package/lib/infrastructure/service-error.d.ts +1 -0
- package/lib/infrastructure/service-error.js +39 -41
- package/lib/infrastructure/service-error.js.map +1 -1
- package/lib/infrastructure/services/api-client-factory.js +15 -13
- package/lib/infrastructure/services/api-client-factory.js.map +1 -1
- package/lib/infrastructure/services/api-service.d.ts +7 -5
- package/lib/infrastructure/services/api-service.js +28 -20
- package/lib/infrastructure/services/api-service.js.map +1 -1
- package/lib/infrastructure/services/auth-service.js +4 -9
- package/lib/infrastructure/services/auth-service.js.map +1 -1
- package/lib/infrastructure/services/file-download-service.js +3 -3
- package/lib/infrastructure/services/file-download-service.js.map +1 -1
- package/lib/infrastructure/services/plugin-service.d.ts +1 -8
- package/lib/infrastructure/services/plugin-service.js +11 -22
- package/lib/infrastructure/services/plugin-service.js.map +1 -1
- package/lib/infrastructure/services/portal-artifacts-service.d.ts +44 -0
- package/lib/infrastructure/services/portal-artifacts-service.js +268 -0
- package/lib/infrastructure/services/portal-artifacts-service.js.map +1 -0
- package/lib/infrastructure/services/portal-authorization-service.d.ts +22 -0
- package/lib/infrastructure/services/portal-authorization-service.js +23 -0
- package/lib/infrastructure/services/portal-authorization-service.js.map +1 -0
- package/lib/infrastructure/services/publishing-api-service.d.ts +1 -1
- package/lib/infrastructure/services/publishing-api-service.js +11 -15
- package/lib/infrastructure/services/publishing-api-service.js.map +1 -1
- package/lib/infrastructure/services/sdk-generation-service.d.ts +21 -0
- package/lib/infrastructure/services/sdk-generation-service.js +118 -0
- package/lib/infrastructure/services/sdk-generation-service.js.map +1 -0
- package/lib/infrastructure/services/telemetry-service.js +5 -4
- package/lib/infrastructure/services/telemetry-service.js.map +1 -1
- package/lib/infrastructure/services/transformation-service.js +29 -32
- package/lib/infrastructure/services/transformation-service.js.map +1 -1
- package/lib/infrastructure/services/validation-service.d.ts +12 -53
- package/lib/infrastructure/services/validation-service.js +24 -199
- package/lib/infrastructure/services/validation-service.js.map +1 -1
- package/lib/infrastructure/timer-extensions.d.ts +2 -0
- package/lib/infrastructure/timer-extensions.js +10 -0
- package/lib/infrastructure/timer-extensions.js.map +1 -0
- package/lib/infrastructure/tmp-extensions.d.ts +31 -1
- package/lib/infrastructure/tmp-extensions.js +86 -3
- package/lib/infrastructure/tmp-extensions.js.map +1 -1
- package/lib/infrastructure/zip-service.js +2 -2
- package/lib/infrastructure/zip-service.js.map +1 -1
- package/lib/prompts/api/validate.d.ts +6 -7
- package/lib/prompts/api/validate.js +12 -12
- package/lib/prompts/api/validate.js.map +1 -1
- package/lib/prompts/format.d.ts +4 -0
- package/lib/prompts/format.js +5 -0
- package/lib/prompts/format.js.map +1 -1
- package/lib/prompts/plugin/generate.d.ts +17 -12
- package/lib/prompts/plugin/generate.js +94 -44
- package/lib/prompts/plugin/generate.js.map +1 -1
- package/lib/prompts/plugin/publish.d.ts +2 -1
- package/lib/prompts/plugin/publish.js +8 -7
- package/lib/prompts/plugin/publish.js.map +1 -1
- package/lib/prompts/plugin/record-metadata.d.ts +1 -0
- package/lib/prompts/plugin/record-metadata.js +10 -7
- package/lib/prompts/plugin/record-metadata.js.map +1 -1
- package/lib/prompts/portal/artifacts.d.ts +8 -0
- package/lib/prompts/portal/artifacts.js +26 -0
- package/lib/prompts/portal/artifacts.js.map +1 -0
- package/lib/prompts/portal/authorization.d.ts +6 -0
- package/lib/prompts/portal/authorization.js +29 -0
- package/lib/prompts/portal/authorization.js.map +1 -0
- package/lib/prompts/portal/code-samples.d.ts +1 -0
- package/lib/prompts/portal/code-samples.js +9 -0
- package/lib/prompts/portal/code-samples.js.map +1 -0
- package/lib/prompts/portal/generate.d.ts +14 -9
- package/lib/prompts/portal/generate.js +48 -26
- package/lib/prompts/portal/generate.js.map +1 -1
- package/lib/prompts/portal/prepare-project.d.ts +20 -0
- package/lib/prompts/portal/prepare-project.js +36 -0
- package/lib/prompts/portal/prepare-project.js.map +1 -0
- package/lib/prompts/portal/serve.d.ts +32 -12
- package/lib/prompts/portal/serve.js +102 -39
- package/lib/prompts/portal/serve.js.map +1 -1
- package/lib/prompts/portal/source.d.ts +26 -0
- package/lib/prompts/portal/source.js +253 -0
- package/lib/prompts/portal/source.js.map +1 -0
- package/lib/prompts/prompt.d.ts +11 -3
- package/lib/prompts/prompt.js +39 -15
- package/lib/prompts/prompt.js.map +1 -1
- package/lib/prompts/quickstart.d.ts +46 -3
- package/lib/prompts/quickstart.js +199 -12
- package/lib/prompts/quickstart.js.map +1 -1
- package/lib/prompts/sdk/generate.d.ts +15 -13
- package/lib/prompts/sdk/generate.js +29 -32
- package/lib/prompts/sdk/generate.js.map +1 -1
- package/lib/prompts/sdk/publish/interactive.d.ts +10 -6
- package/lib/prompts/sdk/publish/interactive.js +26 -24
- package/lib/prompts/sdk/publish/interactive.js.map +1 -1
- package/lib/prompts/sdk/publish/non-interactive.d.ts +2 -1
- package/lib/prompts/sdk/publish/non-interactive.js +5 -4
- package/lib/prompts/sdk/publish/non-interactive.js.map +1 -1
- package/lib/prompts/sdk/publish.d.ts +3 -3
- package/lib/prompts/sdk/publish.js +13 -17
- package/lib/prompts/sdk/publish.js.map +1 -1
- package/lib/prompts/sdk/record-published-sdk.d.ts +7 -0
- package/lib/prompts/sdk/record-published-sdk.js +26 -0
- package/lib/prompts/sdk/record-published-sdk.js.map +1 -0
- package/lib/types/apimatic-config/document.d.ts +70 -0
- package/lib/types/apimatic-config/document.js +167 -0
- package/lib/types/apimatic-config/document.js.map +1 -0
- package/lib/types/apimatic-config/languages-block.d.ts +39 -0
- package/lib/types/apimatic-config/languages-block.js +58 -0
- package/lib/types/apimatic-config/languages-block.js.map +1 -0
- package/lib/types/apimatic-config-context.d.ts +48 -0
- package/lib/types/apimatic-config-context.js +121 -0
- package/lib/types/apimatic-config-context.js.map +1 -0
- package/lib/types/build/build.d.ts +1 -89
- package/lib/types/build/build.js +6 -161
- package/lib/types/build/build.js.map +1 -1
- package/lib/types/events/domain-event.js +3 -0
- package/lib/types/events/domain-event.js.map +1 -1
- package/lib/types/events/quickstart-completed.js +3 -3
- package/lib/types/events/quickstart-completed.js.map +1 -1
- package/lib/types/events/quickstart-initiated.js +3 -3
- package/lib/types/events/quickstart-initiated.js.map +1 -1
- package/lib/types/events/sdk-publish-validation-failed.js +1 -1
- package/lib/types/events/sdk-publish-validation-failed.js.map +1 -1
- package/lib/types/file/directory.d.ts +4 -9
- package/lib/types/file/directory.js +17 -65
- package/lib/types/file/directory.js.map +1 -1
- package/lib/types/file/directoryPath.d.ts +17 -0
- package/lib/types/file/directoryPath.js +47 -2
- package/lib/types/file/directoryPath.js.map +1 -1
- package/lib/types/file/fileName.d.ts +8 -0
- package/lib/types/file/fileName.js +28 -6
- package/lib/types/file/fileName.js.map +1 -1
- package/lib/types/file/filePath.d.ts +18 -2
- package/lib/types/file/filePath.js +39 -4
- package/lib/types/file/filePath.js.map +1 -1
- package/lib/types/file/resource-input.js +1 -2
- package/lib/types/file/resource-input.js.map +1 -1
- package/lib/types/file/urlPath.js +2 -1
- package/lib/types/file/urlPath.js.map +1 -1
- package/lib/types/flags-provider.js +22 -22
- package/lib/types/flags-provider.js.map +1 -1
- package/lib/types/package-settings-context.js +2 -1
- package/lib/types/package-settings-context.js.map +1 -1
- package/lib/types/plugin/plugin-config.d.ts +10 -50
- package/lib/types/plugin/plugin-config.js +7 -1
- package/lib/types/plugin/plugin-config.js.map +1 -1
- package/lib/types/plugin-config-context.d.ts +30 -37
- package/lib/types/plugin-config-context.js +108 -139
- package/lib/types/plugin-config-context.js.map +1 -1
- package/lib/types/plugin-context.js +3 -2
- package/lib/types/plugin-context.js.map +1 -1
- package/lib/types/portal/code-samples.d.ts +27 -0
- package/lib/types/portal/code-samples.js +67 -0
- package/lib/types/portal/code-samples.js.map +1 -0
- package/lib/types/portal/config/ai-config.d.ts +15 -0
- package/lib/types/portal/config/ai-config.js +26 -0
- package/lib/types/portal/config/ai-config.js.map +1 -0
- package/lib/types/portal/config/brand-config.d.ts +55 -0
- package/lib/types/portal/config/brand-config.js +105 -0
- package/lib/types/portal/config/brand-config.js.map +1 -0
- package/lib/types/portal/config/color.d.ts +19 -0
- package/lib/types/portal/config/color.js +43 -0
- package/lib/types/portal/config/color.js.map +1 -0
- package/lib/types/portal/config/fields.d.ts +23 -0
- package/lib/types/portal/config/fields.js +67 -0
- package/lib/types/portal/config/fields.js.map +1 -0
- package/lib/types/portal/config/link.d.ts +18 -0
- package/lib/types/portal/config/link.js +72 -0
- package/lib/types/portal/config/link.js.map +1 -0
- package/lib/types/portal/config/navigation-config.d.ts +13 -0
- package/lib/types/portal/config/navigation-config.js +30 -0
- package/lib/types/portal/config/navigation-config.js.map +1 -0
- package/lib/types/portal/config/site-config.d.ts +32 -0
- package/lib/types/portal/config/site-config.js +88 -0
- package/lib/types/portal/config/site-config.js.map +1 -0
- package/lib/types/portal/config/static-asset.d.ts +25 -0
- package/lib/types/portal/config/static-asset.js +77 -0
- package/lib/types/portal/config/static-asset.js.map +1 -0
- package/lib/types/portal/content-notices.d.ts +20 -0
- package/lib/types/portal/content-notices.js +2 -0
- package/lib/types/portal/content-notices.js.map +1 -0
- package/lib/types/portal/content-tree.d.ts +103 -0
- package/lib/types/portal/content-tree.js +344 -0
- package/lib/types/portal/content-tree.js.map +1 -0
- package/lib/types/portal/endpoint.d.ts +6 -0
- package/lib/types/portal/endpoint.js +12 -0
- package/lib/types/portal/endpoint.js.map +1 -0
- package/lib/types/portal/generated-pages.d.ts +68 -0
- package/lib/types/portal/generated-pages.js +111 -0
- package/lib/types/portal/generated-pages.js.map +1 -0
- package/lib/types/portal/generation-status.d.ts +31 -0
- package/lib/types/portal/generation-status.js +26 -0
- package/lib/types/portal/generation-status.js.map +1 -0
- package/lib/types/portal/openapi-document.d.ts +48 -0
- package/lib/types/portal/openapi-document.js +138 -0
- package/lib/types/portal/openapi-document.js.map +1 -0
- package/lib/types/portal/page-fragments.d.ts +13 -0
- package/lib/types/portal/page-fragments.js +24 -0
- package/lib/types/portal/page-fragments.js.map +1 -0
- package/lib/types/portal/page-template.d.ts +15 -0
- package/lib/types/portal/page-template.js +64 -0
- package/lib/types/portal/page-template.js.map +1 -0
- package/lib/types/portal/page.d.ts +24 -0
- package/lib/types/portal/page.js +100 -0
- package/lib/types/portal/page.js.map +1 -0
- package/lib/types/portal/portal-artifacts.d.ts +25 -0
- package/lib/types/portal/portal-artifacts.js +30 -0
- package/lib/types/portal/portal-artifacts.js.map +1 -0
- package/lib/types/portal/portal-config.d.ts +69 -0
- package/lib/types/portal/portal-config.js +105 -0
- package/lib/types/portal/portal-config.js.map +1 -0
- package/lib/types/portal/portal-downloads.d.ts +8 -0
- package/lib/types/portal/portal-downloads.js +14 -0
- package/lib/types/portal/portal-downloads.js.map +1 -0
- package/lib/types/portal/portal-languages.d.ts +15 -0
- package/lib/types/portal/portal-languages.js +45 -0
- package/lib/types/portal/portal-languages.js.map +1 -0
- package/lib/types/portal/portal-navigation.d.ts +65 -0
- package/lib/types/portal/portal-navigation.js +217 -0
- package/lib/types/portal/portal-navigation.js.map +1 -0
- package/lib/types/portal/portal-sdk.d.ts +15 -0
- package/lib/types/portal/portal-sdk.js +28 -0
- package/lib/types/portal/portal-sdk.js.map +1 -0
- package/lib/types/portal/portal-source.d.ts +129 -0
- package/lib/types/portal/portal-source.js +2 -0
- package/lib/types/portal/portal-source.js.map +1 -0
- package/lib/types/portal/portal-stylesheet.d.ts +19 -0
- package/lib/types/portal/portal-stylesheet.js +40 -0
- package/lib/types/portal/portal-stylesheet.js.map +1 -0
- package/lib/types/portal/portal-tabs.d.ts +33 -0
- package/lib/types/portal/portal-tabs.js +38 -0
- package/lib/types/portal/portal-tabs.js.map +1 -0
- package/lib/types/portal/preview-config.d.ts +20 -0
- package/lib/types/portal/preview-config.js +32 -0
- package/lib/types/portal/preview-config.js.map +1 -0
- package/lib/types/portal/preview-content.d.ts +18 -0
- package/lib/types/portal/preview-content.js +50 -0
- package/lib/types/portal/preview-content.js.map +1 -0
- package/lib/types/portal/published-package.d.ts +12 -0
- package/lib/types/portal/published-package.js +35 -0
- package/lib/types/portal/published-package.js.map +1 -0
- package/lib/types/portal/unknown-fields.d.ts +5 -0
- package/lib/types/portal/unknown-fields.js +10 -0
- package/lib/types/portal/unknown-fields.js.map +1 -0
- package/lib/types/portal-context.d.ts +38 -6
- package/lib/types/portal-context.js +71 -24
- package/lib/types/portal-context.js.map +1 -1
- package/lib/types/portal-source-context.d.ts +77 -0
- package/lib/types/portal-source-context.js +408 -0
- package/lib/types/portal-source-context.js.map +1 -0
- package/lib/types/project-context.d.ts +49 -0
- package/lib/types/project-context.js +151 -0
- package/lib/types/project-context.js.map +1 -0
- package/lib/types/project-layout.d.ts +9 -0
- package/lib/types/project-layout.js +10 -0
- package/lib/types/project-layout.js.map +1 -0
- package/lib/types/publish/package-settings-configuration.d.ts +2 -0
- package/lib/types/publish/profile-id.js +1 -0
- package/lib/types/publish/profile-id.js.map +1 -1
- package/lib/types/publish/publishing-profile.d.ts +3 -1
- package/lib/types/publish/publishing-profile.js +33 -15
- package/lib/types/publish/publishing-profile.js.map +1 -1
- package/lib/types/publish/publishing-profiles.js +2 -1
- package/lib/types/publish/publishing-profiles.js.map +1 -1
- package/lib/types/publish/version.js +1 -0
- package/lib/types/publish/version.js.map +1 -1
- package/lib/types/resource-context.js +3 -2
- package/lib/types/resource-context.js.map +1 -1
- package/lib/types/sdk/generate.d.ts +22 -16
- package/lib/types/sdk/generate.js +64 -41
- package/lib/types/sdk/generate.js.map +1 -1
- package/lib/types/sdk/stability-choice.d.ts +12 -0
- package/lib/types/sdk/stability-choice.js +24 -0
- package/lib/types/sdk/stability-choice.js.map +1 -0
- package/lib/types/sdk-context.d.ts +4 -5
- package/lib/types/sdk-context.js +10 -18
- package/lib/types/sdk-context.js.map +1 -1
- package/lib/types/spec-context.d.ts +5 -4
- package/lib/types/spec-context.js +9 -8
- package/lib/types/spec-context.js.map +1 -1
- package/lib/types/temp-context.d.ts +1 -1
- package/lib/types/temp-context.js +5 -4
- package/lib/types/temp-context.js.map +1 -1
- package/lib/types/transform-context.d.ts +9 -5
- package/lib/types/transform-context.js +21 -18
- package/lib/types/transform-context.js.map +1 -1
- package/lib/utils/error-utils.d.ts +2 -0
- package/lib/utils/error-utils.js +5 -0
- package/lib/utils/error-utils.js.map +1 -0
- package/lib/utils/json-utils.d.ts +2 -0
- package/lib/utils/json-utils.js +4 -0
- package/lib/utils/json-utils.js.map +1 -0
- package/lib/utils/string-utils.d.ts +8 -1
- package/lib/utils/string-utils.js +13 -26
- package/lib/utils/string-utils.js.map +1 -1
- package/lib/utils/utils.d.ts +1 -3
- package/lib/utils/utils.js +12 -40
- package/lib/utils/utils.js.map +1 -1
- package/oclif.manifest.json +69 -357
- package/package.json +47 -25
- package/portal-pages/context-plugin.mdx +26 -0
- package/portal-pages/sdk.mdx +8 -0
- package/portal-pages/sdks.mdx +11 -0
- package/portal-template/NOTICE +37 -0
- package/portal-template/downloads.ts +41 -0
- package/portal-template/generated-pages-reload.ts +51 -0
- package/portal-template/package.json +11 -0
- package/portal-template/portal-config.ts +32 -0
- package/portal-template/prerender-pages.ts +81 -0
- package/portal-template/spec-reload.ts +26 -0
- package/portal-template/src/components/api-page.tsx +15 -0
- package/portal-template/src/components/code-block.tsx +9 -0
- package/portal-template/src/components/command-block.tsx +50 -0
- package/portal-template/src/components/example-layout.tsx +99 -0
- package/portal-template/src/components/logos.tsx +127 -0
- package/portal-template/src/components/mdx.tsx +28 -0
- package/portal-template/src/components/not-found.tsx +11 -0
- package/portal-template/src/components/plugin-install.tsx +22 -0
- package/portal-template/src/components/plugin-support.tsx +53 -0
- package/portal-template/src/components/sdk-actions.tsx +79 -0
- package/portal-template/src/components/sdk-cards.tsx +100 -0
- package/portal-template/src/components/search.tsx +41 -0
- package/portal-template/src/components/usage-tabs.tsx +92 -0
- package/portal-template/src/lib/code-samples.server.ts +40 -0
- package/portal-template/src/lib/code-samples.ts +43 -0
- package/portal-template/src/lib/code-titles.ts +29 -0
- package/portal-template/src/lib/install-command.ts +13 -0
- package/portal-template/src/lib/json.ts +5 -0
- package/portal-template/src/lib/layout.shared.tsx +41 -0
- package/portal-template/src/lib/layout.tsx +16 -0
- package/portal-template/src/lib/llms.server.ts +54 -0
- package/portal-template/src/lib/media-adapters.ts +34 -0
- package/portal-template/src/lib/navigation.ts +406 -0
- package/portal-template/src/lib/openapi-bundle.server.ts +343 -0
- package/portal-template/src/lib/openapi-filter.ts +191 -0
- package/portal-template/src/lib/openapi-labels.ts +15 -0
- package/portal-template/src/lib/openapi-methods.ts +12 -0
- package/portal-template/src/lib/openapi-section.server.ts +280 -0
- package/portal-template/src/lib/openapi-slim.ts +202 -0
- package/portal-template/src/lib/openapi.server.ts +16 -0
- package/portal-template/src/lib/portal-types.ts +36 -0
- package/portal-template/src/lib/portal.server.ts +13 -0
- package/portal-template/src/lib/portal.ts +11 -0
- package/portal-template/src/lib/rehype-code-titles.ts +53 -0
- package/portal-template/src/lib/request-examples.ts +72 -0
- package/portal-template/src/lib/seo.ts +21 -0
- package/portal-template/src/lib/shared.ts +51 -0
- package/portal-template/src/lib/shiki-bundle.ts +104 -0
- package/portal-template/src/lib/sitemap.server.ts +20 -0
- package/portal-template/src/lib/source.server.ts +27 -0
- package/portal-template/src/lib/source.ts +49 -0
- package/portal-template/src/lib/tabs.ts +37 -0
- package/portal-template/src/router.tsx +12 -0
- package/portal-template/src/routes/$.tsx +194 -0
- package/portal-template/src/routes/__root.tsx +56 -0
- package/portal-template/src/routes/api/search[.]json.ts +9 -0
- package/portal-template/src/routes/llms-full[.]txt.ts +10 -0
- package/portal-template/src/routes/llms[.]txt.ts +10 -0
- package/portal-template/src/routes/robots[.]txt.ts +10 -0
- package/portal-template/src/routes/sitemap[.]xml.ts +10 -0
- package/portal-template/src/routes/spa-shell.tsx +7 -0
- package/portal-template/src/routes/{$}[.]md.ts +21 -0
- package/portal-template/src/styles/app.css +33 -0
- package/portal-template/tsconfig.json +26 -0
- package/portal-template/vite.config.ts +68 -0
- package/lib/actions/plugin/record-sdk.d.ts +0 -14
- package/lib/actions/plugin/record-sdk.js +0 -60
- package/lib/actions/plugin/record-sdk.js.map +0 -1
- package/lib/actions/portal/copilot.d.ts +0 -17
- package/lib/actions/portal/copilot.js +0 -89
- package/lib/actions/portal/copilot.js.map +0 -1
- package/lib/actions/portal/quickstart.d.ts +0 -18
- package/lib/actions/portal/quickstart.js +0 -238
- package/lib/actions/portal/quickstart.js.map +0 -1
- package/lib/actions/portal/recipe/new-recipe.d.ts +0 -15
- package/lib/actions/portal/recipe/new-recipe.js +0 -177
- package/lib/actions/portal/recipe/new-recipe.js.map +0 -1
- package/lib/actions/portal/toc/new-toc.d.ts +0 -21
- package/lib/actions/portal/toc/new-toc.js +0 -95
- package/lib/actions/portal/toc/new-toc.js.map +0 -1
- package/lib/actions/sdk/merge-source-tree.d.ts +0 -12
- package/lib/actions/sdk/merge-source-tree.js +0 -78
- package/lib/actions/sdk/merge-source-tree.js.map +0 -1
- package/lib/actions/sdk/quickstart.d.ts +0 -18
- package/lib/actions/sdk/quickstart.js +0 -188
- package/lib/actions/sdk/quickstart.js.map +0 -1
- package/lib/actions/sdk/save-changes.d.ts +0 -8
- package/lib/actions/sdk/save-changes.js +0 -93
- package/lib/actions/sdk/save-changes.js.map +0 -1
- package/lib/application/portal/recipe/portal-recipe.d.ts +0 -8
- package/lib/application/portal/recipe/portal-recipe.js +0 -33
- package/lib/application/portal/recipe/portal-recipe.js.map +0 -1
- package/lib/application/portal/recipe/recipe-generator.d.ts +0 -21
- package/lib/application/portal/recipe/recipe-generator.js +0 -130
- package/lib/application/portal/recipe/recipe-generator.js.map +0 -1
- package/lib/application/portal/toc/toc-content-parser.d.ts +0 -5
- package/lib/application/portal/toc/toc-content-parser.js +0 -44
- package/lib/application/portal/toc/toc-content-parser.js.map +0 -1
- package/lib/application/portal/toc/toc-structure-generator.d.ts +0 -11
- package/lib/application/portal/toc/toc-structure-generator.js +0 -165
- package/lib/application/portal/toc/toc-structure-generator.js.map +0 -1
- package/lib/commands/portal/copilot.d.ts +0 -13
- package/lib/commands/portal/copilot.js +0 -34
- package/lib/commands/portal/copilot.js.map +0 -1
- package/lib/commands/portal/recipe/new.d.ts +0 -12
- package/lib/commands/portal/recipe/new.js +0 -45
- package/lib/commands/portal/recipe/new.js.map +0 -1
- package/lib/commands/portal/toc/new.d.ts +0 -16
- package/lib/commands/portal/toc/new.js +0 -68
- package/lib/commands/portal/toc/new.js.map +0 -1
- package/lib/commands/sdk/save-changes.d.ts +0 -14
- package/lib/commands/sdk/save-changes.js +0 -51
- package/lib/commands/sdk/save-changes.js.map +0 -1
- package/lib/infrastructure/debounce-service.d.ts +0 -10
- package/lib/infrastructure/debounce-service.js +0 -55
- package/lib/infrastructure/debounce-service.js.map +0 -1
- package/lib/infrastructure/services/portal-service.d.ts +0 -43
- package/lib/infrastructure/services/portal-service.js +0 -337
- package/lib/infrastructure/services/portal-service.js.map +0 -1
- package/lib/prompts/plugin/record-sdk.d.ts +0 -9
- package/lib/prompts/plugin/record-sdk.js +0 -40
- package/lib/prompts/plugin/record-sdk.js.map +0 -1
- package/lib/prompts/portal/copilot.d.ts +0 -18
- package/lib/prompts/portal/copilot.js +0 -82
- package/lib/prompts/portal/copilot.js.map +0 -1
- package/lib/prompts/portal/quickstart.d.ts +0 -42
- package/lib/prompts/portal/quickstart.js +0 -243
- package/lib/prompts/portal/quickstart.js.map +0 -1
- package/lib/prompts/portal/recipe/new-recipe.d.ts +0 -29
- package/lib/prompts/portal/recipe/new-recipe.js +0 -165
- package/lib/prompts/portal/recipe/new-recipe.js.map +0 -1
- package/lib/prompts/portal/toc/new-toc.d.ts +0 -16
- package/lib/prompts/portal/toc/new-toc.js +0 -50
- package/lib/prompts/portal/toc/new-toc.js.map +0 -1
- package/lib/prompts/sdk/merge-source-tree.d.ts +0 -22
- package/lib/prompts/sdk/merge-source-tree.js +0 -90
- package/lib/prompts/sdk/merge-source-tree.js.map +0 -1
- package/lib/prompts/sdk/quickstart.d.ts +0 -38
- package/lib/prompts/sdk/quickstart.js +0 -196
- package/lib/prompts/sdk/quickstart.js.map +0 -1
- package/lib/prompts/sdk/save-changes.d.ts +0 -21
- package/lib/prompts/sdk/save-changes.js +0 -84
- package/lib/prompts/sdk/save-changes.js.map +0 -1
- package/lib/types/build-context.d.ts +0 -26
- package/lib/types/build-context.js +0 -111
- package/lib/types/build-context.js.map +0 -1
- package/lib/types/events/recipe-creation-failed.d.ts +0 -5
- package/lib/types/events/recipe-creation-failed.js +0 -8
- package/lib/types/events/recipe-creation-failed.js.map +0 -1
- package/lib/types/events/sdk-changes-saved.d.ts +0 -8
- package/lib/types/events/sdk-changes-saved.js +0 -11
- package/lib/types/events/sdk-changes-saved.js.map +0 -1
- package/lib/types/events/sdk-changes-tracked.d.ts +0 -8
- package/lib/types/events/sdk-changes-tracked.js +0 -11
- package/lib/types/events/sdk-changes-tracked.js.map +0 -1
- package/lib/types/events/sdk-conflicts-resolved.d.ts +0 -8
- package/lib/types/events/sdk-conflicts-resolved.js +0 -11
- package/lib/types/events/sdk-conflicts-resolved.js.map +0 -1
- package/lib/types/events/toc-creation-failed.d.ts +0 -5
- package/lib/types/events/toc-creation-failed.js +0 -8
- package/lib/types/events/toc-creation-failed.js.map +0 -1
- package/lib/types/merge-source-tree-context.d.ts +0 -28
- package/lib/types/merge-source-tree-context.js +0 -63
- package/lib/types/merge-source-tree-context.js.map +0 -1
- package/lib/types/plugin/language-entry.d.ts +0 -9
- package/lib/types/plugin/language-entry.js +0 -64
- package/lib/types/plugin/language-entry.js.map +0 -1
- package/lib/types/recipe/recipe.d.ts +0 -22
- package/lib/types/recipe/recipe.js +0 -6
- package/lib/types/recipe/recipe.js.map +0 -1
- package/lib/types/recipe-context.d.ts +0 -9
- package/lib/types/recipe-context.js +0 -26
- package/lib/types/recipe-context.js.map +0 -1
- package/lib/types/save-changes-context.d.ts +0 -17
- package/lib/types/save-changes-context.js +0 -42
- package/lib/types/save-changes-context.js.map +0 -1
- package/lib/types/sdl/sdl.d.ts +0 -10
- package/lib/types/sdl/sdl.js +0 -18
- package/lib/types/sdl/sdl.js.map +0 -1
- package/lib/types/toc/toc-components.d.ts +0 -36
- package/lib/types/toc/toc-components.js +0 -94
- package/lib/types/toc/toc-components.js.map +0 -1
- package/lib/types/toc/toc.d.ts +0 -67
- package/lib/types/toc/toc.js +0 -2
- package/lib/types/toc/toc.js.map +0 -1
- package/lib/types/toc-context.d.ts +0 -12
- package/lib/types/toc-context.js +0 -26
- package/lib/types/toc-context.js.map +0 -1
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/@apimatic/cli@2/apimatic.schema.json",
|
|
4
|
+
"title": "apimatic.json",
|
|
5
|
+
"description": "The APIMatic CLI's project file, src/apimatic.json: the documentation portal, the context plugin's identity, and the project's SDK languages.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Where editors find this schema. Ignored by the CLI."
|
|
11
|
+
},
|
|
12
|
+
"schemaVersion": {
|
|
13
|
+
"const": 1,
|
|
14
|
+
"description": "The format of this file. The CLI refuses a version it does not read."
|
|
15
|
+
},
|
|
16
|
+
"portal": {
|
|
17
|
+
"$ref": "#/definitions/portal"
|
|
18
|
+
},
|
|
19
|
+
"plugin": {
|
|
20
|
+
"$ref": "#/definitions/plugin"
|
|
21
|
+
},
|
|
22
|
+
"languages": {
|
|
23
|
+
"$ref": "#/definitions/languages"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"additionalProperties": true,
|
|
27
|
+
"definitions": {
|
|
28
|
+
"nonBlank": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "\\S"
|
|
31
|
+
},
|
|
32
|
+
"semver": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
35
|
+
},
|
|
36
|
+
"staticPath": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "A path relative to 'src' inside the 'static' directory, for example 'static/images/logo.png'.",
|
|
39
|
+
"pattern": "^\\s*(?:\\.[\\\\/])?static(?:[\\\\/](?!\\.{1,2}(?:[\\\\/]|\\s*$))[^\\\\/]*[^\\\\/\\s][^\\\\/]*)+\\s*$"
|
|
40
|
+
},
|
|
41
|
+
"color": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "#rgb or #rrggbb, for example '#1d4ed8'.",
|
|
44
|
+
"pattern": "^\\s*#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\s*$"
|
|
45
|
+
},
|
|
46
|
+
"link": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": ["label", "url"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"label": {
|
|
52
|
+
"$ref": "#/definitions/nonBlank"
|
|
53
|
+
},
|
|
54
|
+
"url": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "A page of the portal starting with '/', or an address starting with 'https://' or 'http://'.",
|
|
57
|
+
"pattern": "^\\s*(?:/(?![\\t\\n\\r]*[/\\\\])(?:(?![/\\\\][\\t\\n\\r]*[/\\\\])[^?#])*(?:[?#][\\s\\S]*)?|[hH][tT][tT][pP][sS]?://[^\\s/?#]+(?:[/?#][\\s\\S]*)?\\s*)$"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"portal": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"description": "The documentation portal that 'apimatic portal generate' and 'apimatic portal serve' build.",
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"properties": {
|
|
66
|
+
"site": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"properties": {
|
|
70
|
+
"name": {
|
|
71
|
+
"allOf": [
|
|
72
|
+
{
|
|
73
|
+
"$ref": "#/definitions/nonBlank"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"description": "The portal's name. Defaults to the title of the only specification; required when 'spec' holds more than one."
|
|
77
|
+
},
|
|
78
|
+
"url": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "The address the portal is hosted at, without a path, for example 'https://docs.example.com'.",
|
|
81
|
+
"pattern": "^\\s*[hH][tT][tT][pP][sS]?://[^\\s/?#]+/?\\s*$"
|
|
82
|
+
},
|
|
83
|
+
"description": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "Defaults to the first paragraph of the only specification's description. Blank is none."
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"brand": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"properties": {
|
|
93
|
+
"logo": {
|
|
94
|
+
"description": "One image for both colour modes, or one per mode.",
|
|
95
|
+
"anyOf": [
|
|
96
|
+
{
|
|
97
|
+
"$ref": "#/definitions/staticPath"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"required": ["light", "dark"],
|
|
103
|
+
"properties": {
|
|
104
|
+
"light": {
|
|
105
|
+
"$ref": "#/definitions/staticPath"
|
|
106
|
+
},
|
|
107
|
+
"dark": {
|
|
108
|
+
"$ref": "#/definitions/staticPath"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"favicon": {
|
|
115
|
+
"allOf": [
|
|
116
|
+
{
|
|
117
|
+
"$ref": "#/definitions/staticPath"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"description": "Defaults to the light logo."
|
|
121
|
+
},
|
|
122
|
+
"colors": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"additionalProperties": false,
|
|
125
|
+
"properties": {
|
|
126
|
+
"primary": {
|
|
127
|
+
"description": "One colour for both modes, or one per mode.",
|
|
128
|
+
"anyOf": [
|
|
129
|
+
{
|
|
130
|
+
"$ref": "#/definitions/color"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "object",
|
|
134
|
+
"additionalProperties": false,
|
|
135
|
+
"required": ["light", "dark"],
|
|
136
|
+
"properties": {
|
|
137
|
+
"light": {
|
|
138
|
+
"$ref": "#/definitions/color"
|
|
139
|
+
},
|
|
140
|
+
"dark": {
|
|
141
|
+
"$ref": "#/definitions/color"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"colorMode": {
|
|
150
|
+
"enum": ["light", "dark", "both"],
|
|
151
|
+
"default": "both",
|
|
152
|
+
"description": "A forced mode hides the switch."
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"navigation": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"additionalProperties": false,
|
|
159
|
+
"properties": {
|
|
160
|
+
"links": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"description": "Links in the header and the mobile menu.",
|
|
163
|
+
"items": {
|
|
164
|
+
"$ref": "#/definitions/link"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"ai": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"additionalProperties": false,
|
|
172
|
+
"properties": {
|
|
173
|
+
"pageActions": {
|
|
174
|
+
"type": "boolean",
|
|
175
|
+
"default": true,
|
|
176
|
+
"description": "Whether each page offers to open itself in an external AI assistant."
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"pluginUrl": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "Where the context plugin is hosted, starting with 'https://' and with no spaces. The Context Plugin page installs it from here, and the portal carries no copy of its own.",
|
|
183
|
+
"pattern": "^[hH][tT][tT][pP][sS]://[^\\s/?#]+(?:[/?#]\\S*)?$"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"plugin": {
|
|
188
|
+
"type": "object",
|
|
189
|
+
"description": "The context plugin's identity, which 'apimatic plugin generate' records. Its ID, name and version are required to generate the plugin.",
|
|
190
|
+
"additionalProperties": true,
|
|
191
|
+
"required": ["pluginId", "pluginName", "pluginVersion"],
|
|
192
|
+
"properties": {
|
|
193
|
+
"pluginId": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"description": "Lower-case alphanumeric words separated by single dashes, for example 'acme-payments'.",
|
|
196
|
+
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
|
|
197
|
+
},
|
|
198
|
+
"pluginName": {
|
|
199
|
+
"allOf": [
|
|
200
|
+
{
|
|
201
|
+
"$ref": "#/definitions/nonBlank"
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"description": "The name the plugin is shown by, for example 'Acme Payments'."
|
|
205
|
+
},
|
|
206
|
+
"pluginVersion": {
|
|
207
|
+
"allOf": [
|
|
208
|
+
{
|
|
209
|
+
"$ref": "#/definitions/semver"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"description": "major.minor.patch, for example '0.1.0'."
|
|
213
|
+
},
|
|
214
|
+
"pluginKey": {
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
"author": {
|
|
218
|
+
"type": "object",
|
|
219
|
+
"additionalProperties": true,
|
|
220
|
+
"properties": {
|
|
221
|
+
"name": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"email": {
|
|
225
|
+
"type": "string"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"license": {
|
|
230
|
+
"type": "string"
|
|
231
|
+
},
|
|
232
|
+
"homepage": {
|
|
233
|
+
"type": "string"
|
|
234
|
+
},
|
|
235
|
+
"repository": {
|
|
236
|
+
"type": "string"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"languages": {
|
|
241
|
+
"type": "object",
|
|
242
|
+
"description": "The project's SDK languages, which 'apimatic sdk publish' adds to. An entry without 'publishing' is a language that is wanted but not yet published.",
|
|
243
|
+
"propertyNames": {
|
|
244
|
+
"enum": ["csharp", "typescript", "python"]
|
|
245
|
+
},
|
|
246
|
+
"properties": {
|
|
247
|
+
"csharp": {
|
|
248
|
+
"$ref": "#/definitions/csharpEntry"
|
|
249
|
+
},
|
|
250
|
+
"typescript": {
|
|
251
|
+
"$ref": "#/definitions/typescriptEntry"
|
|
252
|
+
},
|
|
253
|
+
"python": {
|
|
254
|
+
"$ref": "#/definitions/pythonEntry"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"additionalProperties": false
|
|
258
|
+
},
|
|
259
|
+
"source": {
|
|
260
|
+
"type": "object",
|
|
261
|
+
"description": "The repository 'apimatic sdk publish' published the SDK's source to.",
|
|
262
|
+
"additionalProperties": false,
|
|
263
|
+
"properties": {
|
|
264
|
+
"repositoryUrl": {
|
|
265
|
+
"type": "string"
|
|
266
|
+
},
|
|
267
|
+
"branch": {
|
|
268
|
+
"type": "string"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"release": {
|
|
273
|
+
"type": "object",
|
|
274
|
+
"description": "The published release. The package's name is not here: it is read from 'packageConfiguration'.",
|
|
275
|
+
"additionalProperties": false,
|
|
276
|
+
"properties": {
|
|
277
|
+
"version": {
|
|
278
|
+
"$ref": "#/definitions/semver"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"csharpEntry": {
|
|
283
|
+
"type": "object",
|
|
284
|
+
"description": "An SDK language. Without 'publishing', the language is wanted but not published yet.",
|
|
285
|
+
"additionalProperties": false,
|
|
286
|
+
"properties": {
|
|
287
|
+
"publishing": {
|
|
288
|
+
"type": "object",
|
|
289
|
+
"description": "Where the SDK is published.",
|
|
290
|
+
"additionalProperties": false,
|
|
291
|
+
"dependencies": {
|
|
292
|
+
"package": ["packageConfiguration"]
|
|
293
|
+
},
|
|
294
|
+
"properties": {
|
|
295
|
+
"source": {
|
|
296
|
+
"$ref": "#/definitions/source"
|
|
297
|
+
},
|
|
298
|
+
"package": {
|
|
299
|
+
"$ref": "#/definitions/release"
|
|
300
|
+
},
|
|
301
|
+
"packageConfiguration": {
|
|
302
|
+
"$ref": "#/definitions/csharpPackageConfiguration"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"pythonEntry": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"description": "An SDK language. Without 'publishing', the language is wanted but not published yet.",
|
|
311
|
+
"additionalProperties": false,
|
|
312
|
+
"properties": {
|
|
313
|
+
"publishing": {
|
|
314
|
+
"type": "object",
|
|
315
|
+
"description": "Where the SDK is published.",
|
|
316
|
+
"additionalProperties": false,
|
|
317
|
+
"dependencies": {
|
|
318
|
+
"package": ["packageConfiguration"]
|
|
319
|
+
},
|
|
320
|
+
"properties": {
|
|
321
|
+
"source": {
|
|
322
|
+
"$ref": "#/definitions/source"
|
|
323
|
+
},
|
|
324
|
+
"package": {
|
|
325
|
+
"$ref": "#/definitions/release"
|
|
326
|
+
},
|
|
327
|
+
"packageConfiguration": {
|
|
328
|
+
"$ref": "#/definitions/pythonPackageConfiguration"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"typescriptEntry": {
|
|
335
|
+
"type": "object",
|
|
336
|
+
"description": "An SDK language. Without 'publishing', the language is wanted but not published yet.",
|
|
337
|
+
"additionalProperties": false,
|
|
338
|
+
"properties": {
|
|
339
|
+
"publishing": {
|
|
340
|
+
"type": "object",
|
|
341
|
+
"description": "Where the SDK is published.",
|
|
342
|
+
"additionalProperties": false,
|
|
343
|
+
"dependencies": {
|
|
344
|
+
"package": ["packageConfiguration"]
|
|
345
|
+
},
|
|
346
|
+
"properties": {
|
|
347
|
+
"source": {
|
|
348
|
+
"$ref": "#/definitions/source"
|
|
349
|
+
},
|
|
350
|
+
"package": {
|
|
351
|
+
"$ref": "#/definitions/release"
|
|
352
|
+
},
|
|
353
|
+
"packageConfiguration": {
|
|
354
|
+
"$ref": "#/definitions/typescriptPackageConfiguration"
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"csharpPackageConfiguration": {
|
|
361
|
+
"type": "object",
|
|
362
|
+
"description": "How the NuGet package is set up. Written by 'apimatic sdk publish' from the publishing profile.",
|
|
363
|
+
"additionalProperties": false,
|
|
364
|
+
"required": ["packageId"],
|
|
365
|
+
"properties": {
|
|
366
|
+
"packageId": {
|
|
367
|
+
"type": "string",
|
|
368
|
+
"description": "The NuGet package id, which the SDK card installs."
|
|
369
|
+
},
|
|
370
|
+
"authors": {
|
|
371
|
+
"type": ["string", "null"]
|
|
372
|
+
},
|
|
373
|
+
"description": {
|
|
374
|
+
"type": ["string", "null"]
|
|
375
|
+
},
|
|
376
|
+
"title": {
|
|
377
|
+
"type": ["string", "null"]
|
|
378
|
+
},
|
|
379
|
+
"packageTags": {
|
|
380
|
+
"type": ["string", "null"]
|
|
381
|
+
},
|
|
382
|
+
"repositoryUrl": {
|
|
383
|
+
"type": ["string", "null"]
|
|
384
|
+
},
|
|
385
|
+
"repositoryType": {
|
|
386
|
+
"type": ["string", "null"]
|
|
387
|
+
},
|
|
388
|
+
"packageProjectUrl": {
|
|
389
|
+
"type": ["string", "null"]
|
|
390
|
+
},
|
|
391
|
+
"packageIcon": {
|
|
392
|
+
"type": ["string", "null"]
|
|
393
|
+
},
|
|
394
|
+
"packageReleaseNotes": {
|
|
395
|
+
"type": ["string", "null"]
|
|
396
|
+
},
|
|
397
|
+
"copyright": {
|
|
398
|
+
"type": ["string", "null"]
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"pythonPackageConfiguration": {
|
|
403
|
+
"type": "object",
|
|
404
|
+
"description": "How the PyPI distribution is set up. Written by 'apimatic sdk publish' from the publishing profile.",
|
|
405
|
+
"additionalProperties": false,
|
|
406
|
+
"required": ["name"],
|
|
407
|
+
"properties": {
|
|
408
|
+
"name": {
|
|
409
|
+
"type": "string",
|
|
410
|
+
"description": "The PyPI project name, which the SDK card installs."
|
|
411
|
+
},
|
|
412
|
+
"description": {
|
|
413
|
+
"type": ["string", "null"]
|
|
414
|
+
},
|
|
415
|
+
"authors": {
|
|
416
|
+
"type": "array",
|
|
417
|
+
"items": {
|
|
418
|
+
"type": "object",
|
|
419
|
+
"additionalProperties": false,
|
|
420
|
+
"properties": {
|
|
421
|
+
"email": {
|
|
422
|
+
"type": ["string", "null"]
|
|
423
|
+
},
|
|
424
|
+
"name": {
|
|
425
|
+
"type": ["string", "null"]
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"maintainers": {
|
|
431
|
+
"type": "array",
|
|
432
|
+
"items": {
|
|
433
|
+
"type": "object",
|
|
434
|
+
"additionalProperties": false,
|
|
435
|
+
"properties": {
|
|
436
|
+
"email": {
|
|
437
|
+
"type": ["string", "null"]
|
|
438
|
+
},
|
|
439
|
+
"name": {
|
|
440
|
+
"type": ["string", "null"]
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"keywords": {
|
|
446
|
+
"type": "array",
|
|
447
|
+
"items": {
|
|
448
|
+
"type": "string"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
"classifiers": {
|
|
452
|
+
"type": "array",
|
|
453
|
+
"items": {
|
|
454
|
+
"type": "string"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"urls": {
|
|
458
|
+
"type": "object",
|
|
459
|
+
"additionalProperties": {
|
|
460
|
+
"type": "string"
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"typescriptPackageConfiguration": {
|
|
466
|
+
"type": "object",
|
|
467
|
+
"description": "How the npm package is set up. Written by 'apimatic sdk publish' from the publishing profile.",
|
|
468
|
+
"additionalProperties": false,
|
|
469
|
+
"required": ["name"],
|
|
470
|
+
"properties": {
|
|
471
|
+
"name": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"description": "The npm package name, which the SDK card installs."
|
|
474
|
+
},
|
|
475
|
+
"author": {
|
|
476
|
+
"type": "object",
|
|
477
|
+
"additionalProperties": false,
|
|
478
|
+
"properties": {
|
|
479
|
+
"name": {
|
|
480
|
+
"type": ["string", "null"]
|
|
481
|
+
},
|
|
482
|
+
"email": {
|
|
483
|
+
"type": ["string", "null"]
|
|
484
|
+
},
|
|
485
|
+
"url": {
|
|
486
|
+
"type": ["string", "null"]
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"description": {
|
|
491
|
+
"type": ["string", "null"]
|
|
492
|
+
},
|
|
493
|
+
"contributors": {
|
|
494
|
+
"type": "array",
|
|
495
|
+
"items": {
|
|
496
|
+
"type": "object",
|
|
497
|
+
"additionalProperties": false,
|
|
498
|
+
"properties": {
|
|
499
|
+
"name": {
|
|
500
|
+
"type": ["string", "null"]
|
|
501
|
+
},
|
|
502
|
+
"email": {
|
|
503
|
+
"type": ["string", "null"]
|
|
504
|
+
},
|
|
505
|
+
"url": {
|
|
506
|
+
"type": ["string", "null"]
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
"bugs": {
|
|
512
|
+
"type": "object",
|
|
513
|
+
"additionalProperties": false,
|
|
514
|
+
"properties": {
|
|
515
|
+
"url": {
|
|
516
|
+
"type": ["string", "null"]
|
|
517
|
+
},
|
|
518
|
+
"email": {
|
|
519
|
+
"type": ["string", "null"]
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"keywords": {
|
|
524
|
+
"type": "array",
|
|
525
|
+
"items": {
|
|
526
|
+
"type": "string"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"homepage": {
|
|
530
|
+
"type": ["string", "null"]
|
|
531
|
+
},
|
|
532
|
+
"repository": {
|
|
533
|
+
"type": "object",
|
|
534
|
+
"additionalProperties": false,
|
|
535
|
+
"properties": {
|
|
536
|
+
"type": {
|
|
537
|
+
"type": ["string", "null"]
|
|
538
|
+
},
|
|
539
|
+
"url": {
|
|
540
|
+
"type": ["string", "null"]
|
|
541
|
+
},
|
|
542
|
+
"directory": {
|
|
543
|
+
"type": ["string", "null"]
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
@@ -5,6 +5,9 @@ var ResultType;
|
|
|
5
5
|
ResultType[ResultType["Failure"] = 1] = "Failure";
|
|
6
6
|
})(ResultType || (ResultType = {}));
|
|
7
7
|
export class ActionResult {
|
|
8
|
+
message;
|
|
9
|
+
resultType;
|
|
10
|
+
value;
|
|
8
11
|
constructor(resultType, message, value) {
|
|
9
12
|
this.resultType = resultType;
|
|
10
13
|
this.message = message;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-result.js","sourceRoot":"","sources":["../../src/actions/action-result.ts"],"names":[],"mappings":"AAAA,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,iDAAW,CAAA;IACX,iDAAY,CAAA;IACZ,iDAAW,CAAA;AACb,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AAED,MAAM,OAAO,YAAY;
|
|
1
|
+
{"version":3,"file":"action-result.js","sourceRoot":"","sources":["../../src/actions/action-result.ts"],"names":[],"mappings":"AAAA,IAAK,UAIJ;AAJD,WAAK,UAAU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H,CAAC;CACF"}
|
|
@@ -6,43 +6,46 @@ import { ApiValidatePrompts } from "../../prompts/api/validate.js";
|
|
|
6
6
|
import { TransformContext } from "../../types/transform-context.js";
|
|
7
7
|
import { ResourceContext } from "../../types/resource-context.js";
|
|
8
8
|
export class TransformAction {
|
|
9
|
+
prompts = new ApiTransformPrompts();
|
|
10
|
+
validatePrompts = new ApiValidatePrompts();
|
|
11
|
+
transformationService = new TransformationService();
|
|
12
|
+
configDir;
|
|
13
|
+
commandMetadata;
|
|
14
|
+
authKey;
|
|
9
15
|
constructor(configDir, commandMetadata, authKey = null) {
|
|
10
|
-
this.prompts = new ApiTransformPrompts();
|
|
11
|
-
this.validatePrompts = new ApiValidatePrompts();
|
|
12
|
-
this.transformationService = new TransformationService();
|
|
13
|
-
this.execute = async (resourcePath, format, destination, force) => {
|
|
14
|
-
return await withDirPath(async (tempDirectory) => {
|
|
15
|
-
const resourceContext = new ResourceContext(tempDirectory);
|
|
16
|
-
const specFileDirResult = await resourceContext.resolveTo(resourcePath);
|
|
17
|
-
if (specFileDirResult.isErr()) {
|
|
18
|
-
this.prompts.networkError(specFileDirResult.error);
|
|
19
|
-
return ActionResult.failed();
|
|
20
|
-
}
|
|
21
|
-
const transformContext = new TransformContext(specFileDirResult.value, format, destination);
|
|
22
|
-
if (!force && (await transformContext.exists()) && !(await this.prompts.overwriteApi(destination))) {
|
|
23
|
-
this.prompts.transformedApiAlreadyExists();
|
|
24
|
-
return ActionResult.cancelled();
|
|
25
|
-
}
|
|
26
|
-
const result = await this.prompts.transformApi(this.transformationService.transformViaFile({
|
|
27
|
-
file: specFileDirResult.value,
|
|
28
|
-
format: format,
|
|
29
|
-
configDir: this.configDir,
|
|
30
|
-
commandMetadata: this.commandMetadata,
|
|
31
|
-
authKey: this.authKey
|
|
32
|
-
}));
|
|
33
|
-
if (result.isErr()) {
|
|
34
|
-
this.prompts.logTransformationError(result.error);
|
|
35
|
-
return ActionResult.failed();
|
|
36
|
-
}
|
|
37
|
-
const transformedFilePath = await transformContext.save(result.value.stream);
|
|
38
|
-
this.validatePrompts.displayValidationMessages(result.value.apiValidationSummary);
|
|
39
|
-
this.validatePrompts.transformedApiSaved(transformedFilePath);
|
|
40
|
-
return ActionResult.success();
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
16
|
this.configDir = configDir;
|
|
44
17
|
this.commandMetadata = commandMetadata;
|
|
45
18
|
this.authKey = authKey;
|
|
46
19
|
}
|
|
20
|
+
execute = async (resourcePath, format, destination, force) => {
|
|
21
|
+
return await withDirPath(async (tempDirectory) => {
|
|
22
|
+
const resourceContext = new ResourceContext(tempDirectory);
|
|
23
|
+
const specFileDirResult = await resourceContext.resolveTo(resourcePath);
|
|
24
|
+
if (specFileDirResult.isErr()) {
|
|
25
|
+
this.prompts.networkError(specFileDirResult.error);
|
|
26
|
+
return ActionResult.failed();
|
|
27
|
+
}
|
|
28
|
+
const transformContext = new TransformContext(specFileDirResult.value, format, destination);
|
|
29
|
+
if (!force && (await transformContext.exists()) && !(await this.prompts.overwriteApi(destination))) {
|
|
30
|
+
this.prompts.transformedApiAlreadyExists();
|
|
31
|
+
return ActionResult.cancelled();
|
|
32
|
+
}
|
|
33
|
+
const result = await this.prompts.transformApi(this.transformationService.transformViaFile({
|
|
34
|
+
file: specFileDirResult.value,
|
|
35
|
+
format: format,
|
|
36
|
+
configDir: this.configDir,
|
|
37
|
+
commandMetadata: this.commandMetadata,
|
|
38
|
+
authKey: this.authKey
|
|
39
|
+
}));
|
|
40
|
+
if (result.isErr()) {
|
|
41
|
+
this.prompts.logTransformationError(result.error);
|
|
42
|
+
return ActionResult.failed();
|
|
43
|
+
}
|
|
44
|
+
const transformedFilePath = await transformContext.save(result.value.stream);
|
|
45
|
+
this.validatePrompts.displayValidationMessages(result.value.apiValidationSummary);
|
|
46
|
+
this.validatePrompts.transformedApiSaved(transformedFilePath);
|
|
47
|
+
return ActionResult.success();
|
|
48
|
+
});
|
|
49
|
+
};
|
|
47
50
|
}
|
|
48
51
|
//# sourceMappingURL=transform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../../src/actions/api/transform.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,MAAM,OAAO,eAAe;
|
|
1
|
+
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../../src/actions/api/transform.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,MAAM,OAAO,eAAe;IACT,OAAO,GAAwB,IAAI,mBAAmB,EAAE,CAAC;IACzD,eAAe,GAAuB,IAAI,kBAAkB,EAAE,CAAC;IAC/D,qBAAqB,GAA0B,IAAI,qBAAqB,EAAE,CAAC;IAC3E,SAAS,CAAgB;IACzB,eAAe,CAAkB;IACjC,OAAO,CAAgB;IAExC,YAAY,SAAwB,EAAE,eAAgC,EAAE,OAAO,G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