@cosmotech/aip-client 0.1.0-rc1 → 0.2.0-dev
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 +9 -9
- package/api/metric-api.ts +60 -140
- package/api/metric-costs-per-year-api.ts +78 -188
- package/api/objective-api.ts +60 -140
- package/api/objective-weight-api.ts +69 -164
- package/api/value-framework-api.ts +60 -140
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- 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 +13 -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
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -40,9 +40,9 @@ export const ValueFrameworkApiAxiosParamCreator = function (configuration?: Conf
|
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
deleteValueFramework: async (valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
44
|
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
45
|
-
assertParamExists('
|
|
45
|
+
assertParamExists('deleteValueFramework', 'valueFrameworkId', valueFrameworkId)
|
|
46
46
|
const localVarPath = `/value_framework/{value_framework_id}`
|
|
47
47
|
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
48
48
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -78,9 +78,9 @@ export const ValueFrameworkApiAxiosParamCreator = function (configuration?: Conf
|
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
getValueFrameworkById: async (valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
82
82
|
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
83
|
-
assertParamExists('
|
|
83
|
+
assertParamExists('getValueFrameworkById', 'valueFrameworkId', valueFrameworkId)
|
|
84
84
|
const localVarPath = `/value_framework/{value_framework_id}`
|
|
85
85
|
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
86
86
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -117,7 +117,7 @@ export const ValueFrameworkApiAxiosParamCreator = function (configuration?: Conf
|
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
getValueFrameworks: async (offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
121
121
|
const localVarPath = `/value_framework/`;
|
|
122
122
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
123
123
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -161,11 +161,11 @@ export const ValueFrameworkApiAxiosParamCreator = function (configuration?: Conf
|
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
*/
|
|
164
|
-
|
|
164
|
+
patchValueFramework: async (valueFrameworkId: string, valueFrameworkUpdate: ValueFrameworkUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
165
165
|
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
166
|
-
assertParamExists('
|
|
166
|
+
assertParamExists('patchValueFramework', 'valueFrameworkId', valueFrameworkId)
|
|
167
167
|
// verify required parameter 'valueFrameworkUpdate' is not null or undefined
|
|
168
|
-
assertParamExists('
|
|
168
|
+
assertParamExists('patchValueFramework', 'valueFrameworkUpdate', valueFrameworkUpdate)
|
|
169
169
|
const localVarPath = `/value_framework/{value_framework_id}`
|
|
170
170
|
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
171
171
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -204,9 +204,9 @@ export const ValueFrameworkApiAxiosParamCreator = function (configuration?: Conf
|
|
|
204
204
|
* @param {*} [options] Override http request option.
|
|
205
205
|
* @throws {RequiredError}
|
|
206
206
|
*/
|
|
207
|
-
|
|
207
|
+
postValueFramework: async (valueFrameworkCreate: ValueFrameworkCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
208
208
|
// verify required parameter 'valueFrameworkCreate' is not null or undefined
|
|
209
|
-
assertParamExists('
|
|
209
|
+
assertParamExists('postValueFramework', 'valueFrameworkCreate', valueFrameworkCreate)
|
|
210
210
|
const localVarPath = `/value_framework/`;
|
|
211
211
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
212
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -254,10 +254,10 @@ export const ValueFrameworkApiFp = function(configuration?: Configuration) {
|
|
|
254
254
|
* @param {*} [options] Override http request option.
|
|
255
255
|
* @throws {RequiredError}
|
|
256
256
|
*/
|
|
257
|
-
async
|
|
258
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
257
|
+
async deleteValueFramework(valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
258
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteValueFramework(valueFrameworkId, options);
|
|
259
259
|
const index = configuration?.serverIndex ?? 0;
|
|
260
|
-
const operationBasePath = operationServerMap['ValueFrameworkApi.
|
|
260
|
+
const operationBasePath = operationServerMap['ValueFrameworkApi.deleteValueFramework']?.[index]?.url;
|
|
261
261
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
262
262
|
},
|
|
263
263
|
/**
|
|
@@ -267,10 +267,10 @@ export const ValueFrameworkApiFp = function(configuration?: Configuration) {
|
|
|
267
267
|
* @param {*} [options] Override http request option.
|
|
268
268
|
* @throws {RequiredError}
|
|
269
269
|
*/
|
|
270
|
-
async
|
|
271
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
270
|
+
async getValueFrameworkById(valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValueFrameworkResponse>> {
|
|
271
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getValueFrameworkById(valueFrameworkId, options);
|
|
272
272
|
const index = configuration?.serverIndex ?? 0;
|
|
273
|
-
const operationBasePath = operationServerMap['ValueFrameworkApi.
|
|
273
|
+
const operationBasePath = operationServerMap['ValueFrameworkApi.getValueFrameworkById']?.[index]?.url;
|
|
274
274
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
275
275
|
},
|
|
276
276
|
/**
|
|
@@ -281,10 +281,10 @@ export const ValueFrameworkApiFp = function(configuration?: Configuration) {
|
|
|
281
281
|
* @param {*} [options] Override http request option.
|
|
282
282
|
* @throws {RequiredError}
|
|
283
283
|
*/
|
|
284
|
-
async
|
|
285
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
284
|
+
async getValueFrameworks(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ValueFrameworkResponse>>> {
|
|
285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getValueFrameworks(offset, limit, options);
|
|
286
286
|
const index = configuration?.serverIndex ?? 0;
|
|
287
|
-
const operationBasePath = operationServerMap['ValueFrameworkApi.
|
|
287
|
+
const operationBasePath = operationServerMap['ValueFrameworkApi.getValueFrameworks']?.[index]?.url;
|
|
288
288
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
289
289
|
},
|
|
290
290
|
/**
|
|
@@ -295,10 +295,10 @@ export const ValueFrameworkApiFp = function(configuration?: Configuration) {
|
|
|
295
295
|
* @param {*} [options] Override http request option.
|
|
296
296
|
* @throws {RequiredError}
|
|
297
297
|
*/
|
|
298
|
-
async
|
|
299
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
298
|
+
async patchValueFramework(valueFrameworkId: string, valueFrameworkUpdate: ValueFrameworkUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValueFrameworkResponse>> {
|
|
299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchValueFramework(valueFrameworkId, valueFrameworkUpdate, options);
|
|
300
300
|
const index = configuration?.serverIndex ?? 0;
|
|
301
|
-
const operationBasePath = operationServerMap['ValueFrameworkApi.
|
|
301
|
+
const operationBasePath = operationServerMap['ValueFrameworkApi.patchValueFramework']?.[index]?.url;
|
|
302
302
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
303
303
|
},
|
|
304
304
|
/**
|
|
@@ -308,10 +308,10 @@ export const ValueFrameworkApiFp = function(configuration?: Configuration) {
|
|
|
308
308
|
* @param {*} [options] Override http request option.
|
|
309
309
|
* @throws {RequiredError}
|
|
310
310
|
*/
|
|
311
|
-
async
|
|
312
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
311
|
+
async postValueFramework(valueFrameworkCreate: ValueFrameworkCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValueFrameworkResponse>> {
|
|
312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postValueFramework(valueFrameworkCreate, options);
|
|
313
313
|
const index = configuration?.serverIndex ?? 0;
|
|
314
|
-
const operationBasePath = operationServerMap['ValueFrameworkApi.
|
|
314
|
+
const operationBasePath = operationServerMap['ValueFrameworkApi.postValueFramework']?.[index]?.url;
|
|
315
315
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
316
316
|
},
|
|
317
317
|
}
|
|
@@ -327,140 +327,58 @@ export const ValueFrameworkApiFactory = function (configuration?: Configuration,
|
|
|
327
327
|
/**
|
|
328
328
|
* Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
|
|
329
329
|
* @summary Delete a value framework
|
|
330
|
-
* @param {
|
|
330
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
331
331
|
* @param {*} [options] Override http request option.
|
|
332
332
|
* @throws {RequiredError}
|
|
333
333
|
*/
|
|
334
|
-
|
|
335
|
-
return localVarFp.
|
|
334
|
+
deleteValueFramework(valueFrameworkId: string, options?: any): AxiosPromise<void> {
|
|
335
|
+
return localVarFp.deleteValueFramework(valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
336
336
|
},
|
|
337
337
|
/**
|
|
338
338
|
* Retrieve a single value framework by its ID.
|
|
339
339
|
* @summary Get a value framework by ID
|
|
340
|
-
* @param {
|
|
340
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
341
341
|
* @param {*} [options] Override http request option.
|
|
342
342
|
* @throws {RequiredError}
|
|
343
343
|
*/
|
|
344
|
-
|
|
345
|
-
return localVarFp.
|
|
344
|
+
getValueFrameworkById(valueFrameworkId: string, options?: any): AxiosPromise<ValueFrameworkResponse> {
|
|
345
|
+
return localVarFp.getValueFrameworkById(valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
346
346
|
},
|
|
347
347
|
/**
|
|
348
348
|
* Retrieve a paginated list of all value frameworks.
|
|
349
349
|
* @summary List value frameworks
|
|
350
|
-
* @param {
|
|
350
|
+
* @param {number} [offset] Number of records to skip
|
|
351
|
+
* @param {number} [limit] Max number of records to return
|
|
351
352
|
* @param {*} [options] Override http request option.
|
|
352
353
|
* @throws {RequiredError}
|
|
353
354
|
*/
|
|
354
|
-
|
|
355
|
-
return localVarFp.
|
|
355
|
+
getValueFrameworks(offset?: number, limit?: number, options?: any): AxiosPromise<Array<ValueFrameworkResponse>> {
|
|
356
|
+
return localVarFp.getValueFrameworks(offset, limit, options).then((request) => request(axios, basePath));
|
|
356
357
|
},
|
|
357
358
|
/**
|
|
358
359
|
* Update one or more fields of an existing value framework. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
359
360
|
* @summary Partially update a value framework
|
|
360
|
-
* @param {
|
|
361
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
362
|
+
* @param {ValueFrameworkUpdate} valueFrameworkUpdate
|
|
361
363
|
* @param {*} [options] Override http request option.
|
|
362
364
|
* @throws {RequiredError}
|
|
363
365
|
*/
|
|
364
|
-
|
|
365
|
-
return localVarFp.
|
|
366
|
+
patchValueFramework(valueFrameworkId: string, valueFrameworkUpdate: ValueFrameworkUpdate, options?: any): AxiosPromise<ValueFrameworkResponse> {
|
|
367
|
+
return localVarFp.patchValueFramework(valueFrameworkId, valueFrameworkUpdate, options).then((request) => request(axios, basePath));
|
|
366
368
|
},
|
|
367
369
|
/**
|
|
368
370
|
* Create a new value framework. Name must be unique and non-empty.
|
|
369
371
|
* @summary Create a value framework
|
|
370
|
-
* @param {
|
|
372
|
+
* @param {ValueFrameworkCreate} valueFrameworkCreate
|
|
371
373
|
* @param {*} [options] Override http request option.
|
|
372
374
|
* @throws {RequiredError}
|
|
373
375
|
*/
|
|
374
|
-
|
|
375
|
-
return localVarFp.
|
|
376
|
+
postValueFramework(valueFrameworkCreate: ValueFrameworkCreate, options?: any): AxiosPromise<ValueFrameworkResponse> {
|
|
377
|
+
return localVarFp.postValueFramework(valueFrameworkCreate, options).then((request) => request(axios, basePath));
|
|
376
378
|
},
|
|
377
379
|
};
|
|
378
380
|
};
|
|
379
381
|
|
|
380
|
-
/**
|
|
381
|
-
* Request parameters for deleteValueFrameworkValueFrameworkValueFrameworkIdDelete operation in ValueFrameworkApi.
|
|
382
|
-
* @export
|
|
383
|
-
* @interface ValueFrameworkApiDeleteValueFrameworkValueFrameworkValueFrameworkIdDeleteRequest
|
|
384
|
-
*/
|
|
385
|
-
export interface ValueFrameworkApiDeleteValueFrameworkValueFrameworkValueFrameworkIdDeleteRequest {
|
|
386
|
-
/**
|
|
387
|
-
* UUID of the value framework
|
|
388
|
-
* @type {string}
|
|
389
|
-
* @memberof ValueFrameworkApiDeleteValueFrameworkValueFrameworkValueFrameworkIdDelete
|
|
390
|
-
*/
|
|
391
|
-
readonly valueFrameworkId: string
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* Request parameters for getValueFrameworkByIdValueFrameworkValueFrameworkIdGet operation in ValueFrameworkApi.
|
|
396
|
-
* @export
|
|
397
|
-
* @interface ValueFrameworkApiGetValueFrameworkByIdValueFrameworkValueFrameworkIdGetRequest
|
|
398
|
-
*/
|
|
399
|
-
export interface ValueFrameworkApiGetValueFrameworkByIdValueFrameworkValueFrameworkIdGetRequest {
|
|
400
|
-
/**
|
|
401
|
-
* UUID of the value framework
|
|
402
|
-
* @type {string}
|
|
403
|
-
* @memberof ValueFrameworkApiGetValueFrameworkByIdValueFrameworkValueFrameworkIdGet
|
|
404
|
-
*/
|
|
405
|
-
readonly valueFrameworkId: string
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Request parameters for getValueFrameworksValueFrameworkGet operation in ValueFrameworkApi.
|
|
410
|
-
* @export
|
|
411
|
-
* @interface ValueFrameworkApiGetValueFrameworksValueFrameworkGetRequest
|
|
412
|
-
*/
|
|
413
|
-
export interface ValueFrameworkApiGetValueFrameworksValueFrameworkGetRequest {
|
|
414
|
-
/**
|
|
415
|
-
* Number of records to skip
|
|
416
|
-
* @type {number}
|
|
417
|
-
* @memberof ValueFrameworkApiGetValueFrameworksValueFrameworkGet
|
|
418
|
-
*/
|
|
419
|
-
readonly offset?: number
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Max number of records to return
|
|
423
|
-
* @type {number}
|
|
424
|
-
* @memberof ValueFrameworkApiGetValueFrameworksValueFrameworkGet
|
|
425
|
-
*/
|
|
426
|
-
readonly limit?: number
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Request parameters for patchValueFrameworkValueFrameworkValueFrameworkIdPatch operation in ValueFrameworkApi.
|
|
431
|
-
* @export
|
|
432
|
-
* @interface ValueFrameworkApiPatchValueFrameworkValueFrameworkValueFrameworkIdPatchRequest
|
|
433
|
-
*/
|
|
434
|
-
export interface ValueFrameworkApiPatchValueFrameworkValueFrameworkValueFrameworkIdPatchRequest {
|
|
435
|
-
/**
|
|
436
|
-
* UUID of the value framework
|
|
437
|
-
* @type {string}
|
|
438
|
-
* @memberof ValueFrameworkApiPatchValueFrameworkValueFrameworkValueFrameworkIdPatch
|
|
439
|
-
*/
|
|
440
|
-
readonly valueFrameworkId: string
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
*
|
|
444
|
-
* @type {ValueFrameworkUpdate}
|
|
445
|
-
* @memberof ValueFrameworkApiPatchValueFrameworkValueFrameworkValueFrameworkIdPatch
|
|
446
|
-
*/
|
|
447
|
-
readonly valueFrameworkUpdate: ValueFrameworkUpdate
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Request parameters for postValueFrameworkValueFrameworkPost operation in ValueFrameworkApi.
|
|
452
|
-
* @export
|
|
453
|
-
* @interface ValueFrameworkApiPostValueFrameworkValueFrameworkPostRequest
|
|
454
|
-
*/
|
|
455
|
-
export interface ValueFrameworkApiPostValueFrameworkValueFrameworkPostRequest {
|
|
456
|
-
/**
|
|
457
|
-
*
|
|
458
|
-
* @type {ValueFrameworkCreate}
|
|
459
|
-
* @memberof ValueFrameworkApiPostValueFrameworkValueFrameworkPost
|
|
460
|
-
*/
|
|
461
|
-
readonly valueFrameworkCreate: ValueFrameworkCreate
|
|
462
|
-
}
|
|
463
|
-
|
|
464
382
|
/**
|
|
465
383
|
* ValueFrameworkApi - object-oriented interface
|
|
466
384
|
* @export
|
|
@@ -471,61 +389,63 @@ export class ValueFrameworkApi extends BaseAPI {
|
|
|
471
389
|
/**
|
|
472
390
|
* Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
|
|
473
391
|
* @summary Delete a value framework
|
|
474
|
-
* @param {
|
|
392
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
475
393
|
* @param {*} [options] Override http request option.
|
|
476
394
|
* @throws {RequiredError}
|
|
477
395
|
* @memberof ValueFrameworkApi
|
|
478
396
|
*/
|
|
479
|
-
public
|
|
480
|
-
return ValueFrameworkApiFp(this.configuration).
|
|
397
|
+
public deleteValueFramework(valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
398
|
+
return ValueFrameworkApiFp(this.configuration).deleteValueFramework(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
481
399
|
}
|
|
482
400
|
|
|
483
401
|
/**
|
|
484
402
|
* Retrieve a single value framework by its ID.
|
|
485
403
|
* @summary Get a value framework by ID
|
|
486
|
-
* @param {
|
|
404
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
487
405
|
* @param {*} [options] Override http request option.
|
|
488
406
|
* @throws {RequiredError}
|
|
489
407
|
* @memberof ValueFrameworkApi
|
|
490
408
|
*/
|
|
491
|
-
public
|
|
492
|
-
return ValueFrameworkApiFp(this.configuration).
|
|
409
|
+
public getValueFrameworkById(valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
410
|
+
return ValueFrameworkApiFp(this.configuration).getValueFrameworkById(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
493
411
|
}
|
|
494
412
|
|
|
495
413
|
/**
|
|
496
414
|
* Retrieve a paginated list of all value frameworks.
|
|
497
415
|
* @summary List value frameworks
|
|
498
|
-
* @param {
|
|
416
|
+
* @param {number} [offset] Number of records to skip
|
|
417
|
+
* @param {number} [limit] Max number of records to return
|
|
499
418
|
* @param {*} [options] Override http request option.
|
|
500
419
|
* @throws {RequiredError}
|
|
501
420
|
* @memberof ValueFrameworkApi
|
|
502
421
|
*/
|
|
503
|
-
public
|
|
504
|
-
return ValueFrameworkApiFp(this.configuration).
|
|
422
|
+
public getValueFrameworks(offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
423
|
+
return ValueFrameworkApiFp(this.configuration).getValueFrameworks(offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
505
424
|
}
|
|
506
425
|
|
|
507
426
|
/**
|
|
508
427
|
* Update one or more fields of an existing value framework. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
509
428
|
* @summary Partially update a value framework
|
|
510
|
-
* @param {
|
|
429
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
430
|
+
* @param {ValueFrameworkUpdate} valueFrameworkUpdate
|
|
511
431
|
* @param {*} [options] Override http request option.
|
|
512
432
|
* @throws {RequiredError}
|
|
513
433
|
* @memberof ValueFrameworkApi
|
|
514
434
|
*/
|
|
515
|
-
public
|
|
516
|
-
return ValueFrameworkApiFp(this.configuration).
|
|
435
|
+
public patchValueFramework(valueFrameworkId: string, valueFrameworkUpdate: ValueFrameworkUpdate, options?: RawAxiosRequestConfig) {
|
|
436
|
+
return ValueFrameworkApiFp(this.configuration).patchValueFramework(valueFrameworkId, valueFrameworkUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
517
437
|
}
|
|
518
438
|
|
|
519
439
|
/**
|
|
520
440
|
* Create a new value framework. Name must be unique and non-empty.
|
|
521
441
|
* @summary Create a value framework
|
|
522
|
-
* @param {
|
|
442
|
+
* @param {ValueFrameworkCreate} valueFrameworkCreate
|
|
523
443
|
* @param {*} [options] Override http request option.
|
|
524
444
|
* @throws {RequiredError}
|
|
525
445
|
* @memberof ValueFrameworkApi
|
|
526
446
|
*/
|
|
527
|
-
public
|
|
528
|
-
return ValueFrameworkApiFp(this.configuration).
|
|
447
|
+
public postValueFramework(valueFrameworkCreate: ValueFrameworkCreate, options?: RawAxiosRequestConfig) {
|
|
448
|
+
return ValueFrameworkApiFp(this.configuration).postValueFramework(valueFrameworkCreate, options).then((request) => request(this.axios, this.basePath));
|
|
529
449
|
}
|
|
530
450
|
}
|
|
531
451
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/models/metric-create.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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -27,17 +27,23 @@ import { MetricType } from './metric-type';
|
|
|
27
27
|
*/
|
|
28
28
|
export interface MetricCreate {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {
|
|
30
|
+
* Default direct cost value for new metric costs per year records
|
|
31
|
+
* @type {number}
|
|
32
32
|
* @memberof MetricCreate
|
|
33
33
|
*/
|
|
34
|
-
'
|
|
34
|
+
'default_direct_cost'?: number;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Default perceived cost value for new metric costs per year records
|
|
37
37
|
* @type {number}
|
|
38
38
|
* @memberof MetricCreate
|
|
39
39
|
*/
|
|
40
|
-
'
|
|
40
|
+
'default_perceived_cost'?: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof MetricCreate
|
|
45
|
+
*/
|
|
46
|
+
'description'?: string | null;
|
|
41
47
|
/**
|
|
42
48
|
* Measurement approach
|
|
43
49
|
* @type {MeasurementType}
|
|
@@ -68,12 +74,6 @@ export interface MetricCreate {
|
|
|
68
74
|
* @memberof MetricCreate
|
|
69
75
|
*/
|
|
70
76
|
'objective_id': string;
|
|
71
|
-
/**
|
|
72
|
-
* Perceived cost of the metric
|
|
73
|
-
* @type {number}
|
|
74
|
-
* @memberof MetricCreate
|
|
75
|
-
*/
|
|
76
|
-
'perceived_cost'?: number;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
|
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,16 +34,22 @@ export interface MetricResponse {
|
|
|
34
34
|
'created_at': string;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {
|
|
37
|
+
* @type {number}
|
|
38
38
|
* @memberof MetricResponse
|
|
39
39
|
*/
|
|
40
|
-
'
|
|
40
|
+
'default_direct_cost': number;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
*
|
|
43
43
|
* @type {number}
|
|
44
44
|
* @memberof MetricResponse
|
|
45
45
|
*/
|
|
46
|
-
'
|
|
46
|
+
'default_perceived_cost': number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof MetricResponse
|
|
51
|
+
*/
|
|
52
|
+
'description'?: string | null;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {string}
|
|
@@ -86,12 +92,6 @@ export interface MetricResponse {
|
|
|
86
92
|
* @memberof MetricResponse
|
|
87
93
|
*/
|
|
88
94
|
'owner_name'?: string | null;
|
|
89
|
-
/**
|
|
90
|
-
* Perceived cost of the metric
|
|
91
|
-
* @type {number}
|
|
92
|
-
* @memberof MetricResponse
|
|
93
|
-
*/
|
|
94
|
-
'perceived_cost'?: number;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
* @type {string}
|
package/models/metric-type.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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/models/metric-update.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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -32,12 +32,6 @@ export interface MetricUpdate {
|
|
|
32
32
|
* @memberof MetricUpdate
|
|
33
33
|
*/
|
|
34
34
|
'description'?: string | null;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof MetricUpdate
|
|
39
|
-
*/
|
|
40
|
-
'direct_cost'?: number | null;
|
|
41
35
|
/**
|
|
42
36
|
*
|
|
43
37
|
* @type {MeasurementType}
|
|
@@ -68,12 +62,6 @@ export interface MetricUpdate {
|
|
|
68
62
|
* @memberof MetricUpdate
|
|
69
63
|
*/
|
|
70
64
|
'objective_id'?: string | null;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {number}
|
|
74
|
-
* @memberof MetricUpdate
|
|
75
|
-
*/
|
|
76
|
-
'perceived_cost'?: number | null;
|
|
77
65
|
}
|
|
78
66
|
|
|
79
67
|
|
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|