@hitc/netsuite-types 2023.2.4 → 2023.2.6

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/file.d.ts CHANGED
@@ -67,7 +67,7 @@ interface FileCopyOptions {
67
67
  * (for example, if the target folder already contains a file with the same name).
68
68
  * Use the values in the file.ConflictResolution enum to set this parameter. The default value is ConflictResolution.FAIL.
69
69
  */
70
- conflictResolution: ConflictResolution;
70
+ conflictResolution: NameConflictResolution;
71
71
  }
72
72
 
73
73
  interface FileCreateOptions {
@@ -105,7 +105,7 @@ export function load(options: FileLoadOptions): File;
105
105
  /** Method used to load an existing file from the NetSuite file cabinet. */
106
106
  export function load(idOrPath: number | string): File;
107
107
 
108
- export enum ConflictResolution {
108
+ export enum NameConflictResolution {
109
109
  /** Fail with an error if a conflict occurs. */
110
110
  FAIL,
111
111
  /** Overwrite the existing file if a conflict occurs.
package/N/query.d.ts CHANGED
@@ -200,7 +200,7 @@ interface DeleteQueryOptions {
200
200
  id: number;
201
201
  }
202
202
 
203
- interface RunSuiteQLOptions {
203
+ export interface RunSuiteQLOptions {
204
204
  /**
205
205
  * String representation of SuiteQL query
206
206
  */
@@ -211,7 +211,7 @@ interface RunSuiteQLOptions {
211
211
  customScriptId?: string;
212
212
  }
213
213
 
214
- interface RunSuiteQLPagedOptions extends RunSuiteQLOptions {
214
+ export interface RunSuiteQLPagedOptions extends RunSuiteQLOptions {
215
215
  pageSize?: number;
216
216
  }
217
217
 
package/N/record.d.ts CHANGED
@@ -40,7 +40,7 @@ interface CancelCommitLineOptions {
40
40
  sublistId: string;
41
41
  }
42
42
 
43
- interface CopyLoadOptions {
43
+ export interface CopyLoadOptions {
44
44
  /** The record type. */
45
45
  type: Type | string;
46
46
  /** The internal ID of the existing record instance in NetSuite. */
@@ -720,25 +720,7 @@ interface RecordCopyFunction {
720
720
  promise(options: CopyLoadOptions): Promise<Record>;
721
721
  }
722
722
 
723
- interface RecordCreateOptions {
724
- /**
725
- * The record type.
726
- */
727
- type: Type | string;
728
- /**
729
- * Determines whether the new record is dynamic. If set to true, the record is created in dynamic mode. If set to false, the record is created in standard mode. By default, this value is false.
730
- * - When a SuiteScript 2.0 script creates, copies, loads, or transforms a record in standard mode, the record’s body fields and sublist line items are not sourced, calculated, and validated until the record is saved (submitted) with Record.save(options).
731
- * - When you work with a record in standard mode, you do not need to set values in any particular order. After submitting the record, NetSuite processes the record’s body fields and sublist line items in the correct order, regardless of the organization of your script.
732
- * - When a SuiteScript 2.0 script creates, copies, loads, or transforms a record in dynamic mode, the record’s body fields and sublist line items are sourced, calculated, and validated in real-time. A record in dynamic mode emulates the behavior of a record in the UI.
733
- * - When you work with a record in dynamic mode, it is important that you set values in the same order you would within the UI. If you fail to do this, your results may not be accurate.
734
- */
735
- isDynamic?: boolean;
736
- /**
737
- * Name-value pairs containing default values of fields in the new record.
738
- */
739
- defaultValues?: any;
740
- }
741
-
723
+ export type RecordCreateOptions = Omit<CopyLoadOptions, 'id'>
742
724
 
743
725
  /**
744
726
  * Create a new record object based on provided type
@@ -329,7 +329,7 @@ export interface Assistant {
329
329
  /** Identifies the current step. You can set any step as the current step. */
330
330
  currentStep: AssistantStep;
331
331
  /** Error message text for the current step. Optionally, you can use HTML tags to format the message. */
332
- errorHtml: string;
332
+ errorHtml: string | undefined;
333
333
  /** The text to display after the assistant finishes. For example “You have completed the Small Business Setup Assistant. Take the rest of the day off”. To trigger display of the completion message, call Assistant.isFinished(). */
334
334
  finishedHtml: string;
335
335
  /** Indicates whether to show or hide the Add to Shortcuts link that appears in the top-right corner of an assistant page. */
@@ -472,7 +472,7 @@ export interface Form extends BaseForm {
472
472
  removeButton(options: IDOptions): void;
473
473
  }
474
474
 
475
- export interface List {
475
+ export interface List {
476
476
  /** Adds a button to a list */
477
477
  addButton(options: AddButtonOptions): Button;
478
478
  /** Adds a column to a list */
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": "2023.2.4",
11
+ "version": "2023.2.6",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {