@cosmotech/aip-client 0.3.0-dev1 → 0.3.0-dev3
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/README.md +6 -40
- package/api/budget-api.ts +1 -1
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +90 -1
- package/api/investment-api.ts +68 -1193
- package/api/metric-api.ts +1 -1
- package/api/metric-costs-api.ts +1 -1
- package/api/metric-costs-per-year-api.ts +1 -1
- package/api/objective-api.ts +1 -509
- package/api/objective-weight-api.ts +1 -1
- package/api/objective-weights-api.ts +1 -1
- package/api/option-api.ts +1 -454
- package/api/preferred-option-api.ts +1 -1
- package/api/value-framework-api.ts +61 -1189
- package/api/value-framework-costs-api.ts +1 -1
- package/api/value-framework-weights-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/budget-api.d.ts +1 -1
- package/dist/api/budget-api.js +1 -1
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/impact-api.d.ts +42 -1
- package/dist/api/impact-api.js +85 -1
- package/dist/api/investment-api.d.ts +18 -535
- package/dist/api/investment-api.js +79 -1142
- package/dist/api/metric-api.d.ts +1 -1
- package/dist/api/metric-api.js +1 -1
- package/dist/api/metric-costs-api.d.ts +1 -1
- package/dist/api/metric-costs-api.js +1 -1
- package/dist/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/api/metric-costs-per-year-api.js +1 -1
- package/dist/api/objective-api.d.ts +1 -233
- package/dist/api/objective-api.js +1 -479
- package/dist/api/objective-weight-api.d.ts +1 -1
- package/dist/api/objective-weight-api.js +1 -1
- package/dist/api/objective-weights-api.d.ts +1 -1
- package/dist/api/objective-weights-api.js +1 -1
- package/dist/api/option-api.d.ts +1 -212
- package/dist/api/option-api.js +1 -431
- package/dist/api/preferred-option-api.d.ts +1 -1
- package/dist/api/preferred-option-api.js +1 -1
- package/dist/api/value-framework-api.d.ts +1 -519
- package/dist/api/value-framework-api.js +61 -1128
- package/dist/api/value-framework-costs-api.d.ts +1 -1
- package/dist/api/value-framework-costs-api.js +1 -1
- package/dist/api/value-framework-weights-api.d.ts +1 -1
- package/dist/api/value-framework-weights-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api/budget-api.d.ts +1 -1
- package/dist/esm/api/budget-api.js +1 -1
- package/dist/esm/api/default-api.d.ts +1 -1
- package/dist/esm/api/default-api.js +1 -1
- package/dist/esm/api/impact-api.d.ts +42 -1
- package/dist/esm/api/impact-api.js +85 -1
- package/dist/esm/api/investment-api.d.ts +18 -535
- package/dist/esm/api/investment-api.js +78 -1141
- package/dist/esm/api/metric-api.d.ts +1 -1
- package/dist/esm/api/metric-api.js +1 -1
- package/dist/esm/api/metric-costs-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-api.js +1 -1
- package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-per-year-api.js +1 -1
- package/dist/esm/api/objective-api.d.ts +1 -233
- package/dist/esm/api/objective-api.js +1 -479
- package/dist/esm/api/objective-weight-api.d.ts +1 -1
- package/dist/esm/api/objective-weight-api.js +1 -1
- package/dist/esm/api/objective-weights-api.d.ts +1 -1
- package/dist/esm/api/objective-weights-api.js +1 -1
- package/dist/esm/api/option-api.d.ts +1 -212
- package/dist/esm/api/option-api.js +1 -431
- package/dist/esm/api/preferred-option-api.d.ts +1 -1
- package/dist/esm/api/preferred-option-api.js +1 -1
- package/dist/esm/api/value-framework-api.d.ts +1 -519
- package/dist/esm/api/value-framework-api.js +61 -1128
- package/dist/esm/api/value-framework-costs-api.d.ts +1 -1
- package/dist/esm/api/value-framework-costs-api.js +1 -1
- package/dist/esm/api/value-framework-weights-api.d.ts +1 -1
- package/dist/esm/api/value-framework-weights-api.js +1 -1
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/budget-bulk-delete-request.d.ts +1 -1
- package/dist/esm/models/budget-bulk-delete-request.js +1 -1
- package/dist/esm/models/budget-create.d.ts +1 -1
- package/dist/esm/models/budget-create.js +1 -1
- package/dist/esm/models/budget-investment-response.d.ts +1 -1
- package/dist/esm/models/budget-investment-response.js +1 -1
- package/dist/esm/models/budget-link-options-request.d.ts +1 -1
- package/dist/esm/models/budget-link-options-request.js +1 -1
- package/dist/esm/models/budget-option-response.d.ts +1 -1
- package/dist/esm/models/budget-option-response.js +1 -1
- package/dist/esm/models/budget-overview-response.d.ts +1 -1
- package/dist/esm/models/budget-overview-response.js +1 -1
- package/dist/esm/models/budget-response.d.ts +1 -1
- package/dist/esm/models/budget-response.js +1 -1
- package/dist/esm/models/budget-update.d.ts +1 -1
- package/dist/esm/models/budget-update.js +1 -1
- package/dist/esm/models/bulk-delete-request.d.ts +20 -0
- package/dist/esm/models/bulk-delete-request.js +14 -0
- package/dist/esm/models/evolution-type.d.ts +1 -1
- package/dist/esm/models/evolution-type.js +1 -1
- package/dist/esm/models/httpvalidation-error.d.ts +1 -1
- package/dist/esm/models/httpvalidation-error.js +1 -1
- package/dist/esm/models/impact-apiresponse.d.ts +1 -1
- package/dist/esm/models/impact-apiresponse.js +1 -1
- package/dist/esm/models/impact-bulk-item.d.ts +37 -0
- package/dist/esm/models/impact-bulk-item.js +14 -0
- package/dist/esm/models/impact-create.d.ts +1 -1
- package/dist/esm/models/impact-create.js +1 -1
- package/dist/esm/models/impact-update.d.ts +1 -1
- package/dist/esm/models/impact-update.js +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/investment-create.d.ts +1 -1
- package/dist/esm/models/investment-create.js +1 -1
- package/dist/esm/models/investment-overview-response.d.ts +1 -1
- package/dist/esm/models/investment-overview-response.js +1 -1
- package/dist/esm/models/investment-response.d.ts +1 -1
- package/dist/esm/models/investment-response.js +1 -1
- package/dist/esm/models/investment-update.d.ts +1 -1
- package/dist/esm/models/investment-update.js +1 -1
- package/dist/esm/models/location-inner.d.ts +1 -1
- package/dist/esm/models/location-inner.js +1 -1
- package/dist/esm/models/measurement-type.d.ts +1 -1
- package/dist/esm/models/measurement-type.js +1 -1
- package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-create.js +1 -1
- package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-response.js +1 -1
- package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-update.js +1 -1
- package/dist/esm/models/metric-create.d.ts +1 -1
- package/dist/esm/models/metric-create.js +1 -1
- package/dist/esm/models/metric-response.d.ts +1 -1
- package/dist/esm/models/metric-response.js +1 -1
- package/dist/esm/models/metric-type.d.ts +1 -1
- package/dist/esm/models/metric-type.js +1 -1
- package/dist/esm/models/metric-update.d.ts +1 -1
- package/dist/esm/models/metric-update.js +1 -1
- package/dist/esm/models/objective-create.d.ts +1 -1
- package/dist/esm/models/objective-create.js +1 -1
- package/dist/esm/models/objective-response.d.ts +1 -1
- package/dist/esm/models/objective-response.js +1 -1
- package/dist/esm/models/objective-update.d.ts +1 -1
- package/dist/esm/models/objective-update.js +1 -1
- package/dist/esm/models/objective-weight-create.d.ts +1 -1
- package/dist/esm/models/objective-weight-create.js +1 -1
- package/dist/esm/models/objective-weight-response.d.ts +1 -1
- package/dist/esm/models/objective-weight-response.js +1 -1
- package/dist/esm/models/objective-weight-update.d.ts +1 -1
- package/dist/esm/models/objective-weight-update.js +1 -1
- package/dist/esm/models/option-chart-kpi.d.ts +1 -1
- package/dist/esm/models/option-chart-kpi.js +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
- package/dist/esm/models/option-create.d.ts +1 -1
- package/dist/esm/models/option-create.js +1 -1
- package/dist/esm/models/option-overview-response.d.ts +1 -1
- package/dist/esm/models/option-overview-response.js +1 -1
- package/dist/esm/models/option-response.d.ts +1 -1
- package/dist/esm/models/option-response.js +1 -1
- package/dist/esm/models/option-update.d.ts +1 -1
- package/dist/esm/models/option-update.js +1 -1
- package/dist/esm/models/preferred-option-request.d.ts +1 -1
- package/dist/esm/models/preferred-option-request.js +1 -1
- package/dist/esm/models/preferred-option-response.d.ts +1 -1
- package/dist/esm/models/preferred-option-response.js +1 -1
- package/dist/esm/models/validation-error.d.ts +1 -1
- package/dist/esm/models/validation-error.js +1 -1
- package/dist/esm/models/value-framework-create.d.ts +1 -1
- package/dist/esm/models/value-framework-create.js +1 -1
- package/dist/esm/models/value-framework-response.d.ts +1 -1
- package/dist/esm/models/value-framework-response.js +1 -1
- package/dist/esm/models/value-framework-update.d.ts +1 -1
- package/dist/esm/models/value-framework-update.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/budget-bulk-delete-request.d.ts +1 -1
- package/dist/models/budget-bulk-delete-request.js +1 -1
- package/dist/models/budget-create.d.ts +1 -1
- package/dist/models/budget-create.js +1 -1
- package/dist/models/budget-investment-response.d.ts +1 -1
- package/dist/models/budget-investment-response.js +1 -1
- package/dist/models/budget-link-options-request.d.ts +1 -1
- package/dist/models/budget-link-options-request.js +1 -1
- package/dist/models/budget-option-response.d.ts +1 -1
- package/dist/models/budget-option-response.js +1 -1
- package/dist/models/budget-overview-response.d.ts +1 -1
- package/dist/models/budget-overview-response.js +1 -1
- package/dist/models/budget-response.d.ts +1 -1
- package/dist/models/budget-response.js +1 -1
- package/dist/models/budget-update.d.ts +1 -1
- package/dist/models/budget-update.js +1 -1
- package/dist/models/bulk-delete-request.d.ts +20 -0
- package/dist/models/bulk-delete-request.js +15 -0
- package/dist/models/evolution-type.d.ts +1 -1
- package/dist/models/evolution-type.js +1 -1
- package/dist/models/httpvalidation-error.d.ts +1 -1
- package/dist/models/httpvalidation-error.js +1 -1
- package/dist/models/impact-apiresponse.d.ts +1 -1
- package/dist/models/impact-apiresponse.js +1 -1
- package/dist/models/impact-bulk-item.d.ts +37 -0
- package/dist/models/impact-bulk-item.js +15 -0
- package/dist/models/impact-create.d.ts +1 -1
- package/dist/models/impact-create.js +1 -1
- package/dist/models/impact-update.d.ts +1 -1
- package/dist/models/impact-update.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/investment-create.d.ts +1 -1
- package/dist/models/investment-create.js +1 -1
- package/dist/models/investment-overview-response.d.ts +1 -1
- package/dist/models/investment-overview-response.js +1 -1
- package/dist/models/investment-response.d.ts +1 -1
- package/dist/models/investment-response.js +1 -1
- package/dist/models/investment-update.d.ts +1 -1
- package/dist/models/investment-update.js +1 -1
- package/dist/models/location-inner.d.ts +1 -1
- package/dist/models/location-inner.js +1 -1
- package/dist/models/measurement-type.d.ts +1 -1
- package/dist/models/measurement-type.js +1 -1
- package/dist/models/metric-costs-per-year-create.d.ts +1 -1
- package/dist/models/metric-costs-per-year-create.js +1 -1
- package/dist/models/metric-costs-per-year-response.d.ts +1 -1
- package/dist/models/metric-costs-per-year-response.js +1 -1
- package/dist/models/metric-costs-per-year-update.d.ts +1 -1
- package/dist/models/metric-costs-per-year-update.js +1 -1
- package/dist/models/metric-create.d.ts +1 -1
- package/dist/models/metric-create.js +1 -1
- package/dist/models/metric-response.d.ts +1 -1
- package/dist/models/metric-response.js +1 -1
- package/dist/models/metric-type.d.ts +1 -1
- package/dist/models/metric-type.js +1 -1
- package/dist/models/metric-update.d.ts +1 -1
- package/dist/models/metric-update.js +1 -1
- package/dist/models/objective-create.d.ts +1 -1
- package/dist/models/objective-create.js +1 -1
- package/dist/models/objective-response.d.ts +1 -1
- package/dist/models/objective-response.js +1 -1
- package/dist/models/objective-update.d.ts +1 -1
- package/dist/models/objective-update.js +1 -1
- package/dist/models/objective-weight-create.d.ts +1 -1
- package/dist/models/objective-weight-create.js +1 -1
- package/dist/models/objective-weight-response.d.ts +1 -1
- package/dist/models/objective-weight-response.js +1 -1
- package/dist/models/objective-weight-update.d.ts +1 -1
- package/dist/models/objective-weight-update.js +1 -1
- package/dist/models/option-chart-kpi.d.ts +1 -1
- package/dist/models/option-chart-kpi.js +1 -1
- package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/models/option-chart-kpis-yearly.js +1 -1
- package/dist/models/option-create.d.ts +1 -1
- package/dist/models/option-create.js +1 -1
- package/dist/models/option-overview-response.d.ts +1 -1
- package/dist/models/option-overview-response.js +1 -1
- package/dist/models/option-response.d.ts +1 -1
- package/dist/models/option-response.js +1 -1
- package/dist/models/option-update.d.ts +1 -1
- package/dist/models/option-update.js +1 -1
- package/dist/models/preferred-option-request.d.ts +1 -1
- package/dist/models/preferred-option-request.js +1 -1
- package/dist/models/preferred-option-response.d.ts +1 -1
- package/dist/models/preferred-option-response.js +1 -1
- package/dist/models/validation-error.d.ts +1 -1
- package/dist/models/validation-error.js +1 -1
- package/dist/models/value-framework-create.d.ts +1 -1
- package/dist/models/value-framework-create.js +1 -1
- package/dist/models/value-framework-response.d.ts +1 -1
- package/dist/models/value-framework-response.js +1 -1
- package/dist/models/value-framework-update.d.ts +1 -1
- package/dist/models/value-framework-update.js +1 -1
- package/docs/BulkDeleteRequest.md +21 -0
- package/docs/ImpactApi.md +60 -0
- package/docs/ImpactBulkItem.md +29 -0
- package/docs/InvestmentApi.md +43 -811
- package/docs/ObjectiveApi.md +0 -351
- package/docs/OptionApi.md +0 -305
- package/docs/ValueFrameworkApi.md +7 -778
- package/index.ts +1 -1
- package/models/budget-bulk-delete-request.ts +1 -1
- package/models/budget-create.ts +1 -1
- package/models/budget-investment-response.ts +1 -1
- package/models/budget-link-options-request.ts +1 -1
- package/models/budget-option-response.ts +1 -1
- package/models/budget-overview-response.ts +1 -1
- package/models/budget-response.ts +1 -1
- package/models/budget-update.ts +1 -1
- package/models/bulk-delete-request.ts +26 -0
- package/models/evolution-type.ts +1 -1
- package/models/httpvalidation-error.ts +1 -1
- package/models/impact-apiresponse.ts +1 -1
- package/models/impact-bulk-item.ts +47 -0
- package/models/impact-create.ts +1 -1
- package/models/impact-update.ts +1 -1
- package/models/index.ts +2 -0
- package/models/investment-create.ts +1 -1
- package/models/investment-overview-response.ts +1 -1
- package/models/investment-response.ts +1 -1
- package/models/investment-update.ts +1 -1
- package/models/location-inner.ts +1 -1
- package/models/measurement-type.ts +1 -1
- package/models/metric-costs-per-year-create.ts +1 -1
- package/models/metric-costs-per-year-response.ts +1 -1
- package/models/metric-costs-per-year-update.ts +1 -1
- package/models/metric-create.ts +1 -1
- package/models/metric-response.ts +1 -1
- package/models/metric-type.ts +1 -1
- package/models/metric-update.ts +1 -1
- package/models/objective-create.ts +1 -1
- package/models/objective-response.ts +1 -1
- package/models/objective-update.ts +1 -1
- package/models/objective-weight-create.ts +1 -1
- package/models/objective-weight-response.ts +1 -1
- package/models/objective-weight-update.ts +1 -1
- package/models/option-chart-kpi.ts +1 -1
- package/models/option-chart-kpis-yearly.ts +1 -1
- package/models/option-create.ts +1 -1
- package/models/option-overview-response.ts +1 -1
- package/models/option-response.ts +1 -1
- package/models/option-update.ts +1 -1
- package/models/preferred-option-request.ts +1 -1
- package/models/preferred-option-response.ts +1 -1
- package/models/validation-error.ts +1 -1
- package/models/value-framework-create.ts +1 -1
- package/models/value-framework-response.ts +1 -1
- package/models/value-framework-update.ts +1 -1
- package/package.json +1 -1
package/docs/ObjectiveApi.md
CHANGED
|
@@ -4,131 +4,12 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**createMetricForObjective**](#createmetricforobjective) | **POST** /objective/{objective_id}/metric/ | Create a metric for this objective|
|
|
8
|
-
|[**deleteMetricForObjective**](#deletemetricforobjective) | **DELETE** /objective/{objective_id}/metric/{metric_id} | Delete a metric for this objective|
|
|
9
7
|
|[**deleteObjective**](#deleteobjective) | **DELETE** /objective/{objective_id} | Delete an objective|
|
|
10
|
-
|[**getMetricForObjective**](#getmetricforobjective) | **GET** /objective/{objective_id}/metric/{metric_id} | Get a metric for this objective|
|
|
11
|
-
|[**getMetricsForObjective**](#getmetricsforobjective) | **GET** /objective/{objective_id}/metric/ | List metrics for this objective|
|
|
12
8
|
|[**getObjectiveById**](#getobjectivebyid) | **GET** /objective/{objective_id} | Get an objective by ID|
|
|
13
9
|
|[**getObjectives**](#getobjectives) | **GET** /objective/ | List objectives|
|
|
14
|
-
|[**getWeightsForObjective**](#getweightsforobjective) | **GET** /objective/{objective_id}/weights/ | List all objective weights for an objective|
|
|
15
|
-
|[**patchMetricForObjective**](#patchmetricforobjective) | **PATCH** /objective/{objective_id}/metric/{metric_id} | Partially update a metric for this objective|
|
|
16
10
|
|[**patchObjective**](#patchobjective) | **PATCH** /objective/{objective_id} | Partially update an objective|
|
|
17
11
|
|[**postObjective**](#postobjective) | **POST** /objective/ | Create an objective|
|
|
18
12
|
|
|
19
|
-
# **createMetricForObjective**
|
|
20
|
-
> MetricResponse createMetricForObjective(metricCreate)
|
|
21
|
-
|
|
22
|
-
Create a new metric under this objective.
|
|
23
|
-
|
|
24
|
-
### Example
|
|
25
|
-
|
|
26
|
-
```typescript
|
|
27
|
-
import {
|
|
28
|
-
ObjectiveApi,
|
|
29
|
-
Configuration,
|
|
30
|
-
MetricCreate
|
|
31
|
-
} from '@cosmotech/aip-client';
|
|
32
|
-
|
|
33
|
-
const configuration = new Configuration();
|
|
34
|
-
const apiInstance = new ObjectiveApi(configuration);
|
|
35
|
-
|
|
36
|
-
let objectiveId: string; //UUID of the objective (default to undefined)
|
|
37
|
-
let metricCreate: MetricCreate; //
|
|
38
|
-
|
|
39
|
-
const { status, data } = await apiInstance.createMetricForObjective(
|
|
40
|
-
objectiveId,
|
|
41
|
-
metricCreate
|
|
42
|
-
);
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Parameters
|
|
46
|
-
|
|
47
|
-
|Name | Type | Description | Notes|
|
|
48
|
-
|------------- | ------------- | ------------- | -------------|
|
|
49
|
-
| **metricCreate** | **MetricCreate**| | |
|
|
50
|
-
| **objectiveId** | [**string**] | UUID of the objective | defaults to undefined|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### Return type
|
|
54
|
-
|
|
55
|
-
**MetricResponse**
|
|
56
|
-
|
|
57
|
-
### Authorization
|
|
58
|
-
|
|
59
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
60
|
-
|
|
61
|
-
### HTTP request headers
|
|
62
|
-
|
|
63
|
-
- **Content-Type**: application/json
|
|
64
|
-
- **Accept**: application/json
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### HTTP response details
|
|
68
|
-
| Status code | Description | Response headers |
|
|
69
|
-
|-------------|-------------|------------------|
|
|
70
|
-
|**201** | Metric created successfully | - |
|
|
71
|
-
|**400** | Invalid input or constraint violation | - |
|
|
72
|
-
|**404** | Objective not found | - |
|
|
73
|
-
|**409** | Duplicate metric | - |
|
|
74
|
-
|
|
75
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
76
|
-
|
|
77
|
-
# **deleteMetricForObjective**
|
|
78
|
-
> deleteMetricForObjective()
|
|
79
|
-
|
|
80
|
-
Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
|
|
81
|
-
|
|
82
|
-
### Example
|
|
83
|
-
|
|
84
|
-
```typescript
|
|
85
|
-
import {
|
|
86
|
-
ObjectiveApi,
|
|
87
|
-
Configuration
|
|
88
|
-
} from '@cosmotech/aip-client';
|
|
89
|
-
|
|
90
|
-
const configuration = new Configuration();
|
|
91
|
-
const apiInstance = new ObjectiveApi(configuration);
|
|
92
|
-
|
|
93
|
-
let metricId: string; //UUID of the metric (default to undefined)
|
|
94
|
-
let objectiveId: string; //UUID of the objective (default to undefined)
|
|
95
|
-
|
|
96
|
-
const { status, data } = await apiInstance.deleteMetricForObjective(
|
|
97
|
-
metricId,
|
|
98
|
-
objectiveId
|
|
99
|
-
);
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Parameters
|
|
103
|
-
|
|
104
|
-
|Name | Type | Description | Notes|
|
|
105
|
-
|------------- | ------------- | ------------- | -------------|
|
|
106
|
-
| **metricId** | [**string**] | UUID of the metric | defaults to undefined|
|
|
107
|
-
| **objectiveId** | [**string**] | UUID of the objective | defaults to undefined|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### Return type
|
|
111
|
-
|
|
112
|
-
void (empty response body)
|
|
113
|
-
|
|
114
|
-
### Authorization
|
|
115
|
-
|
|
116
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
117
|
-
|
|
118
|
-
### HTTP request headers
|
|
119
|
-
|
|
120
|
-
- **Content-Type**: Not defined
|
|
121
|
-
- **Accept**: Not defined
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
### HTTP response details
|
|
125
|
-
| Status code | Description | Response headers |
|
|
126
|
-
|-------------|-------------|------------------|
|
|
127
|
-
|**204** | Metric successfully deleted | - |
|
|
128
|
-
|**404** | Objective or metric not found | - |
|
|
129
|
-
|
|
130
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
131
|
-
|
|
132
13
|
# **deleteObjective**
|
|
133
14
|
> deleteObjective()
|
|
134
15
|
|
|
@@ -181,119 +62,6 @@ void (empty response body)
|
|
|
181
62
|
|
|
182
63
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
183
64
|
|
|
184
|
-
# **getMetricForObjective**
|
|
185
|
-
> MetricResponse getMetricForObjective()
|
|
186
|
-
|
|
187
|
-
Retrieve a specific metric for the objective.
|
|
188
|
-
|
|
189
|
-
### Example
|
|
190
|
-
|
|
191
|
-
```typescript
|
|
192
|
-
import {
|
|
193
|
-
ObjectiveApi,
|
|
194
|
-
Configuration
|
|
195
|
-
} from '@cosmotech/aip-client';
|
|
196
|
-
|
|
197
|
-
const configuration = new Configuration();
|
|
198
|
-
const apiInstance = new ObjectiveApi(configuration);
|
|
199
|
-
|
|
200
|
-
let metricId: string; //UUID of the metric (default to undefined)
|
|
201
|
-
let objectiveId: string; //UUID of the objective (default to undefined)
|
|
202
|
-
|
|
203
|
-
const { status, data } = await apiInstance.getMetricForObjective(
|
|
204
|
-
metricId,
|
|
205
|
-
objectiveId
|
|
206
|
-
);
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
### Parameters
|
|
210
|
-
|
|
211
|
-
|Name | Type | Description | Notes|
|
|
212
|
-
|------------- | ------------- | ------------- | -------------|
|
|
213
|
-
| **metricId** | [**string**] | UUID of the metric | defaults to undefined|
|
|
214
|
-
| **objectiveId** | [**string**] | UUID of the objective | defaults to undefined|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
### Return type
|
|
218
|
-
|
|
219
|
-
**MetricResponse**
|
|
220
|
-
|
|
221
|
-
### Authorization
|
|
222
|
-
|
|
223
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
224
|
-
|
|
225
|
-
### HTTP request headers
|
|
226
|
-
|
|
227
|
-
- **Content-Type**: Not defined
|
|
228
|
-
- **Accept**: application/json
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
### HTTP response details
|
|
232
|
-
| Status code | Description | Response headers |
|
|
233
|
-
|-------------|-------------|------------------|
|
|
234
|
-
|**200** | The requested metric | - |
|
|
235
|
-
|**404** | Objective or metric not found | - |
|
|
236
|
-
|
|
237
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
238
|
-
|
|
239
|
-
# **getMetricsForObjective**
|
|
240
|
-
> Array<MetricResponse> getMetricsForObjective()
|
|
241
|
-
|
|
242
|
-
Retrieve a paginated list of all metrics for a specific objective.
|
|
243
|
-
|
|
244
|
-
### Example
|
|
245
|
-
|
|
246
|
-
```typescript
|
|
247
|
-
import {
|
|
248
|
-
ObjectiveApi,
|
|
249
|
-
Configuration
|
|
250
|
-
} from '@cosmotech/aip-client';
|
|
251
|
-
|
|
252
|
-
const configuration = new Configuration();
|
|
253
|
-
const apiInstance = new ObjectiveApi(configuration);
|
|
254
|
-
|
|
255
|
-
let objectiveId: string; //UUID of the objective (default to undefined)
|
|
256
|
-
let offset: number; //Number of records to skip (optional) (default to 0)
|
|
257
|
-
let limit: number; //Max number of records to return (optional) (default to 100)
|
|
258
|
-
|
|
259
|
-
const { status, data } = await apiInstance.getMetricsForObjective(
|
|
260
|
-
objectiveId,
|
|
261
|
-
offset,
|
|
262
|
-
limit
|
|
263
|
-
);
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
### Parameters
|
|
267
|
-
|
|
268
|
-
|Name | Type | Description | Notes|
|
|
269
|
-
|------------- | ------------- | ------------- | -------------|
|
|
270
|
-
| **objectiveId** | [**string**] | UUID of the objective | defaults to undefined|
|
|
271
|
-
| **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
|
|
272
|
-
| **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
### Return type
|
|
276
|
-
|
|
277
|
-
**Array<MetricResponse>**
|
|
278
|
-
|
|
279
|
-
### Authorization
|
|
280
|
-
|
|
281
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
282
|
-
|
|
283
|
-
### HTTP request headers
|
|
284
|
-
|
|
285
|
-
- **Content-Type**: Not defined
|
|
286
|
-
- **Accept**: application/json
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
### HTTP response details
|
|
290
|
-
| Status code | Description | Response headers |
|
|
291
|
-
|-------------|-------------|------------------|
|
|
292
|
-
|**200** | List of metrics for the objective | - |
|
|
293
|
-
|**404** | Objective not found | - |
|
|
294
|
-
|
|
295
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
296
|
-
|
|
297
65
|
# **getObjectiveById**
|
|
298
66
|
> ObjectiveResponse getObjectiveById()
|
|
299
67
|
|
|
@@ -400,125 +168,6 @@ const { status, data } = await apiInstance.getObjectives(
|
|
|
400
168
|
|
|
401
169
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
402
170
|
|
|
403
|
-
# **getWeightsForObjective**
|
|
404
|
-
> Array<ObjectiveWeightResponse> getWeightsForObjective()
|
|
405
|
-
|
|
406
|
-
Retrieve a paginated list of all objective weights for a specific objective.
|
|
407
|
-
|
|
408
|
-
### Example
|
|
409
|
-
|
|
410
|
-
```typescript
|
|
411
|
-
import {
|
|
412
|
-
ObjectiveApi,
|
|
413
|
-
Configuration
|
|
414
|
-
} from '@cosmotech/aip-client';
|
|
415
|
-
|
|
416
|
-
const configuration = new Configuration();
|
|
417
|
-
const apiInstance = new ObjectiveApi(configuration);
|
|
418
|
-
|
|
419
|
-
let objectiveId: string; //UUID of the objective (default to undefined)
|
|
420
|
-
let offset: number; //Number of records to skip (optional) (default to 0)
|
|
421
|
-
let limit: number; //Max number of records to return (optional) (default to 100)
|
|
422
|
-
|
|
423
|
-
const { status, data } = await apiInstance.getWeightsForObjective(
|
|
424
|
-
objectiveId,
|
|
425
|
-
offset,
|
|
426
|
-
limit
|
|
427
|
-
);
|
|
428
|
-
```
|
|
429
|
-
|
|
430
|
-
### Parameters
|
|
431
|
-
|
|
432
|
-
|Name | Type | Description | Notes|
|
|
433
|
-
|------------- | ------------- | ------------- | -------------|
|
|
434
|
-
| **objectiveId** | [**string**] | UUID of the objective | defaults to undefined|
|
|
435
|
-
| **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
|
|
436
|
-
| **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
### Return type
|
|
440
|
-
|
|
441
|
-
**Array<ObjectiveWeightResponse>**
|
|
442
|
-
|
|
443
|
-
### Authorization
|
|
444
|
-
|
|
445
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
446
|
-
|
|
447
|
-
### HTTP request headers
|
|
448
|
-
|
|
449
|
-
- **Content-Type**: Not defined
|
|
450
|
-
- **Accept**: application/json
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
### HTTP response details
|
|
454
|
-
| Status code | Description | Response headers |
|
|
455
|
-
|-------------|-------------|------------------|
|
|
456
|
-
|**200** | List of objective weights for the objective | - |
|
|
457
|
-
|**404** | Objective not found | - |
|
|
458
|
-
|
|
459
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
460
|
-
|
|
461
|
-
# **patchMetricForObjective**
|
|
462
|
-
> MetricResponse patchMetricForObjective(metricUpdate)
|
|
463
|
-
|
|
464
|
-
Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
465
|
-
|
|
466
|
-
### Example
|
|
467
|
-
|
|
468
|
-
```typescript
|
|
469
|
-
import {
|
|
470
|
-
ObjectiveApi,
|
|
471
|
-
Configuration,
|
|
472
|
-
MetricUpdate
|
|
473
|
-
} from '@cosmotech/aip-client';
|
|
474
|
-
|
|
475
|
-
const configuration = new Configuration();
|
|
476
|
-
const apiInstance = new ObjectiveApi(configuration);
|
|
477
|
-
|
|
478
|
-
let metricId: string; //UUID of the metric (default to undefined)
|
|
479
|
-
let objectiveId: string; //UUID of the objective (default to undefined)
|
|
480
|
-
let metricUpdate: MetricUpdate; //
|
|
481
|
-
|
|
482
|
-
const { status, data } = await apiInstance.patchMetricForObjective(
|
|
483
|
-
metricId,
|
|
484
|
-
objectiveId,
|
|
485
|
-
metricUpdate
|
|
486
|
-
);
|
|
487
|
-
```
|
|
488
|
-
|
|
489
|
-
### Parameters
|
|
490
|
-
|
|
491
|
-
|Name | Type | Description | Notes|
|
|
492
|
-
|------------- | ------------- | ------------- | -------------|
|
|
493
|
-
| **metricUpdate** | **MetricUpdate**| | |
|
|
494
|
-
| **metricId** | [**string**] | UUID of the metric | defaults to undefined|
|
|
495
|
-
| **objectiveId** | [**string**] | UUID of the objective | defaults to undefined|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
### Return type
|
|
499
|
-
|
|
500
|
-
**MetricResponse**
|
|
501
|
-
|
|
502
|
-
### Authorization
|
|
503
|
-
|
|
504
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
505
|
-
|
|
506
|
-
### HTTP request headers
|
|
507
|
-
|
|
508
|
-
- **Content-Type**: application/json
|
|
509
|
-
- **Accept**: application/json
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
### HTTP response details
|
|
513
|
-
| Status code | Description | Response headers |
|
|
514
|
-
|-------------|-------------|------------------|
|
|
515
|
-
|**200** | Metric updated successfully | - |
|
|
516
|
-
|**400** | Validation or constraint error | - |
|
|
517
|
-
|**404** | Objective or metric not found | - |
|
|
518
|
-
|**409** | Unique constraint violation | - |
|
|
519
|
-
|
|
520
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
521
|
-
|
|
522
171
|
# **patchObjective**
|
|
523
172
|
> ObjectiveResponse patchObjective(objectiveUpdate)
|
|
524
173
|
|