@povio/openapi-codegen-cli
Version:
**NOTE:** This CLI tool is primarily designed for use within our organization. The generated code output aligns with our internal template. If you are using this tool without our internal template, make sure to use it in **standalone** mode.
13 lines (12 loc) • 1.19 kB
TypeScript
import { Endpoint, ExtendedEndpoint } from "src/generators/types/endpoint";
import { GenerateOptions } from "src/generators/types/options";
export declare const isGetEndpoint: (endpoint: Endpoint) => boolean;
export declare const isPaginatedGetEndpoint: (endpoint: Endpoint, options: GenerateOptions) => boolean;
export declare const isReadAllEndpoint: (endpoint: ExtendedEndpoint, options: GenerateOptions) => boolean;
export declare const isReadEndpoint: (endpoint: ExtendedEndpoint, readAllEndpoint: ExtendedEndpoint) => boolean | undefined;
export declare const isCreateEndpoint: (endpoint: ExtendedEndpoint, readAllEndpoint: ExtendedEndpoint) => boolean;
export declare const isUpdateEndpoint: (endpoint: ExtendedEndpoint, readAllEndpoint: ExtendedEndpoint) => boolean | undefined;
export declare const isDeleteEndpoint: (endpoint: ExtendedEndpoint, readAllEndpoint: ExtendedEndpoint) => boolean | undefined;
export declare const isBulkDeleteEndpoint: (endpoint: ExtendedEndpoint, readAllEndpoint: ExtendedEndpoint) => boolean;
export declare const getPathSegments: (path: string) => string[];
export declare const isPathSegmentParam: (pathSegment?: string) => boolean | undefined;