@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).
|
|
@@ -41,11 +41,11 @@ export const ObjectiveWeightApiAxiosParamCreator = function (configuration?: Con
|
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
deleteObjectiveWeight: async (frameworkId: string, objectiveId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
45
|
// verify required parameter 'frameworkId' is not null or undefined
|
|
46
|
-
assertParamExists('
|
|
46
|
+
assertParamExists('deleteObjectiveWeight', 'frameworkId', frameworkId)
|
|
47
47
|
// verify required parameter 'objectiveId' is not null or undefined
|
|
48
|
-
assertParamExists('
|
|
48
|
+
assertParamExists('deleteObjectiveWeight', 'objectiveId', objectiveId)
|
|
49
49
|
const localVarPath = `/objective_weight/{framework_id}/{objective_id}`
|
|
50
50
|
.replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
|
|
51
51
|
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
@@ -83,11 +83,11 @@ export const ObjectiveWeightApiAxiosParamCreator = function (configuration?: Con
|
|
|
83
83
|
* @param {*} [options] Override http request option.
|
|
84
84
|
* @throws {RequiredError}
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
getObjectiveWeightByKeys: async (frameworkId: string, objectiveId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
87
87
|
// verify required parameter 'frameworkId' is not null or undefined
|
|
88
|
-
assertParamExists('
|
|
88
|
+
assertParamExists('getObjectiveWeightByKeys', 'frameworkId', frameworkId)
|
|
89
89
|
// verify required parameter 'objectiveId' is not null or undefined
|
|
90
|
-
assertParamExists('
|
|
90
|
+
assertParamExists('getObjectiveWeightByKeys', 'objectiveId', objectiveId)
|
|
91
91
|
const localVarPath = `/objective_weight/{framework_id}/{objective_id}`
|
|
92
92
|
.replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
|
|
93
93
|
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
@@ -125,7 +125,7 @@ export const ObjectiveWeightApiAxiosParamCreator = function (configuration?: Con
|
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
getObjectiveWeights: async (offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
129
129
|
const localVarPath = `/objective_weight/`;
|
|
130
130
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
131
131
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -170,13 +170,13 @@ export const ObjectiveWeightApiAxiosParamCreator = function (configuration?: Con
|
|
|
170
170
|
* @param {*} [options] Override http request option.
|
|
171
171
|
* @throws {RequiredError}
|
|
172
172
|
*/
|
|
173
|
-
|
|
173
|
+
patchObjectiveWeight: async (frameworkId: string, objectiveId: string, objectiveWeightUpdate: ObjectiveWeightUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
174
174
|
// verify required parameter 'frameworkId' is not null or undefined
|
|
175
|
-
assertParamExists('
|
|
175
|
+
assertParamExists('patchObjectiveWeight', 'frameworkId', frameworkId)
|
|
176
176
|
// verify required parameter 'objectiveId' is not null or undefined
|
|
177
|
-
assertParamExists('
|
|
177
|
+
assertParamExists('patchObjectiveWeight', 'objectiveId', objectiveId)
|
|
178
178
|
// verify required parameter 'objectiveWeightUpdate' is not null or undefined
|
|
179
|
-
assertParamExists('
|
|
179
|
+
assertParamExists('patchObjectiveWeight', 'objectiveWeightUpdate', objectiveWeightUpdate)
|
|
180
180
|
const localVarPath = `/objective_weight/{framework_id}/{objective_id}`
|
|
181
181
|
.replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
|
|
182
182
|
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
@@ -216,9 +216,9 @@ export const ObjectiveWeightApiAxiosParamCreator = function (configuration?: Con
|
|
|
216
216
|
* @param {*} [options] Override http request option.
|
|
217
217
|
* @throws {RequiredError}
|
|
218
218
|
*/
|
|
219
|
-
|
|
219
|
+
postObjectiveWeight: async (objectiveWeightCreate: ObjectiveWeightCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
220
220
|
// verify required parameter 'objectiveWeightCreate' is not null or undefined
|
|
221
|
-
assertParamExists('
|
|
221
|
+
assertParamExists('postObjectiveWeight', 'objectiveWeightCreate', objectiveWeightCreate)
|
|
222
222
|
const localVarPath = `/objective_weight/`;
|
|
223
223
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
224
224
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -267,10 +267,10 @@ export const ObjectiveWeightApiFp = 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 deleteObjectiveWeight(frameworkId: string, objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
271
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteObjectiveWeight(frameworkId, objectiveId, options);
|
|
272
272
|
const index = configuration?.serverIndex ?? 0;
|
|
273
|
-
const operationBasePath = operationServerMap['ObjectiveWeightApi.
|
|
273
|
+
const operationBasePath = operationServerMap['ObjectiveWeightApi.deleteObjectiveWeight']?.[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 ObjectiveWeightApiFp = 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 getObjectiveWeightByKeys(frameworkId: string, objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveWeightResponse>> {
|
|
285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectiveWeightByKeys(frameworkId, objectiveId, options);
|
|
286
286
|
const index = configuration?.serverIndex ?? 0;
|
|
287
|
-
const operationBasePath = operationServerMap['ObjectiveWeightApi.
|
|
287
|
+
const operationBasePath = operationServerMap['ObjectiveWeightApi.getObjectiveWeightByKeys']?.[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 ObjectiveWeightApiFp = 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 getObjectiveWeights(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectiveWeightResponse>>> {
|
|
299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectiveWeights(offset, limit, options);
|
|
300
300
|
const index = configuration?.serverIndex ?? 0;
|
|
301
|
-
const operationBasePath = operationServerMap['ObjectiveWeightApi.
|
|
301
|
+
const operationBasePath = operationServerMap['ObjectiveWeightApi.getObjectiveWeights']?.[index]?.url;
|
|
302
302
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
303
303
|
},
|
|
304
304
|
/**
|
|
@@ -310,10 +310,10 @@ export const ObjectiveWeightApiFp = function(configuration?: Configuration) {
|
|
|
310
310
|
* @param {*} [options] Override http request option.
|
|
311
311
|
* @throws {RequiredError}
|
|
312
312
|
*/
|
|
313
|
-
async
|
|
314
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
313
|
+
async patchObjectiveWeight(frameworkId: string, objectiveId: string, objectiveWeightUpdate: ObjectiveWeightUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveWeightResponse>> {
|
|
314
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchObjectiveWeight(frameworkId, objectiveId, objectiveWeightUpdate, options);
|
|
315
315
|
const index = configuration?.serverIndex ?? 0;
|
|
316
|
-
const operationBasePath = operationServerMap['ObjectiveWeightApi.
|
|
316
|
+
const operationBasePath = operationServerMap['ObjectiveWeightApi.patchObjectiveWeight']?.[index]?.url;
|
|
317
317
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
318
318
|
},
|
|
319
319
|
/**
|
|
@@ -323,10 +323,10 @@ export const ObjectiveWeightApiFp = function(configuration?: Configuration) {
|
|
|
323
323
|
* @param {*} [options] Override http request option.
|
|
324
324
|
* @throws {RequiredError}
|
|
325
325
|
*/
|
|
326
|
-
async
|
|
327
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
326
|
+
async postObjectiveWeight(objectiveWeightCreate: ObjectiveWeightCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveWeightResponse>> {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postObjectiveWeight(objectiveWeightCreate, options);
|
|
328
328
|
const index = configuration?.serverIndex ?? 0;
|
|
329
|
-
const operationBasePath = operationServerMap['ObjectiveWeightApi.
|
|
329
|
+
const operationBasePath = operationServerMap['ObjectiveWeightApi.postObjectiveWeight']?.[index]?.url;
|
|
330
330
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
331
331
|
},
|
|
332
332
|
}
|
|
@@ -342,161 +342,61 @@ export const ObjectiveWeightApiFactory = function (configuration?: Configuration
|
|
|
342
342
|
/**
|
|
343
343
|
* Delete an objective weight link by its composite key (framework_id, objective_id).
|
|
344
344
|
* @summary Delete an objective weight
|
|
345
|
-
* @param {
|
|
345
|
+
* @param {string} frameworkId UUID of the value framework
|
|
346
|
+
* @param {string} objectiveId UUID of the objective
|
|
346
347
|
* @param {*} [options] Override http request option.
|
|
347
348
|
* @throws {RequiredError}
|
|
348
349
|
*/
|
|
349
|
-
|
|
350
|
-
return localVarFp.
|
|
350
|
+
deleteObjectiveWeight(frameworkId: string, objectiveId: string, options?: any): AxiosPromise<void> {
|
|
351
|
+
return localVarFp.deleteObjectiveWeight(frameworkId, objectiveId, options).then((request) => request(axios, basePath));
|
|
351
352
|
},
|
|
352
353
|
/**
|
|
353
354
|
* Retrieve the weight for a specific objective within a specific framework.
|
|
354
355
|
* @summary Get an objective weight by framework and objective
|
|
355
|
-
* @param {
|
|
356
|
+
* @param {string} frameworkId UUID of the value framework
|
|
357
|
+
* @param {string} objectiveId UUID of the objective
|
|
356
358
|
* @param {*} [options] Override http request option.
|
|
357
359
|
* @throws {RequiredError}
|
|
358
360
|
*/
|
|
359
|
-
|
|
360
|
-
return localVarFp.
|
|
361
|
+
getObjectiveWeightByKeys(frameworkId: string, objectiveId: string, options?: any): AxiosPromise<ObjectiveWeightResponse> {
|
|
362
|
+
return localVarFp.getObjectiveWeightByKeys(frameworkId, objectiveId, options).then((request) => request(axios, basePath));
|
|
361
363
|
},
|
|
362
364
|
/**
|
|
363
365
|
* Retrieve a paginated list of all objective-framework weight assignments.
|
|
364
366
|
* @summary List objective weights
|
|
365
|
-
* @param {
|
|
367
|
+
* @param {number} [offset] Number of records to skip
|
|
368
|
+
* @param {number} [limit] Max number of records to return
|
|
366
369
|
* @param {*} [options] Override http request option.
|
|
367
370
|
* @throws {RequiredError}
|
|
368
371
|
*/
|
|
369
|
-
|
|
370
|
-
return localVarFp.
|
|
372
|
+
getObjectiveWeights(offset?: number, limit?: number, options?: any): AxiosPromise<Array<ObjectiveWeightResponse>> {
|
|
373
|
+
return localVarFp.getObjectiveWeights(offset, limit, options).then((request) => request(axios, basePath));
|
|
371
374
|
},
|
|
372
375
|
/**
|
|
373
376
|
* Update the weight of an objective within a value framework. Identified by the composite key (framework_id, objective_id).
|
|
374
377
|
* @summary Partially update an objective weight
|
|
375
|
-
* @param {
|
|
378
|
+
* @param {string} frameworkId UUID of the value framework
|
|
379
|
+
* @param {string} objectiveId UUID of the objective
|
|
380
|
+
* @param {ObjectiveWeightUpdate} objectiveWeightUpdate
|
|
376
381
|
* @param {*} [options] Override http request option.
|
|
377
382
|
* @throws {RequiredError}
|
|
378
383
|
*/
|
|
379
|
-
|
|
380
|
-
return localVarFp.
|
|
384
|
+
patchObjectiveWeight(frameworkId: string, objectiveId: string, objectiveWeightUpdate: ObjectiveWeightUpdate, options?: any): AxiosPromise<ObjectiveWeightResponse> {
|
|
385
|
+
return localVarFp.patchObjectiveWeight(frameworkId, objectiveId, objectiveWeightUpdate, options).then((request) => request(axios, basePath));
|
|
381
386
|
},
|
|
382
387
|
/**
|
|
383
388
|
* Assign a weight to an objective within a framework. Weight must be >= 0, defaults to 1.0.
|
|
384
389
|
* @summary Create an objective weight
|
|
385
|
-
* @param {
|
|
390
|
+
* @param {ObjectiveWeightCreate} objectiveWeightCreate
|
|
386
391
|
* @param {*} [options] Override http request option.
|
|
387
392
|
* @throws {RequiredError}
|
|
388
393
|
*/
|
|
389
|
-
|
|
390
|
-
return localVarFp.
|
|
394
|
+
postObjectiveWeight(objectiveWeightCreate: ObjectiveWeightCreate, options?: any): AxiosPromise<ObjectiveWeightResponse> {
|
|
395
|
+
return localVarFp.postObjectiveWeight(objectiveWeightCreate, options).then((request) => request(axios, basePath));
|
|
391
396
|
},
|
|
392
397
|
};
|
|
393
398
|
};
|
|
394
399
|
|
|
395
|
-
/**
|
|
396
|
-
* Request parameters for deleteObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdDelete operation in ObjectiveWeightApi.
|
|
397
|
-
* @export
|
|
398
|
-
* @interface ObjectiveWeightApiDeleteObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdDeleteRequest
|
|
399
|
-
*/
|
|
400
|
-
export interface ObjectiveWeightApiDeleteObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdDeleteRequest {
|
|
401
|
-
/**
|
|
402
|
-
* UUID of the value framework
|
|
403
|
-
* @type {string}
|
|
404
|
-
* @memberof ObjectiveWeightApiDeleteObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdDelete
|
|
405
|
-
*/
|
|
406
|
-
readonly frameworkId: string
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* UUID of the objective
|
|
410
|
-
* @type {string}
|
|
411
|
-
* @memberof ObjectiveWeightApiDeleteObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdDelete
|
|
412
|
-
*/
|
|
413
|
-
readonly objectiveId: string
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* Request parameters for getObjectiveWeightByKeysObjectiveWeightFrameworkIdObjectiveIdGet operation in ObjectiveWeightApi.
|
|
418
|
-
* @export
|
|
419
|
-
* @interface ObjectiveWeightApiGetObjectiveWeightByKeysObjectiveWeightFrameworkIdObjectiveIdGetRequest
|
|
420
|
-
*/
|
|
421
|
-
export interface ObjectiveWeightApiGetObjectiveWeightByKeysObjectiveWeightFrameworkIdObjectiveIdGetRequest {
|
|
422
|
-
/**
|
|
423
|
-
* UUID of the value framework
|
|
424
|
-
* @type {string}
|
|
425
|
-
* @memberof ObjectiveWeightApiGetObjectiveWeightByKeysObjectiveWeightFrameworkIdObjectiveIdGet
|
|
426
|
-
*/
|
|
427
|
-
readonly frameworkId: string
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* UUID of the objective
|
|
431
|
-
* @type {string}
|
|
432
|
-
* @memberof ObjectiveWeightApiGetObjectiveWeightByKeysObjectiveWeightFrameworkIdObjectiveIdGet
|
|
433
|
-
*/
|
|
434
|
-
readonly objectiveId: string
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Request parameters for getObjectiveWeightsObjectiveWeightGet operation in ObjectiveWeightApi.
|
|
439
|
-
* @export
|
|
440
|
-
* @interface ObjectiveWeightApiGetObjectiveWeightsObjectiveWeightGetRequest
|
|
441
|
-
*/
|
|
442
|
-
export interface ObjectiveWeightApiGetObjectiveWeightsObjectiveWeightGetRequest {
|
|
443
|
-
/**
|
|
444
|
-
* Number of records to skip
|
|
445
|
-
* @type {number}
|
|
446
|
-
* @memberof ObjectiveWeightApiGetObjectiveWeightsObjectiveWeightGet
|
|
447
|
-
*/
|
|
448
|
-
readonly offset?: number
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Max number of records to return
|
|
452
|
-
* @type {number}
|
|
453
|
-
* @memberof ObjectiveWeightApiGetObjectiveWeightsObjectiveWeightGet
|
|
454
|
-
*/
|
|
455
|
-
readonly limit?: number
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Request parameters for patchObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdPatch operation in ObjectiveWeightApi.
|
|
460
|
-
* @export
|
|
461
|
-
* @interface ObjectiveWeightApiPatchObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdPatchRequest
|
|
462
|
-
*/
|
|
463
|
-
export interface ObjectiveWeightApiPatchObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdPatchRequest {
|
|
464
|
-
/**
|
|
465
|
-
* UUID of the value framework
|
|
466
|
-
* @type {string}
|
|
467
|
-
* @memberof ObjectiveWeightApiPatchObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdPatch
|
|
468
|
-
*/
|
|
469
|
-
readonly frameworkId: string
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* UUID of the objective
|
|
473
|
-
* @type {string}
|
|
474
|
-
* @memberof ObjectiveWeightApiPatchObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdPatch
|
|
475
|
-
*/
|
|
476
|
-
readonly objectiveId: string
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
*
|
|
480
|
-
* @type {ObjectiveWeightUpdate}
|
|
481
|
-
* @memberof ObjectiveWeightApiPatchObjectiveWeightObjectiveWeightFrameworkIdObjectiveIdPatch
|
|
482
|
-
*/
|
|
483
|
-
readonly objectiveWeightUpdate: ObjectiveWeightUpdate
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Request parameters for postObjectiveWeightObjectiveWeightPost operation in ObjectiveWeightApi.
|
|
488
|
-
* @export
|
|
489
|
-
* @interface ObjectiveWeightApiPostObjectiveWeightObjectiveWeightPostRequest
|
|
490
|
-
*/
|
|
491
|
-
export interface ObjectiveWeightApiPostObjectiveWeightObjectiveWeightPostRequest {
|
|
492
|
-
/**
|
|
493
|
-
*
|
|
494
|
-
* @type {ObjectiveWeightCreate}
|
|
495
|
-
* @memberof ObjectiveWeightApiPostObjectiveWeightObjectiveWeightPost
|
|
496
|
-
*/
|
|
497
|
-
readonly objectiveWeightCreate: ObjectiveWeightCreate
|
|
498
|
-
}
|
|
499
|
-
|
|
500
400
|
/**
|
|
501
401
|
* ObjectiveWeightApi - object-oriented interface
|
|
502
402
|
* @export
|
|
@@ -507,61 +407,66 @@ export class ObjectiveWeightApi extends BaseAPI {
|
|
|
507
407
|
/**
|
|
508
408
|
* Delete an objective weight link by its composite key (framework_id, objective_id).
|
|
509
409
|
* @summary Delete an objective weight
|
|
510
|
-
* @param {
|
|
410
|
+
* @param {string} frameworkId UUID of the value framework
|
|
411
|
+
* @param {string} objectiveId UUID of the objective
|
|
511
412
|
* @param {*} [options] Override http request option.
|
|
512
413
|
* @throws {RequiredError}
|
|
513
414
|
* @memberof ObjectiveWeightApi
|
|
514
415
|
*/
|
|
515
|
-
public
|
|
516
|
-
return ObjectiveWeightApiFp(this.configuration).
|
|
416
|
+
public deleteObjectiveWeight(frameworkId: string, objectiveId: string, options?: RawAxiosRequestConfig) {
|
|
417
|
+
return ObjectiveWeightApiFp(this.configuration).deleteObjectiveWeight(frameworkId, objectiveId, options).then((request) => request(this.axios, this.basePath));
|
|
517
418
|
}
|
|
518
419
|
|
|
519
420
|
/**
|
|
520
421
|
* Retrieve the weight for a specific objective within a specific framework.
|
|
521
422
|
* @summary Get an objective weight by framework and objective
|
|
522
|
-
* @param {
|
|
423
|
+
* @param {string} frameworkId UUID of the value framework
|
|
424
|
+
* @param {string} objectiveId UUID of the objective
|
|
523
425
|
* @param {*} [options] Override http request option.
|
|
524
426
|
* @throws {RequiredError}
|
|
525
427
|
* @memberof ObjectiveWeightApi
|
|
526
428
|
*/
|
|
527
|
-
public
|
|
528
|
-
return ObjectiveWeightApiFp(this.configuration).
|
|
429
|
+
public getObjectiveWeightByKeys(frameworkId: string, objectiveId: string, options?: RawAxiosRequestConfig) {
|
|
430
|
+
return ObjectiveWeightApiFp(this.configuration).getObjectiveWeightByKeys(frameworkId, objectiveId, options).then((request) => request(this.axios, this.basePath));
|
|
529
431
|
}
|
|
530
432
|
|
|
531
433
|
/**
|
|
532
434
|
* Retrieve a paginated list of all objective-framework weight assignments.
|
|
533
435
|
* @summary List objective weights
|
|
534
|
-
* @param {
|
|
436
|
+
* @param {number} [offset] Number of records to skip
|
|
437
|
+
* @param {number} [limit] Max number of records to return
|
|
535
438
|
* @param {*} [options] Override http request option.
|
|
536
439
|
* @throws {RequiredError}
|
|
537
440
|
* @memberof ObjectiveWeightApi
|
|
538
441
|
*/
|
|
539
|
-
public
|
|
540
|
-
return ObjectiveWeightApiFp(this.configuration).
|
|
442
|
+
public getObjectiveWeights(offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
443
|
+
return ObjectiveWeightApiFp(this.configuration).getObjectiveWeights(offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
541
444
|
}
|
|
542
445
|
|
|
543
446
|
/**
|
|
544
447
|
* Update the weight of an objective within a value framework. Identified by the composite key (framework_id, objective_id).
|
|
545
448
|
* @summary Partially update an objective weight
|
|
546
|
-
* @param {
|
|
449
|
+
* @param {string} frameworkId UUID of the value framework
|
|
450
|
+
* @param {string} objectiveId UUID of the objective
|
|
451
|
+
* @param {ObjectiveWeightUpdate} objectiveWeightUpdate
|
|
547
452
|
* @param {*} [options] Override http request option.
|
|
548
453
|
* @throws {RequiredError}
|
|
549
454
|
* @memberof ObjectiveWeightApi
|
|
550
455
|
*/
|
|
551
|
-
public
|
|
552
|
-
return ObjectiveWeightApiFp(this.configuration).
|
|
456
|
+
public patchObjectiveWeight(frameworkId: string, objectiveId: string, objectiveWeightUpdate: ObjectiveWeightUpdate, options?: RawAxiosRequestConfig) {
|
|
457
|
+
return ObjectiveWeightApiFp(this.configuration).patchObjectiveWeight(frameworkId, objectiveId, objectiveWeightUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
553
458
|
}
|
|
554
459
|
|
|
555
460
|
/**
|
|
556
461
|
* Assign a weight to an objective within a framework. Weight must be >= 0, defaults to 1.0.
|
|
557
462
|
* @summary Create an objective weight
|
|
558
|
-
* @param {
|
|
463
|
+
* @param {ObjectiveWeightCreate} objectiveWeightCreate
|
|
559
464
|
* @param {*} [options] Override http request option.
|
|
560
465
|
* @throws {RequiredError}
|
|
561
466
|
* @memberof ObjectiveWeightApi
|
|
562
467
|
*/
|
|
563
|
-
public
|
|
564
|
-
return ObjectiveWeightApiFp(this.configuration).
|
|
468
|
+
public postObjectiveWeight(objectiveWeightCreate: ObjectiveWeightCreate, options?: RawAxiosRequestConfig) {
|
|
469
|
+
return ObjectiveWeightApiFp(this.configuration).postObjectiveWeight(objectiveWeightCreate, options).then((request) => request(this.axios, this.basePath));
|
|
565
470
|
}
|
|
566
471
|
}
|
|
567
472
|
|