@hitc/netsuite-types 2021.2.6 → 2021.2.11

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/email.d.ts CHANGED
@@ -115,4 +115,4 @@ export var sendBulk: EmailSendFunction;
115
115
  * Method used to send a single “on-demand” campaign email to a specified recipient and return a campaign response ID to track the email.
116
116
  * Email (campaignemail) sublists are not supported. The campaign must use a Lead Nurturing (campaigndrip) sublist.
117
117
  */
118
- export var sendCampaign: EmailSendCampaignFunction;
118
+ export var sendCampaignEvent: EmailSendCampaignFunction;
package/N/query.d.ts CHANGED
@@ -313,7 +313,7 @@ export interface Query {
313
313
  * Create a Column object based on the root component of the Query. This is a shortcut for Query.root.createColumn.
314
314
  * @see Component.createColumn
315
315
  */
316
- createColumn(options: CreateColumnOptions): Column;
316
+ createColumn(options: CreateColumnOptions | CreateColumnWithFormulaOptions): Column;
317
317
 
318
318
  /**
319
319
  * Create a Sort object based on the root component of the Query. This is a shortcut for Query.root.createSort.
package/N/record.d.ts CHANGED
@@ -238,7 +238,7 @@ interface SetCurrentSublistTextOptions {
238
238
  forceSyncSourcing?: boolean
239
239
  }
240
240
 
241
- interface SetValueOptions {
241
+ export interface SetValueOptions {
242
242
  /** The internal ID of a standard or custom body field. */
243
243
  fieldId: string;
244
244
  /**
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.6",
11
+ "version": "2021.2.11",
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
- }