@hitc/netsuite-types 2023.2.4 → 2023.2.5
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 +2 -2
- package/N/record.d.ts +2 -20
- package/package.json +1 -1
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:
|
|
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
|
|
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/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
|
-
|
|
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
|
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.
|
|
11
|
+
"version": "2023.2.5",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|