@hitc/netsuite-types 2025.2.6 → 2025.2.8
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/certificate.d.ts +9 -1
- package/N/plugin.d.ts +9 -3
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* In addition to signing XML documents, you can create signer and verifier objects and verify signed documents with this module.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import type {Encoding} from '../encode';
|
|
6
7
|
import type {File} from '../file';
|
|
7
8
|
import type {NSXMLDocument} from '../xml';
|
|
8
9
|
|
|
@@ -14,7 +15,7 @@ export interface SignedXml {
|
|
|
14
15
|
|
|
15
16
|
export interface Signer {
|
|
16
17
|
update(options: UpdateCertificateOptions): void;
|
|
17
|
-
sign(options?:
|
|
18
|
+
sign(options?: SignOptions): string;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export interface Verifier {
|
|
@@ -44,6 +45,13 @@ interface UpdateCertificateOptions {
|
|
|
44
45
|
inputEncoding?: string;
|
|
45
46
|
}
|
|
46
47
|
|
|
48
|
+
interface SignOptions {
|
|
49
|
+
/** Encoding of the signed string in Base64 format. */
|
|
50
|
+
outputEncoding?: Encoding
|
|
51
|
+
/** Returns ECDSA signatures in raw format. Default value is set to false. */
|
|
52
|
+
useRawFormatForECDSA?: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
47
55
|
interface VerifyOptions {
|
|
48
56
|
/** The signature to be verified. */
|
|
49
57
|
signature: string;
|
package/N/plugin.d.ts
CHANGED
|
@@ -9,17 +9,23 @@ interface LoadImplementationOptions {
|
|
|
9
9
|
/** The script ID of the custom plug-in type. */
|
|
10
10
|
type: string;
|
|
11
11
|
/** The script ID of the custom plug-in implementation. */
|
|
12
|
-
implementation?: string;
|
|
12
|
+
implementation?: 'default' | (string & {});
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Returns the script IDs of custom plug-in type implementations.
|
|
17
17
|
* Returns an empty list when there is no custom plug-in type with the script ID available for the executing script.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
// When includeDefault is false, returns string[]
|
|
20
|
+
export function findImplementations(options: {type: string; includeDefault: false}): string[];
|
|
21
|
+
// When includeDefault is true or undefined, returns at least ['default']
|
|
22
|
+
export function findImplementations(options: {type: string; includeDefault?: true}): ['default', ...string[]];
|
|
20
23
|
|
|
21
24
|
/**
|
|
22
25
|
* Instantiates an implementation of the custom plugin type.
|
|
23
|
-
*
|
|
26
|
+
*
|
|
27
|
+
* @param options - The options for loading the implementation.
|
|
28
|
+
* @returns The implementation which is currently selected in the UI (Manage Plug-ins page) when no implementation ID is explicitly provided.
|
|
29
|
+
* @throws {error.SuiteScriptError} UNABLE_TO_FIND_IMPLEMENTATION_1_FOR_PLUGIN_2 - Thrown when either there is no such implementation of the provided plug-in type, or the plug-in type does not exist.
|
|
24
30
|
*/
|
|
25
31
|
export function loadImplementation<T extends Record<string, (...s: any) => any>>(options: LoadImplementationOptions): T;
|
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": "2025.2.
|
|
11
|
+
"version": "2025.2.8",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|