@explo-tech/fido-api 0.0.1 → 0.0.3
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/.openapi-generator/FILES +7 -6
- package/api/datasourceResourceApi.ts +30 -30
- package/api/healthResourceApi.ts +4 -4
- package/api/namespaceResourceApi.ts +31 -31
- package/api/queryResourceApi.ts +12 -12
- package/model/{v1NamespacesIdGet4xxResponse.ts → clientError.ts} +2 -2
- package/model/{v1NamespacesNamespaceIdDataSourcesIdGet200Response.ts → dataSourceResponse.ts} +2 -2
- package/model/models.ts +21 -15
- package/model/{v1NamespacesIdGet200Response.ts → namespaceResponse.ts} +5 -5
- package/model/{v1NamespacesIdGet200ResponseMeta.ts → namespaceResponseMeta.ts} +2 -2
- package/model/{v1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response.ts → queryExecutionResponse.ts} +5 -4
- package/model/queryExecutionResponseRequestTelemetry.ts +43 -0
- package/model/requestTelemetry.ts +43 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.gitignore
|
|
2
|
-
.openapi-generator-ignore
|
|
3
2
|
api.ts
|
|
4
3
|
api/apis.ts
|
|
5
4
|
api/datasourceResourceApi.ts
|
|
@@ -7,6 +6,7 @@ api/healthResourceApi.ts
|
|
|
7
6
|
api/namespaceResourceApi.ts
|
|
8
7
|
api/queryResourceApi.ts
|
|
9
8
|
git_push.sh
|
|
9
|
+
model/clientError.ts
|
|
10
10
|
model/computedViewRunRequest.ts
|
|
11
11
|
model/dataPage.ts
|
|
12
12
|
model/dataRequestParameters.ts
|
|
@@ -15,17 +15,18 @@ model/dataSchema.ts
|
|
|
15
15
|
model/dataSource.ts
|
|
16
16
|
model/dataSourceConfiguration.ts
|
|
17
17
|
model/dataSourceRequest.ts
|
|
18
|
+
model/dataSourceResponse.ts
|
|
18
19
|
model/dataSourceTablePreviewRequest.ts
|
|
19
20
|
model/models.ts
|
|
20
21
|
model/namespace.ts
|
|
21
22
|
model/namespaceRequest.ts
|
|
23
|
+
model/namespaceResponse.ts
|
|
24
|
+
model/namespaceResponseMeta.ts
|
|
22
25
|
model/namespaceResponseMetadata.ts
|
|
23
26
|
model/pagingConfiguration.ts
|
|
24
27
|
model/propertySchema.ts
|
|
25
28
|
model/propertyType.ts
|
|
29
|
+
model/queryExecutionResponse.ts
|
|
30
|
+
model/queryExecutionResponseRequestTelemetry.ts
|
|
26
31
|
model/record.ts
|
|
27
|
-
model/
|
|
28
|
-
model/v1NamespacesIdGet200ResponseMeta.ts
|
|
29
|
-
model/v1NamespacesIdGet4xxResponse.ts
|
|
30
|
-
model/v1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response.ts
|
|
31
|
-
model/v1NamespacesNamespaceIdDataSourcesIdGet200Response.ts
|
|
32
|
+
model/requestTelemetry.ts
|
|
@@ -15,9 +15,9 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { ClientError } from '../model/clientError';
|
|
18
19
|
import { DataSourceRequest } from '../model/dataSourceRequest';
|
|
19
|
-
import {
|
|
20
|
-
import { V1NamespacesNamespaceIdDataSourcesIdGet200Response } from '../model/v1NamespacesNamespaceIdDataSourcesIdGet200Response';
|
|
20
|
+
import { DataSourceResponse } from '../model/dataSourceResponse';
|
|
21
21
|
|
|
22
22
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
23
23
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
@@ -103,11 +103,12 @@ export class DatasourceResourceApi {
|
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
105
|
*
|
|
106
|
-
* @summary
|
|
106
|
+
* @summary Creates a data source
|
|
107
107
|
* @param id
|
|
108
108
|
* @param namespaceId
|
|
109
|
+
* @param dataSourceRequest
|
|
109
110
|
*/
|
|
110
|
-
public async
|
|
111
|
+
public async createDataSource (id: string, namespaceId: string, dataSourceRequest?: DataSourceRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: DataSourceResponse; }> {
|
|
111
112
|
const localVarPath = this.basePath + '/v1/namespaces/{namespaceId}/data-sources/{id}'
|
|
112
113
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
113
114
|
.replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId)));
|
|
@@ -124,12 +125,12 @@ export class DatasourceResourceApi {
|
|
|
124
125
|
|
|
125
126
|
// verify required parameter 'id' is not null or undefined
|
|
126
127
|
if (id === null || id === undefined) {
|
|
127
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
128
|
+
throw new Error('Required parameter id was null or undefined when calling createDataSource.');
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
// verify required parameter 'namespaceId' is not null or undefined
|
|
131
132
|
if (namespaceId === null || namespaceId === undefined) {
|
|
132
|
-
throw new Error('Required parameter namespaceId was null or undefined when calling
|
|
133
|
+
throw new Error('Required parameter namespaceId was null or undefined when calling createDataSource.');
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -137,12 +138,13 @@ export class DatasourceResourceApi {
|
|
|
137
138
|
let localVarUseFormData = false;
|
|
138
139
|
|
|
139
140
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
140
|
-
method: '
|
|
141
|
+
method: 'POST',
|
|
141
142
|
qs: localVarQueryParameters,
|
|
142
143
|
headers: localVarHeaderParams,
|
|
143
144
|
uri: localVarPath,
|
|
144
145
|
useQuerystring: this._useQuerystring,
|
|
145
146
|
json: true,
|
|
147
|
+
body: ObjectSerializer.serialize(dataSourceRequest, "DataSourceRequest")
|
|
146
148
|
};
|
|
147
149
|
|
|
148
150
|
let authenticationPromise = Promise.resolve();
|
|
@@ -161,13 +163,13 @@ export class DatasourceResourceApi {
|
|
|
161
163
|
localVarRequestOptions.form = localVarFormParams;
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
166
|
+
return new Promise<{ response: http.IncomingMessage; body: DataSourceResponse; }>((resolve, reject) => {
|
|
165
167
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
166
168
|
if (error) {
|
|
167
169
|
reject(error);
|
|
168
170
|
} else {
|
|
169
171
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
170
|
-
body = ObjectSerializer.deserialize(body, "
|
|
172
|
+
body = ObjectSerializer.deserialize(body, "DataSourceResponse");
|
|
171
173
|
resolve({ response: response, body: body });
|
|
172
174
|
} else {
|
|
173
175
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -179,11 +181,11 @@ export class DatasourceResourceApi {
|
|
|
179
181
|
}
|
|
180
182
|
/**
|
|
181
183
|
*
|
|
182
|
-
* @summary
|
|
184
|
+
* @summary Deletes a data source
|
|
183
185
|
* @param id
|
|
184
186
|
* @param namespaceId
|
|
185
187
|
*/
|
|
186
|
-
public async
|
|
188
|
+
public async deleteDataSource (id: string, namespaceId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
|
|
187
189
|
const localVarPath = this.basePath + '/v1/namespaces/{namespaceId}/data-sources/{id}'
|
|
188
190
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
189
191
|
.replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId)));
|
|
@@ -200,12 +202,12 @@ export class DatasourceResourceApi {
|
|
|
200
202
|
|
|
201
203
|
// verify required parameter 'id' is not null or undefined
|
|
202
204
|
if (id === null || id === undefined) {
|
|
203
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
205
|
+
throw new Error('Required parameter id was null or undefined when calling deleteDataSource.');
|
|
204
206
|
}
|
|
205
207
|
|
|
206
208
|
// verify required parameter 'namespaceId' is not null or undefined
|
|
207
209
|
if (namespaceId === null || namespaceId === undefined) {
|
|
208
|
-
throw new Error('Required parameter namespaceId was null or undefined when calling
|
|
210
|
+
throw new Error('Required parameter namespaceId was null or undefined when calling deleteDataSource.');
|
|
209
211
|
}
|
|
210
212
|
|
|
211
213
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -213,7 +215,7 @@ export class DatasourceResourceApi {
|
|
|
213
215
|
let localVarUseFormData = false;
|
|
214
216
|
|
|
215
217
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
216
|
-
method: '
|
|
218
|
+
method: 'DELETE',
|
|
217
219
|
qs: localVarQueryParameters,
|
|
218
220
|
headers: localVarHeaderParams,
|
|
219
221
|
uri: localVarPath,
|
|
@@ -237,13 +239,13 @@ export class DatasourceResourceApi {
|
|
|
237
239
|
localVarRequestOptions.form = localVarFormParams;
|
|
238
240
|
}
|
|
239
241
|
}
|
|
240
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
242
|
+
return new Promise<{ response: http.IncomingMessage; body: object; }>((resolve, reject) => {
|
|
241
243
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
242
244
|
if (error) {
|
|
243
245
|
reject(error);
|
|
244
246
|
} else {
|
|
245
247
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
246
|
-
body = ObjectSerializer.deserialize(body, "
|
|
248
|
+
body = ObjectSerializer.deserialize(body, "object");
|
|
247
249
|
resolve({ response: response, body: body });
|
|
248
250
|
} else {
|
|
249
251
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -255,12 +257,11 @@ export class DatasourceResourceApi {
|
|
|
255
257
|
}
|
|
256
258
|
/**
|
|
257
259
|
*
|
|
258
|
-
* @summary
|
|
260
|
+
* @summary Gets a data source
|
|
259
261
|
* @param id
|
|
260
262
|
* @param namespaceId
|
|
261
|
-
* @param dataSourceRequest
|
|
262
263
|
*/
|
|
263
|
-
public async
|
|
264
|
+
public async getDataSource (id: string, namespaceId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: DataSourceResponse; }> {
|
|
264
265
|
const localVarPath = this.basePath + '/v1/namespaces/{namespaceId}/data-sources/{id}'
|
|
265
266
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
266
267
|
.replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId)));
|
|
@@ -277,12 +278,12 @@ export class DatasourceResourceApi {
|
|
|
277
278
|
|
|
278
279
|
// verify required parameter 'id' is not null or undefined
|
|
279
280
|
if (id === null || id === undefined) {
|
|
280
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
281
|
+
throw new Error('Required parameter id was null or undefined when calling getDataSource.');
|
|
281
282
|
}
|
|
282
283
|
|
|
283
284
|
// verify required parameter 'namespaceId' is not null or undefined
|
|
284
285
|
if (namespaceId === null || namespaceId === undefined) {
|
|
285
|
-
throw new Error('Required parameter namespaceId was null or undefined when calling
|
|
286
|
+
throw new Error('Required parameter namespaceId was null or undefined when calling getDataSource.');
|
|
286
287
|
}
|
|
287
288
|
|
|
288
289
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -290,13 +291,12 @@ export class DatasourceResourceApi {
|
|
|
290
291
|
let localVarUseFormData = false;
|
|
291
292
|
|
|
292
293
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
293
|
-
method: '
|
|
294
|
+
method: 'GET',
|
|
294
295
|
qs: localVarQueryParameters,
|
|
295
296
|
headers: localVarHeaderParams,
|
|
296
297
|
uri: localVarPath,
|
|
297
298
|
useQuerystring: this._useQuerystring,
|
|
298
299
|
json: true,
|
|
299
|
-
body: ObjectSerializer.serialize(dataSourceRequest, "DataSourceRequest")
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
let authenticationPromise = Promise.resolve();
|
|
@@ -315,13 +315,13 @@ export class DatasourceResourceApi {
|
|
|
315
315
|
localVarRequestOptions.form = localVarFormParams;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
318
|
+
return new Promise<{ response: http.IncomingMessage; body: DataSourceResponse; }>((resolve, reject) => {
|
|
319
319
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
320
320
|
if (error) {
|
|
321
321
|
reject(error);
|
|
322
322
|
} else {
|
|
323
323
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
324
|
-
body = ObjectSerializer.deserialize(body, "
|
|
324
|
+
body = ObjectSerializer.deserialize(body, "DataSourceResponse");
|
|
325
325
|
resolve({ response: response, body: body });
|
|
326
326
|
} else {
|
|
327
327
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -338,7 +338,7 @@ export class DatasourceResourceApi {
|
|
|
338
338
|
* @param namespaceId
|
|
339
339
|
* @param dataSourceRequest
|
|
340
340
|
*/
|
|
341
|
-
public async
|
|
341
|
+
public async updateDataSource (id: string, namespaceId: string, dataSourceRequest?: DataSourceRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: DataSourceResponse; }> {
|
|
342
342
|
const localVarPath = this.basePath + '/v1/namespaces/{namespaceId}/data-sources/{id}'
|
|
343
343
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)))
|
|
344
344
|
.replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId)));
|
|
@@ -355,12 +355,12 @@ export class DatasourceResourceApi {
|
|
|
355
355
|
|
|
356
356
|
// verify required parameter 'id' is not null or undefined
|
|
357
357
|
if (id === null || id === undefined) {
|
|
358
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
358
|
+
throw new Error('Required parameter id was null or undefined when calling updateDataSource.');
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
// verify required parameter 'namespaceId' is not null or undefined
|
|
362
362
|
if (namespaceId === null || namespaceId === undefined) {
|
|
363
|
-
throw new Error('Required parameter namespaceId was null or undefined when calling
|
|
363
|
+
throw new Error('Required parameter namespaceId was null or undefined when calling updateDataSource.');
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -393,13 +393,13 @@ export class DatasourceResourceApi {
|
|
|
393
393
|
localVarRequestOptions.form = localVarFormParams;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
396
|
+
return new Promise<{ response: http.IncomingMessage; body: DataSourceResponse; }>((resolve, reject) => {
|
|
397
397
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
398
398
|
if (error) {
|
|
399
399
|
reject(error);
|
|
400
400
|
} else {
|
|
401
401
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
402
|
-
body = ObjectSerializer.deserialize(body, "
|
|
402
|
+
body = ObjectSerializer.deserialize(body, "DataSourceResponse");
|
|
403
403
|
resolve({ response: response, body: body });
|
|
404
404
|
} else {
|
|
405
405
|
reject(new HttpError(response, body, response.statusCode));
|
package/api/healthResourceApi.ts
CHANGED
|
@@ -104,7 +104,7 @@ export class HealthResourceApi {
|
|
|
104
104
|
* @param dataSourceId
|
|
105
105
|
* @param namespaceId
|
|
106
106
|
*/
|
|
107
|
-
public async
|
|
107
|
+
public async getDataSourceConnectionHealth (dataSourceId: string, namespaceId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
|
|
108
108
|
const localVarPath = this.basePath + '/v1/health/data-source-connection/{namespaceId}/{dataSourceId}'
|
|
109
109
|
.replace('{' + 'dataSourceId' + '}', encodeURIComponent(String(dataSourceId)))
|
|
110
110
|
.replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId)));
|
|
@@ -121,12 +121,12 @@ export class HealthResourceApi {
|
|
|
121
121
|
|
|
122
122
|
// verify required parameter 'dataSourceId' is not null or undefined
|
|
123
123
|
if (dataSourceId === null || dataSourceId === undefined) {
|
|
124
|
-
throw new Error('Required parameter dataSourceId was null or undefined when calling
|
|
124
|
+
throw new Error('Required parameter dataSourceId was null or undefined when calling getDataSourceConnectionHealth.');
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
// verify required parameter 'namespaceId' is not null or undefined
|
|
128
128
|
if (namespaceId === null || namespaceId === undefined) {
|
|
129
|
-
throw new Error('Required parameter namespaceId was null or undefined when calling
|
|
129
|
+
throw new Error('Required parameter namespaceId was null or undefined when calling getDataSourceConnectionHealth.');
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -178,7 +178,7 @@ export class HealthResourceApi {
|
|
|
178
178
|
*
|
|
179
179
|
* @summary Returns the entire state of the FIDO application
|
|
180
180
|
*/
|
|
181
|
-
public async
|
|
181
|
+
public async getFidoHealth (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
|
|
182
182
|
const localVarPath = this.basePath + '/v1/health';
|
|
183
183
|
let localVarQueryParameters: any = {};
|
|
184
184
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -15,9 +15,9 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { ClientError } from '../model/clientError';
|
|
18
19
|
import { NamespaceRequest } from '../model/namespaceRequest';
|
|
19
|
-
import {
|
|
20
|
-
import { V1NamespacesIdGet4xxResponse } from '../model/v1NamespacesIdGet4xxResponse';
|
|
20
|
+
import { NamespaceResponse } from '../model/namespaceResponse';
|
|
21
21
|
|
|
22
22
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
23
23
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
@@ -103,10 +103,11 @@ export class NamespaceResourceApi {
|
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
105
|
*
|
|
106
|
-
* @summary
|
|
106
|
+
* @summary Creates a namespace and optionally a data source associated with it
|
|
107
107
|
* @param id
|
|
108
|
+
* @param namespaceRequest
|
|
108
109
|
*/
|
|
109
|
-
public async
|
|
110
|
+
public async createNamespace (id: string, namespaceRequest?: NamespaceRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: NamespaceResponse; }> {
|
|
110
111
|
const localVarPath = this.basePath + '/v1/namespaces/{id}'
|
|
111
112
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
112
113
|
let localVarQueryParameters: any = {};
|
|
@@ -122,7 +123,7 @@ export class NamespaceResourceApi {
|
|
|
122
123
|
|
|
123
124
|
// verify required parameter 'id' is not null or undefined
|
|
124
125
|
if (id === null || id === undefined) {
|
|
125
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
126
|
+
throw new Error('Required parameter id was null or undefined when calling createNamespace.');
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -130,12 +131,13 @@ export class NamespaceResourceApi {
|
|
|
130
131
|
let localVarUseFormData = false;
|
|
131
132
|
|
|
132
133
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
133
|
-
method: '
|
|
134
|
+
method: 'POST',
|
|
134
135
|
qs: localVarQueryParameters,
|
|
135
136
|
headers: localVarHeaderParams,
|
|
136
137
|
uri: localVarPath,
|
|
137
138
|
useQuerystring: this._useQuerystring,
|
|
138
139
|
json: true,
|
|
140
|
+
body: ObjectSerializer.serialize(namespaceRequest, "NamespaceRequest")
|
|
139
141
|
};
|
|
140
142
|
|
|
141
143
|
let authenticationPromise = Promise.resolve();
|
|
@@ -154,13 +156,13 @@ export class NamespaceResourceApi {
|
|
|
154
156
|
localVarRequestOptions.form = localVarFormParams;
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
159
|
+
return new Promise<{ response: http.IncomingMessage; body: NamespaceResponse; }>((resolve, reject) => {
|
|
158
160
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
159
161
|
if (error) {
|
|
160
162
|
reject(error);
|
|
161
163
|
} else {
|
|
162
164
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
163
|
-
body = ObjectSerializer.deserialize(body, "
|
|
165
|
+
body = ObjectSerializer.deserialize(body, "NamespaceResponse");
|
|
164
166
|
resolve({ response: response, body: body });
|
|
165
167
|
} else {
|
|
166
168
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -172,11 +174,10 @@ export class NamespaceResourceApi {
|
|
|
172
174
|
}
|
|
173
175
|
/**
|
|
174
176
|
*
|
|
175
|
-
* @summary
|
|
177
|
+
* @summary Deletes a namespace, cascading to its associated resources
|
|
176
178
|
* @param id
|
|
177
|
-
* @param includeDataSources
|
|
178
179
|
*/
|
|
179
|
-
public async
|
|
180
|
+
public async deleteNamespace (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
|
|
180
181
|
const localVarPath = this.basePath + '/v1/namespaces/{id}'
|
|
181
182
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
182
183
|
let localVarQueryParameters: any = {};
|
|
@@ -192,11 +193,7 @@ export class NamespaceResourceApi {
|
|
|
192
193
|
|
|
193
194
|
// verify required parameter 'id' is not null or undefined
|
|
194
195
|
if (id === null || id === undefined) {
|
|
195
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
if (includeDataSources !== undefined) {
|
|
199
|
-
localVarQueryParameters['includeDataSources'] = ObjectSerializer.serialize(includeDataSources, "boolean");
|
|
196
|
+
throw new Error('Required parameter id was null or undefined when calling deleteNamespace.');
|
|
200
197
|
}
|
|
201
198
|
|
|
202
199
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -204,7 +201,7 @@ export class NamespaceResourceApi {
|
|
|
204
201
|
let localVarUseFormData = false;
|
|
205
202
|
|
|
206
203
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
207
|
-
method: '
|
|
204
|
+
method: 'DELETE',
|
|
208
205
|
qs: localVarQueryParameters,
|
|
209
206
|
headers: localVarHeaderParams,
|
|
210
207
|
uri: localVarPath,
|
|
@@ -228,13 +225,13 @@ export class NamespaceResourceApi {
|
|
|
228
225
|
localVarRequestOptions.form = localVarFormParams;
|
|
229
226
|
}
|
|
230
227
|
}
|
|
231
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
228
|
+
return new Promise<{ response: http.IncomingMessage; body: object; }>((resolve, reject) => {
|
|
232
229
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
233
230
|
if (error) {
|
|
234
231
|
reject(error);
|
|
235
232
|
} else {
|
|
236
233
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
237
|
-
body = ObjectSerializer.deserialize(body, "
|
|
234
|
+
body = ObjectSerializer.deserialize(body, "object");
|
|
238
235
|
resolve({ response: response, body: body });
|
|
239
236
|
} else {
|
|
240
237
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -246,11 +243,11 @@ export class NamespaceResourceApi {
|
|
|
246
243
|
}
|
|
247
244
|
/**
|
|
248
245
|
*
|
|
249
|
-
* @summary
|
|
246
|
+
* @summary Gets a namespace and its associated data sources
|
|
250
247
|
* @param id
|
|
251
|
-
* @param
|
|
248
|
+
* @param includeDataSources
|
|
252
249
|
*/
|
|
253
|
-
public async
|
|
250
|
+
public async getNamespace (id: string, includeDataSources?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: NamespaceResponse; }> {
|
|
254
251
|
const localVarPath = this.basePath + '/v1/namespaces/{id}'
|
|
255
252
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
256
253
|
let localVarQueryParameters: any = {};
|
|
@@ -266,7 +263,11 @@ export class NamespaceResourceApi {
|
|
|
266
263
|
|
|
267
264
|
// verify required parameter 'id' is not null or undefined
|
|
268
265
|
if (id === null || id === undefined) {
|
|
269
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
266
|
+
throw new Error('Required parameter id was null or undefined when calling getNamespace.');
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (includeDataSources !== undefined) {
|
|
270
|
+
localVarQueryParameters['includeDataSources'] = ObjectSerializer.serialize(includeDataSources, "boolean");
|
|
270
271
|
}
|
|
271
272
|
|
|
272
273
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -274,13 +275,12 @@ export class NamespaceResourceApi {
|
|
|
274
275
|
let localVarUseFormData = false;
|
|
275
276
|
|
|
276
277
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
277
|
-
method: '
|
|
278
|
+
method: 'GET',
|
|
278
279
|
qs: localVarQueryParameters,
|
|
279
280
|
headers: localVarHeaderParams,
|
|
280
281
|
uri: localVarPath,
|
|
281
282
|
useQuerystring: this._useQuerystring,
|
|
282
283
|
json: true,
|
|
283
|
-
body: ObjectSerializer.serialize(namespaceRequest, "NamespaceRequest")
|
|
284
284
|
};
|
|
285
285
|
|
|
286
286
|
let authenticationPromise = Promise.resolve();
|
|
@@ -299,13 +299,13 @@ export class NamespaceResourceApi {
|
|
|
299
299
|
localVarRequestOptions.form = localVarFormParams;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
302
|
+
return new Promise<{ response: http.IncomingMessage; body: NamespaceResponse; }>((resolve, reject) => {
|
|
303
303
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
304
304
|
if (error) {
|
|
305
305
|
reject(error);
|
|
306
306
|
} else {
|
|
307
307
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
308
|
-
body = ObjectSerializer.deserialize(body, "
|
|
308
|
+
body = ObjectSerializer.deserialize(body, "NamespaceResponse");
|
|
309
309
|
resolve({ response: response, body: body });
|
|
310
310
|
} else {
|
|
311
311
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -321,7 +321,7 @@ export class NamespaceResourceApi {
|
|
|
321
321
|
* @param id
|
|
322
322
|
* @param namespaceRequest
|
|
323
323
|
*/
|
|
324
|
-
public async
|
|
324
|
+
public async updateNamespace (id: string, namespaceRequest?: NamespaceRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: NamespaceResponse; }> {
|
|
325
325
|
const localVarPath = this.basePath + '/v1/namespaces/{id}'
|
|
326
326
|
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
327
327
|
let localVarQueryParameters: any = {};
|
|
@@ -337,7 +337,7 @@ export class NamespaceResourceApi {
|
|
|
337
337
|
|
|
338
338
|
// verify required parameter 'id' is not null or undefined
|
|
339
339
|
if (id === null || id === undefined) {
|
|
340
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
340
|
+
throw new Error('Required parameter id was null or undefined when calling updateNamespace.');
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -370,13 +370,13 @@ export class NamespaceResourceApi {
|
|
|
370
370
|
localVarRequestOptions.form = localVarFormParams;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
373
|
+
return new Promise<{ response: http.IncomingMessage; body: NamespaceResponse; }>((resolve, reject) => {
|
|
374
374
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
375
375
|
if (error) {
|
|
376
376
|
reject(error);
|
|
377
377
|
} else {
|
|
378
378
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
379
|
-
body = ObjectSerializer.deserialize(body, "
|
|
379
|
+
body = ObjectSerializer.deserialize(body, "NamespaceResponse");
|
|
380
380
|
resolve({ response: response, body: body });
|
|
381
381
|
} else {
|
|
382
382
|
reject(new HttpError(response, body, response.statusCode));
|
package/api/queryResourceApi.ts
CHANGED
|
@@ -15,10 +15,10 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { ClientError } from '../model/clientError';
|
|
18
19
|
import { ComputedViewRunRequest } from '../model/computedViewRunRequest';
|
|
19
20
|
import { DataSourceTablePreviewRequest } from '../model/dataSourceTablePreviewRequest';
|
|
20
|
-
import {
|
|
21
|
-
import { V1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response } from '../model/v1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response';
|
|
21
|
+
import { QueryExecutionResponse } from '../model/queryExecutionResponse';
|
|
22
22
|
|
|
23
23
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
24
24
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
@@ -109,7 +109,7 @@ export class QueryResourceApi {
|
|
|
109
109
|
* @param namespaceId
|
|
110
110
|
* @param dataSourceTablePreviewRequest
|
|
111
111
|
*/
|
|
112
|
-
public async
|
|
112
|
+
public async getDatasourceTablePreview (dataSourceId: string, namespaceId: string, dataSourceTablePreviewRequest?: DataSourceTablePreviewRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: QueryExecutionResponse; }> {
|
|
113
113
|
const localVarPath = this.basePath + '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/_preview'
|
|
114
114
|
.replace('{' + 'dataSourceId' + '}', encodeURIComponent(String(dataSourceId)))
|
|
115
115
|
.replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId)));
|
|
@@ -126,12 +126,12 @@ export class QueryResourceApi {
|
|
|
126
126
|
|
|
127
127
|
// verify required parameter 'dataSourceId' is not null or undefined
|
|
128
128
|
if (dataSourceId === null || dataSourceId === undefined) {
|
|
129
|
-
throw new Error('Required parameter dataSourceId was null or undefined when calling
|
|
129
|
+
throw new Error('Required parameter dataSourceId was null or undefined when calling getDatasourceTablePreview.');
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
// verify required parameter 'namespaceId' is not null or undefined
|
|
133
133
|
if (namespaceId === null || namespaceId === undefined) {
|
|
134
|
-
throw new Error('Required parameter namespaceId was null or undefined when calling
|
|
134
|
+
throw new Error('Required parameter namespaceId was null or undefined when calling getDatasourceTablePreview.');
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -164,13 +164,13 @@ export class QueryResourceApi {
|
|
|
164
164
|
localVarRequestOptions.form = localVarFormParams;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
167
|
+
return new Promise<{ response: http.IncomingMessage; body: QueryExecutionResponse; }>((resolve, reject) => {
|
|
168
168
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
169
169
|
if (error) {
|
|
170
170
|
reject(error);
|
|
171
171
|
} else {
|
|
172
172
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
173
|
-
body = ObjectSerializer.deserialize(body, "
|
|
173
|
+
body = ObjectSerializer.deserialize(body, "QueryExecutionResponse");
|
|
174
174
|
resolve({ response: response, body: body });
|
|
175
175
|
} else {
|
|
176
176
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -187,7 +187,7 @@ export class QueryResourceApi {
|
|
|
187
187
|
* @param namespaceId
|
|
188
188
|
* @param computedViewRunRequest
|
|
189
189
|
*/
|
|
190
|
-
public async
|
|
190
|
+
public async runComputedView (dataSourceId: string, namespaceId: string, computedViewRunRequest?: ComputedViewRunRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: QueryExecutionResponse; }> {
|
|
191
191
|
const localVarPath = this.basePath + '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/_run'
|
|
192
192
|
.replace('{' + 'dataSourceId' + '}', encodeURIComponent(String(dataSourceId)))
|
|
193
193
|
.replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId)));
|
|
@@ -204,12 +204,12 @@ export class QueryResourceApi {
|
|
|
204
204
|
|
|
205
205
|
// verify required parameter 'dataSourceId' is not null or undefined
|
|
206
206
|
if (dataSourceId === null || dataSourceId === undefined) {
|
|
207
|
-
throw new Error('Required parameter dataSourceId was null or undefined when calling
|
|
207
|
+
throw new Error('Required parameter dataSourceId was null or undefined when calling runComputedView.');
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
// verify required parameter 'namespaceId' is not null or undefined
|
|
211
211
|
if (namespaceId === null || namespaceId === undefined) {
|
|
212
|
-
throw new Error('Required parameter namespaceId was null or undefined when calling
|
|
212
|
+
throw new Error('Required parameter namespaceId was null or undefined when calling runComputedView.');
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -242,13 +242,13 @@ export class QueryResourceApi {
|
|
|
242
242
|
localVarRequestOptions.form = localVarFormParams;
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
245
|
+
return new Promise<{ response: http.IncomingMessage; body: QueryExecutionResponse; }>((resolve, reject) => {
|
|
246
246
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
247
247
|
if (error) {
|
|
248
248
|
reject(error);
|
|
249
249
|
} else {
|
|
250
250
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
251
|
-
body = ObjectSerializer.deserialize(body, "
|
|
251
|
+
body = ObjectSerializer.deserialize(body, "QueryExecutionResponse");
|
|
252
252
|
resolve({ response: response, body: body });
|
|
253
253
|
} else {
|
|
254
254
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
|
-
export class
|
|
15
|
+
export class ClientError {
|
|
16
16
|
'status': number;
|
|
17
17
|
'message': string;
|
|
18
18
|
|
|
@@ -31,7 +31,7 @@ export class V1NamespacesIdGet4xxResponse {
|
|
|
31
31
|
} ];
|
|
32
32
|
|
|
33
33
|
static getAttributeTypeMap() {
|
|
34
|
-
return
|
|
34
|
+
return ClientError.attributeTypeMap;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
package/model/{v1NamespacesNamespaceIdDataSourcesIdGet200Response.ts → dataSourceResponse.ts}
RENAMED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
import { DataSource } from './dataSource';
|
|
15
15
|
|
|
16
|
-
export class
|
|
16
|
+
export class DataSourceResponse {
|
|
17
17
|
'dataSource': DataSource;
|
|
18
18
|
|
|
19
19
|
static discriminator: string | undefined = undefined;
|
|
@@ -26,7 +26,7 @@ export class V1NamespacesNamespaceIdDataSourcesIdGet200Response {
|
|
|
26
26
|
} ];
|
|
27
27
|
|
|
28
28
|
static getAttributeTypeMap() {
|
|
29
|
-
return
|
|
29
|
+
return DataSourceResponse.attributeTypeMap;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
package/model/models.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import localVarRequest from 'request';
|
|
2
2
|
|
|
3
|
+
export * from './clientError';
|
|
3
4
|
export * from './computedViewRunRequest';
|
|
4
5
|
export * from './dataPage';
|
|
5
6
|
export * from './dataRequestParameters';
|
|
@@ -8,19 +9,20 @@ export * from './dataSchema';
|
|
|
8
9
|
export * from './dataSource';
|
|
9
10
|
export * from './dataSourceConfiguration';
|
|
10
11
|
export * from './dataSourceRequest';
|
|
12
|
+
export * from './dataSourceResponse';
|
|
11
13
|
export * from './dataSourceTablePreviewRequest';
|
|
12
14
|
export * from './namespace';
|
|
13
15
|
export * from './namespaceRequest';
|
|
16
|
+
export * from './namespaceResponse';
|
|
17
|
+
export * from './namespaceResponseMeta';
|
|
14
18
|
export * from './namespaceResponseMetadata';
|
|
15
19
|
export * from './pagingConfiguration';
|
|
16
20
|
export * from './propertySchema';
|
|
17
21
|
export * from './propertyType';
|
|
22
|
+
export * from './queryExecutionResponse';
|
|
23
|
+
export * from './queryExecutionResponseRequestTelemetry';
|
|
18
24
|
export * from './record';
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './v1NamespacesIdGet200ResponseMeta';
|
|
21
|
-
export * from './v1NamespacesIdGet4xxResponse';
|
|
22
|
-
export * from './v1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response';
|
|
23
|
-
export * from './v1NamespacesNamespaceIdDataSourcesIdGet200Response';
|
|
25
|
+
export * from './requestTelemetry';
|
|
24
26
|
|
|
25
27
|
import * as fs from 'fs';
|
|
26
28
|
|
|
@@ -35,6 +37,7 @@ export interface RequestDetailedFile {
|
|
|
35
37
|
export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
36
38
|
|
|
37
39
|
|
|
40
|
+
import { ClientError } from './clientError';
|
|
38
41
|
import { ComputedViewRunRequest } from './computedViewRunRequest';
|
|
39
42
|
import { DataPage } from './dataPage';
|
|
40
43
|
import { DataRequestParameters } from './dataRequestParameters';
|
|
@@ -43,19 +46,20 @@ import { DataSchema } from './dataSchema';
|
|
|
43
46
|
import { DataSource } from './dataSource';
|
|
44
47
|
import { DataSourceConfiguration } from './dataSourceConfiguration';
|
|
45
48
|
import { DataSourceRequest } from './dataSourceRequest';
|
|
49
|
+
import { DataSourceResponse } from './dataSourceResponse';
|
|
46
50
|
import { DataSourceTablePreviewRequest } from './dataSourceTablePreviewRequest';
|
|
47
51
|
import { Namespace } from './namespace';
|
|
48
52
|
import { NamespaceRequest } from './namespaceRequest';
|
|
53
|
+
import { NamespaceResponse } from './namespaceResponse';
|
|
54
|
+
import { NamespaceResponseMeta } from './namespaceResponseMeta';
|
|
49
55
|
import { NamespaceResponseMetadata } from './namespaceResponseMetadata';
|
|
50
56
|
import { PagingConfiguration } from './pagingConfiguration';
|
|
51
57
|
import { PropertySchema } from './propertySchema';
|
|
52
58
|
import { PropertyType } from './propertyType';
|
|
59
|
+
import { QueryExecutionResponse } from './queryExecutionResponse';
|
|
60
|
+
import { QueryExecutionResponseRequestTelemetry } from './queryExecutionResponseRequestTelemetry';
|
|
53
61
|
import { Record } from './record';
|
|
54
|
-
import {
|
|
55
|
-
import { V1NamespacesIdGet200ResponseMeta } from './v1NamespacesIdGet200ResponseMeta';
|
|
56
|
-
import { V1NamespacesIdGet4xxResponse } from './v1NamespacesIdGet4xxResponse';
|
|
57
|
-
import { V1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response } from './v1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response';
|
|
58
|
-
import { V1NamespacesNamespaceIdDataSourcesIdGet200Response } from './v1NamespacesNamespaceIdDataSourcesIdGet200Response';
|
|
62
|
+
import { RequestTelemetry } from './requestTelemetry';
|
|
59
63
|
|
|
60
64
|
/* tslint:disable:no-unused-variable */
|
|
61
65
|
let primitives = [
|
|
@@ -74,6 +78,7 @@ let enumsMap: {[index: string]: any} = {
|
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
let typeMap: {[index: string]: any} = {
|
|
81
|
+
"ClientError": ClientError,
|
|
77
82
|
"ComputedViewRunRequest": ComputedViewRunRequest,
|
|
78
83
|
"DataPage": DataPage,
|
|
79
84
|
"DataRequestParameters": DataRequestParameters,
|
|
@@ -82,18 +87,19 @@ let typeMap: {[index: string]: any} = {
|
|
|
82
87
|
"DataSource": DataSource,
|
|
83
88
|
"DataSourceConfiguration": DataSourceConfiguration,
|
|
84
89
|
"DataSourceRequest": DataSourceRequest,
|
|
90
|
+
"DataSourceResponse": DataSourceResponse,
|
|
85
91
|
"DataSourceTablePreviewRequest": DataSourceTablePreviewRequest,
|
|
86
92
|
"Namespace": Namespace,
|
|
87
93
|
"NamespaceRequest": NamespaceRequest,
|
|
94
|
+
"NamespaceResponse": NamespaceResponse,
|
|
95
|
+
"NamespaceResponseMeta": NamespaceResponseMeta,
|
|
88
96
|
"NamespaceResponseMetadata": NamespaceResponseMetadata,
|
|
89
97
|
"PagingConfiguration": PagingConfiguration,
|
|
90
98
|
"PropertySchema": PropertySchema,
|
|
99
|
+
"QueryExecutionResponse": QueryExecutionResponse,
|
|
100
|
+
"QueryExecutionResponseRequestTelemetry": QueryExecutionResponseRequestTelemetry,
|
|
91
101
|
"Record": Record,
|
|
92
|
-
"
|
|
93
|
-
"V1NamespacesIdGet200ResponseMeta": V1NamespacesIdGet200ResponseMeta,
|
|
94
|
-
"V1NamespacesIdGet4xxResponse": V1NamespacesIdGet4xxResponse,
|
|
95
|
-
"V1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response": V1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response,
|
|
96
|
-
"V1NamespacesNamespaceIdDataSourcesIdGet200Response": V1NamespacesNamespaceIdDataSourcesIdGet200Response,
|
|
102
|
+
"RequestTelemetry": RequestTelemetry,
|
|
97
103
|
}
|
|
98
104
|
|
|
99
105
|
export class ObjectSerializer {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
import { Namespace } from './namespace';
|
|
15
|
-
import {
|
|
15
|
+
import { NamespaceResponseMeta } from './namespaceResponseMeta';
|
|
16
16
|
|
|
17
|
-
export class
|
|
17
|
+
export class NamespaceResponse {
|
|
18
18
|
'namespace': Namespace;
|
|
19
|
-
'meta':
|
|
19
|
+
'meta': NamespaceResponseMeta | null;
|
|
20
20
|
|
|
21
21
|
static discriminator: string | undefined = undefined;
|
|
22
22
|
|
|
@@ -29,11 +29,11 @@ export class V1NamespacesIdGet200Response {
|
|
|
29
29
|
{
|
|
30
30
|
"name": "meta",
|
|
31
31
|
"baseName": "meta",
|
|
32
|
-
"type": "
|
|
32
|
+
"type": "NamespaceResponseMeta"
|
|
33
33
|
} ];
|
|
34
34
|
|
|
35
35
|
static getAttributeTypeMap() {
|
|
36
|
-
return
|
|
36
|
+
return NamespaceResponse.attributeTypeMap;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
import { DataSource } from './dataSource';
|
|
15
15
|
|
|
16
|
-
export class
|
|
16
|
+
export class NamespaceResponseMeta {
|
|
17
17
|
'dataSources': Array<DataSource>;
|
|
18
18
|
|
|
19
19
|
static discriminator: string | undefined = undefined;
|
|
@@ -26,7 +26,7 @@ export class V1NamespacesIdGet200ResponseMeta {
|
|
|
26
26
|
} ];
|
|
27
27
|
|
|
28
28
|
static getAttributeTypeMap() {
|
|
29
|
-
return
|
|
29
|
+
return NamespaceResponseMeta.attributeTypeMap;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
import { DataPage } from './dataPage';
|
|
15
15
|
import { DataResponseMetadata } from './dataResponseMetadata';
|
|
16
|
+
import { QueryExecutionResponseRequestTelemetry } from './queryExecutionResponseRequestTelemetry';
|
|
16
17
|
|
|
17
|
-
export class
|
|
18
|
+
export class QueryExecutionResponse {
|
|
18
19
|
'data': DataPage;
|
|
19
20
|
'meta': DataResponseMetadata;
|
|
20
21
|
'tableIdentifier': string;
|
|
21
|
-
'requestTelemetry'?:
|
|
22
|
+
'requestTelemetry'?: QueryExecutionResponseRequestTelemetry | null;
|
|
22
23
|
|
|
23
24
|
static discriminator: string | undefined = undefined;
|
|
24
25
|
|
|
@@ -41,11 +42,11 @@ export class V1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Respons
|
|
|
41
42
|
{
|
|
42
43
|
"name": "requestTelemetry",
|
|
43
44
|
"baseName": "requestTelemetry",
|
|
44
|
-
"type": "
|
|
45
|
+
"type": "QueryExecutionResponseRequestTelemetry"
|
|
45
46
|
} ];
|
|
46
47
|
|
|
47
48
|
static getAttributeTypeMap() {
|
|
48
|
-
return
|
|
49
|
+
return QueryExecutionResponse.attributeTypeMap;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* fido API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: unspecified
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class QueryExecutionResponseRequestTelemetry {
|
|
16
|
+
'requestTime'?: string | null;
|
|
17
|
+
'queryTime'?: string | null;
|
|
18
|
+
'processingTime'?: string | null;
|
|
19
|
+
|
|
20
|
+
static discriminator: string | undefined = undefined;
|
|
21
|
+
|
|
22
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
23
|
+
{
|
|
24
|
+
"name": "requestTime",
|
|
25
|
+
"baseName": "requestTime",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "queryTime",
|
|
30
|
+
"baseName": "queryTime",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "processingTime",
|
|
35
|
+
"baseName": "processingTime",
|
|
36
|
+
"type": "string"
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return QueryExecutionResponseRequestTelemetry.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* fido API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: unspecified
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class RequestTelemetry {
|
|
16
|
+
'requestTime'?: string | null;
|
|
17
|
+
'queryTime'?: string | null;
|
|
18
|
+
'processingTime'?: string | null;
|
|
19
|
+
|
|
20
|
+
static discriminator: string | undefined = undefined;
|
|
21
|
+
|
|
22
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
23
|
+
{
|
|
24
|
+
"name": "requestTime",
|
|
25
|
+
"baseName": "requestTime",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "queryTime",
|
|
30
|
+
"baseName": "queryTime",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "processingTime",
|
|
35
|
+
"baseName": "processingTime",
|
|
36
|
+
"type": "string"
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return RequestTelemetry.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|