mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #7329 from darrenhillconsulting/master
Added Definitions for jSuite and SuiteScript
This commit is contained in:
Vendored
+42
@@ -0,0 +1,42 @@
|
||||
// Type definitions for jSuite
|
||||
// Project: https://github.com/darrenthill/jsuite
|
||||
// Definitions by: Darren Hill <https://github.com/darrenhillconsulting>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../suitescript/suitescript"/>
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
interface Iconfig {
|
||||
logging?: boolean;
|
||||
smartConvert?: boolean;
|
||||
searchId?: string;
|
||||
recordType?: string;
|
||||
filterExpression?: any;
|
||||
columns?: string;
|
||||
start?: number;
|
||||
end?: number;
|
||||
maxUnitsUsage?: number;
|
||||
}
|
||||
declare module jSuite {
|
||||
function getVersion(): string;
|
||||
function setLogging(toggle: boolean): void;
|
||||
function getRoleCenter(): any;
|
||||
function getUser(): any;
|
||||
function getScriptParameter(paramName: string): any;
|
||||
function getDeploymentId(): any;
|
||||
function getScriptId(): any;
|
||||
function isProduction(): any;
|
||||
function clearSublist(transaction: nlobjRecord, listType: string): void;
|
||||
function getCompanyPreference(paramName: string): any;
|
||||
function roundNum(num: number, length: number): number;
|
||||
function isNumber(n: any): boolean;
|
||||
function runSearch(config?: Iconfig): any;
|
||||
function lookupField(dataIn: any): string;
|
||||
function submitField(dataIn: any): any;
|
||||
function asyncLookupField(config: any, callback: any): void;
|
||||
function asyncSubmitField(config: any): JQueryXHR;
|
||||
function audit(title: string, message: string): void;
|
||||
function debug(title: string, message: string): void;
|
||||
function error(title: string, message: string): void;
|
||||
function emergency(title: string, message: string): void;
|
||||
}
|
||||
Vendored
+6625
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user