@explo-tech/fido-api 2.12.10 → 3.0.0-jordan-testing
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 +2802 -178
- package/package.json +9 -3
- package/core/ApiError.ts +0 -24
- package/core/ApiRequestOptions.ts +0 -16
- package/core/ApiResult.ts +0 -10
- package/core/CancelablePromise.ts +0 -130
- package/core/OpenAPI.ts +0 -31
- package/core/request.ts +0 -307
- package/models/AggregateProperty.ts +0 -15
- package/models/Aggregation.ts +0 -13
- package/models/AggregationOption.ts +0 -8
- package/models/And.ts +0 -11
- package/models/And1.ts +0 -11
- package/models/BigQuery.ts +0 -13
- package/models/BigQueryAuthentication.ts +0 -9
- package/models/BooleanPropertyValue.ts +0 -9
- package/models/Branch.ts +0 -9
- package/models/BranchResponse.ts +0 -12
- package/models/BranchResponseMetadata.ts +0 -8
- package/models/CacheTelemetry.ts +0 -10
- package/models/CalendarInterval.ts +0 -12
- package/models/CalendarIntervalGrouping.ts +0 -14
- package/models/Clickhouse.ts +0 -18
- package/models/ClickhouseConnectionType.ts +0 -8
- package/models/ClientError.ts +0 -9
- package/models/ColumnFormat.ts +0 -10
- package/models/Commit.ts +0 -11
- package/models/CommitResponse.ts +0 -10
- package/models/Computation.ts +0 -19
- package/models/ComputedView.ts +0 -20
- package/models/CreateCommitRequest.ts +0 -13
- package/models/CreateCommitResponse.ts +0 -11
- package/models/CreateViewChange.ts +0 -12
- package/models/CreateViewDiff.ts +0 -11
- package/models/DataPage.ts +0 -10
- package/models/DataRecord.ts +0 -10
- package/models/DataRequestParameters.ts +0 -11
- package/models/DataResponseMetadata.ts +0 -12
- package/models/DataSchema.ts +0 -10
- package/models/DataSource.ts +0 -14
- package/models/DataSourceConfiguration.ts +0 -17
- package/models/DataSourceError.ts +0 -14
- package/models/DataSourceRequest.ts +0 -10
- package/models/DataSourceResponse.ts +0 -13
- package/models/DatePart.ts +0 -10
- package/models/DatePartGrouping.ts +0 -14
- package/models/DatePropertyValue.ts +0 -9
- package/models/DateTimeColumnFormat.ts +0 -14
- package/models/DateTimeFormat.ts +0 -9
- package/models/DateTimePropertyValue.ts +0 -9
- package/models/DecimalColumnFormat.ts +0 -15
- package/models/DecimalIntervalGrouping.ts +0 -11
- package/models/DecimalPropertyValue.ts +0 -9
- package/models/DeleteViewChange.ts +0 -9
- package/models/DeleteViewDiff.ts +0 -11
- package/models/DiffBranchResponse.ts +0 -10
- package/models/DoublePropertyValue.ts +0 -9
- package/models/DurationColumnFormat.ts +0 -9
- package/models/EmailConfiguration.ts +0 -10
- package/models/Equal.ts +0 -12
- package/models/Equal1.ts +0 -13
- package/models/EvictionPolicy.ts +0 -9
- package/models/ExportColumnOptions.ts +0 -12
- package/models/ExportFormat.ts +0 -9
- package/models/ExportTargetConfiguration.ts +0 -13
- package/models/Filter.ts +0 -25
- package/models/FormulaProperty.ts +0 -10
- package/models/GreaterThan.ts +0 -12
- package/models/GreaterThan1.ts +0 -13
- package/models/GreaterThanOrEqual.ts +0 -12
- package/models/GreaterThanOrEqual1.ts +0 -13
- package/models/Grouping.ts +0 -15
- package/models/Having.ts +0 -25
- package/models/In.ts +0 -12
- package/models/In1.ts +0 -13
- package/models/IntegerIntervalGrouping.ts +0 -11
- package/models/IntegerPropertyValue.ts +0 -9
- package/models/JdbcAuthentication.ts +0 -8
- package/models/LateBoundEqual.ts +0 -10
- package/models/LateBoundEqual1.ts +0 -12
- package/models/LateBoundGreaterThan.ts +0 -10
- package/models/LateBoundGreaterThan1.ts +0 -12
- package/models/LateBoundGreaterThanOrEqual.ts +0 -10
- package/models/LateBoundGreaterThanOrEqual1.ts +0 -12
- package/models/LateBoundIn.ts +0 -10
- package/models/LateBoundIn1.ts +0 -12
- package/models/LateBoundLessThan.ts +0 -10
- package/models/LateBoundLessThan1.ts +0 -12
- package/models/LateBoundLessThanOrEqual.ts +0 -10
- package/models/LateBoundLessThanOrEqual1.ts +0 -12
- package/models/LateBoundStringContains.ts +0 -11
- package/models/LateBoundStringContains1.ts +0 -13
- package/models/LessThan.ts +0 -12
- package/models/LessThan1.ts +0 -13
- package/models/LessThanOrEqual.ts +0 -12
- package/models/LessThanOrEqual1.ts +0 -13
- package/models/ListBranchResponse.ts +0 -10
- package/models/ListNamespacesResponse.ts +0 -10
- package/models/ListVersionedViewsRequest.ts +0 -8
- package/models/ListViewsRequest.ts +0 -8
- package/models/ListViewsResponse.ts +0 -10
- package/models/MSS.ts +0 -16
- package/models/MergeBranchRequest.ts +0 -9
- package/models/MySql.ts +0 -16
- package/models/Namespace.ts +0 -10
- package/models/NamespaceRequest.ts +0 -10
- package/models/NamespaceResponse.ts +0 -14
- package/models/NamespaceResponseMetadata.ts +0 -12
- package/models/Not.ts +0 -11
- package/models/Not1.ts +0 -11
- package/models/Null.ts +0 -9
- package/models/Null1.ts +0 -11
- package/models/Or.ts +0 -11
- package/models/Or1.ts +0 -11
- package/models/PagingConfiguration.ts +0 -9
- package/models/PasswordAuthentication.ts +0 -10
- package/models/Postgres.ts +0 -16
- package/models/Property.ts +0 -12
- package/models/PropertySchema.ts +0 -13
- package/models/PropertyType.ts +0 -15
- package/models/PropertyValue.ts +0 -14
- package/models/PublicTunnel.ts +0 -8
- package/models/QueryExecutionError.ts +0 -13
- package/models/QueryExecutionResponse.ts +0 -14
- package/models/QueryExportEmailResponse.ts +0 -8
- package/models/QueryExportLinkResponse.ts +0 -9
- package/models/QueryExportResponse.ts +0 -9
- package/models/QueryPreviewRequest.ts +0 -14
- package/models/QueryTimeoutError.ts +0 -13
- package/models/Redshift.ts +0 -16
- package/models/RequestExecutionParameters.ts +0 -8
- package/models/RequestTelemetry.ts +0 -13
- package/models/SSHAuthentication.ts +0 -11
- package/models/SSHTunnel.ts +0 -15
- package/models/ScheduledEviction.ts +0 -9
- package/models/Snowflake.ts +0 -17
- package/models/SnowflakeAuthentication.ts +0 -8
- package/models/SnowflakePasswordAuthentication.ts +0 -9
- package/models/Sort.ts +0 -11
- package/models/SortDirection.ts +0 -8
- package/models/SourceProperty.ts +0 -10
- package/models/StringContains.ts +0 -13
- package/models/StringContains1.ts +0 -14
- package/models/StringPropertyValue.ts +0 -9
- package/models/TablePreviewRequest.ts +0 -11
- package/models/TableView.ts +0 -18
- package/models/Tenant.ts +0 -14
- package/models/TenantKey.ts +0 -10
- package/models/TenantPrivateKeyAuthentication.ts +0 -10
- package/models/TenantRequest.ts +0 -11
- package/models/TenantResponse.ts +0 -10
- package/models/TenantS3Configuration.ts +0 -11
- package/models/TestConnectionRequest.ts +0 -10
- package/models/TestConnectionResponse.ts +0 -8
- package/models/TtlEviction.ts +0 -9
- package/models/Tunnel.ts +0 -9
- package/models/UUID.ts +0 -5
- package/models/UnitOfMeasurement.ts +0 -7
- package/models/UpdateViewChange.ts +0 -11
- package/models/UpdateViewDiff.ts +0 -12
- package/models/ValueGrouping.ts +0 -10
- package/models/VendorPrivateKeyAuthentication.ts +0 -9
- package/models/View.ts +0 -17
- package/models/ViewChange.ts +0 -10
- package/models/ViewDiff.ts +0 -10
- package/models/ViewExportRequest.ts +0 -18
- package/models/ViewRequest.ts +0 -19
- package/models/ViewResponse.ts +0 -10
- package/models/ViewRunRequest.ts +0 -15
- package/services/BranchResourceService.ts +0 -112
- package/services/CommitResourceService.ts +0 -48
- package/services/DataSourceResourceService.ts +0 -146
- package/services/HealthResourceService.ts +0 -45
- package/services/ListViewsResourceService.ts +0 -73
- package/services/NamespaceResourceService.ts +0 -120
- package/services/QueryResourceService.ts +0 -207
- package/services/TenantResourceService.ts +0 -89
- package/services/TestConnectionResourceService.ts +0 -56
- package/services/ViewResourceService.ts +0 -130
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
/* istanbul ignore file */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import type { QueryExecutionResponse } from '../models/QueryExecutionResponse';
|
|
5
|
-
import type { QueryExportResponse } from '../models/QueryExportResponse';
|
|
6
|
-
import type { QueryPreviewRequest } from '../models/QueryPreviewRequest';
|
|
7
|
-
import type { TablePreviewRequest } from '../models/TablePreviewRequest';
|
|
8
|
-
import type { UUID } from '../models/UUID';
|
|
9
|
-
import type { ViewExportRequest } from '../models/ViewExportRequest';
|
|
10
|
-
import type { ViewRunRequest } from '../models/ViewRunRequest';
|
|
11
|
-
|
|
12
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
13
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
14
|
-
import { request as __request } from '../core/request';
|
|
15
|
-
|
|
16
|
-
export class QueryResourceService {
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Runs a provided query against the provided data source
|
|
20
|
-
* @param dataSourceId
|
|
21
|
-
* @param namespaceId
|
|
22
|
-
* @param requestBody Query to preview against the provided data source
|
|
23
|
-
* @returns QueryExecutionResponse A DataPage of the provided query
|
|
24
|
-
* @throws ApiError
|
|
25
|
-
*/
|
|
26
|
-
public static getQueryPreview(
|
|
27
|
-
dataSourceId: UUID,
|
|
28
|
-
namespaceId: UUID,
|
|
29
|
-
requestBody: QueryPreviewRequest,
|
|
30
|
-
): CancelablePromise<QueryExecutionResponse> {
|
|
31
|
-
return __request(OpenAPI, {
|
|
32
|
-
method: 'POST',
|
|
33
|
-
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/preview',
|
|
34
|
-
path: {
|
|
35
|
-
'dataSourceId': dataSourceId,
|
|
36
|
-
'namespaceId': namespaceId,
|
|
37
|
-
},
|
|
38
|
-
body: requestBody,
|
|
39
|
-
mediaType: 'application/json',
|
|
40
|
-
errors: {
|
|
41
|
-
400: `An error related to the user request`,
|
|
42
|
-
503: `An error related to the execution of the request`,
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Gets a preview of a specified table in a Data Source
|
|
49
|
-
* @param dataSourceId
|
|
50
|
-
* @param namespaceId
|
|
51
|
-
* @param requestBody Table to preview against the provided data source
|
|
52
|
-
* @returns QueryExecutionResponse A DataPage of the resulting Data Source's data
|
|
53
|
-
* @throws ApiError
|
|
54
|
-
*/
|
|
55
|
-
public static getTablePreview(
|
|
56
|
-
dataSourceId: UUID,
|
|
57
|
-
namespaceId: UUID,
|
|
58
|
-
requestBody: TablePreviewRequest,
|
|
59
|
-
): CancelablePromise<QueryExecutionResponse> {
|
|
60
|
-
return __request(OpenAPI, {
|
|
61
|
-
method: 'POST',
|
|
62
|
-
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/preview-table',
|
|
63
|
-
path: {
|
|
64
|
-
'dataSourceId': dataSourceId,
|
|
65
|
-
'namespaceId': namespaceId,
|
|
66
|
-
},
|
|
67
|
-
body: requestBody,
|
|
68
|
-
mediaType: 'application/json',
|
|
69
|
-
errors: {
|
|
70
|
-
400: `An error related to the user request`,
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Runs the requested versioned view against the provided data source
|
|
77
|
-
* @param commitId
|
|
78
|
-
* @param dataSourceId
|
|
79
|
-
* @param namespaceId
|
|
80
|
-
* @param viewId
|
|
81
|
-
* @param requestBody Request options for the export
|
|
82
|
-
* @returns QueryExportResponse A DataPage of the provided query
|
|
83
|
-
* @throws ApiError
|
|
84
|
-
*/
|
|
85
|
-
public static exportVersionedView(
|
|
86
|
-
commitId: UUID,
|
|
87
|
-
dataSourceId: UUID,
|
|
88
|
-
namespaceId: UUID,
|
|
89
|
-
viewId: UUID,
|
|
90
|
-
requestBody: ViewExportRequest,
|
|
91
|
-
): CancelablePromise<QueryExportResponse> {
|
|
92
|
-
return __request(OpenAPI, {
|
|
93
|
-
method: 'POST',
|
|
94
|
-
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/commits/{commitId}/export',
|
|
95
|
-
path: {
|
|
96
|
-
'commitId': commitId,
|
|
97
|
-
'dataSourceId': dataSourceId,
|
|
98
|
-
'namespaceId': namespaceId,
|
|
99
|
-
'viewId': viewId,
|
|
100
|
-
},
|
|
101
|
-
body: requestBody,
|
|
102
|
-
mediaType: 'application/json',
|
|
103
|
-
errors: {
|
|
104
|
-
400: `An error related to the user request`,
|
|
105
|
-
},
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Runs the requested versioned view against the provided data source
|
|
111
|
-
* @param commitId
|
|
112
|
-
* @param dataSourceId
|
|
113
|
-
* @param namespaceId
|
|
114
|
-
* @param viewId
|
|
115
|
-
* @param requestBody Request options for the query
|
|
116
|
-
* @returns QueryExecutionResponse A DataPage of the provided query
|
|
117
|
-
* @throws ApiError
|
|
118
|
-
*/
|
|
119
|
-
public static runVersionedView(
|
|
120
|
-
commitId: string,
|
|
121
|
-
dataSourceId: UUID,
|
|
122
|
-
namespaceId: UUID,
|
|
123
|
-
viewId: UUID,
|
|
124
|
-
requestBody: ViewRunRequest,
|
|
125
|
-
): CancelablePromise<QueryExecutionResponse> {
|
|
126
|
-
return __request(OpenAPI, {
|
|
127
|
-
method: 'POST',
|
|
128
|
-
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/commits/{commitId}/run',
|
|
129
|
-
path: {
|
|
130
|
-
'commitId': commitId,
|
|
131
|
-
'dataSourceId': dataSourceId,
|
|
132
|
-
'namespaceId': namespaceId,
|
|
133
|
-
'viewId': viewId,
|
|
134
|
-
},
|
|
135
|
-
body: requestBody,
|
|
136
|
-
mediaType: 'application/json',
|
|
137
|
-
errors: {
|
|
138
|
-
400: `An error related to the user request`,
|
|
139
|
-
503: `An error related to the execution of the request`,
|
|
140
|
-
},
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Runs the requested view against the provided data source
|
|
146
|
-
* @param dataSourceId
|
|
147
|
-
* @param namespaceId
|
|
148
|
-
* @param viewId
|
|
149
|
-
* @param requestBody View to export against the provided data source
|
|
150
|
-
* @returns QueryExportResponse A DataPage of the provided query
|
|
151
|
-
* @throws ApiError
|
|
152
|
-
*/
|
|
153
|
-
public static exportView(
|
|
154
|
-
dataSourceId: UUID,
|
|
155
|
-
namespaceId: UUID,
|
|
156
|
-
viewId: UUID,
|
|
157
|
-
requestBody: ViewExportRequest,
|
|
158
|
-
): CancelablePromise<QueryExportResponse> {
|
|
159
|
-
return __request(OpenAPI, {
|
|
160
|
-
method: 'POST',
|
|
161
|
-
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/export',
|
|
162
|
-
path: {
|
|
163
|
-
'dataSourceId': dataSourceId,
|
|
164
|
-
'namespaceId': namespaceId,
|
|
165
|
-
'viewId': viewId,
|
|
166
|
-
},
|
|
167
|
-
body: requestBody,
|
|
168
|
-
mediaType: 'application/json',
|
|
169
|
-
errors: {
|
|
170
|
-
400: `An error related to the user request`,
|
|
171
|
-
},
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Runs the requested view against the provided data source
|
|
177
|
-
* @param dataSourceId
|
|
178
|
-
* @param namespaceId
|
|
179
|
-
* @param viewId
|
|
180
|
-
* @param requestBody View to run against the provided data source
|
|
181
|
-
* @returns QueryExecutionResponse A DataPage of the provided query
|
|
182
|
-
* @throws ApiError
|
|
183
|
-
*/
|
|
184
|
-
public static runView(
|
|
185
|
-
dataSourceId: UUID,
|
|
186
|
-
namespaceId: UUID,
|
|
187
|
-
viewId: UUID,
|
|
188
|
-
requestBody: ViewRunRequest,
|
|
189
|
-
): CancelablePromise<QueryExecutionResponse> {
|
|
190
|
-
return __request(OpenAPI, {
|
|
191
|
-
method: 'POST',
|
|
192
|
-
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/run',
|
|
193
|
-
path: {
|
|
194
|
-
'dataSourceId': dataSourceId,
|
|
195
|
-
'namespaceId': namespaceId,
|
|
196
|
-
'viewId': viewId,
|
|
197
|
-
},
|
|
198
|
-
body: requestBody,
|
|
199
|
-
mediaType: 'application/json',
|
|
200
|
-
errors: {
|
|
201
|
-
400: `An error related to the user request`,
|
|
202
|
-
503: `An error related to the execution of the request`,
|
|
203
|
-
},
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
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: 'application/json',
|
|
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
|
-
/**
|
|
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: 'application/json',
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Deletes a tenant
|
|
73
|
-
* @param id
|
|
74
|
-
* @returns any 200 if the tenant was deleted properly
|
|
75
|
-
* @throws ApiError
|
|
76
|
-
*/
|
|
77
|
-
public static deleteTenant(
|
|
78
|
-
id: UUID,
|
|
79
|
-
): CancelablePromise<Record<string, any>> {
|
|
80
|
-
return __request(OpenAPI, {
|
|
81
|
-
method: 'DELETE',
|
|
82
|
-
url: '/v1/tenants/{id}',
|
|
83
|
-
path: {
|
|
84
|
-
'id': id,
|
|
85
|
-
},
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/* istanbul ignore file */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import type { TestConnectionRequest } from '../models/TestConnectionRequest';
|
|
5
|
-
import type { UUID } from '../models/UUID';
|
|
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 TestConnectionResourceService {
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Get the number of tables in a provided data source
|
|
15
|
-
* @param id
|
|
16
|
-
* @param requestBody Data Source configuration to retry to connect to
|
|
17
|
-
* @returns any Number of tables in a provided data source
|
|
18
|
-
* @throws ApiError
|
|
19
|
-
*/
|
|
20
|
-
public static retestConnection(
|
|
21
|
-
id: UUID,
|
|
22
|
-
requestBody: TestConnectionRequest,
|
|
23
|
-
): CancelablePromise<{
|
|
24
|
-
numberOfTables: number;
|
|
25
|
-
}> {
|
|
26
|
-
return __request(OpenAPI, {
|
|
27
|
-
method: 'POST',
|
|
28
|
-
url: '/v1/data-sources/retest-connection/{id}',
|
|
29
|
-
path: {
|
|
30
|
-
'id': id,
|
|
31
|
-
},
|
|
32
|
-
body: requestBody,
|
|
33
|
-
mediaType: 'application/json',
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Get the number of tables in a provided data source
|
|
39
|
-
* @param requestBody Data Source configuration to try to connect to
|
|
40
|
-
* @returns any Number of tables in a provided data source
|
|
41
|
-
* @throws ApiError
|
|
42
|
-
*/
|
|
43
|
-
public static testConnection(
|
|
44
|
-
requestBody: TestConnectionRequest,
|
|
45
|
-
): CancelablePromise<{
|
|
46
|
-
numberOfTables: number;
|
|
47
|
-
}> {
|
|
48
|
-
return __request(OpenAPI, {
|
|
49
|
-
method: 'POST',
|
|
50
|
-
url: '/v1/data-sources/test-connection',
|
|
51
|
-
body: requestBody,
|
|
52
|
-
mediaType: 'application/json',
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
}
|
|
@@ -1,130 +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
|
-
* @deprecated
|
|
16
|
-
* Creates a view
|
|
17
|
-
* @param namespaceId
|
|
18
|
-
* @param requestBody View object to create
|
|
19
|
-
* @returns ViewResponse The requested view
|
|
20
|
-
* @throws ApiError
|
|
21
|
-
*/
|
|
22
|
-
public static createView(
|
|
23
|
-
namespaceId: UUID,
|
|
24
|
-
requestBody: ViewRequest,
|
|
25
|
-
): CancelablePromise<ViewResponse> {
|
|
26
|
-
return __request(OpenAPI, {
|
|
27
|
-
method: 'POST',
|
|
28
|
-
url: '/v1/namespaces/{namespaceId}/views',
|
|
29
|
-
path: {
|
|
30
|
-
'namespaceId': namespaceId,
|
|
31
|
-
},
|
|
32
|
-
body: requestBody,
|
|
33
|
-
mediaType: 'application/json',
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Gets a view
|
|
39
|
-
* @param id
|
|
40
|
-
* @param namespaceId
|
|
41
|
-
* @returns ViewResponse The requested view
|
|
42
|
-
* @throws ApiError
|
|
43
|
-
*/
|
|
44
|
-
public static getView(
|
|
45
|
-
id: UUID,
|
|
46
|
-
namespaceId: UUID,
|
|
47
|
-
): CancelablePromise<ViewResponse> {
|
|
48
|
-
return __request(OpenAPI, {
|
|
49
|
-
method: 'GET',
|
|
50
|
-
url: '/v1/namespaces/{namespaceId}/views/{id}',
|
|
51
|
-
path: {
|
|
52
|
-
'id': id,
|
|
53
|
-
'namespaceId': namespaceId,
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated
|
|
60
|
-
* Updates a view's metadata
|
|
61
|
-
* @param id
|
|
62
|
-
* @param namespaceId
|
|
63
|
-
* @param requestBody View object to update
|
|
64
|
-
* @returns ViewResponse The updated view
|
|
65
|
-
* @throws ApiError
|
|
66
|
-
*/
|
|
67
|
-
public static updateView(
|
|
68
|
-
id: UUID,
|
|
69
|
-
namespaceId: UUID,
|
|
70
|
-
requestBody: ViewRequest,
|
|
71
|
-
): CancelablePromise<ViewResponse> {
|
|
72
|
-
return __request(OpenAPI, {
|
|
73
|
-
method: 'PUT',
|
|
74
|
-
url: '/v1/namespaces/{namespaceId}/views/{id}',
|
|
75
|
-
path: {
|
|
76
|
-
'id': id,
|
|
77
|
-
'namespaceId': namespaceId,
|
|
78
|
-
},
|
|
79
|
-
body: requestBody,
|
|
80
|
-
mediaType: 'application/json',
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @deprecated
|
|
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
|
-
/**
|
|
107
|
-
* Gets a view with the specified version
|
|
108
|
-
* @param id
|
|
109
|
-
* @param namespaceId
|
|
110
|
-
* @param versionId
|
|
111
|
-
* @returns ViewResponse The requested view
|
|
112
|
-
* @throws ApiError
|
|
113
|
-
*/
|
|
114
|
-
public static getVersionedView(
|
|
115
|
-
id: UUID,
|
|
116
|
-
namespaceId: UUID,
|
|
117
|
-
versionId: UUID,
|
|
118
|
-
): CancelablePromise<ViewResponse> {
|
|
119
|
-
return __request(OpenAPI, {
|
|
120
|
-
method: 'GET',
|
|
121
|
-
url: '/v1/namespaces/{namespaceId}/views/{id}/versions/{versionId}',
|
|
122
|
-
path: {
|
|
123
|
-
'id': id,
|
|
124
|
-
'namespaceId': namespaceId,
|
|
125
|
-
'versionId': versionId,
|
|
126
|
-
},
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
}
|