@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.
Files changed (161) hide show
  1. package/README.md +2 -2
  2. package/api/default-api.ts +1 -1
  3. package/api/metric-api.ts +1 -1
  4. package/api/metric-costs-per-year-api.ts +1 -1
  5. package/api/objective-api.ts +1 -1
  6. package/api/objective-weight-api.ts +1 -1
  7. package/api/value-framework-api.ts +1 -1
  8. package/api.ts +1 -1
  9. package/base.ts +1 -1
  10. package/common.ts +1 -1
  11. package/configuration.ts +1 -1
  12. package/dist/api/default-api.d.ts +69 -0
  13. package/dist/api/default-api.js +128 -0
  14. package/dist/api/metric-api.d.ts +216 -0
  15. package/dist/api/metric-api.js +430 -0
  16. package/dist/api/metric-costs-per-year-api.d.ts +240 -0
  17. package/dist/api/metric-costs-per-year-api.js +472 -0
  18. package/dist/api/objective-api.d.ts +216 -0
  19. package/dist/api/objective-api.js +430 -0
  20. package/dist/api/objective-weight-api.d.ts +228 -0
  21. package/dist/api/objective-weight-api.js +451 -0
  22. package/dist/api/value-framework-api.d.ts +216 -0
  23. package/dist/api/value-framework-api.js +430 -0
  24. package/dist/api.d.ts +17 -0
  25. package/dist/api.js +35 -0
  26. package/dist/base.d.ts +66 -0
  27. package/dist/base.js +65 -0
  28. package/dist/common.d.ts +65 -0
  29. package/dist/common.js +161 -0
  30. package/dist/configuration.d.ts +91 -0
  31. package/dist/configuration.js +43 -0
  32. package/dist/esm/api/default-api.d.ts +69 -0
  33. package/dist/esm/api/default-api.js +121 -0
  34. package/dist/esm/api/metric-api.d.ts +216 -0
  35. package/dist/esm/api/metric-api.js +423 -0
  36. package/dist/esm/api/metric-costs-per-year-api.d.ts +240 -0
  37. package/dist/esm/api/metric-costs-per-year-api.js +465 -0
  38. package/dist/esm/api/objective-api.d.ts +216 -0
  39. package/dist/esm/api/objective-api.js +423 -0
  40. package/dist/esm/api/objective-weight-api.d.ts +228 -0
  41. package/dist/esm/api/objective-weight-api.js +444 -0
  42. package/dist/esm/api/value-framework-api.d.ts +216 -0
  43. package/dist/esm/api/value-framework-api.js +423 -0
  44. package/dist/esm/api.d.ts +17 -0
  45. package/dist/esm/api.js +19 -0
  46. package/dist/esm/base.d.ts +66 -0
  47. package/dist/esm/base.js +60 -0
  48. package/dist/esm/common.d.ts +65 -0
  49. package/dist/esm/common.js +149 -0
  50. package/dist/esm/configuration.d.ts +91 -0
  51. package/dist/esm/configuration.js +39 -0
  52. package/dist/esm/index.d.ts +14 -0
  53. package/dist/esm/index.js +16 -0
  54. package/dist/esm/models/httpvalidation-error.d.ts +25 -0
  55. package/dist/esm/models/httpvalidation-error.js +14 -0
  56. package/dist/esm/models/index.d.ts +20 -0
  57. package/dist/esm/models/index.js +20 -0
  58. package/dist/esm/models/measurement-type.d.ts +21 -0
  59. package/dist/esm/models/measurement-type.js +22 -0
  60. package/dist/esm/models/metric-costs-per-year-create.d.ts +48 -0
  61. package/dist/esm/models/metric-costs-per-year-create.js +14 -0
  62. package/dist/esm/models/metric-costs-per-year-response.d.ts +54 -0
  63. package/dist/esm/models/metric-costs-per-year-response.js +14 -0
  64. package/dist/esm/models/metric-costs-per-year-update.d.ts +30 -0
  65. package/dist/esm/models/metric-costs-per-year-update.js +14 -0
  66. package/dist/esm/models/metric-create.d.ts +68 -0
  67. package/dist/esm/models/metric-create.js +14 -0
  68. package/dist/esm/models/metric-response.d.ts +92 -0
  69. package/dist/esm/models/metric-response.js +14 -0
  70. package/dist/esm/models/metric-type.d.ts +22 -0
  71. package/dist/esm/models/metric-type.js +23 -0
  72. package/dist/esm/models/metric-update.d.ts +56 -0
  73. package/dist/esm/models/metric-update.js +14 -0
  74. package/dist/esm/models/objective-create.d.ts +30 -0
  75. package/dist/esm/models/objective-create.js +14 -0
  76. package/dist/esm/models/objective-response.d.ts +54 -0
  77. package/dist/esm/models/objective-response.js +14 -0
  78. package/dist/esm/models/objective-update.d.ts +30 -0
  79. package/dist/esm/models/objective-update.js +14 -0
  80. package/dist/esm/models/objective-weight-create.d.ts +36 -0
  81. package/dist/esm/models/objective-weight-create.js +14 -0
  82. package/dist/esm/models/objective-weight-response.d.ts +42 -0
  83. package/dist/esm/models/objective-weight-response.js +14 -0
  84. package/dist/esm/models/objective-weight-update.d.ts +24 -0
  85. package/dist/esm/models/objective-weight-update.js +14 -0
  86. package/dist/esm/models/validation-error-loc-inner.d.ts +18 -0
  87. package/dist/esm/models/validation-error-loc-inner.js +14 -0
  88. package/dist/esm/models/validation-error.d.ts +49 -0
  89. package/dist/esm/models/validation-error.js +14 -0
  90. package/dist/esm/models/value-framework-create.d.ts +30 -0
  91. package/dist/esm/models/value-framework-create.js +14 -0
  92. package/dist/esm/models/value-framework-response.d.ts +54 -0
  93. package/dist/esm/models/value-framework-response.js +14 -0
  94. package/dist/esm/models/value-framework-update.d.ts +30 -0
  95. package/dist/esm/models/value-framework-update.js +14 -0
  96. package/dist/index.d.ts +14 -0
  97. package/dist/index.js +32 -0
  98. package/dist/models/httpvalidation-error.d.ts +25 -0
  99. package/dist/models/httpvalidation-error.js +15 -0
  100. package/dist/models/index.d.ts +20 -0
  101. package/dist/models/index.js +36 -0
  102. package/dist/models/measurement-type.d.ts +21 -0
  103. package/dist/models/measurement-type.js +25 -0
  104. package/dist/models/metric-costs-per-year-create.d.ts +48 -0
  105. package/dist/models/metric-costs-per-year-create.js +15 -0
  106. package/dist/models/metric-costs-per-year-response.d.ts +54 -0
  107. package/dist/models/metric-costs-per-year-response.js +15 -0
  108. package/dist/models/metric-costs-per-year-update.d.ts +30 -0
  109. package/dist/models/metric-costs-per-year-update.js +15 -0
  110. package/dist/models/metric-create.d.ts +68 -0
  111. package/dist/models/metric-create.js +15 -0
  112. package/dist/models/metric-response.d.ts +92 -0
  113. package/dist/models/metric-response.js +15 -0
  114. package/dist/models/metric-type.d.ts +22 -0
  115. package/dist/models/metric-type.js +26 -0
  116. package/dist/models/metric-update.d.ts +56 -0
  117. package/dist/models/metric-update.js +15 -0
  118. package/dist/models/objective-create.d.ts +30 -0
  119. package/dist/models/objective-create.js +15 -0
  120. package/dist/models/objective-response.d.ts +54 -0
  121. package/dist/models/objective-response.js +15 -0
  122. package/dist/models/objective-update.d.ts +30 -0
  123. package/dist/models/objective-update.js +15 -0
  124. package/dist/models/objective-weight-create.d.ts +36 -0
  125. package/dist/models/objective-weight-create.js +15 -0
  126. package/dist/models/objective-weight-response.d.ts +42 -0
  127. package/dist/models/objective-weight-response.js +15 -0
  128. package/dist/models/objective-weight-update.d.ts +24 -0
  129. package/dist/models/objective-weight-update.js +15 -0
  130. package/dist/models/validation-error-loc-inner.d.ts +18 -0
  131. package/dist/models/validation-error-loc-inner.js +15 -0
  132. package/dist/models/validation-error.d.ts +49 -0
  133. package/dist/models/validation-error.js +15 -0
  134. package/dist/models/value-framework-create.d.ts +30 -0
  135. package/dist/models/value-framework-create.js +15 -0
  136. package/dist/models/value-framework-response.d.ts +54 -0
  137. package/dist/models/value-framework-response.js +15 -0
  138. package/dist/models/value-framework-update.d.ts +30 -0
  139. package/dist/models/value-framework-update.js +15 -0
  140. package/index.ts +1 -1
  141. package/models/httpvalidation-error.ts +1 -1
  142. package/models/measurement-type.ts +1 -1
  143. package/models/metric-costs-per-year-create.ts +1 -1
  144. package/models/metric-costs-per-year-response.ts +1 -1
  145. package/models/metric-costs-per-year-update.ts +1 -1
  146. package/models/metric-create.ts +1 -1
  147. package/models/metric-response.ts +1 -1
  148. package/models/metric-type.ts +1 -1
  149. package/models/metric-update.ts +1 -1
  150. package/models/objective-create.ts +1 -1
  151. package/models/objective-response.ts +1 -1
  152. package/models/objective-update.ts +1 -1
  153. package/models/objective-weight-create.ts +1 -1
  154. package/models/objective-weight-response.ts +1 -1
  155. package/models/objective-weight-update.ts +1 -1
  156. package/models/validation-error-loc-inner.ts +1 -1
  157. package/models/validation-error.ts +1 -1
  158. package/models/value-framework-create.ts +1 -1
  159. package/models/value-framework-response.ts +1 -1
  160. package/models/value-framework-update.ts +1 -1
  161. package/package.json +1 -1
