@hitc/netsuite-types 2025.2.11 → 2026.1.1
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/documentCapture.d.ts +4 -4
- package/N/http.d.ts +2 -0
- package/N/https.d.ts +4 -7
- package/N/task.d.ts +41 -7
- package/package.json +1 -1
package/N/documentCapture.d.ts
CHANGED
|
@@ -154,7 +154,7 @@ export const getRemainingFreeUsage: GetRemainingFreeUsageFunction;
|
|
|
154
154
|
export function parseResult(options: { file: file.File }): Document;
|
|
155
155
|
|
|
156
156
|
// @ts-ignore Ignore the fact that this interface name conflicts with others (not NetSuite related)
|
|
157
|
-
enum DocumentType {
|
|
157
|
+
export enum DocumentType {
|
|
158
158
|
BANK_STATEMENT,
|
|
159
159
|
CHECK,
|
|
160
160
|
DRIVER_LICENSE,
|
|
@@ -168,14 +168,14 @@ enum DocumentType {
|
|
|
168
168
|
TAX_FORM
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
enum Feature {
|
|
171
|
+
export enum Feature {
|
|
172
172
|
DOCUMENT_CLASSIFICATION,
|
|
173
173
|
FIELD_EXTRACTION,
|
|
174
174
|
TABLE_EXTRACTION,
|
|
175
175
|
TEXT_EXTRACTION
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
enum FieldType {
|
|
178
|
+
export enum FieldType {
|
|
179
179
|
KEY_VALUE,
|
|
180
180
|
LINE_ITEM,
|
|
181
181
|
LINE_ITEM_FIELD,
|
|
@@ -183,7 +183,7 @@ enum FieldType {
|
|
|
183
183
|
UNKNOWN
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
enum Language {
|
|
186
|
+
export enum Language {
|
|
187
187
|
ARA,
|
|
188
188
|
CES,
|
|
189
189
|
CHI_SIM,
|
package/N/http.d.ts
CHANGED
package/N/https.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type {Encoding} from './encode';
|
|
2
|
-
import type {ClientResponse} from './http'
|
|
2
|
+
import type {ClientResponse, Method} from './http'
|
|
3
3
|
import type {HashAlg, SecretKey} from './crypto';
|
|
4
4
|
|
|
5
5
|
interface CreateSecretKeyOptions {
|
|
@@ -76,7 +76,7 @@ interface HttpsCreateSecureStringFunction {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export interface RequestRestletOptions {
|
|
79
|
-
/** The
|
|
79
|
+
/** The body content to send in the HTTPS request. Only the PUT, POST, and PATCH https.Method values support this parameter; all other methods ignore it. */
|
|
80
80
|
body?: string | Object,
|
|
81
81
|
/** The script ID of the script deployment record. */
|
|
82
82
|
deploymentId: string,
|
|
@@ -84,11 +84,8 @@ export interface RequestRestletOptions {
|
|
|
84
84
|
scriptId: string,
|
|
85
85
|
/** The HTTPS headers. */
|
|
86
86
|
headers?: Object,
|
|
87
|
-
/**
|
|
88
|
-
|
|
89
|
-
* The default value is GET if options.body is not specified, and POST if options.body is specified.
|
|
90
|
-
*/
|
|
91
|
-
method?: string,
|
|
87
|
+
/** The HTTPS method (DELETE, GET, HEAD, POST, PUT). */
|
|
88
|
+
method: Method | `${Method}`;
|
|
92
89
|
/** The parameters to be appended to the target URL as a query string. */
|
|
93
90
|
urlParams?: Object
|
|
94
91
|
}
|
package/N/task.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type {File} from './file';
|
|
2
2
|
import type {Query} from './query';
|
|
3
|
+
import type {IOCIConfig} from './llm'
|
|
4
|
+
import type {DocumentType, Feature, Language} from './documentCapture';
|
|
3
5
|
|
|
4
6
|
interface CheckStatusOptions {
|
|
5
7
|
taskId: string;
|
|
@@ -14,7 +16,8 @@ type TaskCreateOptions =
|
|
|
14
16
|
| QueryTaskCreateOptions
|
|
15
17
|
| RecordActionTaskCreateOptions
|
|
16
18
|
| SuiteQLTaskCreateOptions
|
|
17
|
-
| SearchTaskCreateOptions
|
|
19
|
+
| SearchTaskCreateOptions
|
|
20
|
+
| DocumentCaptureTaskCreateOptions;
|
|
18
21
|
|
|
19
22
|
interface RecordActionTaskCreateOptions {
|
|
20
23
|
taskType: TaskType.RECORD_ACTION
|
|
@@ -233,10 +236,11 @@ interface MapReduceScriptTaskStatus {
|
|
|
233
236
|
getTotalReduceCount(): number;
|
|
234
237
|
getTotalOutputCount(): number;
|
|
235
238
|
toString(): string;
|
|
236
|
-
scriptId:
|
|
237
|
-
deploymentId: string | null;
|
|
238
|
-
stage: MapReduceStage | `${MapReduceStage}` | null;
|
|
239
|
-
status: TaskStatus | `${TaskStatus}` | null;
|
|
239
|
+
readonly scriptId: number | null;
|
|
240
|
+
readonly deploymentId: string | null;
|
|
241
|
+
readonly stage: MapReduceStage | `${MapReduceStage}` | null;
|
|
242
|
+
readonly status: TaskStatus | `${TaskStatus}` | null;
|
|
243
|
+
readonly taskId: string;
|
|
240
244
|
}
|
|
241
245
|
|
|
242
246
|
interface ScheduledScriptTaskCreateOptions {
|
|
@@ -283,6 +287,34 @@ interface WorkflowTriggerTaskStatus {
|
|
|
283
287
|
status: TaskStatus | `${TaskStatus}`;
|
|
284
288
|
}
|
|
285
289
|
|
|
290
|
+
interface DocumentCaptureTaskCreateOptions {
|
|
291
|
+
taskType: TaskType.DOCUMENT_CAPTURE;
|
|
292
|
+
inputFile?: File;
|
|
293
|
+
documentType?: DocumentType;
|
|
294
|
+
outputFilePath?: string;
|
|
295
|
+
features?: Feature[];
|
|
296
|
+
language?: Language;
|
|
297
|
+
ociConfig?: IOCIConfig;
|
|
298
|
+
addInboundDependency?: AddInboundDependencyOptions;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
interface DocumentCaptureTask {
|
|
302
|
+
submit(): string;
|
|
303
|
+
addInboundDependency(dependency: ScheduledScriptTask): void;
|
|
304
|
+
toString(): string;
|
|
305
|
+
inputFile: File;
|
|
306
|
+
documentType: DocumentType;
|
|
307
|
+
outputFilePath: string;
|
|
308
|
+
features: Feature[];
|
|
309
|
+
language: Language;
|
|
310
|
+
ociConfig: IOCIConfig;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
interface DocumentCaptureTaskStatus {
|
|
314
|
+
toString(): string;
|
|
315
|
+
status: TaskStatus | `${TaskStatus}`;
|
|
316
|
+
}
|
|
317
|
+
|
|
286
318
|
export function create(options: CsvImportTaskCreateOptions): CsvImportTask;
|
|
287
319
|
export function create(options: EntityDeduplicationTaskCreateOptions): EntityDeduplicationTask;
|
|
288
320
|
export function create(options: MapReduceScriptTaskCreateOptions): MapReduceScriptTask;
|
|
@@ -292,7 +324,8 @@ export function create(options: SearchTaskCreateOptions): SearchTask;
|
|
|
292
324
|
export function create(options: QueryTaskCreateOptions): QueryTask;
|
|
293
325
|
export function create(options: RecordActionTaskCreateOptions): RecordActionTask;
|
|
294
326
|
export function create(options: SuiteQLTaskCreateOptions): SuiteQLTask;
|
|
295
|
-
export function
|
|
327
|
+
export function create(options: DocumentCaptureTaskCreateOptions): DocumentCaptureTask;
|
|
328
|
+
export function checkStatus(options: CheckStatusOptions): ScheduledScriptTaskStatus | MapReduceScriptTaskStatus | CsvImportTaskStatus | EntityDeduplicationTaskStatus | WorkflowTriggerTaskStatus | SuiteQLTaskStatus | QueryTaskStatus | RecordActionTaskStatus | DocumentCaptureTaskStatus;
|
|
296
329
|
|
|
297
330
|
/** Holds the string values for the possible record action conditions. */
|
|
298
331
|
declare enum ActionCondition {
|
|
@@ -341,5 +374,6 @@ export enum TaskType {
|
|
|
341
374
|
SEARCH = "SEARCH",
|
|
342
375
|
RECORD_ACTION = "RECORD_ACTION",
|
|
343
376
|
SUITE_QL = "SUITE_QL",
|
|
344
|
-
QUERY = "QUERY"
|
|
377
|
+
QUERY = "QUERY",
|
|
378
|
+
DOCUMENT_CAPTURE = "DOCUMENT_CAPTURE"
|
|
345
379
|
}
|
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": "
|
|
11
|
+
"version": "2026.1.1",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|