@explo-tech/fido-api 0.0.22 → 0.0.23

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 CHANGED
@@ -71,6 +71,7 @@ export type { StringPropertyValue } from './models/StringPropertyValue';
71
71
  export type { TablePreviewRequest } from './models/TablePreviewRequest';
72
72
  export type { TableView } from './models/TableView';
73
73
  export type { TenantPrivateKeyAuthentication } from './models/TenantPrivateKeyAuthentication';
74
+ export type { TestConnectionRequest } from './models/TestConnectionRequest';
74
75
  export type { TestConnectionResponse } from './models/TestConnectionResponse';
75
76
  export type { Tunnel } from './models/Tunnel';
76
77
  export type { UUID } from './models/UUID';
@@ -82,9 +83,9 @@ export type { ViewResponse } from './models/ViewResponse';
82
83
  export type { ViewRunRequest } from './models/ViewRunRequest';
83
84
 
84
85
  export { DataSourceResourceService } from './services/DataSourceResourceService';
85
- export { DefaultService } from './services/DefaultService';
86
86
  export { HealthResourceService } from './services/HealthResourceService';
87
87
  export { ListViewsResourceService } from './services/ListViewsResourceService';
88
88
  export { NamespaceResourceService } from './services/NamespaceResourceService';
89
89
  export { QueryResourceService } from './services/QueryResourceService';
90
+ export { TestConnectionResourceService } from './services/TestConnectionResourceService';
90
91
  export { ViewResourceService } from './services/ViewResourceService';
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { DataSourceConfiguration } from './DataSourceConfiguration';
6
+
7
+ export type TestConnectionRequest = {
8
+ configuration: DataSourceConfiguration;
9
+ };
10
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explo-tech/fido-api",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "Fido api",
5
5
  "homepage": "https://github.com/trust-kaz/fido",
6
6
  "license": "MIT",
@@ -1,23 +1,30 @@
1
1
  /* istanbul ignore file */
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
+ import type { TestConnectionRequest } from '../models/TestConnectionRequest';
5
+
4
6
  import type { CancelablePromise } from '../core/CancelablePromise';
5
7
  import { OpenAPI } from '../core/OpenAPI';
6
8
  import { request as __request } from '../core/request';
7
9
 
8
- export class DefaultService {
10
+ export class TestConnectionResourceService {
9
11
 
10
12
  /**
11
13
  * Get the number of tables in a provided data source
14
+ * @param requestBody Data Source configuration to try to connect to
12
15
  * @returns any Number of tables in a provided data source
13
16
  * @throws ApiError
14
17
  */
15
- public static testConnection(): CancelablePromise<{
18
+ public static testConnection(
19
+ requestBody: TestConnectionRequest,
20
+ ): CancelablePromise<{
16
21
  numberOfTables: number;
17
22
  }> {
18
23
  return __request(OpenAPI, {
19
24
  method: 'POST',
20
25
  url: '/v1/data-sources/test-connection',
26
+ body: requestBody,
27
+ mediaType: '*/*',
21
28
  });
22
29
  }
23
30