@dimrev4/fitness-v3-backend 0.0.3
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/.openapi-generator/FILES +30 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +423 -0
- package/api.ts +1870 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +1285 -0
- package/dist/api.js +970 -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 +44 -0
- package/dist/esm/api.d.ts +1285 -0
- package/dist/esm/api.js +959 -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 +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AuthV1Api.md +257 -0
- package/docs/ConfirmOtpRequestDto.md +22 -0
- package/docs/CreateMeasurementRequestDto.md +26 -0
- package/docs/DeleteMeasurementResponseDto.md +22 -0
- package/docs/GetMeResponseDto.md +20 -0
- package/docs/GetMeasurementsResponseDto.md +30 -0
- package/docs/GroupDto.md +28 -0
- package/docs/LoginRequestDto.md +22 -0
- package/docs/LoginResponseDto.md +22 -0
- package/docs/LogoutResponseDto.md +20 -0
- package/docs/MeasurementDto.md +36 -0
- package/docs/MeasurementsV1Api.md +414 -0
- package/docs/RegisterRequestDto.md +24 -0
- package/docs/RegisterResponseDto.md +20 -0
- package/docs/UpdateMeasurementRequestDto.md +24 -0
- package/docs/UserDetailsDto.md +32 -0
- package/docs/UserDto.md +30 -0
- package/docs/UserToGroupDetailsDto.md +42 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +38 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
package/dist/api.js
ADDED
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Fitness Backend
|
|
6
|
+
* Fitness Backend API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0
|
|
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.MeasurementsV1Api = exports.MeasurementsV1ApiFactory = exports.MeasurementsV1ApiFp = exports.MeasurementsV1ApiAxiosParamCreator = exports.AuthV1Api = exports.AuthV1ApiFactory = exports.AuthV1ApiFp = exports.AuthV1ApiAxiosParamCreator = 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
|
+
* AuthV1Api - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const AuthV1ApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary Confirm OTP
|
|
41
|
+
* @param {ConfirmOtpRequestDto} confirmOtpRequestDto
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
authV1ControllerConfirmOtp: (confirmOtpRequestDto_1, ...args_1) => __awaiter(this, [confirmOtpRequestDto_1, ...args_1], void 0, function* (confirmOtpRequestDto, options = {}) {
|
|
46
|
+
// verify required parameter 'confirmOtpRequestDto' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('authV1ControllerConfirmOtp', 'confirmOtpRequestDto', confirmOtpRequestDto);
|
|
48
|
+
const localVarPath = `/api/auth/v1/confirm-otp`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
59
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmOtpRequestDto, localVarRequestOptions, configuration);
|
|
63
|
+
return {
|
|
64
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
}),
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Get Me
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
authV1ControllerGetMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
75
|
+
const localVarPath = `/api/auth/v1/get-me`;
|
|
76
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
78
|
+
let baseOptions;
|
|
79
|
+
if (configuration) {
|
|
80
|
+
baseOptions = configuration.baseOptions;
|
|
81
|
+
}
|
|
82
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
83
|
+
const localVarHeaderParameter = {};
|
|
84
|
+
const localVarQueryParameter = {};
|
|
85
|
+
// authentication bearer required
|
|
86
|
+
// http bearer authentication required
|
|
87
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
88
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
89
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
91
|
+
return {
|
|
92
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
93
|
+
options: localVarRequestOptions,
|
|
94
|
+
};
|
|
95
|
+
}),
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary Login
|
|
99
|
+
* @param {LoginRequestDto} loginRequestDto
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
authV1ControllerLogin: (loginRequestDto_1, ...args_1) => __awaiter(this, [loginRequestDto_1, ...args_1], void 0, function* (loginRequestDto, options = {}) {
|
|
104
|
+
// verify required parameter 'loginRequestDto' is not null or undefined
|
|
105
|
+
(0, common_1.assertParamExists)('authV1ControllerLogin', 'loginRequestDto', loginRequestDto);
|
|
106
|
+
const localVarPath = `/api/auth/v1/login`;
|
|
107
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
109
|
+
let baseOptions;
|
|
110
|
+
if (configuration) {
|
|
111
|
+
baseOptions = configuration.baseOptions;
|
|
112
|
+
}
|
|
113
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
114
|
+
const localVarHeaderParameter = {};
|
|
115
|
+
const localVarQueryParameter = {};
|
|
116
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
117
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
120
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequestDto, localVarRequestOptions, configuration);
|
|
121
|
+
return {
|
|
122
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
123
|
+
options: localVarRequestOptions,
|
|
124
|
+
};
|
|
125
|
+
}),
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @summary Logout
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
authV1ControllerLogout: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
133
|
+
const localVarPath = `/api/auth/v1/logout`;
|
|
134
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
135
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
136
|
+
let baseOptions;
|
|
137
|
+
if (configuration) {
|
|
138
|
+
baseOptions = configuration.baseOptions;
|
|
139
|
+
}
|
|
140
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
141
|
+
const localVarHeaderParameter = {};
|
|
142
|
+
const localVarQueryParameter = {};
|
|
143
|
+
// authentication bearer required
|
|
144
|
+
// http bearer authentication required
|
|
145
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
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
|
+
*
|
|
156
|
+
* @summary Register
|
|
157
|
+
* @param {RegisterRequestDto} registerRequestDto
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
authV1ControllerRegister: (registerRequestDto_1, ...args_1) => __awaiter(this, [registerRequestDto_1, ...args_1], void 0, function* (registerRequestDto, options = {}) {
|
|
162
|
+
// verify required parameter 'registerRequestDto' is not null or undefined
|
|
163
|
+
(0, common_1.assertParamExists)('authV1ControllerRegister', 'registerRequestDto', registerRequestDto);
|
|
164
|
+
const localVarPath = `/api/auth/v1/register`;
|
|
165
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
166
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
let baseOptions;
|
|
168
|
+
if (configuration) {
|
|
169
|
+
baseOptions = configuration.baseOptions;
|
|
170
|
+
}
|
|
171
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
172
|
+
const localVarHeaderParameter = {};
|
|
173
|
+
const localVarQueryParameter = {};
|
|
174
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
175
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
176
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
177
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
178
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerRequestDto, localVarRequestOptions, configuration);
|
|
179
|
+
return {
|
|
180
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
181
|
+
options: localVarRequestOptions,
|
|
182
|
+
};
|
|
183
|
+
}),
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
exports.AuthV1ApiAxiosParamCreator = AuthV1ApiAxiosParamCreator;
|
|
187
|
+
/**
|
|
188
|
+
* AuthV1Api - functional programming interface
|
|
189
|
+
* @export
|
|
190
|
+
*/
|
|
191
|
+
const AuthV1ApiFp = function (configuration) {
|
|
192
|
+
const localVarAxiosParamCreator = (0, exports.AuthV1ApiAxiosParamCreator)(configuration);
|
|
193
|
+
return {
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @summary Confirm OTP
|
|
197
|
+
* @param {ConfirmOtpRequestDto} confirmOtpRequestDto
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
authV1ControllerConfirmOtp(confirmOtpRequestDto, options) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
203
|
+
var _a, _b, _c;
|
|
204
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authV1ControllerConfirmOtp(confirmOtpRequestDto, options);
|
|
205
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
206
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthV1Api.authV1ControllerConfirmOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
207
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @summary Get Me
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
authV1ControllerGetMe(options) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
var _a, _b, _c;
|
|
219
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authV1ControllerGetMe(options);
|
|
220
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
221
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthV1Api.authV1ControllerGetMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
222
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @summary Login
|
|
228
|
+
* @param {LoginRequestDto} loginRequestDto
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
authV1ControllerLogin(loginRequestDto, options) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
var _a, _b, _c;
|
|
235
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authV1ControllerLogin(loginRequestDto, options);
|
|
236
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
237
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthV1Api.authV1ControllerLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
238
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
239
|
+
});
|
|
240
|
+
},
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
* @summary Logout
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
authV1ControllerLogout(options) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
249
|
+
var _a, _b, _c;
|
|
250
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authV1ControllerLogout(options);
|
|
251
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
252
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthV1Api.authV1ControllerLogout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
253
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
254
|
+
});
|
|
255
|
+
},
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @summary Register
|
|
259
|
+
* @param {RegisterRequestDto} registerRequestDto
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
authV1ControllerRegister(registerRequestDto, options) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
var _a, _b, _c;
|
|
266
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authV1ControllerRegister(registerRequestDto, options);
|
|
267
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
268
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthV1Api.authV1ControllerRegister']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
269
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
270
|
+
});
|
|
271
|
+
},
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
exports.AuthV1ApiFp = AuthV1ApiFp;
|
|
275
|
+
/**
|
|
276
|
+
* AuthV1Api - factory interface
|
|
277
|
+
* @export
|
|
278
|
+
*/
|
|
279
|
+
const AuthV1ApiFactory = function (configuration, basePath, axios) {
|
|
280
|
+
const localVarFp = (0, exports.AuthV1ApiFp)(configuration);
|
|
281
|
+
return {
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @summary Confirm OTP
|
|
285
|
+
* @param {AuthV1ApiAuthV1ControllerConfirmOtpRequest} requestParameters Request parameters.
|
|
286
|
+
* @param {*} [options] Override http request option.
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
*/
|
|
289
|
+
authV1ControllerConfirmOtp(requestParameters, options) {
|
|
290
|
+
return localVarFp.authV1ControllerConfirmOtp(requestParameters.confirmOtpRequestDto, options).then((request) => request(axios, basePath));
|
|
291
|
+
},
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @summary Get Me
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
*/
|
|
298
|
+
authV1ControllerGetMe(options) {
|
|
299
|
+
return localVarFp.authV1ControllerGetMe(options).then((request) => request(axios, basePath));
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @summary Login
|
|
304
|
+
* @param {AuthV1ApiAuthV1ControllerLoginRequest} requestParameters Request parameters.
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
authV1ControllerLogin(requestParameters, options) {
|
|
309
|
+
return localVarFp.authV1ControllerLogin(requestParameters.loginRequestDto, options).then((request) => request(axios, basePath));
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @summary Logout
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
*/
|
|
317
|
+
authV1ControllerLogout(options) {
|
|
318
|
+
return localVarFp.authV1ControllerLogout(options).then((request) => request(axios, basePath));
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @summary Register
|
|
323
|
+
* @param {AuthV1ApiAuthV1ControllerRegisterRequest} requestParameters Request parameters.
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
*/
|
|
327
|
+
authV1ControllerRegister(requestParameters, options) {
|
|
328
|
+
return localVarFp.authV1ControllerRegister(requestParameters.registerRequestDto, options).then((request) => request(axios, basePath));
|
|
329
|
+
},
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
exports.AuthV1ApiFactory = AuthV1ApiFactory;
|
|
333
|
+
/**
|
|
334
|
+
* AuthV1Api - object-oriented interface
|
|
335
|
+
* @export
|
|
336
|
+
* @class AuthV1Api
|
|
337
|
+
* @extends {BaseAPI}
|
|
338
|
+
*/
|
|
339
|
+
class AuthV1Api extends base_1.BaseAPI {
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @summary Confirm OTP
|
|
343
|
+
* @param {AuthV1ApiAuthV1ControllerConfirmOtpRequest} requestParameters Request parameters.
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
* @memberof AuthV1Api
|
|
347
|
+
*/
|
|
348
|
+
authV1ControllerConfirmOtp(requestParameters, options) {
|
|
349
|
+
return (0, exports.AuthV1ApiFp)(this.configuration).authV1ControllerConfirmOtp(requestParameters.confirmOtpRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
*
|
|
353
|
+
* @summary Get Me
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
* @memberof AuthV1Api
|
|
357
|
+
*/
|
|
358
|
+
authV1ControllerGetMe(options) {
|
|
359
|
+
return (0, exports.AuthV1ApiFp)(this.configuration).authV1ControllerGetMe(options).then((request) => request(this.axios, this.basePath));
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @summary Login
|
|
364
|
+
* @param {AuthV1ApiAuthV1ControllerLoginRequest} requestParameters Request parameters.
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
* @memberof AuthV1Api
|
|
368
|
+
*/
|
|
369
|
+
authV1ControllerLogin(requestParameters, options) {
|
|
370
|
+
return (0, exports.AuthV1ApiFp)(this.configuration).authV1ControllerLogin(requestParameters.loginRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @summary Logout
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
* @memberof AuthV1Api
|
|
378
|
+
*/
|
|
379
|
+
authV1ControllerLogout(options) {
|
|
380
|
+
return (0, exports.AuthV1ApiFp)(this.configuration).authV1ControllerLogout(options).then((request) => request(this.axios, this.basePath));
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* @summary Register
|
|
385
|
+
* @param {AuthV1ApiAuthV1ControllerRegisterRequest} requestParameters Request parameters.
|
|
386
|
+
* @param {*} [options] Override http request option.
|
|
387
|
+
* @throws {RequiredError}
|
|
388
|
+
* @memberof AuthV1Api
|
|
389
|
+
*/
|
|
390
|
+
authV1ControllerRegister(requestParameters, options) {
|
|
391
|
+
return (0, exports.AuthV1ApiFp)(this.configuration).authV1ControllerRegister(requestParameters.registerRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
exports.AuthV1Api = AuthV1Api;
|
|
395
|
+
/**
|
|
396
|
+
* MeasurementsV1Api - axios parameter creator
|
|
397
|
+
* @export
|
|
398
|
+
*/
|
|
399
|
+
const MeasurementsV1ApiAxiosParamCreator = function (configuration) {
|
|
400
|
+
return {
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* @summary Create a new measurement for the authenticated user
|
|
404
|
+
* @param {CreateMeasurementRequestDto} createMeasurementRequestDto
|
|
405
|
+
* @param {*} [options] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
*/
|
|
408
|
+
measurementsV1ControllerCreateMeasurement: (createMeasurementRequestDto_1, ...args_1) => __awaiter(this, [createMeasurementRequestDto_1, ...args_1], void 0, function* (createMeasurementRequestDto, options = {}) {
|
|
409
|
+
// verify required parameter 'createMeasurementRequestDto' is not null or undefined
|
|
410
|
+
(0, common_1.assertParamExists)('measurementsV1ControllerCreateMeasurement', 'createMeasurementRequestDto', createMeasurementRequestDto);
|
|
411
|
+
const localVarPath = `/api/measurements/v1`;
|
|
412
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
413
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
414
|
+
let baseOptions;
|
|
415
|
+
if (configuration) {
|
|
416
|
+
baseOptions = configuration.baseOptions;
|
|
417
|
+
}
|
|
418
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
419
|
+
const localVarHeaderParameter = {};
|
|
420
|
+
const localVarQueryParameter = {};
|
|
421
|
+
// authentication bearer required
|
|
422
|
+
// http bearer authentication required
|
|
423
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
424
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
425
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
426
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
427
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
428
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createMeasurementRequestDto, localVarRequestOptions, configuration);
|
|
429
|
+
return {
|
|
430
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
431
|
+
options: localVarRequestOptions,
|
|
432
|
+
};
|
|
433
|
+
}),
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @summary Soft delete a specific measurement for the authenticated user
|
|
437
|
+
* @param {string} measurementId
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
measurementsV1ControllerDeleteMeasurement: (measurementId_1, ...args_1) => __awaiter(this, [measurementId_1, ...args_1], void 0, function* (measurementId, options = {}) {
|
|
442
|
+
// verify required parameter 'measurementId' is not null or undefined
|
|
443
|
+
(0, common_1.assertParamExists)('measurementsV1ControllerDeleteMeasurement', 'measurementId', measurementId);
|
|
444
|
+
const localVarPath = `/api/measurements/v1/{measurementId}`
|
|
445
|
+
.replace(`{${"measurementId"}}`, encodeURIComponent(String(measurementId)));
|
|
446
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
447
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
448
|
+
let baseOptions;
|
|
449
|
+
if (configuration) {
|
|
450
|
+
baseOptions = configuration.baseOptions;
|
|
451
|
+
}
|
|
452
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
453
|
+
const localVarHeaderParameter = {};
|
|
454
|
+
const localVarQueryParameter = {};
|
|
455
|
+
// authentication bearer required
|
|
456
|
+
// http bearer authentication required
|
|
457
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
458
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
459
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
460
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
461
|
+
return {
|
|
462
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
463
|
+
options: localVarRequestOptions,
|
|
464
|
+
};
|
|
465
|
+
}),
|
|
466
|
+
/**
|
|
467
|
+
*
|
|
468
|
+
* @summary Get all measurements for the authenticated user
|
|
469
|
+
* @param {number} [limit] Limit
|
|
470
|
+
* @param {number} [offset] Offset
|
|
471
|
+
* @param {string} [fromDate] From date
|
|
472
|
+
* @param {string} [toDate] To date
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
measurementsV1ControllerGetAllByUserId: (limit_1, offset_1, fromDate_1, toDate_1, ...args_1) => __awaiter(this, [limit_1, offset_1, fromDate_1, toDate_1, ...args_1], void 0, function* (limit, offset, fromDate, toDate, options = {}) {
|
|
477
|
+
const localVarPath = `/api/measurements/v1`;
|
|
478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
479
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
480
|
+
let baseOptions;
|
|
481
|
+
if (configuration) {
|
|
482
|
+
baseOptions = configuration.baseOptions;
|
|
483
|
+
}
|
|
484
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
485
|
+
const localVarHeaderParameter = {};
|
|
486
|
+
const localVarQueryParameter = {};
|
|
487
|
+
// authentication bearer required
|
|
488
|
+
// http bearer authentication required
|
|
489
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
490
|
+
if (limit !== undefined) {
|
|
491
|
+
localVarQueryParameter['limit'] = limit;
|
|
492
|
+
}
|
|
493
|
+
if (offset !== undefined) {
|
|
494
|
+
localVarQueryParameter['offset'] = offset;
|
|
495
|
+
}
|
|
496
|
+
if (fromDate !== undefined) {
|
|
497
|
+
localVarQueryParameter['fromDate'] = (fromDate instanceof Date) ?
|
|
498
|
+
fromDate.toISOString() :
|
|
499
|
+
fromDate;
|
|
500
|
+
}
|
|
501
|
+
if (toDate !== undefined) {
|
|
502
|
+
localVarQueryParameter['toDate'] = (toDate instanceof Date) ?
|
|
503
|
+
toDate.toISOString() :
|
|
504
|
+
toDate;
|
|
505
|
+
}
|
|
506
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
507
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
508
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
509
|
+
return {
|
|
510
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
511
|
+
options: localVarRequestOptions,
|
|
512
|
+
};
|
|
513
|
+
}),
|
|
514
|
+
/**
|
|
515
|
+
*
|
|
516
|
+
* @summary Get all measurements for the group
|
|
517
|
+
* @param {string} groupId
|
|
518
|
+
* @param {number} [limit] Limit
|
|
519
|
+
* @param {number} [offset] Offset
|
|
520
|
+
* @param {string} [fromDate] From date
|
|
521
|
+
* @param {string} [toDate] To date
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
measurementsV1ControllerGetAllByUserIdAdmin: (groupId_1, limit_1, offset_1, fromDate_1, toDate_1, ...args_1) => __awaiter(this, [groupId_1, limit_1, offset_1, fromDate_1, toDate_1, ...args_1], void 0, function* (groupId, limit, offset, fromDate, toDate, options = {}) {
|
|
526
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
527
|
+
(0, common_1.assertParamExists)('measurementsV1ControllerGetAllByUserIdAdmin', 'groupId', groupId);
|
|
528
|
+
const localVarPath = `/api/measurements/v1/group/{groupId}`
|
|
529
|
+
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
530
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
531
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
532
|
+
let baseOptions;
|
|
533
|
+
if (configuration) {
|
|
534
|
+
baseOptions = configuration.baseOptions;
|
|
535
|
+
}
|
|
536
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
537
|
+
const localVarHeaderParameter = {};
|
|
538
|
+
const localVarQueryParameter = {};
|
|
539
|
+
// authentication bearer required
|
|
540
|
+
// http bearer authentication required
|
|
541
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
542
|
+
if (limit !== undefined) {
|
|
543
|
+
localVarQueryParameter['limit'] = limit;
|
|
544
|
+
}
|
|
545
|
+
if (offset !== undefined) {
|
|
546
|
+
localVarQueryParameter['offset'] = offset;
|
|
547
|
+
}
|
|
548
|
+
if (fromDate !== undefined) {
|
|
549
|
+
localVarQueryParameter['fromDate'] = (fromDate instanceof Date) ?
|
|
550
|
+
fromDate.toISOString() :
|
|
551
|
+
fromDate;
|
|
552
|
+
}
|
|
553
|
+
if (toDate !== undefined) {
|
|
554
|
+
localVarQueryParameter['toDate'] = (toDate instanceof Date) ?
|
|
555
|
+
toDate.toISOString() :
|
|
556
|
+
toDate;
|
|
557
|
+
}
|
|
558
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
559
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
560
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
561
|
+
return {
|
|
562
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
563
|
+
options: localVarRequestOptions,
|
|
564
|
+
};
|
|
565
|
+
}),
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @summary Get a measurement by group and measurement ID
|
|
569
|
+
* @param {string} groupId
|
|
570
|
+
* @param {string} measurementId
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
*/
|
|
574
|
+
measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId: (groupId_1, measurementId_1, ...args_1) => __awaiter(this, [groupId_1, measurementId_1, ...args_1], void 0, function* (groupId, measurementId, options = {}) {
|
|
575
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
576
|
+
(0, common_1.assertParamExists)('measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId', 'groupId', groupId);
|
|
577
|
+
// verify required parameter 'measurementId' is not null or undefined
|
|
578
|
+
(0, common_1.assertParamExists)('measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId', 'measurementId', measurementId);
|
|
579
|
+
const localVarPath = `/api/measurements/v1/group/{groupId}/{measurementId}`
|
|
580
|
+
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
|
|
581
|
+
.replace(`{${"measurementId"}}`, encodeURIComponent(String(measurementId)));
|
|
582
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
583
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
584
|
+
let baseOptions;
|
|
585
|
+
if (configuration) {
|
|
586
|
+
baseOptions = configuration.baseOptions;
|
|
587
|
+
}
|
|
588
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
589
|
+
const localVarHeaderParameter = {};
|
|
590
|
+
const localVarQueryParameter = {};
|
|
591
|
+
// authentication bearer required
|
|
592
|
+
// http bearer authentication required
|
|
593
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
594
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
595
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
596
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
597
|
+
return {
|
|
598
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
599
|
+
options: localVarRequestOptions,
|
|
600
|
+
};
|
|
601
|
+
}),
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @summary Get a specific measurement by ID for the authenticated user
|
|
605
|
+
* @param {string} measurementId
|
|
606
|
+
* @param {*} [options] Override http request option.
|
|
607
|
+
* @throws {RequiredError}
|
|
608
|
+
*/
|
|
609
|
+
measurementsV1ControllerGetMeasurementById: (measurementId_1, ...args_1) => __awaiter(this, [measurementId_1, ...args_1], void 0, function* (measurementId, options = {}) {
|
|
610
|
+
// verify required parameter 'measurementId' is not null or undefined
|
|
611
|
+
(0, common_1.assertParamExists)('measurementsV1ControllerGetMeasurementById', 'measurementId', measurementId);
|
|
612
|
+
const localVarPath = `/api/measurements/v1/{measurementId}`
|
|
613
|
+
.replace(`{${"measurementId"}}`, encodeURIComponent(String(measurementId)));
|
|
614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
615
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
616
|
+
let baseOptions;
|
|
617
|
+
if (configuration) {
|
|
618
|
+
baseOptions = configuration.baseOptions;
|
|
619
|
+
}
|
|
620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
621
|
+
const localVarHeaderParameter = {};
|
|
622
|
+
const localVarQueryParameter = {};
|
|
623
|
+
// authentication bearer required
|
|
624
|
+
// http bearer authentication required
|
|
625
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
626
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
628
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
629
|
+
return {
|
|
630
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
631
|
+
options: localVarRequestOptions,
|
|
632
|
+
};
|
|
633
|
+
}),
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @summary Update a specific measurement for the authenticated user
|
|
637
|
+
* @param {string} measurementId
|
|
638
|
+
* @param {UpdateMeasurementRequestDto} updateMeasurementRequestDto
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
measurementsV1ControllerUpdateMeasurement: (measurementId_1, updateMeasurementRequestDto_1, ...args_1) => __awaiter(this, [measurementId_1, updateMeasurementRequestDto_1, ...args_1], void 0, function* (measurementId, updateMeasurementRequestDto, options = {}) {
|
|
643
|
+
// verify required parameter 'measurementId' is not null or undefined
|
|
644
|
+
(0, common_1.assertParamExists)('measurementsV1ControllerUpdateMeasurement', 'measurementId', measurementId);
|
|
645
|
+
// verify required parameter 'updateMeasurementRequestDto' is not null or undefined
|
|
646
|
+
(0, common_1.assertParamExists)('measurementsV1ControllerUpdateMeasurement', 'updateMeasurementRequestDto', updateMeasurementRequestDto);
|
|
647
|
+
const localVarPath = `/api/measurements/v1/{measurementId}`
|
|
648
|
+
.replace(`{${"measurementId"}}`, encodeURIComponent(String(measurementId)));
|
|
649
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
650
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
651
|
+
let baseOptions;
|
|
652
|
+
if (configuration) {
|
|
653
|
+
baseOptions = configuration.baseOptions;
|
|
654
|
+
}
|
|
655
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
656
|
+
const localVarHeaderParameter = {};
|
|
657
|
+
const localVarQueryParameter = {};
|
|
658
|
+
// authentication bearer required
|
|
659
|
+
// http bearer authentication required
|
|
660
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
661
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
662
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
663
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
664
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
665
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateMeasurementRequestDto, localVarRequestOptions, configuration);
|
|
666
|
+
return {
|
|
667
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
668
|
+
options: localVarRequestOptions,
|
|
669
|
+
};
|
|
670
|
+
}),
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
exports.MeasurementsV1ApiAxiosParamCreator = MeasurementsV1ApiAxiosParamCreator;
|
|
674
|
+
/**
|
|
675
|
+
* MeasurementsV1Api - functional programming interface
|
|
676
|
+
* @export
|
|
677
|
+
*/
|
|
678
|
+
const MeasurementsV1ApiFp = function (configuration) {
|
|
679
|
+
const localVarAxiosParamCreator = (0, exports.MeasurementsV1ApiAxiosParamCreator)(configuration);
|
|
680
|
+
return {
|
|
681
|
+
/**
|
|
682
|
+
*
|
|
683
|
+
* @summary Create a new measurement for the authenticated user
|
|
684
|
+
* @param {CreateMeasurementRequestDto} createMeasurementRequestDto
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
*/
|
|
688
|
+
measurementsV1ControllerCreateMeasurement(createMeasurementRequestDto, options) {
|
|
689
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
690
|
+
var _a, _b, _c;
|
|
691
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.measurementsV1ControllerCreateMeasurement(createMeasurementRequestDto, options);
|
|
692
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
693
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MeasurementsV1Api.measurementsV1ControllerCreateMeasurement']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
694
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
695
|
+
});
|
|
696
|
+
},
|
|
697
|
+
/**
|
|
698
|
+
*
|
|
699
|
+
* @summary Soft delete a specific measurement for the authenticated user
|
|
700
|
+
* @param {string} measurementId
|
|
701
|
+
* @param {*} [options] Override http request option.
|
|
702
|
+
* @throws {RequiredError}
|
|
703
|
+
*/
|
|
704
|
+
measurementsV1ControllerDeleteMeasurement(measurementId, options) {
|
|
705
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
706
|
+
var _a, _b, _c;
|
|
707
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.measurementsV1ControllerDeleteMeasurement(measurementId, options);
|
|
708
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
709
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MeasurementsV1Api.measurementsV1ControllerDeleteMeasurement']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
710
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
711
|
+
});
|
|
712
|
+
},
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @summary Get all measurements for the authenticated user
|
|
716
|
+
* @param {number} [limit] Limit
|
|
717
|
+
* @param {number} [offset] Offset
|
|
718
|
+
* @param {string} [fromDate] From date
|
|
719
|
+
* @param {string} [toDate] To date
|
|
720
|
+
* @param {*} [options] Override http request option.
|
|
721
|
+
* @throws {RequiredError}
|
|
722
|
+
*/
|
|
723
|
+
measurementsV1ControllerGetAllByUserId(limit, offset, fromDate, toDate, options) {
|
|
724
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
725
|
+
var _a, _b, _c;
|
|
726
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.measurementsV1ControllerGetAllByUserId(limit, offset, fromDate, toDate, options);
|
|
727
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
728
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetAllByUserId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
729
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
730
|
+
});
|
|
731
|
+
},
|
|
732
|
+
/**
|
|
733
|
+
*
|
|
734
|
+
* @summary Get all measurements for the group
|
|
735
|
+
* @param {string} groupId
|
|
736
|
+
* @param {number} [limit] Limit
|
|
737
|
+
* @param {number} [offset] Offset
|
|
738
|
+
* @param {string} [fromDate] From date
|
|
739
|
+
* @param {string} [toDate] To date
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
*/
|
|
743
|
+
measurementsV1ControllerGetAllByUserIdAdmin(groupId, limit, offset, fromDate, toDate, options) {
|
|
744
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
745
|
+
var _a, _b, _c;
|
|
746
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.measurementsV1ControllerGetAllByUserIdAdmin(groupId, limit, offset, fromDate, toDate, options);
|
|
747
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
748
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetAllByUserIdAdmin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
749
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
750
|
+
});
|
|
751
|
+
},
|
|
752
|
+
/**
|
|
753
|
+
*
|
|
754
|
+
* @summary Get a measurement by group and measurement ID
|
|
755
|
+
* @param {string} groupId
|
|
756
|
+
* @param {string} measurementId
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
*/
|
|
760
|
+
measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(groupId, measurementId, options) {
|
|
761
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
762
|
+
var _a, _b, _c;
|
|
763
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(groupId, measurementId, options);
|
|
764
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
765
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
766
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
767
|
+
});
|
|
768
|
+
},
|
|
769
|
+
/**
|
|
770
|
+
*
|
|
771
|
+
* @summary Get a specific measurement by ID for the authenticated user
|
|
772
|
+
* @param {string} measurementId
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
measurementsV1ControllerGetMeasurementById(measurementId, options) {
|
|
777
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
778
|
+
var _a, _b, _c;
|
|
779
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.measurementsV1ControllerGetMeasurementById(measurementId, options);
|
|
780
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
781
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetMeasurementById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
782
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
783
|
+
});
|
|
784
|
+
},
|
|
785
|
+
/**
|
|
786
|
+
*
|
|
787
|
+
* @summary Update a specific measurement for the authenticated user
|
|
788
|
+
* @param {string} measurementId
|
|
789
|
+
* @param {UpdateMeasurementRequestDto} updateMeasurementRequestDto
|
|
790
|
+
* @param {*} [options] Override http request option.
|
|
791
|
+
* @throws {RequiredError}
|
|
792
|
+
*/
|
|
793
|
+
measurementsV1ControllerUpdateMeasurement(measurementId, updateMeasurementRequestDto, options) {
|
|
794
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
795
|
+
var _a, _b, _c;
|
|
796
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.measurementsV1ControllerUpdateMeasurement(measurementId, updateMeasurementRequestDto, options);
|
|
797
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
798
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MeasurementsV1Api.measurementsV1ControllerUpdateMeasurement']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
799
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
800
|
+
});
|
|
801
|
+
},
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
exports.MeasurementsV1ApiFp = MeasurementsV1ApiFp;
|
|
805
|
+
/**
|
|
806
|
+
* MeasurementsV1Api - factory interface
|
|
807
|
+
* @export
|
|
808
|
+
*/
|
|
809
|
+
const MeasurementsV1ApiFactory = function (configuration, basePath, axios) {
|
|
810
|
+
const localVarFp = (0, exports.MeasurementsV1ApiFp)(configuration);
|
|
811
|
+
return {
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @summary Create a new measurement for the authenticated user
|
|
815
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurementRequest} requestParameters Request parameters.
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
*/
|
|
819
|
+
measurementsV1ControllerCreateMeasurement(requestParameters, options) {
|
|
820
|
+
return localVarFp.measurementsV1ControllerCreateMeasurement(requestParameters.createMeasurementRequestDto, options).then((request) => request(axios, basePath));
|
|
821
|
+
},
|
|
822
|
+
/**
|
|
823
|
+
*
|
|
824
|
+
* @summary Soft delete a specific measurement for the authenticated user
|
|
825
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurementRequest} requestParameters Request parameters.
|
|
826
|
+
* @param {*} [options] Override http request option.
|
|
827
|
+
* @throws {RequiredError}
|
|
828
|
+
*/
|
|
829
|
+
measurementsV1ControllerDeleteMeasurement(requestParameters, options) {
|
|
830
|
+
return localVarFp.measurementsV1ControllerDeleteMeasurement(requestParameters.measurementId, options).then((request) => request(axios, basePath));
|
|
831
|
+
},
|
|
832
|
+
/**
|
|
833
|
+
*
|
|
834
|
+
* @summary Get all measurements for the authenticated user
|
|
835
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdRequest} requestParameters Request parameters.
|
|
836
|
+
* @param {*} [options] Override http request option.
|
|
837
|
+
* @throws {RequiredError}
|
|
838
|
+
*/
|
|
839
|
+
measurementsV1ControllerGetAllByUserId(requestParameters = {}, options) {
|
|
840
|
+
return localVarFp.measurementsV1ControllerGetAllByUserId(requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(axios, basePath));
|
|
841
|
+
},
|
|
842
|
+
/**
|
|
843
|
+
*
|
|
844
|
+
* @summary Get all measurements for the group
|
|
845
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest} requestParameters Request parameters.
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters, options) {
|
|
850
|
+
return localVarFp.measurementsV1ControllerGetAllByUserIdAdmin(requestParameters.groupId, requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(axios, basePath));
|
|
851
|
+
},
|
|
852
|
+
/**
|
|
853
|
+
*
|
|
854
|
+
* @summary Get a measurement by group and measurement ID
|
|
855
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementIdRequest} requestParameters Request parameters.
|
|
856
|
+
* @param {*} [options] Override http request option.
|
|
857
|
+
* @throws {RequiredError}
|
|
858
|
+
*/
|
|
859
|
+
measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(requestParameters, options) {
|
|
860
|
+
return localVarFp.measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(requestParameters.groupId, requestParameters.measurementId, options).then((request) => request(axios, basePath));
|
|
861
|
+
},
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @summary Get a specific measurement by ID for the authenticated user
|
|
865
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByIdRequest} requestParameters Request parameters.
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
measurementsV1ControllerGetMeasurementById(requestParameters, options) {
|
|
870
|
+
return localVarFp.measurementsV1ControllerGetMeasurementById(requestParameters.measurementId, options).then((request) => request(axios, basePath));
|
|
871
|
+
},
|
|
872
|
+
/**
|
|
873
|
+
*
|
|
874
|
+
* @summary Update a specific measurement for the authenticated user
|
|
875
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest} requestParameters Request parameters.
|
|
876
|
+
* @param {*} [options] Override http request option.
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
*/
|
|
879
|
+
measurementsV1ControllerUpdateMeasurement(requestParameters, options) {
|
|
880
|
+
return localVarFp.measurementsV1ControllerUpdateMeasurement(requestParameters.measurementId, requestParameters.updateMeasurementRequestDto, options).then((request) => request(axios, basePath));
|
|
881
|
+
},
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
exports.MeasurementsV1ApiFactory = MeasurementsV1ApiFactory;
|
|
885
|
+
/**
|
|
886
|
+
* MeasurementsV1Api - object-oriented interface
|
|
887
|
+
* @export
|
|
888
|
+
* @class MeasurementsV1Api
|
|
889
|
+
* @extends {BaseAPI}
|
|
890
|
+
*/
|
|
891
|
+
class MeasurementsV1Api extends base_1.BaseAPI {
|
|
892
|
+
/**
|
|
893
|
+
*
|
|
894
|
+
* @summary Create a new measurement for the authenticated user
|
|
895
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurementRequest} requestParameters Request parameters.
|
|
896
|
+
* @param {*} [options] Override http request option.
|
|
897
|
+
* @throws {RequiredError}
|
|
898
|
+
* @memberof MeasurementsV1Api
|
|
899
|
+
*/
|
|
900
|
+
measurementsV1ControllerCreateMeasurement(requestParameters, options) {
|
|
901
|
+
return (0, exports.MeasurementsV1ApiFp)(this.configuration).measurementsV1ControllerCreateMeasurement(requestParameters.createMeasurementRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
*
|
|
905
|
+
* @summary Soft delete a specific measurement for the authenticated user
|
|
906
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurementRequest} requestParameters Request parameters.
|
|
907
|
+
* @param {*} [options] Override http request option.
|
|
908
|
+
* @throws {RequiredError}
|
|
909
|
+
* @memberof MeasurementsV1Api
|
|
910
|
+
*/
|
|
911
|
+
measurementsV1ControllerDeleteMeasurement(requestParameters, options) {
|
|
912
|
+
return (0, exports.MeasurementsV1ApiFp)(this.configuration).measurementsV1ControllerDeleteMeasurement(requestParameters.measurementId, options).then((request) => request(this.axios, this.basePath));
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
*
|
|
916
|
+
* @summary Get all measurements for the authenticated user
|
|
917
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdRequest} requestParameters Request parameters.
|
|
918
|
+
* @param {*} [options] Override http request option.
|
|
919
|
+
* @throws {RequiredError}
|
|
920
|
+
* @memberof MeasurementsV1Api
|
|
921
|
+
*/
|
|
922
|
+
measurementsV1ControllerGetAllByUserId(requestParameters = {}, options) {
|
|
923
|
+
return (0, exports.MeasurementsV1ApiFp)(this.configuration).measurementsV1ControllerGetAllByUserId(requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(this.axios, this.basePath));
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
*
|
|
927
|
+
* @summary Get all measurements for the group
|
|
928
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest} requestParameters Request parameters.
|
|
929
|
+
* @param {*} [options] Override http request option.
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
* @memberof MeasurementsV1Api
|
|
932
|
+
*/
|
|
933
|
+
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters, options) {
|
|
934
|
+
return (0, exports.MeasurementsV1ApiFp)(this.configuration).measurementsV1ControllerGetAllByUserIdAdmin(requestParameters.groupId, requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(this.axios, this.basePath));
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
*
|
|
938
|
+
* @summary Get a measurement by group and measurement ID
|
|
939
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementIdRequest} requestParameters Request parameters.
|
|
940
|
+
* @param {*} [options] Override http request option.
|
|
941
|
+
* @throws {RequiredError}
|
|
942
|
+
* @memberof MeasurementsV1Api
|
|
943
|
+
*/
|
|
944
|
+
measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(requestParameters, options) {
|
|
945
|
+
return (0, exports.MeasurementsV1ApiFp)(this.configuration).measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(requestParameters.groupId, requestParameters.measurementId, options).then((request) => request(this.axios, this.basePath));
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
*
|
|
949
|
+
* @summary Get a specific measurement by ID for the authenticated user
|
|
950
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByIdRequest} requestParameters Request parameters.
|
|
951
|
+
* @param {*} [options] Override http request option.
|
|
952
|
+
* @throws {RequiredError}
|
|
953
|
+
* @memberof MeasurementsV1Api
|
|
954
|
+
*/
|
|
955
|
+
measurementsV1ControllerGetMeasurementById(requestParameters, options) {
|
|
956
|
+
return (0, exports.MeasurementsV1ApiFp)(this.configuration).measurementsV1ControllerGetMeasurementById(requestParameters.measurementId, options).then((request) => request(this.axios, this.basePath));
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
*
|
|
960
|
+
* @summary Update a specific measurement for the authenticated user
|
|
961
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest} requestParameters Request parameters.
|
|
962
|
+
* @param {*} [options] Override http request option.
|
|
963
|
+
* @throws {RequiredError}
|
|
964
|
+
* @memberof MeasurementsV1Api
|
|
965
|
+
*/
|
|
966
|
+
measurementsV1ControllerUpdateMeasurement(requestParameters, options) {
|
|
967
|
+
return (0, exports.MeasurementsV1ApiFp)(this.configuration).measurementsV1ControllerUpdateMeasurement(requestParameters.measurementId, requestParameters.updateMeasurementRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
exports.MeasurementsV1Api = MeasurementsV1Api;
|