@explo-tech/fido-api 0.0.50 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/ApiError.ts +0 -1
- package/core/ApiRequestOptions.ts +0 -1
- package/core/ApiResult.ts +0 -1
- package/core/CancelablePromise.ts +0 -1
- package/core/OpenAPI.ts +5 -6
- package/core/request.ts +15 -28
- package/index.ts +8 -1
- package/models/AggregateProperty.ts +0 -1
- package/models/Aggregation.ts +0 -1
- package/models/AggregationOption.ts +0 -1
- package/models/And.ts +0 -1
- package/models/BaseComputation.ts +0 -1
- package/models/BooleanPropertyValue.ts +0 -1
- package/models/CalendarInterval.ts +0 -1
- package/models/CalendarIntervalGrouping.ts +0 -1
- package/models/ClientError.ts +0 -1
- package/models/Computation.ts +0 -1
- package/models/ComputedView.ts +3 -4
- package/models/DataPage.ts +0 -1
- package/models/DataRecord.ts +0 -1
- package/models/DataRequestParameters.ts +0 -1
- package/models/DataResponseMetadata.ts +0 -1
- package/models/DataSchema.ts +0 -1
- package/models/DataSource.ts +0 -1
- package/models/DataSourceConfiguration.ts +0 -2
- package/models/DataSourceError.ts +14 -0
- package/models/DataSourceRequest.ts +0 -1
- package/models/DataSourceResponse.ts +0 -1
- package/models/DatePart.ts +0 -1
- package/models/DatePartGrouping.ts +0 -1
- package/models/DatePropertyValue.ts +0 -1
- package/models/DateTimePropertyValue.ts +0 -1
- package/models/DecimalIntervalGrouping.ts +0 -1
- package/models/DecimalPropertyValue.ts +0 -1
- package/models/DoublePropertyValue.ts +0 -1
- package/models/Equal.ts +0 -1
- package/models/ExportFormat.ts +9 -0
- package/models/ExportTargetConfiguration.ts +11 -0
- package/models/Filter.ts +0 -1
- package/models/GreaterThan.ts +0 -1
- package/models/GreaterThanOrEqual.ts +0 -1
- package/models/Grouping.ts +0 -1
- package/models/In.ts +0 -1
- package/models/IntegerIntervalGrouping.ts +0 -1
- package/models/IntegerPropertyValue.ts +0 -1
- package/models/LateBoundEqual.ts +0 -1
- package/models/LateBoundGreaterThan.ts +0 -1
- package/models/LateBoundGreaterThanOrEqual.ts +0 -1
- package/models/LateBoundIn.ts +0 -1
- package/models/LateBoundLessThan.ts +0 -1
- package/models/LateBoundLessThanOrEqual.ts +0 -1
- package/models/LateBoundStringContains.ts +0 -1
- package/models/LessThan.ts +0 -1
- package/models/LessThanOrEqual.ts +0 -1
- package/models/ListNamespacesResponse.ts +0 -1
- package/models/ListViewsRequest.ts +0 -1
- package/models/ListViewsResponse.ts +0 -1
- package/models/MSS.ts +0 -2
- package/models/MSSAuthentication.ts +0 -1
- package/models/MySql.ts +0 -2
- package/models/MySqlAuthentication.ts +0 -1
- package/models/Namespace.ts +0 -1
- package/models/NamespaceRequest.ts +0 -1
- package/models/NamespaceResponse.ts +0 -1
- package/models/NamespaceResponseMetadata.ts +0 -1
- package/models/Not.ts +0 -1
- package/models/Null.ts +0 -1
- package/models/Or.ts +0 -1
- package/models/PagingConfiguration.ts +0 -1
- package/models/PasswordAuthentication.ts +0 -1
- package/models/Pivot.ts +0 -1
- package/models/PivotColumn.ts +0 -1
- package/models/PivotValue.ts +0 -1
- package/models/Postgres.ts +0 -2
- package/models/PostgresAuthentication.ts +0 -1
- package/models/Property.ts +0 -1
- package/models/PropertySchema.ts +0 -1
- package/models/PropertyType.ts +0 -1
- package/models/PropertyValue.ts +0 -1
- package/models/PublicTunnel.ts +0 -1
- package/models/QueryExecutionError.ts +13 -0
- package/models/QueryExecutionResponse.ts +0 -1
- package/models/QueryExportResponse.ts +8 -0
- package/models/QueryPreviewRequest.ts +0 -1
- package/models/QueryTimeoutError.ts +13 -0
- package/models/RequestTelemetry.ts +0 -1
- package/models/SSHAuthentication.ts +0 -1
- package/models/SSHTunnel.ts +0 -1
- package/models/Sort.ts +0 -1
- package/models/SortDirection.ts +0 -1
- package/models/SourceProperty.ts +0 -1
- package/models/StringContains.ts +0 -1
- package/models/StringPropertyValue.ts +0 -1
- package/models/TablePreviewRequest.ts +0 -1
- package/models/TableView.ts +4 -4
- package/models/Tenant.ts +3 -1
- package/models/TenantKey.ts +0 -1
- package/models/TenantPrivateKeyAuthentication.ts +0 -1
- package/models/TenantRequest.ts +4 -2
- package/models/TenantResponse.ts +0 -1
- package/models/TenantS3Configuration.ts +11 -0
- package/models/TestConnectionRequest.ts +0 -1
- package/models/TestConnectionResponse.ts +0 -1
- package/models/Tunnel.ts +0 -1
- package/models/UUID.ts +0 -1
- package/models/ValueGrouping.ts +0 -1
- package/models/VendorPrivateKeyAuthentication.ts +0 -1
- package/models/View.ts +6 -5
- package/models/ViewExportRequest.ts +13 -0
- package/models/ViewRequest.ts +8 -2
- package/models/ViewResponse.ts +2 -11
- package/models/ViewRunRequest.ts +0 -1
- package/package.json +2 -2
- package/services/DataSourceResourceService.ts +0 -1
- package/services/HealthResourceService.ts +0 -1
- package/services/ListViewsResourceService.ts +0 -1
- package/services/NamespaceResourceService.ts +0 -1
- package/services/QueryResourceService.ts +44 -1
- package/services/TenantResourceService.ts +22 -1
- package/services/TestConnectionResourceService.ts +0 -1
- package/services/ViewResourceService.ts +0 -1
package/models/Not.ts
CHANGED
package/models/Null.ts
CHANGED
package/models/Or.ts
CHANGED
package/models/Pivot.ts
CHANGED
package/models/PivotColumn.ts
CHANGED
package/models/PivotValue.ts
CHANGED
package/models/Postgres.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
1
|
/* istanbul ignore file */
|
|
3
2
|
/* tslint:disable */
|
|
4
3
|
/* eslint-disable */
|
|
@@ -7,7 +6,6 @@ import type { PostgresAuthentication } from './PostgresAuthentication';
|
|
|
7
6
|
import type { Tunnel } from './Tunnel';
|
|
8
7
|
|
|
9
8
|
export type Postgres = {
|
|
10
|
-
minimumLiveConnectionCount: number;
|
|
11
9
|
tunnel: Tunnel;
|
|
12
10
|
'@type': 'postgres';
|
|
13
11
|
authentication: PostgresAuthentication;
|
package/models/Property.ts
CHANGED
package/models/PropertySchema.ts
CHANGED
package/models/PropertyType.ts
CHANGED
package/models/PropertyValue.ts
CHANGED
package/models/PublicTunnel.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { RequestTelemetry } from './RequestTelemetry';
|
|
6
|
+
|
|
7
|
+
export type QueryExecutionError = {
|
|
8
|
+
renderedQuery: string | null;
|
|
9
|
+
requestTelemetry: RequestTelemetry | null;
|
|
10
|
+
message: string | null;
|
|
11
|
+
'@type': 'execution-error';
|
|
12
|
+
};
|
|
13
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { RequestTelemetry } from './RequestTelemetry';
|
|
6
|
+
|
|
7
|
+
export type QueryTimeoutError = {
|
|
8
|
+
renderedQuery: string | null;
|
|
9
|
+
requestTelemetry: RequestTelemetry | null;
|
|
10
|
+
message: string | null;
|
|
11
|
+
'@type': 'timeout-error';
|
|
12
|
+
};
|
|
13
|
+
|
package/models/SSHTunnel.ts
CHANGED
package/models/Sort.ts
CHANGED
package/models/SortDirection.ts
CHANGED
package/models/SourceProperty.ts
CHANGED
package/models/StringContains.ts
CHANGED
package/models/TableView.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
1
|
/* istanbul ignore file */
|
|
3
2
|
/* tslint:disable */
|
|
4
3
|
/* eslint-disable */
|
|
@@ -9,9 +8,10 @@ export type TableView = {
|
|
|
9
8
|
name: string;
|
|
10
9
|
description: string | null;
|
|
11
10
|
columnDefinitions: Array<PropertySchema>;
|
|
12
|
-
readonly id?: string;
|
|
13
|
-
readonly namespaceId?: string;
|
|
14
|
-
'@type':
|
|
11
|
+
readonly id?: string | null;
|
|
12
|
+
readonly namespaceId?: string | null;
|
|
13
|
+
'@type': 'table-view';
|
|
15
14
|
tableName: string;
|
|
15
|
+
schemaName?: string | null;
|
|
16
16
|
};
|
|
17
17
|
|
package/models/Tenant.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
1
|
/* istanbul ignore file */
|
|
3
2
|
/* tslint:disable */
|
|
4
3
|
/* eslint-disable */
|
|
5
4
|
|
|
6
5
|
import type { TenantKey } from './TenantKey';
|
|
6
|
+
import type { TenantS3Configuration } from './TenantS3Configuration';
|
|
7
7
|
|
|
8
8
|
export type Tenant = {
|
|
9
9
|
id: string;
|
|
10
10
|
keys?: Array<TenantKey>;
|
|
11
|
+
configurationOverrides?: Record<string, string>;
|
|
12
|
+
s3Configuration: TenantS3Configuration | null;
|
|
11
13
|
};
|
|
12
14
|
|
package/models/TenantKey.ts
CHANGED
package/models/TenantRequest.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
1
|
/* istanbul ignore file */
|
|
3
2
|
/* tslint:disable */
|
|
4
3
|
/* eslint-disable */
|
|
5
4
|
|
|
5
|
+
import type { TenantS3Configuration } from './TenantS3Configuration';
|
|
6
|
+
|
|
6
7
|
export type TenantRequest = {
|
|
7
|
-
|
|
8
|
+
configurationOverrides?: Record<string, string>;
|
|
9
|
+
s3Configuration: TenantS3Configuration | null;
|
|
8
10
|
};
|
|
9
11
|
|
package/models/TenantResponse.ts
CHANGED
package/models/Tunnel.ts
CHANGED
package/models/UUID.ts
CHANGED
package/models/ValueGrouping.ts
CHANGED
package/models/View.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
1
|
/* istanbul ignore file */
|
|
3
2
|
/* tslint:disable */
|
|
4
3
|
/* eslint-disable */
|
|
5
4
|
|
|
5
|
+
import type { ComputedView } from './ComputedView';
|
|
6
6
|
import type { PropertySchema } from './PropertySchema';
|
|
7
|
+
import type { TableView } from './TableView';
|
|
7
8
|
|
|
8
|
-
export type View = {
|
|
9
|
+
export type View = (ComputedView | TableView | {
|
|
9
10
|
name: string;
|
|
10
11
|
description: string | null;
|
|
11
12
|
columnDefinitions: Array<PropertySchema>;
|
|
12
|
-
readonly id?: string;
|
|
13
|
-
readonly namespaceId?: string;
|
|
14
|
-
};
|
|
13
|
+
readonly id?: string | null;
|
|
14
|
+
readonly namespaceId?: string | null;
|
|
15
|
+
});
|
|
15
16
|
|
|
@@ -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/models/ViewRequest.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
1
|
/* istanbul ignore file */
|
|
3
2
|
/* tslint:disable */
|
|
4
3
|
/* eslint-disable */
|
|
5
4
|
|
|
6
5
|
import type { ComputedView } from './ComputedView';
|
|
6
|
+
import type { PropertySchema } from './PropertySchema';
|
|
7
7
|
import type { TableView } from './TableView';
|
|
8
8
|
|
|
9
9
|
export type ViewRequest = {
|
|
10
|
-
view: (TableView |
|
|
10
|
+
view: (ComputedView | TableView | {
|
|
11
|
+
name: string;
|
|
12
|
+
description: string | null;
|
|
13
|
+
columnDefinitions: Array<PropertySchema>;
|
|
14
|
+
readonly id?: string | null;
|
|
15
|
+
readonly namespaceId?: string | null;
|
|
16
|
+
});
|
|
11
17
|
};
|
|
12
18
|
|
package/models/ViewResponse.ts
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
1
|
/* istanbul ignore file */
|
|
3
2
|
/* tslint:disable */
|
|
4
3
|
/* eslint-disable */
|
|
5
4
|
|
|
6
|
-
import type {
|
|
7
|
-
import type { PropertySchema } from './PropertySchema';
|
|
8
|
-
import type { TableView } from './TableView';
|
|
5
|
+
import type { View } from './View';
|
|
9
6
|
|
|
10
7
|
export type ViewResponse = {
|
|
11
|
-
view:
|
|
12
|
-
name: string;
|
|
13
|
-
description: string | null;
|
|
14
|
-
columnDefinitions: Array<PropertySchema>;
|
|
15
|
-
readonly id: string;
|
|
16
|
-
readonly namespaceId: string;
|
|
17
|
-
});
|
|
8
|
+
view: View;
|
|
18
9
|
};
|
|
19
10
|
|
package/models/ViewRunRequest.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@explo-tech/fido-api",
|
|
3
|
-
"version": "0.0.50",
|
|
4
3
|
"description": "Fido api",
|
|
5
4
|
"homepage": "https://github.com/trust-kaz/fido",
|
|
6
|
-
"
|
|
5
|
+
"version": "0.8.4",
|
|
7
6
|
"repository": {
|
|
8
7
|
"type": "git",
|
|
9
8
|
"url": "https://github.com/trust-kaz/fido"
|
|
10
9
|
},
|
|
10
|
+
"devDependencies":{"openapi-typescript-codegen":"^0.24.0"},
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"registry": "https://registry.npmjs.org"
|
|
13
13
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
1
|
/* istanbul ignore file */
|
|
3
2
|
/* tslint:disable */
|
|
4
3
|
/* eslint-disable */
|
|
5
4
|
import type { QueryExecutionResponse } from '../models/QueryExecutionResponse';
|
|
5
|
+
import type { QueryExportResponse } from '../models/QueryExportResponse';
|
|
6
6
|
import type { QueryPreviewRequest } from '../models/QueryPreviewRequest';
|
|
7
7
|
import type { TablePreviewRequest } from '../models/TablePreviewRequest';
|
|
8
8
|
import type { UUID } from '../models/UUID';
|
|
9
|
+
import type { ViewExportRequest } from '../models/ViewExportRequest';
|
|
9
10
|
import type { ViewRunRequest } from '../models/ViewRunRequest';
|
|
10
11
|
|
|
11
12
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -36,6 +37,10 @@ export class QueryResourceService {
|
|
|
36
37
|
},
|
|
37
38
|
body: requestBody,
|
|
38
39
|
mediaType: '*/*',
|
|
40
|
+
errors: {
|
|
41
|
+
400: `An error related to the user request`,
|
|
42
|
+
503: `An error related to the execution of the request`,
|
|
43
|
+
},
|
|
39
44
|
});
|
|
40
45
|
}
|
|
41
46
|
|
|
@@ -61,6 +66,40 @@ export class QueryResourceService {
|
|
|
61
66
|
},
|
|
62
67
|
body: requestBody,
|
|
63
68
|
mediaType: '*/*',
|
|
69
|
+
errors: {
|
|
70
|
+
400: `An error related to the user request`,
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Runs the requested view against the provided data source
|
|
77
|
+
* @param dataSourceId
|
|
78
|
+
* @param namespaceId
|
|
79
|
+
* @param viewId
|
|
80
|
+
* @param requestBody View to export against the provided data source
|
|
81
|
+
* @returns QueryExportResponse A DataPage of the provided query
|
|
82
|
+
* @throws ApiError
|
|
83
|
+
*/
|
|
84
|
+
public static exportView(
|
|
85
|
+
dataSourceId: UUID,
|
|
86
|
+
namespaceId: UUID,
|
|
87
|
+
viewId: UUID,
|
|
88
|
+
requestBody: ViewExportRequest,
|
|
89
|
+
): CancelablePromise<QueryExportResponse> {
|
|
90
|
+
return __request(OpenAPI, {
|
|
91
|
+
method: 'POST',
|
|
92
|
+
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/export',
|
|
93
|
+
path: {
|
|
94
|
+
'dataSourceId': dataSourceId,
|
|
95
|
+
'namespaceId': namespaceId,
|
|
96
|
+
'viewId': viewId,
|
|
97
|
+
},
|
|
98
|
+
body: requestBody,
|
|
99
|
+
mediaType: '*/*',
|
|
100
|
+
errors: {
|
|
101
|
+
400: `An error related to the user request`,
|
|
102
|
+
},
|
|
64
103
|
});
|
|
65
104
|
}
|
|
66
105
|
|
|
@@ -89,6 +128,10 @@ export class QueryResourceService {
|
|
|
89
128
|
},
|
|
90
129
|
body: requestBody,
|
|
91
130
|
mediaType: '*/*',
|
|
131
|
+
errors: {
|
|
132
|
+
400: `An error related to the user request`,
|
|
133
|
+
503: `An error related to the execution of the request`,
|
|
134
|
+
},
|
|
92
135
|
});
|
|
93
136
|
}
|
|
94
137
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
1
|
/* istanbul ignore file */
|
|
3
2
|
/* tslint:disable */
|
|
4
3
|
/* eslint-disable */
|
|
@@ -47,6 +46,28 @@ export class TenantResourceService {
|
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
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
|
+
|
|
50
71
|
/**
|
|
51
72
|
* Deletes a tenant
|
|
52
73
|
* @param id
|