@hitc/netsuite-types 2022.2.16 → 2022.2.17
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/query.d.ts +72 -70
- package/package.json +1 -1
package/N/query.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ interface RunMethodType {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
interface RunPagedMethodType {
|
|
7
|
-
(options: {pageSize: number}): PagedData;
|
|
8
|
-
promise(options: {pageSize: number}): Promise<PagedData>;
|
|
7
|
+
(options: { pageSize: number }): PagedData;
|
|
8
|
+
promise(options: { pageSize: number }): Promise<PagedData>;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
interface AutoJoinOptions {
|
|
@@ -82,15 +82,15 @@ interface CreateConditionWithFormulaOptions {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
interface ColumnContextOptions {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
/** The name of the field context. */
|
|
86
|
+
name: string | FieldContext,
|
|
87
|
+
/** The additional parameters to use with the specified field context. */
|
|
88
|
+
params?: {
|
|
89
|
+
/** The internal ID of the currency to convert to. */
|
|
90
|
+
currencyId?: number,
|
|
91
|
+
/** The date to use for the actual exchange rate between the base currency and the currency to convert to. */
|
|
92
|
+
date?: RelativeDate | Date
|
|
93
|
+
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
interface CreateColumnOptions {
|
|
@@ -118,10 +118,10 @@ interface CreateColumnOptions {
|
|
|
118
118
|
* 1. You must specify an alias for a column when the column uses a formula.
|
|
119
119
|
* 2. You must specify an alias when two columns in a joined query use the same field ID.
|
|
120
120
|
*/
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
alias?: string;
|
|
122
|
+
|
|
123
|
+
/** The field context for values in the query result column. This value sets the Column.context property. */
|
|
124
|
+
context?: string | FieldContext | ColumnContextOptions
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
interface CreateColumnWithFormulaOptions {
|
|
@@ -155,10 +155,10 @@ interface CreateColumnWithFormulaOptions {
|
|
|
155
155
|
* 1. You must specify an alias for a column when the column uses a formula.
|
|
156
156
|
* 2. You must specify an alias when two columns in a joined query use the same field ID.
|
|
157
157
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
158
|
+
alias?: string;
|
|
159
|
+
|
|
160
|
+
/** The field context for values in the query result column. This value sets the Column.context property. */
|
|
161
|
+
context?: string | FieldContext | ColumnContextOptions
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
interface CreateSortOptions {
|
|
@@ -501,9 +501,9 @@ export interface Column {
|
|
|
501
501
|
readonly groupBy: boolean;
|
|
502
502
|
|
|
503
503
|
readonly label: string;
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
readonly alias: string;
|
|
505
|
+
|
|
506
|
+
/** The field context for values in the query result column. */
|
|
507
507
|
readonly context: ColumnContextOptions;
|
|
508
508
|
}
|
|
509
509
|
|
|
@@ -634,7 +634,7 @@ export interface ResultSet {
|
|
|
634
634
|
* A mapped result is a JavaScript object with key-value pairs.
|
|
635
635
|
* In this object, the key is either the field ID or the alias that was used for the corresponding query.Column object.
|
|
636
636
|
*/
|
|
637
|
-
asMappedResults(): Array<{ [fieldId: string]: string|boolean|number|null }>;
|
|
637
|
+
asMappedResults(): Array<{ [fieldId: string]: string | boolean | number | null }>;
|
|
638
638
|
asMappedResults<T extends Object>(): Array<T>;
|
|
639
639
|
}
|
|
640
640
|
|
|
@@ -658,7 +658,7 @@ export interface Result {
|
|
|
658
658
|
* A mapped result is a JavaScript object with key-value pairs.
|
|
659
659
|
* In this object, the key is either the field ID or the alias that was used for the corresponding query.Column object.
|
|
660
660
|
*/
|
|
661
|
-
asMap(): { [fieldId: string]: string|boolean|number|null };
|
|
661
|
+
asMap(): { [fieldId: string]: string | boolean | number | null };
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
/**
|
|
@@ -776,8 +776,8 @@ interface QueryLoadFunction {
|
|
|
776
776
|
}
|
|
777
777
|
|
|
778
778
|
interface deleteQuery {
|
|
779
|
-
|
|
780
|
-
|
|
779
|
+
(options: DeleteQueryOptions): Query;
|
|
780
|
+
promise: (options: DeleteQueryOptions) => Promise<Query>;
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
/**
|
|
@@ -786,7 +786,7 @@ interface deleteQuery {
|
|
|
786
786
|
* @throws {SuiteScriptError} WRONG_PARAMETER_TYPE if options isn't object or id isn't number
|
|
787
787
|
* @throws {SuiteScriptError} UNABLE_TO_DELETE_QUERY if query doesn't exist or no permissions to delete it
|
|
788
788
|
*/
|
|
789
|
-
export {deleteQuery as delete};
|
|
789
|
+
export { deleteQuery as delete };
|
|
790
790
|
|
|
791
791
|
interface RunSuiteQL {
|
|
792
792
|
(options: RunSuiteQLOptions): ResultSet;
|
|
@@ -794,7 +794,9 @@ interface RunSuiteQL {
|
|
|
794
794
|
}
|
|
795
795
|
|
|
796
796
|
/**
|
|
797
|
-
*
|
|
797
|
+
* Runs an arbitrary SuiteQL query.
|
|
798
|
+
* SuiteQL is a query language based on the SQL-92 revision of the SQL database query language.
|
|
799
|
+
* It provides advanced query capabilities you can use to access your NetSuite records and data.
|
|
798
800
|
* @throws {SuiteScriptError} MISSING_REQD_ARGUMENT if options or query are undefined
|
|
799
801
|
* @throws {SuiteScriptError} WRONG_PARAMETER_TYPE if options isn't object or id isn't number
|
|
800
802
|
* @throws {SuiteScriptError} UNABLE_TO_DELETE_QUERY if query doesn't exist or no permissions to delete it
|
|
@@ -847,7 +849,7 @@ interface RelativeDate {
|
|
|
847
849
|
* @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted
|
|
848
850
|
*
|
|
849
851
|
* @since 2019.1
|
|
850
|
-
*/
|
|
852
|
+
*/
|
|
851
853
|
readonly start: Object;
|
|
852
854
|
|
|
853
855
|
/**
|
|
@@ -855,7 +857,7 @@ interface RelativeDate {
|
|
|
855
857
|
* @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted
|
|
856
858
|
*
|
|
857
859
|
* @since 2019.1
|
|
858
|
-
*/
|
|
860
|
+
*/
|
|
859
861
|
readonly end: Object;
|
|
860
862
|
|
|
861
863
|
/**
|
|
@@ -863,7 +865,7 @@ interface RelativeDate {
|
|
|
863
865
|
* @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted
|
|
864
866
|
*
|
|
865
867
|
* @since 2019.1
|
|
866
|
-
*/
|
|
868
|
+
*/
|
|
867
869
|
readonly interval: Object;
|
|
868
870
|
|
|
869
871
|
/**
|
|
@@ -871,7 +873,7 @@ interface RelativeDate {
|
|
|
871
873
|
* @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted
|
|
872
874
|
*
|
|
873
875
|
* @since 2019.1
|
|
874
|
-
*/
|
|
876
|
+
*/
|
|
875
877
|
readonly value: Object;
|
|
876
878
|
|
|
877
879
|
/**
|
|
@@ -879,7 +881,7 @@ interface RelativeDate {
|
|
|
879
881
|
* @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted
|
|
880
882
|
*
|
|
881
883
|
* @since 2019.1
|
|
882
|
-
*/
|
|
884
|
+
*/
|
|
883
885
|
readonly isRange: boolean;
|
|
884
886
|
|
|
885
887
|
/**
|
|
@@ -887,21 +889,21 @@ interface RelativeDate {
|
|
|
887
889
|
* @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted
|
|
888
890
|
*
|
|
889
891
|
* @since 2019.1
|
|
890
|
-
*/
|
|
892
|
+
*/
|
|
891
893
|
readonly dateId: Object;
|
|
892
894
|
|
|
893
895
|
/**
|
|
894
896
|
* Returns the object type name (query.RelativeDate)
|
|
895
897
|
*
|
|
896
898
|
* @since 2019.1
|
|
897
|
-
*/
|
|
899
|
+
*/
|
|
898
900
|
toString(): string;
|
|
899
|
-
|
|
901
|
+
|
|
900
902
|
/**
|
|
901
903
|
* get JSON format of the object
|
|
902
904
|
*
|
|
903
905
|
* @since 2019.1
|
|
904
|
-
*/
|
|
906
|
+
*/
|
|
905
907
|
toJSON(): any;
|
|
906
908
|
}
|
|
907
909
|
|
|
@@ -917,15 +919,15 @@ interface CreatePeriodOptions {
|
|
|
917
919
|
export function createPeriod(options: CreatePeriodOptions): Period;
|
|
918
920
|
|
|
919
921
|
interface CreateRelativeDateOptions {
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
922
|
+
/**
|
|
923
|
+
* The ID of the relative date to create.
|
|
924
|
+
*/
|
|
925
|
+
dateId: DateId;
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* The value to use to create the relative date.
|
|
929
|
+
*/
|
|
930
|
+
value: number;
|
|
929
931
|
}
|
|
930
932
|
|
|
931
933
|
|
|
@@ -1241,30 +1243,30 @@ export enum ReturnType {
|
|
|
1241
1243
|
* The field context determines how field values are displayed in a column.
|
|
1242
1244
|
*/
|
|
1243
1245
|
export enum FieldContext {
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1246
|
+
/** Displays converted currency amounts using the exchange rate that was in effect on a specific date. */
|
|
1247
|
+
CONVERTED = "CONVERTED",
|
|
1248
|
+
/** Displays consolidated currency amounts in the base currency. */
|
|
1249
|
+
CURRENCY_CONSOLIDATED = "CURRENCY_CONSOLIDATED",
|
|
1250
|
+
/**
|
|
1251
|
+
* Displays user-friendly field values.
|
|
1252
|
+
* For example, for the entity field on Transaction records, using the DISPLAY enum value displays the name of the entity instead of its ID.
|
|
1253
|
+
*/
|
|
1254
|
+
DISPLAY = "DISPLAY",
|
|
1255
|
+
/**
|
|
1256
|
+
* Displays user-friendly field values for hierarchical fields (for example, “Parent Company : SUB CAD”).
|
|
1257
|
+
* This value is similar to the DISPLAY enum value but applies to hierarchical fields.
|
|
1258
|
+
*/
|
|
1259
|
+
HIERARCHY = "HIERARCHY",
|
|
1260
|
+
/**
|
|
1261
|
+
* Displays raw field values for hierarchical fields (for example, “1 : 5”).
|
|
1262
|
+
* This value is similar to the RAW enum value but applies to hierarchical fields.
|
|
1263
|
+
*/
|
|
1264
|
+
HIERARCHY_IDENTIFIER = "HIERARCHY_IDENTIFIER",
|
|
1265
|
+
/**
|
|
1266
|
+
* Displays raw field values.
|
|
1267
|
+
* For example, for the entity field on Transaction records, using the RAW enum value displays the ID of the entity.
|
|
1268
|
+
*/
|
|
1269
|
+
RAW = "RAW"
|
|
1268
1270
|
}
|
|
1269
1271
|
|
|
1270
1272
|
declare enum PeriodAdjustment {
|
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": "2022.2.
|
|
11
|
+
"version": "2022.2.17",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|