UNPKG

@bitecraft/yaak2postman

Version:

CLI tool to convert YAAK files to Postman

34 lines (33 loc) 989 B
export declare class PostmanConverter { private readonly yaakFilePath; private readonly exportType; static ExportType: { readonly ENV: "env"; readonly COLLECTION: "collection"; }; private yaakData; private outputDir; constructor(yaakFilePath: string, exportType?: 'env' | 'collection'); initialize(): boolean; convert(): Array<{ success: boolean; type: string; workspaceName: string; outputPath: string; environmentName?: string; }>; private processWorkspace; private exportWorkspaceCollection; private createFolderMapForWorkspace; private exportWorkspaceEnvironments; private createBaseCollection; private organizeFolderHierarchy; private convertRequest; private convertHeaders; private convertUrl; private convertUrlPath; private convertPathVariables; private convertQueryParameters; private convertBody; private convertEnvironment; }