@tensorsmart/flink-typescript

A typescript binding auto-generated from Apache Flink OpenAPI


Keywords
flink
License
Apache-2.0
Install
npm install @tensorsmart/flink-typescript@1.17.0-alpha2

Documentation

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.