@huddle01/observer-client-sdk
Advanced tools
Comparing version 0.12.1-217174e.0 to 0.12.1-3246ffe.0
import { ObserverDashboardClient, ObserverDashboardClientConfig } from "./ObserverDashboardClient"; | ||
import { ConsumableJobMap } from "./protocols/ConsumableJobMap"; | ||
import { DashboardListConsumableJobsResponsePayload, GetWorkerStatesResponsePayload } from "./protocols/DashboardMessageProtocol"; | ||
import { DashboardQueryOperations, DashboardListConsumableJobsResponsePayload, GetRegistryLedgersResponsePayload, GetWorkerStatesResponsePayload } from "./protocols/DashboardMessageProtocol"; | ||
export declare class ObserverDashboardAdminClient extends ObserverDashboardClient { | ||
@@ -8,2 +8,3 @@ constructor(config: ObserverDashboardClientConfig); | ||
getServerState(): Promise<GetWorkerStatesResponsePayload>; | ||
getRegistryLedgers(parameters: DashboardQueryOperations['getRegistryLedgers']): Promise<GetRegistryLedgersResponsePayload>; | ||
startJob<J extends keyof ConsumableJobMap>(type: J, parameters: ConsumableJobMap[J]['input']): Promise<{ | ||
@@ -10,0 +11,0 @@ jobId?: string; |
@@ -27,2 +27,10 @@ "use strict"; | ||
} | ||
async getRegistryLedgers(parameters) { | ||
return this.connection.request({ | ||
request: new DashboardMessageProtocol_1.DashboardQueryRequest((0, uuid_1.v4)(), { | ||
method: 'getRegistryLedgers', | ||
parameters, | ||
}) | ||
}); | ||
} | ||
async startJob(type, parameters) { | ||
@@ -29,0 +37,0 @@ return this.connection.request({ |
@@ -123,2 +123,11 @@ import { CallSnapshot } from "./CallSnapshotSchema"; | ||
}; | ||
export type GetRegistryLedgersResponsePayload = { | ||
results: { | ||
nodeId: string; | ||
dstRegion: string; | ||
totalDownloadSpeed: number; | ||
totalUploadSpeed: number; | ||
recordCount: number; | ||
}[]; | ||
}; | ||
export type DashboardClientConnectionContext = { | ||
@@ -186,2 +195,8 @@ role: 'admin' | 'customer'; | ||
getServerStates: undefined; | ||
getRegistryLedgers: { | ||
momoId: string; | ||
dstRegion: string; | ||
startTimestamp: number; | ||
endTimestamp?: number; | ||
}; | ||
}; | ||
@@ -188,0 +203,0 @@ export declare class DashboardQueryRequest { |
{ | ||
"name": "@huddle01/observer-client-sdk", | ||
"version": "0.12.1-217174e.0", | ||
"version": "0.12.1-3246ffe.0", | ||
"description": "ObserverDashboardClient SDK", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
185720
3837