@@ -0,0 +1,472 @@
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.MetricCostsPerYearApi = exports.MetricCostsPerYearApiFactory = exports.MetricCostsPerYearApiFp = exports.MetricCostsPerYearApiAxiosParamCreator = 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
+ * MetricCostsPerYearApi - axios parameter creator
34
+ * @export
35
+ */
36
+ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
37
+ return {
38
+ /**
39
+ * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
40
+ * @summary Delete metric costs for a year
41
+ * @param {string} metricId UUID of the metric
42
+ * @param {string} frameworkId UUID of the value framework
43
+ * @param {number} year Year (1600-3000)
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ deleteMetricCost: (metricId, frameworkId, year, options = {}) => __awaiter(this, void 0, void 0, function* () {
48
+ // verify required parameter 'metricId' is not null or undefined
49
+ (0, common_1.assertParamExists)('deleteMetricCost', 'metricId', metricId);
50
+ // verify required parameter 'frameworkId' is not null or undefined
51
+ (0, common_1.assertParamExists)('deleteMetricCost', 'frameworkId', frameworkId);
52
+ // verify required parameter 'year' is not null or undefined
53
+ (0, common_1.assertParamExists)('deleteMetricCost', 'year', year);
54
+ const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
55
+ .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
56
+ .replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
57
+ .replace(`{${"year"}}`, encodeURIComponent(String(year)));
58
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
59
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
60
+ let baseOptions;
61
+ if (configuration) {
62
+ baseOptions = configuration.baseOptions;
63
+ }
64
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
65
+ const localVarHeaderParameter = {};
66
+ const localVarQueryParameter = {};
67
+ // authentication OAuth2AuthorizationCodeBearer required
68
+ // oauth required
69
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
70
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
71
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
73
+ return {
74
+ url: (0, common_1.toPathString)(localVarUrlObj),
75
+ options: localVarRequestOptions,
76
+ };
77
+ }),
78
+ /**
79
+ * Retrieve cost data for a specific metric within a framework for a given year.
80
+ * @summary Get a yearly metric cost by metric, framework, and year
81
+ * @param {string} metricId UUID of the metric
82
+ * @param {string} frameworkId UUID of the value framework
83
+ * @param {number} year Year (1600-3000)
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ getMetricCostByKeys: (metricId, frameworkId, year, options = {}) => __awaiter(this, void 0, void 0, function* () {
88
+ // verify required parameter 'metricId' is not null or undefined
89
+ (0, common_1.assertParamExists)('getMetricCostByKeys', 'metricId', metricId);
90
+ // verify required parameter 'frameworkId' is not null or undefined
91
+ (0, common_1.assertParamExists)('getMetricCostByKeys', 'frameworkId', frameworkId);
92
+ // verify required parameter 'year' is not null or undefined
93
+ (0, common_1.assertParamExists)('getMetricCostByKeys', 'year', year);
94
+ const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
95
+ .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
96
+ .replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
97
+ .replace(`{${"year"}}`, encodeURIComponent(String(year)));
98
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
99
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
100
+ let baseOptions;
101
+ if (configuration) {
102
+ baseOptions = configuration.baseOptions;
103
+ }
104
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
105
+ const localVarHeaderParameter = {};
106
+ const localVarQueryParameter = {};
107
+ // authentication OAuth2AuthorizationCodeBearer required
108
+ // oauth required
109
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
110
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
111
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
113
+ return {
114
+ url: (0, common_1.toPathString)(localVarUrlObj),
115
+ options: localVarRequestOptions,
116
+ };
117
+ }),
118
+ /**
119
+ * Retrieve a paginated list of all yearly metric cost overrides.
120
+ * @summary List yearly metric costs
121
+ * @param {number} [offset] Number of records to skip
122
+ * @param {number} [limit] Max number of records to return
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ getMetricCosts: (offset, limit, options = {}) => __awaiter(this, void 0, void 0, function* () {
127
+ const localVarPath = `/metric_costs_per_year/`;
128
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
129
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
130
+ let baseOptions;
131
+ if (configuration) {
132
+ baseOptions = configuration.baseOptions;
133
+ }
134
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
135
+ const localVarHeaderParameter = {};
136
+ const localVarQueryParameter = {};
137
+ // authentication OAuth2AuthorizationCodeBearer required
138
+ // oauth required
139
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
140
+ if (offset !== undefined) {
141
+ localVarQueryParameter['offset'] = offset;
142
+ }
143
+ if (limit !== undefined) {
144
+ localVarQueryParameter['limit'] = limit;
145
+ }
146
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
147
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
148
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
149
+ return {
150
+ url: (0, common_1.toPathString)(localVarUrlObj),
151
+ options: localVarRequestOptions,
152
+ };
153
+ }),
154
+ /**
155
+ * Update the perceived and/or direct cost of a metric for a specific year and framework. Identified by the composite key (metric_id, framework_id, year).
156
+ * @summary Partially update metric costs for a year
157
+ * @param {string} metricId UUID of the metric
158
+ * @param {string} frameworkId UUID of the value framework
159
+ * @param {number} year Year (1600-3000)
160
+ * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ patchMetricCost: (metricId, frameworkId, year, metricCostsPerYearUpdate, options = {}) => __awaiter(this, void 0, void 0, function* () {
165
+ // verify required parameter 'metricId' is not null or undefined
166
+ (0, common_1.assertParamExists)('patchMetricCost', 'metricId', metricId);
167
+ // verify required parameter 'frameworkId' is not null or undefined
168
+ (0, common_1.assertParamExists)('patchMetricCost', 'frameworkId', frameworkId);
169
+ // verify required parameter 'year' is not null or undefined
170
+ (0, common_1.assertParamExists)('patchMetricCost', 'year', year);
171
+ // verify required parameter 'metricCostsPerYearUpdate' is not null or undefined
172
+ (0, common_1.assertParamExists)('patchMetricCost', 'metricCostsPerYearUpdate', metricCostsPerYearUpdate);
173
+ const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
174
+ .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
175
+ .replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
176
+ .replace(`{${"year"}}`, encodeURIComponent(String(year)));
177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
179
+ let baseOptions;
180
+ if (configuration) {
181
+ baseOptions = configuration.baseOptions;
182
+ }
183
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
184
+ const localVarHeaderParameter = {};
185
+ const localVarQueryParameter = {};
186
+ // authentication OAuth2AuthorizationCodeBearer required
187
+ // oauth required
188
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
189
+ localVarHeaderParameter['Content-Type'] = 'application/json';
190
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
191
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
193
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(metricCostsPerYearUpdate, localVarRequestOptions, configuration);
194
+ return {
195
+ url: (0, common_1.toPathString)(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ };
198
+ }),
199
+ /**
200
+ * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
201
+ * @summary Create a yearly metric cost
202
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ postMetricCost: (metricCostsPerYearCreate, options = {}) => __awaiter(this, void 0, void 0, function* () {
207
+ // verify required parameter 'metricCostsPerYearCreate' is not null or undefined
208
+ (0, common_1.assertParamExists)('postMetricCost', 'metricCostsPerYearCreate', metricCostsPerYearCreate);
209
+ const localVarPath = `/metric_costs_per_year/`;
210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ let baseOptions;
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ }
216
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
217
+ const localVarHeaderParameter = {};
218
+ const localVarQueryParameter = {};
219
+ // authentication OAuth2AuthorizationCodeBearer required
220
+ // oauth required
221
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
222
+ localVarHeaderParameter['Content-Type'] = 'application/json';
223
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
225
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
226
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(metricCostsPerYearCreate, localVarRequestOptions, configuration);
227
+ return {
228
+ url: (0, common_1.toPathString)(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ };
231
+ }),
232
+ };
233
+ };
234
+ exports.MetricCostsPerYearApiAxiosParamCreator = MetricCostsPerYearApiAxiosParamCreator;
235
+ /**
236
+ * MetricCostsPerYearApi - functional programming interface
237
+ * @export
238
+ */
239
+ const MetricCostsPerYearApiFp = function (configuration) {
240
+ const localVarAxiosParamCreator = (0, exports.MetricCostsPerYearApiAxiosParamCreator)(configuration);
241
+ return {
242
+ /**
243
+ * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
244
+ * @summary Delete metric costs for a year
245
+ * @param {string} metricId UUID of the metric
246
+ * @param {string} frameworkId UUID of the value framework
247
+ * @param {number} year Year (1600-3000)
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ deleteMetricCost(metricId, frameworkId, year, options) {
252
+ var _a, _b, _c;
253
+ return __awaiter(this, void 0, void 0, function* () {
254
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteMetricCost(metricId, frameworkId, year, options);
255
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
256
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.deleteMetricCost']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
257
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
258
+ });
259
+ },
260
+ /**
261
+ * Retrieve cost data for a specific metric within a framework for a given year.
262
+ * @summary Get a yearly metric cost by metric, framework, and year
263
+ * @param {string} metricId UUID of the metric
264
+ * @param {string} frameworkId UUID of the value framework
265
+ * @param {number} year Year (1600-3000)
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ getMetricCostByKeys(metricId, frameworkId, year, options) {
270
+ var _a, _b, _c;
271
+ return __awaiter(this, void 0, void 0, function* () {
272
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricCostByKeys(metricId, frameworkId, year, options);
273
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
274
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.getMetricCostByKeys']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
275
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
276
+ });
277
+ },
278
+ /**
279
+ * Retrieve a paginated list of all yearly metric cost overrides.
280
+ * @summary List yearly metric costs
281
+ * @param {number} [offset] Number of records to skip
282
+ * @param {number} [limit] Max number of records to return
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ getMetricCosts(offset, limit, options) {
287
+ var _a, _b, _c;
288
+ return __awaiter(this, void 0, void 0, function* () {
289
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricCosts(offset, limit, options);
290
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
291
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.getMetricCosts']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
292
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
293
+ });
294
+ },
295
+ /**
296
+ * Update the perceived and/or direct cost of a metric for a specific year and framework. Identified by the composite key (metric_id, framework_id, year).
297
+ * @summary Partially update metric costs for a year
298
+ * @param {string} metricId UUID of the metric
299
+ * @param {string} frameworkId UUID of the value framework
300
+ * @param {number} year Year (1600-3000)
301
+ * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options) {
306
+ var _a, _b, _c;
307
+ return __awaiter(this, void 0, void 0, function* () {
308
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options);
309
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
310
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.patchMetricCost']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
311
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
312
+ });
313
+ },
314
+ /**
315
+ * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
316
+ * @summary Create a yearly metric cost
317
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ postMetricCost(metricCostsPerYearCreate, options) {
322
+ var _a, _b, _c;
323
+ return __awaiter(this, void 0, void 0, function* () {
324
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postMetricCost(metricCostsPerYearCreate, options);
325
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
326
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.postMetricCost']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
327
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
328
+ });
329
+ },
330
+ };
331
+ };
332
+ exports.MetricCostsPerYearApiFp = MetricCostsPerYearApiFp;
333
+ /**
334
+ * MetricCostsPerYearApi - factory interface
335
+ * @export
336
+ */
337
+ const MetricCostsPerYearApiFactory = function (configuration, basePath, axios) {
338
+ const localVarFp = (0, exports.MetricCostsPerYearApiFp)(configuration);
339
+ return {
340
+ /**
341
+ * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
342
+ * @summary Delete metric costs for a year
343
+ * @param {string} metricId UUID of the metric
344
+ * @param {string} frameworkId UUID of the value framework
345
+ * @param {number} year Year (1600-3000)
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ deleteMetricCost(metricId, frameworkId, year, options) {
350
+ return localVarFp.deleteMetricCost(metricId, frameworkId, year, options).then((request) => request(axios, basePath));
351
+ },
352
+ /**
353
+ * Retrieve cost data for a specific metric within a framework for a given year.
354
+ * @summary Get a yearly metric cost by metric, framework, and year
355
+ * @param {string} metricId UUID of the metric
356
+ * @param {string} frameworkId UUID of the value framework
357
+ * @param {number} year Year (1600-3000)
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ getMetricCostByKeys(metricId, frameworkId, year, options) {
362
+ return localVarFp.getMetricCostByKeys(metricId, frameworkId, year, options).then((request) => request(axios, basePath));
363
+ },
364
+ /**
365
+ * Retrieve a paginated list of all yearly metric cost overrides.
366
+ * @summary List yearly metric costs
367
+ * @param {number} [offset] Number of records to skip
368
+ * @param {number} [limit] Max number of records to return
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ getMetricCosts(offset, limit, options) {
373
+ return localVarFp.getMetricCosts(offset, limit, options).then((request) => request(axios, basePath));
374
+ },
375
+ /**
376
+ * Update the perceived and/or direct cost of a metric for a specific year and framework. Identified by the composite key (metric_id, framework_id, year).
377
+ * @summary Partially update metric costs for a year
378
+ * @param {string} metricId UUID of the metric
379
+ * @param {string} frameworkId UUID of the value framework
380
+ * @param {number} year Year (1600-3000)
381
+ * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options) {
386
+ return localVarFp.patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options).then((request) => request(axios, basePath));
387
+ },
388
+ /**
389
+ * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
390
+ * @summary Create a yearly metric cost
391
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ postMetricCost(metricCostsPerYearCreate, options) {
396
+ return localVarFp.postMetricCost(metricCostsPerYearCreate, options).then((request) => request(axios, basePath));
397
+ },
398
+ };
399
+ };
400
+ exports.MetricCostsPerYearApiFactory = MetricCostsPerYearApiFactory;
401
+ /**
402
+ * MetricCostsPerYearApi - object-oriented interface
403
+ * @export
404
+ * @class MetricCostsPerYearApi
405
+ * @extends {BaseAPI}
406
+ */
407
+ class MetricCostsPerYearApi extends base_1.BaseAPI {
408
+ /**
409
+ * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
410
+ * @summary Delete metric costs for a year
411
+ * @param {string} metricId UUID of the metric
412
+ * @param {string} frameworkId UUID of the value framework
413
+ * @param {number} year Year (1600-3000)
414
+ * @param {*} [options] Override http request option.
415
+ * @throws {RequiredError}
416
+ * @memberof MetricCostsPerYearApi
417
+ */
418
+ deleteMetricCost(metricId, frameworkId, year, options) {
419
+ return (0, exports.MetricCostsPerYearApiFp)(this.configuration).deleteMetricCost(metricId, frameworkId, year, options).then((request) => request(this.axios, this.basePath));
420
+ }
421
+ /**
422
+ * Retrieve cost data for a specific metric within a framework for a given year.
423
+ * @summary Get a yearly metric cost by metric, framework, and year
424
+ * @param {string} metricId UUID of the metric
425
+ * @param {string} frameworkId UUID of the value framework
426
+ * @param {number} year Year (1600-3000)
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ * @memberof MetricCostsPerYearApi
430
+ */
431
+ getMetricCostByKeys(metricId, frameworkId, year, options) {
432
+ return (0, exports.MetricCostsPerYearApiFp)(this.configuration).getMetricCostByKeys(metricId, frameworkId, year, options).then((request) => request(this.axios, this.basePath));
433
+ }
434
+ /**
435
+ * Retrieve a paginated list of all yearly metric cost overrides.
436
+ * @summary List yearly metric costs
437
+ * @param {number} [offset] Number of records to skip
438
+ * @param {number} [limit] Max number of records to return
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ * @memberof MetricCostsPerYearApi
442
+ */
443
+ getMetricCosts(offset, limit, options) {
444
+ return (0, exports.MetricCostsPerYearApiFp)(this.configuration).getMetricCosts(offset, limit, options).then((request) => request(this.axios, this.basePath));
445
+ }
446
+ /**
447
+ * Update the perceived and/or direct cost of a metric for a specific year and framework. Identified by the composite key (metric_id, framework_id, year).
448
+ * @summary Partially update metric costs for a year
449
+ * @param {string} metricId UUID of the metric
450
+ * @param {string} frameworkId UUID of the value framework
451
+ * @param {number} year Year (1600-3000)
452
+ * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ * @memberof MetricCostsPerYearApi
456
+ */
457
+ patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options) {
458
+ return (0, exports.MetricCostsPerYearApiFp)(this.configuration).patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options).then((request) => request(this.axios, this.basePath));
459
+ }
460
+ /**
461
+ * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
462
+ * @summary Create a yearly metric cost
463
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ * @memberof MetricCostsPerYearApi
467
+ */
468
+ postMetricCost(metricCostsPerYearCreate, options) {
469
+ return (0, exports.MetricCostsPerYearApiFp)(this.configuration).postMetricCost(metricCostsPerYearCreate, options).then((request) => request(this.axios, this.basePath));
470
+ }
471
+ }
472
+ exports.MetricCostsPerYearApi = MetricCostsPerYearApi;