@cosmotech/aip-client 0.2.0-dev → 0.2.0-dev2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/default-api.ts +1 -1
- package/api/metric-api.ts +1 -1
- package/api/metric-costs-per-year-api.ts +1 -1
- package/api/objective-api.ts +1 -1
- package/api/objective-weight-api.ts +1 -1
- package/api/value-framework-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/default-api.d.ts +69 -0
- package/dist/api/default-api.js +128 -0
- package/dist/api/metric-api.d.ts +216 -0
- package/dist/api/metric-api.js +430 -0
- package/dist/api/metric-costs-per-year-api.d.ts +240 -0
- package/dist/api/metric-costs-per-year-api.js +472 -0
- package/dist/api/objective-api.d.ts +216 -0
- package/dist/api/objective-api.js +430 -0
- package/dist/api/objective-weight-api.d.ts +228 -0
- package/dist/api/objective-weight-api.js +451 -0
- package/dist/api/value-framework-api.d.ts +216 -0
- package/dist/api/value-framework-api.js +430 -0
- package/dist/api.d.ts +17 -0
- package/dist/api.js +35 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api/default-api.d.ts +69 -0
- package/dist/esm/api/default-api.js +121 -0
- package/dist/esm/api/metric-api.d.ts +216 -0
- package/dist/esm/api/metric-api.js +423 -0
- package/dist/esm/api/metric-costs-per-year-api.d.ts +240 -0
- package/dist/esm/api/metric-costs-per-year-api.js +465 -0
- package/dist/esm/api/objective-api.d.ts +216 -0
- package/dist/esm/api/objective-api.js +423 -0
- package/dist/esm/api/objective-weight-api.d.ts +228 -0
- package/dist/esm/api/objective-weight-api.js +444 -0
- package/dist/esm/api/value-framework-api.d.ts +216 -0
- package/dist/esm/api/value-framework-api.js +423 -0
- package/dist/esm/api.d.ts +17 -0
- package/dist/esm/api.js +19 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/httpvalidation-error.d.ts +25 -0
- package/dist/esm/models/httpvalidation-error.js +14 -0
- package/dist/esm/models/index.d.ts +20 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/esm/models/measurement-type.d.ts +21 -0
- package/dist/esm/models/measurement-type.js +22 -0
- package/dist/esm/models/metric-costs-per-year-create.d.ts +48 -0
- package/dist/esm/models/metric-costs-per-year-create.js +14 -0
- package/dist/esm/models/metric-costs-per-year-response.d.ts +54 -0
- package/dist/esm/models/metric-costs-per-year-response.js +14 -0
- package/dist/esm/models/metric-costs-per-year-update.d.ts +30 -0
- package/dist/esm/models/metric-costs-per-year-update.js +14 -0
- package/dist/esm/models/metric-create.d.ts +68 -0
- package/dist/esm/models/metric-create.js +14 -0
- package/dist/esm/models/metric-response.d.ts +92 -0
- package/dist/esm/models/metric-response.js +14 -0
- package/dist/esm/models/metric-type.d.ts +22 -0
- package/dist/esm/models/metric-type.js +23 -0
- package/dist/esm/models/metric-update.d.ts +56 -0
- package/dist/esm/models/metric-update.js +14 -0
- package/dist/esm/models/objective-create.d.ts +30 -0
- package/dist/esm/models/objective-create.js +14 -0
- package/dist/esm/models/objective-response.d.ts +54 -0
- package/dist/esm/models/objective-response.js +14 -0
- package/dist/esm/models/objective-update.d.ts +30 -0
- package/dist/esm/models/objective-update.js +14 -0
- package/dist/esm/models/objective-weight-create.d.ts +36 -0
- package/dist/esm/models/objective-weight-create.js +14 -0
- package/dist/esm/models/objective-weight-response.d.ts +42 -0
- package/dist/esm/models/objective-weight-response.js +14 -0
- package/dist/esm/models/objective-weight-update.d.ts +24 -0
- package/dist/esm/models/objective-weight-update.js +14 -0
- package/dist/esm/models/validation-error-loc-inner.d.ts +18 -0
- package/dist/esm/models/validation-error-loc-inner.js +14 -0
- package/dist/esm/models/validation-error.d.ts +49 -0
- package/dist/esm/models/validation-error.js +14 -0
- package/dist/esm/models/value-framework-create.d.ts +30 -0
- package/dist/esm/models/value-framework-create.js +14 -0
- package/dist/esm/models/value-framework-response.d.ts +54 -0
- package/dist/esm/models/value-framework-response.js +14 -0
- package/dist/esm/models/value-framework-update.d.ts +30 -0
- package/dist/esm/models/value-framework-update.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/httpvalidation-error.d.ts +25 -0
- package/dist/models/httpvalidation-error.js +15 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +36 -0
- package/dist/models/measurement-type.d.ts +21 -0
- package/dist/models/measurement-type.js +25 -0
- package/dist/models/metric-costs-per-year-create.d.ts +48 -0
- package/dist/models/metric-costs-per-year-create.js +15 -0
- package/dist/models/metric-costs-per-year-response.d.ts +54 -0
- package/dist/models/metric-costs-per-year-response.js +15 -0
- package/dist/models/metric-costs-per-year-update.d.ts +30 -0
- package/dist/models/metric-costs-per-year-update.js +15 -0
- package/dist/models/metric-create.d.ts +68 -0
- package/dist/models/metric-create.js +15 -0
- package/dist/models/metric-response.d.ts +92 -0
- package/dist/models/metric-response.js +15 -0
- package/dist/models/metric-type.d.ts +22 -0
- package/dist/models/metric-type.js +26 -0
- package/dist/models/metric-update.d.ts +56 -0
- package/dist/models/metric-update.js +15 -0
- package/dist/models/objective-create.d.ts +30 -0
- package/dist/models/objective-create.js +15 -0
- package/dist/models/objective-response.d.ts +54 -0
- package/dist/models/objective-response.js +15 -0
- package/dist/models/objective-update.d.ts +30 -0
- package/dist/models/objective-update.js +15 -0
- package/dist/models/objective-weight-create.d.ts +36 -0
- package/dist/models/objective-weight-create.js +15 -0
- package/dist/models/objective-weight-response.d.ts +42 -0
- package/dist/models/objective-weight-response.js +15 -0
- package/dist/models/objective-weight-update.d.ts +24 -0
- package/dist/models/objective-weight-update.js +15 -0
- package/dist/models/validation-error-loc-inner.d.ts +18 -0
- package/dist/models/validation-error-loc-inner.js +15 -0
- package/dist/models/validation-error.d.ts +49 -0
- package/dist/models/validation-error.js +15 -0
- package/dist/models/value-framework-create.d.ts +30 -0
- package/dist/models/value-framework-create.js +15 -0
- package/dist/models/value-framework-response.d.ts +54 -0
- package/dist/models/value-framework-response.js +15 -0
- package/dist/models/value-framework-update.d.ts +30 -0
- package/dist/models/value-framework-update.js +15 -0
- package/index.ts +1 -1
- package/models/httpvalidation-error.ts +1 -1
- package/models/measurement-type.ts +1 -1
- package/models/metric-costs-per-year-create.ts +1 -1
- package/models/metric-costs-per-year-response.ts +1 -1
- package/models/metric-costs-per-year-update.ts +1 -1
- package/models/metric-create.ts +1 -1
- package/models/metric-response.ts +1 -1
- package/models/metric-type.ts +1 -1
- package/models/metric-update.ts +1 -1
- package/models/objective-create.ts +1 -1
- package/models/objective-response.ts +1 -1
- package/models/objective-update.ts +1 -1
- package/models/objective-weight-create.ts +1 -1
- package/models/objective-weight-response.ts +1 -1
- package/models/objective-weight-update.ts +1 -1
- package/models/validation-error-loc-inner.ts +1 -1
- package/models/validation-error.ts +1 -1
- package/models/value-framework-create.ts +1 -1
- package/models/value-framework-response.ts +1 -1
- package/models/value-framework-update.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { ObjectiveCreate } from '../models';
|
|
16
|
+
import { ObjectiveResponse } from '../models';
|
|
17
|
+
import { ObjectiveUpdate } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* ObjectiveApi - axios parameter creator
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const ObjectiveApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
25
|
+
* @summary Delete an objective
|
|
26
|
+
* @param {string} objectiveId UUID of the objective
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
deleteObjective: (objectiveId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve a single objective by its ID.
|
|
33
|
+
* @summary Get an objective by ID
|
|
34
|
+
* @param {string} objectiveId UUID of the objective
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
getObjectiveById: (objectiveId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieve a paginated list of all objectives.
|
|
41
|
+
* @summary List objectives
|
|
42
|
+
* @param {number} [offset] Number of records to skip
|
|
43
|
+
* @param {number} [limit] Max number of records to return
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
getObjectives: (offset?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
|
+
/**
|
|
49
|
+
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
50
|
+
* @summary Partially update an objective
|
|
51
|
+
* @param {string} objectiveId UUID of the objective
|
|
52
|
+
* @param {ObjectiveUpdate} objectiveUpdate
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
patchObjective: (objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
|
+
/**
|
|
58
|
+
* Create a new objective. Name must be unique and non-empty.
|
|
59
|
+
* @summary Create an objective
|
|
60
|
+
* @param {ObjectiveCreate} objectiveCreate
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
postObjective: (objectiveCreate: ObjectiveCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* ObjectiveApi - functional programming interface
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const ObjectiveApiFp: (configuration?: Configuration) => {
|
|
71
|
+
/**
|
|
72
|
+
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
73
|
+
* @summary Delete an objective
|
|
74
|
+
* @param {string} objectiveId UUID of the objective
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
deleteObjective(objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
79
|
+
/**
|
|
80
|
+
* Retrieve a single objective by its ID.
|
|
81
|
+
* @summary Get an objective by ID
|
|
82
|
+
* @param {string} objectiveId UUID of the objective
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
getObjectiveById(objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveResponse>>;
|
|
87
|
+
/**
|
|
88
|
+
* Retrieve a paginated list of all objectives.
|
|
89
|
+
* @summary List objectives
|
|
90
|
+
* @param {number} [offset] Number of records to skip
|
|
91
|
+
* @param {number} [limit] Max number of records to return
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
getObjectives(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectiveResponse>>>;
|
|
96
|
+
/**
|
|
97
|
+
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
98
|
+
* @summary Partially update an objective
|
|
99
|
+
* @param {string} objectiveId UUID of the objective
|
|
100
|
+
* @param {ObjectiveUpdate} objectiveUpdate
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
patchObjective(objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveResponse>>;
|
|
105
|
+
/**
|
|
106
|
+
* Create a new objective. Name must be unique and non-empty.
|
|
107
|
+
* @summary Create an objective
|
|
108
|
+
* @param {ObjectiveCreate} objectiveCreate
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
postObjective(objectiveCreate: ObjectiveCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveResponse>>;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* ObjectiveApi - factory interface
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export declare const ObjectiveApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
119
|
+
/**
|
|
120
|
+
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
121
|
+
* @summary Delete an objective
|
|
122
|
+
* @param {string} objectiveId UUID of the objective
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
deleteObjective(objectiveId: string, options?: any): AxiosPromise<void>;
|
|
127
|
+
/**
|
|
128
|
+
* Retrieve a single objective by its ID.
|
|
129
|
+
* @summary Get an objective by ID
|
|
130
|
+
* @param {string} objectiveId UUID of the objective
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
getObjectiveById(objectiveId: string, options?: any): AxiosPromise<ObjectiveResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* Retrieve a paginated list of all objectives.
|
|
137
|
+
* @summary List objectives
|
|
138
|
+
* @param {number} [offset] Number of records to skip
|
|
139
|
+
* @param {number} [limit] Max number of records to return
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
getObjectives(offset?: number, limit?: number, options?: any): AxiosPromise<Array<ObjectiveResponse>>;
|
|
144
|
+
/**
|
|
145
|
+
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
146
|
+
* @summary Partially update an objective
|
|
147
|
+
* @param {string} objectiveId UUID of the objective
|
|
148
|
+
* @param {ObjectiveUpdate} objectiveUpdate
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
patchObjective(objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?: any): AxiosPromise<ObjectiveResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* Create a new objective. Name must be unique and non-empty.
|
|
155
|
+
* @summary Create an objective
|
|
156
|
+
* @param {ObjectiveCreate} objectiveCreate
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
postObjective(objectiveCreate: ObjectiveCreate, options?: any): AxiosPromise<ObjectiveResponse>;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* ObjectiveApi - object-oriented interface
|
|
164
|
+
* @export
|
|
165
|
+
* @class ObjectiveApi
|
|
166
|
+
* @extends {BaseAPI}
|
|
167
|
+
*/
|
|
168
|
+
export declare class ObjectiveApi extends BaseAPI {
|
|
169
|
+
/**
|
|
170
|
+
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
171
|
+
* @summary Delete an objective
|
|
172
|
+
* @param {string} objectiveId UUID of the objective
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
* @memberof ObjectiveApi
|
|
176
|
+
*/
|
|
177
|
+
deleteObjective(objectiveId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
178
|
+
/**
|
|
179
|
+
* Retrieve a single objective by its ID.
|
|
180
|
+
* @summary Get an objective by ID
|
|
181
|
+
* @param {string} objectiveId UUID of the objective
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
* @memberof ObjectiveApi
|
|
185
|
+
*/
|
|
186
|
+
getObjectiveById(objectiveId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ObjectiveResponse, any, {}>>;
|
|
187
|
+
/**
|
|
188
|
+
* Retrieve a paginated list of all objectives.
|
|
189
|
+
* @summary List objectives
|
|
190
|
+
* @param {number} [offset] Number of records to skip
|
|
191
|
+
* @param {number} [limit] Max number of records to return
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
* @memberof ObjectiveApi
|
|
195
|
+
*/
|
|
196
|
+
getObjectives(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ObjectiveResponse[], any, {}>>;
|
|
197
|
+
/**
|
|
198
|
+
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
199
|
+
* @summary Partially update an objective
|
|
200
|
+
* @param {string} objectiveId UUID of the objective
|
|
201
|
+
* @param {ObjectiveUpdate} objectiveUpdate
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
* @memberof ObjectiveApi
|
|
205
|
+
*/
|
|
206
|
+
patchObjective(objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ObjectiveResponse, any, {}>>;
|
|
207
|
+
/**
|
|
208
|
+
* Create a new objective. Name must be unique and non-empty.
|
|
209
|
+
* @summary Create an objective
|
|
210
|
+
* @param {ObjectiveCreate} objectiveCreate
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
* @memberof ObjectiveApi
|
|
214
|
+
*/
|
|
215
|
+
postObjective(objectiveCreate: ObjectiveCreate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ObjectiveResponse, any, {}>>;
|
|
216
|
+
}
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Asset Investment Planning
|
|
6
|
+
* API for Asset Investment Planning
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.2.0-dev2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ObjectiveApi = exports.ObjectiveApiFactory = exports.ObjectiveApiFp = exports.ObjectiveApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* ObjectiveApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const ObjectiveApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
40
|
+
* @summary Delete an objective
|
|
41
|
+
* @param {string} objectiveId UUID of the objective
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
deleteObjective: (objectiveId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
// verify required parameter 'objectiveId' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('deleteObjective', 'objectiveId', objectiveId);
|
|
48
|
+
const localVarPath = `/objective/{objective_id}`
|
|
49
|
+
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
50
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
52
|
+
let baseOptions;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
}
|
|
56
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
57
|
+
const localVarHeaderParameter = {};
|
|
58
|
+
const localVarQueryParameter = {};
|
|
59
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
60
|
+
// oauth required
|
|
61
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
62
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
+
return {
|
|
66
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
70
|
+
/**
|
|
71
|
+
* Retrieve a single objective by its ID.
|
|
72
|
+
* @summary Get an objective by ID
|
|
73
|
+
* @param {string} objectiveId UUID of the objective
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
getObjectiveById: (objectiveId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
// verify required parameter 'objectiveId' is not null or undefined
|
|
79
|
+
(0, common_1.assertParamExists)('getObjectiveById', 'objectiveId', objectiveId);
|
|
80
|
+
const localVarPath = `/objective/{objective_id}`
|
|
81
|
+
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
82
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
84
|
+
let baseOptions;
|
|
85
|
+
if (configuration) {
|
|
86
|
+
baseOptions = configuration.baseOptions;
|
|
87
|
+
}
|
|
88
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
89
|
+
const localVarHeaderParameter = {};
|
|
90
|
+
const localVarQueryParameter = {};
|
|
91
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
92
|
+
// oauth required
|
|
93
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
94
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
95
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
97
|
+
return {
|
|
98
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
99
|
+
options: localVarRequestOptions,
|
|
100
|
+
};
|
|
101
|
+
}),
|
|
102
|
+
/**
|
|
103
|
+
* Retrieve a paginated list of all objectives.
|
|
104
|
+
* @summary List objectives
|
|
105
|
+
* @param {number} [offset] Number of records to skip
|
|
106
|
+
* @param {number} [limit] Max number of records to return
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
getObjectives: (offset, limit, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
const localVarPath = `/objective/`;
|
|
112
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
113
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
+
let baseOptions;
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
}
|
|
118
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
119
|
+
const localVarHeaderParameter = {};
|
|
120
|
+
const localVarQueryParameter = {};
|
|
121
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
122
|
+
// oauth required
|
|
123
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
124
|
+
if (offset !== undefined) {
|
|
125
|
+
localVarQueryParameter['offset'] = offset;
|
|
126
|
+
}
|
|
127
|
+
if (limit !== undefined) {
|
|
128
|
+
localVarQueryParameter['limit'] = limit;
|
|
129
|
+
}
|
|
130
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
132
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
133
|
+
return {
|
|
134
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
135
|
+
options: localVarRequestOptions,
|
|
136
|
+
};
|
|
137
|
+
}),
|
|
138
|
+
/**
|
|
139
|
+
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
140
|
+
* @summary Partially update an objective
|
|
141
|
+
* @param {string} objectiveId UUID of the objective
|
|
142
|
+
* @param {ObjectiveUpdate} objectiveUpdate
|
|
143
|
+
* @param {*} [options] Override http request option.
|
|
144
|
+
* @throws {RequiredError}
|
|
145
|
+
*/
|
|
146
|
+
patchObjective: (objectiveId, objectiveUpdate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
// verify required parameter 'objectiveId' is not null or undefined
|
|
148
|
+
(0, common_1.assertParamExists)('patchObjective', 'objectiveId', objectiveId);
|
|
149
|
+
// verify required parameter 'objectiveUpdate' is not null or undefined
|
|
150
|
+
(0, common_1.assertParamExists)('patchObjective', 'objectiveUpdate', objectiveUpdate);
|
|
151
|
+
const localVarPath = `/objective/{objective_id}`
|
|
152
|
+
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
153
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
155
|
+
let baseOptions;
|
|
156
|
+
if (configuration) {
|
|
157
|
+
baseOptions = configuration.baseOptions;
|
|
158
|
+
}
|
|
159
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
160
|
+
const localVarHeaderParameter = {};
|
|
161
|
+
const localVarQueryParameter = {};
|
|
162
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
163
|
+
// oauth required
|
|
164
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
165
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
166
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
168
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
169
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(objectiveUpdate, localVarRequestOptions, configuration);
|
|
170
|
+
return {
|
|
171
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
172
|
+
options: localVarRequestOptions,
|
|
173
|
+
};
|
|
174
|
+
}),
|
|
175
|
+
/**
|
|
176
|
+
* Create a new objective. Name must be unique and non-empty.
|
|
177
|
+
* @summary Create an objective
|
|
178
|
+
* @param {ObjectiveCreate} objectiveCreate
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
postObjective: (objectiveCreate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
// verify required parameter 'objectiveCreate' is not null or undefined
|
|
184
|
+
(0, common_1.assertParamExists)('postObjective', 'objectiveCreate', objectiveCreate);
|
|
185
|
+
const localVarPath = `/objective/`;
|
|
186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
188
|
+
let baseOptions;
|
|
189
|
+
if (configuration) {
|
|
190
|
+
baseOptions = configuration.baseOptions;
|
|
191
|
+
}
|
|
192
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
193
|
+
const localVarHeaderParameter = {};
|
|
194
|
+
const localVarQueryParameter = {};
|
|
195
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
196
|
+
// oauth required
|
|
197
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
198
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
199
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
202
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(objectiveCreate, localVarRequestOptions, configuration);
|
|
203
|
+
return {
|
|
204
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
205
|
+
options: localVarRequestOptions,
|
|
206
|
+
};
|
|
207
|
+
}),
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
exports.ObjectiveApiAxiosParamCreator = ObjectiveApiAxiosParamCreator;
|
|
211
|
+
/**
|
|
212
|
+
* ObjectiveApi - functional programming interface
|
|
213
|
+
* @export
|
|
214
|
+
*/
|
|
215
|
+
const ObjectiveApiFp = function (configuration) {
|
|
216
|
+
const localVarAxiosParamCreator = (0, exports.ObjectiveApiAxiosParamCreator)(configuration);
|
|
217
|
+
return {
|
|
218
|
+
/**
|
|
219
|
+
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
220
|
+
* @summary Delete an objective
|
|
221
|
+
* @param {string} objectiveId UUID of the objective
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
*/
|
|
225
|
+
deleteObjective(objectiveId, options) {
|
|
226
|
+
var _a, _b, _c;
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteObjective(objectiveId, options);
|
|
229
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
230
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['ObjectiveApi.deleteObjective']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
231
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
232
|
+
});
|
|
233
|
+
},
|
|
234
|
+
/**
|
|
235
|
+
* Retrieve a single objective by its ID.
|
|
236
|
+
* @summary Get an objective by ID
|
|
237
|
+
* @param {string} objectiveId UUID of the objective
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
getObjectiveById(objectiveId, options) {
|
|
242
|
+
var _a, _b, _c;
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getObjectiveById(objectiveId, options);
|
|
245
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
246
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['ObjectiveApi.getObjectiveById']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
247
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
248
|
+
});
|
|
249
|
+
},
|
|
250
|
+
/**
|
|
251
|
+
* Retrieve a paginated list of all objectives.
|
|
252
|
+
* @summary List objectives
|
|
253
|
+
* @param {number} [offset] Number of records to skip
|
|
254
|
+
* @param {number} [limit] Max number of records to return
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
*/
|
|
258
|
+
getObjectives(offset, limit, options) {
|
|
259
|
+
var _a, _b, _c;
|
|
260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getObjectives(offset, limit, options);
|
|
262
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
263
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['ObjectiveApi.getObjectives']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
264
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
265
|
+
});
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
269
|
+
* @summary Partially update an objective
|
|
270
|
+
* @param {string} objectiveId UUID of the objective
|
|
271
|
+
* @param {ObjectiveUpdate} objectiveUpdate
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
patchObjective(objectiveId, objectiveUpdate, options) {
|
|
276
|
+
var _a, _b, _c;
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.patchObjective(objectiveId, objectiveUpdate, options);
|
|
279
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
280
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['ObjectiveApi.patchObjective']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
281
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
282
|
+
});
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
* Create a new objective. Name must be unique and non-empty.
|
|
286
|
+
* @summary Create an objective
|
|
287
|
+
* @param {ObjectiveCreate} objectiveCreate
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
postObjective(objectiveCreate, options) {
|
|
292
|
+
var _a, _b, _c;
|
|
293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postObjective(objectiveCreate, options);
|
|
295
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
296
|
+
const operationBasePath = (_c = (_b = base_1.operationServerMap['ObjectiveApi.postObjective']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
297
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
298
|
+
});
|
|
299
|
+
},
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
exports.ObjectiveApiFp = ObjectiveApiFp;
|
|
303
|
+
/**
|
|
304
|
+
* ObjectiveApi - factory interface
|
|
305
|
+
* @export
|
|
306
|
+
*/
|
|
307
|
+
const ObjectiveApiFactory = function (configuration, basePath, axios) {
|
|
308
|
+
const localVarFp = (0, exports.ObjectiveApiFp)(configuration);
|
|
309
|
+
return {
|
|
310
|
+
/**
|
|
311
|
+
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
312
|
+
* @summary Delete an objective
|
|
313
|
+
* @param {string} objectiveId UUID of the objective
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
*/
|
|
317
|
+
deleteObjective(objectiveId, options) {
|
|
318
|
+
return localVarFp.deleteObjective(objectiveId, options).then((request) => request(axios, basePath));
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
* Retrieve a single objective by its ID.
|
|
322
|
+
* @summary Get an objective by ID
|
|
323
|
+
* @param {string} objectiveId UUID of the objective
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
*/
|
|
327
|
+
getObjectiveById(objectiveId, options) {
|
|
328
|
+
return localVarFp.getObjectiveById(objectiveId, options).then((request) => request(axios, basePath));
|
|
329
|
+
},
|
|
330
|
+
/**
|
|
331
|
+
* Retrieve a paginated list of all objectives.
|
|
332
|
+
* @summary List objectives
|
|
333
|
+
* @param {number} [offset] Number of records to skip
|
|
334
|
+
* @param {number} [limit] Max number of records to return
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
getObjectives(offset, limit, options) {
|
|
339
|
+
return localVarFp.getObjectives(offset, limit, options).then((request) => request(axios, basePath));
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
343
|
+
* @summary Partially update an objective
|
|
344
|
+
* @param {string} objectiveId UUID of the objective
|
|
345
|
+
* @param {ObjectiveUpdate} objectiveUpdate
|
|
346
|
+
* @param {*} [options] Override http request option.
|
|
347
|
+
* @throws {RequiredError}
|
|
348
|
+
*/
|
|
349
|
+
patchObjective(objectiveId, objectiveUpdate, options) {
|
|
350
|
+
return localVarFp.patchObjective(objectiveId, objectiveUpdate, options).then((request) => request(axios, basePath));
|
|
351
|
+
},
|
|
352
|
+
/**
|
|
353
|
+
* Create a new objective. Name must be unique and non-empty.
|
|
354
|
+
* @summary Create an objective
|
|
355
|
+
* @param {ObjectiveCreate} objectiveCreate
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
*/
|
|
359
|
+
postObjective(objectiveCreate, options) {
|
|
360
|
+
return localVarFp.postObjective(objectiveCreate, options).then((request) => request(axios, basePath));
|
|
361
|
+
},
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
exports.ObjectiveApiFactory = ObjectiveApiFactory;
|
|
365
|
+
/**
|
|
366
|
+
* ObjectiveApi - object-oriented interface
|
|
367
|
+
* @export
|
|
368
|
+
* @class ObjectiveApi
|
|
369
|
+
* @extends {BaseAPI}
|
|
370
|
+
*/
|
|
371
|
+
class ObjectiveApi extends base_1.BaseAPI {
|
|
372
|
+
/**
|
|
373
|
+
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
374
|
+
* @summary Delete an objective
|
|
375
|
+
* @param {string} objectiveId UUID of the objective
|
|
376
|
+
* @param {*} [options] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
* @memberof ObjectiveApi
|
|
379
|
+
*/
|
|
380
|
+
deleteObjective(objectiveId, options) {
|
|
381
|
+
return (0, exports.ObjectiveApiFp)(this.configuration).deleteObjective(objectiveId, options).then((request) => request(this.axios, this.basePath));
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Retrieve a single objective by its ID.
|
|
385
|
+
* @summary Get an objective by ID
|
|
386
|
+
* @param {string} objectiveId UUID of the objective
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
* @memberof ObjectiveApi
|
|
390
|
+
*/
|
|
391
|
+
getObjectiveById(objectiveId, options) {
|
|
392
|
+
return (0, exports.ObjectiveApiFp)(this.configuration).getObjectiveById(objectiveId, options).then((request) => request(this.axios, this.basePath));
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Retrieve a paginated list of all objectives.
|
|
396
|
+
* @summary List objectives
|
|
397
|
+
* @param {number} [offset] Number of records to skip
|
|
398
|
+
* @param {number} [limit] Max number of records to return
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
* @memberof ObjectiveApi
|
|
402
|
+
*/
|
|
403
|
+
getObjectives(offset, limit, options) {
|
|
404
|
+
return (0, exports.ObjectiveApiFp)(this.configuration).getObjectives(offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
408
|
+
* @summary Partially update an objective
|
|
409
|
+
* @param {string} objectiveId UUID of the objective
|
|
410
|
+
* @param {ObjectiveUpdate} objectiveUpdate
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
* @memberof ObjectiveApi
|
|
414
|
+
*/
|
|
415
|
+
patchObjective(objectiveId, objectiveUpdate, options) {
|
|
416
|
+
return (0, exports.ObjectiveApiFp)(this.configuration).patchObjective(objectiveId, objectiveUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Create a new objective. Name must be unique and non-empty.
|
|
420
|
+
* @summary Create an objective
|
|
421
|
+
* @param {ObjectiveCreate} objectiveCreate
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
* @memberof ObjectiveApi
|
|
425
|
+
*/
|
|
426
|
+
postObjective(objectiveCreate, options) {
|
|
427
|
+
return (0, exports.ObjectiveApiFp)(this.configuration).postObjective(objectiveCreate, options).then((request) => request(this.axios, this.basePath));
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
exports.ObjectiveApi = ObjectiveApi;
|