@hitc/netsuite-types 2024.1.9 → 2024.1.10
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/record.d.ts +10 -5
- package/N/types.d.ts +1 -1
- package/package.json +1 -1
package/N/record.d.ts
CHANGED
|
@@ -562,8 +562,13 @@ export interface ClientCurrentRecord {
|
|
|
562
562
|
hasSublistSubrecord(options: GetSublistValueOptions): boolean;
|
|
563
563
|
/** Returns a value indicating whether the field contains a subrecord. */
|
|
564
564
|
hasSubrecord(options: HasSubrecordOptions): boolean;
|
|
565
|
-
/**
|
|
566
|
-
|
|
565
|
+
/**
|
|
566
|
+
* The internal ID of a specific record.
|
|
567
|
+
*
|
|
568
|
+
* If {@link isNew} is true, this is normally null, but there are exceptions,
|
|
569
|
+
* such as when {@link isNew} is true in the afterSubmit() entrypoint of a user event script.
|
|
570
|
+
*/
|
|
571
|
+
id: number | null;
|
|
567
572
|
/** Inserts a sublist line. */
|
|
568
573
|
insertLine(options: InsertLineOptions): this; // Issue #132
|
|
569
574
|
/**
|
|
@@ -599,7 +604,7 @@ export interface ClientCurrentRecord {
|
|
|
599
604
|
* Removes the subrecord for the associated field.
|
|
600
605
|
* @return {Record} same record, for chaining
|
|
601
606
|
*/
|
|
602
|
-
removeSubrecord(options:
|
|
607
|
+
removeSubrecord(options: GetFieldOptions): this;
|
|
603
608
|
/** Selects an existing line in a sublist. */
|
|
604
609
|
selectLine(options: SelectLineOptions): this;
|
|
605
610
|
selectLine(sublistId: string, line: number): this;
|
|
@@ -760,8 +765,8 @@ interface RecordDetachFunction {
|
|
|
760
765
|
* @throws {SuiteScriptError} SSS_MISSING_REQD_ARGUMENT if options.type or options.id is missing
|
|
761
766
|
*/
|
|
762
767
|
interface RecordLoadFunction {
|
|
763
|
-
(options: CopyLoadOptions): Record;
|
|
764
|
-
promise(options: CopyLoadOptions): Promise<Record>;
|
|
768
|
+
(options: CopyLoadOptions): Record & { id: number };
|
|
769
|
+
promise(options: CopyLoadOptions): Promise<Record & { id: number }>;
|
|
765
770
|
}
|
|
766
771
|
/**
|
|
767
772
|
* Delete a record object based on provided type, id and return the id of deleted record
|
package/N/types.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ export namespace EntryPoints {
|
|
|
201
201
|
type beforeSubmit = (scriptContext: beforeSubmitContext) => void;
|
|
202
202
|
|
|
203
203
|
interface afterSubmitContext {
|
|
204
|
-
newRecord: N_record.Record;
|
|
204
|
+
newRecord: N_record.Record & { id: number };
|
|
205
205
|
oldRecord: N_record.Record;
|
|
206
206
|
type: UserEventType;
|
|
207
207
|
UserEventType: UserEventTypes;
|
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.
|
|
11
|
+
"version": "2024.1.10",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|