@hitc/netsuite-types 2025.2.10 → 2026.1.0
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 +40 -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,10 @@ interface MapReduceScriptTaskStatus {
|
|
|
233
236
|
getTotalReduceCount(): number;
|
|
234
237
|
getTotalOutputCount(): number;
|
|
235
238
|
toString(): string;
|
|
236
|
-
scriptId: string;
|
|
237
|
-
deploymentId: string;
|
|
238
|
-
stage: MapReduceStage | `${MapReduceStage}
|
|
239
|
-
status: TaskStatus | `${TaskStatus}
|
|
239
|
+
scriptId: string | null;
|
|
240
|
+
deploymentId: string | null;
|
|
241
|
+
stage: MapReduceStage | `${MapReduceStage}` | null;
|
|
242
|
+
status: TaskStatus | `${TaskStatus}` | null;
|
|
240
243
|
}
|
|
241
244
|
|
|
242
245
|
interface ScheduledScriptTaskCreateOptions {
|
|
@@ -283,6 +286,34 @@ interface WorkflowTriggerTaskStatus {
|
|
|
283
286
|
status: TaskStatus | `${TaskStatus}`;
|
|
284
287
|
}
|
|
285
288
|
|
|
289
|
+
interface DocumentCaptureTaskCreateOptions {
|
|
290
|
+
taskType: TaskType.DOCUMENT_CAPTURE;
|
|
291
|
+
inputFile?: File;
|
|
292
|
+
documentType?: DocumentType;
|
|
293
|
+
outputFilePath?: string;
|
|
294
|
+
features?: Feature[];
|
|
295
|
+
language?: Language;
|
|
296
|
+
ociConfig?: IOCIConfig;
|
|
297
|
+
addInboundDependency?: AddInboundDependencyOptions;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
interface DocumentCaptureTask {
|
|
301
|
+
submit(): string;
|
|
302
|
+
addInboundDependency(dependency: ScheduledScriptTask): void;
|
|
303
|
+
toString(): string;
|
|
304
|
+
inputFile: File;
|
|
305
|
+
documentType: DocumentType;
|
|
306
|
+
outputFilePath: string;
|
|
307
|
+
features: Feature[];
|
|
308
|
+
language: Language;
|
|
309
|
+
ociConfig: IOCIConfig;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
interface DocumentCaptureTaskStatus {
|
|
313
|
+
toString(): string;
|
|
314
|
+
status: TaskStatus | `${TaskStatus}`;
|
|
315
|
+
}
|
|
316
|
+
|
|
286
317
|
export function create(options: CsvImportTaskCreateOptions): CsvImportTask;
|
|
287
318
|
export function create(options: EntityDeduplicationTaskCreateOptions): EntityDeduplicationTask;
|
|
288
319
|
export function create(options: MapReduceScriptTaskCreateOptions): MapReduceScriptTask;
|
|
@@ -292,7 +323,8 @@ export function create(options: SearchTaskCreateOptions): SearchTask;
|
|
|
292
323
|
export function create(options: QueryTaskCreateOptions): QueryTask;
|
|
293
324
|
export function create(options: RecordActionTaskCreateOptions): RecordActionTask;
|
|
294
325
|
export function create(options: SuiteQLTaskCreateOptions): SuiteQLTask;
|
|
295
|
-
export function
|
|
326
|
+
export function create(options: DocumentCaptureTaskCreateOptions): DocumentCaptureTask;
|
|
327
|
+
export function checkStatus(options: CheckStatusOptions): ScheduledScriptTaskStatus | MapReduceScriptTaskStatus | CsvImportTaskStatus | EntityDeduplicationTaskStatus | WorkflowTriggerTaskStatus | SuiteQLTaskStatus | QueryTaskStatus | RecordActionTaskStatus | DocumentCaptureTaskStatus;
|
|
296
328
|
|
|
297
329
|
/** Holds the string values for the possible record action conditions. */
|
|
298
330
|
declare enum ActionCondition {
|
|
@@ -341,5 +373,6 @@ export enum TaskType {
|
|
|
341
373
|
SEARCH = "SEARCH",
|
|
342
374
|
RECORD_ACTION = "RECORD_ACTION",
|
|
343
375
|
SUITE_QL = "SUITE_QL",
|
|
344
|
-
QUERY = "QUERY"
|
|
376
|
+
QUERY = "QUERY",
|
|
377
|
+
DOCUMENT_CAPTURE = "DOCUMENT_CAPTURE"
|
|
345
378
|
}
|
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.0",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|