@narrative.io/data-collaboration-sdk-ts 2.97.0 → 2.98.0
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.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { ApiRecords } from "src/types";
|
|
2
2
|
import { BaseApi } from "../base-api";
|
|
3
|
-
import type { DataPlane } from "./types";
|
|
3
|
+
import type { DataPlane, HealthCheckJobResponse } from "./types";
|
|
4
4
|
export declare class DataPlaneApi extends BaseApi {
|
|
5
5
|
getDataPlanes(): Promise<ApiRecords<DataPlane>>;
|
|
6
6
|
getDataPlane(dataPlaneId: string): Promise<DataPlane>;
|
|
7
7
|
setDefaultComputePool(dataPlaneId: string, computePoolId: string): Promise<DataPlane>;
|
|
8
8
|
clearDefaultComputePool(dataPlaneId: string): Promise<void>;
|
|
9
|
+
runHealthCheck(dataPlaneId: string, computePoolId?: string): Promise<HealthCheckJobResponse>;
|
|
9
10
|
}
|
|
@@ -13,4 +13,8 @@ export class DataPlaneApi extends BaseApi {
|
|
|
13
13
|
async clearDefaultComputePool(dataPlaneId) {
|
|
14
14
|
await this.delete(`${resourceName}/${dataPlaneId}/default-compute-pool`);
|
|
15
15
|
}
|
|
16
|
+
async runHealthCheck(dataPlaneId, computePoolId) {
|
|
17
|
+
const body = computePoolId != null ? { compute_pool_id: computePoolId } : {};
|
|
18
|
+
return await this.post(`${resourceName}/${dataPlaneId}/health-check`, body);
|
|
19
|
+
}
|
|
16
20
|
}
|
|
@@ -34,3 +34,9 @@ export interface DataPlane {
|
|
|
34
34
|
compute_pools?: ComputePoolResponse[];
|
|
35
35
|
collaborators?: DataPlaneCollaborators;
|
|
36
36
|
}
|
|
37
|
+
export interface HealthCheckRequest {
|
|
38
|
+
compute_pool_id?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface HealthCheckJobResponse {
|
|
41
|
+
job_id: string;
|
|
42
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narrative.io/data-collaboration-sdk-ts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.98.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"repository": "github:narrative-io/data-collaboration-sdk-ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"@babel/core": "7.29.0",
|
|
29
29
|
"@babel/preset-env": "7.29.2",
|
|
30
30
|
"@babel/preset-typescript": "7.28.5",
|
|
31
|
-
"@biomejs/biome": "2.4.
|
|
31
|
+
"@biomejs/biome": "2.4.10",
|
|
32
32
|
"@commitlint/cli": "20.5.0",
|
|
33
33
|
"@commitlint/config-conventional": "20.5.0",
|
|
34
34
|
"@types/jest": "30.0.0",
|
|
35
35
|
"babel-jest": "30.3.0",
|
|
36
36
|
"jest": "30.3.0",
|
|
37
|
-
"lefthook": "2.1.
|
|
38
|
-
"ts-jest": "29.4.
|
|
37
|
+
"lefthook": "2.1.5",
|
|
38
|
+
"ts-jest": "29.4.9"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"mande": "2.0.9",
|