0.6.0 • Published 12 months ago
@hashicorp/integrations-hcl v0.6.0
@hashicorp/integrations-hcl
This contains reused HCL validation logic for integrations
and integration-release-action
Generating the API Client
An IntegrationsAPI
TypeScript Client can be generated from our
OpenAPI spec.
- This uses the https://github.com/ferdikoomen/openapi-typescript-codegen project
Example:
# From the web-platform-packages monorepo root
npx -p openapi-typescript-codegen openapi \
--input ../integrations-api/src/spec/api-docs.json \
--output ./packages/integrations-hcl/lib/generated \
--client node \
--name IntegrationsAPI \
--request ./packages/integrations-hcl/lib/generated/request.ts.template
# Ensure generated files match out prettier config
npx prettier --write ./packages/integrations-hcl/lib/generated
Usage:
import { IntegrationsAPI } from './lib/generated'
const client = new IntegrationsAPI({
BASE: process.env.INPUT_INTEGRATIONS_API_BASE_URL,
})
// response is fully typed
// {
// meta: Meta200;
// result: EnrichedIntegration;
// }
const response = await client.integrations.getProductsIntegrations1(
productSlug,
integrationSlug
)
0.5.0-canary-202348164142
1 year ago
0.5.0-canary-202344175142
1 year ago
0.5.0
1 year ago
0.4.0
1 year ago
0.6.0
12 months ago
0.4.0-canary-2023327173753
1 year ago
0.3.1-canary-202332023921
1 year ago
0.3.1-canary-2023326151829
1 year ago
0.4.0-canary-2023327153940
1 year ago
0.3.1
1 year ago
0.3.0-canary-202327195930
1 year ago
0.2.0-canary-20231114534
1 year ago
0.2.0-canary-202311204427
1 year ago
0.2.0-canary-202311202844
1 year ago
0.2.0-canary-2023112810
1 year ago
0.3.0
1 year ago
0.2.0
1 year ago
0.3.0-canary-202327191659
1 year ago
0.2.0-canary-202302617344
1 year ago
0.1.1-canary-20221114211024
1 year ago
0.1.0
1 year ago
0.1.0-canary-202211818472
1 year ago
0.1.0-canary-2022117193239
1 year ago
0.1.0-canary-202211719335
1 year ago
0.1.0-canary-2022117185359
1 year ago
0.1.0-canary-2022117174554
1 year ago
0.1.0-canary-202211618117
1 year ago
0.1.0-canary-202211315481
1 year ago
0.1.0-canary-20221133125
1 year ago
0.1.0-canary-202211325222
1 year ago
0.1.0-canary-2022111222213
1 year ago
0.1.0-canary-2022111222042
1 year ago