@apideck/portman
Version:
Port OpenAPI Spec to Postman Collection, with contract & variation tests included
34 lines (33 loc) • 1.05 kB
TypeScript
import { Event, Item, ItemGroup } from 'postman-collection';
import { OasMappedOperation } from '../oas';
export type PostmanMappedOperationOptions = {
item: Item;
operationIdMap?: Record<string, OasMappedOperation>;
id?: string;
};
export declare class PostmanMappedOperation {
id?: string;
path: string;
method: string;
pathRef: string;
pathVar: string;
requestHeaders: Record<string, unknown>;
queryParams: Record<string, unknown>;
pathParams: Record<string, unknown>;
testJsonDataInjected: boolean;
mappedVars: string[];
item: Item;
postmanItemId?: string;
constructor(options: PostmanMappedOperationOptions);
getTests(): Event;
getParent(): ItemGroup<Item> | null;
getParentFolderId(): string | null;
getParentFolderName(): string | null;
clone({ newId, name }: {
newId: string;
name: string;
}): PostmanMappedOperation;
normalizedPathRef(method: string): string;
private normalizedPathVar;
registerVar(variable: string): boolean;
}