Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- declare module 'service-metadata' {
- const aaaErrorLogs: any; // TODO: check type
- const b2bProxy: {
- b2bMessageId: string,
- b2bPartnerFrom: string,
- b2bPartnerTo: string,
- integrationId: string,
- isMdn: string,
- messageDecrypted: string,
- messageEncryptRequired: string,
- messageSignRequired: string,
- messageSignatureVerified: string,
- passthruEnabled: string,
- };
- const cache: { dynamicPolicies: any; }; // TODO: check type
- const clientServiceAddress: string;
- const conformance: { policyname: string };
- const connection: { note: string };
- const currentCallDepth: string;
- const defaultStylesheet: string;
- const domainName: string;
- const errorCode: string;
- const errorHeaders: string;
- const errorIgnore: string;
- const errorMessage: string;
- const errorSubcode: string;
- const formattedErrorMessage: string;
- const gatewayscript: {
- debugEnabled: string,
- enableEval: string,
- };
- const globalTransactionId: string;
- const headerManifest: any; // TODO: check type
- const http: { websocketUpgrade: string };
- const inputSize: string;
- const lb: {
- group: string,
- member: string,
- };
- const localServiceAddress: string;
- const maxActionDepth: string;
- const maxCallDepth: string;
- const memoryUsed: string;
- const mpgw: {
- backendConfig: any, // TODO: check type
- backendTimeout: string,
- requestSize: string,
- responseSize: string,
- skipBackside: string,
- transactionTimeoutMsCount: string,
- transactionTimeoutMsThreshold: string,
- };
- const multistep: {
- contexts: any, // TODO: check type
- inputContextName: string,
- loopCount: string,
- loopIterator: string,
- outputContextName: string,
- txWarn: string,
- };
- const originalContentType: string;
- const originalResponseContentType: string;
- const persistentConnectionCounter: string;
- const preserveMimeEncapsulation: string;
- const processorName: string;
- const processorType: string;
- const protocol: string;
- const protocolMethod: string;
- const qos: { priority: string };
- const rewriteErrors: string;
- const routingUrl: string;
- const routingUrlDelayContentTypeDetermination: string;
- const routingUrlSslprofile: string;
- const soapFaultResponse: string;
- const strictErrorMode: string;
- const system: { ident: any }; // TODO: check type
- const timeElapsed: string;
- const timeForwarded: string;
- const timeResponseComplete: string;
- const timeStarted: string;
- const transactionAuditTrail: any; // TODO: check type
- const transactionClient: string;
- const transactionId: string;
- const transactionPolicyName: string;
- const transactionRuleName: string;
- const transactionRuleType: string;
- const URI: string;
- const URLIn: string;
- const URLOut: string;
- const wsa: {
- genpattern: string,
- timeout: string,
- };
- const wsm: {
- httpParsedUrlReplacement: any, // TODO: check type
- userData: any, // TODO: check type
- };
- const wspolicy: {
- endpoint: { configname: string },
- message: { configname: string },
- operation: { configname: string },
- service: { configname: string },
- };
- const xmlmgrName: string;
- function getVar(name: string): string;
- function list(): { [key: string]: string };
- function setVar(name: string, value: any): void;
- };
- declare module 'headers-metadata' {
- interface IHeaders {
- headers: { [key: string]: string },
- get(): { [key: string]: string },
- get(name: string): string | undefined,
- get(opts: { type: 'mq' }, name: string): { [key: string]: string } | undefined,
- set(name: string, value: any): void,
- set(opts: { type: 'mq' }, name: string, value: any): void,
- remove(name: string): void,
- types(): ['mq'],
- }
- const current: IHeaders;
- const original: IHeaders;
- const response: IHeaders;
- };
- declare const session: Session;
- type CallbackType<T> = (error: Error | undefined | null, result: T | undefined) => void;
- interface NodeListDP {
- length: number,
- item(index: number): NodeDP | NamedNodeMapDP | null,
- }
- interface NodeDP {
- nodeName: string,
- localName: string,
- textContent: string,
- namespaceURI: string,
- prefix: string | null,
- ownerDocument: NodeDP,
- childNodes: NodeListDP,
- lastChild: NodeDP | null,
- parentNode: NodeDP | null,
- firstChild: NodeDP | null,
- nextSibling: NodeDP | null,
- previousSibling: NodeDP | null,
- attributes: NamedNodeMapDP | null,
- nodeType: string, // TODO: check constants https://www.ibm.com/support/knowledgecenter/SS9H2Y_7.5.0/com.ibm.dp.doc/dom-apis_js.html
- nodeValue: any, // same
- hasAttributes(): boolean,
- hasChildNodes(): boolean,
- lookupPrefix(ns: string): string,
- isSameNode(node: NodeDP): boolean,
- isEqualNode(node: NodeDP): boolean,
- isDefaultNameSpace(ns: string): boolean,
- lookupNamespaceURI(prefix: string): string,
- compareDocumentPosition(node: NodeDP): number,
- // TODO: continue
- }
- interface NamedNodeMapDP {
- length: number,
- item(index: number): NodeDP,
- getNamedItem(name: string): NodeDP,
- getNamedItemNS(ns: string, localName: string): NodeDP,
- }
- interface Context {
- write(any): void,
- readAsJSON(callback: CallbackType<any>): void,
- readAsXML(callback: CallbackType<NodeListDP>): void,
- readAsBuffer(callback: CallbackType<Buffer>): void,
- readAsBuffers(callback: CallbackType<Buffer[]>): void,
- }
- interface Session {
- INPUT: Context,
- input: Context,
- output: Context,
- accepting: boolean,
- parameters: { [key: string]: any },
- accept(): void,
- reject(): void,
- reject(reason: string): void,
- reject(opts: { override: boolean }): void,
- reject(opts: { override: boolean }, reason: string): void,
- createContext(name: string): Context,
- name(name: string): Context | undefined,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement