@hitc/netsuite-types 2025.2.6 → 2025.2.7
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.
|
@@ -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/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.7",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|