@explo-tech/fido-api 1.3.0-dan-fix-error-handling.1 → 1.3.0-dan-remove-localstack-dep.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.
@@ -9,6 +9,6 @@ import type { RequestTelemetry } from './RequestTelemetry';
9
9
  export type DataSourceError = (QueryExecutionError | QueryTimeoutError | {
10
10
  renderedQuery: string | null;
11
11
  requestTelemetry: RequestTelemetry | null;
12
- message: string;
12
+ message: string | null;
13
13
  });
14
14
 
@@ -7,7 +7,7 @@ import type { RequestTelemetry } from './RequestTelemetry';
7
7
  export type QueryExecutionError = {
8
8
  renderedQuery: string | null;
9
9
  requestTelemetry: RequestTelemetry | null;
10
- message: string;
10
+ message: string | null;
11
11
  '@type': 'execution-error';
12
12
  };
13
13
 
@@ -7,7 +7,7 @@ import type { RequestTelemetry } from './RequestTelemetry';
7
7
  export type QueryTimeoutError = {
8
8
  renderedQuery: string | null;
9
9
  requestTelemetry: RequestTelemetry | null;
10
- message: string;
11
- '@type': 'timeout';
10
+ message: string | null;
11
+ '@type': 'timeout-error';
12
12
  };
13
13
 
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": "1.3.0-dan-fix-error-handling.1",
5
+ "version": "1.3.0-dan-remove-localstack-dep.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/trust-kaz/fido"
@@ -2,6 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  import type { QueryExecutionResponse } from '../models/QueryExecutionResponse';
5
+ import type { QueryExportResponse } from '../models/QueryExportResponse';
5
6
  import type { QueryPreviewRequest } from '../models/QueryPreviewRequest';
6
7
  import type { TablePreviewRequest } from '../models/TablePreviewRequest';
7
8
  import type { UUID } from '../models/UUID';
@@ -38,6 +39,7 @@ export class QueryResourceService {
38
39
  mediaType: '*/*',
39
40
  errors: {
40
41
  400: `An error related to the user request`,
42
+ 503: `An error related to the execution of the request`,
41
43
  },
42
44
  });
43
45
  }
@@ -76,7 +78,7 @@ export class QueryResourceService {
76
78
  * @param namespaceId
77
79
  * @param viewId
78
80
  * @param requestBody View to export against the provided data source
79
- * @returns QueryExecutionResponse A DataPage of the provided query
81
+ * @returns QueryExportResponse A DataPage of the provided query
80
82
  * @throws ApiError
81
83
  */
82
84
  public static exportView(
@@ -84,7 +86,7 @@ export class QueryResourceService {
84
86
  namespaceId: UUID,
85
87
  viewId: UUID,
86
88
  requestBody: ViewExportRequest,
87
- ): CancelablePromise<QueryExecutionResponse> {
89
+ ): CancelablePromise<QueryExportResponse> {
88
90
  return __request(OpenAPI, {
89
91
  method: 'POST',
90
92
  url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/export',