@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.
@@ -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.0-rc1
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
- deleteValueFrameworkValueFrameworkValueFrameworkIdDelete: async (valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
43
+ deleteValueFramework: async (valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44
44
  // verify required parameter 'valueFrameworkId' is not null or undefined
45
- assertParamExists('deleteValueFrameworkValueFrameworkValueFrameworkIdDelete', 'valueFrameworkId', valueFrameworkId)
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
- getValueFrameworkByIdValueFrameworkValueFrameworkIdGet: async (valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
81
+ getValueFrameworkById: async (valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
82
82
  // verify required parameter 'valueFrameworkId' is not null or undefined
83
- assertParamExists('getValueFrameworkByIdValueFrameworkValueFrameworkIdGet', 'valueFrameworkId', valueFrameworkId)
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
- getValueFrameworksValueFrameworkGet: async (offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
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
- patchValueFrameworkValueFrameworkValueFrameworkIdPatch: async (valueFrameworkId: string, valueFrameworkUpdate: ValueFrameworkUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
164
+ patchValueFramework: async (valueFrameworkId: string, valueFrameworkUpdate: ValueFrameworkUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
165
165
  // verify required parameter 'valueFrameworkId' is not null or undefined
166
- assertParamExists('patchValueFrameworkValueFrameworkValueFrameworkIdPatch', 'valueFrameworkId', valueFrameworkId)
166
+ assertParamExists('patchValueFramework', 'valueFrameworkId', valueFrameworkId)
167
167
  // verify required parameter 'valueFrameworkUpdate' is not null or undefined
168
- assertParamExists('patchValueFrameworkValueFrameworkValueFrameworkIdPatch', 'valueFrameworkUpdate', valueFrameworkUpdate)
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
- postValueFrameworkValueFrameworkPost: async (valueFrameworkCreate: ValueFrameworkCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
207
+ postValueFramework: async (valueFrameworkCreate: ValueFrameworkCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
208
208
  // verify required parameter 'valueFrameworkCreate' is not null or undefined
209
- assertParamExists('postValueFrameworkValueFrameworkPost', 'valueFrameworkCreate', valueFrameworkCreate)
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 deleteValueFrameworkValueFrameworkValueFrameworkIdDelete(valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
258
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteValueFrameworkValueFrameworkValueFrameworkIdDelete(valueFrameworkId, options);
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.deleteValueFrameworkValueFrameworkValueFrameworkIdDelete']?.[index]?.url;
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 getValueFrameworkByIdValueFrameworkValueFrameworkIdGet(valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValueFrameworkResponse>> {
271
- const localVarAxiosArgs = await localVarAxiosParamCreator.getValueFrameworkByIdValueFrameworkValueFrameworkIdGet(valueFrameworkId, options);
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.getValueFrameworkByIdValueFrameworkValueFrameworkIdGet']?.[index]?.url;
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 getValueFrameworksValueFrameworkGet(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ValueFrameworkResponse>>> {
285
- const localVarAxiosArgs = await localVarAxiosParamCreator.getValueFrameworksValueFrameworkGet(offset, limit, options);
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.getValueFrameworksValueFrameworkGet']?.[index]?.url;
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 patchValueFrameworkValueFrameworkValueFrameworkIdPatch(valueFrameworkId: string, valueFrameworkUpdate: ValueFrameworkUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValueFrameworkResponse>> {
299
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchValueFrameworkValueFrameworkValueFrameworkIdPatch(valueFrameworkId, valueFrameworkUpdate, options);
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.patchValueFrameworkValueFrameworkValueFrameworkIdPatch']?.[index]?.url;
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 postValueFrameworkValueFrameworkPost(valueFrameworkCreate: ValueFrameworkCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValueFrameworkResponse>> {
312
- const localVarAxiosArgs = await localVarAxiosParamCreator.postValueFrameworkValueFrameworkPost(valueFrameworkCreate, options);
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.postValueFrameworkValueFrameworkPost']?.[index]?.url;
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 {ValueFrameworkApiDeleteValueFrameworkValueFrameworkValueFrameworkIdDeleteRequest} requestParameters Request parameters.
330
+ * @param {string} valueFrameworkId UUID of the value framework
331
331
  * @param {*} [options] Override http request option.
332
332
  * @throws {RequiredError}
333
333
  */
334
- deleteValueFrameworkValueFrameworkValueFrameworkIdDelete(requestParameters: ValueFrameworkApiDeleteValueFrameworkValueFrameworkValueFrameworkIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
335
- return localVarFp.deleteValueFrameworkValueFrameworkValueFrameworkIdDelete(requestParameters.valueFrameworkId, options).then((request) => request(axios, basePath));
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 {ValueFrameworkApiGetValueFrameworkByIdValueFrameworkValueFrameworkIdGetRequest} requestParameters Request parameters.
340
+ * @param {string} valueFrameworkId UUID of the value framework
341
341
  * @param {*} [options] Override http request option.
342
342
  * @throws {RequiredError}
343
343
  */
344
- getValueFrameworkByIdValueFrameworkValueFrameworkIdGet(requestParameters: ValueFrameworkApiGetValueFrameworkByIdValueFrameworkValueFrameworkIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<ValueFrameworkResponse> {
345
- return localVarFp.getValueFrameworkByIdValueFrameworkValueFrameworkIdGet(requestParameters.valueFrameworkId, options).then((request) => request(axios, basePath));
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 {ValueFrameworkApiGetValueFrameworksValueFrameworkGetRequest} requestParameters Request parameters.
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
- getValueFrameworksValueFrameworkGet(requestParameters: ValueFrameworkApiGetValueFrameworksValueFrameworkGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<ValueFrameworkResponse>> {
355
- return localVarFp.getValueFrameworksValueFrameworkGet(requestParameters.offset, requestParameters.limit, options).then((request) => request(axios, basePath));
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 {ValueFrameworkApiPatchValueFrameworkValueFrameworkValueFrameworkIdPatchRequest} requestParameters Request parameters.
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
- patchValueFrameworkValueFrameworkValueFrameworkIdPatch(requestParameters: ValueFrameworkApiPatchValueFrameworkValueFrameworkValueFrameworkIdPatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<ValueFrameworkResponse> {
365
- return localVarFp.patchValueFrameworkValueFrameworkValueFrameworkIdPatch(requestParameters.valueFrameworkId, requestParameters.valueFrameworkUpdate, options).then((request) => request(axios, basePath));
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 {ValueFrameworkApiPostValueFrameworkValueFrameworkPostRequest} requestParameters Request parameters.
372
+ * @param {ValueFrameworkCreate} valueFrameworkCreate
371
373
  * @param {*} [options] Override http request option.
372
374
  * @throws {RequiredError}
373
375
  */
374
- postValueFrameworkValueFrameworkPost(requestParameters: ValueFrameworkApiPostValueFrameworkValueFrameworkPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ValueFrameworkResponse> {
375
- return localVarFp.postValueFrameworkValueFrameworkPost(requestParameters.valueFrameworkCreate, options).then((request) => request(axios, basePath));
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 {ValueFrameworkApiDeleteValueFrameworkValueFrameworkValueFrameworkIdDeleteRequest} requestParameters Request parameters.
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 deleteValueFrameworkValueFrameworkValueFrameworkIdDelete(requestParameters: ValueFrameworkApiDeleteValueFrameworkValueFrameworkValueFrameworkIdDeleteRequest, options?: RawAxiosRequestConfig) {
480
- return ValueFrameworkApiFp(this.configuration).deleteValueFrameworkValueFrameworkValueFrameworkIdDelete(requestParameters.valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
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 {ValueFrameworkApiGetValueFrameworkByIdValueFrameworkValueFrameworkIdGetRequest} requestParameters Request parameters.
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 getValueFrameworkByIdValueFrameworkValueFrameworkIdGet(requestParameters: ValueFrameworkApiGetValueFrameworkByIdValueFrameworkValueFrameworkIdGetRequest, options?: RawAxiosRequestConfig) {
492
- return ValueFrameworkApiFp(this.configuration).getValueFrameworkByIdValueFrameworkValueFrameworkIdGet(requestParameters.valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
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 {ValueFrameworkApiGetValueFrameworksValueFrameworkGetRequest} requestParameters Request parameters.
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 getValueFrameworksValueFrameworkGet(requestParameters: ValueFrameworkApiGetValueFrameworksValueFrameworkGetRequest = {}, options?: RawAxiosRequestConfig) {
504
- return ValueFrameworkApiFp(this.configuration).getValueFrameworksValueFrameworkGet(requestParameters.offset, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
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 {ValueFrameworkApiPatchValueFrameworkValueFrameworkValueFrameworkIdPatchRequest} requestParameters Request parameters.
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 patchValueFrameworkValueFrameworkValueFrameworkIdPatch(requestParameters: ValueFrameworkApiPatchValueFrameworkValueFrameworkValueFrameworkIdPatchRequest, options?: RawAxiosRequestConfig) {
516
- return ValueFrameworkApiFp(this.configuration).patchValueFrameworkValueFrameworkValueFrameworkIdPatch(requestParameters.valueFrameworkId, requestParameters.valueFrameworkUpdate, options).then((request) => request(this.axios, this.basePath));
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 {ValueFrameworkApiPostValueFrameworkValueFrameworkPostRequest} requestParameters Request parameters.
442
+ * @param {ValueFrameworkCreate} valueFrameworkCreate
523
443
  * @param {*} [options] Override http request option.
524
444
  * @throws {RequiredError}
525
445
  * @memberof ValueFrameworkApi
526
446
  */
527
- public postValueFrameworkValueFrameworkPost(requestParameters: ValueFrameworkApiPostValueFrameworkValueFrameworkPostRequest, options?: RawAxiosRequestConfig) {
528
- return ValueFrameworkApiFp(this.configuration).postValueFrameworkValueFrameworkPost(requestParameters.valueFrameworkCreate, options).then((request) => request(this.axios, this.basePath));
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.1.0-rc1
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.1.0-rc1
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.1.0-rc1
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.1.0-rc1
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.1.0-rc1
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.1.0-rc1
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.1.0-rc1
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.1.0-rc1
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.1.0-rc1
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.1.0-rc1
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.1.0-rc1
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 {string}
30
+ * Default direct cost value for new metric costs per year records
31
+ * @type {number}
32
32
  * @memberof MetricCreate
33
33
  */
34
- 'description'?: string | null;
34
+ 'default_direct_cost'?: number;
35
35
  /**
36
- * Direct cost of the metric
36
+ * Default perceived cost value for new metric costs per year records
37
37
  * @type {number}
38
38
  * @memberof MetricCreate
39
39
  */
40
- 'direct_cost'?: number;
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.1.0-rc1
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 {string}
37
+ * @type {number}
38
38
  * @memberof MetricResponse
39
39
  */
40
- 'description'?: string | null;
40
+ 'default_direct_cost': number;
41
41
  /**
42
- * Direct cost of the metric
42
+ *
43
43
  * @type {number}
44
44
  * @memberof MetricResponse
45
45
  */
46
- 'direct_cost'?: number;
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}
@@ -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.0-rc1
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.1.0-rc1
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.1.0-rc1
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.1.0-rc1
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).