@explo-tech/fido-api 3.0.6 → 3.1.0-dan-parse-query-endpoint.1

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
@@ -117,6 +117,7 @@ export type { Or } from './models/Or';
117
117
  export type { Or1 } from './models/Or1';
118
118
  export type { PagingConfiguration } from './models/PagingConfiguration';
119
119
  export type { Parameter } from './models/Parameter';
120
+ export type { ParseQueryRequest } from './models/ParseQueryRequest';
120
121
  export type { PasswordAuthentication } from './models/PasswordAuthentication';
121
122
  export type { Postgres } from './models/Postgres';
122
123
  export type { Property } from './models/Property';
@@ -180,10 +181,10 @@ export { BranchContentResourceService } from './services/BranchContentResourceSe
180
181
  export { BranchResourceService } from './services/BranchResourceService';
181
182
  export { CommitResourceService } from './services/CommitResourceService';
182
183
  export { DataSourceResourceService } from './services/DataSourceResourceService';
184
+ export { DataSourceUtilityActionsService } from './services/DataSourceUtilityActionsService';
183
185
  export { HealthResourceService } from './services/HealthResourceService';
184
186
  export { ListViewsResourceService } from './services/ListViewsResourceService';
185
187
  export { NamespaceResourceService } from './services/NamespaceResourceService';
186
188
  export { QueryResourceService } from './services/QueryResourceService';
187
189
  export { TenantResourceService } from './services/TenantResourceService';
188
- export { TestConnectionResourceService } from './services/TestConnectionResourceService';
189
190
  export { ViewResourceService } from './services/ViewResourceService';
@@ -0,0 +1,8 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type ParseQueryRequest = {
6
+ query: string;
7
+ };
8
+
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@explo-tech/fido-api",
3
3
  "description": "Fido api",
4
4
  "homepage": "https://github.com/trust-kaz/fido",
5
- "version": "3.0.6",
5
+ "version": "3.1.0-dan-parse-query-endpoint.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/trust-kaz/fido"
@@ -8,7 +8,7 @@ import type { CancelablePromise } from '../core/CancelablePromise';
8
8
  import { OpenAPI } from '../core/OpenAPI';
9
9
  import { request as __request } from '../core/request';
10
10
 
11
- export class TestConnectionResourceService {
11
+ export class DataSourceUtilityActionsService {
12
12
 
13
13
  /**
14
14
  * Get the number of tables in a provided data source
@@ -3,6 +3,8 @@
3
3
  /* eslint-disable */
4
4
  import type { ListVersionedViewsRequest } from '../models/ListVersionedViewsRequest';
5
5
  import type { ListViewsRequest } from '../models/ListViewsRequest';
6
+ import type { Parameter } from '../models/Parameter';
7
+ import type { ParseQueryRequest } from '../models/ParseQueryRequest';
6
8
  import type { ViewResponse } from '../models/ViewResponse';
7
9
 
8
10
  import type { CancelablePromise } from '../core/CancelablePromise';
@@ -70,4 +72,23 @@ export class ListViewsResourceService {
70
72
  });
71
73
  }
72
74
 
75
+ /**
76
+ * Validate source query and get referenced parameters in query body
77
+ * @param requestBody Query to parse
78
+ * @returns any Query validation result and discovered parameters
79
+ * @throws ApiError
80
+ */
81
+ public static parseQuery(
82
+ requestBody: ParseQueryRequest,
83
+ ): CancelablePromise<{
84
+ parameters: Array<Parameter>;
85
+ }> {
86
+ return __request(OpenAPI, {
87
+ method: 'POST',
88
+ url: '/v1/views/parse-query',
89
+ body: requestBody,
90
+ mediaType: 'application/json',
91
+ });
92
+ }
93
+
73
94
  }