@dremio/js-sdk 0.14.0 → 0.15.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/cloud/interfaces.d.ts +1 -0
- package/dist/cloud/interfaces.js +1 -0
- package/dist/cloud/interfaces.js.map +1 -1
- package/dist/enterprise/catalog/EnterpriseCatalogResource.d.ts +2 -436
- package/dist/enterprise/catalog/catalogSearch/CatalogSearchParams.d.ts +5 -7
- package/dist/enterprise/catalog/catalogSearch/CatalogSearchParams.js.map +1 -1
- package/dist/enterprise/catalog/catalogSearch/CatalogSearchResult.d.ts +147 -0
- package/dist/enterprise/catalog/catalogSearch/CatalogSearchResult.js +151 -0
- package/dist/enterprise/catalog/catalogSearch/CatalogSearchResult.js.map +1 -0
- package/dist/enterprise/catalog/catalogSearch/catalogSearchParamsToObject.d.ts +1 -4
- package/dist/enterprise/catalog/catalogSearch/catalogSearchParamsToObject.js +18 -18
- package/dist/enterprise/catalog/catalogSearch/catalogSearchParamsToObject.js.map +1 -1
- package/dist/enterprise/catalog/catalogSearch/createCatalogSearch.d.ts +1 -218
- package/dist/enterprise/catalog/catalogSearch/mapSearchResult.d.ts +3 -221
- package/dist/enterprise/catalog/catalogSearch/mapSearchResult.js +19 -28
- package/dist/enterprise/catalog/catalogSearch/mapSearchResult.js.map +1 -1
- package/dist/enterprise/interfaces.d.ts +1 -0
- package/dist/enterprise/interfaces.js +1 -0
- package/dist/enterprise/interfaces.js.map +1 -1
- package/package.json +1 -1
- package/dist/enterprise/catalog/catalogSearch/SearchResult.d.ts +0 -123
- package/dist/enterprise/catalog/catalogSearch/SearchResult.js +0 -27
- package/dist/enterprise/catalog/catalogSearch/SearchResult.js.map +0 -1
|
@@ -13,3 +13,4 @@ export type { ArcticCatalog, CloudUser, Engine, Project };
|
|
|
13
13
|
export type { Job, JobResultsSchema, Reflection, EnterpriseScript, ReflectionSummary, Role, BranchHeadVersionReference, BareCommitVersionReference, TagVersionReference, VersionReference, Organization, };
|
|
14
14
|
export * from "../enterprise/catalog/CatalogObjects/index.ts";
|
|
15
15
|
export * from "../enterprise/catalog/CatalogReferences/index.ts";
|
|
16
|
+
export * from "../enterprise/catalog/catalogSearch/CatalogSearchResult.ts";
|
package/dist/cloud/interfaces.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/cloud/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiCH,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ArcticCatalog } from \"./arctic/ArcticCatalog.ts\";\nimport type { CloudUser } from \"./users/CloudUser.ts\";\nimport type { Engine } from \"./engines/Engine.ts\";\nimport type { Project } from \"./projects/Project.ts\";\nimport type { Organization } from \"./organizations/Organization.ts\";\nimport type { Job, Reflection } from \"../oss/interfaces.ts\";\nimport type { EnterpriseScript } from \"../enterprise/scripts/EnterpriseScript.ts\";\nimport type { ReflectionSummary } from \"../enterprise/reflections/ReflectionSummary.ts\";\nimport type { Role } from \"../enterprise/roles/Role.ts\";\nimport type {\n BranchHeadVersionReference,\n BareCommitVersionReference,\n TagVersionReference,\n VersionReference,\n} from \"../oss/catalog/VersionReference.ts\";\nimport type { JobResultsSchema } from \"../oss/jobs/utils/JobResultsResponse.ts\";\n\nexport type { ArcticCatalog, CloudUser, Engine, Project };\nexport type {\n Job,\n JobResultsSchema,\n Reflection,\n EnterpriseScript,\n ReflectionSummary,\n Role,\n BranchHeadVersionReference,\n BareCommitVersionReference,\n TagVersionReference,\n VersionReference,\n Organization,\n};\nexport * from \"../enterprise/catalog/CatalogObjects/index.ts\";\nexport * from \"../enterprise/catalog/CatalogReferences/index.ts\";\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/cloud/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiCH,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,4DAA4D,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ArcticCatalog } from \"./arctic/ArcticCatalog.ts\";\nimport type { CloudUser } from \"./users/CloudUser.ts\";\nimport type { Engine } from \"./engines/Engine.ts\";\nimport type { Project } from \"./projects/Project.ts\";\nimport type { Organization } from \"./organizations/Organization.ts\";\nimport type { Job, Reflection } from \"../oss/interfaces.ts\";\nimport type { EnterpriseScript } from \"../enterprise/scripts/EnterpriseScript.ts\";\nimport type { ReflectionSummary } from \"../enterprise/reflections/ReflectionSummary.ts\";\nimport type { Role } from \"../enterprise/roles/Role.ts\";\nimport type {\n BranchHeadVersionReference,\n BareCommitVersionReference,\n TagVersionReference,\n VersionReference,\n} from \"../oss/catalog/VersionReference.ts\";\nimport type { JobResultsSchema } from \"../oss/jobs/utils/JobResultsResponse.ts\";\n\nexport type { ArcticCatalog, CloudUser, Engine, Project };\nexport type {\n Job,\n JobResultsSchema,\n Reflection,\n EnterpriseScript,\n ReflectionSummary,\n Role,\n BranchHeadVersionReference,\n BareCommitVersionReference,\n TagVersionReference,\n VersionReference,\n Organization,\n};\nexport * from \"../enterprise/catalog/CatalogObjects/index.ts\";\nexport * from \"../enterprise/catalog/CatalogReferences/index.ts\";\nexport * from \"../enterprise/catalog/catalogSearch/CatalogSearchResult.ts\";\n"]}
|
|
@@ -12,445 +12,11 @@ export declare class EnterpriseCatalogResource {
|
|
|
12
12
|
data(): AsyncGenerator<EnterpriseFunctionCatalogReference | EnterpriseHomeCatalogReference | EnterpriseSourceCatalogReference | EnterpriseSpaceCatalogReference, void, unknown>;
|
|
13
13
|
};
|
|
14
14
|
search(params: CatalogSearchParams): {
|
|
15
|
-
data({ signal }?: SignalParam): AsyncGenerator<
|
|
16
|
-
readonly catalogReference: import("./CatalogReferences/EnterpriseFolderCatalogReference.ts").EnterpriseFolderCatalogReference;
|
|
17
|
-
readonly category: "FOLDER";
|
|
18
|
-
readonly owner: {
|
|
19
|
-
id: string;
|
|
20
|
-
type: "USER" | "ROLE";
|
|
21
|
-
username: string;
|
|
22
|
-
} | undefined;
|
|
23
|
-
readonly wiki: string | null;
|
|
24
|
-
readonly content?: undefined;
|
|
25
|
-
readonly createdAt?: undefined;
|
|
26
|
-
readonly id?: undefined;
|
|
27
|
-
readonly lastModifiedAt?: undefined;
|
|
28
|
-
readonly name?: undefined;
|
|
29
|
-
readonly columns?: undefined;
|
|
30
|
-
readonly labels?: undefined;
|
|
31
|
-
readonly functionSql?: undefined;
|
|
32
|
-
readonly error?: undefined;
|
|
33
|
-
readonly finishTime?: undefined;
|
|
34
|
-
readonly queriedDatasets?: undefined;
|
|
35
|
-
readonly queryType?: undefined;
|
|
36
|
-
readonly sql?: undefined;
|
|
37
|
-
readonly startTime?: undefined;
|
|
38
|
-
readonly state?: undefined;
|
|
39
|
-
readonly user?: undefined;
|
|
40
|
-
} | {
|
|
41
|
-
readonly category: "SCRIPT";
|
|
42
|
-
readonly content: string;
|
|
43
|
-
readonly createdAt: Date;
|
|
44
|
-
readonly id: string;
|
|
45
|
-
readonly lastModifiedAt: Date;
|
|
46
|
-
readonly name: string;
|
|
47
|
-
readonly owner: {
|
|
48
|
-
id: string;
|
|
49
|
-
type: "USER" | "ROLE";
|
|
50
|
-
username: string;
|
|
51
|
-
};
|
|
52
|
-
readonly catalogReference?: undefined;
|
|
53
|
-
readonly wiki?: undefined;
|
|
54
|
-
readonly columns?: undefined;
|
|
55
|
-
readonly labels?: undefined;
|
|
56
|
-
readonly functionSql?: undefined;
|
|
57
|
-
readonly error?: undefined;
|
|
58
|
-
readonly finishTime?: undefined;
|
|
59
|
-
readonly queriedDatasets?: undefined;
|
|
60
|
-
readonly queryType?: undefined;
|
|
61
|
-
readonly sql?: undefined;
|
|
62
|
-
readonly startTime?: undefined;
|
|
63
|
-
readonly state?: undefined;
|
|
64
|
-
readonly user?: undefined;
|
|
65
|
-
} | {
|
|
66
|
-
readonly catalogReference: import("./CatalogReferences/EnterpriseDatasetCatalogReference.ts").EnterpriseDatasetCatalogReference;
|
|
67
|
-
readonly category: "REFLECTION";
|
|
68
|
-
readonly createdAt: Date;
|
|
69
|
-
readonly id: string;
|
|
70
|
-
readonly lastModifiedAt: Date;
|
|
71
|
-
readonly name: string;
|
|
72
|
-
readonly owner?: undefined;
|
|
73
|
-
readonly wiki?: undefined;
|
|
74
|
-
readonly content?: undefined;
|
|
75
|
-
readonly columns?: undefined;
|
|
76
|
-
readonly labels?: undefined;
|
|
77
|
-
readonly functionSql?: undefined;
|
|
78
|
-
readonly error?: undefined;
|
|
79
|
-
readonly finishTime?: undefined;
|
|
80
|
-
readonly queriedDatasets?: undefined;
|
|
81
|
-
readonly queryType?: undefined;
|
|
82
|
-
readonly sql?: undefined;
|
|
83
|
-
readonly startTime?: undefined;
|
|
84
|
-
readonly state?: undefined;
|
|
85
|
-
readonly user?: undefined;
|
|
86
|
-
} | {
|
|
87
|
-
readonly catalogReference: EnterpriseSourceCatalogReference;
|
|
88
|
-
readonly category: "SOURCE";
|
|
89
|
-
readonly createdAt: Date;
|
|
90
|
-
readonly owner: {
|
|
91
|
-
id: string;
|
|
92
|
-
type: "USER" | "ROLE";
|
|
93
|
-
username: string;
|
|
94
|
-
} | undefined;
|
|
95
|
-
readonly wiki?: undefined;
|
|
96
|
-
readonly content?: undefined;
|
|
97
|
-
readonly id?: undefined;
|
|
98
|
-
readonly lastModifiedAt?: undefined;
|
|
99
|
-
readonly name?: undefined;
|
|
100
|
-
readonly columns?: undefined;
|
|
101
|
-
readonly labels?: undefined;
|
|
102
|
-
readonly functionSql?: undefined;
|
|
103
|
-
readonly error?: undefined;
|
|
104
|
-
readonly finishTime?: undefined;
|
|
105
|
-
readonly queriedDatasets?: undefined;
|
|
106
|
-
readonly queryType?: undefined;
|
|
107
|
-
readonly sql?: undefined;
|
|
108
|
-
readonly startTime?: undefined;
|
|
109
|
-
readonly state?: undefined;
|
|
110
|
-
readonly user?: undefined;
|
|
111
|
-
} | {
|
|
112
|
-
readonly catalogReference: EnterpriseSpaceCatalogReference;
|
|
113
|
-
readonly category: "SPACE";
|
|
114
|
-
readonly createdAt: Date | null;
|
|
115
|
-
readonly lastModifiedAt: Date | null;
|
|
116
|
-
readonly owner: {
|
|
117
|
-
id: string;
|
|
118
|
-
type: "USER" | "ROLE";
|
|
119
|
-
username: string;
|
|
120
|
-
};
|
|
121
|
-
readonly wiki: string | null;
|
|
122
|
-
readonly content?: undefined;
|
|
123
|
-
readonly id?: undefined;
|
|
124
|
-
readonly name?: undefined;
|
|
125
|
-
readonly columns?: undefined;
|
|
126
|
-
readonly labels?: undefined;
|
|
127
|
-
readonly functionSql?: undefined;
|
|
128
|
-
readonly error?: undefined;
|
|
129
|
-
readonly finishTime?: undefined;
|
|
130
|
-
readonly queriedDatasets?: undefined;
|
|
131
|
-
readonly queryType?: undefined;
|
|
132
|
-
readonly sql?: undefined;
|
|
133
|
-
readonly startTime?: undefined;
|
|
134
|
-
readonly state?: undefined;
|
|
135
|
-
readonly user?: undefined;
|
|
136
|
-
} | {
|
|
137
|
-
readonly catalogReference: import("./CatalogReferences/EnterpriseDatasetCatalogReference.ts").EnterpriseDatasetCatalogReference;
|
|
138
|
-
readonly category: "TABLE";
|
|
139
|
-
readonly columns: string[];
|
|
140
|
-
readonly createdAt: Date | null;
|
|
141
|
-
readonly labels: string[];
|
|
142
|
-
readonly lastModifiedAt: Date | null;
|
|
143
|
-
readonly owner: {
|
|
144
|
-
id: string;
|
|
145
|
-
type: "USER" | "ROLE";
|
|
146
|
-
username: string;
|
|
147
|
-
};
|
|
148
|
-
readonly wiki: string | null;
|
|
149
|
-
readonly content?: undefined;
|
|
150
|
-
readonly id?: undefined;
|
|
151
|
-
readonly name?: undefined;
|
|
152
|
-
readonly functionSql?: undefined;
|
|
153
|
-
readonly error?: undefined;
|
|
154
|
-
readonly finishTime?: undefined;
|
|
155
|
-
readonly queriedDatasets?: undefined;
|
|
156
|
-
readonly queryType?: undefined;
|
|
157
|
-
readonly sql?: undefined;
|
|
158
|
-
readonly startTime?: undefined;
|
|
159
|
-
readonly state?: undefined;
|
|
160
|
-
readonly user?: undefined;
|
|
161
|
-
} | {
|
|
162
|
-
readonly catalogReference: EnterpriseFunctionCatalogReference;
|
|
163
|
-
readonly category: "FUNCTION";
|
|
164
|
-
readonly createdAt: Date;
|
|
165
|
-
readonly functionSql: string;
|
|
166
|
-
readonly lastModifiedAt: Date;
|
|
167
|
-
readonly owner: {
|
|
168
|
-
id: string;
|
|
169
|
-
type: "USER" | "ROLE";
|
|
170
|
-
username: string;
|
|
171
|
-
};
|
|
172
|
-
readonly wiki?: undefined;
|
|
173
|
-
readonly content?: undefined;
|
|
174
|
-
readonly id?: undefined;
|
|
175
|
-
readonly name?: undefined;
|
|
176
|
-
readonly columns?: undefined;
|
|
177
|
-
readonly labels?: undefined;
|
|
178
|
-
readonly error?: undefined;
|
|
179
|
-
readonly finishTime?: undefined;
|
|
180
|
-
readonly queriedDatasets?: undefined;
|
|
181
|
-
readonly queryType?: undefined;
|
|
182
|
-
readonly sql?: undefined;
|
|
183
|
-
readonly startTime?: undefined;
|
|
184
|
-
readonly state?: undefined;
|
|
185
|
-
readonly user?: undefined;
|
|
186
|
-
} | {
|
|
187
|
-
readonly catalogReference: import("./CatalogReferences/EnterpriseDatasetCatalogReference.ts").EnterpriseDatasetCatalogReference;
|
|
188
|
-
readonly category: "VIEW";
|
|
189
|
-
readonly columns: string[];
|
|
190
|
-
readonly createdAt: Date | null;
|
|
191
|
-
readonly labels: string[];
|
|
192
|
-
readonly lastModifiedAt: Date | null;
|
|
193
|
-
readonly owner: {
|
|
194
|
-
id: string;
|
|
195
|
-
type: "USER" | "ROLE";
|
|
196
|
-
username: string;
|
|
197
|
-
};
|
|
198
|
-
readonly wiki: string | null;
|
|
199
|
-
readonly content?: undefined;
|
|
200
|
-
readonly id?: undefined;
|
|
201
|
-
readonly name?: undefined;
|
|
202
|
-
readonly functionSql?: undefined;
|
|
203
|
-
readonly error?: undefined;
|
|
204
|
-
readonly finishTime?: undefined;
|
|
205
|
-
readonly queriedDatasets?: undefined;
|
|
206
|
-
readonly queryType?: undefined;
|
|
207
|
-
readonly sql?: undefined;
|
|
208
|
-
readonly startTime?: undefined;
|
|
209
|
-
readonly state?: undefined;
|
|
210
|
-
readonly user?: undefined;
|
|
211
|
-
} | {
|
|
212
|
-
readonly category: "JOB";
|
|
213
|
-
readonly error: string | undefined;
|
|
214
|
-
readonly finishTime: Date;
|
|
215
|
-
readonly id: string;
|
|
216
|
-
readonly queriedDatasets: import("./CatalogReferences/EnterpriseDatasetCatalogReference.ts").EnterpriseDatasetCatalogReference[];
|
|
217
|
-
readonly queryType: import("../interfaces.ts").Job["queryType"];
|
|
218
|
-
readonly sql: import("../index.ts").Query;
|
|
219
|
-
readonly startTime: Date;
|
|
220
|
-
readonly state: import("../interfaces.ts").Job["state"];
|
|
221
|
-
readonly user: any;
|
|
222
|
-
readonly catalogReference?: undefined;
|
|
223
|
-
readonly owner?: undefined;
|
|
224
|
-
readonly wiki?: undefined;
|
|
225
|
-
readonly content?: undefined;
|
|
226
|
-
readonly createdAt?: undefined;
|
|
227
|
-
readonly lastModifiedAt?: undefined;
|
|
228
|
-
readonly name?: undefined;
|
|
229
|
-
readonly columns?: undefined;
|
|
230
|
-
readonly labels?: undefined;
|
|
231
|
-
readonly functionSql?: undefined;
|
|
232
|
-
}, void, unknown>;
|
|
15
|
+
data({ signal }?: SignalParam): AsyncGenerator<import("./catalogSearch/CatalogSearchResult.ts").FolderSearchResult | import("./catalogSearch/CatalogSearchResult.ts").ReflectionSearchResult | import("./catalogSearch/CatalogSearchResult.ts").SourceSearchResult | import("./catalogSearch/CatalogSearchResult.ts").SpaceSearchResult | import("./catalogSearch/CatalogSearchResult.ts").TableSearchResult | import("./catalogSearch/CatalogSearchResult.ts").ViewSearchResult | import("./catalogSearch/CatalogSearchResult.ts").FunctionSearchResult | import("./catalogSearch/CatalogSearchResult.ts").ScriptSearchResult | import("./catalogSearch/CatalogSearchResult.ts").JobSearchResult, void, unknown>;
|
|
233
16
|
getPage: ({ pageParam, signal }?: {
|
|
234
17
|
pageParam?: string;
|
|
235
18
|
} & SignalParam) => import("ts-results-es").AsyncResult<{
|
|
236
|
-
data: (
|
|
237
|
-
readonly catalogReference: import("./CatalogReferences/EnterpriseFolderCatalogReference.ts").EnterpriseFolderCatalogReference;
|
|
238
|
-
readonly category: "FOLDER";
|
|
239
|
-
readonly owner: {
|
|
240
|
-
id: string;
|
|
241
|
-
type: "USER" | "ROLE";
|
|
242
|
-
username: string;
|
|
243
|
-
} | undefined;
|
|
244
|
-
readonly wiki: string | null;
|
|
245
|
-
readonly content?: undefined;
|
|
246
|
-
readonly createdAt?: undefined;
|
|
247
|
-
readonly id?: undefined;
|
|
248
|
-
readonly lastModifiedAt?: undefined;
|
|
249
|
-
readonly name?: undefined;
|
|
250
|
-
readonly columns?: undefined;
|
|
251
|
-
readonly labels?: undefined;
|
|
252
|
-
readonly functionSql?: undefined;
|
|
253
|
-
readonly error?: undefined;
|
|
254
|
-
readonly finishTime?: undefined;
|
|
255
|
-
readonly queriedDatasets?: undefined;
|
|
256
|
-
readonly queryType?: undefined;
|
|
257
|
-
readonly sql?: undefined;
|
|
258
|
-
readonly startTime?: undefined;
|
|
259
|
-
readonly state?: undefined;
|
|
260
|
-
readonly user?: undefined;
|
|
261
|
-
} | {
|
|
262
|
-
readonly category: "SCRIPT";
|
|
263
|
-
readonly content: string;
|
|
264
|
-
readonly createdAt: Date;
|
|
265
|
-
readonly id: string;
|
|
266
|
-
readonly lastModifiedAt: Date;
|
|
267
|
-
readonly name: string;
|
|
268
|
-
readonly owner: {
|
|
269
|
-
id: string;
|
|
270
|
-
type: "USER" | "ROLE";
|
|
271
|
-
username: string;
|
|
272
|
-
};
|
|
273
|
-
readonly catalogReference?: undefined;
|
|
274
|
-
readonly wiki?: undefined;
|
|
275
|
-
readonly columns?: undefined;
|
|
276
|
-
readonly labels?: undefined;
|
|
277
|
-
readonly functionSql?: undefined;
|
|
278
|
-
readonly error?: undefined;
|
|
279
|
-
readonly finishTime?: undefined;
|
|
280
|
-
readonly queriedDatasets?: undefined;
|
|
281
|
-
readonly queryType?: undefined;
|
|
282
|
-
readonly sql?: undefined;
|
|
283
|
-
readonly startTime?: undefined;
|
|
284
|
-
readonly state?: undefined;
|
|
285
|
-
readonly user?: undefined;
|
|
286
|
-
} | {
|
|
287
|
-
readonly catalogReference: import("./CatalogReferences/EnterpriseDatasetCatalogReference.ts").EnterpriseDatasetCatalogReference;
|
|
288
|
-
readonly category: "REFLECTION";
|
|
289
|
-
readonly createdAt: Date;
|
|
290
|
-
readonly id: string;
|
|
291
|
-
readonly lastModifiedAt: Date;
|
|
292
|
-
readonly name: string;
|
|
293
|
-
readonly owner?: undefined;
|
|
294
|
-
readonly wiki?: undefined;
|
|
295
|
-
readonly content?: undefined;
|
|
296
|
-
readonly columns?: undefined;
|
|
297
|
-
readonly labels?: undefined;
|
|
298
|
-
readonly functionSql?: undefined;
|
|
299
|
-
readonly error?: undefined;
|
|
300
|
-
readonly finishTime?: undefined;
|
|
301
|
-
readonly queriedDatasets?: undefined;
|
|
302
|
-
readonly queryType?: undefined;
|
|
303
|
-
readonly sql?: undefined;
|
|
304
|
-
readonly startTime?: undefined;
|
|
305
|
-
readonly state?: undefined;
|
|
306
|
-
readonly user?: undefined;
|
|
307
|
-
} | {
|
|
308
|
-
readonly catalogReference: EnterpriseSourceCatalogReference;
|
|
309
|
-
readonly category: "SOURCE";
|
|
310
|
-
readonly createdAt: Date;
|
|
311
|
-
readonly owner: {
|
|
312
|
-
id: string;
|
|
313
|
-
type: "USER" | "ROLE";
|
|
314
|
-
username: string;
|
|
315
|
-
} | undefined;
|
|
316
|
-
readonly wiki?: undefined;
|
|
317
|
-
readonly content?: undefined;
|
|
318
|
-
readonly id?: undefined;
|
|
319
|
-
readonly lastModifiedAt?: undefined;
|
|
320
|
-
readonly name?: undefined;
|
|
321
|
-
readonly columns?: undefined;
|
|
322
|
-
readonly labels?: undefined;
|
|
323
|
-
readonly functionSql?: undefined;
|
|
324
|
-
readonly error?: undefined;
|
|
325
|
-
readonly finishTime?: undefined;
|
|
326
|
-
readonly queriedDatasets?: undefined;
|
|
327
|
-
readonly queryType?: undefined;
|
|
328
|
-
readonly sql?: undefined;
|
|
329
|
-
readonly startTime?: undefined;
|
|
330
|
-
readonly state?: undefined;
|
|
331
|
-
readonly user?: undefined;
|
|
332
|
-
} | {
|
|
333
|
-
readonly catalogReference: EnterpriseSpaceCatalogReference;
|
|
334
|
-
readonly category: "SPACE";
|
|
335
|
-
readonly createdAt: Date | null;
|
|
336
|
-
readonly lastModifiedAt: Date | null;
|
|
337
|
-
readonly owner: {
|
|
338
|
-
id: string;
|
|
339
|
-
type: "USER" | "ROLE";
|
|
340
|
-
username: string;
|
|
341
|
-
};
|
|
342
|
-
readonly wiki: string | null;
|
|
343
|
-
readonly content?: undefined;
|
|
344
|
-
readonly id?: undefined;
|
|
345
|
-
readonly name?: undefined;
|
|
346
|
-
readonly columns?: undefined;
|
|
347
|
-
readonly labels?: undefined;
|
|
348
|
-
readonly functionSql?: undefined;
|
|
349
|
-
readonly error?: undefined;
|
|
350
|
-
readonly finishTime?: undefined;
|
|
351
|
-
readonly queriedDatasets?: undefined;
|
|
352
|
-
readonly queryType?: undefined;
|
|
353
|
-
readonly sql?: undefined;
|
|
354
|
-
readonly startTime?: undefined;
|
|
355
|
-
readonly state?: undefined;
|
|
356
|
-
readonly user?: undefined;
|
|
357
|
-
} | {
|
|
358
|
-
readonly catalogReference: import("./CatalogReferences/EnterpriseDatasetCatalogReference.ts").EnterpriseDatasetCatalogReference;
|
|
359
|
-
readonly category: "TABLE";
|
|
360
|
-
readonly columns: string[];
|
|
361
|
-
readonly createdAt: Date | null;
|
|
362
|
-
readonly labels: string[];
|
|
363
|
-
readonly lastModifiedAt: Date | null;
|
|
364
|
-
readonly owner: {
|
|
365
|
-
id: string;
|
|
366
|
-
type: "USER" | "ROLE";
|
|
367
|
-
username: string;
|
|
368
|
-
};
|
|
369
|
-
readonly wiki: string | null;
|
|
370
|
-
readonly content?: undefined;
|
|
371
|
-
readonly id?: undefined;
|
|
372
|
-
readonly name?: undefined;
|
|
373
|
-
readonly functionSql?: undefined;
|
|
374
|
-
readonly error?: undefined;
|
|
375
|
-
readonly finishTime?: undefined;
|
|
376
|
-
readonly queriedDatasets?: undefined;
|
|
377
|
-
readonly queryType?: undefined;
|
|
378
|
-
readonly sql?: undefined;
|
|
379
|
-
readonly startTime?: undefined;
|
|
380
|
-
readonly state?: undefined;
|
|
381
|
-
readonly user?: undefined;
|
|
382
|
-
} | {
|
|
383
|
-
readonly catalogReference: EnterpriseFunctionCatalogReference;
|
|
384
|
-
readonly category: "FUNCTION";
|
|
385
|
-
readonly createdAt: Date;
|
|
386
|
-
readonly functionSql: string;
|
|
387
|
-
readonly lastModifiedAt: Date;
|
|
388
|
-
readonly owner: {
|
|
389
|
-
id: string;
|
|
390
|
-
type: "USER" | "ROLE";
|
|
391
|
-
username: string;
|
|
392
|
-
};
|
|
393
|
-
readonly wiki?: undefined;
|
|
394
|
-
readonly content?: undefined;
|
|
395
|
-
readonly id?: undefined;
|
|
396
|
-
readonly name?: undefined;
|
|
397
|
-
readonly columns?: undefined;
|
|
398
|
-
readonly labels?: undefined;
|
|
399
|
-
readonly error?: undefined;
|
|
400
|
-
readonly finishTime?: undefined;
|
|
401
|
-
readonly queriedDatasets?: undefined;
|
|
402
|
-
readonly queryType?: undefined;
|
|
403
|
-
readonly sql?: undefined;
|
|
404
|
-
readonly startTime?: undefined;
|
|
405
|
-
readonly state?: undefined;
|
|
406
|
-
readonly user?: undefined;
|
|
407
|
-
} | {
|
|
408
|
-
readonly catalogReference: import("./CatalogReferences/EnterpriseDatasetCatalogReference.ts").EnterpriseDatasetCatalogReference;
|
|
409
|
-
readonly category: "VIEW";
|
|
410
|
-
readonly columns: string[];
|
|
411
|
-
readonly createdAt: Date | null;
|
|
412
|
-
readonly labels: string[];
|
|
413
|
-
readonly lastModifiedAt: Date | null;
|
|
414
|
-
readonly owner: {
|
|
415
|
-
id: string;
|
|
416
|
-
type: "USER" | "ROLE";
|
|
417
|
-
username: string;
|
|
418
|
-
};
|
|
419
|
-
readonly wiki: string | null;
|
|
420
|
-
readonly content?: undefined;
|
|
421
|
-
readonly id?: undefined;
|
|
422
|
-
readonly name?: undefined;
|
|
423
|
-
readonly functionSql?: undefined;
|
|
424
|
-
readonly error?: undefined;
|
|
425
|
-
readonly finishTime?: undefined;
|
|
426
|
-
readonly queriedDatasets?: undefined;
|
|
427
|
-
readonly queryType?: undefined;
|
|
428
|
-
readonly sql?: undefined;
|
|
429
|
-
readonly startTime?: undefined;
|
|
430
|
-
readonly state?: undefined;
|
|
431
|
-
readonly user?: undefined;
|
|
432
|
-
} | {
|
|
433
|
-
readonly category: "JOB";
|
|
434
|
-
readonly error: string | undefined;
|
|
435
|
-
readonly finishTime: Date;
|
|
436
|
-
readonly id: string;
|
|
437
|
-
readonly queriedDatasets: import("./CatalogReferences/EnterpriseDatasetCatalogReference.ts").EnterpriseDatasetCatalogReference[];
|
|
438
|
-
readonly queryType: import("../interfaces.ts").Job["queryType"];
|
|
439
|
-
readonly sql: import("../index.ts").Query;
|
|
440
|
-
readonly startTime: Date;
|
|
441
|
-
readonly state: import("../interfaces.ts").Job["state"];
|
|
442
|
-
readonly user: any;
|
|
443
|
-
readonly catalogReference?: undefined;
|
|
444
|
-
readonly owner?: undefined;
|
|
445
|
-
readonly wiki?: undefined;
|
|
446
|
-
readonly content?: undefined;
|
|
447
|
-
readonly createdAt?: undefined;
|
|
448
|
-
readonly lastModifiedAt?: undefined;
|
|
449
|
-
readonly name?: undefined;
|
|
450
|
-
readonly columns?: undefined;
|
|
451
|
-
readonly labels?: undefined;
|
|
452
|
-
readonly functionSql?: undefined;
|
|
453
|
-
})[];
|
|
19
|
+
data: (import("./catalogSearch/CatalogSearchResult.ts").FolderSearchResult | import("./catalogSearch/CatalogSearchResult.ts").ReflectionSearchResult | import("./catalogSearch/CatalogSearchResult.ts").SourceSearchResult | import("./catalogSearch/CatalogSearchResult.ts").SpaceSearchResult | import("./catalogSearch/CatalogSearchResult.ts").TableSearchResult | import("./catalogSearch/CatalogSearchResult.ts").ViewSearchResult | import("./catalogSearch/CatalogSearchResult.ts").FunctionSearchResult | import("./catalogSearch/CatalogSearchResult.ts").ScriptSearchResult | import("./catalogSearch/CatalogSearchResult.ts").JobSearchResult)[];
|
|
454
20
|
nextPageToken: string | undefined;
|
|
455
21
|
sessionId: string;
|
|
456
22
|
}, import("../index.ts").HttpError>;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export type CatalogSearchParams = {
|
|
2
|
-
filters?: {
|
|
3
|
-
in?: string;
|
|
4
|
-
owner?: string;
|
|
5
|
-
startTime?: DateRangeOption;
|
|
6
|
-
lastModified?: DateRangeOption;
|
|
7
|
-
type: Set<string>;
|
|
8
|
-
};
|
|
9
2
|
searchText: string;
|
|
3
|
+
in?: string;
|
|
4
|
+
owner?: string;
|
|
5
|
+
startTime?: DateRangeOption;
|
|
6
|
+
lastModified?: DateRangeOption;
|
|
7
|
+
type?: Set<string>;
|
|
10
8
|
};
|
|
11
9
|
export declare const dateRangeOptions: {
|
|
12
10
|
readonly ALL: "ALL";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogSearchParams.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/catalogSearch/CatalogSearchParams.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"CatalogSearchParams.js","sourceRoot":"","sources":["../../../../src/enterprise/catalog/catalogSearch/CatalogSearchParams.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,WAAW;IACxB,YAAY,EAAE,YAAY;IAC1B,WAAW,EAAE,WAAW;IACxB,aAAa,EAAE,aAAa;IAC5B,YAAY,EAAE,YAAY;IAC1B,SAAS,EAAE,UAAU;CACb,CAAC;AAIX,MAAM,QAAQ,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAChC,MAAM,OAAO,GAAG,QAAQ,GAAG,EAAE,CAAC;AAE9B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAsB,EAAQ,EAAE;IAC/D,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAEvB,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,gBAAgB,CAAC,SAAS;YAC7B,OAAO,IAAI,IAAI,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC;QAClC,KAAK,gBAAgB,CAAC,YAAY;YAChC,OAAO,IAAI,IAAI,CAAC,GAAG,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC;QACtC,KAAK,gBAAgB,CAAC,aAAa;YACjC,OAAO,IAAI,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,CAAC;QACjC,KAAK,gBAAgB,CAAC,WAAW;YAC/B,OAAO,IAAI,IAAI,CAAC,GAAG,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC;QACrC,KAAK,gBAAgB,CAAC,WAAW;YAC/B,OAAO,IAAI,IAAI,CAAC,GAAG,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC;QACrC,KAAK,gBAAgB,CAAC,YAAY;YAChC,OAAO,IAAI,IAAI,CAAC,GAAG,GAAG,OAAO,GAAG,EAAE,CAAC,CAAC;QACtC;YACE,OAAO,IAAI,IAAI,EAAE,CAAC;IACtB,CAAC;AACH,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2024-2025 Dremio Corporation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type CatalogSearchParams = {\n searchText: string;\n in?: string;\n owner?: string;\n startTime?: DateRangeOption;\n lastModified?: DateRangeOption;\n type?: Set<string>;\n};\n\nexport const dateRangeOptions = {\n ALL: \"ALL\",\n LAST_3_DAYS: \"Last3Days\",\n LAST_6_HOURS: \"Last6Hours\",\n LAST_7_DAYS: \"Last7Days\",\n LAST_24_HOURS: \"Last24Hours\",\n LAST_30_DAYS: \"Last30Days\",\n LAST_HOUR: \"LastHour\",\n} as const;\n\nexport type DateRangeOption = (typeof dateRangeOptions)[keyof typeof dateRangeOptions];\n\nconst ONE_HOUR = 60 * 60 * 1000;\nconst ONE_DAY = ONE_HOUR * 24;\n\nexport const getDateRangeTime = (value: DateRangeOption): Date => {\n const now = Date.now();\n\n switch (value) {\n case dateRangeOptions.LAST_HOUR:\n return new Date(now - ONE_HOUR);\n case dateRangeOptions.LAST_6_HOURS:\n return new Date(now - ONE_HOUR * 6);\n case dateRangeOptions.LAST_24_HOURS:\n return new Date(now - ONE_DAY);\n case dateRangeOptions.LAST_3_DAYS:\n return new Date(now - ONE_DAY * 3);\n case dateRangeOptions.LAST_7_DAYS:\n return new Date(now - ONE_DAY * 7);\n case dateRangeOptions.LAST_30_DAYS:\n return new Date(now - ONE_DAY * 30);\n default:\n return new Date();\n }\n};\n"]}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type { Query } from "../../../common/Query.ts";
|
|
2
|
+
import type { EnterpriseDatasetCatalogReference, EnterpriseFolderCatalogReference, EnterpriseFunctionCatalogReference, EnterpriseSourceCatalogReference, EnterpriseSpaceCatalogReference, Grantee, Job, UserGrantee } from "../../interfaces.ts";
|
|
3
|
+
export declare class FolderSearchResult {
|
|
4
|
+
readonly catalogReference: EnterpriseFolderCatalogReference;
|
|
5
|
+
readonly owner?: Grantee;
|
|
6
|
+
readonly wiki: string | null;
|
|
7
|
+
constructor(properties: {
|
|
8
|
+
catalogReference: EnterpriseFolderCatalogReference;
|
|
9
|
+
owner?: Grantee;
|
|
10
|
+
wiki: string | null;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export declare class ReflectionSearchResult {
|
|
14
|
+
readonly catalogReference: EnterpriseDatasetCatalogReference;
|
|
15
|
+
readonly createdAt: Date;
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly lastModifiedAt: Date;
|
|
18
|
+
readonly name: string;
|
|
19
|
+
constructor(properties: {
|
|
20
|
+
catalogReference: EnterpriseDatasetCatalogReference;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
id: string;
|
|
23
|
+
lastModifiedAt: Date;
|
|
24
|
+
name: string;
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export declare class SourceSearchResult {
|
|
28
|
+
readonly catalogReference: EnterpriseSourceCatalogReference;
|
|
29
|
+
readonly createdAt: Date;
|
|
30
|
+
readonly owner?: Grantee;
|
|
31
|
+
constructor(properties: {
|
|
32
|
+
catalogReference: EnterpriseSourceCatalogReference;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
owner?: Grantee;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
export declare class SpaceSearchResult {
|
|
38
|
+
readonly catalogReference: EnterpriseSpaceCatalogReference;
|
|
39
|
+
readonly createdAt: Date | null;
|
|
40
|
+
readonly lastModifiedAt: Date | null;
|
|
41
|
+
readonly owner: {
|
|
42
|
+
id: string;
|
|
43
|
+
type: "USER" | "ROLE";
|
|
44
|
+
username: string;
|
|
45
|
+
};
|
|
46
|
+
readonly wiki: string | null;
|
|
47
|
+
constructor(properties: {
|
|
48
|
+
catalogReference: EnterpriseSpaceCatalogReference;
|
|
49
|
+
createdAt: Date | null;
|
|
50
|
+
lastModifiedAt: Date | null;
|
|
51
|
+
owner: {
|
|
52
|
+
id: string;
|
|
53
|
+
type: "USER" | "ROLE";
|
|
54
|
+
username: string;
|
|
55
|
+
};
|
|
56
|
+
wiki: string | null;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export declare class TableSearchResult {
|
|
60
|
+
readonly columns: string[];
|
|
61
|
+
readonly catalogReference: EnterpriseDatasetCatalogReference;
|
|
62
|
+
readonly createdAt: Date | null;
|
|
63
|
+
readonly labels: string[];
|
|
64
|
+
readonly lastModifiedAt: Date | null;
|
|
65
|
+
readonly owner?: Grantee;
|
|
66
|
+
readonly wiki: string | null;
|
|
67
|
+
constructor(properties: {
|
|
68
|
+
columns: string[];
|
|
69
|
+
catalogReference: EnterpriseDatasetCatalogReference;
|
|
70
|
+
createdAt: Date | null;
|
|
71
|
+
labels: string[];
|
|
72
|
+
lastModifiedAt: Date | null;
|
|
73
|
+
owner?: Grantee;
|
|
74
|
+
wiki: string | null;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
export declare class ViewSearchResult {
|
|
78
|
+
readonly columns: string[];
|
|
79
|
+
readonly catalogReference: EnterpriseDatasetCatalogReference;
|
|
80
|
+
readonly createdAt: Date | null;
|
|
81
|
+
readonly labels: string[];
|
|
82
|
+
readonly lastModifiedAt: Date | null;
|
|
83
|
+
readonly owner: Grantee;
|
|
84
|
+
readonly wiki: string | null;
|
|
85
|
+
constructor(properties: {
|
|
86
|
+
columns: string[];
|
|
87
|
+
catalogReference: EnterpriseDatasetCatalogReference;
|
|
88
|
+
createdAt: Date | null;
|
|
89
|
+
labels: string[];
|
|
90
|
+
lastModifiedAt: Date | null;
|
|
91
|
+
owner: Grantee;
|
|
92
|
+
wiki: string | null;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
export declare class FunctionSearchResult {
|
|
96
|
+
readonly catalogReference: EnterpriseFunctionCatalogReference;
|
|
97
|
+
readonly createdAt: Date;
|
|
98
|
+
readonly lastModifiedAt: Date;
|
|
99
|
+
readonly owner: Grantee;
|
|
100
|
+
readonly functionSql: string;
|
|
101
|
+
constructor(properties: {
|
|
102
|
+
catalogReference: EnterpriseFunctionCatalogReference;
|
|
103
|
+
createdAt: Date;
|
|
104
|
+
lastModifiedAt: Date;
|
|
105
|
+
owner: Grantee;
|
|
106
|
+
functionSql: string;
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
export declare class ScriptSearchResult {
|
|
110
|
+
readonly content: string;
|
|
111
|
+
readonly createdAt: Date;
|
|
112
|
+
readonly id: string;
|
|
113
|
+
readonly lastModifiedAt: Date;
|
|
114
|
+
readonly name: string;
|
|
115
|
+
readonly owner: Grantee;
|
|
116
|
+
constructor(properties: {
|
|
117
|
+
content: string;
|
|
118
|
+
createdAt: Date;
|
|
119
|
+
id: string;
|
|
120
|
+
lastModifiedAt: Date;
|
|
121
|
+
name: string;
|
|
122
|
+
owner: Grantee;
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
export declare class JobSearchResult {
|
|
126
|
+
readonly id: string;
|
|
127
|
+
readonly queriedDatasets: EnterpriseDatasetCatalogReference[];
|
|
128
|
+
readonly sql: Query;
|
|
129
|
+
readonly queryType: Job["queryType"];
|
|
130
|
+
readonly user: UserGrantee;
|
|
131
|
+
readonly startTime: Date;
|
|
132
|
+
readonly finishTime: Date;
|
|
133
|
+
readonly state: Job["state"];
|
|
134
|
+
readonly error?: string;
|
|
135
|
+
constructor(properties: {
|
|
136
|
+
id: string;
|
|
137
|
+
queriedDatasets: EnterpriseDatasetCatalogReference[];
|
|
138
|
+
sql: Query;
|
|
139
|
+
queryType: Job["queryType"];
|
|
140
|
+
user: UserGrantee;
|
|
141
|
+
startTime: Date;
|
|
142
|
+
finishTime: Date;
|
|
143
|
+
state: Job["state"];
|
|
144
|
+
error?: string;
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
export type CatalogSearchResult = FolderSearchResult | ReflectionSearchResult | SourceSearchResult | SpaceSearchResult | TableSearchResult | ViewSearchResult | ScriptSearchResult | JobSearchResult | FunctionSearchResult;
|