@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
package/api/objective-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
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 ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
deleteObjective: async (objectiveId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
44
|
// verify required parameter 'objectiveId' is not null or undefined
|
|
45
|
-
assertParamExists('
|
|
45
|
+
assertParamExists('deleteObjective', 'objectiveId', objectiveId)
|
|
46
46
|
const localVarPath = `/objective/{objective_id}`
|
|
47
47
|
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
48
48
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -78,9 +78,9 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
getObjectiveById: async (objectiveId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
82
82
|
// verify required parameter 'objectiveId' is not null or undefined
|
|
83
|
-
assertParamExists('
|
|
83
|
+
assertParamExists('getObjectiveById', 'objectiveId', objectiveId)
|
|
84
84
|
const localVarPath = `/objective/{objective_id}`
|
|
85
85
|
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
86
86
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -117,7 +117,7 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
getObjectives: async (offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
121
121
|
const localVarPath = `/objective/`;
|
|
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 ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
*/
|
|
164
|
-
|
|
164
|
+
patchObjective: async (objectiveId: string, objectiveUpdate: ObjectiveUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
165
165
|
// verify required parameter 'objectiveId' is not null or undefined
|
|
166
|
-
assertParamExists('
|
|
166
|
+
assertParamExists('patchObjective', 'objectiveId', objectiveId)
|
|
167
167
|
// verify required parameter 'objectiveUpdate' is not null or undefined
|
|
168
|
-
assertParamExists('
|
|
168
|
+
assertParamExists('patchObjective', 'objectiveUpdate', objectiveUpdate)
|
|
169
169
|
const localVarPath = `/objective/{objective_id}`
|
|
170
170
|
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
171
171
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -204,9 +204,9 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
204
204
|
* @param {*} [options] Override http request option.
|
|
205
205
|
* @throws {RequiredError}
|
|
206
206
|
*/
|
|
207
|
-
|
|
207
|
+
postObjective: async (objectiveCreate: ObjectiveCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
208
208
|
// verify required parameter 'objectiveCreate' is not null or undefined
|
|
209
|
-
assertParamExists('
|
|
209
|
+
assertParamExists('postObjective', 'objectiveCreate', objectiveCreate)
|
|
210
210
|
const localVarPath = `/objective/`;
|
|
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 ObjectiveApiFp = 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 deleteObjective(objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
258
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteObjective(objectiveId, options);
|
|
259
259
|
const index = configuration?.serverIndex ?? 0;
|
|
260
|
-
const operationBasePath = operationServerMap['ObjectiveApi.
|
|
260
|
+
const operationBasePath = operationServerMap['ObjectiveApi.deleteObjective']?.[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 ObjectiveApiFp = 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 getObjectiveById(objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveResponse>> {
|
|
271
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectiveById(objectiveId, options);
|
|
272
272
|
const index = configuration?.serverIndex ?? 0;
|
|
273
|
-
const operationBasePath = operationServerMap['ObjectiveApi.
|
|
273
|
+
const operationBasePath = operationServerMap['ObjectiveApi.getObjectiveById']?.[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 ObjectiveApiFp = 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 getObjectives(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectiveResponse>>> {
|
|
285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectives(offset, limit, options);
|
|
286
286
|
const index = configuration?.serverIndex ?? 0;
|
|
287
|
-
const operationBasePath = operationServerMap['ObjectiveApi.
|
|
287
|
+
const operationBasePath = operationServerMap['ObjectiveApi.getObjectives']?.[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 ObjectiveApiFp = 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 patchObjective(objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveResponse>> {
|
|
299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchObjective(objectiveId, objectiveUpdate, options);
|
|
300
300
|
const index = configuration?.serverIndex ?? 0;
|
|
301
|
-
const operationBasePath = operationServerMap['ObjectiveApi.
|
|
301
|
+
const operationBasePath = operationServerMap['ObjectiveApi.patchObjective']?.[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 ObjectiveApiFp = 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 postObjective(objectiveCreate: ObjectiveCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveResponse>> {
|
|
312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postObjective(objectiveCreate, options);
|
|
313
313
|
const index = configuration?.serverIndex ?? 0;
|
|
314
|
-
const operationBasePath = operationServerMap['ObjectiveApi.
|
|
314
|
+
const operationBasePath = operationServerMap['ObjectiveApi.postObjective']?.[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 ObjectiveApiFactory = function (configuration?: Configuration, base
|
|
|
327
327
|
/**
|
|
328
328
|
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
329
329
|
* @summary Delete an objective
|
|
330
|
-
* @param {
|
|
330
|
+
* @param {string} objectiveId UUID of the objective
|
|
331
331
|
* @param {*} [options] Override http request option.
|
|
332
332
|
* @throws {RequiredError}
|
|
333
333
|
*/
|
|
334
|
-
|
|
335
|
-
return localVarFp.
|
|
334
|
+
deleteObjective(objectiveId: string, options?: any): AxiosPromise<void> {
|
|
335
|
+
return localVarFp.deleteObjective(objectiveId, options).then((request) => request(axios, basePath));
|
|
336
336
|
},
|
|
337
337
|
/**
|
|
338
338
|
* Retrieve a single objective by its ID.
|
|
339
339
|
* @summary Get an objective by ID
|
|
340
|
-
* @param {
|
|
340
|
+
* @param {string} objectiveId UUID of the objective
|
|
341
341
|
* @param {*} [options] Override http request option.
|
|
342
342
|
* @throws {RequiredError}
|
|
343
343
|
*/
|
|
344
|
-
|
|
345
|
-
return localVarFp.
|
|
344
|
+
getObjectiveById(objectiveId: string, options?: any): AxiosPromise<ObjectiveResponse> {
|
|
345
|
+
return localVarFp.getObjectiveById(objectiveId, options).then((request) => request(axios, basePath));
|
|
346
346
|
},
|
|
347
347
|
/**
|
|
348
348
|
* Retrieve a paginated list of all objectives.
|
|
349
349
|
* @summary List objectives
|
|
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
|
+
getObjectives(offset?: number, limit?: number, options?: any): AxiosPromise<Array<ObjectiveResponse>> {
|
|
356
|
+
return localVarFp.getObjectives(offset, limit, options).then((request) => request(axios, basePath));
|
|
356
357
|
},
|
|
357
358
|
/**
|
|
358
359
|
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
359
360
|
* @summary Partially update an objective
|
|
360
|
-
* @param {
|
|
361
|
+
* @param {string} objectiveId UUID of the objective
|
|
362
|
+
* @param {ObjectiveUpdate} objectiveUpdate
|
|
361
363
|
* @param {*} [options] Override http request option.
|
|
362
364
|
* @throws {RequiredError}
|
|
363
365
|
*/
|
|
364
|
-
|
|
365
|
-
return localVarFp.
|
|
366
|
+
patchObjective(objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?: any): AxiosPromise<ObjectiveResponse> {
|
|
367
|
+
return localVarFp.patchObjective(objectiveId, objectiveUpdate, options).then((request) => request(axios, basePath));
|
|
366
368
|
},
|
|
367
369
|
/**
|
|
368
370
|
* Create a new objective. Name must be unique and non-empty.
|
|
369
371
|
* @summary Create an objective
|
|
370
|
-
* @param {
|
|
372
|
+
* @param {ObjectiveCreate} objectiveCreate
|
|
371
373
|
* @param {*} [options] Override http request option.
|
|
372
374
|
* @throws {RequiredError}
|
|
373
375
|
*/
|
|
374
|
-
|
|
375
|
-
return localVarFp.
|
|
376
|
+
postObjective(objectiveCreate: ObjectiveCreate, options?: any): AxiosPromise<ObjectiveResponse> {
|
|
377
|
+
return localVarFp.postObjective(objectiveCreate, options).then((request) => request(axios, basePath));
|
|
376
378
|
},
|
|
377
379
|
};
|
|
378
380
|
};
|
|
379
381
|
|
|
380
|
-
/**
|
|
381
|
-
* Request parameters for deleteObjectiveObjectiveObjectiveIdDelete operation in ObjectiveApi.
|
|
382
|
-
* @export
|
|
383
|
-
* @interface ObjectiveApiDeleteObjectiveObjectiveObjectiveIdDeleteRequest
|
|
384
|
-
*/
|
|
385
|
-
export interface ObjectiveApiDeleteObjectiveObjectiveObjectiveIdDeleteRequest {
|
|
386
|
-
/**
|
|
387
|
-
* UUID of the objective
|
|
388
|
-
* @type {string}
|
|
389
|
-
* @memberof ObjectiveApiDeleteObjectiveObjectiveObjectiveIdDelete
|
|
390
|
-
*/
|
|
391
|
-
readonly objectiveId: string
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* Request parameters for getObjectiveByIdObjectiveObjectiveIdGet operation in ObjectiveApi.
|
|
396
|
-
* @export
|
|
397
|
-
* @interface ObjectiveApiGetObjectiveByIdObjectiveObjectiveIdGetRequest
|
|
398
|
-
*/
|
|
399
|
-
export interface ObjectiveApiGetObjectiveByIdObjectiveObjectiveIdGetRequest {
|
|
400
|
-
/**
|
|
401
|
-
* UUID of the objective
|
|
402
|
-
* @type {string}
|
|
403
|
-
* @memberof ObjectiveApiGetObjectiveByIdObjectiveObjectiveIdGet
|
|
404
|
-
*/
|
|
405
|
-
readonly objectiveId: string
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Request parameters for getObjectivesObjectiveGet operation in ObjectiveApi.
|
|
410
|
-
* @export
|
|
411
|
-
* @interface ObjectiveApiGetObjectivesObjectiveGetRequest
|
|
412
|
-
*/
|
|
413
|
-
export interface ObjectiveApiGetObjectivesObjectiveGetRequest {
|
|
414
|
-
/**
|
|
415
|
-
* Number of records to skip
|
|
416
|
-
* @type {number}
|
|
417
|
-
* @memberof ObjectiveApiGetObjectivesObjectiveGet
|
|
418
|
-
*/
|
|
419
|
-
readonly offset?: number
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Max number of records to return
|
|
423
|
-
* @type {number}
|
|
424
|
-
* @memberof ObjectiveApiGetObjectivesObjectiveGet
|
|
425
|
-
*/
|
|
426
|
-
readonly limit?: number
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Request parameters for patchObjectiveObjectiveObjectiveIdPatch operation in ObjectiveApi.
|
|
431
|
-
* @export
|
|
432
|
-
* @interface ObjectiveApiPatchObjectiveObjectiveObjectiveIdPatchRequest
|
|
433
|
-
*/
|
|
434
|
-
export interface ObjectiveApiPatchObjectiveObjectiveObjectiveIdPatchRequest {
|
|
435
|
-
/**
|
|
436
|
-
* UUID of the objective
|
|
437
|
-
* @type {string}
|
|
438
|
-
* @memberof ObjectiveApiPatchObjectiveObjectiveObjectiveIdPatch
|
|
439
|
-
*/
|
|
440
|
-
readonly objectiveId: string
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
*
|
|
444
|
-
* @type {ObjectiveUpdate}
|
|
445
|
-
* @memberof ObjectiveApiPatchObjectiveObjectiveObjectiveIdPatch
|
|
446
|
-
*/
|
|
447
|
-
readonly objectiveUpdate: ObjectiveUpdate
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Request parameters for postObjectiveObjectivePost operation in ObjectiveApi.
|
|
452
|
-
* @export
|
|
453
|
-
* @interface ObjectiveApiPostObjectiveObjectivePostRequest
|
|
454
|
-
*/
|
|
455
|
-
export interface ObjectiveApiPostObjectiveObjectivePostRequest {
|
|
456
|
-
/**
|
|
457
|
-
*
|
|
458
|
-
* @type {ObjectiveCreate}
|
|
459
|
-
* @memberof ObjectiveApiPostObjectiveObjectivePost
|
|
460
|
-
*/
|
|
461
|
-
readonly objectiveCreate: ObjectiveCreate
|
|
462
|
-
}
|
|
463
|
-
|
|
464
382
|
/**
|
|
465
383
|
* ObjectiveApi - object-oriented interface
|
|
466
384
|
* @export
|
|
@@ -471,61 +389,63 @@ export class ObjectiveApi extends BaseAPI {
|
|
|
471
389
|
/**
|
|
472
390
|
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
473
391
|
* @summary Delete an objective
|
|
474
|
-
* @param {
|
|
392
|
+
* @param {string} objectiveId UUID of the objective
|
|
475
393
|
* @param {*} [options] Override http request option.
|
|
476
394
|
* @throws {RequiredError}
|
|
477
395
|
* @memberof ObjectiveApi
|
|
478
396
|
*/
|
|
479
|
-
public
|
|
480
|
-
return ObjectiveApiFp(this.configuration).
|
|
397
|
+
public deleteObjective(objectiveId: string, options?: RawAxiosRequestConfig) {
|
|
398
|
+
return ObjectiveApiFp(this.configuration).deleteObjective(objectiveId, options).then((request) => request(this.axios, this.basePath));
|
|
481
399
|
}
|
|
482
400
|
|
|
483
401
|
/**
|
|
484
402
|
* Retrieve a single objective by its ID.
|
|
485
403
|
* @summary Get an objective by ID
|
|
486
|
-
* @param {
|
|
404
|
+
* @param {string} objectiveId UUID of the objective
|
|
487
405
|
* @param {*} [options] Override http request option.
|
|
488
406
|
* @throws {RequiredError}
|
|
489
407
|
* @memberof ObjectiveApi
|
|
490
408
|
*/
|
|
491
|
-
public
|
|
492
|
-
return ObjectiveApiFp(this.configuration).
|
|
409
|
+
public getObjectiveById(objectiveId: string, options?: RawAxiosRequestConfig) {
|
|
410
|
+
return ObjectiveApiFp(this.configuration).getObjectiveById(objectiveId, options).then((request) => request(this.axios, this.basePath));
|
|
493
411
|
}
|
|
494
412
|
|
|
495
413
|
/**
|
|
496
414
|
* Retrieve a paginated list of all objectives.
|
|
497
415
|
* @summary List objectives
|
|
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 ObjectiveApi
|
|
502
421
|
*/
|
|
503
|
-
public
|
|
504
|
-
return ObjectiveApiFp(this.configuration).
|
|
422
|
+
public getObjectives(offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
423
|
+
return ObjectiveApiFp(this.configuration).getObjectives(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 objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
509
428
|
* @summary Partially update an objective
|
|
510
|
-
* @param {
|
|
429
|
+
* @param {string} objectiveId UUID of the objective
|
|
430
|
+
* @param {ObjectiveUpdate} objectiveUpdate
|
|
511
431
|
* @param {*} [options] Override http request option.
|
|
512
432
|
* @throws {RequiredError}
|
|
513
433
|
* @memberof ObjectiveApi
|
|
514
434
|
*/
|
|
515
|
-
public
|
|
516
|
-
return ObjectiveApiFp(this.configuration).
|
|
435
|
+
public patchObjective(objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?: RawAxiosRequestConfig) {
|
|
436
|
+
return ObjectiveApiFp(this.configuration).patchObjective(objectiveId, objectiveUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
517
437
|
}
|
|
518
438
|
|
|
519
439
|
/**
|
|
520
440
|
* Create a new objective. Name must be unique and non-empty.
|
|
521
441
|
* @summary Create an objective
|
|
522
|
-
* @param {
|
|
442
|
+
* @param {ObjectiveCreate} objectiveCreate
|
|
523
443
|
* @param {*} [options] Override http request option.
|
|
524
444
|
* @throws {RequiredError}
|
|
525
445
|
* @memberof ObjectiveApi
|
|
526
446
|
*/
|
|
527
|
-
public
|
|
528
|
-
return ObjectiveApiFp(this.configuration).
|
|
447
|
+
public postObjective(objectiveCreate: ObjectiveCreate, options?: RawAxiosRequestConfig) {
|
|
448
|
+
return ObjectiveApiFp(this.configuration).postObjective(objectiveCreate, options).then((request) => request(this.axios, this.basePath));
|
|
529
449
|
}
|
|
530
450
|
}
|
|
531
451
|
|