@explo-tech/fido-api 0.0.9 → 0.0.11
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 +1 -1
- package/models/ComputedView.ts +2 -3
- package/models/DataSource.ts +2 -3
- package/models/Namespace.ts +1 -3
- package/models/RequestTelemetry.ts +3 -5
- package/models/TableView.ts +2 -3
- package/models/UUID.ts +1 -1
- package/models/View.ts +2 -3
- package/package.json +1 -1
- package/services/BulkViewsResourceService.ts +51 -0
- package/services/ViewResourceService.ts +0 -50
- package/models/Duration.ts +0 -5
package/index.ts
CHANGED
|
@@ -25,7 +25,6 @@ export type { DatePropertyValue } from './models/DatePropertyValue';
|
|
|
25
25
|
export type { DateTimePropertyValue } from './models/DateTimePropertyValue';
|
|
26
26
|
export type { DecimalPropertyValue } from './models/DecimalPropertyValue';
|
|
27
27
|
export type { DoublePropertyValue } from './models/DoublePropertyValue';
|
|
28
|
-
export type { Duration } from './models/Duration';
|
|
29
28
|
export type { Filter } from './models/Filter';
|
|
30
29
|
export type { IntegerPropertyValue } from './models/IntegerPropertyValue';
|
|
31
30
|
export type { LocalDate } from './models/LocalDate';
|
|
@@ -64,6 +63,7 @@ export type { ViewRequest } from './models/ViewRequest';
|
|
|
64
63
|
export type { ViewResponse } from './models/ViewResponse';
|
|
65
64
|
export type { ViewRunRequest } from './models/ViewRunRequest';
|
|
66
65
|
|
|
66
|
+
export { BulkViewsResourceService } from './services/BulkViewsResourceService';
|
|
67
67
|
export { DatasourceResourceService } from './services/DatasourceResourceService';
|
|
68
68
|
export { HealthResourceService } from './services/HealthResourceService';
|
|
69
69
|
export { NamespaceResourceService } from './services/NamespaceResourceService';
|
package/models/ComputedView.ts
CHANGED
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { PropertySchema } from './PropertySchema';
|
|
6
|
-
import type { UUID } from './UUID';
|
|
7
6
|
|
|
8
7
|
export type ComputedView = {
|
|
9
8
|
name: string;
|
|
10
9
|
description: string;
|
|
11
10
|
columnDefinitions: Array<PropertySchema>;
|
|
12
|
-
id:
|
|
13
|
-
namespaceId:
|
|
11
|
+
id: string | null;
|
|
12
|
+
namespaceId: string | null;
|
|
14
13
|
query: string;
|
|
15
14
|
};
|
|
16
15
|
|
package/models/DataSource.ts
CHANGED
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { DataSourceConfiguration } from './DataSourceConfiguration';
|
|
6
|
-
import type { UUID } from './UUID';
|
|
7
6
|
|
|
8
7
|
export type DataSource = {
|
|
9
8
|
name: string;
|
|
10
9
|
externalId: string;
|
|
11
|
-
id:
|
|
12
|
-
namespaceId:
|
|
10
|
+
id: string | null;
|
|
11
|
+
namespaceId: string | null;
|
|
13
12
|
configuration: DataSourceConfiguration;
|
|
14
13
|
};
|
|
15
14
|
|
package/models/Namespace.ts
CHANGED
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
import type { Duration } from './Duration';
|
|
6
|
-
|
|
7
5
|
export type RequestTelemetry = {
|
|
8
|
-
requestTime:
|
|
9
|
-
queryTime:
|
|
10
|
-
processingTime:
|
|
6
|
+
requestTime: string | null;
|
|
7
|
+
queryTime: string | null;
|
|
8
|
+
processingTime: string | null;
|
|
11
9
|
};
|
|
12
10
|
|
package/models/TableView.ts
CHANGED
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { PropertySchema } from './PropertySchema';
|
|
6
|
-
import type { UUID } from './UUID';
|
|
7
6
|
|
|
8
7
|
export type TableView = {
|
|
9
8
|
name: string;
|
|
10
9
|
description: string;
|
|
11
10
|
columnDefinitions: Array<PropertySchema>;
|
|
12
|
-
id:
|
|
13
|
-
namespaceId:
|
|
11
|
+
id: string | null;
|
|
12
|
+
namespaceId: string | null;
|
|
14
13
|
tableName: string;
|
|
15
14
|
};
|
|
16
15
|
|
package/models/UUID.ts
CHANGED
package/models/View.ts
CHANGED
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
import type { ComputedView } from './ComputedView';
|
|
6
6
|
import type { PropertySchema } from './PropertySchema';
|
|
7
7
|
import type { TableView } from './TableView';
|
|
8
|
-
import type { UUID } from './UUID';
|
|
9
8
|
|
|
10
9
|
export type View = (TableView | ComputedView | {
|
|
11
10
|
name: string;
|
|
12
11
|
description: string;
|
|
13
12
|
columnDefinitions: Array<PropertySchema>;
|
|
14
|
-
id:
|
|
15
|
-
namespaceId:
|
|
13
|
+
id: string | null;
|
|
14
|
+
namespaceId: string | null;
|
|
16
15
|
});
|
|
17
16
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BulkViewsRequest } from '../models/BulkViewsRequest';
|
|
5
|
+
import type { View } from '../models/View';
|
|
6
|
+
|
|
7
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
9
|
+
import { request as __request } from '../core/request';
|
|
10
|
+
|
|
11
|
+
export class BulkViewsResourceService {
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Clones the request set of views
|
|
15
|
+
* @param requestBody
|
|
16
|
+
* @returns any The cloned views
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
public static cloneViews(
|
|
20
|
+
requestBody?: BulkViewsRequest,
|
|
21
|
+
): CancelablePromise<{
|
|
22
|
+
views: Array<View>;
|
|
23
|
+
}> {
|
|
24
|
+
return __request(OpenAPI, {
|
|
25
|
+
method: 'POST',
|
|
26
|
+
url: '/v1/views/clone',
|
|
27
|
+
body: requestBody,
|
|
28
|
+
mediaType: 'application/json',
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Deletes a view
|
|
34
|
+
* @param requestBody
|
|
35
|
+
* @returns any The requested views
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
public static getViews(
|
|
39
|
+
requestBody?: BulkViewsRequest,
|
|
40
|
+
): CancelablePromise<{
|
|
41
|
+
views: Array<View>;
|
|
42
|
+
}> {
|
|
43
|
+
return __request(OpenAPI, {
|
|
44
|
+
method: 'POST',
|
|
45
|
+
url: '/v1/views/get',
|
|
46
|
+
body: requestBody,
|
|
47
|
+
mediaType: 'application/json',
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/* istanbul ignore file */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import type { BulkViewsRequest } from '../models/BulkViewsRequest';
|
|
5
4
|
import type { UUID } from '../models/UUID';
|
|
6
|
-
import type { View } from '../models/View';
|
|
7
5
|
import type { ViewRequest } from '../models/ViewRequest';
|
|
8
6
|
import type { ViewResponse } from '../models/ViewResponse';
|
|
9
7
|
|
|
@@ -13,54 +11,6 @@ import { request as __request } from '../core/request';
|
|
|
13
11
|
|
|
14
12
|
export class ViewResourceService {
|
|
15
13
|
|
|
16
|
-
/**
|
|
17
|
-
* Deletes a view
|
|
18
|
-
* @param namespaceId
|
|
19
|
-
* @param requestBody
|
|
20
|
-
* @returns any The requested views
|
|
21
|
-
* @throws ApiError
|
|
22
|
-
*/
|
|
23
|
-
public static getViews(
|
|
24
|
-
namespaceId: UUID,
|
|
25
|
-
requestBody?: BulkViewsRequest,
|
|
26
|
-
): CancelablePromise<{
|
|
27
|
-
views: Array<View>;
|
|
28
|
-
}> {
|
|
29
|
-
return __request(OpenAPI, {
|
|
30
|
-
method: 'POST',
|
|
31
|
-
url: '/v1/namespaces/{namespaceId}/views/bulk-get',
|
|
32
|
-
path: {
|
|
33
|
-
'namespaceId': namespaceId,
|
|
34
|
-
},
|
|
35
|
-
body: requestBody,
|
|
36
|
-
mediaType: 'application/json',
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Clones the request set of views
|
|
42
|
-
* @param namespaceId
|
|
43
|
-
* @param requestBody
|
|
44
|
-
* @returns any The cloned views
|
|
45
|
-
* @throws ApiError
|
|
46
|
-
*/
|
|
47
|
-
public static cloneViews(
|
|
48
|
-
namespaceId: UUID,
|
|
49
|
-
requestBody?: BulkViewsRequest,
|
|
50
|
-
): CancelablePromise<{
|
|
51
|
-
views: Array<View>;
|
|
52
|
-
}> {
|
|
53
|
-
return __request(OpenAPI, {
|
|
54
|
-
method: 'POST',
|
|
55
|
-
url: '/v1/namespaces/{namespaceId}/views/clone',
|
|
56
|
-
path: {
|
|
57
|
-
'namespaceId': namespaceId,
|
|
58
|
-
},
|
|
59
|
-
body: requestBody,
|
|
60
|
-
mediaType: 'application/json',
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
|
|
64
14
|
/**
|
|
65
15
|
* Gets a view
|
|
66
16
|
* @param id
|