@hitc/netsuite-types 2022.1.7 → 2022.2.2

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 CHANGED
@@ -167,6 +167,12 @@ interface InsertLineOptions {
167
167
  ignoreRecalc?: boolean;
168
168
  }
169
169
 
170
+ interface MoveLineOptions {
171
+ sublistId: string;
172
+ from: number;
173
+ to: number;
174
+ }
175
+
170
176
  interface SelectLineOptions {
171
177
  /** The internal ID of the sublist. */
172
178
  sublistId: string;
@@ -197,6 +203,29 @@ interface SetCurrentMatrixSublistValueOptions {
197
203
  /** Use forceSyncSourcing instead of fireSlavingSync on currentRecord module. */
198
204
  forceSyncSourcing?: boolean
199
205
  }
206
+ interface SetMatrixSublistValueOptions {
207
+ /** The internal ID of the sublist. */
208
+ sublistId: string;
209
+ /** The internal ID of a standard or custom sublist field. */
210
+ fieldId: string;
211
+ /** The line number to set in the sublist. */
212
+ line: number;
213
+ /** The column number for the field. */
214
+ column: number
215
+ /**
216
+ * The value to set the field to.
217
+ * The value type must correspond to the field type being set. For example:
218
+ * - Text, Radio and Select fields accept string values.
219
+ * - Checkbox fields accept Boolean values.
220
+ * - Date and DateTime fields accept Date values.
221
+ * - Integer, Float, Currency and Percent fields accept number values.
222
+ */
223
+ value: FieldValue;
224
+ /** Indicates whether to perform slaving synchronously. */
225
+ fireSlavingSync?: boolean;
226
+ /** Use forceSyncSourcing instead of fireSlavingSync on currentRecord module. */
227
+ forceSyncSourcing?: boolean
228
+ }
200
229
 
201
230
  interface SetCurrentSublistValueOptions {
202
231
  /** The internal ID of the sublist. */
@@ -537,6 +566,11 @@ export interface ClientCurrentRecord {
537
566
  * This value is set when the record is created or accessed.
538
567
  */
539
568
  isDynamic: boolean;
569
+ /**
570
+ * Moves one line of the sublist to another location. The sublist machine must allow moving lines, for example: editmachine.setAllowMoveLines(true);.
571
+ * The sublist must contain the _sequence field. The sublist type must be edit machine. When using this method, the order of the other lines is preserved.
572
+ */
573
+ moveLine(options: MoveLineOptions): this;
540
574
  /**
541
575
  * Removes the subrecord for the associated sublist field on the current line.
542
576
  * @return {Record} same record, for chaining
@@ -567,7 +601,7 @@ export interface ClientCurrentRecord {
567
601
  /** Sets the value for the associated header in the matrix. */
568
602
  setMatrixHeaderValue(options: SetCurrentMatrixSublistValueOptions): Record;
569
603
  /** Sets the value for the associated field in the matrix. */
570
- setMatrixSublistValue(options: SetSublistValueOptions): Record;
604
+ setMatrixSublistValue(options: SetMatrixSublistValueOptions): Record;
571
605
  /** Sets the value of the field by a text representation. */
572
606
  setText(options: SetFieldTextOptions): this;
573
607
  setText(fieldId: string, value: string): this;
package/N/types.d.ts CHANGED
@@ -83,7 +83,7 @@ declare enum ScheduledInvocationType {
83
83
  declare interface ScheduledInvocationTypes {
84
84
  SCHEDULED: ScheduledInvocationType;
85
85
  ON_DEMAND: ScheduledInvocationType;
86
- USER: ScheduledInvocationType;
86
+ USER_INTERFACE: ScheduledInvocationType;
87
87
  ABORTED: ScheduledInvocationType;
88
88
  SKIPPED: ScheduledInvocationType;
89
89
  }
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": "2022.1.7",
11
+ "version": "2022.2.2",
12
12
  "main": "index.d.ts",
13
13
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
14
14
  "license": "MIT",