@shapediver/sdk.geometry-api-sdk-v2
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -1,2 +0,2 @@ | ||
import { ShapeDiverRequestConfigure, ShapeDiverRequestCustomization, ShapeDiverRequestModel, ShapeDiverRequestParameterDefinition, ShapeDiverResponseDto } from "@shapediver/api.geometry-api-dto-v2"; | ||
import { ShapeDiverRequestConfigure, ShapeDiverRequestCustomization, ShapeDiverRequestModel, ShapeDiverRequestModelComputationQueryOrder, ShapeDiverRequestModelComputationQueryStatus, ShapeDiverRequestModelComputationQueryType, ShapeDiverRequestParameterDefinition, ShapeDiverResponseDto } from "@shapediver/api.geometry-api-dto-v2"; | ||
import { BaseResourceApi, ShapeDiverSdkApi } from "@shapediver/sdk.geometry-api-sdk-core"; | ||
@@ -70,3 +70,17 @@ export declare class ShapeDiverModelApi extends BaseResourceApi { | ||
updateParameterDefinitions(modelId: string, body: ShapeDiverRequestParameterDefinition): Promise<ShapeDiverResponseDto>; | ||
/** | ||
* Query model computation statistics. | ||
* | ||
* @param modelId | ||
* @param timestampFrom - Timestamp to query from | ||
* @param timestampTo - Timestamp to query to. | ||
* @param limit - How many items to return at most. | ||
* @param strictLimit - Whether the limit shall be attained (if there are enough items). | ||
* @param order - Order in which to query computation stats items. | ||
* @param status - Filter computations by the result status. | ||
* @param type - Filter computations by type. | ||
* @param offset - Continuation token for pagination. | ||
*/ | ||
queryComputations(modelId: string, timestampFrom?: string, timestampTo?: string, limit?: number, strictLimit?: boolean, order?: ShapeDiverRequestModelComputationQueryOrder, status?: ShapeDiverRequestModelComputationQueryStatus, type?: ShapeDiverRequestModelComputationQueryType, offset?: string): Promise<ShapeDiverResponseDto>; | ||
} | ||
//# sourceMappingURL=ShapeDiverModelApi.d.ts.map |
@@ -123,4 +123,40 @@ "use strict"; | ||
} | ||
/** | ||
* Query model computation statistics. | ||
* | ||
* @param modelId | ||
* @param timestampFrom - Timestamp to query from | ||
* @param timestampTo - Timestamp to query to. | ||
* @param limit - How many items to return at most. | ||
* @param strictLimit - Whether the limit shall be attained (if there are enough items). | ||
* @param order - Order in which to query computation stats items. | ||
* @param status - Filter computations by the result status. | ||
* @param type - Filter computations by type. | ||
* @param offset - Continuation token for pagination. | ||
*/ | ||
queryComputations(modelId, timestampFrom, timestampTo, limit, strictLimit, order, status, type, offset) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// Build queries | ||
const queries = []; | ||
if (timestampFrom !== undefined) | ||
queries.push("timestamp_from=" + timestampFrom); | ||
if (timestampTo !== undefined) | ||
queries.push("timestamp_to=" + timestampTo); | ||
if (limit !== undefined) | ||
queries.push("limit=" + limit); | ||
if (strictLimit !== undefined) | ||
queries.push("strict_limit=" + strictLimit); | ||
if (order !== undefined) | ||
queries.push("order=" + order); | ||
if (status !== undefined) | ||
queries.push("status=" + status); | ||
if (type !== undefined) | ||
queries.push("type=" + type); | ||
if (offset !== undefined) | ||
queries.push("offset=" + offset); | ||
return yield this.api.get(this.buildModelUri(modelId) + "/computations?" + queries.join("&")); | ||
}); | ||
} | ||
} | ||
exports.ShapeDiverModelApi = ShapeDiverModelApi; | ||
//# sourceMappingURL=ShapeDiverModelApi.js.map |
{ | ||
"name": "@shapediver/sdk.geometry-api-sdk-v2", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "SDK to communicate with the Geometry View API version 2", | ||
@@ -47,13 +47,13 @@ "keywords": [ | ||
"devDependencies": { | ||
"jest": "^27.2.4", | ||
"jest": "^27.3.1", | ||
"lerna": "^3.22.1", | ||
"typescript": "^4.4.3", | ||
"webpack": "^5.55.1", | ||
"webpack-cli": "^4.8.0", | ||
"webpack-dev-server": "^4.3.0" | ||
"typescript": "^4.4.4", | ||
"webpack": "^5.63.0", | ||
"webpack-cli": "^4.9.1", | ||
"webpack-dev-server": "^4.4.0" | ||
}, | ||
"dependencies": { | ||
"@shapediver/sdk.geometry-api-sdk-core": "^1.0.3", | ||
"@shapediver/api.geometry-api-dto-v2": "^1.0.20" | ||
"@shapediver/api.geometry-api-dto-v2": "^1.0.21" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
88724
1372