@hitc/netsuite-types 2022.2.6 → 2022.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/N/task.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import {File} from './file';
2
+ import {Query} from './query';
2
3
 
3
4
  interface CheckStatusOptions {
4
5
  taskId: string;
@@ -20,6 +21,22 @@ interface SearchTaskCreateOptions {
20
21
  filePath?: string;
21
22
  }
22
23
 
24
+ interface QueryTaskCreateOptions {
25
+ taskType: TaskType.QUERY
26
+ query: Query;
27
+ fileId?: number;
28
+ filePath?: string;
29
+ }
30
+
31
+ interface QueryTask {
32
+ submit(): string;
33
+ addInboundDependency(dependency: ScheduledScriptTask | MapReduceScriptTask): void;
34
+ toString(): string;
35
+ query: Query;
36
+ fileId: number;
37
+ filePath: string;
38
+ }
39
+
23
40
  interface SearchTask {
24
41
  submit(): string;
25
42
  addInboundDependency(dependency: ScheduledScriptTask | MapReduceScriptTask): void;
@@ -169,6 +186,7 @@ export function create(options: MapReduceScriptTaskCreateOptions): MapReduceScri
169
186
  export function create(options: ScheduledScriptTaskCreateOptions): ScheduledScriptTask;
170
187
  export function create(options: WorkflowTriggerTaskCreateOptions): WorkflowTriggerTask;
171
188
  export function create(options: SearchTaskCreateOptions): SearchTask;
189
+ export function create(options: QueryTaskCreateOptions): QueryTask;
172
190
  export function checkStatus(options: CheckStatusOptions): ScheduledScriptTaskStatus | MapReduceScriptTaskStatus | CsvImportTaskStatus | EntityDeduplicationTaskStatus | WorkflowTriggerTaskStatus;
173
191
  export enum DedupeEntityType {
174
192
  CUSTOMER,
@@ -209,5 +227,6 @@ export enum TaskType {
209
227
  CSV_IMPORT = "CSV_IMPORT",
210
228
  ENTITY_DEDUPLICATION = "ENTITY_DEDUPLICATION",
211
229
  WORKFLOW_TRIGGER = "WORKFLOW_TRIGGER",
212
- SEARCH = "SEARCH"
230
+ SEARCH = "SEARCH",
231
+ QUERY = "QUERY"
213
232
  }
package/N/types.d.ts CHANGED
@@ -369,10 +369,10 @@ export namespace EntryPoints {
369
369
  }
370
370
 
371
371
  namespace RESTlet {
372
- type get = (requestParameters: any) => any;
373
- type delete_ = (requestParameters: any) => any;
374
- type post = (requestBody: any) => any;
375
- type put = (requestBody: any) => any;
372
+ type get = (requestParameters: {[key: string]: any}) => {[key: string]: any} | string;
373
+ type delete_ = (requestParameters: {[key: string]: any}) => {[key: string]: any} | string;
374
+ type post = (requestBody: {[key: string]: any} | string) => {[key: string]: any} | string;
375
+ type put = (requestBody: {[key: string]: any} | string) => {[key: string]: any} | string;
376
376
  }
377
377
 
378
378
  namespace BundleInstallation {
@@ -493,6 +493,25 @@ export namespace EntryPoints {
493
493
  type createWorkbook = (scriptContext: createWorkbookContext) => void;
494
494
  }
495
495
  }
496
+
497
+ namespace CustomRecordAction {
498
+ interface isQualifiedContext {
499
+ ids: string[];
500
+ recordType: string;
501
+ qualified: Map<string, string>;
502
+ }
503
+
504
+ type isQualified = (scriptContext: isQualifiedContext) => void;
505
+
506
+ interface executeActionContext {
507
+ ids: string[];
508
+ recordType: string;
509
+ params: object;
510
+ response: object;
511
+ }
512
+
513
+ type executeAction = (scriptContext: executeActionContext) => void;
514
+ }
496
515
  }
497
516
 
498
517
  interface IKeyValuePair {
package/package.json CHANGED
@@ -8,8 +8,7 @@
8
8
  "posttest": "npm run cleanup"
9
9
  },
10
10
  "homepage": "https://github.com/headintheclouddev/typings-suitescript-2.0",
11
- "version": "2022.2.6",
12
- "main": "index.d.ts",
11
+ "version": "2022.2.8",
13
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
14
13
  "license": "MIT",
15
14
  "repository": {
package/tsconfig.json CHANGED
@@ -5,13 +5,12 @@
5
5
  "moduleResolution":"node",
6
6
  "sourceMap": false,
7
7
  "newLine": "LF",
8
+ "esModuleInterop": true,
9
+ "allowSyntheticDefaultImports": true,
8
10
  "experimentalDecorators": true,
9
11
  "noImplicitUseStrict": true,
10
12
  "baseUrl": ".",
11
- "lib": ["es5", "es2015.promise", "dom"],
12
- "paths": {
13
- "N/*": ["N/*"]
14
- }
13
+ "lib": ["ES6", "DOM.Iterable", "DOM"],
15
14
  },
16
15
  "exclude": ["node_modules"]
17
16
  }