@hitc/netsuite-types 2025.2.9 → 2025.2.11
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 +1 -1
- package/N/query.d.ts +15 -15
- package/N/task.d.ts +4 -4
- package/package.json +1 -1
package/N/documentCapture.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ 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
157
|
enum DocumentType {
|
|
158
|
-
|
|
158
|
+
BANK_STATEMENT,
|
|
159
159
|
CHECK,
|
|
160
160
|
DRIVER_LICENSE,
|
|
161
161
|
HEALTH_INSURANCE_ID,
|
package/N/query.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ interface JoinFromOptions {
|
|
|
43
43
|
source: string;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
interface CreateConditionOptions {
|
|
46
|
+
export interface CreateConditionOptions {
|
|
47
47
|
/** Field (column) id. Required if options.operator and options.values are used. */
|
|
48
48
|
fieldId?: string;
|
|
49
49
|
|
|
@@ -54,7 +54,7 @@ interface CreateConditionOptions {
|
|
|
54
54
|
* Array of values to use for the condition.
|
|
55
55
|
* Required if options.fieldId and options.operator are used, and options.operator does not have a value of query.Operator.EMPTY or query.Operator.EMPTY_NOT.
|
|
56
56
|
*/
|
|
57
|
-
values
|
|
57
|
+
values?: string | boolean |
|
|
58
58
|
string[] | readonly string[] |
|
|
59
59
|
boolean[] | readonly boolean[] | // You wouldn't have multiple boolean values in an array, obviously. But you might specify it like: [true].
|
|
60
60
|
number[] | readonly number[] |
|
|
@@ -243,7 +243,7 @@ export interface Query {
|
|
|
243
243
|
* Query condition.
|
|
244
244
|
* @throws {SuiteScriptError} WRONG_PARAMETER_TYPE when setting value of different type than Query.Condition
|
|
245
245
|
*/
|
|
246
|
-
condition: Condition;
|
|
246
|
+
condition: Condition | null;
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
249
|
* Columns to be returned from the query.
|
|
@@ -387,19 +387,19 @@ export interface Component {
|
|
|
387
387
|
* Inverse target. Returns the source query type from which is this component joined.
|
|
388
388
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
389
389
|
*/
|
|
390
|
-
readonly source: string;
|
|
390
|
+
readonly source: string | null;
|
|
391
391
|
|
|
392
392
|
/**
|
|
393
393
|
* Polymorphic target. Returns the target target of this component.
|
|
394
394
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
395
395
|
*/
|
|
396
|
-
readonly target: string;
|
|
396
|
+
readonly target: string | null;
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
399
|
* Returns the Component that corresponds to the ancestor of this component in the query object model.
|
|
400
400
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
401
401
|
*/
|
|
402
|
-
readonly parent: string;
|
|
402
|
+
readonly parent: string | null;
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* Children of this component. It is an object with key/value pairs where key is the name of the child component
|
|
@@ -489,19 +489,19 @@ export interface Column {
|
|
|
489
489
|
* Formula.
|
|
490
490
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
491
491
|
*/
|
|
492
|
-
readonly formula?: string;
|
|
492
|
+
readonly formula?: string | null;
|
|
493
493
|
|
|
494
494
|
/**
|
|
495
495
|
* Desired value type of the formula (if it was explicitly stated upon Column creation).
|
|
496
496
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
497
497
|
*/
|
|
498
|
-
readonly type?: string;
|
|
498
|
+
readonly type?: string | null;
|
|
499
499
|
|
|
500
500
|
/**
|
|
501
501
|
* Aggregate function (value from Aggregate enum).
|
|
502
502
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
503
503
|
*/
|
|
504
|
-
readonly aggregate?: string;
|
|
504
|
+
readonly aggregate?: string | null;
|
|
505
505
|
|
|
506
506
|
/**
|
|
507
507
|
* The group-by flag.
|
|
@@ -561,7 +561,7 @@ export interface Condition {
|
|
|
561
561
|
* logical operation.
|
|
562
562
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
563
563
|
*/
|
|
564
|
-
readonly children
|
|
564
|
+
readonly children?: Condition[];
|
|
565
565
|
|
|
566
566
|
/**
|
|
567
567
|
* Field id. This is only applicable to "leaf" conditions (equivalent to the former Filter).
|
|
@@ -579,34 +579,34 @@ export interface Condition {
|
|
|
579
579
|
* Values. This is only applicable to "leaf" conditions (equivalent to the former Filter).
|
|
580
580
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
581
581
|
*/
|
|
582
|
-
readonly values
|
|
582
|
+
readonly values?: string[];
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
* Formula. This is only applicable to "leaf" conditions (equivalent to the former Filter).
|
|
586
586
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
587
587
|
*/
|
|
588
|
-
readonly formula
|
|
588
|
+
readonly formula?: string;
|
|
589
589
|
|
|
590
590
|
/**
|
|
591
591
|
* Return type of the formula, if explicitly specified. This is only applicable to "leaf" conditions
|
|
592
592
|
* (equivalent to the former Filter). (values from the ReturnType enum)
|
|
593
593
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
594
594
|
*/
|
|
595
|
-
readonly type
|
|
595
|
+
readonly type?: string;
|
|
596
596
|
|
|
597
597
|
/**
|
|
598
598
|
* Aggregate function. This is only applicable to "leaf" conditions (equivalent to the former Filter).
|
|
599
599
|
* (values from the Aggregate enum)
|
|
600
600
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
601
601
|
*/
|
|
602
|
-
readonly aggregate
|
|
602
|
+
readonly aggregate?: string;
|
|
603
603
|
|
|
604
604
|
/**
|
|
605
605
|
* Query component to which this condition belongs. This is only applicable to "leaf" conditions (equivalent to the
|
|
606
606
|
* former Filter).
|
|
607
607
|
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
|
|
608
608
|
*/
|
|
609
|
-
readonly component
|
|
609
|
+
readonly component?: Component;
|
|
610
610
|
}
|
|
611
611
|
|
|
612
612
|
export type QueryResultValue = string | boolean | number | bigint | null;
|
package/N/task.d.ts
CHANGED
|
@@ -233,10 +233,10 @@ interface MapReduceScriptTaskStatus {
|
|
|
233
233
|
getTotalReduceCount(): number;
|
|
234
234
|
getTotalOutputCount(): number;
|
|
235
235
|
toString(): string;
|
|
236
|
-
scriptId: string;
|
|
237
|
-
deploymentId: string;
|
|
238
|
-
stage: MapReduceStage | `${MapReduceStage}
|
|
239
|
-
status: TaskStatus | `${TaskStatus}
|
|
236
|
+
scriptId: string | null;
|
|
237
|
+
deploymentId: string | null;
|
|
238
|
+
stage: MapReduceStage | `${MapReduceStage}` | null;
|
|
239
|
+
status: TaskStatus | `${TaskStatus}` | null;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
interface ScheduledScriptTaskCreateOptions {
|
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": "2025.2.
|
|
11
|
+
"version": "2025.2.11",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|