@hitc/netsuite-types 2025.1.13 → 2025.1.14
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/email.d.ts +5 -5
- package/N/llm.d.ts +7 -7
- package/N/query.d.ts +18 -11
- package/package.json +1 -1
package/N/email.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ interface SendOptions {
|
|
|
11
11
|
* A maximum of 10 recipients (recipient + cc + bcc) is allowed.
|
|
12
12
|
* Note: Only the first recipient displays on the Communication tab (under the Recipient column).
|
|
13
13
|
*/
|
|
14
|
-
recipients: number[]|string[]|number|string;
|
|
14
|
+
recipients: number|string|number[]|string[]|readonly number[]|readonly string[];
|
|
15
15
|
/**
|
|
16
16
|
* The email address that appears in the reply-to header when an email is sent out.
|
|
17
17
|
*/
|
|
@@ -21,13 +21,13 @@ interface SendOptions {
|
|
|
21
21
|
* For multiple recipients, use an array of internal IDs or email addresses. You can use an array that contains a combination of internal IDs and email addresses.
|
|
22
22
|
* A maximum of 10 recipients (recipient + cc + bcc) is allowed.
|
|
23
23
|
*/
|
|
24
|
-
cc?: string[]|number[];
|
|
24
|
+
cc?: number[]|string[]|readonly number[]|readonly string[];
|
|
25
25
|
/**
|
|
26
26
|
* The internal ID or email address of the secondary recipient to blind copy.
|
|
27
27
|
* For multiple recipients, use an array of internal IDs or email addresses. You can use an array that contains a combination of internal IDs and email addresses.
|
|
28
28
|
* A maximum of 10 recipients (recipient + cc + bcc) is allowed.
|
|
29
29
|
*/
|
|
30
|
-
bcc?: string[]|number[];
|
|
30
|
+
bcc?: number[]|string[]|readonly number[]|readonly string[];
|
|
31
31
|
/**
|
|
32
32
|
* Subject of the outgoing message
|
|
33
33
|
*/
|
|
@@ -41,7 +41,7 @@ interface SendOptions {
|
|
|
41
41
|
* An individual attachment must not exceed 5MB and the total message size must be 15MB or less.
|
|
42
42
|
* Note: Supported for server-side scripts only.
|
|
43
43
|
*/
|
|
44
|
-
attachments?: File[];
|
|
44
|
+
attachments?: File[]|readonly File[];
|
|
45
45
|
/**
|
|
46
46
|
* Object that contains key/value pairs to associate the Message record with related records (including custom records).
|
|
47
47
|
*/
|
|
@@ -49,7 +49,7 @@ interface SendOptions {
|
|
|
49
49
|
/**
|
|
50
50
|
* If true, the Message record is not visible to an external Entity (for example, a customer or contact). Default is false.
|
|
51
51
|
*/
|
|
52
|
-
isInternalOnly?: boolean;
|
|
52
|
+
isInternalOnly?: boolean;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
interface RelatedRecordTypes {
|
package/N/llm.d.ts
CHANGED
|
@@ -101,32 +101,32 @@ export const getRemainingFreeEmbedUsage: GetRemainingFreeUsageFunction;
|
|
|
101
101
|
|
|
102
102
|
interface IEmbededFunction {
|
|
103
103
|
(options: IEmbedOptions): EmbeddedResponse;
|
|
104
|
-
promise(options: IEmbedOptions): EmbeddedResponse
|
|
104
|
+
promise(options: IEmbedOptions): Promise<EmbeddedResponse>;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
interface IEvaluatePromptFunction {
|
|
108
108
|
(options: IEvaluatePromptOptions): Response;
|
|
109
|
-
promise(options: IEvaluatePromptOptions): Response
|
|
109
|
+
promise(options: IEvaluatePromptOptions): Promise<Response>;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
interface IEvaluatePromptStreamedFunction {
|
|
113
113
|
(options: IEvaluatePromptOptions): StreamedResponse;
|
|
114
|
-
promise(options: IEvaluatePromptOptions): StreamedResponse
|
|
114
|
+
promise(options: IEvaluatePromptOptions): Promise<StreamedResponse>;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
interface GenerateTextFunction {
|
|
118
118
|
(options: IGenerateTextOptions): Response;
|
|
119
|
-
promise(options: IGenerateTextOptions): Response
|
|
119
|
+
promise(options: IGenerateTextOptions): Promise<Response>;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
interface GenerateTextStreamedFunction {
|
|
123
123
|
(options: IGenerateTextOptions): StreamedResponse;
|
|
124
|
-
promise(options: IGenerateTextOptions): StreamedResponse
|
|
124
|
+
promise(options: IGenerateTextOptions): Promise<StreamedResponse>;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
interface GetRemainingFreeUsageFunction {
|
|
128
128
|
(): number;
|
|
129
|
-
promise(): number
|
|
129
|
+
promise(): Promise<number>;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
interface EmbeddedResponse {
|
|
@@ -139,7 +139,7 @@ interface EmbeddedResponse {
|
|
|
139
139
|
|
|
140
140
|
interface IEmbedOptions {
|
|
141
141
|
/** An array of inputs to get embeddings for. */
|
|
142
|
-
inputs: string[];
|
|
142
|
+
inputs: string[] | readonly string[];
|
|
143
143
|
/** The embed model family to use. Use values from llm.EmbedModelFamily to set this value. If not specified, the Cohere Embed Multilingual model is used. */
|
|
144
144
|
embededModelFamily?: string;
|
|
145
145
|
/** Configuration needed for unlimited usage through OCI Generative AI Service. Required only when accessing the LLM through an Oracle Cloud Account and the OCI Generative AI Service. SuiteApps installed to target accounts are prevented from using the free usage pool for N/llm and must use the OCI configuration. */
|
package/N/query.d.ts
CHANGED
|
@@ -54,7 +54,13 @@ interface CreateConditionOptions {
|
|
|
54
54
|
* Array of values to use for the condition.
|
|
55
55
|
* Required if options.fieldId and options.operator are used, and options.operator does not have a value of query.Operator.EMPTY or query.Operator.EMPTY_NOT.
|
|
56
56
|
*/
|
|
57
|
-
values: string | boolean |
|
|
57
|
+
values: string | boolean |
|
|
58
|
+
string[] | readonly string[] |
|
|
59
|
+
boolean[] | readonly boolean[] | // You wouldn't have multiple boolean values in an array, obviously. But you might specify it like: [true].
|
|
60
|
+
number[] | readonly number[] |
|
|
61
|
+
Date[] | readonly Date[] |
|
|
62
|
+
RelativeDate[] | readonly RelativeDate[] |
|
|
63
|
+
Period[] | readonly Period[];
|
|
58
64
|
|
|
59
65
|
/**
|
|
60
66
|
* If you use the options.formula parameter, use this parameter to explicitly define the formula’s return type. This value sets the Condition.type property.
|
|
@@ -112,8 +118,8 @@ interface CreateColumnOptions {
|
|
|
112
118
|
|
|
113
119
|
/**
|
|
114
120
|
* An alias for this column. An alias is an alternate name for a column, and the alias is used in mapped results.
|
|
115
|
-
* In general, the alias is an optional property.
|
|
116
|
-
*
|
|
121
|
+
* In general, the alias is an optional property.
|
|
122
|
+
*
|
|
117
123
|
* To use mapped results, you must specify an alias in the following situations:
|
|
118
124
|
* 1. You must specify an alias for a column when the column uses a formula.
|
|
119
125
|
* 2. You must specify an alias when two columns in a joined query use the same field ID.
|
|
@@ -149,8 +155,8 @@ interface CreateColumnWithFormulaOptions {
|
|
|
149
155
|
|
|
150
156
|
/**
|
|
151
157
|
* An alias for this column. An alias is an alternate name for a column, and the alias is used in mapped results.
|
|
152
|
-
* In general, the alias is an optional property.
|
|
153
|
-
*
|
|
158
|
+
* In general, the alias is an optional property.
|
|
159
|
+
*
|
|
154
160
|
* To use mapped results, you must specify an alias in the following situations:
|
|
155
161
|
* 1. You must specify an alias for a column when the column uses a formula.
|
|
156
162
|
* 2. You must specify an alias when two columns in a joined query use the same field ID.
|
|
@@ -185,9 +191,9 @@ interface CreateSortOptions {
|
|
|
185
191
|
interface CreateQueryOptions {
|
|
186
192
|
/** The query type. Use the Type enum. */
|
|
187
193
|
type: string;
|
|
188
|
-
columns?: Column[];
|
|
194
|
+
columns?: Column[] | readonly Column[];
|
|
189
195
|
condition?: Condition;
|
|
190
|
-
sort?: Sort[];
|
|
196
|
+
sort?: Sort[] | readonly Sort[];
|
|
191
197
|
}
|
|
192
198
|
|
|
193
199
|
interface LoadQueryOptions {
|
|
@@ -206,8 +212,9 @@ export interface RunSuiteQLOptions {
|
|
|
206
212
|
*/
|
|
207
213
|
query: string;
|
|
208
214
|
|
|
209
|
-
params?: Array<string | number | boolean
|
|
210
|
-
|
|
215
|
+
params?: Array<string | number | boolean> |
|
|
216
|
+
ReadonlyArray<string | number | boolean>;
|
|
217
|
+
|
|
211
218
|
customScriptId?: string;
|
|
212
219
|
}
|
|
213
220
|
|
|
@@ -753,7 +760,7 @@ interface Period {
|
|
|
753
760
|
readonly code: string;
|
|
754
761
|
/**
|
|
755
762
|
* The type of the period. This property uses values from the query.PeriodType enum.
|
|
756
|
-
* If you create a period using query.createPeriod(options) and do not specify a value for the options.type
|
|
763
|
+
* If you create a period using query.createPeriod(options) and do not specify a value for the options.type
|
|
757
764
|
* parameter, the default value of this property is query.PeriodType.START.
|
|
758
765
|
*/
|
|
759
766
|
readonly type: string;
|
|
@@ -1260,7 +1267,7 @@ export enum FieldContext {
|
|
|
1260
1267
|
CONVERTED = "CONVERTED",
|
|
1261
1268
|
/** Displays consolidated currency amounts in the base currency. */
|
|
1262
1269
|
CURRENCY_CONSOLIDATED = "CURRENCY_CONSOLIDATED",
|
|
1263
|
-
/**
|
|
1270
|
+
/**
|
|
1264
1271
|
* Displays user-friendly field values.
|
|
1265
1272
|
* For example, for the entity field on Transaction records, using the DISPLAY enum value displays the name of the entity instead of its ID.
|
|
1266
1273
|
*/
|
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": "2025.1.
|
|
11
|
+
"version": "2025.1.14",
|
|
12
12
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|