Skip to content

Commit 80e892c

Browse files
Merge pull request #105 from TaskarCenterAtUW/feature-generate-api-client
system:auto generated API client
2 parents 343416d + 09e3544 commit 80e892c

File tree

6 files changed

+47
-25
lines changed

6 files changed

+47
-25
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## tdei-client@1.1.81
1+
## tdei-client@1.1.82
22

33
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
44

@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
3636
_published:_
3737

3838
```
39-
npm install tdei-client@1.1.81 --save
39+
npm install tdei-client@1.1.82 --save
4040
```
4141

4242
_unPublished (not recommended):_

apis/metrics-api.ts

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,17 @@ export const MetricsApiAxiosParamCreator = function (configuration?: Configurati
7979
/**
8080
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
8181
* @summary Gets the Service metrics
82+
* @param {string} tdei_project_group_id Project Group id of the dataset.
8283
* @param {*} [options] Override http request option.
8384
* @throws {RequiredError}
8485
*/
85-
serviceMetrics: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
86-
const localVarPath = `/api/v1/service-metrics/{tdei_project_group_id}`;
86+
serviceMetrics: async (tdei_project_group_id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
87+
// verify required parameter 'tdei_project_group_id' is not null or undefined
88+
if (tdei_project_group_id === null || tdei_project_group_id === undefined) {
89+
throw new RequiredError('tdei_project_group_id','Required parameter tdei_project_group_id was null or undefined when calling serviceMetrics.');
90+
}
91+
const localVarPath = `/api/v1/service-metrics/{tdei_project_group_id}`
92+
.replace(`{${"tdei_project_group_id"}}`, encodeURIComponent(String(tdei_project_group_id)));
8793
// use dummy base URL string because the URL constructor only accepts absolute URLs.
8894
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
8995
let baseOptions;
@@ -203,11 +209,12 @@ export const MetricsApiFp = function(configuration?: Configuration) {
203209
/**
204210
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
205211
* @summary Gets the Service metrics
212+
* @param {string} tdei_project_group_id Project Group id of the dataset.
206213
* @param {*} [options] Override http request option.
207214
* @throws {RequiredError}
208215
*/
209-
async serviceMetrics(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>> {
210-
const localVarAxiosArgs = await MetricsApiAxiosParamCreator(configuration).serviceMetrics(options);
216+
async serviceMetrics(tdei_project_group_id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>> {
217+
const localVarAxiosArgs = await MetricsApiAxiosParamCreator(configuration).serviceMetrics(tdei_project_group_id, options);
211218
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
212219
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
213220
return axios.request(axiosRequestArgs);
@@ -247,11 +254,12 @@ export const MetricsApiFactory = function (configuration?: Configuration, basePa
247254
/**
248255
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
249256
* @summary Gets the Service metrics
257+
* @param {string} tdei_project_group_id Project Group id of the dataset.
250258
* @param {*} [options] Override http request option.
251259
* @throws {RequiredError}
252260
*/
253-
async serviceMetrics(options?: AxiosRequestConfig): Promise<AxiosResponse<any>> {
254-
return MetricsApiFp(configuration).serviceMetrics(options).then((request) => request(axios, basePath));
261+
async serviceMetrics(tdei_project_group_id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<any>> {
262+
return MetricsApiFp(configuration).serviceMetrics(tdei_project_group_id, options).then((request) => request(axios, basePath));
255263
},
256264
/**
257265
* Retrieves metrics related to the system and datasets within the TDEI platform. This endpoint provides an overview of usage statistics including the total number of users, services, and project groups, as well as a breakdown of services by type. Additionally, it gives details on dataset uploads, such as the total number of uploads and their cumulative size in megabytes.
@@ -285,12 +293,13 @@ export class MetricsApi extends BaseAPI {
285293
/**
286294
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
287295
* @summary Gets the Service metrics
296+
* @param {string} tdei_project_group_id Project Group id of the dataset.
288297
* @param {*} [options] Override http request option.
289298
* @throws {RequiredError}
290299
* @memberof MetricsApi
291300
*/
292-
public async serviceMetrics(options?: AxiosRequestConfig) : Promise<AxiosResponse<any>> {
293-
return MetricsApiFp(this.configuration).serviceMetrics(options).then((request) => request(this.axios, this.basePath));
301+
public async serviceMetrics(tdei_project_group_id: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<any>> {
302+
return MetricsApiFp(this.configuration).serviceMetrics(tdei_project_group_id, options).then((request) => request(this.axios, this.basePath));
294303
}
295304
/**
296305
* Retrieves metrics related to the system and datasets within the TDEI platform. This endpoint provides an overview of usage statistics including the total number of users, services, and project groups, as well as a breakdown of services by type. Additionally, it gives details on dataset uploads, such as the total number of uploads and their cumulative size in megabytes.

dist/apis/metrics-api.d.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ export declare const MetricsApiAxiosParamCreator: (configuration?: Configuration
2727
/**
2828
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
2929
* @summary Gets the Service metrics
30+
* @param {string} tdei_project_group_id Project Group id of the dataset.
3031
* @param {*} [options] Override http request option.
3132
* @throws {RequiredError}
3233
*/
33-
serviceMetrics: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
34+
serviceMetrics: (tdei_project_group_id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3435
/**
3536
* Retrieves metrics related to the system and datasets within the TDEI platform. This endpoint provides an overview of usage statistics including the total number of users, services, and project groups, as well as a breakdown of services by type. Additionally, it gives details on dataset uploads, such as the total number of uploads and their cumulative size in megabytes.
3637
* @summary Gets the system metrics
@@ -54,10 +55,11 @@ export declare const MetricsApiFp: (configuration?: Configuration) => {
5455
/**
5556
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
5657
* @summary Gets the Service metrics
58+
* @param {string} tdei_project_group_id Project Group id of the dataset.
5759
* @param {*} [options] Override http request option.
5860
* @throws {RequiredError}
5961
*/
60-
serviceMetrics(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>>;
62+
serviceMetrics(tdei_project_group_id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>>;
6163
/**
6264
* Retrieves metrics related to the system and datasets within the TDEI platform. This endpoint provides an overview of usage statistics including the total number of users, services, and project groups, as well as a breakdown of services by type. Additionally, it gives details on dataset uploads, such as the total number of uploads and their cumulative size in megabytes.
6365
* @summary Gets the system metrics
@@ -81,10 +83,11 @@ export declare const MetricsApiFactory: (configuration?: Configuration, basePath
8183
/**
8284
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
8385
* @summary Gets the Service metrics
86+
* @param {string} tdei_project_group_id Project Group id of the dataset.
8487
* @param {*} [options] Override http request option.
8588
* @throws {RequiredError}
8689
*/
87-
serviceMetrics(options?: AxiosRequestConfig): Promise<AxiosResponse<any>>;
90+
serviceMetrics(tdei_project_group_id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<any>>;
8891
/**
8992
* Retrieves metrics related to the system and datasets within the TDEI platform. This endpoint provides an overview of usage statistics including the total number of users, services, and project groups, as well as a breakdown of services by type. Additionally, it gives details on dataset uploads, such as the total number of uploads and their cumulative size in megabytes.
9093
* @summary Gets the system metrics
@@ -111,11 +114,12 @@ export declare class MetricsApi extends BaseAPI {
111114
/**
112115
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
113116
* @summary Gets the Service metrics
117+
* @param {string} tdei_project_group_id Project Group id of the dataset.
114118
* @param {*} [options] Override http request option.
115119
* @throws {RequiredError}
116120
* @memberof MetricsApi
117121
*/
118-
serviceMetrics(options?: AxiosRequestConfig): Promise<AxiosResponse<any>>;
122+
serviceMetrics(tdei_project_group_id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<any>>;
119123
/**
120124
* Retrieves metrics related to the system and datasets within the TDEI platform. This endpoint provides an overview of usage statistics including the total number of users, services, and project groups, as well as a breakdown of services by type. Additionally, it gives details on dataset uploads, such as the total number of uploads and their cumulative size in megabytes.
121125
* @summary Gets the system metrics

dist/apis/metrics-api.js

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,23 @@ var MetricsApiAxiosParamCreator = function (configuration) {
159159
/**
160160
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
161161
* @summary Gets the Service metrics
162+
* @param {string} tdei_project_group_id Project Group id of the dataset.
162163
* @param {*} [options] Override http request option.
163164
* @throws {RequiredError}
164165
*/
165-
serviceMetrics: function (options) {
166+
serviceMetrics: function (tdei_project_group_id, options) {
166167
if (options === void 0) { options = {}; }
167168
return __awaiter(_this, void 0, void 0, function () {
168169
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarApiKeyValue, _a, accessToken, _b, query, key, key, headersFromBaseOptions;
169170
return __generator(this, function (_c) {
170171
switch (_c.label) {
171172
case 0:
172-
localVarPath = "/api/v1/service-metrics/{tdei_project_group_id}";
173+
// verify required parameter 'tdei_project_group_id' is not null or undefined
174+
if (tdei_project_group_id === null || tdei_project_group_id === undefined) {
175+
throw new base_1.RequiredError('tdei_project_group_id', 'Required parameter tdei_project_group_id was null or undefined when calling serviceMetrics.');
176+
}
177+
localVarPath = "/api/v1/service-metrics/{tdei_project_group_id}"
178+
.replace("{".concat("tdei_project_group_id", "}"), encodeURIComponent(String(tdei_project_group_id)));
173179
localVarUrlObj = new URL(localVarPath, 'https://example.com');
174180
if (configuration) {
175181
baseOptions = configuration.baseOptions;
@@ -330,15 +336,16 @@ var MetricsApiFp = function (configuration) {
330336
/**
331337
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
332338
* @summary Gets the Service metrics
339+
* @param {string} tdei_project_group_id Project Group id of the dataset.
333340
* @param {*} [options] Override http request option.
334341
* @throws {RequiredError}
335342
*/
336-
serviceMetrics: function (options) {
343+
serviceMetrics: function (tdei_project_group_id, options) {
337344
return __awaiter(this, void 0, void 0, function () {
338345
var localVarAxiosArgs;
339346
return __generator(this, function (_a) {
340347
switch (_a.label) {
341-
case 0: return [4 /*yield*/, (0, exports.MetricsApiAxiosParamCreator)(configuration).serviceMetrics(options)];
348+
case 0: return [4 /*yield*/, (0, exports.MetricsApiAxiosParamCreator)(configuration).serviceMetrics(tdei_project_group_id, options)];
342349
case 1:
343350
localVarAxiosArgs = _a.sent();
344351
return [2 /*return*/, function (axios, basePath) {
@@ -400,13 +407,14 @@ var MetricsApiFactory = function (configuration, basePath, axios) {
400407
/**
401408
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
402409
* @summary Gets the Service metrics
410+
* @param {string} tdei_project_group_id Project Group id of the dataset.
403411
* @param {*} [options] Override http request option.
404412
* @throws {RequiredError}
405413
*/
406-
serviceMetrics: function (options) {
414+
serviceMetrics: function (tdei_project_group_id, options) {
407415
return __awaiter(this, void 0, void 0, function () {
408416
return __generator(this, function (_a) {
409-
return [2 /*return*/, (0, exports.MetricsApiFp)(configuration).serviceMetrics(options).then(function (request) { return request(axios, basePath); })];
417+
return [2 /*return*/, (0, exports.MetricsApiFp)(configuration).serviceMetrics(tdei_project_group_id, options).then(function (request) { return request(axios, basePath); })];
410418
});
411419
});
412420
},
@@ -455,15 +463,16 @@ var MetricsApi = /** @class */ (function (_super) {
455463
/**
456464
* This endpoint provides detailed metrics about datasets categorized by Project Group ID within the TDEI platform. It includes the total number of datasets and their cumulative size in megabytes for each type, such as osw, flex, and pathways.
457465
* @summary Gets the Service metrics
466+
* @param {string} tdei_project_group_id Project Group id of the dataset.
458467
* @param {*} [options] Override http request option.
459468
* @throws {RequiredError}
460469
* @memberof MetricsApi
461470
*/
462-
MetricsApi.prototype.serviceMetrics = function (options) {
471+
MetricsApi.prototype.serviceMetrics = function (tdei_project_group_id, options) {
463472
return __awaiter(this, void 0, void 0, function () {
464473
var _this = this;
465474
return __generator(this, function (_a) {
466-
return [2 /*return*/, (0, exports.MetricsApiFp)(this.configuration).serviceMetrics(options).then(function (request) { return request(_this.axios, _this.basePath); })];
475+
return [2 /*return*/, (0, exports.MetricsApiFp)(this.configuration).serviceMetrics(tdei_project_group_id, options).then(function (request) { return request(_this.axios, _this.basePath); })];
467476
});
468477
});
469478
};

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tdei-client",
3-
"version": "1.1.81",
3+
"version": "1.1.82",
44
"description": "OpenAPI client for tdei-client",
55
"author": "OpenAPI-Generator Contributors",
66
"keywords": [

0 commit comments

Comments
 (0)