@stackone/olap 1.42.0 → 1.44.0
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/dist/chunk-51fMIa0T.mjs +1 -0
- package/dist/index.cjs +78 -14
- package/dist/index.d.cts +53 -458
- package/dist/index.d.mts +54 -458
- package/dist/index.mjs +78 -14
- package/package.json +1 -1
- package/dist/chunk-C_uqNoKw.cjs +0 -1
- package/dist/chunk-vR2LO-B7.mjs +0 -1
- package/dist/client-CxiSp4Kz.mjs +0 -7
- package/dist/client-D_jZT_sh.cjs +0 -7
- package/dist/dist-cjs-7cgXmuN1.cjs +0 -1
- package/dist/dist-cjs-BBOPveZ_.cjs +0 -1
- package/dist/dist-cjs-BEXyl9CE.cjs +0 -1
- package/dist/dist-cjs-BJejHHw0.mjs +0 -1
- package/dist/dist-cjs-BROT1u6D.mjs +0 -21
- package/dist/dist-cjs-C3UFC3Rw.cjs +0 -1
- package/dist/dist-cjs-CDrv1zcx.cjs +0 -1
- package/dist/dist-cjs-CFQiiLMm.cjs +0 -1
- package/dist/dist-cjs-CImGb38T.mjs +0 -1
- package/dist/dist-cjs-C_zn_i01.cjs +0 -1
- package/dist/dist-cjs-CgFnrTst.cjs +0 -1
- package/dist/dist-cjs-Cj3NYQtI.mjs +0 -1
- package/dist/dist-cjs-CmG4hcDN.cjs +0 -1
- package/dist/dist-cjs-D24pTYrl.mjs +0 -1
- package/dist/dist-cjs-D2IONrv0.cjs +0 -1
- package/dist/dist-cjs-D2azcEBs.cjs +0 -1
- package/dist/dist-cjs-DC7dl5c4.cjs +0 -1
- package/dist/dist-cjs-DCc0jF-Z.mjs +0 -1
- package/dist/dist-cjs-DJQQKYqb.mjs +0 -1
- package/dist/dist-cjs-DNkXQvYD.mjs +0 -1
- package/dist/dist-cjs-DcIt6eMS.mjs +0 -5
- package/dist/dist-cjs-DdKFBEUG.mjs +0 -1
- package/dist/dist-cjs-DhtfbTa-.cjs +0 -1
- package/dist/dist-cjs-DtKIuDDF.cjs +0 -1
- package/dist/dist-cjs-DuCMBjQS.cjs +0 -21
- package/dist/dist-cjs-LWm2hVH_.cjs +0 -12
- package/dist/dist-cjs-PLsdzpHT.mjs +0 -1
- package/dist/dist-cjs-X19WxNr5.mjs +0 -1
- package/dist/dist-cjs-_8tdit4z.mjs +0 -1
- package/dist/dist-cjs-eAT0vqyG.cjs +0 -5
- package/dist/dist-cjs-ngBHCypA.mjs +0 -1
- package/dist/dist-cjs-qRyJRodq.mjs +0 -1
- package/dist/dist-cjs-t0C5x-PN.mjs +0 -1
- package/dist/dist-cjs-wmzGBAE4.mjs +0 -12
- package/dist/event-streams-CA37ge5J.mjs +0 -1
- package/dist/event-streams-XivmSWgG.cjs +0 -1
- package/dist/package--ZTLvSpm.cjs +0 -1
- package/dist/package-DmN2B-57.mjs +0 -1
- package/dist/signin-BIIeLOjk.mjs +0 -1
- package/dist/signin-Bxo7nUca.cjs +0 -1
- package/dist/sso-oidc-4-y3FFnG.mjs +0 -1
- package/dist/sso-oidc-Cd15Ws6v.cjs +0 -1
- package/dist/sts-BNVkCfCW.mjs +0 -1
- package/dist/sts-BbQcEhgP.mjs +0 -1
- package/dist/sts-JEd7nqQo.cjs +0 -1
- package/dist/sts-Rnhz_R5a.cjs +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,466 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { AxiosInstance } from "axios";
|
|
4
|
-
import * as redis from "redis";
|
|
5
|
-
import { Readable } from "node:stream";
|
|
1
|
+
import { ILogger } from "@stackone/logger";
|
|
2
|
+
import { HttpClient } from "@stackone/transport";
|
|
6
3
|
import { S3Client } from "@aws-sdk/client-s3";
|
|
7
4
|
import { Producer } from "@platformatic/kafka";
|
|
8
5
|
|
|
9
|
-
//#region
|
|
6
|
+
//#region \0rolldown/runtime.js
|
|
10
7
|
//#endregion
|
|
11
|
-
//#region
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
context
|
|
18
|
-
}: {
|
|
19
|
-
category?: string;
|
|
20
|
-
message: string;
|
|
21
|
-
traceId?: string;
|
|
22
|
-
context?: Record<string, unknown>;
|
|
23
|
-
}): void;
|
|
24
|
-
info({
|
|
25
|
-
category,
|
|
26
|
-
message,
|
|
27
|
-
traceId,
|
|
28
|
-
context
|
|
29
|
-
}: {
|
|
30
|
-
category?: string;
|
|
31
|
-
message: string;
|
|
32
|
-
traceId?: string;
|
|
33
|
-
context?: Record<string, unknown>;
|
|
34
|
-
}): void;
|
|
35
|
-
warning({
|
|
36
|
-
category,
|
|
37
|
-
message,
|
|
38
|
-
traceId,
|
|
39
|
-
error,
|
|
40
|
-
code,
|
|
41
|
-
context
|
|
42
|
-
}: {
|
|
43
|
-
category?: string;
|
|
44
|
-
message: string;
|
|
45
|
-
traceId?: string;
|
|
46
|
-
error?: LogError;
|
|
47
|
-
code?: string;
|
|
48
|
-
context?: Record<string, unknown>;
|
|
49
|
-
}): void;
|
|
50
|
-
error({
|
|
51
|
-
category,
|
|
52
|
-
message,
|
|
53
|
-
traceId,
|
|
54
|
-
error,
|
|
55
|
-
code,
|
|
56
|
-
context
|
|
57
|
-
}: {
|
|
58
|
-
category?: string;
|
|
59
|
-
message: string;
|
|
60
|
-
traceId?: string;
|
|
61
|
-
error?: LogError;
|
|
62
|
-
code: string;
|
|
63
|
-
context?: Record<string, unknown>;
|
|
64
|
-
}): void;
|
|
8
|
+
//#region ../../node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts
|
|
9
|
+
declare global {
|
|
10
|
+
/**
|
|
11
|
+
* interface merging stub.
|
|
12
|
+
*/
|
|
13
|
+
interface RequestInit {}
|
|
65
14
|
}
|
|
66
|
-
type LogError = Error & {
|
|
67
|
-
response?: {
|
|
68
|
-
data?: unknown;
|
|
69
|
-
};
|
|
70
|
-
context?: Record<string, unknown>;
|
|
71
|
-
url?: string;
|
|
72
|
-
};
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region ../transport/src/cacheClient/types.d.ts
|
|
75
|
-
interface ICacheClient<ClientType = unknown> {
|
|
76
|
-
isAvailable(): boolean;
|
|
77
|
-
getData<T>(key: string): Promise<T | null>;
|
|
78
|
-
getDataKeysFromGroup(groupKey: string): Promise<string[] | null>;
|
|
79
|
-
listData<T>({
|
|
80
|
-
partialKey,
|
|
81
|
-
limit,
|
|
82
|
-
cursor
|
|
83
|
-
}: {
|
|
84
|
-
partialKey: string;
|
|
85
|
-
limit?: number;
|
|
86
|
-
cursor?: string;
|
|
87
|
-
}): Promise<{
|
|
88
|
-
items: T[] | null;
|
|
89
|
-
cursor?: string;
|
|
90
|
-
}>;
|
|
91
|
-
setData<T>({
|
|
92
|
-
key,
|
|
93
|
-
value,
|
|
94
|
-
cacheTTL,
|
|
95
|
-
groupKeys,
|
|
96
|
-
groupKeyTTL
|
|
97
|
-
}: {
|
|
98
|
-
key: string;
|
|
99
|
-
value: T;
|
|
100
|
-
cacheTTL: number;
|
|
101
|
-
groupKeys?: string[];
|
|
102
|
-
groupKeyTTL?: number;
|
|
103
|
-
}): Promise<boolean>;
|
|
104
|
-
setTTL(key: string, cacheTTL: number): Promise<boolean>;
|
|
105
|
-
executeScript?<T>({
|
|
106
|
-
sha1,
|
|
107
|
-
keys,
|
|
108
|
-
args
|
|
109
|
-
}: {
|
|
110
|
-
sha1: string;
|
|
111
|
-
keys: string[];
|
|
112
|
-
args: string[];
|
|
113
|
-
}): Promise<T | null>;
|
|
114
|
-
loadScript?(script: string): Promise<string | null>;
|
|
115
|
-
scriptExists?(shas: string[]): Promise<boolean[]>;
|
|
116
|
-
increment?(key: string, cacheTTL: number): Promise<number | null>;
|
|
117
|
-
decrement?(key: string, cacheTTL: number): Promise<number | null>;
|
|
118
|
-
subscribe?<T extends boolean = false>(pattern: string, listener: PubSubListener<T>): Promise<boolean>;
|
|
119
|
-
unsubscribe?(pattern: string): Promise<boolean>;
|
|
120
|
-
publish?(channel: string, message: string): Promise<number | null>;
|
|
121
|
-
getClient?(): ClientType | null;
|
|
122
|
-
deleteData?(key: string, groupKeys?: string[]): Promise<boolean>;
|
|
123
|
-
close?(): Promise<void> | void;
|
|
124
|
-
}
|
|
125
|
-
type PubSubListener<ReturnsBuffer extends boolean = false> = <T extends (ReturnsBuffer extends true ? Buffer : string)>(message: T, channel: T) => unknown;
|
|
126
15
|
//#endregion
|
|
127
|
-
//#region
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
subPools?: ConcurrencySubPoolConfig[];
|
|
149
|
-
};
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region ../transport/src/rateLimitManager/types.d.ts
|
|
152
|
-
type RateLimitSubPoolConfig = {
|
|
153
|
-
subPoolKey: string;
|
|
154
|
-
urlPattern: RegExp | string;
|
|
155
|
-
rateLimit: number;
|
|
156
|
-
};
|
|
157
|
-
type RetryUnit = 'seconds' | 'milliseconds' | 'date';
|
|
158
|
-
type MappedRateLimitErrorConfig = {
|
|
159
|
-
errorStatus: number;
|
|
160
|
-
errorMessage: string | RegExp;
|
|
161
|
-
errorMessagePath?: string;
|
|
162
|
-
retryAfterPath?: string;
|
|
163
|
-
retryAfterUnit?: RetryUnit;
|
|
164
|
-
retryAfterValue?: number;
|
|
165
|
-
};
|
|
166
|
-
type RateLimitConfig = {
|
|
167
|
-
mainRatelimit: number;
|
|
168
|
-
subPools?: RateLimitSubPoolConfig[];
|
|
169
|
-
mappedRateLimitErrors?: MappedRateLimitErrorConfig[];
|
|
170
|
-
};
|
|
171
|
-
//#endregion
|
|
172
|
-
//#region ../transport/src/interceptors/types.d.ts
|
|
173
|
-
type RequestConfig = {
|
|
174
|
-
rateLimits?: RateLimitConfig;
|
|
175
|
-
concurrency?: ConcurrencyConfig;
|
|
176
|
-
};
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region ../transport/src/parsers/types.d.ts
|
|
179
|
-
declare const QueryArrayFormats: readonly ["repeat", "brackets", "comma", "stringify"];
|
|
180
|
-
type QueryArrayFormat = (typeof QueryArrayFormats)[number];
|
|
181
|
-
//#endregion
|
|
182
|
-
//#region ../transport/src/httpClient/types.d.ts
|
|
183
|
-
type HttpHeader = string | string[];
|
|
184
|
-
type HttpHeaders = {
|
|
185
|
-
[key: string]: HttpHeader;
|
|
186
|
-
};
|
|
187
|
-
type HttpQueryParamValue = {
|
|
188
|
-
value: string | string[];
|
|
189
|
-
arrayFormat?: QueryArrayFormat;
|
|
190
|
-
};
|
|
191
|
-
type HttpQueryParams = {
|
|
192
|
-
[key: string]: string | string[] | HttpQueryParamValue;
|
|
193
|
-
};
|
|
194
|
-
declare const HttpMethods: readonly ["get", "post", "put", "delete", "patch"];
|
|
195
|
-
type HttpMethod = (typeof HttpMethods)[number];
|
|
196
|
-
type HttpResponse<T = any, P = any> = {
|
|
197
|
-
data: T;
|
|
198
|
-
status: number;
|
|
199
|
-
headers: HttpHeaders;
|
|
200
|
-
requestUrl: string;
|
|
201
|
-
responseType?: string;
|
|
202
|
-
responseTime?: Date;
|
|
203
|
-
message?: string;
|
|
204
|
-
body?: P;
|
|
205
|
-
};
|
|
206
|
-
type StreamHttpResponse = {
|
|
207
|
-
status: number;
|
|
208
|
-
headers: HttpHeaders;
|
|
209
|
-
stream: Readable;
|
|
210
|
-
requestUrl: string;
|
|
211
|
-
};
|
|
212
|
-
interface IHttpClient {
|
|
213
|
-
request<P, T>({
|
|
214
|
-
headers,
|
|
215
|
-
url,
|
|
216
|
-
method,
|
|
217
|
-
queryParams,
|
|
218
|
-
maxRedirects,
|
|
219
|
-
responseType,
|
|
220
|
-
cacheTTL,
|
|
221
|
-
context,
|
|
222
|
-
payload,
|
|
223
|
-
httpsAgent,
|
|
224
|
-
httpAgent,
|
|
225
|
-
requestConfig,
|
|
226
|
-
httpsAgentConfig
|
|
227
|
-
}: {
|
|
228
|
-
headers?: HttpHeaders;
|
|
229
|
-
url: string;
|
|
230
|
-
method?: HttpMethod;
|
|
231
|
-
queryParams?: HttpQueryParams;
|
|
232
|
-
maxRedirects?: number;
|
|
233
|
-
responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
|
|
234
|
-
cacheTTL?: number;
|
|
235
|
-
context?: RequestContext;
|
|
236
|
-
payload?: P;
|
|
237
|
-
httpsAgent?: https.Agent;
|
|
238
|
-
httpAgent?: http.Agent;
|
|
239
|
-
requestConfig?: RequestConfig;
|
|
240
|
-
httpsAgentConfig?: https.AgentOptions;
|
|
241
|
-
}): Promise<HttpResponse<T>>;
|
|
242
|
-
get<T>({
|
|
243
|
-
headers,
|
|
244
|
-
url,
|
|
245
|
-
queryParams,
|
|
246
|
-
maxRedirects,
|
|
247
|
-
cacheTTL,
|
|
248
|
-
context,
|
|
249
|
-
requestConfig
|
|
250
|
-
}: {
|
|
251
|
-
headers?: HttpHeaders;
|
|
252
|
-
url: string;
|
|
253
|
-
queryParams?: HttpQueryParams;
|
|
254
|
-
maxRedirects?: number;
|
|
255
|
-
cacheTTL?: number;
|
|
256
|
-
context?: RequestContext;
|
|
257
|
-
requestConfig?: RequestConfig;
|
|
258
|
-
}): Promise<HttpResponse<T>>;
|
|
259
|
-
post<P, T>({
|
|
260
|
-
headers,
|
|
261
|
-
url,
|
|
262
|
-
maxRedirects,
|
|
263
|
-
cacheTTL,
|
|
264
|
-
context,
|
|
265
|
-
payload,
|
|
266
|
-
requestConfig
|
|
267
|
-
}: {
|
|
268
|
-
headers?: HttpHeaders;
|
|
269
|
-
url: string;
|
|
270
|
-
maxRedirects?: number;
|
|
271
|
-
cacheTTL?: number;
|
|
272
|
-
context?: RequestContext;
|
|
273
|
-
payload?: P;
|
|
274
|
-
requestConfig?: RequestConfig;
|
|
275
|
-
}): Promise<HttpResponse<T>>;
|
|
276
|
-
requestStream({
|
|
277
|
-
headers,
|
|
278
|
-
url,
|
|
279
|
-
method,
|
|
280
|
-
queryParams,
|
|
281
|
-
maxRedirects,
|
|
282
|
-
context,
|
|
283
|
-
traceId,
|
|
284
|
-
payload,
|
|
285
|
-
httpsAgent,
|
|
286
|
-
httpAgent,
|
|
287
|
-
requestConfig,
|
|
288
|
-
httpsAgentConfig
|
|
289
|
-
}: {
|
|
290
|
-
headers?: HttpHeaders;
|
|
291
|
-
url: string;
|
|
292
|
-
method?: HttpMethod;
|
|
293
|
-
queryParams?: HttpQueryParams;
|
|
294
|
-
maxRedirects?: number;
|
|
295
|
-
context?: RequestContext;
|
|
296
|
-
traceId?: string;
|
|
297
|
-
payload?: unknown;
|
|
298
|
-
httpsAgent?: https.Agent;
|
|
299
|
-
httpAgent?: http.Agent;
|
|
300
|
-
requestConfig?: RequestConfig;
|
|
301
|
-
httpsAgentConfig?: https.AgentOptions;
|
|
302
|
-
}): Promise<StreamHttpResponse>;
|
|
303
|
-
}
|
|
304
|
-
interface OperationSetting {
|
|
305
|
-
url?: string;
|
|
306
|
-
query?: Record<string, string>;
|
|
307
|
-
config?: Partial<APIConfig>;
|
|
308
|
-
custom_settings?: Record<string, unknown>;
|
|
309
|
-
}
|
|
310
|
-
type OperationSettings = Record<string, OperationSetting>;
|
|
311
|
-
type AccountSettings = Record<string, string | number | boolean | object>;
|
|
312
|
-
type HttpClientBehaviour = 'CONCURRENCY' | 'RETRY';
|
|
313
|
-
type APIConfig = Record<string, unknown>;
|
|
314
|
-
type RequestContext = {
|
|
315
|
-
accountSecureId?: string;
|
|
316
|
-
projectSecureId?: string;
|
|
317
|
-
organizationId?: number | string;
|
|
318
|
-
environment?: string;
|
|
319
|
-
authConfigKey?: string;
|
|
320
|
-
provider?: string;
|
|
321
|
-
service?: string;
|
|
322
|
-
resource?: string;
|
|
323
|
-
subResource?: string;
|
|
324
|
-
childResource?: string;
|
|
325
|
-
operation?: string;
|
|
326
|
-
action?: string;
|
|
327
|
-
mode?: string;
|
|
328
|
-
testerUniqueToken?: string;
|
|
329
|
-
externalKey?: string;
|
|
330
|
-
dataKey?: string;
|
|
331
|
-
isDataSync?: boolean;
|
|
332
|
-
operationSettings?: OperationSettings;
|
|
333
|
-
accountSettings?: AccountSettings;
|
|
334
|
-
behaviours?: HttpClientBehaviour[];
|
|
335
|
-
};
|
|
336
|
-
type ErrorMappingFn<TError extends Error = Error> = (error: Error) => TError | undefined;
|
|
337
|
-
type TransportFactory = ({
|
|
338
|
-
logger,
|
|
339
|
-
redisClientConfig,
|
|
340
|
-
context,
|
|
341
|
-
requestConfig,
|
|
342
|
-
httpsAgentConfig
|
|
343
|
-
}: {
|
|
344
|
-
logger?: ILogger;
|
|
345
|
-
redisClientConfig?: RedisClientConfig;
|
|
346
|
-
context?: RequestContext;
|
|
347
|
-
requestConfig?: RequestConfig;
|
|
348
|
-
httpsAgentConfig?: https.AgentOptions;
|
|
349
|
-
}) => Promise<AxiosInstance>;
|
|
350
|
-
//#endregion
|
|
351
|
-
//#region ../transport/src/httpClient/httpClient.d.ts
|
|
352
|
-
declare class HttpClient<TError extends Error = Error> implements IHttpClient {
|
|
353
|
-
#private;
|
|
354
|
-
name: string;
|
|
355
|
-
constructor({
|
|
356
|
-
transportFactory,
|
|
357
|
-
getRedisClient,
|
|
358
|
-
logger,
|
|
359
|
-
redisClientConfig,
|
|
360
|
-
errorMappingFn
|
|
361
|
-
}?: {
|
|
362
|
-
transportFactory?: TransportFactory;
|
|
363
|
-
getRedisClient?: RedisClientBuilder;
|
|
364
|
-
logger?: ILogger;
|
|
365
|
-
redisClientConfig?: RedisClientConfig;
|
|
366
|
-
errorMappingFn?: ErrorMappingFn<TError>;
|
|
367
|
-
});
|
|
368
|
-
request<P, T>({
|
|
369
|
-
headers,
|
|
370
|
-
url,
|
|
371
|
-
method,
|
|
372
|
-
queryParams,
|
|
373
|
-
maxRedirects,
|
|
374
|
-
responseType,
|
|
375
|
-
cacheTTL,
|
|
376
|
-
context,
|
|
377
|
-
traceId,
|
|
378
|
-
payload,
|
|
379
|
-
httpsAgent,
|
|
380
|
-
httpAgent,
|
|
381
|
-
requestConfig,
|
|
382
|
-
httpsAgentConfig
|
|
383
|
-
}: {
|
|
384
|
-
headers?: HttpHeaders;
|
|
385
|
-
url: string;
|
|
386
|
-
method?: HttpMethod;
|
|
387
|
-
queryParams?: HttpQueryParams;
|
|
388
|
-
maxRedirects?: number;
|
|
389
|
-
responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
|
|
390
|
-
cacheTTL?: number;
|
|
391
|
-
context?: RequestContext;
|
|
392
|
-
traceId?: string;
|
|
393
|
-
payload?: P;
|
|
394
|
-
httpsAgent?: https.Agent;
|
|
395
|
-
httpAgent?: http.Agent;
|
|
396
|
-
requestConfig?: RequestConfig;
|
|
397
|
-
httpsAgentConfig?: https.AgentOptions;
|
|
398
|
-
}): Promise<HttpResponse<T>>;
|
|
399
|
-
get<T>({
|
|
400
|
-
headers,
|
|
401
|
-
url,
|
|
402
|
-
queryParams,
|
|
403
|
-
maxRedirects,
|
|
404
|
-
cacheTTL,
|
|
405
|
-
context,
|
|
406
|
-
traceId,
|
|
407
|
-
requestConfig
|
|
408
|
-
}: {
|
|
409
|
-
headers?: HttpHeaders;
|
|
410
|
-
url: string;
|
|
411
|
-
queryParams?: HttpQueryParams;
|
|
412
|
-
maxRedirects?: number;
|
|
413
|
-
cacheTTL?: number;
|
|
414
|
-
context?: RequestContext;
|
|
415
|
-
traceId?: string;
|
|
416
|
-
requestConfig?: RequestConfig;
|
|
417
|
-
}): Promise<HttpResponse<T>>;
|
|
418
|
-
post<P, T>({
|
|
419
|
-
headers,
|
|
420
|
-
url,
|
|
421
|
-
maxRedirects,
|
|
422
|
-
cacheTTL,
|
|
423
|
-
context,
|
|
424
|
-
traceId,
|
|
425
|
-
payload,
|
|
426
|
-
requestConfig
|
|
427
|
-
}: {
|
|
428
|
-
headers?: HttpHeaders;
|
|
429
|
-
url: string;
|
|
430
|
-
maxRedirects?: number;
|
|
431
|
-
cacheTTL?: number;
|
|
432
|
-
context?: RequestContext;
|
|
433
|
-
traceId?: string;
|
|
434
|
-
payload?: P;
|
|
435
|
-
requestConfig?: RequestConfig;
|
|
436
|
-
}): Promise<HttpResponse<T>>;
|
|
437
|
-
requestStream({
|
|
438
|
-
headers,
|
|
439
|
-
url,
|
|
440
|
-
method,
|
|
441
|
-
queryParams,
|
|
442
|
-
maxRedirects,
|
|
443
|
-
context,
|
|
444
|
-
traceId,
|
|
445
|
-
payload,
|
|
446
|
-
httpsAgent,
|
|
447
|
-
httpAgent,
|
|
448
|
-
requestConfig,
|
|
449
|
-
httpsAgentConfig
|
|
450
|
-
}: {
|
|
451
|
-
headers?: HttpHeaders;
|
|
452
|
-
url: string;
|
|
453
|
-
method?: HttpMethod;
|
|
454
|
-
queryParams?: HttpQueryParams;
|
|
455
|
-
maxRedirects?: number;
|
|
456
|
-
context?: RequestContext;
|
|
457
|
-
traceId?: string;
|
|
458
|
-
payload?: unknown;
|
|
459
|
-
httpsAgent?: https.Agent;
|
|
460
|
-
httpAgent?: http.Agent;
|
|
461
|
-
requestConfig?: RequestConfig;
|
|
462
|
-
httpsAgentConfig?: https.AgentOptions;
|
|
463
|
-
}): Promise<StreamHttpResponse>;
|
|
16
|
+
//#region ../../node_modules/@aws-sdk/types/dist-types/serde.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* Declare DOM interfaces in case dom.d.ts is not added to the tsconfig lib, causing
|
|
21
|
+
* interfaces to not be defined. For developers with dom.d.ts added, the interfaces will
|
|
22
|
+
* be merged correctly.
|
|
23
|
+
*
|
|
24
|
+
* This is also required for any clients with streaming interfaces where the corresponding
|
|
25
|
+
* types are also referred. The type is only declared here once since this `@aws-sdk/types`
|
|
26
|
+
* is depended by all `@aws-sdk` packages.
|
|
27
|
+
*/
|
|
28
|
+
declare global {
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export interface ReadableStream {}
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export interface Blob {}
|
|
464
37
|
}
|
|
465
38
|
//#endregion
|
|
466
39
|
//#region ../core/src/source/types.d.ts
|
|
@@ -797,6 +370,8 @@ type Query = {
|
|
|
797
370
|
endTime?: Date;
|
|
798
371
|
pageNumber?: number;
|
|
799
372
|
pageSize?: number;
|
|
373
|
+
orderBy?: OrderBy;
|
|
374
|
+
orderDirection?: OrderDirection;
|
|
800
375
|
};
|
|
801
376
|
type QueryResult = {
|
|
802
377
|
logs: Array<ActionLog | UnifiedLog | StepLog | ProviderLog>;
|
|
@@ -819,6 +394,8 @@ type ActionsQuery = {
|
|
|
819
394
|
endTime?: Date;
|
|
820
395
|
pageNumber?: number;
|
|
821
396
|
pageSize?: number;
|
|
397
|
+
orderBy?: OrderBy;
|
|
398
|
+
orderDirection?: OrderDirection;
|
|
822
399
|
};
|
|
823
400
|
type ActionsQueryResult = {
|
|
824
401
|
actionLogs: ActionLog[];
|
|
@@ -838,6 +415,8 @@ type StepsQuery = {
|
|
|
838
415
|
endTime?: Date;
|
|
839
416
|
pageNumber?: number;
|
|
840
417
|
pageSize?: number;
|
|
418
|
+
orderBy?: OrderBy;
|
|
419
|
+
orderDirection?: OrderDirection;
|
|
841
420
|
};
|
|
842
421
|
type StepsQueryResult = {
|
|
843
422
|
stepLogs: StepLog[];
|
|
@@ -861,6 +440,8 @@ type UnifiedQuery = {
|
|
|
861
440
|
endTime?: Date;
|
|
862
441
|
pageNumber?: number;
|
|
863
442
|
pageSize?: number;
|
|
443
|
+
orderBy?: OrderBy;
|
|
444
|
+
orderDirection?: OrderDirection;
|
|
864
445
|
};
|
|
865
446
|
type UnifiedQueryResult = {
|
|
866
447
|
unifiedLogs: UnifiedLog[];
|
|
@@ -879,6 +460,8 @@ type ProviderQuery = {
|
|
|
879
460
|
endTime?: Date;
|
|
880
461
|
pageNumber?: number;
|
|
881
462
|
pageSize?: number;
|
|
463
|
+
orderBy?: OrderBy;
|
|
464
|
+
orderDirection?: OrderDirection;
|
|
882
465
|
};
|
|
883
466
|
type ProviderQueryResult = {
|
|
884
467
|
providerLogs: ProviderLog[];
|
|
@@ -886,6 +469,18 @@ type ProviderQueryResult = {
|
|
|
886
469
|
pageNumber: number;
|
|
887
470
|
pageSize: number;
|
|
888
471
|
};
|
|
472
|
+
declare const OrderBy: {
|
|
473
|
+
readonly StartTime: "startTime";
|
|
474
|
+
readonly EndTime: "endTime";
|
|
475
|
+
readonly EventTime: "eventTime";
|
|
476
|
+
readonly DurationMs: "durationMs";
|
|
477
|
+
};
|
|
478
|
+
type OrderBy = (typeof OrderBy)[keyof typeof OrderBy];
|
|
479
|
+
declare const OrderDirection: {
|
|
480
|
+
readonly Asc: "asc";
|
|
481
|
+
readonly Desc: "desc";
|
|
482
|
+
};
|
|
483
|
+
type OrderDirection = (typeof OrderDirection)[keyof typeof OrderDirection];
|
|
889
484
|
type IntervalType = 'minute' | 'hour' | 'day' | 'week' | 'month';
|
|
890
485
|
declare const Dimension: {
|
|
891
486
|
readonly ConnectorKey: "connector_key";
|
|
@@ -1206,4 +801,4 @@ declare class OlapClientManager {
|
|
|
1206
801
|
static resetInstance(): void;
|
|
1207
802
|
}
|
|
1208
803
|
//#endregion
|
|
1209
|
-
export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AggregateQuery, type AggregateResult, type DatasetsOptions, type DefenderContext, type DefenderLog, type DefenderOptions, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, type IntervalType, LogType, type LogType as LogTypeValues, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryResult, type SourceQuery, type SourceResult, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, type TinybirdConfig, type TinybirdQueryOptions, type TinybirdResponse, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult };
|
|
804
|
+
export { type ActionAdvancedLog, type ActionInput, type ActionLog, type ActionResult, type ActionsQuery, type ActionsQueryResult, type AdvancedOptions, type AggregateQuery, type AggregateResult, type DatasetsOptions, type DefenderContext, type DefenderLog, type DefenderOptions, Dimension, type Dimension as DimensionValues, type DimensionsQuery, type DimensionsResult, type ILog, type IOlapClient, type IntervalType, LogType, type LogType as LogTypeValues, type LogsOptions, OlapClient, OlapClientManager, type OlapOptions, OrderBy, type OrderBy as OrderByValues, OrderDirection, type OrderDirection as OrderDirectionValues, type ProviderAdvancedLog, type ProviderInput, type ProviderLog, type ProviderQuery, type ProviderQueryResult, type ProviderResult, type Query, type QueryResult, type SourceQuery, type SourceResult, type StepAdvancedLog, type StepInput, type StepLog, type StepResult, type StepsQuery, type StepsQueryResult, type TinybirdConfig, type TinybirdQueryOptions, type TinybirdResponse, type UnifiedAdvancedLog, type UnifiedInput, type UnifiedLog, type UnifiedQuery, type UnifiedQueryResult, type UnifiedResult };
|