@hitc/netsuite-types 2021.2.8 → 2021.2.10

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.d.ts CHANGED
@@ -14,7 +14,7 @@ export interface CipherPayload {
14
14
  /** The result of the ciphering process. For example, to take the cipher payload and send it to another system. */
15
15
  ciphertext: string;
16
16
  /** Initialization vector for the cipher payload. You can pass in the iv value to crypto.createDecipher(options). */
17
- iv: number;
17
+ iv: string;
18
18
  }
19
19
 
20
20
  /** Encapsulates a decipher. This object has methods that decrypt. */
package/N/sftp.d.ts CHANGED
@@ -71,15 +71,19 @@ interface CreateSFTPConnectionWithKeyOptions extends CreateSFTPConnectionOptions
71
71
  /** The Key ID for the private key file uploaded to NetSuite */
72
72
  keyId: string;
73
73
  }
74
+ interface CreateSFTPConnectionWithSecretOptions extends CreateSFTPConnectionOptions {
75
+ /** The script ID of the secret used for authentication. Secrets are stored at Setup > Company > API Secrets. Since 2021.1. */
76
+ secret: string;
77
+ }
74
78
 
75
- /**
79
+ /**
76
80
  * Establishes a connection to a remote FTP server.
77
81
  * To generate the passwordguid, you can create a suitelet that uses Form.addCredentialField(options).
78
82
  * Use the N/https Module to fetch the GUID value returned from the Suitelet's credential field.
79
83
  * For a Suitelet example, see N/https Module Script Sample.
80
84
  * For more information about supported SFTP protocol, see Supported Cipher Suites and Host Key Types
81
85
  */
82
- export function createConnection(options: CreateSFTPConnectionWithKeyOptions | CreateSFTPConnectionWithPasswordOptions): Connection;
86
+ export function createConnection(options: CreateSFTPConnectionWithKeyOptions | CreateSFTPConnectionWithPasswordOptions | CreateSFTPConnectionWithSecretOptions): Connection;
83
87
 
84
88
  export enum Sort {
85
89
  DATE,
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": "2021.2.8",
11
+ "version": "2021.2.10",
12
12
  "main": "index.d.ts",
13
13
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
14
14
  "license": "MIT",
@@ -1,10 +0,0 @@
1
- import {Dataset} from "N/dataset";
2
-
3
- /** Context object for the main createDataset() plugin interface function. */
4
- interface CreateDatasetContext {
5
- dataset: Dataset;
6
- readonly description: string
7
- readonly name: string;
8
- readonly owner: number;
9
- readonly role: number;
10
- }
@@ -1,9 +0,0 @@
1
- import {Workbook} from "N/workbook";
2
-
3
- interface CreateWorkbookContext {
4
- readonly description: string;
5
- readonly name: string;
6
- readonly owner: number;
7
- readonly role: number;
8
- workbook: Workbook;
9
- }