@explo-tech/fido-api 1.1.0 → 1.2.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/index.ts +5 -0
- package/models/ExportFormat.ts +9 -0
- package/models/ExportTargetConfiguration.ts +11 -0
- package/models/QueryExportResponse.ts +8 -0
- package/models/Tenant.ts +2 -0
- package/models/TenantRequest.ts +3 -0
- package/models/TenantS3Configuration.ts +11 -0
- package/models/ViewExportRequest.ts +13 -0
- package/package.json +1 -1
- package/services/QueryResourceService.ts +29 -0
- package/services/TenantResourceService.ts +22 -0
package/index.ts
CHANGED
|
@@ -34,6 +34,8 @@ export type { DecimalIntervalGrouping } from './models/DecimalIntervalGrouping';
|
|
|
34
34
|
export type { DecimalPropertyValue } from './models/DecimalPropertyValue';
|
|
35
35
|
export type { DoublePropertyValue } from './models/DoublePropertyValue';
|
|
36
36
|
export type { Equal } from './models/Equal';
|
|
37
|
+
export { ExportFormat } from './models/ExportFormat';
|
|
38
|
+
export type { ExportTargetConfiguration } from './models/ExportTargetConfiguration';
|
|
37
39
|
export type { Filter } from './models/Filter';
|
|
38
40
|
export type { GreaterThan } from './models/GreaterThan';
|
|
39
41
|
export type { GreaterThanOrEqual } from './models/GreaterThanOrEqual';
|
|
@@ -77,6 +79,7 @@ export { PropertyType } from './models/PropertyType';
|
|
|
77
79
|
export type { PropertyValue } from './models/PropertyValue';
|
|
78
80
|
export type { PublicTunnel } from './models/PublicTunnel';
|
|
79
81
|
export type { QueryExecutionResponse } from './models/QueryExecutionResponse';
|
|
82
|
+
export type { QueryExportResponse } from './models/QueryExportResponse';
|
|
80
83
|
export type { QueryPreviewRequest } from './models/QueryPreviewRequest';
|
|
81
84
|
export type { RequestTelemetry } from './models/RequestTelemetry';
|
|
82
85
|
export type { Sort } from './models/Sort';
|
|
@@ -93,6 +96,7 @@ export type { TenantKey } from './models/TenantKey';
|
|
|
93
96
|
export type { TenantPrivateKeyAuthentication } from './models/TenantPrivateKeyAuthentication';
|
|
94
97
|
export type { TenantRequest } from './models/TenantRequest';
|
|
95
98
|
export type { TenantResponse } from './models/TenantResponse';
|
|
99
|
+
export type { TenantS3Configuration } from './models/TenantS3Configuration';
|
|
96
100
|
export type { TestConnectionRequest } from './models/TestConnectionRequest';
|
|
97
101
|
export type { TestConnectionResponse } from './models/TestConnectionResponse';
|
|
98
102
|
export type { Tunnel } from './models/Tunnel';
|
|
@@ -100,6 +104,7 @@ export type { UUID } from './models/UUID';
|
|
|
100
104
|
export type { ValueGrouping } from './models/ValueGrouping';
|
|
101
105
|
export type { VendorPrivateKeyAuthentication } from './models/VendorPrivateKeyAuthentication';
|
|
102
106
|
export type { View } from './models/View';
|
|
107
|
+
export type { ViewExportRequest } from './models/ViewExportRequest';
|
|
103
108
|
export type { ViewRequest } from './models/ViewRequest';
|
|
104
109
|
export type { ViewResponse } from './models/ViewResponse';
|
|
105
110
|
export type { ViewRunRequest } from './models/ViewRunRequest';
|
package/models/Tenant.ts
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { TenantKey } from './TenantKey';
|
|
6
|
+
import type { TenantS3Configuration } from './TenantS3Configuration';
|
|
6
7
|
|
|
7
8
|
export type Tenant = {
|
|
8
9
|
id: string;
|
|
9
10
|
keys?: Array<TenantKey>;
|
|
11
|
+
s3Configuration: TenantS3Configuration | null;
|
|
10
12
|
};
|
|
11
13
|
|
package/models/TenantRequest.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { BaseComputation } from './BaseComputation';
|
|
6
|
+
import type { ExportTargetConfiguration } from './ExportTargetConfiguration';
|
|
7
|
+
|
|
8
|
+
export type ViewExportRequest = {
|
|
9
|
+
queryContext: Record<string, any>;
|
|
10
|
+
computation: BaseComputation | null;
|
|
11
|
+
exportConfiguration: ExportTargetConfiguration;
|
|
12
|
+
};
|
|
13
|
+
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import type { QueryExecutionResponse } from '../models/QueryExecutionResponse';
|
|
|
5
5
|
import type { QueryPreviewRequest } from '../models/QueryPreviewRequest';
|
|
6
6
|
import type { TablePreviewRequest } from '../models/TablePreviewRequest';
|
|
7
7
|
import type { UUID } from '../models/UUID';
|
|
8
|
+
import type { ViewExportRequest } from '../models/ViewExportRequest';
|
|
8
9
|
import type { ViewRunRequest } from '../models/ViewRunRequest';
|
|
9
10
|
|
|
10
11
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -63,6 +64,34 @@ export class QueryResourceService {
|
|
|
63
64
|
});
|
|
64
65
|
}
|
|
65
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Runs the requested view against the provided data source
|
|
69
|
+
* @param dataSourceId
|
|
70
|
+
* @param namespaceId
|
|
71
|
+
* @param viewId
|
|
72
|
+
* @param requestBody View to export against the provided data source
|
|
73
|
+
* @returns QueryExecutionResponse A DataPage of the provided query
|
|
74
|
+
* @throws ApiError
|
|
75
|
+
*/
|
|
76
|
+
public static exportView(
|
|
77
|
+
dataSourceId: UUID,
|
|
78
|
+
namespaceId: UUID,
|
|
79
|
+
viewId: UUID,
|
|
80
|
+
requestBody: ViewExportRequest,
|
|
81
|
+
): CancelablePromise<QueryExecutionResponse> {
|
|
82
|
+
return __request(OpenAPI, {
|
|
83
|
+
method: 'POST',
|
|
84
|
+
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/export',
|
|
85
|
+
path: {
|
|
86
|
+
'dataSourceId': dataSourceId,
|
|
87
|
+
'namespaceId': namespaceId,
|
|
88
|
+
'viewId': viewId,
|
|
89
|
+
},
|
|
90
|
+
body: requestBody,
|
|
91
|
+
mediaType: '*/*',
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
66
95
|
/**
|
|
67
96
|
* Runs the requested view against the provided data source
|
|
68
97
|
* @param dataSourceId
|
|
@@ -46,6 +46,28 @@ export class TenantResourceService {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Updates the provided tenant
|
|
51
|
+
* @param id
|
|
52
|
+
* @param requestBody Tenant request to update with
|
|
53
|
+
* @returns TenantResponse The updated tenant
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
public static updateTenant(
|
|
57
|
+
id: UUID,
|
|
58
|
+
requestBody: TenantRequest,
|
|
59
|
+
): CancelablePromise<TenantResponse> {
|
|
60
|
+
return __request(OpenAPI, {
|
|
61
|
+
method: 'PUT',
|
|
62
|
+
url: '/v1/tenants/{id}',
|
|
63
|
+
path: {
|
|
64
|
+
'id': id,
|
|
65
|
+
},
|
|
66
|
+
body: requestBody,
|
|
67
|
+
mediaType: '*/*',
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
49
71
|
/**
|
|
50
72
|
* Deletes a tenant
|
|
51
73
|
* @param id
|