@hitc/netsuite-types 2023.1.10 → 2023.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/crypto/random.d.ts +31 -0
- package/N/dataset.d.ts +2 -2
- package/N/http.d.ts +3 -3
- package/N/plugins/fiParserPlugin.d.ts +1 -1
- package/N/recordContext.d.ts +1 -1
- package/N/redirect.d.ts +1 -1
- package/N/render.d.ts +1 -0
- package/N/ui/serverWidget.d.ts +3 -3
- package/N/workbook.d.ts +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Use the N/crypto/random module to provide cryptographically-secure, pseudorandom generator methods.
|
|
3
|
+
*
|
|
4
|
+
* The N/crypto/random module is available for both client and server scripts, but server scripts need to use SuiteScript 2.1.
|
|
5
|
+
* If you cannot update your server script code to SuiteScript 2.1, consider implementing a small RESTlet in SuiteScript 2.1
|
|
6
|
+
* that uses N/crypto/random module and consuming it from your script with https.requestRestlet(options).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/** Cryptographically strong pseudorandom data. */
|
|
10
|
+
export function generateBytes(options: GenerateBytesOptions): Uint8Array;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Method used to generate cryptographically strong pseudorandom number.
|
|
14
|
+
* Note: As of 21 July 2023, the documentation says it returns a string, but in testing it actually returns a number.
|
|
15
|
+
*/
|
|
16
|
+
export function generateInt(options: GenerateIntOptions): number;
|
|
17
|
+
|
|
18
|
+
/** Method used to generate a v4 UUID using a cryptographically secure random number generator. */
|
|
19
|
+
export function generateUUID(): string;
|
|
20
|
+
|
|
21
|
+
interface GenerateBytesOptions {
|
|
22
|
+
/** The number of bytes to generate. */
|
|
23
|
+
size: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface GenerateIntOptions {
|
|
27
|
+
/** End of random range (exclusive). */
|
|
28
|
+
max: number;
|
|
29
|
+
/** Start of random range. Default is 0. */
|
|
30
|
+
min?: number;
|
|
31
|
+
}
|
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 "
|
|
14
|
-
import {Expression} from "
|
|
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 '
|
|
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/recordContext.d.ts
CHANGED
package/N/redirect.d.ts
CHANGED
package/N/render.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ interface XMLToPDFOptions {
|
|
|
113
113
|
xmlString: string;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
/** See: https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/subsect_156215822877.html#subsect_159601086460 **/
|
|
116
117
|
interface GLImpactOptions {
|
|
117
118
|
/** The internal ID of the transaction to print GL Impact. */
|
|
118
119
|
internalId: number;
|
package/N/ui/serverWidget.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {ServerResponse} from '
|
|
2
|
-
import {AddColumnOptions, AddEditColumnOptions, AddRowOptions, AddRowsOptions} from '
|
|
3
|
-
import {Message, MessageCreateOptions} from '
|
|
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 "
|
|
4
|
-
import { PagedData, ResultSet, SortLocale } from "
|
|
5
|
-
import { DatasetLink } from "
|
|
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.
|
|
11
|
+
"version": "2023.2.2",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|