@nimbella/postman-api
Version:
Postman Collection to Nimbella Project: Take your APIs seamlessly into Serverless world with this API
47 lines (46 loc) • 1.5 kB
TypeScript
import { HeaderList } from 'postman-collection';
export declare function sanitizeName(name: string, joiner: string): string;
export declare function sanitizeFileName(name: string): string;
export declare function sanitizeVarName(name: string): string;
export interface SupportingItem {
location: string;
content: string;
}
export declare type MethodStubParams = {
path: string;
headers: any;
status: string;
code: number;
cookies: any;
body: string;
description: string;
namespace: string;
};
export declare type TestStubParams = {
testName: string;
packageName: string;
methodName: string;
args: string;
expected: string;
got: string;
body: string;
testScripts: Array<string>;
isPostRequest: boolean;
headers: HeaderList;
responseTime: number;
propTypes: Array<object>;
propChildKeys: Array<object>;
envVars: Array<string>;
mandatoryProps: Array<string>;
namespace: string;
};
export declare function isJson(item: any): boolean;
export declare function isGuid(uid: string): boolean;
export declare function escapeSpecialChars(data: string): string;
export declare function stringChecksum(str: string, algorithm?: string, encoding?: any): {
length: number;
hash: string;
};
export declare function fileChecksum(location: string): any;
export declare function canBeUpdated(fileLocation: string, generatedText: string): boolean;
export declare function isPublicApi(url: string): boolean;