@explo-tech/fido-api 0.0.15 → 0.0.17
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/index.ts +7 -5
- package/models/Computation.ts +2 -0
- package/models/Grouping.ts +8 -0
- package/models/{BulkNamespacesResponse.ts → ListNamespacesResponse.ts} +1 -1
- package/models/{BulkViewsRequest.ts → ListViewsRequest.ts} +1 -1
- package/models/{BulkViewsResponse.ts → ListViewsResponse.ts} +1 -1
- package/models/Property.ts +1 -4
- package/models/QueryExecutionResponse.ts +0 -1
- package/models/QueryPreviewRequest.ts +0 -1
- package/models/TestConnectionResponse.ts +8 -0
- package/package.json +1 -1
- package/services/DefaultService.ts +24 -0
- package/services/{BulkViewsResourceService.ts → ListViewsResourceService.ts} +5 -5
- package/services/NamespaceResourceService.ts +20 -0
- package/services/BulkNamespacesResourceService.ts +0 -32
package/index.ts
CHANGED
|
@@ -7,9 +7,6 @@ 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 { BulkNamespacesResponse } from './models/BulkNamespacesResponse';
|
|
11
|
-
export type { BulkViewsRequest } from './models/BulkViewsRequest';
|
|
12
|
-
export type { BulkViewsResponse } from './models/BulkViewsResponse';
|
|
13
10
|
export type { ClientError } from './models/ClientError';
|
|
14
11
|
export type { Computation } from './models/Computation';
|
|
15
12
|
export type { ComputedView } from './models/ComputedView';
|
|
@@ -27,7 +24,11 @@ export type { DateTimePropertyValue } from './models/DateTimePropertyValue';
|
|
|
27
24
|
export type { DecimalPropertyValue } from './models/DecimalPropertyValue';
|
|
28
25
|
export type { DoublePropertyValue } from './models/DoublePropertyValue';
|
|
29
26
|
export type { Filter } from './models/Filter';
|
|
27
|
+
export type { Grouping } from './models/Grouping';
|
|
30
28
|
export type { IntegerPropertyValue } from './models/IntegerPropertyValue';
|
|
29
|
+
export type { ListNamespacesResponse } from './models/ListNamespacesResponse';
|
|
30
|
+
export type { ListViewsRequest } from './models/ListViewsRequest';
|
|
31
|
+
export type { ListViewsResponse } from './models/ListViewsResponse';
|
|
31
32
|
export type { MySql } from './models/MySql';
|
|
32
33
|
export type { MySqlAuthentication } from './models/MySqlAuthentication';
|
|
33
34
|
export type { Namespace } from './models/Namespace';
|
|
@@ -54,6 +55,7 @@ export type { StringPropertyValue } from './models/StringPropertyValue';
|
|
|
54
55
|
export type { TablePreviewRequest } from './models/TablePreviewRequest';
|
|
55
56
|
export type { TableView } from './models/TableView';
|
|
56
57
|
export type { TenantPrivateKeyAuthentication } from './models/TenantPrivateKeyAuthentication';
|
|
58
|
+
export type { TestConnectionResponse } from './models/TestConnectionResponse';
|
|
57
59
|
export type { Tunnel } from './models/Tunnel';
|
|
58
60
|
export type { UUID } from './models/UUID';
|
|
59
61
|
export type { VendorPrivateKeyAuthentication } from './models/VendorPrivateKeyAuthentication';
|
|
@@ -62,10 +64,10 @@ export type { ViewRequest } from './models/ViewRequest';
|
|
|
62
64
|
export type { ViewResponse } from './models/ViewResponse';
|
|
63
65
|
export type { ViewRunRequest } from './models/ViewRunRequest';
|
|
64
66
|
|
|
65
|
-
export { BulkNamespacesResourceService } from './services/BulkNamespacesResourceService';
|
|
66
|
-
export { BulkViewsResourceService } from './services/BulkViewsResourceService';
|
|
67
67
|
export { DataSourceResourceService } from './services/DataSourceResourceService';
|
|
68
|
+
export { DefaultService } from './services/DefaultService';
|
|
68
69
|
export { HealthResourceService } from './services/HealthResourceService';
|
|
70
|
+
export { ListViewsResourceService } from './services/ListViewsResourceService';
|
|
69
71
|
export { NamespaceResourceService } from './services/NamespaceResourceService';
|
|
70
72
|
export { QueryResourceService } from './services/QueryResourceService';
|
|
71
73
|
export { ViewResourceService } from './services/ViewResourceService';
|
package/models/Computation.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { Filter } from './Filter';
|
|
6
|
+
import type { Grouping } from './Grouping';
|
|
6
7
|
import type { Property } from './Property';
|
|
7
8
|
import type { Sort } from './Sort';
|
|
8
9
|
|
|
@@ -10,5 +11,6 @@ export type Computation = {
|
|
|
10
11
|
properties: Array<Property>;
|
|
11
12
|
filter: Filter | null;
|
|
12
13
|
sorts: Array<Sort>;
|
|
14
|
+
groupings: Array<Grouping>;
|
|
13
15
|
};
|
|
14
16
|
|
package/models/Property.ts
CHANGED
|
@@ -7,7 +7,6 @@ import type { DataRequestParameters } from './DataRequestParameters';
|
|
|
7
7
|
|
|
8
8
|
export type QueryPreviewRequest = {
|
|
9
9
|
query: string;
|
|
10
|
-
tableIdentifier: string;
|
|
11
10
|
dataRequestParameters: DataRequestParameters;
|
|
12
11
|
queryContext: Record<string, any>;
|
|
13
12
|
computation: Computation | null;
|
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
6
|
+
import { request as __request } from '../core/request';
|
|
7
|
+
|
|
8
|
+
export class DefaultService {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Get the number of tables in a provided data source
|
|
12
|
+
* @returns any Number of tables in a provided data source
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
public static testConnection(): CancelablePromise<{
|
|
16
|
+
numberOfTables: number;
|
|
17
|
+
}> {
|
|
18
|
+
return __request(OpenAPI, {
|
|
19
|
+
method: 'POST',
|
|
20
|
+
url: '/v1/data-sources/test-connection',
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* istanbul ignore file */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import type {
|
|
4
|
+
import type { ListViewsRequest } from '../models/ListViewsRequest';
|
|
5
5
|
import type { View } from '../models/View';
|
|
6
6
|
|
|
7
7
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
8
|
import { OpenAPI } from '../core/OpenAPI';
|
|
9
9
|
import { request as __request } from '../core/request';
|
|
10
10
|
|
|
11
|
-
export class
|
|
11
|
+
export class ListViewsResourceService {
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Clones the request set of views
|
|
@@ -17,7 +17,7 @@ export class BulkViewsResourceService {
|
|
|
17
17
|
* @throws ApiError
|
|
18
18
|
*/
|
|
19
19
|
public static cloneViews(
|
|
20
|
-
requestBody:
|
|
20
|
+
requestBody: ListViewsRequest,
|
|
21
21
|
): CancelablePromise<{
|
|
22
22
|
views: Array<View>;
|
|
23
23
|
}> {
|
|
@@ -30,13 +30,13 @@ export class BulkViewsResourceService {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Gets the requested set of views
|
|
34
34
|
* @param requestBody View ids to get
|
|
35
35
|
* @returns any The requested views
|
|
36
36
|
* @throws ApiError
|
|
37
37
|
*/
|
|
38
38
|
public static getViews(
|
|
39
|
-
requestBody:
|
|
39
|
+
requestBody: ListViewsRequest,
|
|
40
40
|
): CancelablePromise<{
|
|
41
41
|
views: Array<View>;
|
|
42
42
|
}> {
|
|
@@ -11,6 +11,26 @@ import { request as __request } from '../core/request';
|
|
|
11
11
|
|
|
12
12
|
export class NamespaceResourceService {
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Fetches all namespaces and, optionally, their associated data sources
|
|
16
|
+
* @param includeDataSources
|
|
17
|
+
* @returns any All namespaces, along with associated data sources
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
public static getNamespaces(
|
|
21
|
+
includeDataSources: boolean = false,
|
|
22
|
+
): CancelablePromise<{
|
|
23
|
+
namespaces: Array<NamespaceResponse>;
|
|
24
|
+
}> {
|
|
25
|
+
return __request(OpenAPI, {
|
|
26
|
+
method: 'GET',
|
|
27
|
+
url: '/v1/namespaces/list',
|
|
28
|
+
query: {
|
|
29
|
+
'includeDataSources': includeDataSources,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
14
34
|
/**
|
|
15
35
|
* Gets a namespace and its associated data sources
|
|
16
36
|
* @param id
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* istanbul ignore file */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import type { NamespaceResponse } from '../models/NamespaceResponse';
|
|
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 BulkNamespacesResourceService {
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Fetches all namespaces and its associated data sources
|
|
14
|
-
* @param includeDataSources
|
|
15
|
-
* @returns any All namespaces, along with associated data sources
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
public static getNamespaces(
|
|
19
|
-
includeDataSources: boolean = false,
|
|
20
|
-
): CancelablePromise<{
|
|
21
|
-
namespaces: Array<NamespaceResponse>;
|
|
22
|
-
}> {
|
|
23
|
-
return __request(OpenAPI, {
|
|
24
|
-
method: 'GET',
|
|
25
|
-
url: '/v1/namespaces/list',
|
|
26
|
-
query: {
|
|
27
|
-
'includeDataSources': includeDataSources,
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}
|