@hitc/netsuite-types 2023.1.10 → 2023.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/crypto/random.d.ts +31 -0
- package/N/render.d.ts +1 -0
- 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/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/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
|
|
11
|
+
"version": "2023.2.1",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|