@hitc/netsuite-types 2024.2.8 → 2024.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/dataset.d.ts +13 -1
- package/N/search.d.ts +31 -0
- package/N/ui/serverWidget.d.ts +1 -1
- package/package.json +1 -1
package/N/dataset.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export interface Dataset {
|
|
|
58
58
|
* The maximum number of results per page is 1000. The minimum number of results per page is 5, except for the last page, which may include fewer than 5 results.
|
|
59
59
|
*/
|
|
60
60
|
runPaged(options?: { pageSize: number }): PagedData;
|
|
61
|
-
save():
|
|
61
|
+
save(options: SaveOptions): SaveResult;
|
|
62
62
|
columns: Column[];
|
|
63
63
|
condition: Condition;
|
|
64
64
|
description: string;
|
|
@@ -67,6 +67,18 @@ export interface Dataset {
|
|
|
67
67
|
type: string;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
type DatasetId = `custdataset${string}`; // This type is a template literal type where the Dataset ID must begin with the fixed prefix "custdataset"
|
|
71
|
+
|
|
72
|
+
interface SaveOptions {
|
|
73
|
+
name: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
id?: DatasetId;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface SaveResult {
|
|
79
|
+
id: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
70
82
|
interface CreateOptions {
|
|
71
83
|
columns?: Column[];
|
|
72
84
|
condition?: Condition;
|
package/N/search.d.ts
CHANGED
|
@@ -25,6 +25,21 @@ export interface Filter {
|
|
|
25
25
|
readonly summary: Summary;
|
|
26
26
|
/** Formula used by the search filter. Use this property to get or set the formula used by the search filter. */
|
|
27
27
|
formula: string;
|
|
28
|
+
/** Returns the object type name */
|
|
29
|
+
toString(): string;
|
|
30
|
+
/** Get JSON format of the object */
|
|
31
|
+
toJSON(): {
|
|
32
|
+
name: string;
|
|
33
|
+
join: string | null | undefined;
|
|
34
|
+
operator: keyof typeof Operator;
|
|
35
|
+
summary: keyof typeof Summary | null | undefined;
|
|
36
|
+
formula: string | null | undefined;
|
|
37
|
+
values: string[];
|
|
38
|
+
isor: boolean;
|
|
39
|
+
isnot: boolean;
|
|
40
|
+
leftparens: number;
|
|
41
|
+
rightparens: number;
|
|
42
|
+
};
|
|
28
43
|
}
|
|
29
44
|
|
|
30
45
|
interface SearchColumnSetWhenOrderedByOptions {
|
|
@@ -52,6 +67,22 @@ export interface Column {
|
|
|
52
67
|
function?: string
|
|
53
68
|
/** The sort order of the column. Use the search.Sort enum to set the value. */
|
|
54
69
|
sort?: Sort;
|
|
70
|
+
/** Returns the object type name */
|
|
71
|
+
toString(): string;
|
|
72
|
+
/** Get JSON format of the object */
|
|
73
|
+
// toJSON(): { // See https://github.com/headintheclouddev/typings-suitescript-2.0/issues/320
|
|
74
|
+
// name: string;
|
|
75
|
+
// join: string | null | undefined;
|
|
76
|
+
// summary: keyof typeof Summary | null | undefined;
|
|
77
|
+
// label: string | null;
|
|
78
|
+
// type: string | null;
|
|
79
|
+
// formula: string | null | undefined;
|
|
80
|
+
// function: string | null | undefined;
|
|
81
|
+
// sortdir: keyof typeof Sort;
|
|
82
|
+
// whenorderedby: string | null | undefined;
|
|
83
|
+
// whenorderedbyjoin: string | null | undefined;
|
|
84
|
+
// whenorderedbyalias: string | null | undefined;
|
|
85
|
+
// };
|
|
55
86
|
}
|
|
56
87
|
|
|
57
88
|
export interface Result {
|
package/N/ui/serverWidget.d.ts
CHANGED
|
@@ -398,7 +398,7 @@ export interface Field {
|
|
|
398
398
|
/** An alternate name that you can assign to a serverWidget.Field object. */
|
|
399
399
|
alias: string;
|
|
400
400
|
/** The default value for this field. */
|
|
401
|
-
defaultValue: string | string[];
|
|
401
|
+
defaultValue: string | string[] | number;
|
|
402
402
|
/** The field internal ID. */
|
|
403
403
|
id: string;
|
|
404
404
|
/** Indicates whether the field is mandatory or optional. */
|
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": "2024.2.
|
|
11
|
+
"version": "2024.2.10",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|