@explo-tech/fido-api 0.0.36 → 0.0.38

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.
@@ -3,14 +3,15 @@
3
3
  /* eslint-disable */
4
4
 
5
5
  import type { PropertySchema } from './PropertySchema';
6
+ import type { UUID } from './UUID';
6
7
 
7
8
  export type ComputedView = {
8
9
  name: string;
9
10
  description: string | null;
10
11
  columnDefinitions: Array<PropertySchema>;
11
- readonly id: string;
12
- readonly namespaceId: string;
13
- '@type': 'computed-view';
12
+ readonly id?: UUID;
13
+ readonly namespaceId?: UUID;
14
+ '@type': string;
14
15
  query: string;
15
16
  };
16
17
 
@@ -7,8 +7,8 @@ import type { DataSourceConfiguration } from './DataSourceConfiguration';
7
7
  export type DataSource = {
8
8
  name: string;
9
9
  externalId: string;
10
- readonly id: string;
11
- readonly namespaceId: string;
10
+ readonly id?: string;
11
+ readonly namespaceId?: string;
12
12
  configuration: DataSourceConfiguration;
13
13
  };
14
14
 
@@ -2,9 +2,15 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- import type { DataSource } from './DataSource';
5
+ import type { DataSourceConfiguration } from './DataSourceConfiguration';
6
6
 
7
7
  export type DataSourceResponse = {
8
- dataSource: DataSource;
8
+ dataSource: {
9
+ name: string;
10
+ externalId: string;
11
+ readonly id: string;
12
+ readonly namespaceId: string;
13
+ configuration: DataSourceConfiguration;
14
+ };
9
15
  };
10
16
 
@@ -2,9 +2,9 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- import type { View } from './View';
5
+ import type { ViewResponse } from './ViewResponse';
6
6
 
7
7
  export type ListViewsResponse = {
8
- views: Array<View>;
8
+ views: Array<ViewResponse>;
9
9
  };
10
10
 
@@ -3,14 +3,15 @@
3
3
  /* eslint-disable */
4
4
 
5
5
  import type { PropertySchema } from './PropertySchema';
6
+ import type { UUID } from './UUID';
6
7
 
7
8
  export type TableView = {
8
9
  name: string;
9
10
  description: string | null;
10
11
  columnDefinitions: Array<PropertySchema>;
11
- readonly id: string;
12
- readonly namespaceId: string;
13
- '@type': 'table-view';
12
+ readonly id?: UUID;
13
+ readonly namespaceId?: UUID;
14
+ '@type': string;
14
15
  tableName: string;
15
16
  };
16
17
 
package/models/View.ts CHANGED
@@ -2,15 +2,13 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- import type { ComputedView } from './ComputedView';
6
5
  import type { PropertySchema } from './PropertySchema';
7
- import type { TableView } from './TableView';
8
6
 
9
- export type View = (TableView | ComputedView | {
7
+ export type View = {
10
8
  name: string;
11
9
  description: string | null;
12
10
  columnDefinitions: Array<PropertySchema>;
13
- readonly id: string;
14
- readonly namespaceId: string;
15
- });
11
+ readonly id?: string;
12
+ readonly namespaceId?: string;
13
+ };
16
14
 
@@ -2,9 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- import type { View } from './View';
5
+ import type { ComputedView } from './ComputedView';
6
+ import type { TableView } from './TableView';
6
7
 
7
8
  export type ViewRequest = {
8
- view: View;
9
+ view: (TableView | ComputedView);
9
10
  };
10
11
 
@@ -5,6 +5,9 @@
5
5
  import type { View } from './View';
6
6
 
7
7
  export type ViewResponse = {
8
- view: View;
8
+ view: (View & {
9
+ readonly id: string;
10
+ readonly namespaceId: string;
11
+ });
9
12
  };
10
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explo-tech/fido-api",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "Fido api",
5
5
  "homepage": "https://github.com/trust-kaz/fido",
6
6
  "license": "MIT",
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  import type { ListViewsRequest } from '../models/ListViewsRequest';
5
- import type { View } from '../models/View';
5
+ import type { ViewResponse } from '../models/ViewResponse';
6
6
 
7
7
  import type { CancelablePromise } from '../core/CancelablePromise';
8
8
  import { OpenAPI } from '../core/OpenAPI';
@@ -19,7 +19,7 @@ export class ListViewsResourceService {
19
19
  public static cloneViews(
20
20
  requestBody: ListViewsRequest,
21
21
  ): CancelablePromise<{
22
- views: Array<View>;
22
+ views: Array<ViewResponse>;
23
23
  }> {
24
24
  return __request(OpenAPI, {
25
25
  method: 'POST',
@@ -38,7 +38,7 @@ export class ListViewsResourceService {
38
38
  public static getViews(
39
39
  requestBody: ListViewsRequest,
40
40
  ): CancelablePromise<{
41
- views: Array<View>;
41
+ views: Array<ViewResponse>;
42
42
  }> {
43
43
  return __request(OpenAPI, {
44
44
  method: 'POST',