@ordercloud/oc-codegen
Version:
OpenAPI codegen tool built for the OrderCloud API
34 lines (33 loc) • 819 B
TypeScript
import { Param } from './param.model';
export interface Operation {
id: string;
name: string;
description: string;
summary: string;
path: string;
verb: string;
fileImports: string[];
resourceName: string;
resourceID: string;
allParams: Param[];
queryParams: Param[];
pathParams: Param[];
bodyParam?: Param;
returnType?: string;
hasDescription: boolean;
hasSummary: boolean;
hasParams: boolean;
hasQueryParams: boolean;
hasPathParams: boolean;
hasBodyParam: boolean;
hasReturnType: boolean;
hasFilters: boolean;
isList: boolean;
isAssignmentsList: boolean;
isFacetList: boolean;
isPatch: boolean;
isGet: boolean;
isPost: boolean;
isPut: boolean;
isDelete: boolean;
}