@explo-tech/fido-api 0.0.12 → 0.0.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/core/OpenAPI.ts CHANGED
@@ -20,7 +20,7 @@ export type OpenAPIConfig = {
20
20
 
21
21
  export const OpenAPI: OpenAPIConfig = {
22
22
  BASE: '',
23
- VERSION: 'unspecified',
23
+ VERSION: '1.0',
24
24
  WITH_CREDENTIALS: false,
25
25
  CREDENTIALS: 'include',
26
26
  TOKEN: undefined,
package/index.ts CHANGED
@@ -7,66 +7,45 @@ export { OpenAPI } from './core/OpenAPI';
7
7
  export type { OpenAPIConfig } from './core/OpenAPI';
8
8
 
9
9
  export type { BooleanPropertyValue } from './models/BooleanPropertyValue';
10
- export type { BulkViewsRequest } from './models/BulkViewsRequest';
10
+ export type { BulkNamespacesResponse } from './models/BulkNamespacesResponse';
11
11
  export type { BulkViewsResponse } from './models/BulkViewsResponse';
12
12
  export type { ClientError } from './models/ClientError';
13
- export type { Computation } from './models/Computation';
14
13
  export type { ComputedView } from './models/ComputedView';
15
14
  export type { DataPage } from './models/DataPage';
16
15
  export type { DataRecord } from './models/DataRecord';
17
- export type { DataRequestParameters } from './models/DataRequestParameters';
18
16
  export type { DataResponseMetadata } from './models/DataResponseMetadata';
19
17
  export type { DataSchema } from './models/DataSchema';
20
18
  export type { DataSource } from './models/DataSource';
21
19
  export type { DataSourceConfiguration } from './models/DataSourceConfiguration';
22
- export type { DataSourceRequest } from './models/DataSourceRequest';
23
20
  export type { DataSourceResponse } from './models/DataSourceResponse';
24
21
  export type { DatePropertyValue } from './models/DatePropertyValue';
25
22
  export type { DateTimePropertyValue } from './models/DateTimePropertyValue';
26
23
  export type { DecimalPropertyValue } from './models/DecimalPropertyValue';
27
24
  export type { DoublePropertyValue } from './models/DoublePropertyValue';
28
- export type { Filter } from './models/Filter';
29
25
  export type { IntegerPropertyValue } from './models/IntegerPropertyValue';
30
- export type { LocalDate } from './models/LocalDate';
31
26
  export type { MySql } from './models/MySql';
32
27
  export type { MySqlAuthentication } from './models/MySqlAuthentication';
33
28
  export type { Namespace } from './models/Namespace';
34
- export type { NamespaceRequest } from './models/NamespaceRequest';
35
29
  export type { NamespaceResponse } from './models/NamespaceResponse';
36
30
  export type { NamespaceResponseMetadata } from './models/NamespaceResponseMetadata';
37
- export type { OffsetDateTime } from './models/OffsetDateTime';
38
- export type { Optional } from './models/Optional';
39
- export type { PagingConfiguration } from './models/PagingConfiguration';
40
31
  export type { PasswordAuthentication } from './models/PasswordAuthentication';
41
32
  export type { Postgres } from './models/Postgres';
42
33
  export type { PostgresAuthentication } from './models/PostgresAuthentication';
43
- export type { Property } from './models/Property';
44
34
  export type { PropertySchema } from './models/PropertySchema';
45
35
  export { PropertyType } from './models/PropertyType';
46
36
  export type { PropertyValue } from './models/PropertyValue';
47
37
  export type { PublicTunnel } from './models/PublicTunnel';
48
38
  export type { QueryExecutionResponse } from './models/QueryExecutionResponse';
49
- export type { QueryPreviewRequest } from './models/QueryPreviewRequest';
50
39
  export type { RequestTelemetry } from './models/RequestTelemetry';
51
- export type { Sort } from './models/Sort';
52
- export { SortDirection } from './models/SortDirection';
53
40
  export type { SSHAuthentication } from './models/SSHAuthentication';
54
41
  export type { SSHTunnel } from './models/SSHTunnel';
55
42
  export type { StringPropertyValue } from './models/StringPropertyValue';
56
- export type { TablePreviewRequest } from './models/TablePreviewRequest';
57
43
  export type { TableView } from './models/TableView';
58
44
  export type { TenantPrivateKeyAuthentication } from './models/TenantPrivateKeyAuthentication';
59
45
  export type { Tunnel } from './models/Tunnel';
60
46
  export type { UUID } from './models/UUID';
61
47
  export type { VendorPrivateKeyAuthentication } from './models/VendorPrivateKeyAuthentication';
62
48
  export type { View } from './models/View';
63
- export type { ViewRequest } from './models/ViewRequest';
64
49
  export type { ViewResponse } from './models/ViewResponse';
65
- export type { ViewRunRequest } from './models/ViewRunRequest';
66
50
 
67
- export { BulkViewsResourceService } from './services/BulkViewsResourceService';
68
- export { DatasourceResourceService } from './services/DatasourceResourceService';
69
- export { HealthResourceService } from './services/HealthResourceService';
70
- export { NamespaceResourceService } from './services/NamespaceResourceService';
71
- export { QueryResourceService } from './services/QueryResourceService';
72
- export { ViewResourceService } from './services/ViewResourceService';
51
+ export { DefaultService } from './services/DefaultService';
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { NamespaceResponse } from './NamespaceResponse';
6
+
7
+ export type BulkNamespacesResponse = {
8
+ namespaces: Array<NamespaceResponse>;
9
+ };
10
+
@@ -8,8 +8,8 @@ export type ComputedView = {
8
8
  name: string;
9
9
  description: string | null;
10
10
  columnDefinitions: Array<PropertySchema>;
11
- readonly id: string;
12
- readonly namespaceId: string;
11
+ id: string | null;
12
+ namespaceId: string | null;
13
13
  query: string;
14
14
  };
15
15
 
@@ -2,9 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- import type { LocalDate } from './LocalDate';
6
-
7
5
  export type DatePropertyValue = {
8
- value: LocalDate;
6
+ value: string;
9
7
  };
10
8
 
@@ -2,9 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- import type { OffsetDateTime } from './OffsetDateTime';
6
-
7
5
  export type DateTimePropertyValue = {
8
- value: OffsetDateTime;
6
+ value: string;
9
7
  };
10
8
 
@@ -8,8 +8,8 @@ export type TableView = {
8
8
  name: string;
9
9
  description: string | null;
10
10
  columnDefinitions: Array<PropertySchema>;
11
- readonly id: string | null;
12
- readonly namespaceId: string;
11
+ id: string | null;
12
+ namespaceId: string | null;
13
13
  tableName: string;
14
14
  };
15
15
 
package/models/View.ts CHANGED
@@ -10,7 +10,7 @@ export type View = (TableView | ComputedView | {
10
10
  name: string;
11
11
  description: string | null;
12
12
  columnDefinitions: Array<PropertySchema>;
13
- readonly id: string | null;
14
- readonly namespaceId: string;
13
+ id: string | null;
14
+ namespaceId: string | null;
15
15
  });
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explo-tech/fido-api",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "Fido api",
5
5
  "homepage": "https://github.com/trust-kaz/fido",
6
6
  "license": "MIT",
@@ -0,0 +1,409 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type { DataSourceResponse } from '../models/DataSourceResponse';
5
+ import type { NamespaceResponse } from '../models/NamespaceResponse';
6
+ import type { QueryExecutionResponse } from '../models/QueryExecutionResponse';
7
+ import type { UUID } from '../models/UUID';
8
+ import type { View } from '../models/View';
9
+ import type { ViewResponse } from '../models/ViewResponse';
10
+
11
+ import type { CancelablePromise } from '../core/CancelablePromise';
12
+ import { OpenAPI } from '../core/OpenAPI';
13
+ import { request as __request } from '../core/request';
14
+
15
+ export class DefaultService {
16
+
17
+ /**
18
+ * Returns the entire state of the FIDO application
19
+ * @returns any A response with the current status of the FIDO
20
+ * @throws ApiError
21
+ */
22
+ public static getFidoHealth(): CancelablePromise<Record<string, any>> {
23
+ return __request(OpenAPI, {
24
+ method: 'GET',
25
+ url: '/v1/health',
26
+ });
27
+ }
28
+
29
+ /**
30
+ * Verifies that the DataSourceConnection verticle is alive
31
+ * @param dataSourceId
32
+ * @param namespaceId
33
+ * @returns any A response with the current status of the verticle
34
+ * @throws ApiError
35
+ */
36
+ public static getDataSourceConnectionHealth(
37
+ dataSourceId: UUID,
38
+ namespaceId: UUID,
39
+ ): CancelablePromise<Record<string, any>> {
40
+ return __request(OpenAPI, {
41
+ method: 'GET',
42
+ url: '/v1/health/data-source-connection/{namespaceId}/{dataSourceId}',
43
+ path: {
44
+ 'dataSourceId': dataSourceId,
45
+ 'namespaceId': namespaceId,
46
+ },
47
+ });
48
+ }
49
+
50
+ /**
51
+ * Fetches all namespaces and its associated data sources
52
+ * @param includeDataSources
53
+ * @returns any All namespaces, along with associated data sources
54
+ * @throws ApiError
55
+ */
56
+ public static getNamespaces(
57
+ includeDataSources: boolean = false,
58
+ ): CancelablePromise<{
59
+ namespaces: Array<NamespaceResponse>;
60
+ }> {
61
+ return __request(OpenAPI, {
62
+ method: 'GET',
63
+ url: '/v1/namespaces/list',
64
+ query: {
65
+ 'includeDataSources': includeDataSources,
66
+ },
67
+ });
68
+ }
69
+
70
+ /**
71
+ * Gets a namespace and its associated data sources
72
+ * @param id
73
+ * @param includeDataSources
74
+ * @returns NamespaceResponse The requested namespace, along with its associated data sources
75
+ * @throws ApiError
76
+ */
77
+ public static getNamespace(
78
+ id: UUID,
79
+ includeDataSources: boolean = false,
80
+ ): CancelablePromise<NamespaceResponse> {
81
+ return __request(OpenAPI, {
82
+ method: 'GET',
83
+ url: '/v1/namespaces/{id}',
84
+ path: {
85
+ 'id': id,
86
+ },
87
+ query: {
88
+ 'includeDataSources': includeDataSources,
89
+ },
90
+ });
91
+ }
92
+
93
+ /**
94
+ * Updates a namespace's metadata
95
+ * @param id
96
+ * @returns NamespaceResponse The updated namespace, along with its associated data sources
97
+ * @throws ApiError
98
+ */
99
+ public static updateNamespace(
100
+ id: UUID,
101
+ ): CancelablePromise<NamespaceResponse> {
102
+ return __request(OpenAPI, {
103
+ method: 'PUT',
104
+ url: '/v1/namespaces/{id}',
105
+ path: {
106
+ 'id': id,
107
+ },
108
+ });
109
+ }
110
+
111
+ /**
112
+ * Creates a namespace and optionally a data source associated with it
113
+ * @param id
114
+ * @returns NamespaceResponse The requested namespace, along with its associated data source if applicable
115
+ * @throws ApiError
116
+ */
117
+ public static createNamespace(
118
+ id: UUID,
119
+ ): CancelablePromise<NamespaceResponse> {
120
+ return __request(OpenAPI, {
121
+ method: 'POST',
122
+ url: '/v1/namespaces/{id}',
123
+ path: {
124
+ 'id': id,
125
+ },
126
+ });
127
+ }
128
+
129
+ /**
130
+ * Deletes a namespace, cascading to its associated resources
131
+ * @param id
132
+ * @returns any 200 if the namespace was deleted properly
133
+ * @throws ApiError
134
+ */
135
+ public static deleteNamespace(
136
+ id: UUID,
137
+ ): CancelablePromise<Record<string, any>> {
138
+ return __request(OpenAPI, {
139
+ method: 'DELETE',
140
+ url: '/v1/namespaces/{id}',
141
+ path: {
142
+ 'id': id,
143
+ },
144
+ });
145
+ }
146
+
147
+ /**
148
+ * Runs a provided query against the provided data source
149
+ * @param dataSourceId
150
+ * @param namespaceId
151
+ * @returns QueryExecutionResponse A DataPage of the provided query
152
+ * @throws ApiError
153
+ */
154
+ public static getQueryPreview(
155
+ dataSourceId: UUID,
156
+ namespaceId: UUID,
157
+ ): CancelablePromise<QueryExecutionResponse> {
158
+ return __request(OpenAPI, {
159
+ method: 'POST',
160
+ url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/preview',
161
+ path: {
162
+ 'dataSourceId': dataSourceId,
163
+ 'namespaceId': namespaceId,
164
+ },
165
+ });
166
+ }
167
+
168
+ /**
169
+ * Gets a preview of a specified table in a Data Source
170
+ * @param dataSourceId
171
+ * @param namespaceId
172
+ * @returns QueryExecutionResponse A DataPage of the resulting Data Source's data
173
+ * @throws ApiError
174
+ */
175
+ public static getTablePreview(
176
+ dataSourceId: UUID,
177
+ namespaceId: UUID,
178
+ ): CancelablePromise<QueryExecutionResponse> {
179
+ return __request(OpenAPI, {
180
+ method: 'POST',
181
+ url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/preview-table',
182
+ path: {
183
+ 'dataSourceId': dataSourceId,
184
+ 'namespaceId': namespaceId,
185
+ },
186
+ });
187
+ }
188
+
189
+ /**
190
+ * Runs the requested view against the provided data source
191
+ * @param dataSourceId
192
+ * @param namespaceId
193
+ * @param viewId
194
+ * @returns QueryExecutionResponse A DataPage of the provided query
195
+ * @throws ApiError
196
+ */
197
+ public static runView(
198
+ dataSourceId: UUID,
199
+ namespaceId: UUID,
200
+ viewId: UUID,
201
+ ): CancelablePromise<QueryExecutionResponse> {
202
+ return __request(OpenAPI, {
203
+ method: 'POST',
204
+ url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/run',
205
+ path: {
206
+ 'dataSourceId': dataSourceId,
207
+ 'namespaceId': namespaceId,
208
+ 'viewId': viewId,
209
+ },
210
+ });
211
+ }
212
+
213
+ /**
214
+ * Gets a data source
215
+ * @param id
216
+ * @param namespaceId
217
+ * @returns DataSourceResponse The requested data source
218
+ * @throws ApiError
219
+ */
220
+ public static getDataSource(
221
+ id: UUID,
222
+ namespaceId: UUID,
223
+ ): CancelablePromise<DataSourceResponse> {
224
+ return __request(OpenAPI, {
225
+ method: 'GET',
226
+ url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
227
+ path: {
228
+ 'id': id,
229
+ 'namespaceId': namespaceId,
230
+ },
231
+ });
232
+ }
233
+
234
+ /**
235
+ * Updates a data source's metadata
236
+ * @param id
237
+ * @param namespaceId
238
+ * @returns DataSourceResponse The updated data source
239
+ * @throws ApiError
240
+ */
241
+ public static updateDataSource(
242
+ id: UUID,
243
+ namespaceId: UUID,
244
+ ): CancelablePromise<DataSourceResponse> {
245
+ return __request(OpenAPI, {
246
+ method: 'PUT',
247
+ url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
248
+ path: {
249
+ 'id': id,
250
+ 'namespaceId': namespaceId,
251
+ },
252
+ });
253
+ }
254
+
255
+ /**
256
+ * Creates a data source
257
+ * @param id
258
+ * @param namespaceId
259
+ * @returns DataSourceResponse The requested data source
260
+ * @throws ApiError
261
+ */
262
+ public static createDataSource(
263
+ id: UUID,
264
+ namespaceId: UUID,
265
+ ): CancelablePromise<DataSourceResponse> {
266
+ return __request(OpenAPI, {
267
+ method: 'POST',
268
+ url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
269
+ path: {
270
+ 'id': id,
271
+ 'namespaceId': namespaceId,
272
+ },
273
+ });
274
+ }
275
+
276
+ /**
277
+ * Deletes a data source
278
+ * @param id
279
+ * @param namespaceId
280
+ * @returns any 200 if the data source was deleted properly
281
+ * @throws ApiError
282
+ */
283
+ public static deleteDataSource(
284
+ id: UUID,
285
+ namespaceId: UUID,
286
+ ): CancelablePromise<Record<string, any>> {
287
+ return __request(OpenAPI, {
288
+ method: 'DELETE',
289
+ url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
290
+ path: {
291
+ 'id': id,
292
+ 'namespaceId': namespaceId,
293
+ },
294
+ });
295
+ }
296
+
297
+ /**
298
+ * Gets a view
299
+ * @param id
300
+ * @param namespaceId
301
+ * @returns ViewResponse The requested view
302
+ * @throws ApiError
303
+ */
304
+ public static getView(
305
+ id: UUID,
306
+ namespaceId: UUID,
307
+ ): CancelablePromise<ViewResponse> {
308
+ return __request(OpenAPI, {
309
+ method: 'GET',
310
+ url: '/v1/namespaces/{namespaceId}/views/{id}',
311
+ path: {
312
+ 'id': id,
313
+ 'namespaceId': namespaceId,
314
+ },
315
+ });
316
+ }
317
+
318
+ /**
319
+ * Updates a view's metadata
320
+ * @param id
321
+ * @param namespaceId
322
+ * @returns ViewResponse The updated view
323
+ * @throws ApiError
324
+ */
325
+ public static updateView(
326
+ id: UUID,
327
+ namespaceId: UUID,
328
+ ): CancelablePromise<ViewResponse> {
329
+ return __request(OpenAPI, {
330
+ method: 'PUT',
331
+ url: '/v1/namespaces/{namespaceId}/views/{id}',
332
+ path: {
333
+ 'id': id,
334
+ 'namespaceId': namespaceId,
335
+ },
336
+ });
337
+ }
338
+
339
+ /**
340
+ * Creates a view
341
+ * @param id
342
+ * @param namespaceId
343
+ * @returns ViewResponse The requested view
344
+ * @throws ApiError
345
+ */
346
+ public static createView(
347
+ id: UUID,
348
+ namespaceId: UUID,
349
+ ): CancelablePromise<ViewResponse> {
350
+ return __request(OpenAPI, {
351
+ method: 'POST',
352
+ url: '/v1/namespaces/{namespaceId}/views/{id}',
353
+ path: {
354
+ 'id': id,
355
+ 'namespaceId': namespaceId,
356
+ },
357
+ });
358
+ }
359
+
360
+ /**
361
+ * Deletes a view
362
+ * @param id
363
+ * @param namespaceId
364
+ * @returns any 200 if the view was deleted properly
365
+ * @throws ApiError
366
+ */
367
+ public static deleteView(
368
+ id: UUID,
369
+ namespaceId: UUID,
370
+ ): CancelablePromise<Record<string, any>> {
371
+ return __request(OpenAPI, {
372
+ method: 'DELETE',
373
+ url: '/v1/namespaces/{namespaceId}/views/{id}',
374
+ path: {
375
+ 'id': id,
376
+ 'namespaceId': namespaceId,
377
+ },
378
+ });
379
+ }
380
+
381
+ /**
382
+ * Clones the request set of views
383
+ * @returns any The cloned views
384
+ * @throws ApiError
385
+ */
386
+ public static cloneViews(): CancelablePromise<{
387
+ views: Array<View>;
388
+ }> {
389
+ return __request(OpenAPI, {
390
+ method: 'POST',
391
+ url: '/v1/views/clone',
392
+ });
393
+ }
394
+
395
+ /**
396
+ * Deletes a view
397
+ * @returns any The requested views
398
+ * @throws ApiError
399
+ */
400
+ public static getViews(): CancelablePromise<{
401
+ views: Array<View>;
402
+ }> {
403
+ return __request(OpenAPI, {
404
+ method: 'POST',
405
+ url: '/v1/views/get',
406
+ });
407
+ }
408
+
409
+ }
package/.tool-versions DELETED
@@ -1 +0,0 @@
1
- nodejs 16.17.1
@@ -1,8 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export type BulkViewsRequest = {
6
- viewIds: Array<string>;
7
- };
8
-
@@ -1,14 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { Filter } from './Filter';
6
- import type { Property } from './Property';
7
- import type { Sort } from './Sort';
8
-
9
- export type Computation = {
10
- properties: Array<Property>;
11
- filter: Filter | null;
12
- sorts: Array<Sort>;
13
- };
14
-
@@ -1,11 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { PagingConfiguration } from './PagingConfiguration';
6
-
7
- export type DataRequestParameters = {
8
- pagingConfiguration?: PagingConfiguration;
9
- includeTotalResults?: boolean;
10
- };
11
-
@@ -1,10 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { DataSource } from './DataSource';
6
-
7
- export type DataSourceRequest = {
8
- dataSource: DataSource;
9
- };
10
-
package/models/Filter.ts DELETED
@@ -1,5 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export type Filter = Record<string, any>;
@@ -1,5 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export type LocalDate = string;
@@ -1,10 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { Namespace } from './Namespace';
6
-
7
- export type NamespaceRequest = {
8
- namespace: Namespace;
9
- };
10
-
@@ -1,5 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export type OffsetDateTime = string;
@@ -1,10 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export type Optional = {
6
- value?: any;
7
- present?: boolean;
8
- empty?: boolean;
9
- };
10
-
@@ -1,9 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export type PagingConfiguration = {
6
- perPage?: number;
7
- page?: number;
8
- };
9
-
@@ -1,8 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export type Property = {
6
- propertyId: string;
7
- };
8
-
@@ -1,15 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { Computation } from './Computation';
6
- import type { DataRequestParameters } from './DataRequestParameters';
7
-
8
- export type QueryPreviewRequest = {
9
- query: string;
10
- tableIdentifier: string;
11
- dataRequestParameters: DataRequestParameters;
12
- queryContext: Record<string, any>;
13
- computation: Computation | null;
14
- };
15
-
package/models/Sort.ts DELETED
@@ -1,11 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { SortDirection } from './SortDirection';
6
-
7
- export type Sort = {
8
- sortDirection: SortDirection;
9
- propertyId: string;
10
- };
11
-
@@ -1,8 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export enum SortDirection {
6
- ASCENDING = 'ASCENDING',
7
- DESCENDING = 'DESCENDING',
8
- }
@@ -1,11 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { DataRequestParameters } from './DataRequestParameters';
6
-
7
- export type TablePreviewRequest = {
8
- tableIdentifier: string;
9
- dataRequestParameters: DataRequestParameters;
10
- };
11
-
@@ -1,10 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { View } from './View';
6
-
7
- export type ViewRequest = {
8
- view: View;
9
- };
10
-
@@ -1,13 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { Computation } from './Computation';
6
- import type { DataRequestParameters } from './DataRequestParameters';
7
-
8
- export type ViewRunRequest = {
9
- dataRequestParameters: DataRequestParameters;
10
- queryContext: Record<string, any>;
11
- computation: Computation | null;
12
- };
13
-
@@ -1,51 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type { BulkViewsRequest } from '../models/BulkViewsRequest';
5
- import type { View } from '../models/View';
6
-
7
- import type { CancelablePromise } from '../core/CancelablePromise';
8
- import { OpenAPI } from '../core/OpenAPI';
9
- import { request as __request } from '../core/request';
10
-
11
- export class BulkViewsResourceService {
12
-
13
- /**
14
- * Clones the request set of views
15
- * @param requestBody
16
- * @returns any The cloned views
17
- * @throws ApiError
18
- */
19
- public static cloneViews(
20
- requestBody?: BulkViewsRequest,
21
- ): CancelablePromise<{
22
- views: Array<View>;
23
- }> {
24
- return __request(OpenAPI, {
25
- method: 'POST',
26
- url: '/v1/views/clone',
27
- body: requestBody,
28
- mediaType: 'application/json',
29
- });
30
- }
31
-
32
- /**
33
- * Deletes a view
34
- * @param requestBody
35
- * @returns any The requested views
36
- * @throws ApiError
37
- */
38
- public static getViews(
39
- requestBody?: BulkViewsRequest,
40
- ): CancelablePromise<{
41
- views: Array<View>;
42
- }> {
43
- return __request(OpenAPI, {
44
- method: 'POST',
45
- url: '/v1/views/get',
46
- body: requestBody,
47
- mediaType: 'application/json',
48
- });
49
- }
50
-
51
- }
@@ -1,106 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type { DataSourceRequest } from '../models/DataSourceRequest';
5
- import type { DataSourceResponse } from '../models/DataSourceResponse';
6
- import type { UUID } from '../models/UUID';
7
-
8
- import type { CancelablePromise } from '../core/CancelablePromise';
9
- import { OpenAPI } from '../core/OpenAPI';
10
- import { request as __request } from '../core/request';
11
-
12
- export class DatasourceResourceService {
13
-
14
- /**
15
- * Gets a data source
16
- * @param id
17
- * @param namespaceId
18
- * @returns DataSourceResponse The requested data source
19
- * @throws ApiError
20
- */
21
- public static getDataSource(
22
- id: UUID,
23
- namespaceId: UUID,
24
- ): CancelablePromise<DataSourceResponse> {
25
- return __request(OpenAPI, {
26
- method: 'GET',
27
- url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
28
- path: {
29
- 'id': id,
30
- 'namespaceId': namespaceId,
31
- },
32
- });
33
- }
34
-
35
- /**
36
- * Updates a data source's metadata
37
- * @param id
38
- * @param namespaceId
39
- * @param requestBody
40
- * @returns DataSourceResponse The updated data source
41
- * @throws ApiError
42
- */
43
- public static updateDataSource(
44
- id: UUID,
45
- namespaceId: UUID,
46
- requestBody?: DataSourceRequest,
47
- ): CancelablePromise<DataSourceResponse> {
48
- return __request(OpenAPI, {
49
- method: 'PUT',
50
- url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
51
- path: {
52
- 'id': id,
53
- 'namespaceId': namespaceId,
54
- },
55
- body: requestBody,
56
- mediaType: 'application/json',
57
- });
58
- }
59
-
60
- /**
61
- * Creates a data source
62
- * @param id
63
- * @param namespaceId
64
- * @param requestBody
65
- * @returns DataSourceResponse The requested data source
66
- * @throws ApiError
67
- */
68
- public static createDataSource(
69
- id: UUID,
70
- namespaceId: UUID,
71
- requestBody?: DataSourceRequest,
72
- ): CancelablePromise<DataSourceResponse> {
73
- return __request(OpenAPI, {
74
- method: 'POST',
75
- url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
76
- path: {
77
- 'id': id,
78
- 'namespaceId': namespaceId,
79
- },
80
- body: requestBody,
81
- mediaType: 'application/json',
82
- });
83
- }
84
-
85
- /**
86
- * Deletes a data source
87
- * @param id
88
- * @param namespaceId
89
- * @returns any 200 if the data source was deleted properly
90
- * @throws ApiError
91
- */
92
- public static deleteDataSource(
93
- id: UUID,
94
- namespaceId: UUID,
95
- ): CancelablePromise<Record<string, any>> {
96
- return __request(OpenAPI, {
97
- method: 'DELETE',
98
- url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
99
- path: {
100
- 'id': id,
101
- 'namespaceId': namespaceId,
102
- },
103
- });
104
- }
105
-
106
- }
@@ -1,45 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type { UUID } from '../models/UUID';
5
-
6
- import type { CancelablePromise } from '../core/CancelablePromise';
7
- import { OpenAPI } from '../core/OpenAPI';
8
- import { request as __request } from '../core/request';
9
-
10
- export class HealthResourceService {
11
-
12
- /**
13
- * Returns the entire state of the FIDO application
14
- * @returns any A response with the current status of the FIDO
15
- * @throws ApiError
16
- */
17
- public static getFidoHealth(): CancelablePromise<Record<string, any>> {
18
- return __request(OpenAPI, {
19
- method: 'GET',
20
- url: '/v1/health',
21
- });
22
- }
23
-
24
- /**
25
- * Verifies that the DataSourceConnection verticle is alive
26
- * @param dataSourceId
27
- * @param namespaceId
28
- * @returns any A response with the current status of the verticle
29
- * @throws ApiError
30
- */
31
- public static getDataSourceConnectionHealth(
32
- dataSourceId: UUID,
33
- namespaceId: UUID,
34
- ): CancelablePromise<Record<string, any>> {
35
- return __request(OpenAPI, {
36
- method: 'GET',
37
- url: '/v1/health/data-source-connection/{namespaceId}/{dataSourceId}',
38
- path: {
39
- 'dataSourceId': dataSourceId,
40
- 'namespaceId': namespaceId,
41
- },
42
- });
43
- }
44
-
45
- }
@@ -1,99 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type { NamespaceRequest } from '../models/NamespaceRequest';
5
- import type { NamespaceResponse } from '../models/NamespaceResponse';
6
- import type { UUID } from '../models/UUID';
7
-
8
- import type { CancelablePromise } from '../core/CancelablePromise';
9
- import { OpenAPI } from '../core/OpenAPI';
10
- import { request as __request } from '../core/request';
11
-
12
- export class NamespaceResourceService {
13
-
14
- /**
15
- * Gets a namespace and its associated data sources
16
- * @param id
17
- * @param includeDataSources
18
- * @returns NamespaceResponse The requested namespace, along with its associated data sources
19
- * @throws ApiError
20
- */
21
- public static getNamespace(
22
- id: UUID,
23
- includeDataSources: boolean = false,
24
- ): CancelablePromise<NamespaceResponse> {
25
- return __request(OpenAPI, {
26
- method: 'GET',
27
- url: '/v1/namespaces/{id}',
28
- path: {
29
- 'id': id,
30
- },
31
- query: {
32
- 'includeDataSources': includeDataSources,
33
- },
34
- });
35
- }
36
-
37
- /**
38
- * Updates a namespace's metadata
39
- * @param id
40
- * @param requestBody
41
- * @returns NamespaceResponse The updated namespace, along with its associated data sources
42
- * @throws ApiError
43
- */
44
- public static updateNamespace(
45
- id: UUID,
46
- requestBody?: NamespaceRequest,
47
- ): CancelablePromise<NamespaceResponse> {
48
- return __request(OpenAPI, {
49
- method: 'PUT',
50
- url: '/v1/namespaces/{id}',
51
- path: {
52
- 'id': id,
53
- },
54
- body: requestBody,
55
- mediaType: 'application/json',
56
- });
57
- }
58
-
59
- /**
60
- * Creates a namespace and optionally a data source associated with it
61
- * @param id
62
- * @param requestBody
63
- * @returns NamespaceResponse The requested namespace, along with its associated data source if applicable
64
- * @throws ApiError
65
- */
66
- public static createNamespace(
67
- id: UUID,
68
- requestBody?: NamespaceRequest,
69
- ): CancelablePromise<NamespaceResponse> {
70
- return __request(OpenAPI, {
71
- method: 'POST',
72
- url: '/v1/namespaces/{id}',
73
- path: {
74
- 'id': id,
75
- },
76
- body: requestBody,
77
- mediaType: 'application/json',
78
- });
79
- }
80
-
81
- /**
82
- * Deletes a namespace, cascading to its associated resources
83
- * @param id
84
- * @returns any 200 if the namespace was deleted properly
85
- * @throws ApiError
86
- */
87
- public static deleteNamespace(
88
- id: UUID,
89
- ): CancelablePromise<Record<string, any>> {
90
- return __request(OpenAPI, {
91
- method: 'DELETE',
92
- url: '/v1/namespaces/{id}',
93
- path: {
94
- 'id': id,
95
- },
96
- });
97
- }
98
-
99
- }
@@ -1,94 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type { QueryExecutionResponse } from '../models/QueryExecutionResponse';
5
- import type { QueryPreviewRequest } from '../models/QueryPreviewRequest';
6
- import type { TablePreviewRequest } from '../models/TablePreviewRequest';
7
- import type { UUID } from '../models/UUID';
8
- import type { ViewRunRequest } from '../models/ViewRunRequest';
9
-
10
- import type { CancelablePromise } from '../core/CancelablePromise';
11
- import { OpenAPI } from '../core/OpenAPI';
12
- import { request as __request } from '../core/request';
13
-
14
- export class QueryResourceService {
15
-
16
- /**
17
- * Runs a provided query against the provided data source
18
- * @param dataSourceId
19
- * @param namespaceId
20
- * @param requestBody
21
- * @returns QueryExecutionResponse A DataPage of the provided query
22
- * @throws ApiError
23
- */
24
- public static getQueryPreview(
25
- dataSourceId: UUID,
26
- namespaceId: UUID,
27
- requestBody?: QueryPreviewRequest,
28
- ): CancelablePromise<QueryExecutionResponse> {
29
- return __request(OpenAPI, {
30
- method: 'POST',
31
- url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/preview',
32
- path: {
33
- 'dataSourceId': dataSourceId,
34
- 'namespaceId': namespaceId,
35
- },
36
- body: requestBody,
37
- mediaType: 'application/json',
38
- });
39
- }
40
-
41
- /**
42
- * Gets a preview of a specified table in a Data Source
43
- * @param dataSourceId
44
- * @param namespaceId
45
- * @param requestBody
46
- * @returns QueryExecutionResponse A DataPage of the resulting Data Source's data
47
- * @throws ApiError
48
- */
49
- public static getTablePreview(
50
- dataSourceId: UUID,
51
- namespaceId: UUID,
52
- requestBody?: TablePreviewRequest,
53
- ): CancelablePromise<QueryExecutionResponse> {
54
- return __request(OpenAPI, {
55
- method: 'POST',
56
- url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/preview-table',
57
- path: {
58
- 'dataSourceId': dataSourceId,
59
- 'namespaceId': namespaceId,
60
- },
61
- body: requestBody,
62
- mediaType: 'application/json',
63
- });
64
- }
65
-
66
- /**
67
- * Runs the requested view against the provided data source
68
- * @param dataSourceId
69
- * @param namespaceId
70
- * @param viewId
71
- * @param requestBody
72
- * @returns QueryExecutionResponse A DataPage of the provided query
73
- * @throws ApiError
74
- */
75
- public static runView(
76
- dataSourceId: UUID,
77
- namespaceId: UUID,
78
- viewId: UUID,
79
- requestBody?: ViewRunRequest,
80
- ): CancelablePromise<QueryExecutionResponse> {
81
- return __request(OpenAPI, {
82
- method: 'POST',
83
- url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/run',
84
- path: {
85
- 'dataSourceId': dataSourceId,
86
- 'namespaceId': namespaceId,
87
- 'viewId': viewId,
88
- },
89
- body: requestBody,
90
- mediaType: 'application/json',
91
- });
92
- }
93
-
94
- }
@@ -1,106 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type { UUID } from '../models/UUID';
5
- import type { ViewRequest } from '../models/ViewRequest';
6
- import type { ViewResponse } from '../models/ViewResponse';
7
-
8
- import type { CancelablePromise } from '../core/CancelablePromise';
9
- import { OpenAPI } from '../core/OpenAPI';
10
- import { request as __request } from '../core/request';
11
-
12
- export class ViewResourceService {
13
-
14
- /**
15
- * Gets a view
16
- * @param id
17
- * @param namespaceId
18
- * @returns ViewResponse The requested view
19
- * @throws ApiError
20
- */
21
- public static getView(
22
- id: UUID,
23
- namespaceId: UUID,
24
- ): CancelablePromise<ViewResponse> {
25
- return __request(OpenAPI, {
26
- method: 'GET',
27
- url: '/v1/namespaces/{namespaceId}/views/{id}',
28
- path: {
29
- 'id': id,
30
- 'namespaceId': namespaceId,
31
- },
32
- });
33
- }
34
-
35
- /**
36
- * Updates a view's metadata
37
- * @param id
38
- * @param namespaceId
39
- * @param requestBody
40
- * @returns ViewResponse The updated view
41
- * @throws ApiError
42
- */
43
- public static updateView(
44
- id: UUID,
45
- namespaceId: UUID,
46
- requestBody?: ViewRequest,
47
- ): CancelablePromise<ViewResponse> {
48
- return __request(OpenAPI, {
49
- method: 'PUT',
50
- url: '/v1/namespaces/{namespaceId}/views/{id}',
51
- path: {
52
- 'id': id,
53
- 'namespaceId': namespaceId,
54
- },
55
- body: requestBody,
56
- mediaType: 'application/json',
57
- });
58
- }
59
-
60
- /**
61
- * Creates a view
62
- * @param id
63
- * @param namespaceId
64
- * @param requestBody
65
- * @returns ViewResponse The requested view
66
- * @throws ApiError
67
- */
68
- public static createView(
69
- id: UUID,
70
- namespaceId: UUID,
71
- requestBody?: ViewRequest,
72
- ): CancelablePromise<ViewResponse> {
73
- return __request(OpenAPI, {
74
- method: 'POST',
75
- url: '/v1/namespaces/{namespaceId}/views/{id}',
76
- path: {
77
- 'id': id,
78
- 'namespaceId': namespaceId,
79
- },
80
- body: requestBody,
81
- mediaType: 'application/json',
82
- });
83
- }
84
-
85
- /**
86
- * Deletes a view
87
- * @param id
88
- * @param namespaceId
89
- * @returns any 200 if the view was deleted properly
90
- * @throws ApiError
91
- */
92
- public static deleteView(
93
- id: UUID,
94
- namespaceId: UUID,
95
- ): CancelablePromise<Record<string, any>> {
96
- return __request(OpenAPI, {
97
- method: 'DELETE',
98
- url: '/v1/namespaces/{namespaceId}/views/{id}',
99
- path: {
100
- 'id': id,
101
- 'namespaceId': namespaceId,
102
- },
103
- });
104
- }
105
-
106
- }