@hitc/netsuite-types 2023.1.9 → 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 +18 -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,22 @@ 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 **/
|
|
117
|
+
interface GLImpactOptions {
|
|
118
|
+
/** The internal ID of the transaction to print GL Impact. */
|
|
119
|
+
internalId: number;
|
|
120
|
+
/** The print output type. Set using the render.PrintMode enum. */
|
|
121
|
+
printMode?: PrintMode|string;
|
|
122
|
+
/** Include only specific subsidiaries. Default to false. */
|
|
123
|
+
printPerSubsidiary?: boolean;
|
|
124
|
+
/** Specific subsidiaries, only available when printPerSubsidiary is set to true. */
|
|
125
|
+
subsidiaries?: number[];
|
|
126
|
+
/** Specific accounting books. If not specify, prints GL Impact in all accounting books. */
|
|
127
|
+
accountingBooks?: number[];
|
|
128
|
+
/** Internal ID of the template. If not specify, the preferred template will be used. */
|
|
129
|
+
template?: number;
|
|
130
|
+
}
|
|
131
|
+
|
|
116
132
|
interface TemplateRenderer {
|
|
117
133
|
/** Adds XML or JSON as custom data source to an advanced PDF/HTML template. */
|
|
118
134
|
addCustomDataSource(options: AddCustomDataSourceOptions): void;
|
|
@@ -180,6 +196,8 @@ export function statement(options: StatementOptions): File;
|
|
|
180
196
|
export function transaction(options: TransactionOptions): File;
|
|
181
197
|
/** Method used to pass XML to the Big Faceless Organization tag library (which is stored by NetSuite), and return a PDF file. */
|
|
182
198
|
export function xmlToPdf(options: XMLToPDFOptions): File;
|
|
199
|
+
/** Use this method to create a PDF or HTML object of the GL Impact of a transaction. */
|
|
200
|
+
export function glImpact(options: GLImpactOptions): File;
|
|
183
201
|
|
|
184
202
|
/** Holds the string values for supported data source types. Use this enum to set the options.format parameter. */
|
|
185
203
|
export enum DataSource {
|
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": {
|