1.7.1 • Published 9 months ago

@soluzioni-futura/sf-ts-sdk-gen v1.7.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

sf-ts-sdk-gen

sf-ts-sdk-gen is a Node module that generates a TypeScript SDK starting from an OpenAPI definition. It can be used as a CLI or as a Node module.

Usage

CLI

To use sf-ts-sdk-gen as a CLI, run the following command:

npx sf-ts-sdk-gen [input] [output] --sdk-version [version] --sdk-name [name]

Replace [input] with the path to the OpenAPI definition file or URL, and [output] with the path to the output directory for the generated SDK.

The [input] parameter can be either a local file path or a URL. If a URL is specified, sf-ts-sdk-gen will download the OpenAPI definition from the URL.

The --sdk-version flag is optional and can be used to specify the version of the SDK.
The --sdk-name flag is also optional and can be used to specify the name of the SDK.

Node Module

const { generateSdk } = require('sf-ts-sdk-gen')

Then, call the generateSdk function with the following options:

generateSdk({
  openapi: [openapi definition],
  outputFolder: [output directory],
  sdkName?: [sdk name],
  sdkVersion?: [sdk version]
})

Replace [openapi definition] with the OpenAPI definition, either as a JavaScript object or as the path to a JSON file. Replace [output directory] with the path to the output directory for the generated SDK.

The sdkName and sdkVersion options are both optional and can be used to specify the name and version of the SDK, respectively.

1.7.1

9 months ago

1.6.2

10 months ago

1.7.0

10 months ago

1.5.1-tsup.0

10 months ago

1.6.1

11 months ago

1.6.0

11 months ago

1.5.1

11 months ago

1.3.3

12 months ago

1.5.0

11 months ago

1.4.1

11 months ago

1.3.2

12 months ago

1.4.0

11 months ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

0.6.6

1 year ago

0.6.5

1 year ago

0.6.4

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.6

1 year ago

0.5.5

1 year ago

0.5.4

1 year ago

0.5.3

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago