@hitc/netsuite-types 2021.2.7 → 2021.2.12
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 +1 -1
- package/N/email.d.ts +1 -1
- package/N/query.d.ts +1 -1
- package/N/sftp.d.ts +6 -2
- package/N/workbook.d.ts +18 -22
- package/package.json +1 -1
- package/DatasetBuilderPlugin.d.ts +0 -10
- package/WorkbookBuilderPlugin.d.ts +0 -9
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:
|
|
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
|
|
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/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/N/workbook.d.ts
CHANGED
|
@@ -77,11 +77,11 @@ interface ColorRGBA {
|
|
|
77
77
|
*/
|
|
78
78
|
interface ConditionalFilter {
|
|
79
79
|
/** The selected filters in the condition filter. */
|
|
80
|
-
filteredNodesSelector:
|
|
80
|
+
filteredNodesSelector: PathSelector|DimensionSelector;
|
|
81
81
|
/** The measure of the conditional filter. */
|
|
82
82
|
measure: Measure;
|
|
83
83
|
/** The selector for the other axis in the conditional filter. */
|
|
84
|
-
otherAxisSelector:
|
|
84
|
+
otherAxisSelector: PathSelector|DimensionSelector;
|
|
85
85
|
/** The actual predicate for the conditional filter, which indicates whether the condition is met. */
|
|
86
86
|
predicate: Expression;
|
|
87
87
|
/** The row axis indicator for the conditional filter. */
|
|
@@ -222,7 +222,7 @@ interface Legend {
|
|
|
222
222
|
*/
|
|
223
223
|
interface LimitingFilter {
|
|
224
224
|
/** The selections for the limiting filter. */
|
|
225
|
-
filteredNodesSelector:
|
|
225
|
+
filteredNodesSelector: PathSelector|DimensionSelector;
|
|
226
226
|
/** The limit number for the limiting filter. */
|
|
227
227
|
limit: number;
|
|
228
228
|
/** The row axis indicator for the limiting factor.*/
|
|
@@ -258,7 +258,7 @@ interface MeasureSort {
|
|
|
258
258
|
/** The sort of the measure sort. */
|
|
259
259
|
measure: Measure;
|
|
260
260
|
/** The other axis selector for the measure sort. */
|
|
261
|
-
otherAxisSelector:
|
|
261
|
+
otherAxisSelector: PathSelector|DimensionSelector;
|
|
262
262
|
/** The sort for the measure sort. */
|
|
263
263
|
sort: Sort;
|
|
264
264
|
}
|
|
@@ -390,7 +390,7 @@ interface Series {
|
|
|
390
390
|
interface Sort {
|
|
391
391
|
/** The ascending sort indicator of the sort. */
|
|
392
392
|
ascending: boolean,
|
|
393
|
-
/** The indicator that determines if the sort is case
|
|
393
|
+
/** The indicator that determines if the sort is case-sensitive. */
|
|
394
394
|
caseSensitive: boolean,
|
|
395
395
|
/** The locale of the sort. */
|
|
396
396
|
locale: Operator,
|
|
@@ -404,7 +404,7 @@ interface Sort {
|
|
|
404
404
|
*/
|
|
405
405
|
interface SortDefinition {
|
|
406
406
|
/** The selector for the sort definition. */
|
|
407
|
-
selector:
|
|
407
|
+
selector: DimensionSelector|PathSelector;
|
|
408
408
|
/** The ordering elements for the sort definition. */
|
|
409
409
|
sortBys: DimensionSelector|MeasureSort[];
|
|
410
410
|
}
|
|
@@ -459,7 +459,7 @@ interface TableColumn {
|
|
|
459
459
|
|
|
460
460
|
/**
|
|
461
461
|
* A table definition. A table is a workbook component that enables you to view your dataset query results in a simple table.
|
|
462
|
-
* You can create a table definition using workbook.
|
|
462
|
+
* You can create a table definition using workbook.createTable(options).
|
|
463
463
|
*/
|
|
464
464
|
interface TableDefinition {
|
|
465
465
|
/** The columns of the table definition. */
|
|
@@ -513,9 +513,7 @@ export interface Workbook {
|
|
|
513
513
|
* A selector that is used to select nodes to use in conditions. It can be used when creating a path selector, a sort definition, a conditional filter, a limiting filter, or a measure sort.
|
|
514
514
|
* You can create an AllSubNodesSelector using workbook.createAllSubNodesSelector().
|
|
515
515
|
*/
|
|
516
|
-
interface AllSubNodesSelector {
|
|
517
|
-
// TODO Update this as it is empty with NS Help
|
|
518
|
-
}
|
|
516
|
+
// interface AllSubNodesSelector { } // Commented out on 6 Dec 2021 - this is no longer in the Help?
|
|
519
517
|
|
|
520
518
|
interface CreateOptions {
|
|
521
519
|
chartDefinition?: ChartDefinition[];
|
|
@@ -571,9 +569,9 @@ interface CreateColor {
|
|
|
571
569
|
}
|
|
572
570
|
|
|
573
571
|
interface CreateConditionalFilter {
|
|
574
|
-
filteredNodesSelector:
|
|
572
|
+
filteredNodesSelector: DimensionSelector|PathSelector;
|
|
575
573
|
measure: Measure;
|
|
576
|
-
otherAxisSelector:
|
|
574
|
+
otherAxisSelector: DimensionSelector|PathSelector;
|
|
577
575
|
predicate: Expression;
|
|
578
576
|
row: boolean;
|
|
579
577
|
}
|
|
@@ -641,7 +639,7 @@ interface CreateLegend {
|
|
|
641
639
|
}
|
|
642
640
|
|
|
643
641
|
interface CreateLimitingFilter {
|
|
644
|
-
filteredNodesSelector:
|
|
642
|
+
filteredNodesSelector: DimensionSelector|PathSelector;
|
|
645
643
|
limit: number;
|
|
646
644
|
row: boolean;
|
|
647
645
|
sortBys: (DimensionSort|MeasureSort)[];
|
|
@@ -660,8 +658,8 @@ interface CreateMeasureSelector {
|
|
|
660
658
|
|
|
661
659
|
interface CreateMeasureSort {
|
|
662
660
|
measure: Measure;
|
|
663
|
-
otherAxisSelector:
|
|
664
|
-
selector:
|
|
661
|
+
otherAxisSelector: DimensionSelector|PathSelector;
|
|
662
|
+
selector: DimensionSelector|PathSelector;
|
|
665
663
|
sort: Sort;
|
|
666
664
|
}
|
|
667
665
|
|
|
@@ -672,7 +670,7 @@ interface CreateMeasureValueSelector {
|
|
|
672
670
|
}
|
|
673
671
|
|
|
674
672
|
interface CreatePathSelector {
|
|
675
|
-
elements:
|
|
673
|
+
elements: DimensionSelector[];
|
|
676
674
|
}
|
|
677
675
|
|
|
678
676
|
interface CreatePivotAxis {
|
|
@@ -746,7 +744,7 @@ interface CreateSortByMeasure {
|
|
|
746
744
|
}
|
|
747
745
|
|
|
748
746
|
interface CreateSortDefinition {
|
|
749
|
-
selector:
|
|
747
|
+
selector: DimensionSelector|PathSelector;
|
|
750
748
|
sortBys: (DimensionSort|MeasureSort)[];
|
|
751
749
|
}
|
|
752
750
|
|
|
@@ -814,7 +812,7 @@ export function create(options: CreateOptions): Workbook;
|
|
|
814
812
|
/**
|
|
815
813
|
* Creates an AllSubNodesSelector, which can be used when creating a path selector, a sort definition, a conditional filter, a limiting filter, or a measure sort.
|
|
816
814
|
*/
|
|
817
|
-
export function createAllSubNodesSelector(): AllSubNodesSelector;
|
|
815
|
+
// export function createAllSubNodesSelector(): AllSubNodesSelector;
|
|
818
816
|
|
|
819
817
|
/**
|
|
820
818
|
* Creates an aspect for a chart series. An aspect includes a measure and an aspect type.
|
|
@@ -881,9 +879,7 @@ export function createDataDimension(options: CreateDataDimension): DataDimension
|
|
|
881
879
|
*/
|
|
882
880
|
export function createDataDimensionItem(options: CreateDataDimensionItem): DataDimensionItem;
|
|
883
881
|
|
|
884
|
-
/**
|
|
885
|
-
* Creates a data measure.
|
|
886
|
-
*/
|
|
882
|
+
/** Creates a data measure. TODO: Test this, this method doesn't seem to actually exist in NetSuite as of December 2021. */
|
|
887
883
|
export function createDataMeasure(options: CreateDataMeasure): DataMeasure;
|
|
888
884
|
|
|
889
885
|
/**
|
|
@@ -1032,7 +1028,7 @@ export function createTableColumn(options: CreateTableColumn): TableColumn;
|
|
|
1032
1028
|
* A table is a workbook component that enables you to view your dataset query results in a simple table.
|
|
1033
1029
|
* A table is based on an underlying dataset and can include an ID, a name, a dataset, and table columns,
|
|
1034
1030
|
*/
|
|
1035
|
-
export function
|
|
1031
|
+
export function createTable(options: CreateTableDefinition): TableDefinition;
|
|
1036
1032
|
|
|
1037
1033
|
/**
|
|
1038
1034
|
* Creates a table filter, which includes an operator and values.
|
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.
|
|
11
|
+
"version": "2021.2.12",
|
|
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
|
-
}
|