@hitc/netsuite-types 2022.1.6 → 2022.2.1

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/workbook.d.ts CHANGED
@@ -1105,18 +1105,20 @@ declare enum DateTimeProperty {
1105
1105
  YEAR
1106
1106
  }
1107
1107
 
1108
- declare enum ExpressionType {
1108
+ declare enum ExpressionType { // Last updated 22 June 2022, NetSuite version 2022.1
1109
1109
  AND,
1110
- ANY_IN_HIERARCHY,
1110
+ // ANY_IN_HIERARCHY,
1111
1111
  ANY_OF,
1112
1112
  BETWEEN,
1113
1113
  CHILD_OF,
1114
1114
  COMPARE,
1115
- CONSOLIDATE,
1115
+ CONSTANT,
1116
+ // CONSOLIDATE,
1116
1117
  CURRENCY_CONVERSION,
1117
1118
  DATE_RANGE_SELECTOR_ID,
1118
1119
  DATE_SELECTOR_ID,
1119
1120
  DATE_TIME_PROPERTY,
1121
+ DIVIDE,
1120
1122
  EQUALS,
1121
1123
  FIELD,
1122
1124
  HIERARCHY,
@@ -1124,10 +1126,15 @@ declare enum ExpressionType {
1124
1126
  IN_RANGE,
1125
1127
  IS_NULL,
1126
1128
  LAMBDA,
1129
+ MEASURE_VALUE,
1130
+ MINUS,
1131
+ MULTIPLY,
1127
1132
  NOT,
1128
1133
  OR,
1129
1134
  RECORD_DISPLAY_VALUE,
1130
1135
  RECORD_KEY,
1136
+ SIMPLE_CONSOLIDATE,
1137
+ TRANSLATE,
1131
1138
  TRUNCATE_DATE_TIME
1132
1139
  }
1133
1140
 
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.6",
11
+ "version": "2022.2.1",
12
12
  "main": "index.d.ts",
13
13
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
14
14
  "license": "MIT",