@cosmotech/aip-client 0.1.0-rc3 → 0.1.1
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 +2 -2
- package/api/default-api.ts +1 -1
- package/api/metric-api.ts +1 -1
- package/api/metric-costs-per-year-api.ts +1 -1
- package/api/objective-api.ts +1 -1
- package/api/objective-weight-api.ts +1 -1
- package/api/value-framework-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/default-api.d.ts +69 -0
- package/dist/api/default-api.js +128 -0
- package/dist/api/metric-api.d.ts +216 -0
- package/dist/api/metric-api.js +430 -0
- package/dist/api/metric-costs-per-year-api.d.ts +240 -0
- package/dist/api/metric-costs-per-year-api.js +472 -0
- package/dist/api/objective-api.d.ts +216 -0
- package/dist/api/objective-api.js +430 -0
- package/dist/api/objective-weight-api.d.ts +228 -0
- package/dist/api/objective-weight-api.js +451 -0
- package/dist/api/value-framework-api.d.ts +216 -0
- package/dist/api/value-framework-api.js +430 -0
- package/dist/api.d.ts +17 -0
- package/dist/api.js +35 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api/default-api.d.ts +69 -0
- package/dist/esm/api/default-api.js +121 -0
- package/dist/esm/api/metric-api.d.ts +216 -0
- package/dist/esm/api/metric-api.js +423 -0
- package/dist/esm/api/metric-costs-per-year-api.d.ts +240 -0
- package/dist/esm/api/metric-costs-per-year-api.js +465 -0
- package/dist/esm/api/objective-api.d.ts +216 -0
- package/dist/esm/api/objective-api.js +423 -0
- package/dist/esm/api/objective-weight-api.d.ts +228 -0
- package/dist/esm/api/objective-weight-api.js +444 -0
- package/dist/esm/api/value-framework-api.d.ts +216 -0
- package/dist/esm/api/value-framework-api.js +423 -0
- package/dist/esm/api.d.ts +17 -0
- package/dist/esm/api.js +19 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/httpvalidation-error.d.ts +25 -0
- package/dist/esm/models/httpvalidation-error.js +14 -0
- package/dist/esm/models/index.d.ts +20 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/esm/models/measurement-type.d.ts +21 -0
- package/dist/esm/models/measurement-type.js +22 -0
- package/dist/esm/models/metric-costs-per-year-create.d.ts +48 -0
- package/dist/esm/models/metric-costs-per-year-create.js +14 -0
- package/dist/esm/models/metric-costs-per-year-response.d.ts +54 -0
- package/dist/esm/models/metric-costs-per-year-response.js +14 -0
- package/dist/esm/models/metric-costs-per-year-update.d.ts +30 -0
- package/dist/esm/models/metric-costs-per-year-update.js +14 -0
- package/dist/esm/models/metric-create.d.ts +68 -0
- package/dist/esm/models/metric-create.js +14 -0
- package/dist/esm/models/metric-response.d.ts +92 -0
- package/dist/esm/models/metric-response.js +14 -0
- package/dist/esm/models/metric-type.d.ts +22 -0
- package/dist/esm/models/metric-type.js +23 -0
- package/dist/esm/models/metric-update.d.ts +56 -0
- package/dist/esm/models/metric-update.js +14 -0
- package/dist/esm/models/objective-create.d.ts +30 -0
- package/dist/esm/models/objective-create.js +14 -0
- package/dist/esm/models/objective-response.d.ts +54 -0
- package/dist/esm/models/objective-response.js +14 -0
- package/dist/esm/models/objective-update.d.ts +30 -0
- package/dist/esm/models/objective-update.js +14 -0
- package/dist/esm/models/objective-weight-create.d.ts +36 -0
- package/dist/esm/models/objective-weight-create.js +14 -0
- package/dist/esm/models/objective-weight-response.d.ts +42 -0
- package/dist/esm/models/objective-weight-response.js +14 -0
- package/dist/esm/models/objective-weight-update.d.ts +24 -0
- package/dist/esm/models/objective-weight-update.js +14 -0
- package/dist/esm/models/validation-error-loc-inner.d.ts +18 -0
- package/dist/esm/models/validation-error-loc-inner.js +14 -0
- package/dist/esm/models/validation-error.d.ts +49 -0
- package/dist/esm/models/validation-error.js +14 -0
- package/dist/esm/models/value-framework-create.d.ts +30 -0
- package/dist/esm/models/value-framework-create.js +14 -0
- package/dist/esm/models/value-framework-response.d.ts +54 -0
- package/dist/esm/models/value-framework-response.js +14 -0
- package/dist/esm/models/value-framework-update.d.ts +30 -0
- package/dist/esm/models/value-framework-update.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/httpvalidation-error.d.ts +25 -0
- package/dist/models/httpvalidation-error.js +15 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +36 -0
- package/dist/models/measurement-type.d.ts +21 -0
- package/dist/models/measurement-type.js +25 -0
- package/dist/models/metric-costs-per-year-create.d.ts +48 -0
- package/dist/models/metric-costs-per-year-create.js +15 -0
- package/dist/models/metric-costs-per-year-response.d.ts +54 -0
- package/dist/models/metric-costs-per-year-response.js +15 -0
- package/dist/models/metric-costs-per-year-update.d.ts +30 -0
- package/dist/models/metric-costs-per-year-update.js +15 -0
- package/dist/models/metric-create.d.ts +68 -0
- package/dist/models/metric-create.js +15 -0
- package/dist/models/metric-response.d.ts +92 -0
- package/dist/models/metric-response.js +15 -0
- package/dist/models/metric-type.d.ts +22 -0
- package/dist/models/metric-type.js +26 -0
- package/dist/models/metric-update.d.ts +56 -0
- package/dist/models/metric-update.js +15 -0
- package/dist/models/objective-create.d.ts +30 -0
- package/dist/models/objective-create.js +15 -0
- package/dist/models/objective-response.d.ts +54 -0
- package/dist/models/objective-response.js +15 -0
- package/dist/models/objective-update.d.ts +30 -0
- package/dist/models/objective-update.js +15 -0
- package/dist/models/objective-weight-create.d.ts +36 -0
- package/dist/models/objective-weight-create.js +15 -0
- package/dist/models/objective-weight-response.d.ts +42 -0
- package/dist/models/objective-weight-response.js +15 -0
- package/dist/models/objective-weight-update.d.ts +24 -0
- package/dist/models/objective-weight-update.js +15 -0
- package/dist/models/validation-error-loc-inner.d.ts +18 -0
- package/dist/models/validation-error-loc-inner.js +15 -0
- package/dist/models/validation-error.d.ts +49 -0
- package/dist/models/validation-error.js +15 -0
- package/dist/models/value-framework-create.d.ts +30 -0
- package/dist/models/value-framework-create.js +15 -0
- package/dist/models/value-framework-response.d.ts +54 -0
- package/dist/models/value-framework-response.js +15 -0
- package/dist/models/value-framework-update.d.ts +30 -0
- package/dist/models/value-framework-update.js +15 -0
- package/index.ts +1 -1
- package/models/httpvalidation-error.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 +12 -12
- package/models/metric-response.ts +11 -11
- package/models/metric-type.ts +1 -1
- package/models/metric-update.ts +1 -13
- 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/validation-error-loc-inner.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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cosmotech/aip-client@0.1.
|
|
1
|
+
## @cosmotech/aip-client@0.1.1
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cosmotech/aip-client@0.1.
|
|
39
|
+
npm install @cosmotech/aip-client@0.1.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api/default-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/metric-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/objective-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
/**
|
|
16
|
+
* DefaultApi - axios parameter creator
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @summary Root
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
root: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* DefaultApi - functional programming interface
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @summary Root
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
root(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* DefaultApi - factory interface
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @summary Root
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
root(options?: any): AxiosPromise<any>;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* DefaultApi - object-oriented interface
|
|
56
|
+
* @export
|
|
57
|
+
* @class DefaultApi
|
|
58
|
+
* @extends {BaseAPI}
|
|
59
|
+
*/
|
|
60
|
+
export declare class DefaultApi extends BaseAPI {
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @summary Root
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
* @memberof DefaultApi
|
|
67
|
+
*/
|
|
68
|
+
root(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Asset Investment Planning
|
|
6
|
+
* API for Asset Investment Planning
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* DefaultApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary Root
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
root: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
const localVarPath = `/about`;
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
53
|
+
const localVarHeaderParameter = {};
|
|
54
|
+
const localVarQueryParameter = {};
|
|
55
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
56
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
58
|
+
return {
|
|
59
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
60
|
+
options: localVarRequestOptions,
|
|
61
|
+
};
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
66
|
+
/**
|
|
67
|
+
* DefaultApi - functional programming interface
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
const DefaultApiFp = function (configuration) {
|
|
71
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
72
|
+
return {
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @summary Root
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
root(options) {
|
|
80
|
+
var _a, _b, _c;
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.root(options);
|
|
83
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
84
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.root']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
85
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
86
|
+
});
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
91
|
+
/**
|
|
92
|
+
* DefaultApi - factory interface
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
96
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
97
|
+
return {
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary Root
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
root(options) {
|
|
105
|
+
return localVarFp.root(options).then((request) => request(axios, basePath));
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
110
|
+
/**
|
|
111
|
+
* DefaultApi - object-oriented interface
|
|
112
|
+
* @export
|
|
113
|
+
* @class DefaultApi
|
|
114
|
+
* @extends {BaseAPI}
|
|
115
|
+
*/
|
|
116
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @summary Root
|
|
120
|
+
* @param {*} [options] Override http request option.
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
* @memberof DefaultApi
|
|
123
|
+
*/
|
|
124
|
+
root(options) {
|
|
125
|
+
return (0, exports.DefaultApiFp)(this.configuration).root(options).then((request) => request(this.axios, this.basePath));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.DefaultApi = DefaultApi;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { MetricCreate } from '../models';
|
|
16
|
+
import { MetricResponse } from '../models';
|
|
17
|
+
import { MetricUpdate } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* MetricApi - axios parameter creator
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const MetricApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
|
|
25
|
+
* @summary Delete a metric
|
|
26
|
+
* @param {string} metricId UUID of the metric
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
deleteMetric: (metricId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve a single metric by its ID.
|
|
33
|
+
* @summary Get a metric by ID
|
|
34
|
+
* @param {string} metricId UUID of the metric
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
getMetricById: (metricId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieve a paginated list of all metrics.
|
|
41
|
+
* @summary List metrics
|
|
42
|
+
* @param {number} [offset] Number of records to skip
|
|
43
|
+
* @param {number} [limit] Max number of records to return
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
getMetrics: (offset?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
|
+
/**
|
|
49
|
+
* Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
50
|
+
* @summary Partially update a metric
|
|
51
|
+
* @param {string} metricId UUID of the metric
|
|
52
|
+
* @param {MetricUpdate} metricUpdate
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
patchMetric: (metricId: string, metricUpdate: MetricUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
|
+
/**
|
|
58
|
+
* Create a new metric linked to an objective. Requires metric_type (monetized/tracked/bounded) and measurement_type (maximization/minimization).
|
|
59
|
+
* @summary Create a metric
|
|
60
|
+
* @param {MetricCreate} metricCreate
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
postMetric: (metricCreate: MetricCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* MetricApi - functional programming interface
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const MetricApiFp: (configuration?: Configuration) => {
|
|
71
|
+
/**
|
|
72
|
+
* Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
|
|
73
|
+
* @summary Delete a metric
|
|
74
|
+
* @param {string} metricId UUID of the metric
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
deleteMetric(metricId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
79
|
+
/**
|
|
80
|
+
* Retrieve a single metric by its ID.
|
|
81
|
+
* @summary Get a metric by ID
|
|
82
|
+
* @param {string} metricId UUID of the metric
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
getMetricById(metricId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricResponse>>;
|
|
87
|
+
/**
|
|
88
|
+
* Retrieve a paginated list of all metrics.
|
|
89
|
+
* @summary List metrics
|
|
90
|
+
* @param {number} [offset] Number of records to skip
|
|
91
|
+
* @param {number} [limit] Max number of records to return
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
getMetrics(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MetricResponse>>>;
|
|
96
|
+
/**
|
|
97
|
+
* Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
98
|
+
* @summary Partially update a metric
|
|
99
|
+
* @param {string} metricId UUID of the metric
|
|
100
|
+
* @param {MetricUpdate} metricUpdate
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
patchMetric(metricId: string, metricUpdate: MetricUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricResponse>>;
|
|
105
|
+
/**
|
|
106
|
+
* Create a new metric linked to an objective. Requires metric_type (monetized/tracked/bounded) and measurement_type (maximization/minimization).
|
|
107
|
+
* @summary Create a metric
|
|
108
|
+
* @param {MetricCreate} metricCreate
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
postMetric(metricCreate: MetricCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricResponse>>;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* MetricApi - factory interface
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export declare const MetricApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
119
|
+
/**
|
|
120
|
+
* Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
|
|
121
|
+
* @summary Delete a metric
|
|
122
|
+
* @param {string} metricId UUID of the metric
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
deleteMetric(metricId: string, options?: any): AxiosPromise<void>;
|
|
127
|
+
/**
|
|
128
|
+
* Retrieve a single metric by its ID.
|
|
129
|
+
* @summary Get a metric by ID
|
|
130
|
+
* @param {string} metricId UUID of the metric
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
getMetricById(metricId: string, options?: any): AxiosPromise<MetricResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* Retrieve a paginated list of all metrics.
|
|
137
|
+
* @summary List metrics
|
|
138
|
+
* @param {number} [offset] Number of records to skip
|
|
139
|
+
* @param {number} [limit] Max number of records to return
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
getMetrics(offset?: number, limit?: number, options?: any): AxiosPromise<Array<MetricResponse>>;
|
|
144
|
+
/**
|
|
145
|
+
* Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
146
|
+
* @summary Partially update a metric
|
|
147
|
+
* @param {string} metricId UUID of the metric
|
|
148
|
+
* @param {MetricUpdate} metricUpdate
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
patchMetric(metricId: string, metricUpdate: MetricUpdate, options?: any): AxiosPromise<MetricResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* Create a new metric linked to an objective. Requires metric_type (monetized/tracked/bounded) and measurement_type (maximization/minimization).
|
|
155
|
+
* @summary Create a metric
|
|
156
|
+
* @param {MetricCreate} metricCreate
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
postMetric(metricCreate: MetricCreate, options?: any): AxiosPromise<MetricResponse>;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* MetricApi - object-oriented interface
|
|
164
|
+
* @export
|
|
165
|
+
* @class MetricApi
|
|
166
|
+
* @extends {BaseAPI}
|
|
167
|
+
*/
|
|
168
|
+
export declare class MetricApi extends BaseAPI {
|
|
169
|
+
/**
|
|
170
|
+
* Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
|
|
171
|
+
* @summary Delete a metric
|
|
172
|
+
* @param {string} metricId UUID of the metric
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
* @memberof MetricApi
|
|
176
|
+
*/
|
|
177
|
+
deleteMetric(metricId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
178
|
+
/**
|
|
179
|
+
* Retrieve a single metric by its ID.
|
|
180
|
+
* @summary Get a metric by ID
|
|
181
|
+
* @param {string} metricId UUID of the metric
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
* @memberof MetricApi
|
|
185
|
+
*/
|
|
186
|
+
getMetricById(metricId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricResponse, any, {}>>;
|
|
187
|
+
/**
|
|
188
|
+
* Retrieve a paginated list of all metrics.
|
|
189
|
+
* @summary List metrics
|
|
190
|
+
* @param {number} [offset] Number of records to skip
|
|
191
|
+
* @param {number} [limit] Max number of records to return
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
* @memberof MetricApi
|
|
195
|
+
*/
|
|
196
|
+
getMetrics(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricResponse[], any, {}>>;
|
|
197
|
+
/**
|
|
198
|
+
* Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
199
|
+
* @summary Partially update a metric
|
|
200
|
+
* @param {string} metricId UUID of the metric
|
|
201
|
+
* @param {MetricUpdate} metricUpdate
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
* @memberof MetricApi
|
|
205
|
+
*/
|
|
206
|
+
patchMetric(metricId: string, metricUpdate: MetricUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricResponse, any, {}>>;
|
|
207
|
+
/**
|
|
208
|
+
* Create a new metric linked to an objective. Requires metric_type (monetized/tracked/bounded) and measurement_type (maximization/minimization).
|
|
209
|
+
* @summary Create a metric
|
|
210
|
+
* @param {MetricCreate} metricCreate
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
* @memberof MetricApi
|
|
214
|
+
*/
|
|
215
|
+
postMetric(metricCreate: MetricCreate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricResponse, any, {}>>;
|
|
216
|
+
}
|