@hitc/netsuite-types 2023.2.1 → 2023.2.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/dataset.d.ts CHANGED
@@ -10,8 +10,8 @@
10
10
  * For more information on using workbooks, see N/workbook Module.
11
11
  */
12
12
 
13
- import {PagedData, ResultSet} from "N/query";
14
- import {Expression} from "N/workbook";
13
+ import {PagedData, ResultSet} from "./query";
14
+ import {Expression} from "./workbook";
15
15
 
16
16
  /** Encapsulates the record fields in the dataset. Columns are equivalent to the fields you use when you build a dataset in SuiteAnalytics. */
17
17
  interface Column {
package/N/http.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import {File} from './file';
2
2
  import {Assistant, Form, List} from './ui/serverWidget';
3
- import {SecureString} from 'N/https';
3
+ import {SecureString} from './https';
4
4
 
5
5
  interface AddHeaderOptions {
6
6
  /** The name of the header. */
@@ -26,11 +26,11 @@ export interface SendRedirectOptions {
26
26
  * If the base type is TASKLINK, pass in the task ID. For a list of supported task IDs, see Supported Tasklinks.
27
27
  * If the base type is SUITELET, input the script ID.
28
28
  */
29
- identifier: string;
29
+ identifier: number | string;
30
30
  /**
31
31
  * -optional- The secondary ID for this resource. If the base type is SUITLET, pass in the deployment ID.
32
32
  */
33
- id?: string;
33
+ id?: number | string;
34
34
  /**
35
35
  * -optional- If the base type is RECORD, this value determines whether to return a URL for the record in EDIT or VIEW mode.
36
36
  * The default value is false.
package/N/https.d.ts CHANGED
@@ -102,6 +102,14 @@ interface RequestSuiteletOptions extends RequestRestletOptions {
102
102
  external?: boolean,
103
103
  }
104
104
 
105
+ /**
106
+ * Sends an HTTPS request to a Suitelet and returns the response.
107
+ *
108
+ * Use this method to perform an outbound HTTPS request in an anonymous client-side context.
109
+ * You can do this by performing the HTTPS request inside a Suitelet that is available without login, then calling the Suitelet inside your client script using the https.requestSuitelet(options) method.
110
+ *
111
+ * Currently, this method is supported only with the options.external parameter set to true.
112
+ */
105
113
  interface RequestSuiteletFunction {
106
114
  (options: RequestSuiteletOptions): ClientResponse
107
115
  promise(options: RequestSuiteletOptions): Promise<ClientResponse>;
@@ -1,4 +1,4 @@
1
- import {File} from "N/file";
1
+ import {File} from "../file";
2
2
 
3
3
  interface getConfigurationFieldValueOptions {
4
4
 
@@ -5,7 +5,7 @@
5
5
  * behaves differently based on the context.
6
6
  */
7
7
 
8
- import record = require('N/record');
8
+ import record = require('./record');
9
9
 
10
10
  interface GetContextOptions {
11
11
  /** The record type. Required if the record is not loaded in your script. */
package/N/redirect.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import {Search} from './search';
2
- import record = require('N/record');
2
+ import record = require('./record');
3
3
 
4
4
  interface RedirectOptions {
5
5
  /** The URL of a Suitelet that is available externally. */
package/N/render.d.ts CHANGED
@@ -92,18 +92,22 @@ interface RenderToResponseOptions {
92
92
  }
93
93
 
94
94
  interface StatementOptions {
95
+ /** Flag to convert all amount values to the base currency. */
96
+ consolidateStatements?: boolean;
95
97
  /** The internal ID of the statement to print. */
96
98
  entityId: number;
97
- /** The print output type. Set using the render.PrintMode enum. */
98
- printMode?: PrintMode;
99
99
  /** Internal ID of the form to use to print the statement. */
100
100
  formId?: number;
101
+ /** Applies when advanced templates are used. Prints the document in the customer's locale. If basic printing is used, this parameter is ignored and the transaction form is printed in the customer's locale.*/
102
+ inCustLocale?: boolean;
103
+ /** Include only open transactions. */
104
+ openTransactionsOnly?: boolean;
105
+ /** The print output type. Set using the render.PrintMode enum. */
106
+ printMode?: PrintMode;
101
107
  /** Date of the oldest transaction to appear on the statement. */
102
108
  startDate?: string;
103
109
  /** Statement date. NS Docs say this should be a Date object, but in practice it should be a string.*/
104
110
  statementDate?: string;
105
- /** Include only open transactions. */
106
- openTransactionsOnly?: boolean;
107
111
  /** Internal ID of the subsidiary. Note: This parameter only works for advance printing. */
108
112
  subsidiaryId?: number;
109
113
  }
package/N/search.d.ts CHANGED
@@ -181,6 +181,11 @@ export interface CreateSearchColumnOptions {
181
181
  join?: string;
182
182
  summary?: Summary;
183
183
  formula?: string;
184
+ /**
185
+ * See the list of Supported Function in NetSuite help.
186
+ * For example, use "day" when creating a column to show a date/time column as just a date.
187
+ * Do not specify this property when calling result.getValue(), only use it when creating the search column.
188
+ */
184
189
  function?: string;
185
190
  label?: string;
186
191
  sort?: Sort;
@@ -1,6 +1,6 @@
1
- import {ServerResponse} from 'N/http';
2
- import {AddColumnOptions, AddEditColumnOptions, AddRowOptions, AddRowsOptions} from 'N/portlet';
3
- import {Message, MessageCreateOptions} from 'N/ui/message';
1
+ import {ServerResponse} from '../http';
2
+ import {AddColumnOptions, AddEditColumnOptions, AddRowOptions, AddRowsOptions} from '../portlet';
3
+ import {Message, MessageCreateOptions} from '../ui/message';
4
4
 
5
5
  export interface AddButtonOptions {
6
6
  /** The internal ID of the button. If you are adding the button to an existing page, the internal ID must be in lowercase, contain no spaces, and include the prefix custpage. */
package/N/workbook.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /** Load the N/workbook module when you want to create a new workbook, load an existing workbook, or list all existing workbooks. */
2
2
 
3
- import { Dataset } from "N/dataset";
4
- import { PagedData, ResultSet, SortLocale } from "N/query";
5
- import { DatasetLink } from "N/datasetLink";
3
+ import { Dataset } from "./dataset";
4
+ import { PagedData, ResultSet, SortLocale } from "./query";
5
+ import { DatasetLink } from "./datasetLink";
6
6
 
7
7
  interface Aspect {
8
8
  measure: Measure;
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.1",
11
+ "version": "2023.2.3",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {