@explo-tech/fido-api 0.0.40 → 0.0.41
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 +5 -0
- package/models/ComputedView.ts +4 -3
- package/models/DataSource.ts +2 -2
- package/models/DataSourceResponse.ts +8 -2
- package/models/ListViewsResponse.ts +2 -2
- package/models/Namespace.ts +1 -1
- package/models/NamespaceResponse.ts +3 -1
- package/models/TableView.ts +4 -3
- package/models/Tenant.ts +11 -0
- package/models/TenantKey.ts +10 -0
- package/models/TenantRequest.ts +8 -0
- package/models/TenantResponse.ts +10 -0
- package/models/View.ts +4 -6
- package/models/ViewRequest.ts +3 -2
- package/models/ViewResponse.ts +4 -1
- package/package.json +1 -1
- package/services/DataSourceResourceService.ts +17 -20
- package/services/ListViewsResourceService.ts +3 -3
- package/services/NamespaceResourceService.ts +17 -22
- package/services/TenantResourceService.ts +49 -0
- package/services/ViewResourceService.ts +17 -20
package/index.ts
CHANGED
|
@@ -88,7 +88,11 @@ export type { StringContains } from './models/StringContains';
|
|
|
88
88
|
export type { StringPropertyValue } from './models/StringPropertyValue';
|
|
89
89
|
export type { TablePreviewRequest } from './models/TablePreviewRequest';
|
|
90
90
|
export type { TableView } from './models/TableView';
|
|
91
|
+
export type { Tenant } from './models/Tenant';
|
|
92
|
+
export type { TenantKey } from './models/TenantKey';
|
|
91
93
|
export type { TenantPrivateKeyAuthentication } from './models/TenantPrivateKeyAuthentication';
|
|
94
|
+
export type { TenantRequest } from './models/TenantRequest';
|
|
95
|
+
export type { TenantResponse } from './models/TenantResponse';
|
|
92
96
|
export type { TestConnectionRequest } from './models/TestConnectionRequest';
|
|
93
97
|
export type { TestConnectionResponse } from './models/TestConnectionResponse';
|
|
94
98
|
export type { Tunnel } from './models/Tunnel';
|
|
@@ -105,5 +109,6 @@ export { HealthResourceService } from './services/HealthResourceService';
|
|
|
105
109
|
export { ListViewsResourceService } from './services/ListViewsResourceService';
|
|
106
110
|
export { NamespaceResourceService } from './services/NamespaceResourceService';
|
|
107
111
|
export { QueryResourceService } from './services/QueryResourceService';
|
|
112
|
+
export { TenantResourceService } from './services/TenantResourceService';
|
|
108
113
|
export { TestConnectionResourceService } from './services/TestConnectionResourceService';
|
|
109
114
|
export { ViewResourceService } from './services/ViewResourceService';
|
package/models/ComputedView.ts
CHANGED
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { PropertySchema } from './PropertySchema';
|
|
6
|
+
import type { UUID } from './UUID';
|
|
6
7
|
|
|
7
8
|
export type ComputedView = {
|
|
8
9
|
name: string;
|
|
9
10
|
description: string | null;
|
|
10
11
|
columnDefinitions: Array<PropertySchema>;
|
|
11
|
-
readonly id
|
|
12
|
-
readonly namespaceId
|
|
13
|
-
'@type':
|
|
12
|
+
readonly id?: UUID;
|
|
13
|
+
readonly namespaceId?: UUID;
|
|
14
|
+
'@type': string;
|
|
14
15
|
query: string;
|
|
15
16
|
};
|
|
16
17
|
|
package/models/DataSource.ts
CHANGED
|
@@ -7,8 +7,8 @@ import type { DataSourceConfiguration } from './DataSourceConfiguration';
|
|
|
7
7
|
export type DataSource = {
|
|
8
8
|
name: string;
|
|
9
9
|
externalId: string;
|
|
10
|
-
readonly id
|
|
11
|
-
readonly namespaceId
|
|
10
|
+
readonly id?: string;
|
|
11
|
+
readonly namespaceId?: string;
|
|
12
12
|
configuration: DataSourceConfiguration;
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -2,9 +2,15 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
import type {
|
|
5
|
+
import type { DataSourceConfiguration } from './DataSourceConfiguration';
|
|
6
6
|
|
|
7
7
|
export type DataSourceResponse = {
|
|
8
|
-
dataSource:
|
|
8
|
+
dataSource: {
|
|
9
|
+
name: string;
|
|
10
|
+
externalId: string;
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly namespaceId: string;
|
|
13
|
+
configuration: DataSourceConfiguration;
|
|
14
|
+
};
|
|
9
15
|
};
|
|
10
16
|
|
package/models/Namespace.ts
CHANGED
|
@@ -6,7 +6,9 @@ import type { Namespace } from './Namespace';
|
|
|
6
6
|
import type { NamespaceResponseMetadata } from './NamespaceResponseMetadata';
|
|
7
7
|
|
|
8
8
|
export type NamespaceResponse = {
|
|
9
|
-
namespace: Namespace
|
|
9
|
+
namespace: (Namespace & {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
});
|
|
10
12
|
meta: NamespaceResponseMetadata | null;
|
|
11
13
|
};
|
|
12
14
|
|
package/models/TableView.ts
CHANGED
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { PropertySchema } from './PropertySchema';
|
|
6
|
+
import type { UUID } from './UUID';
|
|
6
7
|
|
|
7
8
|
export type TableView = {
|
|
8
9
|
name: string;
|
|
9
10
|
description: string | null;
|
|
10
11
|
columnDefinitions: Array<PropertySchema>;
|
|
11
|
-
readonly id
|
|
12
|
-
readonly namespaceId
|
|
13
|
-
'@type':
|
|
12
|
+
readonly id?: UUID;
|
|
13
|
+
readonly namespaceId?: UUID;
|
|
14
|
+
'@type': string;
|
|
14
15
|
tableName: string;
|
|
15
16
|
};
|
|
16
17
|
|
package/models/Tenant.ts
ADDED
package/models/View.ts
CHANGED
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
import type { ComputedView } from './ComputedView';
|
|
6
5
|
import type { PropertySchema } from './PropertySchema';
|
|
7
|
-
import type { TableView } from './TableView';
|
|
8
6
|
|
|
9
|
-
export type View =
|
|
7
|
+
export type View = {
|
|
10
8
|
name: string;
|
|
11
9
|
description: string | null;
|
|
12
10
|
columnDefinitions: Array<PropertySchema>;
|
|
13
|
-
readonly id
|
|
14
|
-
readonly namespaceId
|
|
15
|
-
}
|
|
11
|
+
readonly id?: string;
|
|
12
|
+
readonly namespaceId?: string;
|
|
13
|
+
};
|
|
16
14
|
|
package/models/ViewRequest.ts
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
import type {
|
|
5
|
+
import type { ComputedView } from './ComputedView';
|
|
6
|
+
import type { TableView } from './TableView';
|
|
6
7
|
|
|
7
8
|
export type ViewRequest = {
|
|
8
|
-
view:
|
|
9
|
+
view: (TableView | ComputedView);
|
|
9
10
|
};
|
|
10
11
|
|
package/models/ViewResponse.ts
CHANGED
package/package.json
CHANGED
|
@@ -13,66 +13,63 @@ import { request as __request } from '../core/request';
|
|
|
13
13
|
export class DataSourceResourceService {
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @param id
|
|
16
|
+
* Creates a data source
|
|
18
17
|
* @param namespaceId
|
|
18
|
+
* @param requestBody Data Source object to create
|
|
19
19
|
* @returns DataSourceResponse The requested data source
|
|
20
20
|
* @throws ApiError
|
|
21
21
|
*/
|
|
22
|
-
public static
|
|
23
|
-
id: UUID,
|
|
22
|
+
public static createDataSource(
|
|
24
23
|
namespaceId: UUID,
|
|
24
|
+
requestBody: DataSourceRequest,
|
|
25
25
|
): CancelablePromise<DataSourceResponse> {
|
|
26
26
|
return __request(OpenAPI, {
|
|
27
|
-
method: '
|
|
28
|
-
url: '/v1/namespaces/{namespaceId}/data-sources
|
|
27
|
+
method: 'POST',
|
|
28
|
+
url: '/v1/namespaces/{namespaceId}/data-sources',
|
|
29
29
|
path: {
|
|
30
|
-
'id': id,
|
|
31
30
|
'namespaceId': namespaceId,
|
|
32
31
|
},
|
|
32
|
+
body: requestBody,
|
|
33
|
+
mediaType: '*/*',
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
|
-
*
|
|
38
|
+
* Gets a data source
|
|
38
39
|
* @param id
|
|
39
40
|
* @param namespaceId
|
|
40
|
-
* @
|
|
41
|
-
* @returns DataSourceResponse The updated data source
|
|
41
|
+
* @returns DataSourceResponse The requested data source
|
|
42
42
|
* @throws ApiError
|
|
43
43
|
*/
|
|
44
|
-
public static
|
|
44
|
+
public static getDataSource(
|
|
45
45
|
id: UUID,
|
|
46
46
|
namespaceId: UUID,
|
|
47
|
-
requestBody: DataSourceRequest,
|
|
48
47
|
): CancelablePromise<DataSourceResponse> {
|
|
49
48
|
return __request(OpenAPI, {
|
|
50
|
-
method: '
|
|
49
|
+
method: 'GET',
|
|
51
50
|
url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
|
|
52
51
|
path: {
|
|
53
52
|
'id': id,
|
|
54
53
|
'namespaceId': namespaceId,
|
|
55
54
|
},
|
|
56
|
-
body: requestBody,
|
|
57
|
-
mediaType: '*/*',
|
|
58
55
|
});
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
/**
|
|
62
|
-
*
|
|
59
|
+
* Updates a data source's metadata
|
|
63
60
|
* @param id
|
|
64
61
|
* @param namespaceId
|
|
65
|
-
* @param requestBody Data Source object to
|
|
66
|
-
* @returns DataSourceResponse The
|
|
62
|
+
* @param requestBody Data Source object to update
|
|
63
|
+
* @returns DataSourceResponse The updated data source
|
|
67
64
|
* @throws ApiError
|
|
68
65
|
*/
|
|
69
|
-
public static
|
|
66
|
+
public static updateDataSource(
|
|
70
67
|
id: UUID,
|
|
71
68
|
namespaceId: UUID,
|
|
72
69
|
requestBody: DataSourceRequest,
|
|
73
70
|
): CancelablePromise<DataSourceResponse> {
|
|
74
71
|
return __request(OpenAPI, {
|
|
75
|
-
method: '
|
|
72
|
+
method: 'PUT',
|
|
76
73
|
url: '/v1/namespaces/{namespaceId}/data-sources/{id}',
|
|
77
74
|
path: {
|
|
78
75
|
'id': id,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import type { ListViewsRequest } from '../models/ListViewsRequest';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ViewResponse } from '../models/ViewResponse';
|
|
6
6
|
|
|
7
7
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
8
|
import { OpenAPI } from '../core/OpenAPI';
|
|
@@ -19,7 +19,7 @@ export class ListViewsResourceService {
|
|
|
19
19
|
public static cloneViews(
|
|
20
20
|
requestBody: ListViewsRequest,
|
|
21
21
|
): CancelablePromise<{
|
|
22
|
-
views: Array<
|
|
22
|
+
views: Array<ViewResponse>;
|
|
23
23
|
}> {
|
|
24
24
|
return __request(OpenAPI, {
|
|
25
25
|
method: 'POST',
|
|
@@ -38,7 +38,7 @@ export class ListViewsResourceService {
|
|
|
38
38
|
public static getViews(
|
|
39
39
|
requestBody: ListViewsRequest,
|
|
40
40
|
): CancelablePromise<{
|
|
41
|
-
views: Array<
|
|
41
|
+
views: Array<ViewResponse>;
|
|
42
42
|
}> {
|
|
43
43
|
return __request(OpenAPI, {
|
|
44
44
|
method: 'POST',
|
|
@@ -11,6 +11,23 @@ import { request as __request } from '../core/request';
|
|
|
11
11
|
|
|
12
12
|
export class NamespaceResourceService {
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Creates a namespace and optionally a data source associated with it
|
|
16
|
+
* @param requestBody Namespace object to create
|
|
17
|
+
* @returns NamespaceResponse The requested namespace, along with its associated data source if applicable
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
public static createNamespace(
|
|
21
|
+
requestBody: NamespaceRequest,
|
|
22
|
+
): CancelablePromise<NamespaceResponse> {
|
|
23
|
+
return __request(OpenAPI, {
|
|
24
|
+
method: 'POST',
|
|
25
|
+
url: '/v1/namespaces',
|
|
26
|
+
body: requestBody,
|
|
27
|
+
mediaType: '*/*',
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
14
31
|
/**
|
|
15
32
|
* Fetches all namespaces and, optionally, their associated data sources
|
|
16
33
|
* @param includeDataSources
|
|
@@ -76,28 +93,6 @@ export class NamespaceResourceService {
|
|
|
76
93
|
});
|
|
77
94
|
}
|
|
78
95
|
|
|
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
96
|
/**
|
|
102
97
|
* Deletes a namespace, cascading to its associated resources
|
|
103
98
|
* @param id
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { TenantRequest } from '../models/TenantRequest';
|
|
5
|
+
import type { TenantResponse } from '../models/TenantResponse';
|
|
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 TenantResourceService {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Creates a tenant
|
|
16
|
+
* @param requestBody Tenant request to create with
|
|
17
|
+
* @returns TenantResponse The requested tenant
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
public static createTenant(
|
|
21
|
+
requestBody: TenantRequest,
|
|
22
|
+
): CancelablePromise<TenantResponse> {
|
|
23
|
+
return __request(OpenAPI, {
|
|
24
|
+
method: 'POST',
|
|
25
|
+
url: '/v1/tenants',
|
|
26
|
+
body: requestBody,
|
|
27
|
+
mediaType: '*/*',
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Gets a tenant
|
|
33
|
+
* @param id
|
|
34
|
+
* @returns TenantResponse The requested tenant
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
public static getTenant(
|
|
38
|
+
id: UUID,
|
|
39
|
+
): CancelablePromise<TenantResponse> {
|
|
40
|
+
return __request(OpenAPI, {
|
|
41
|
+
method: 'GET',
|
|
42
|
+
url: '/v1/tenants/{id}',
|
|
43
|
+
path: {
|
|
44
|
+
'id': id,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
@@ -12,66 +12,63 @@ import { request as __request } from '../core/request';
|
|
|
12
12
|
export class ViewResourceService {
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @param id
|
|
15
|
+
* Creates a view
|
|
17
16
|
* @param namespaceId
|
|
17
|
+
* @param requestBody View object to create
|
|
18
18
|
* @returns ViewResponse The requested view
|
|
19
19
|
* @throws ApiError
|
|
20
20
|
*/
|
|
21
|
-
public static
|
|
22
|
-
id: UUID,
|
|
21
|
+
public static createView(
|
|
23
22
|
namespaceId: UUID,
|
|
23
|
+
requestBody: ViewRequest,
|
|
24
24
|
): CancelablePromise<ViewResponse> {
|
|
25
25
|
return __request(OpenAPI, {
|
|
26
|
-
method: '
|
|
27
|
-
url: '/v1/namespaces/{namespaceId}/views
|
|
26
|
+
method: 'POST',
|
|
27
|
+
url: '/v1/namespaces/{namespaceId}/views',
|
|
28
28
|
path: {
|
|
29
|
-
'id': id,
|
|
30
29
|
'namespaceId': namespaceId,
|
|
31
30
|
},
|
|
31
|
+
body: requestBody,
|
|
32
|
+
mediaType: '*/*',
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
|
-
*
|
|
37
|
+
* Gets a view
|
|
37
38
|
* @param id
|
|
38
39
|
* @param namespaceId
|
|
39
|
-
* @
|
|
40
|
-
* @returns ViewResponse The updated view
|
|
40
|
+
* @returns ViewResponse The requested view
|
|
41
41
|
* @throws ApiError
|
|
42
42
|
*/
|
|
43
|
-
public static
|
|
43
|
+
public static getView(
|
|
44
44
|
id: UUID,
|
|
45
45
|
namespaceId: UUID,
|
|
46
|
-
requestBody: ViewRequest,
|
|
47
46
|
): CancelablePromise<ViewResponse> {
|
|
48
47
|
return __request(OpenAPI, {
|
|
49
|
-
method: '
|
|
48
|
+
method: 'GET',
|
|
50
49
|
url: '/v1/namespaces/{namespaceId}/views/{id}',
|
|
51
50
|
path: {
|
|
52
51
|
'id': id,
|
|
53
52
|
'namespaceId': namespaceId,
|
|
54
53
|
},
|
|
55
|
-
body: requestBody,
|
|
56
|
-
mediaType: '*/*',
|
|
57
54
|
});
|
|
58
55
|
}
|
|
59
56
|
|
|
60
57
|
/**
|
|
61
|
-
*
|
|
58
|
+
* Updates a view's metadata
|
|
62
59
|
* @param id
|
|
63
60
|
* @param namespaceId
|
|
64
|
-
* @param requestBody View object to
|
|
65
|
-
* @returns ViewResponse The
|
|
61
|
+
* @param requestBody View object to update
|
|
62
|
+
* @returns ViewResponse The updated view
|
|
66
63
|
* @throws ApiError
|
|
67
64
|
*/
|
|
68
|
-
public static
|
|
65
|
+
public static updateView(
|
|
69
66
|
id: UUID,
|
|
70
67
|
namespaceId: UUID,
|
|
71
68
|
requestBody: ViewRequest,
|
|
72
69
|
): CancelablePromise<ViewResponse> {
|
|
73
70
|
return __request(OpenAPI, {
|
|
74
|
-
method: '
|
|
71
|
+
method: 'PUT',
|
|
75
72
|
url: '/v1/namespaces/{namespaceId}/views/{id}',
|
|
76
73
|
path: {
|
|
77
74
|
'id': id,
|