@hitc/netsuite-types 2022.1.2 → 2022.1.3
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 +89 -10
- package/package.json +1 -1
package/N/query.d.ts
CHANGED
|
@@ -46,14 +46,27 @@ interface JoinFromOptions {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
interface CreateConditionOptions {
|
|
49
|
-
/** Field (column) id */
|
|
50
|
-
fieldId
|
|
49
|
+
/** Field (column) id. Required if options.operator and options.values are used. */
|
|
50
|
+
fieldId?: string;
|
|
51
51
|
|
|
52
52
|
/** Use the Operator enum. */
|
|
53
53
|
operator: Operator;
|
|
54
54
|
|
|
55
|
-
/**
|
|
56
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Array of values to use for the condition.
|
|
57
|
+
* 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.
|
|
58
|
+
*/
|
|
59
|
+
values: string | boolean | string[] | boolean[] | number[] | Date[] | RelativeDate[] | Period[]; // You wouldn't have multiple boolean values in an array, obviously. But you might specify it like: [true].
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 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.
|
|
63
|
+
* Use the appropriate query.ReturnType enum value to pass in your argument. This enum holds all the supported values for this parameter.
|
|
64
|
+
* Required if options.fieldId is not used.
|
|
65
|
+
*/
|
|
66
|
+
formula?: string;
|
|
67
|
+
|
|
68
|
+
/** Required if options.formula is used. */
|
|
69
|
+
type?: string;
|
|
57
70
|
|
|
58
71
|
/** Aggregate function. Use the Aggregate enum. */
|
|
59
72
|
aggregate?: string;
|
|
@@ -172,10 +185,11 @@ interface CreateSortOptions {
|
|
|
172
185
|
}
|
|
173
186
|
|
|
174
187
|
interface CreateQueryOptions {
|
|
175
|
-
/**
|
|
176
|
-
* The query type. Use the Type enum.
|
|
177
|
-
*/
|
|
188
|
+
/** The query type. Use the Type enum. */
|
|
178
189
|
type: string;
|
|
190
|
+
columns?: Column[];
|
|
191
|
+
condition?: Condition;
|
|
192
|
+
sort?: Sort[];
|
|
179
193
|
}
|
|
180
194
|
|
|
181
195
|
interface LoadQueryOptions {
|
|
@@ -184,9 +198,7 @@ interface LoadQueryOptions {
|
|
|
184
198
|
}
|
|
185
199
|
|
|
186
200
|
interface DeleteQueryOptions {
|
|
187
|
-
/**
|
|
188
|
-
* Id of query to be delete
|
|
189
|
-
*/
|
|
201
|
+
/** The id of query to be deleted. */
|
|
190
202
|
id: number;
|
|
191
203
|
}
|
|
192
204
|
|
|
@@ -725,6 +737,19 @@ export interface PageRange {
|
|
|
725
737
|
readonly size: number;
|
|
726
738
|
}
|
|
727
739
|
|
|
740
|
+
/** A period of time to use in query conditions. Use query.createPeriod(options) to create this object. */
|
|
741
|
+
interface Period {
|
|
742
|
+
/** The adjustment of the period. This property uses values from the query.PeriodAdjustment enum. */
|
|
743
|
+
readonly adjustment: string;
|
|
744
|
+
/** The code of the period. This property uses values from the query.PeriodCode enum. */
|
|
745
|
+
readonly code: string;
|
|
746
|
+
/**
|
|
747
|
+
* The type of the period. This property uses values from the query.PeriodType enum.
|
|
748
|
+
* If you create a period using query.createPeriod(options) and do not specify a value for the options.type parameter, the default value of this property is query.PeriodType.START.
|
|
749
|
+
*/
|
|
750
|
+
readonly type: string;
|
|
751
|
+
}
|
|
752
|
+
|
|
728
753
|
export interface Iterator {
|
|
729
754
|
each(f: (result: Result) => boolean): void;
|
|
730
755
|
}
|
|
@@ -882,6 +907,17 @@ interface RelativeDate {
|
|
|
882
907
|
toJSON(): any;
|
|
883
908
|
}
|
|
884
909
|
|
|
910
|
+
interface CreatePeriodOptions {
|
|
911
|
+
/** The code of the period. This property uses values from the query.PeriodCode enum. */
|
|
912
|
+
code: PeriodCode;
|
|
913
|
+
/** The adjustment of the period. This property uses values from the query.PeriodAdjustment enum. */
|
|
914
|
+
adjustment?: PeriodAdjustment;
|
|
915
|
+
/** The type of the period. This property uses values from the query.PeriodType enum. The default value of this property is query.PeriodType.START. */
|
|
916
|
+
type?: PeriodType;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
export function createPeriod(options: CreatePeriodOptions): Period;
|
|
920
|
+
|
|
885
921
|
interface CreateRelativeDateOptions {
|
|
886
922
|
/**
|
|
887
923
|
* The ID of the relative date to create.
|
|
@@ -1233,6 +1269,49 @@ export enum FieldContext {
|
|
|
1233
1269
|
RAW = "RAW"
|
|
1234
1270
|
}
|
|
1235
1271
|
|
|
1272
|
+
declare enum PeriodAdjustment {
|
|
1273
|
+
ALL,
|
|
1274
|
+
NOT_LAST
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
declare enum PeriodCode {
|
|
1278
|
+
FIRST_FISCAL_QUARTER_LAST_FY,
|
|
1279
|
+
FIRST_FISCAL_QUARTER_THIS_FY,
|
|
1280
|
+
FISCAL_QUARTER_BEFORE_LAST,
|
|
1281
|
+
FISCAL_YEAR_BEFORE_LAST,
|
|
1282
|
+
FOURTH_FISCAL_QUARTER_LAST_FY,
|
|
1283
|
+
FOURTH_FISCAL_QUARTER_THIS_FY,
|
|
1284
|
+
LAST_FISCAL_QUARTER,
|
|
1285
|
+
LAST_FISCAL_QUARTER_ONE_FISCAL_YEAR_AGO,
|
|
1286
|
+
LAST_FISCAL_QUARTER_TO_PERIOD,
|
|
1287
|
+
LAST_FISCAL_YEAR,
|
|
1288
|
+
LAST_FISCAL_YEAR_TO_PERIOD,
|
|
1289
|
+
LAST_PERIOD,
|
|
1290
|
+
LAST_PERIOD_ONE_FISCAL_QUARTER_AGO,
|
|
1291
|
+
LAST_PERIOD_ONE_FISCAL_YEAR_AGO,
|
|
1292
|
+
LAST_ROLLING_18_PERIODS,
|
|
1293
|
+
LAST_ROLLING_6_FISCAL_QUARTERS,
|
|
1294
|
+
PERIOD_BEFORE_LAST,
|
|
1295
|
+
SAME_FISCAL_QUARTER_LAST_FY,
|
|
1296
|
+
SAME_FISCAL_QUARTER_LAST_FY_TO_PERIOD,
|
|
1297
|
+
SAME_PERIOD_LAST_FY,
|
|
1298
|
+
SAME_PERIOD_LAST_FISCAL_QUARTER,
|
|
1299
|
+
SECOND_FISCAL_QUARTER_LAST_FY,
|
|
1300
|
+
SECOND_FISCAL_QUARTER_THIS_FY,
|
|
1301
|
+
THIRD_FISCAL_QUARTER_LAST_FY,
|
|
1302
|
+
THIRD_FISCAL_QUARTER_THIS_FY,
|
|
1303
|
+
THIS_FISCAL_QUARTER,
|
|
1304
|
+
THIS_FISCAL_QUARTER_TO_PERIOD,
|
|
1305
|
+
THIS_FISCAL_YEAR,
|
|
1306
|
+
THIS_FISCAL_YEAR_TO_PERIOD,
|
|
1307
|
+
THIS_PERIOD
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
declare enum PeriodType {
|
|
1311
|
+
END,
|
|
1312
|
+
START
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1236
1315
|
export enum SortLocale {
|
|
1237
1316
|
ARABIC = "ARABIC",
|
|
1238
1317
|
ARABIC_ABJ_MATCH = "ARABIC_ABJ_MATCH",
|
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.1.
|
|
11
|
+
"version": "2022.1.3",
|
|
12
12
|
"main": "index.d.ts",
|
|
13
13
|
"author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
|
|
14
14
|
"license": "MIT",
|