@hitc/netsuite-types 2023.1.1 → 2023.1.3

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/portlet.d.ts CHANGED
@@ -18,6 +18,19 @@ interface AddEditColumnOptions {
18
18
  column: string;
19
19
  showHrefCol?: boolean;
20
20
  showView?: boolean;
21
+ /**
22
+ * The Edit/View base link. (For example: /app/common/entity/employee.nl)
23
+ * The complete link is formed like this: <link>?<linkParamName>=<row data from linkParam>. (For example: /app/common/entity/employee.nl?id=123)
24
+ */
25
+ link?: string;
26
+ /**
27
+ * The internal ID of the field in the row data where to take the parameter from.
28
+ * The default value is the value set in the options.column parameter.
29
+ * Tip: In most cases, the value to use here is internalid.
30
+ */
31
+ linkParam?: string;
32
+ /** The name of the parameter. The default value is id. */
33
+ linkParamName?: string;
21
34
  }
22
35
 
23
36
  interface AddFieldOptions {
package/N/query.d.ts CHANGED
@@ -600,6 +600,7 @@ export interface Condition {
600
600
  readonly component: Component;
601
601
  }
602
602
 
603
+ type QueryResultMap = { [fieldId: string]: string | boolean | number | null }
603
604
  /**
604
605
  * Set of results returned by the query.
605
606
  */
@@ -634,8 +635,8 @@ export interface ResultSet {
634
635
  * A mapped result is a JavaScript object with key-value pairs.
635
636
  * In this object, the key is either the field ID or the alias that was used for the corresponding query.Column object.
636
637
  */
637
- asMappedResults(): Array<{ [fieldId: string]: string | boolean | number | null }>;
638
- asMappedResults<T extends Object>(): Array<T>;
638
+ asMappedResults(): Array<QueryResultMap>;
639
+ asMappedResults<QueryResultMap>(): Array<QueryResultMap>;
639
640
  }
640
641
 
641
642
  /** Corresponds to a single row of the ResultSet. */
@@ -658,7 +659,8 @@ export interface Result {
658
659
  * A mapped result is a JavaScript object with key-value pairs.
659
660
  * In this object, the key is either the field ID or the alias that was used for the corresponding query.Column object.
660
661
  */
661
- asMap(): { [fieldId: string]: string | boolean | number | null };
662
+ asMap(): QueryResultMap;
663
+ asMap<QueryResultMap>(): QueryResultMap
662
664
  }
663
665
 
664
666
  /**
@@ -743,7 +745,8 @@ interface Period {
743
745
  readonly code: string;
744
746
  /**
745
747
  * The type of the period. This property uses values from the query.PeriodType enum.
746
- * If you create a period using query.createPeriod(options) and do not specify a value for the options.type parameter, the default value of this property is query.PeriodType.START.
748
+ * If you create a period using query.createPeriod(options) and do not specify a value for the options.type
749
+ * parameter, the default value of this property is query.PeriodType.START.
747
750
  */
748
751
  readonly type: string;
749
752
  }
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.1.1",
11
+ "version": "2023.1.3",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {