@hitc/netsuite-types 2024.1.1 → 2024.1.3

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/dataset.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * For more information on using workbooks, see N/workbook Module.
11
11
  */
12
12
 
13
- import {PagedData, ResultSet} from "./query";
13
+ import {PagedData, RelativeDate, ResultSet} from "./query";
14
14
  import {Expression} from "./workbook";
15
15
 
16
16
  /** Encapsulates the record fields in the dataset. Columns are equivalent to the fields you use when you build a dataset in SuiteAnalytics. */
@@ -98,7 +98,7 @@ interface CreateConditionOptions {
98
98
  /** Uses the query.Operator enumeration, otherwise can be 'AND' or 'OR' when you are combining condition children. */
99
99
  operator: string;
100
100
  /** The values attribute is required unless the operator is 'AND' or 'OR', as it is when you are combining condition children. */
101
- values?: string[]|number[]|boolean[]|Date[]|{ dateId: string, type: string }[]; // For example, for after Start of Last Fiscal Year, use: { dateId: "SOLFY", type: "end" }
101
+ values?: string[]|number[]|boolean[]|Date[]|{ dateId: string, type: string }[]|RelativeDate[]; // For example, for after Start of Last Fiscal Year, use: { dateId: "SOLFY", type: "end" }
102
102
  }
103
103
 
104
104
  interface CreateJoinOptions {
package/N/piremoval.d.ts CHANGED
@@ -25,7 +25,7 @@ export function loadTask(options: { id: number }): PiRemovalTask;
25
25
 
26
26
  interface CreateTaskOptions {
27
27
  /** Represents IDs of fields whose personal information is removed. */
28
- fieldIds?: number[];
28
+ fieldIds?: number[] | string[]; // NOTE: The help file indicates that this is number[], but the examples show string[] and the examples are correct.
29
29
  /**
30
30
  * Indicates whether the PI removal task removes system note information only, not field values or workflow history.
31
31
  * If true, the task removes information from system notes only.
package/N/query.d.ts CHANGED
@@ -721,7 +721,12 @@ export interface PagedData {
721
721
  */
722
722
  iterator(): PageIterator;
723
723
 
724
- fetch(index: number): Page;
724
+ fetch: FetchType;
725
+ }
726
+
727
+ interface FetchType {
728
+ (options: { index: number }): Page;
729
+ promise(options: { index: number }): Promise<Page>;
725
730
  }
726
731
 
727
732
  /**
@@ -843,12 +848,11 @@ export const enum DateId {
843
848
  }
844
849
 
845
850
  /**
846
- * Special object which can be used as a condition while querying dates
851
+ * Special object which can be used as a condition while querying dates.
847
852
  *
848
853
  * @since 2019.1
849
854
  */
850
- interface RelativeDate {
851
-
855
+ export interface RelativeDate {
852
856
  /**
853
857
  * Start of relative date
854
858
  * @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted
package/N/record.d.ts CHANGED
@@ -485,7 +485,7 @@ export interface ClientCurrentRecord {
485
485
  /** Performs macro operation and returns its result in a plain JavaScript object. */
486
486
  executeMacro: ExecuteMacroFunction;
487
487
  /** Returns the line number of the first instance where a specified value is found in a specified column of the matrix. */
488
- findMatrixSublistLineWIthValue(options: FindSublistLineWithValueOptions): number;
488
+ findMatrixSublistLineWithValue(options: FindSublistLineWithValueOptions): number;
489
489
  /** Returns the line number for the first occurrence of a field value in a sublist. */
490
490
  findSublistLineWithValue(options: FindSublistLineWithValueOptions): number;
491
491
  /** Gets the value for the currently selected line in the matrix. */
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": "2024.1.1",
11
+ "version": "2024.1.3",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {