@hitc/netsuite-types 2021.2.12 → 2022.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/dataset.d.ts CHANGED
@@ -91,8 +91,10 @@ interface CreateConditionOptions {
91
91
  children?: Condition[];
92
92
  /** Required, unless options.children is specified. */
93
93
  column?: Column;
94
+ /** Uses the query.Operator enumeration, otherwise can be 'AND' or 'OR' when you are combining condition children. */
94
95
  operator: string;
95
- values: string[]|number[]|boolean[]|Date[];
96
+ /** The values attribute is required unless the operator is 'AND' or 'OR', as it is when you are combining condition children. */
97
+ values?: string[]|number[]|boolean[]|Date[]|{ dateId: string, type: string }[]; // For example, for after Start of Last Fiscal Year, use: { dateId: "SOLFY", type: "end" }
96
98
  }
97
99
 
98
100
  interface CreateJoinOptions {
@@ -2,7 +2,7 @@ import {ServerResponse} from 'N/http';
2
2
  import {AddColumnOptions, AddEditColumnOptions, AddRowOptions, AddRowsOptions} from 'N/portlet';
3
3
  import {MessageCreateOptions} from 'N/ui/message';
4
4
 
5
- interface AddButtonOptions {
5
+ export interface AddButtonOptions {
6
6
  /** The internal ID of the button. If you are adding the button to an existing page, the internal ID must be in lowercase, contain no spaces, and include the prefix custpage. */
7
7
  id?: string;
8
8
  /** The label for this button. */
package/N/workflow.d.ts CHANGED
@@ -1,12 +1,14 @@
1
+ import {record} from "../N";
2
+
1
3
  interface InitiateOptions {
2
- recordType: string; // Documentation says number, but examples clearly contradict
4
+ recordType: string | record.Type;
3
5
  recordId: string | number;
4
6
  workflowId: string | number;
5
7
  defaultValues?: any;
6
8
  }
7
9
 
8
10
  interface TriggerOptions {
9
- recordType: string; // Documentation says number, but examples clearly contradict
11
+ recordType: string | record.Type;
10
12
  recordId: string | number;
11
13
  /**
12
14
  * Internal ID (number) or script ID (string) for the workflow definition. This is the ID field on the Workflow Definition Page.
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": "2021.2.12",
11
+ "version": "2022.1.0",
12
12
  "main": "index.d.ts",
13
13
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
14
14
  "license": "MIT",