@explo-tech/fido-api 0.0.40 → 0.0.42
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/ApiError.ts +1 -0
- package/core/ApiRequestOptions.ts +1 -0
- package/core/ApiResult.ts +1 -0
- package/core/CancelablePromise.ts +1 -0
- package/core/OpenAPI.ts +6 -5
- package/core/request.ts +28 -15
- package/index.ts +6 -0
- package/models/AggregateProperty.ts +1 -0
- package/models/Aggregation.ts +1 -0
- package/models/AggregationOption.ts +1 -0
- package/models/And.ts +1 -0
- package/models/BaseComputation.ts +1 -0
- package/models/BooleanPropertyValue.ts +1 -0
- package/models/CalendarInterval.ts +1 -0
- package/models/CalendarIntervalGrouping.ts +1 -0
- package/models/ClientError.ts +1 -0
- package/models/Computation.ts +1 -0
- package/models/ComputedView.ts +5 -3
- package/models/DataPage.ts +1 -0
- package/models/DataRecord.ts +1 -0
- package/models/DataRequestParameters.ts +1 -0
- package/models/DataResponseMetadata.ts +1 -0
- package/models/DataSchema.ts +1 -0
- package/models/DataSource.ts +3 -2
- package/models/DataSourceConfiguration.ts +1 -0
- package/models/DataSourceRequest.ts +1 -0
- package/models/DataSourceResponse.ts +9 -2
- package/models/DatePart.ts +1 -0
- package/models/DatePartGrouping.ts +1 -0
- package/models/DatePropertyValue.ts +1 -0
- package/models/DateTimePropertyValue.ts +1 -0
- package/models/DecimalIntervalGrouping.ts +1 -0
- package/models/DecimalPropertyValue.ts +1 -0
- package/models/DoublePropertyValue.ts +1 -0
- package/models/Equal.ts +1 -0
- package/models/Filter.ts +1 -0
- package/models/GreaterThan.ts +1 -0
- package/models/GreaterThanOrEqual.ts +1 -0
- package/models/Grouping.ts +1 -0
- package/models/In.ts +1 -0
- package/models/IntegerIntervalGrouping.ts +1 -0
- package/models/IntegerPropertyValue.ts +1 -0
- package/models/LateBoundEqual.ts +1 -0
- package/models/LateBoundGreaterThan.ts +1 -0
- package/models/LateBoundGreaterThanOrEqual.ts +1 -0
- package/models/LateBoundIn.ts +1 -0
- package/models/LateBoundLessThan.ts +1 -0
- package/models/LateBoundLessThanOrEqual.ts +1 -0
- package/models/LateBoundStringContains.ts +1 -0
- package/models/LessThan.ts +1 -0
- package/models/LessThanOrEqual.ts +1 -0
- package/models/ListNamespacesResponse.ts +1 -0
- package/models/ListViewsRequest.ts +1 -0
- package/models/ListViewsResponse.ts +3 -2
- package/models/MSS.ts +1 -0
- package/models/MSSAuthentication.ts +1 -0
- package/models/MySql.ts +1 -0
- package/models/MySqlAuthentication.ts +1 -0
- package/models/Namespace.ts +2 -1
- package/models/NamespaceRequest.ts +1 -0
- package/models/NamespaceResponse.ts +4 -1
- package/models/NamespaceResponseMetadata.ts +4 -1
- package/models/Not.ts +1 -0
- package/models/Null.ts +1 -0
- package/models/Or.ts +1 -0
- package/models/PagingConfiguration.ts +1 -0
- package/models/PasswordAuthentication.ts +1 -0
- package/models/Pivot.ts +1 -0
- package/models/PivotColumn.ts +1 -0
- package/models/PivotValue.ts +1 -0
- package/models/Postgres.ts +1 -0
- package/models/PostgresAuthentication.ts +1 -0
- package/models/Property.ts +1 -0
- package/models/PropertySchema.ts +1 -0
- package/models/PropertyType.ts +1 -0
- package/models/PropertyValue.ts +1 -0
- package/models/PublicTunnel.ts +1 -0
- package/models/QueryExecutionResponse.ts +1 -0
- package/models/QueryPreviewRequest.ts +1 -0
- package/models/RequestTelemetry.ts +1 -0
- package/models/SSHAuthentication.ts +1 -0
- package/models/SSHTunnel.ts +1 -0
- package/models/Sort.ts +1 -0
- package/models/SortDirection.ts +1 -0
- package/models/SourceProperty.ts +1 -0
- package/models/StringContains.ts +1 -0
- package/models/StringPropertyValue.ts +1 -0
- package/models/TablePreviewRequest.ts +1 -0
- package/models/TableView.ts +5 -3
- package/models/Tenant.ts +12 -0
- package/models/TenantKey.ts +11 -0
- package/models/TenantPrivateKeyAuthentication.ts +1 -0
- package/models/TenantRequest.ts +9 -0
- package/models/TenantResponse.ts +11 -0
- package/models/TestConnectionRequest.ts +1 -0
- package/models/TestConnectionResponse.ts +1 -0
- package/models/Tunnel.ts +1 -0
- package/models/UUID.ts +1 -0
- package/models/ValueGrouping.ts +1 -0
- package/models/VendorPrivateKeyAuthentication.ts +1 -0
- package/models/View.ts +5 -6
- package/models/ViewRequest.ts +4 -2
- package/models/ViewResponse.ts +5 -1
- package/models/ViewRunRequest.ts +1 -0
- package/package.json +1 -1
- package/services/DataSourceResourceService.ts +18 -20
- package/services/HealthResourceService.ts +1 -0
- package/services/ListViewsResourceService.ts +4 -3
- package/services/NamespaceResourceService.ts +24 -22
- package/services/QueryResourceService.ts +1 -0
- package/services/TenantResourceService.ts +50 -0
- package/services/TestConnectionResourceService.ts +1 -0
- package/services/ViewResourceService.ts +18 -20
- package/.tool-versions +0 -1
package/models/Or.ts
CHANGED
package/models/Pivot.ts
CHANGED
package/models/PivotColumn.ts
CHANGED
package/models/PivotValue.ts
CHANGED
package/models/Postgres.ts
CHANGED
package/models/Property.ts
CHANGED
package/models/PropertySchema.ts
CHANGED
package/models/PropertyType.ts
CHANGED
package/models/PropertyValue.ts
CHANGED
package/models/PublicTunnel.ts
CHANGED
package/models/SSHTunnel.ts
CHANGED
package/models/Sort.ts
CHANGED
package/models/SortDirection.ts
CHANGED
package/models/SourceProperty.ts
CHANGED
package/models/StringContains.ts
CHANGED
package/models/TableView.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
1
2
|
/* istanbul ignore file */
|
|
2
3
|
/* tslint:disable */
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
|
|
5
6
|
import type { PropertySchema } from './PropertySchema';
|
|
7
|
+
import type { UUID } from './UUID';
|
|
6
8
|
|
|
7
9
|
export type TableView = {
|
|
8
10
|
name: string;
|
|
9
11
|
description: string | null;
|
|
10
12
|
columnDefinitions: Array<PropertySchema>;
|
|
11
|
-
readonly id
|
|
12
|
-
readonly namespaceId
|
|
13
|
-
'@type':
|
|
13
|
+
readonly id?: UUID;
|
|
14
|
+
readonly namespaceId?: UUID;
|
|
15
|
+
'@type': string;
|
|
14
16
|
tableName: string;
|
|
15
17
|
};
|
|
16
18
|
|
package/models/Tenant.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { TenantKey } from './TenantKey';
|
|
7
|
+
|
|
8
|
+
export type Tenant = {
|
|
9
|
+
id: string;
|
|
10
|
+
keys?: Array<TenantKey>;
|
|
11
|
+
};
|
|
12
|
+
|
package/models/Tunnel.ts
CHANGED
package/models/UUID.ts
CHANGED
package/models/ValueGrouping.ts
CHANGED
package/models/View.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
1
2
|
/* istanbul ignore file */
|
|
2
3
|
/* tslint:disable */
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
|
|
5
|
-
import type { ComputedView } from './ComputedView';
|
|
6
6
|
import type { PropertySchema } from './PropertySchema';
|
|
7
|
-
import type { TableView } from './TableView';
|
|
8
7
|
|
|
9
|
-
export type View =
|
|
8
|
+
export type View = {
|
|
10
9
|
name: string;
|
|
11
10
|
description: string | null;
|
|
12
11
|
columnDefinitions: Array<PropertySchema>;
|
|
13
|
-
readonly id
|
|
14
|
-
readonly namespaceId
|
|
15
|
-
}
|
|
12
|
+
readonly id?: string;
|
|
13
|
+
readonly namespaceId?: string;
|
|
14
|
+
};
|
|
16
15
|
|
package/models/ViewRequest.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
1
2
|
/* istanbul ignore file */
|
|
2
3
|
/* tslint:disable */
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
|
|
5
|
-
import type {
|
|
6
|
+
import type { ComputedView } from './ComputedView';
|
|
7
|
+
import type { TableView } from './TableView';
|
|
6
8
|
|
|
7
9
|
export type ViewRequest = {
|
|
8
|
-
view:
|
|
10
|
+
view: (TableView | ComputedView);
|
|
9
11
|
};
|
|
10
12
|
|
package/models/ViewResponse.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
1
2
|
/* istanbul ignore file */
|
|
2
3
|
/* tslint:disable */
|
|
3
4
|
/* eslint-disable */
|
|
@@ -5,6 +6,9 @@
|
|
|
5
6
|
import type { View } from './View';
|
|
6
7
|
|
|
7
8
|
export type ViewResponse = {
|
|
8
|
-
view: View
|
|
9
|
+
view: (View & {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly namespaceId: string;
|
|
12
|
+
});
|
|
9
13
|
};
|
|
10
14
|
|
package/models/ViewRunRequest.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
1
2
|
/* istanbul ignore file */
|
|
2
3
|
/* tslint:disable */
|
|
3
4
|
/* eslint-disable */
|
|
@@ -13,66 +14,63 @@ import { request as __request } from '../core/request';
|
|
|
13
14
|
export class DataSourceResourceService {
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @param id
|
|
17
|
+
* Creates a data source
|
|
18
18
|
* @param namespaceId
|
|
19
|
+
* @param requestBody Data Source object to create
|
|
19
20
|
* @returns DataSourceResponse The requested data source
|
|
20
21
|
* @throws ApiError
|
|
21
22
|
*/
|
|
22
|
-
public static
|
|
23
|
-
id: UUID,
|
|
23
|
+
public static createDataSource(
|
|
24
24
|
namespaceId: UUID,
|
|
25
|
+
requestBody: DataSourceRequest,
|
|
25
26
|
): CancelablePromise<DataSourceResponse> {
|
|
26
27
|
return __request(OpenAPI, {
|
|
27
|
-
method: '
|
|
28
|
-
url: '/v1/namespaces/{namespaceId}/data-sources
|
|
28
|
+
method: 'POST',
|
|
29
|
+
url: '/v1/namespaces/{namespaceId}/data-sources',
|
|
29
30
|
path: {
|
|
30
|
-
'id': id,
|
|
31
31
|
'namespaceId': namespaceId,
|
|
32
32
|
},
|
|
33
|
+
body: requestBody,
|
|
34
|
+
mediaType: '*/*',
|
|
33
35
|
});
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
39
|
+
* Gets a data source
|
|
38
40
|
* @param id
|
|
39
41
|
* @param namespaceId
|
|
40
|
-
* @
|
|
41
|
-
* @returns DataSourceResponse The updated data source
|
|
42
|
+
* @returns DataSourceResponse The requested data source
|
|
42
43
|
* @throws ApiError
|
|
43
44
|
*/
|
|
44
|
-
public static
|
|
45
|
+
public static getDataSource(
|
|
45
46
|
id: UUID,
|
|
46
47
|
namespaceId: UUID,
|
|
47
|
-
requestBody: DataSourceRequest,
|
|
48
48
|
): CancelablePromise<DataSourceResponse> {
|
|
49
49
|
return __request(OpenAPI, {
|
|
50
|
-
method: '
|
|
50
|
+
method: 'GET',
|
|
51
51
|
url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
|
|
52
52
|
path: {
|
|
53
53
|
'id': id,
|
|
54
54
|
'namespaceId': namespaceId,
|
|
55
55
|
},
|
|
56
|
-
body: requestBody,
|
|
57
|
-
mediaType: '*/*',
|
|
58
56
|
});
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
/**
|
|
62
|
-
*
|
|
60
|
+
* Updates a data source's metadata
|
|
63
61
|
* @param id
|
|
64
62
|
* @param namespaceId
|
|
65
|
-
* @param requestBody Data Source object to
|
|
66
|
-
* @returns DataSourceResponse The
|
|
63
|
+
* @param requestBody Data Source object to update
|
|
64
|
+
* @returns DataSourceResponse The updated data source
|
|
67
65
|
* @throws ApiError
|
|
68
66
|
*/
|
|
69
|
-
public static
|
|
67
|
+
public static updateDataSource(
|
|
70
68
|
id: UUID,
|
|
71
69
|
namespaceId: UUID,
|
|
72
70
|
requestBody: DataSourceRequest,
|
|
73
71
|
): CancelablePromise<DataSourceResponse> {
|
|
74
72
|
return __request(OpenAPI, {
|
|
75
|
-
method: '
|
|
73
|
+
method: 'PUT',
|
|
76
74
|
url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
|
|
77
75
|
path: {
|
|
78
76
|
'id': id,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
1
2
|
/* istanbul ignore file */
|
|
2
3
|
/* tslint:disable */
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
import type { ListViewsRequest } from '../models/ListViewsRequest';
|
|
5
|
-
import type {
|
|
6
|
+
import type { ViewResponse } from '../models/ViewResponse';
|
|
6
7
|
|
|
7
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
9
|
import { OpenAPI } from '../core/OpenAPI';
|
|
@@ -19,7 +20,7 @@ export class ListViewsResourceService {
|
|
|
19
20
|
public static cloneViews(
|
|
20
21
|
requestBody: ListViewsRequest,
|
|
21
22
|
): CancelablePromise<{
|
|
22
|
-
views: Array<
|
|
23
|
+
views: Array<ViewResponse>;
|
|
23
24
|
}> {
|
|
24
25
|
return __request(OpenAPI, {
|
|
25
26
|
method: 'POST',
|
|
@@ -38,7 +39,7 @@ export class ListViewsResourceService {
|
|
|
38
39
|
public static getViews(
|
|
39
40
|
requestBody: ListViewsRequest,
|
|
40
41
|
): CancelablePromise<{
|
|
41
|
-
views: Array<
|
|
42
|
+
views: Array<ViewResponse>;
|
|
42
43
|
}> {
|
|
43
44
|
return __request(OpenAPI, {
|
|
44
45
|
method: 'POST',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
1
2
|
/* istanbul ignore file */
|
|
2
3
|
/* tslint:disable */
|
|
3
4
|
/* eslint-disable */
|
|
@@ -11,14 +12,33 @@ import { request as __request } from '../core/request';
|
|
|
11
12
|
|
|
12
13
|
export class NamespaceResourceService {
|
|
13
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Creates a namespace and optionally a data source associated with it
|
|
17
|
+
* @param requestBody Namespace object to create
|
|
18
|
+
* @returns NamespaceResponse The requested namespace, along with its associated data source if applicable
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
public static createNamespace(
|
|
22
|
+
requestBody: NamespaceRequest,
|
|
23
|
+
): CancelablePromise<NamespaceResponse> {
|
|
24
|
+
return __request(OpenAPI, {
|
|
25
|
+
method: 'POST',
|
|
26
|
+
url: '/v1/namespaces',
|
|
27
|
+
body: requestBody,
|
|
28
|
+
mediaType: '*/*',
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
14
32
|
/**
|
|
15
33
|
* Fetches all namespaces and, optionally, their associated data sources
|
|
16
34
|
* @param includeDataSources
|
|
35
|
+
* @param includeViews
|
|
17
36
|
* @returns any All namespaces, along with associated data sources
|
|
18
37
|
* @throws ApiError
|
|
19
38
|
*/
|
|
20
39
|
public static getNamespaces(
|
|
21
40
|
includeDataSources: boolean = false,
|
|
41
|
+
includeViews: boolean = false,
|
|
22
42
|
): CancelablePromise<{
|
|
23
43
|
namespaces: Array<NamespaceResponse>;
|
|
24
44
|
}> {
|
|
@@ -27,6 +47,7 @@ export class NamespaceResourceService {
|
|
|
27
47
|
url: '/v1/namespaces/list',
|
|
28
48
|
query: {
|
|
29
49
|
'includeDataSources': includeDataSources,
|
|
50
|
+
'includeViews': includeViews,
|
|
30
51
|
},
|
|
31
52
|
});
|
|
32
53
|
}
|
|
@@ -35,12 +56,14 @@ export class NamespaceResourceService {
|
|
|
35
56
|
* Gets a namespace and its associated data sources
|
|
36
57
|
* @param id
|
|
37
58
|
* @param includeDataSources
|
|
59
|
+
* @param includeViews
|
|
38
60
|
* @returns NamespaceResponse The requested namespace, along with its associated data sources
|
|
39
61
|
* @throws ApiError
|
|
40
62
|
*/
|
|
41
63
|
public static getNamespace(
|
|
42
64
|
id: UUID,
|
|
43
65
|
includeDataSources: boolean = false,
|
|
66
|
+
includeViews: boolean = false,
|
|
44
67
|
): CancelablePromise<NamespaceResponse> {
|
|
45
68
|
return __request(OpenAPI, {
|
|
46
69
|
method: 'GET',
|
|
@@ -50,6 +73,7 @@ export class NamespaceResourceService {
|
|
|
50
73
|
},
|
|
51
74
|
query: {
|
|
52
75
|
'includeDataSources': includeDataSources,
|
|
76
|
+
'includeViews': includeViews,
|
|
53
77
|
},
|
|
54
78
|
});
|
|
55
79
|
}
|
|
@@ -76,28 +100,6 @@ export class NamespaceResourceService {
|
|
|
76
100
|
});
|
|
77
101
|
}
|
|
78
102
|
|
|
79
|
-
/**
|
|
80
|
-
* Creates a namespace and optionally a data source associated with it
|
|
81
|
-
* @param id
|
|
82
|
-
* @param requestBody Namespace object to create
|
|
83
|
-
* @returns NamespaceResponse The requested namespace, along with its associated data source if applicable
|
|
84
|
-
* @throws ApiError
|
|
85
|
-
*/
|
|
86
|
-
public static createNamespace(
|
|
87
|
-
id: UUID,
|
|
88
|
-
requestBody: NamespaceRequest,
|
|
89
|
-
): CancelablePromise<NamespaceResponse> {
|
|
90
|
-
return __request(OpenAPI, {
|
|
91
|
-
method: 'POST',
|
|
92
|
-
url: '/v1/namespaces/{id}',
|
|
93
|
-
path: {
|
|
94
|
-
'id': id,
|
|
95
|
-
},
|
|
96
|
-
body: requestBody,
|
|
97
|
-
mediaType: '*/*',
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
103
|
/**
|
|
102
104
|
* Deletes a namespace, cascading to its associated resources
|
|
103
105
|
* @param id
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { TenantRequest } from '../models/TenantRequest';
|
|
6
|
+
import type { TenantResponse } from '../models/TenantResponse';
|
|
7
|
+
import type { UUID } from '../models/UUID';
|
|
8
|
+
|
|
9
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
11
|
+
import { request as __request } from '../core/request';
|
|
12
|
+
|
|
13
|
+
export class TenantResourceService {
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Creates a tenant
|
|
17
|
+
* @param requestBody Tenant request to create with
|
|
18
|
+
* @returns TenantResponse The requested tenant
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
public static createTenant(
|
|
22
|
+
requestBody: TenantRequest,
|
|
23
|
+
): CancelablePromise<TenantResponse> {
|
|
24
|
+
return __request(OpenAPI, {
|
|
25
|
+
method: 'POST',
|
|
26
|
+
url: '/v1/tenants',
|
|
27
|
+
body: requestBody,
|
|
28
|
+
mediaType: '*/*',
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Gets a tenant
|
|
34
|
+
* @param id
|
|
35
|
+
* @returns TenantResponse The requested tenant
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
public static getTenant(
|
|
39
|
+
id: UUID,
|
|
40
|
+
): CancelablePromise<TenantResponse> {
|
|
41
|
+
return __request(OpenAPI, {
|
|
42
|
+
method: 'GET',
|
|
43
|
+
url: '/v1/tenants/{id}',
|
|
44
|
+
path: {
|
|
45
|
+
'id': id,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
}
|