@tensorsmart/flink-typescript

1.16.0 • Public • Published

flink-typescript

A typescript binding auto-generated from Apache Flink JobManager REST API.

npm version GitHub issues GitHub stars GitHub license

Build

npm run generate
npm run compile

Install

Using npm:

npm install @tensorsmart/flink-typescript

Using yarn:

yarn add @tensorsmart/flink-typescript

Using pnpm:

pnpm add @tensorsmart/flink-typescript

Example

Using a model:

import { JobStatus } from "@tensorsmart/flink-typescript";

console.log(JobStatus.RUNNING)

Calling a method:

import { JobDetails, MultipleJobsDetails, DefaultService, OpenAPI } from "@tensorsmart/flink-typescript";

OpenAPI.BASE = "http://localhost:8081/v1";
DefaultService.getJobsOverview().then((response: MultipleJobsDetails) => {
    return response.jobs!.map((job: JobDetails) => new Job(this, job.jobId!, job.jobName!, job.status!));
}).catch((error: any) => {
    console.error(error);
});

Refer to Flink JobManager REST API for all models and methods.

Refer to ferdikoomen/openapi-typescript-codegen for more OpenAPI settings.

Projects that use this package

Thanks to

Everyone should follow them and star their projects.

Readme

Keywords

Package Sidebar

Install

npm i @tensorsmart/flink-typescript

Weekly Downloads

0

Version

1.16.0

License

Apache-2.0

Unpacked Size

384 kB

Total Files

513

Last publish

Collaborators

  • tigerinus