@deephaven-enterprise/query-utils 1.20240723.62-alpha-fix-dependencies.1
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/LICENSE.md +136 -0
- package/dist/DraftQuery.d.ts +137 -0
- package/dist/DraftQuery.js +208 -0
- package/dist/QueryColumns.d.ts +324 -0
- package/dist/QueryColumns.js +320 -0
- package/dist/QueryScheduler.d.ts +348 -0
- package/dist/QueryScheduler.js +914 -0
- package/dist/QuerySchedulerValidation.d.ts +76 -0
- package/dist/QuerySchedulerValidation.js +306 -0
- package/dist/QueryType.d.ts +12 -0
- package/dist/QueryType.js +13 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/package.json +32 -0
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { CalendarDateTime } from '@internationalized/date';
|
|
2
|
+
/**
|
|
3
|
+
* QueryScheduler is the client side equivalent of the server side class IrisScheduler.
|
|
4
|
+
*
|
|
5
|
+
* The server stores scheduling data as an array of Strings. This class converts that array
|
|
6
|
+
* into an object that can be manipulated by the UI. It then converts back to an array for
|
|
7
|
+
* storage on the server.
|
|
8
|
+
*/
|
|
9
|
+
export declare class QueryScheduler {
|
|
10
|
+
type: string;
|
|
11
|
+
startTimeInternal: number;
|
|
12
|
+
stopTimeInternal: number;
|
|
13
|
+
timeZone: string;
|
|
14
|
+
schedulingDisabled: boolean;
|
|
15
|
+
overnightInternal: boolean;
|
|
16
|
+
repeatEnabled: boolean;
|
|
17
|
+
stopTimeDisabledInternal: boolean;
|
|
18
|
+
repeatInterval: number;
|
|
19
|
+
skipIfUnsuccessful: boolean;
|
|
20
|
+
restartErrorCount: number;
|
|
21
|
+
restartDelayMinutes: number;
|
|
22
|
+
restartWhenRunning: string;
|
|
23
|
+
businessDays: boolean;
|
|
24
|
+
dailyBusinessCalendar: string;
|
|
25
|
+
dailyDays: boolean[];
|
|
26
|
+
firstBusinessDay: boolean;
|
|
27
|
+
lastBusinessDay: boolean;
|
|
28
|
+
specificDays: boolean;
|
|
29
|
+
months: boolean[];
|
|
30
|
+
monthlyDays: boolean[];
|
|
31
|
+
monthlyBusinessCalendar: string;
|
|
32
|
+
dailyRestart: boolean;
|
|
33
|
+
runOnFailure: boolean;
|
|
34
|
+
restartOnCondition: boolean;
|
|
35
|
+
dependentOnQuerySerials: string[];
|
|
36
|
+
useMinStartTime: boolean;
|
|
37
|
+
runOnAny: boolean;
|
|
38
|
+
deadlineStartTime: number;
|
|
39
|
+
deadlineEndTime: number;
|
|
40
|
+
runEveryTime: boolean;
|
|
41
|
+
temporaryQueueName: string;
|
|
42
|
+
expirationTimeMillis: number;
|
|
43
|
+
temporaryDependentOnQuerySerials: string[];
|
|
44
|
+
startDateTime: CalendarDateTime | null;
|
|
45
|
+
stopDateTime: CalendarDateTime | null;
|
|
46
|
+
static defaultCalendar?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a Default Scheduler.
|
|
49
|
+
*/
|
|
50
|
+
static createDefault: () => QueryScheduler;
|
|
51
|
+
static makeDefaultScheduling(restartQueryWhenRunningDefault: string, timeZone: string): [string, string];
|
|
52
|
+
static setDefaultCalendar(name: string): void;
|
|
53
|
+
static parseLocalTime: (string: string) => number;
|
|
54
|
+
static localTimeToString: (timeInSeconds: number) => string;
|
|
55
|
+
static MAX_LOCAL_TIME: number;
|
|
56
|
+
static INVALID_SERIAL: string;
|
|
57
|
+
static arrayToDelimitedString: <T>(token: string, array: T[]) => string;
|
|
58
|
+
static TYPES: Readonly<{
|
|
59
|
+
DAILY: "com.illumon.iris.controller.IrisQuerySchedulerDaily";
|
|
60
|
+
MONTHLY: "com.illumon.iris.controller.IrisQuerySchedulerMonthly";
|
|
61
|
+
CONTINUOUS: "com.illumon.iris.controller.IrisQuerySchedulerContinuous";
|
|
62
|
+
DEPENDENT: "com.illumon.iris.controller.IrisQuerySchedulerDependent";
|
|
63
|
+
TEMPORARY: "com.illumon.iris.controller.IrisQuerySchedulerTemporary";
|
|
64
|
+
RANGE: "com.illumon.iris.controller.IrisQuerySchedulerRange";
|
|
65
|
+
}>;
|
|
66
|
+
static TOKENS: Readonly<{
|
|
67
|
+
SCHEDULER_TYPE: "SchedulerType";
|
|
68
|
+
DELIMITER: "=";
|
|
69
|
+
START_TIME: "StartTime";
|
|
70
|
+
STOP_TIME: "StopTime";
|
|
71
|
+
OVERNIGHT: "Overnight";
|
|
72
|
+
TIME_ZONE: "TimeZone";
|
|
73
|
+
DISABLED: "SchedulingDisabled";
|
|
74
|
+
REPEAT_ENABLED: "RepeatEnabled";
|
|
75
|
+
REPEAT_INTERVAL: "RepeatInterval";
|
|
76
|
+
SKIP_IF_UNSUCCESSFUL: "SkipIfUnsuccessful";
|
|
77
|
+
STOP_TIME_DISABLED: "StopTimeDisabled";
|
|
78
|
+
RESTART_ERROR_COUNT: "RestartErrorCount";
|
|
79
|
+
RESTART_ERROR_DELAY: "RestartErrorDelay";
|
|
80
|
+
RESTART_WHEN_RUNNING: "RestartWhenRunning";
|
|
81
|
+
BUSINESS_DAYS: "BusinessDays";
|
|
82
|
+
CALENDAR: "Calendar";
|
|
83
|
+
DAYS: "Days";
|
|
84
|
+
FIRST_BUSINESS_DAY: "FirstBusinessDay";
|
|
85
|
+
LAST_BUSINESS_DAY: "LastBusinessDay";
|
|
86
|
+
SPECIFIC_DAYS: "SpecificDays";
|
|
87
|
+
MONTHS: "Months";
|
|
88
|
+
DAILY_RESTART: "DailyRestart";
|
|
89
|
+
RUN_ON_FAILURE: "RunOnFailure";
|
|
90
|
+
RESTART_ON_CONDITION: "RestartOnCondition";
|
|
91
|
+
DEPENDENT_QUERY_SERIAL: "DependentQuerySerial";
|
|
92
|
+
USE_MIN_START_TIME: "UseMinStartTime";
|
|
93
|
+
RUN_ON_ANY: "RunOnAny";
|
|
94
|
+
DEADLINE_START: "DeadlineStart";
|
|
95
|
+
DEADLINE_END: "DeadlineEnd";
|
|
96
|
+
RUN_EACH_TIME: "RunEachTime";
|
|
97
|
+
TEMPORARY_QUEUE_NAME: "TemporaryQueueName";
|
|
98
|
+
TEMPORARY_EXPIRATION_TIME_MILLIS: "TemporaryExpirationTimeMillis";
|
|
99
|
+
TEMPORARY_DEPENDENT_QUERY_SERIAL: "TemporaryDependentQuerySerial";
|
|
100
|
+
USE_START_DATE_TIME: "UseStartDateTime";
|
|
101
|
+
USE_STOP_DATE_TIME: "UseStopDateTime";
|
|
102
|
+
START_DATE: "StartDate";
|
|
103
|
+
STOP_DATE: "StopDate";
|
|
104
|
+
SERIAL_DELIMITER: ";";
|
|
105
|
+
}>;
|
|
106
|
+
static FIELDS: Readonly<{
|
|
107
|
+
readonly TYPE: "type";
|
|
108
|
+
readonly START_TIME: "startTime";
|
|
109
|
+
readonly STOP_TIME: "stopTime";
|
|
110
|
+
readonly TIME_ZONE: "timeZone";
|
|
111
|
+
readonly SCHEDULING_DISABLED: "schedulingDisabled";
|
|
112
|
+
readonly OVERNIGHT: "overnight";
|
|
113
|
+
readonly REPEAT_ENABLED: "repeatEnabled";
|
|
114
|
+
readonly STOP_TIME_DISABLED: "stopTimeDisabled";
|
|
115
|
+
readonly REPEAT_INTERVAL: "repeatInterval";
|
|
116
|
+
readonly SKIP_IF_UNSUCCESSFUL: "skipIfUnsuccessful";
|
|
117
|
+
readonly RESTART_ERROR_COUNT: "restartErrorCount";
|
|
118
|
+
readonly RESTART_DELAY_MINUTES: "restartDelayMinutes";
|
|
119
|
+
readonly RESTART_WHEN_RUNNING: "restartWhenRunning";
|
|
120
|
+
readonly BUSINESS_DAYS: "businessDays";
|
|
121
|
+
readonly DAILY_BUSINESS_CALENDAR: "dailyBusinessCalendar";
|
|
122
|
+
readonly DAILY_DAYS: "dailyDays";
|
|
123
|
+
readonly FIRST_BUSINESS_DAY: "firstBusinessDay";
|
|
124
|
+
readonly LAST_BUSINESS_DAY: "lastBusinessDay";
|
|
125
|
+
readonly SPECIFIC_DAYS: "specificDays";
|
|
126
|
+
readonly MONTHS: "months";
|
|
127
|
+
readonly MONTHLY_DAYS: "monthlyDays";
|
|
128
|
+
readonly MONTHLY_BUSINESS_CALENDAR: "monthlyBusinessCalendar";
|
|
129
|
+
readonly DAILY_RESTART: "dailyRestart";
|
|
130
|
+
readonly RUN_ON_FAILURE: "runOnFailure";
|
|
131
|
+
readonly RESTART_ON_CONDITION: "restartOnCondition";
|
|
132
|
+
readonly DEPENDENT_ON_QUERY_SERIALS: "dependentOnQuerySerials";
|
|
133
|
+
readonly USE_MIN_START_TIME: "useMinStartTime";
|
|
134
|
+
readonly RUN_ON_ANY: "runOnAny";
|
|
135
|
+
readonly DEADLINE_START_TIME: "deadlineStartTime";
|
|
136
|
+
readonly DEADLINE_END_TIME: "deadlineEndTime";
|
|
137
|
+
readonly RUN_EVERY_TIME: "runEveryTime";
|
|
138
|
+
readonly TEMPORARY_QUEUE_NAME: "temporaryQueueName";
|
|
139
|
+
readonly EXPIRATION_TIME_MILLIS: "expirationTimeMillis";
|
|
140
|
+
readonly TEMPORARY_DEPENDENT_ON_QUERY_SERIALS: "temporaryDependentOnQuerySerials";
|
|
141
|
+
readonly START_DATE_TIME: "startDateTime";
|
|
142
|
+
readonly STOP_DATE_TIME: "stopDateTime";
|
|
143
|
+
}>;
|
|
144
|
+
static DAYS_PER_WEEK: number;
|
|
145
|
+
static DAYS_PER_MONTH: number;
|
|
146
|
+
static MONTHS_PER_YEAR: number;
|
|
147
|
+
static MAX_ERROR_RESTART_COUNT: number;
|
|
148
|
+
static UNLIMITED_ERROR_RESTART_INDEX: number;
|
|
149
|
+
static DAYS: Readonly<{
|
|
150
|
+
SUN: {
|
|
151
|
+
text: string;
|
|
152
|
+
value: number;
|
|
153
|
+
};
|
|
154
|
+
MON: {
|
|
155
|
+
text: string;
|
|
156
|
+
value: number;
|
|
157
|
+
};
|
|
158
|
+
TUE: {
|
|
159
|
+
text: string;
|
|
160
|
+
value: number;
|
|
161
|
+
};
|
|
162
|
+
WED: {
|
|
163
|
+
text: string;
|
|
164
|
+
value: number;
|
|
165
|
+
};
|
|
166
|
+
THU: {
|
|
167
|
+
text: string;
|
|
168
|
+
value: number;
|
|
169
|
+
};
|
|
170
|
+
FRI: {
|
|
171
|
+
text: string;
|
|
172
|
+
value: number;
|
|
173
|
+
};
|
|
174
|
+
SAT: {
|
|
175
|
+
text: string;
|
|
176
|
+
value: number;
|
|
177
|
+
};
|
|
178
|
+
}>;
|
|
179
|
+
static MONTHS: Readonly<{
|
|
180
|
+
JAN: {
|
|
181
|
+
text: string;
|
|
182
|
+
value: number;
|
|
183
|
+
};
|
|
184
|
+
FEB: {
|
|
185
|
+
text: string;
|
|
186
|
+
value: number;
|
|
187
|
+
};
|
|
188
|
+
MAR: {
|
|
189
|
+
text: string;
|
|
190
|
+
value: number;
|
|
191
|
+
};
|
|
192
|
+
APR: {
|
|
193
|
+
text: string;
|
|
194
|
+
value: number;
|
|
195
|
+
};
|
|
196
|
+
MAY: {
|
|
197
|
+
text: string;
|
|
198
|
+
value: number;
|
|
199
|
+
};
|
|
200
|
+
JUN: {
|
|
201
|
+
text: string;
|
|
202
|
+
value: number;
|
|
203
|
+
};
|
|
204
|
+
JUL: {
|
|
205
|
+
text: string;
|
|
206
|
+
value: number;
|
|
207
|
+
};
|
|
208
|
+
AUG: {
|
|
209
|
+
text: string;
|
|
210
|
+
value: number;
|
|
211
|
+
};
|
|
212
|
+
SEP: {
|
|
213
|
+
text: string;
|
|
214
|
+
value: number;
|
|
215
|
+
};
|
|
216
|
+
OCT: {
|
|
217
|
+
text: string;
|
|
218
|
+
value: number;
|
|
219
|
+
};
|
|
220
|
+
NOV: {
|
|
221
|
+
text: string;
|
|
222
|
+
value: number;
|
|
223
|
+
};
|
|
224
|
+
DEC: {
|
|
225
|
+
text: string;
|
|
226
|
+
value: number;
|
|
227
|
+
};
|
|
228
|
+
}>;
|
|
229
|
+
static RESTART_WHEN_RUNNING_OPTION: Readonly<{
|
|
230
|
+
YES: "Yes";
|
|
231
|
+
NO: "No";
|
|
232
|
+
}>;
|
|
233
|
+
static validateSplitLength(s: unknown, splitString: string[], length: number): void;
|
|
234
|
+
/**
|
|
235
|
+
* Creats a new QueryScheduler object.
|
|
236
|
+
*
|
|
237
|
+
* @param stringArray an array of strings representing a scheduler
|
|
238
|
+
*/
|
|
239
|
+
constructor(stringArray?: readonly string[]);
|
|
240
|
+
/**
|
|
241
|
+
* Automatically turns the overnight flag on / off based on start and stop time.
|
|
242
|
+
*/
|
|
243
|
+
checkForOvernight(): void;
|
|
244
|
+
get startTime(): number;
|
|
245
|
+
set startTime(value: number);
|
|
246
|
+
get stopTime(): number;
|
|
247
|
+
set stopTime(value: number);
|
|
248
|
+
get overnight(): boolean;
|
|
249
|
+
set overnight(value: boolean);
|
|
250
|
+
get stopTimeDisabled(): boolean;
|
|
251
|
+
set stopTimeDisabled(value: boolean);
|
|
252
|
+
/**
|
|
253
|
+
* Creates a deep copy of this scheduler.
|
|
254
|
+
*
|
|
255
|
+
* @returns a copy of this scheduler
|
|
256
|
+
*/
|
|
257
|
+
deepCopy(): QueryScheduler;
|
|
258
|
+
/**
|
|
259
|
+
* Ensures that the scheduler has meaningful defaults for all fields. This allows
|
|
260
|
+
* the UI to quickly switch between scheduler types. Note that these defaults do
|
|
261
|
+
* not create valid schedulers for all types.
|
|
262
|
+
*/
|
|
263
|
+
initDefaults(): void;
|
|
264
|
+
/**
|
|
265
|
+
* Parses an array of strings into a QueryScheduler object.
|
|
266
|
+
*
|
|
267
|
+
* @param stringArray an array of strings representing a scheduler
|
|
268
|
+
*/
|
|
269
|
+
parseFromStringArray(stringArray: readonly string[]): void;
|
|
270
|
+
/**
|
|
271
|
+
* Does the base parsing that is common to all scheduler types.
|
|
272
|
+
*
|
|
273
|
+
* @param stringArray an array of strings representing a scheduler
|
|
274
|
+
* @returns an array of strings fo type specific parsers
|
|
275
|
+
*/
|
|
276
|
+
parseBaseScheduler(stringArray: readonly string[]): string[];
|
|
277
|
+
/**
|
|
278
|
+
* Parses the Daily scheduler type.
|
|
279
|
+
*
|
|
280
|
+
* @param stringArray an array of strings representing a scheduler
|
|
281
|
+
*/
|
|
282
|
+
parseDailyScheduler(stringArray: string[]): void;
|
|
283
|
+
/**
|
|
284
|
+
* Parses the Monthly scheduler type.
|
|
285
|
+
*
|
|
286
|
+
* @param stringArray an array of strings representing a scheduler
|
|
287
|
+
*/
|
|
288
|
+
parseMonthlyScheduler(stringArray: string[]): void;
|
|
289
|
+
/**
|
|
290
|
+
* Parses the Continuous scheduler type.
|
|
291
|
+
*
|
|
292
|
+
* @param stringArray an array of strings representing a scheduler
|
|
293
|
+
*/
|
|
294
|
+
parseContinuousScheduler(stringArray: string[]): void;
|
|
295
|
+
/**
|
|
296
|
+
* Parses the Dependent scheduler type.
|
|
297
|
+
*
|
|
298
|
+
* @param stringArray an array of strings representing a scheduler
|
|
299
|
+
*/
|
|
300
|
+
parseDependentScheduler(stringArray: string[]): void;
|
|
301
|
+
/**
|
|
302
|
+
* Parses the Temporary scheduler type.
|
|
303
|
+
*
|
|
304
|
+
* @param stringArray an array of strings representing a scheduler
|
|
305
|
+
*/
|
|
306
|
+
parseTemporaryScheduler(stringArray: string[]): void;
|
|
307
|
+
/**
|
|
308
|
+
* Parses the Range scheduler type.
|
|
309
|
+
*
|
|
310
|
+
* @param stringArray an array of strings representing a scheduler
|
|
311
|
+
*/
|
|
312
|
+
parseRangeScheduler(stringArray: string[]): void;
|
|
313
|
+
/**
|
|
314
|
+
* Generates an array of strings that describes the scheduler.
|
|
315
|
+
*
|
|
316
|
+
* @returns an array of strings describing the scheduler
|
|
317
|
+
*/
|
|
318
|
+
toStringArray(): string[];
|
|
319
|
+
/**
|
|
320
|
+
* Generates an array of strings for the Base scheduler.
|
|
321
|
+
*/
|
|
322
|
+
toStringArrayBase(arrayEntries: string[]): void;
|
|
323
|
+
/**
|
|
324
|
+
* Generates an array of strings for a Daily scheduler.
|
|
325
|
+
*/
|
|
326
|
+
toStringArrayDaily(arrayEntries: string[]): void;
|
|
327
|
+
/**
|
|
328
|
+
* Generates an array of strings for a Monthly scheduler.
|
|
329
|
+
*/
|
|
330
|
+
toStringArrayMonthly(arrayEntries: string[]): void;
|
|
331
|
+
/**
|
|
332
|
+
* Generates an array of strings for a Continuous scheduler.
|
|
333
|
+
*/
|
|
334
|
+
toStringArrayContinuous(arrayEntries: string[]): void;
|
|
335
|
+
/**
|
|
336
|
+
* Generates an array of strings for a Dependent scheduler.
|
|
337
|
+
*/
|
|
338
|
+
toStringArrayDependent(arrayEntries: string[]): void;
|
|
339
|
+
/**
|
|
340
|
+
* Generates an array of strings for a Temporary scheduler.
|
|
341
|
+
*/
|
|
342
|
+
toStringArrayTemporary(arrayEntries: string[]): void;
|
|
343
|
+
/**
|
|
344
|
+
* Generates an array of strings for a Range scheduler.
|
|
345
|
+
*/
|
|
346
|
+
toStringArrayRange(arrayEntries: string[]): void;
|
|
347
|
+
}
|
|
348
|
+
export default QueryScheduler;
|