@hitc/netsuite-types 2022.2.7 → 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 +20 -1
- package/N/types.d.ts +4 -4
- package/package.json +1 -1
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:
|
|
373
|
-
type delete_ = (requestParameters:
|
|
374
|
-
type post = (requestBody:
|
|
375
|
-
type put = (requestBody:
|
|
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 {
|
package/package.json
CHANGED
|
@@ -8,7 +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.
|
|
11
|
+
"version": "2022.2.8",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|