@dimrev4/fitness-v3-backend 0.0.12 → 0.0.13
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/api.ts +145 -1
- package/dist/api.d.ts +79 -0
- package/dist/api.js +91 -1
- package/dist/esm/api.d.ts +79 -0
- package/dist/esm/api.js +91 -1
- package/docs/MeasurementsV1Api.md +64 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2689,7 +2689,7 @@ export const MeasurementsV1ApiAxiosParamCreator = function (configuration?: Conf
|
|
|
2689
2689
|
* @throws {RequiredError}
|
|
2690
2690
|
*/
|
|
2691
2691
|
measurementsV1ControllerGetAllByUserId: async (fromDate?: string, toDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2692
|
-
const localVarPath = `/api/measurements/v1`;
|
|
2692
|
+
const localVarPath = `/api/measurements/v1/all`;
|
|
2693
2693
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2694
2694
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2695
2695
|
let baseOptions;
|
|
@@ -2787,6 +2787,67 @@ export const MeasurementsV1ApiAxiosParamCreator = function (configuration?: Conf
|
|
|
2787
2787
|
|
|
2788
2788
|
|
|
2789
2789
|
|
|
2790
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2791
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2792
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2793
|
+
|
|
2794
|
+
return {
|
|
2795
|
+
url: toPathString(localVarUrlObj),
|
|
2796
|
+
options: localVarRequestOptions,
|
|
2797
|
+
};
|
|
2798
|
+
},
|
|
2799
|
+
/**
|
|
2800
|
+
*
|
|
2801
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2802
|
+
* @param {number} [limit] Limit
|
|
2803
|
+
* @param {number} [offset] Offset
|
|
2804
|
+
* @param {string} [fromDate] From date
|
|
2805
|
+
* @param {string} [toDate] To date
|
|
2806
|
+
* @param {*} [options] Override http request option.
|
|
2807
|
+
* @throws {RequiredError}
|
|
2808
|
+
*/
|
|
2809
|
+
measurementsV1ControllerGetByUserIdPaginated: async (limit?: number, offset?: number, fromDate?: string, toDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2810
|
+
const localVarPath = `/api/measurements/v1`;
|
|
2811
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2812
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2813
|
+
let baseOptions;
|
|
2814
|
+
if (configuration) {
|
|
2815
|
+
baseOptions = configuration.baseOptions;
|
|
2816
|
+
}
|
|
2817
|
+
|
|
2818
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2819
|
+
const localVarHeaderParameter = {} as any;
|
|
2820
|
+
const localVarQueryParameter = {} as any;
|
|
2821
|
+
|
|
2822
|
+
// authentication apiKey required
|
|
2823
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
2824
|
+
|
|
2825
|
+
// authentication bearer required
|
|
2826
|
+
// http bearer authentication required
|
|
2827
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2828
|
+
|
|
2829
|
+
if (limit !== undefined) {
|
|
2830
|
+
localVarQueryParameter['limit'] = limit;
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
if (offset !== undefined) {
|
|
2834
|
+
localVarQueryParameter['offset'] = offset;
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
if (fromDate !== undefined) {
|
|
2838
|
+
localVarQueryParameter['fromDate'] = (fromDate as any instanceof Date) ?
|
|
2839
|
+
(fromDate as any).toISOString() :
|
|
2840
|
+
fromDate;
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
if (toDate !== undefined) {
|
|
2844
|
+
localVarQueryParameter['toDate'] = (toDate as any instanceof Date) ?
|
|
2845
|
+
(toDate as any).toISOString() :
|
|
2846
|
+
toDate;
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
|
|
2850
|
+
|
|
2790
2851
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2791
2852
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2792
2853
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2996,6 +3057,22 @@ export const MeasurementsV1ApiFp = function(configuration?: Configuration) {
|
|
|
2996
3057
|
const localVarOperationServerBasePath = operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetAllByUserIdAdmin']?.[localVarOperationServerIndex]?.url;
|
|
2997
3058
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2998
3059
|
},
|
|
3060
|
+
/**
|
|
3061
|
+
*
|
|
3062
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
3063
|
+
* @param {number} [limit] Limit
|
|
3064
|
+
* @param {number} [offset] Offset
|
|
3065
|
+
* @param {string} [fromDate] From date
|
|
3066
|
+
* @param {string} [toDate] To date
|
|
3067
|
+
* @param {*} [options] Override http request option.
|
|
3068
|
+
* @throws {RequiredError}
|
|
3069
|
+
*/
|
|
3070
|
+
async measurementsV1ControllerGetByUserIdPaginated(limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMeasurementsResponseDto>> {
|
|
3071
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.measurementsV1ControllerGetByUserIdPaginated(limit, offset, fromDate, toDate, options);
|
|
3072
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3073
|
+
const localVarOperationServerBasePath = operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetByUserIdPaginated']?.[localVarOperationServerIndex]?.url;
|
|
3074
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3075
|
+
},
|
|
2999
3076
|
/**
|
|
3000
3077
|
*
|
|
3001
3078
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -3087,6 +3164,16 @@ export const MeasurementsV1ApiFactory = function (configuration?: Configuration,
|
|
|
3087
3164
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto> {
|
|
3088
3165
|
return localVarFp.measurementsV1ControllerGetAllByUserIdAdmin(requestParameters.groupId, requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(axios, basePath));
|
|
3089
3166
|
},
|
|
3167
|
+
/**
|
|
3168
|
+
*
|
|
3169
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
3170
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
3171
|
+
* @param {*} [options] Override http request option.
|
|
3172
|
+
* @throws {RequiredError}
|
|
3173
|
+
*/
|
|
3174
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto> {
|
|
3175
|
+
return localVarFp.measurementsV1ControllerGetByUserIdPaginated(requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(axios, basePath));
|
|
3176
|
+
},
|
|
3090
3177
|
/**
|
|
3091
3178
|
*
|
|
3092
3179
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -3166,6 +3253,16 @@ export interface MeasurementsV1ApiInterface {
|
|
|
3166
3253
|
*/
|
|
3167
3254
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
|
|
3168
3255
|
|
|
3256
|
+
/**
|
|
3257
|
+
*
|
|
3258
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
3259
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
3260
|
+
* @param {*} [options] Override http request option.
|
|
3261
|
+
* @throws {RequiredError}
|
|
3262
|
+
* @memberof MeasurementsV1ApiInterface
|
|
3263
|
+
*/
|
|
3264
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters?: MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
|
|
3265
|
+
|
|
3169
3266
|
/**
|
|
3170
3267
|
*
|
|
3171
3268
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -3289,6 +3386,41 @@ export interface MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminReq
|
|
|
3289
3386
|
readonly toDate?: string
|
|
3290
3387
|
}
|
|
3291
3388
|
|
|
3389
|
+
/**
|
|
3390
|
+
* Request parameters for measurementsV1ControllerGetByUserIdPaginated operation in MeasurementsV1Api.
|
|
3391
|
+
* @export
|
|
3392
|
+
* @interface MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest
|
|
3393
|
+
*/
|
|
3394
|
+
export interface MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest {
|
|
3395
|
+
/**
|
|
3396
|
+
* Limit
|
|
3397
|
+
* @type {number}
|
|
3398
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
3399
|
+
*/
|
|
3400
|
+
readonly limit?: number
|
|
3401
|
+
|
|
3402
|
+
/**
|
|
3403
|
+
* Offset
|
|
3404
|
+
* @type {number}
|
|
3405
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
3406
|
+
*/
|
|
3407
|
+
readonly offset?: number
|
|
3408
|
+
|
|
3409
|
+
/**
|
|
3410
|
+
* From date
|
|
3411
|
+
* @type {string}
|
|
3412
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
3413
|
+
*/
|
|
3414
|
+
readonly fromDate?: string
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* To date
|
|
3418
|
+
* @type {string}
|
|
3419
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
3420
|
+
*/
|
|
3421
|
+
readonly toDate?: string
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3292
3424
|
/**
|
|
3293
3425
|
* Request parameters for measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId operation in MeasurementsV1Api.
|
|
3294
3426
|
* @export
|
|
@@ -3400,6 +3532,18 @@ export class MeasurementsV1Api extends BaseAPI implements MeasurementsV1ApiInter
|
|
|
3400
3532
|
return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerGetAllByUserIdAdmin(requestParameters.groupId, requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(this.axios, this.basePath));
|
|
3401
3533
|
}
|
|
3402
3534
|
|
|
3535
|
+
/**
|
|
3536
|
+
*
|
|
3537
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
3538
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
3539
|
+
* @param {*} [options] Override http request option.
|
|
3540
|
+
* @throws {RequiredError}
|
|
3541
|
+
* @memberof MeasurementsV1Api
|
|
3542
|
+
*/
|
|
3543
|
+
public measurementsV1ControllerGetByUserIdPaginated(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest = {}, options?: RawAxiosRequestConfig) {
|
|
3544
|
+
return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerGetByUserIdPaginated(requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(this.axios, this.basePath));
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3403
3547
|
/**
|
|
3404
3548
|
*
|
|
3405
3549
|
* @summary Get a measurement by group and measurement ID
|
package/dist/api.d.ts
CHANGED
|
@@ -2199,6 +2199,17 @@ export declare const MeasurementsV1ApiAxiosParamCreator: (configuration?: Config
|
|
|
2199
2199
|
* @throws {RequiredError}
|
|
2200
2200
|
*/
|
|
2201
2201
|
measurementsV1ControllerGetAllByUserIdAdmin: (groupId: string, limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2202
|
+
/**
|
|
2203
|
+
*
|
|
2204
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2205
|
+
* @param {number} [limit] Limit
|
|
2206
|
+
* @param {number} [offset] Offset
|
|
2207
|
+
* @param {string} [fromDate] From date
|
|
2208
|
+
* @param {string} [toDate] To date
|
|
2209
|
+
* @param {*} [options] Override http request option.
|
|
2210
|
+
* @throws {RequiredError}
|
|
2211
|
+
*/
|
|
2212
|
+
measurementsV1ControllerGetByUserIdPaginated: (limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2202
2213
|
/**
|
|
2203
2214
|
*
|
|
2204
2215
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -2268,6 +2279,17 @@ export declare const MeasurementsV1ApiFp: (configuration?: Configuration) => {
|
|
|
2268
2279
|
* @throws {RequiredError}
|
|
2269
2280
|
*/
|
|
2270
2281
|
measurementsV1ControllerGetAllByUserIdAdmin(groupId: string, limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMeasurementsResponseDto>>;
|
|
2282
|
+
/**
|
|
2283
|
+
*
|
|
2284
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2285
|
+
* @param {number} [limit] Limit
|
|
2286
|
+
* @param {number} [offset] Offset
|
|
2287
|
+
* @param {string} [fromDate] From date
|
|
2288
|
+
* @param {string} [toDate] To date
|
|
2289
|
+
* @param {*} [options] Override http request option.
|
|
2290
|
+
* @throws {RequiredError}
|
|
2291
|
+
*/
|
|
2292
|
+
measurementsV1ControllerGetByUserIdPaginated(limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMeasurementsResponseDto>>;
|
|
2271
2293
|
/**
|
|
2272
2294
|
*
|
|
2273
2295
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -2332,6 +2354,14 @@ export declare const MeasurementsV1ApiFactory: (configuration?: Configuration, b
|
|
|
2332
2354
|
* @throws {RequiredError}
|
|
2333
2355
|
*/
|
|
2334
2356
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
|
|
2357
|
+
/**
|
|
2358
|
+
*
|
|
2359
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2360
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
2361
|
+
* @param {*} [options] Override http request option.
|
|
2362
|
+
* @throws {RequiredError}
|
|
2363
|
+
*/
|
|
2364
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters?: MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
|
|
2335
2365
|
/**
|
|
2336
2366
|
*
|
|
2337
2367
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -2399,6 +2429,15 @@ export interface MeasurementsV1ApiInterface {
|
|
|
2399
2429
|
* @memberof MeasurementsV1ApiInterface
|
|
2400
2430
|
*/
|
|
2401
2431
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
|
|
2432
|
+
/**
|
|
2433
|
+
*
|
|
2434
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2435
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
2436
|
+
* @param {*} [options] Override http request option.
|
|
2437
|
+
* @throws {RequiredError}
|
|
2438
|
+
* @memberof MeasurementsV1ApiInterface
|
|
2439
|
+
*/
|
|
2440
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters?: MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
|
|
2402
2441
|
/**
|
|
2403
2442
|
*
|
|
2404
2443
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -2509,6 +2548,37 @@ export interface MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminReq
|
|
|
2509
2548
|
*/
|
|
2510
2549
|
readonly toDate?: string;
|
|
2511
2550
|
}
|
|
2551
|
+
/**
|
|
2552
|
+
* Request parameters for measurementsV1ControllerGetByUserIdPaginated operation in MeasurementsV1Api.
|
|
2553
|
+
* @export
|
|
2554
|
+
* @interface MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest
|
|
2555
|
+
*/
|
|
2556
|
+
export interface MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest {
|
|
2557
|
+
/**
|
|
2558
|
+
* Limit
|
|
2559
|
+
* @type {number}
|
|
2560
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
2561
|
+
*/
|
|
2562
|
+
readonly limit?: number;
|
|
2563
|
+
/**
|
|
2564
|
+
* Offset
|
|
2565
|
+
* @type {number}
|
|
2566
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
2567
|
+
*/
|
|
2568
|
+
readonly offset?: number;
|
|
2569
|
+
/**
|
|
2570
|
+
* From date
|
|
2571
|
+
* @type {string}
|
|
2572
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
2573
|
+
*/
|
|
2574
|
+
readonly fromDate?: string;
|
|
2575
|
+
/**
|
|
2576
|
+
* To date
|
|
2577
|
+
* @type {string}
|
|
2578
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
2579
|
+
*/
|
|
2580
|
+
readonly toDate?: string;
|
|
2581
|
+
}
|
|
2512
2582
|
/**
|
|
2513
2583
|
* Request parameters for measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId operation in MeasurementsV1Api.
|
|
2514
2584
|
* @export
|
|
@@ -2603,6 +2673,15 @@ export declare class MeasurementsV1Api extends BaseAPI implements MeasurementsV1
|
|
|
2603
2673
|
* @memberof MeasurementsV1Api
|
|
2604
2674
|
*/
|
|
2605
2675
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMeasurementsResponseDto, any, {}>>;
|
|
2676
|
+
/**
|
|
2677
|
+
*
|
|
2678
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2679
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
2680
|
+
* @param {*} [options] Override http request option.
|
|
2681
|
+
* @throws {RequiredError}
|
|
2682
|
+
* @memberof MeasurementsV1Api
|
|
2683
|
+
*/
|
|
2684
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters?: MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMeasurementsResponseDto, any, {}>>;
|
|
2606
2685
|
/**
|
|
2607
2686
|
*
|
|
2608
2687
|
* @summary Get a measurement by group and measurement ID
|
package/dist/api.js
CHANGED
|
@@ -845,7 +845,7 @@ const MeasurementsV1ApiAxiosParamCreator = function (configuration) {
|
|
|
845
845
|
* @throws {RequiredError}
|
|
846
846
|
*/
|
|
847
847
|
measurementsV1ControllerGetAllByUserId: (fromDate_1, toDate_1, ...args_1) => __awaiter(this, [fromDate_1, toDate_1, ...args_1], void 0, function* (fromDate, toDate, options = {}) {
|
|
848
|
-
const localVarPath = `/api/measurements/v1`;
|
|
848
|
+
const localVarPath = `/api/measurements/v1/all`;
|
|
849
849
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
850
850
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
851
851
|
let baseOptions;
|
|
@@ -932,6 +932,56 @@ const MeasurementsV1ApiAxiosParamCreator = function (configuration) {
|
|
|
932
932
|
options: localVarRequestOptions,
|
|
933
933
|
};
|
|
934
934
|
}),
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
938
|
+
* @param {number} [limit] Limit
|
|
939
|
+
* @param {number} [offset] Offset
|
|
940
|
+
* @param {string} [fromDate] From date
|
|
941
|
+
* @param {string} [toDate] To date
|
|
942
|
+
* @param {*} [options] Override http request option.
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
*/
|
|
945
|
+
measurementsV1ControllerGetByUserIdPaginated: (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 = {}) {
|
|
946
|
+
const localVarPath = `/api/measurements/v1`;
|
|
947
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
948
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
949
|
+
let baseOptions;
|
|
950
|
+
if (configuration) {
|
|
951
|
+
baseOptions = configuration.baseOptions;
|
|
952
|
+
}
|
|
953
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
954
|
+
const localVarHeaderParameter = {};
|
|
955
|
+
const localVarQueryParameter = {};
|
|
956
|
+
// authentication apiKey required
|
|
957
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
958
|
+
// authentication bearer required
|
|
959
|
+
// http bearer authentication required
|
|
960
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
961
|
+
if (limit !== undefined) {
|
|
962
|
+
localVarQueryParameter['limit'] = limit;
|
|
963
|
+
}
|
|
964
|
+
if (offset !== undefined) {
|
|
965
|
+
localVarQueryParameter['offset'] = offset;
|
|
966
|
+
}
|
|
967
|
+
if (fromDate !== undefined) {
|
|
968
|
+
localVarQueryParameter['fromDate'] = (fromDate instanceof Date) ?
|
|
969
|
+
fromDate.toISOString() :
|
|
970
|
+
fromDate;
|
|
971
|
+
}
|
|
972
|
+
if (toDate !== undefined) {
|
|
973
|
+
localVarQueryParameter['toDate'] = (toDate instanceof Date) ?
|
|
974
|
+
toDate.toISOString() :
|
|
975
|
+
toDate;
|
|
976
|
+
}
|
|
977
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
978
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
979
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
980
|
+
return {
|
|
981
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
982
|
+
options: localVarRequestOptions,
|
|
983
|
+
};
|
|
984
|
+
}),
|
|
935
985
|
/**
|
|
936
986
|
*
|
|
937
987
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -1122,6 +1172,25 @@ const MeasurementsV1ApiFp = function (configuration) {
|
|
|
1122
1172
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1123
1173
|
});
|
|
1124
1174
|
},
|
|
1175
|
+
/**
|
|
1176
|
+
*
|
|
1177
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
1178
|
+
* @param {number} [limit] Limit
|
|
1179
|
+
* @param {number} [offset] Offset
|
|
1180
|
+
* @param {string} [fromDate] From date
|
|
1181
|
+
* @param {string} [toDate] To date
|
|
1182
|
+
* @param {*} [options] Override http request option.
|
|
1183
|
+
* @throws {RequiredError}
|
|
1184
|
+
*/
|
|
1185
|
+
measurementsV1ControllerGetByUserIdPaginated(limit, offset, fromDate, toDate, options) {
|
|
1186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1187
|
+
var _a, _b, _c;
|
|
1188
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.measurementsV1ControllerGetByUserIdPaginated(limit, offset, fromDate, toDate, options);
|
|
1189
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1190
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetByUserIdPaginated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1191
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1192
|
+
});
|
|
1193
|
+
},
|
|
1125
1194
|
/**
|
|
1126
1195
|
*
|
|
1127
1196
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -1222,6 +1291,16 @@ const MeasurementsV1ApiFactory = function (configuration, basePath, axios) {
|
|
|
1222
1291
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters, options) {
|
|
1223
1292
|
return localVarFp.measurementsV1ControllerGetAllByUserIdAdmin(requestParameters.groupId, requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(axios, basePath));
|
|
1224
1293
|
},
|
|
1294
|
+
/**
|
|
1295
|
+
*
|
|
1296
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
1297
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
1298
|
+
* @param {*} [options] Override http request option.
|
|
1299
|
+
* @throws {RequiredError}
|
|
1300
|
+
*/
|
|
1301
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters = {}, options) {
|
|
1302
|
+
return localVarFp.measurementsV1ControllerGetByUserIdPaginated(requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(axios, basePath));
|
|
1303
|
+
},
|
|
1225
1304
|
/**
|
|
1226
1305
|
*
|
|
1227
1306
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -1306,6 +1385,17 @@ class MeasurementsV1Api extends base_1.BaseAPI {
|
|
|
1306
1385
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters, options) {
|
|
1307
1386
|
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));
|
|
1308
1387
|
}
|
|
1388
|
+
/**
|
|
1389
|
+
*
|
|
1390
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
1391
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
1392
|
+
* @param {*} [options] Override http request option.
|
|
1393
|
+
* @throws {RequiredError}
|
|
1394
|
+
* @memberof MeasurementsV1Api
|
|
1395
|
+
*/
|
|
1396
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters = {}, options) {
|
|
1397
|
+
return (0, exports.MeasurementsV1ApiFp)(this.configuration).measurementsV1ControllerGetByUserIdPaginated(requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(this.axios, this.basePath));
|
|
1398
|
+
}
|
|
1309
1399
|
/**
|
|
1310
1400
|
*
|
|
1311
1401
|
* @summary Get a measurement by group and measurement ID
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2199,6 +2199,17 @@ export declare const MeasurementsV1ApiAxiosParamCreator: (configuration?: Config
|
|
|
2199
2199
|
* @throws {RequiredError}
|
|
2200
2200
|
*/
|
|
2201
2201
|
measurementsV1ControllerGetAllByUserIdAdmin: (groupId: string, limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2202
|
+
/**
|
|
2203
|
+
*
|
|
2204
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2205
|
+
* @param {number} [limit] Limit
|
|
2206
|
+
* @param {number} [offset] Offset
|
|
2207
|
+
* @param {string} [fromDate] From date
|
|
2208
|
+
* @param {string} [toDate] To date
|
|
2209
|
+
* @param {*} [options] Override http request option.
|
|
2210
|
+
* @throws {RequiredError}
|
|
2211
|
+
*/
|
|
2212
|
+
measurementsV1ControllerGetByUserIdPaginated: (limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2202
2213
|
/**
|
|
2203
2214
|
*
|
|
2204
2215
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -2268,6 +2279,17 @@ export declare const MeasurementsV1ApiFp: (configuration?: Configuration) => {
|
|
|
2268
2279
|
* @throws {RequiredError}
|
|
2269
2280
|
*/
|
|
2270
2281
|
measurementsV1ControllerGetAllByUserIdAdmin(groupId: string, limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMeasurementsResponseDto>>;
|
|
2282
|
+
/**
|
|
2283
|
+
*
|
|
2284
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2285
|
+
* @param {number} [limit] Limit
|
|
2286
|
+
* @param {number} [offset] Offset
|
|
2287
|
+
* @param {string} [fromDate] From date
|
|
2288
|
+
* @param {string} [toDate] To date
|
|
2289
|
+
* @param {*} [options] Override http request option.
|
|
2290
|
+
* @throws {RequiredError}
|
|
2291
|
+
*/
|
|
2292
|
+
measurementsV1ControllerGetByUserIdPaginated(limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMeasurementsResponseDto>>;
|
|
2271
2293
|
/**
|
|
2272
2294
|
*
|
|
2273
2295
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -2332,6 +2354,14 @@ export declare const MeasurementsV1ApiFactory: (configuration?: Configuration, b
|
|
|
2332
2354
|
* @throws {RequiredError}
|
|
2333
2355
|
*/
|
|
2334
2356
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
|
|
2357
|
+
/**
|
|
2358
|
+
*
|
|
2359
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2360
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
2361
|
+
* @param {*} [options] Override http request option.
|
|
2362
|
+
* @throws {RequiredError}
|
|
2363
|
+
*/
|
|
2364
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters?: MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
|
|
2335
2365
|
/**
|
|
2336
2366
|
*
|
|
2337
2367
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -2399,6 +2429,15 @@ export interface MeasurementsV1ApiInterface {
|
|
|
2399
2429
|
* @memberof MeasurementsV1ApiInterface
|
|
2400
2430
|
*/
|
|
2401
2431
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
|
|
2432
|
+
/**
|
|
2433
|
+
*
|
|
2434
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2435
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
2436
|
+
* @param {*} [options] Override http request option.
|
|
2437
|
+
* @throws {RequiredError}
|
|
2438
|
+
* @memberof MeasurementsV1ApiInterface
|
|
2439
|
+
*/
|
|
2440
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters?: MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
|
|
2402
2441
|
/**
|
|
2403
2442
|
*
|
|
2404
2443
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -2509,6 +2548,37 @@ export interface MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminReq
|
|
|
2509
2548
|
*/
|
|
2510
2549
|
readonly toDate?: string;
|
|
2511
2550
|
}
|
|
2551
|
+
/**
|
|
2552
|
+
* Request parameters for measurementsV1ControllerGetByUserIdPaginated operation in MeasurementsV1Api.
|
|
2553
|
+
* @export
|
|
2554
|
+
* @interface MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest
|
|
2555
|
+
*/
|
|
2556
|
+
export interface MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest {
|
|
2557
|
+
/**
|
|
2558
|
+
* Limit
|
|
2559
|
+
* @type {number}
|
|
2560
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
2561
|
+
*/
|
|
2562
|
+
readonly limit?: number;
|
|
2563
|
+
/**
|
|
2564
|
+
* Offset
|
|
2565
|
+
* @type {number}
|
|
2566
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
2567
|
+
*/
|
|
2568
|
+
readonly offset?: number;
|
|
2569
|
+
/**
|
|
2570
|
+
* From date
|
|
2571
|
+
* @type {string}
|
|
2572
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
2573
|
+
*/
|
|
2574
|
+
readonly fromDate?: string;
|
|
2575
|
+
/**
|
|
2576
|
+
* To date
|
|
2577
|
+
* @type {string}
|
|
2578
|
+
* @memberof MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginated
|
|
2579
|
+
*/
|
|
2580
|
+
readonly toDate?: string;
|
|
2581
|
+
}
|
|
2512
2582
|
/**
|
|
2513
2583
|
* Request parameters for measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId operation in MeasurementsV1Api.
|
|
2514
2584
|
* @export
|
|
@@ -2603,6 +2673,15 @@ export declare class MeasurementsV1Api extends BaseAPI implements MeasurementsV1
|
|
|
2603
2673
|
* @memberof MeasurementsV1Api
|
|
2604
2674
|
*/
|
|
2605
2675
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMeasurementsResponseDto, any, {}>>;
|
|
2676
|
+
/**
|
|
2677
|
+
*
|
|
2678
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
2679
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
2680
|
+
* @param {*} [options] Override http request option.
|
|
2681
|
+
* @throws {RequiredError}
|
|
2682
|
+
* @memberof MeasurementsV1Api
|
|
2683
|
+
*/
|
|
2684
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters?: MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetMeasurementsResponseDto, any, {}>>;
|
|
2606
2685
|
/**
|
|
2607
2686
|
*
|
|
2608
2687
|
* @summary Get a measurement by group and measurement ID
|
package/dist/esm/api.js
CHANGED
|
@@ -834,7 +834,7 @@ export const MeasurementsV1ApiAxiosParamCreator = function (configuration) {
|
|
|
834
834
|
* @throws {RequiredError}
|
|
835
835
|
*/
|
|
836
836
|
measurementsV1ControllerGetAllByUserId: (fromDate_1, toDate_1, ...args_1) => __awaiter(this, [fromDate_1, toDate_1, ...args_1], void 0, function* (fromDate, toDate, options = {}) {
|
|
837
|
-
const localVarPath = `/api/measurements/v1`;
|
|
837
|
+
const localVarPath = `/api/measurements/v1/all`;
|
|
838
838
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
839
839
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
840
840
|
let baseOptions;
|
|
@@ -921,6 +921,56 @@ export const MeasurementsV1ApiAxiosParamCreator = function (configuration) {
|
|
|
921
921
|
options: localVarRequestOptions,
|
|
922
922
|
};
|
|
923
923
|
}),
|
|
924
|
+
/**
|
|
925
|
+
*
|
|
926
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
927
|
+
* @param {number} [limit] Limit
|
|
928
|
+
* @param {number} [offset] Offset
|
|
929
|
+
* @param {string} [fromDate] From date
|
|
930
|
+
* @param {string} [toDate] To date
|
|
931
|
+
* @param {*} [options] Override http request option.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
*/
|
|
934
|
+
measurementsV1ControllerGetByUserIdPaginated: (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 = {}) {
|
|
935
|
+
const localVarPath = `/api/measurements/v1`;
|
|
936
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
937
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
938
|
+
let baseOptions;
|
|
939
|
+
if (configuration) {
|
|
940
|
+
baseOptions = configuration.baseOptions;
|
|
941
|
+
}
|
|
942
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
943
|
+
const localVarHeaderParameter = {};
|
|
944
|
+
const localVarQueryParameter = {};
|
|
945
|
+
// authentication apiKey required
|
|
946
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
947
|
+
// authentication bearer required
|
|
948
|
+
// http bearer authentication required
|
|
949
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
950
|
+
if (limit !== undefined) {
|
|
951
|
+
localVarQueryParameter['limit'] = limit;
|
|
952
|
+
}
|
|
953
|
+
if (offset !== undefined) {
|
|
954
|
+
localVarQueryParameter['offset'] = offset;
|
|
955
|
+
}
|
|
956
|
+
if (fromDate !== undefined) {
|
|
957
|
+
localVarQueryParameter['fromDate'] = (fromDate instanceof Date) ?
|
|
958
|
+
fromDate.toISOString() :
|
|
959
|
+
fromDate;
|
|
960
|
+
}
|
|
961
|
+
if (toDate !== undefined) {
|
|
962
|
+
localVarQueryParameter['toDate'] = (toDate instanceof Date) ?
|
|
963
|
+
toDate.toISOString() :
|
|
964
|
+
toDate;
|
|
965
|
+
}
|
|
966
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
967
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
968
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
969
|
+
return {
|
|
970
|
+
url: toPathString(localVarUrlObj),
|
|
971
|
+
options: localVarRequestOptions,
|
|
972
|
+
};
|
|
973
|
+
}),
|
|
924
974
|
/**
|
|
925
975
|
*
|
|
926
976
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -1110,6 +1160,25 @@ export const MeasurementsV1ApiFp = function (configuration) {
|
|
|
1110
1160
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1111
1161
|
});
|
|
1112
1162
|
},
|
|
1163
|
+
/**
|
|
1164
|
+
*
|
|
1165
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
1166
|
+
* @param {number} [limit] Limit
|
|
1167
|
+
* @param {number} [offset] Offset
|
|
1168
|
+
* @param {string} [fromDate] From date
|
|
1169
|
+
* @param {string} [toDate] To date
|
|
1170
|
+
* @param {*} [options] Override http request option.
|
|
1171
|
+
* @throws {RequiredError}
|
|
1172
|
+
*/
|
|
1173
|
+
measurementsV1ControllerGetByUserIdPaginated(limit, offset, fromDate, toDate, options) {
|
|
1174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1175
|
+
var _a, _b, _c;
|
|
1176
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.measurementsV1ControllerGetByUserIdPaginated(limit, offset, fromDate, toDate, options);
|
|
1177
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1178
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetByUserIdPaginated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1179
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1180
|
+
});
|
|
1181
|
+
},
|
|
1113
1182
|
/**
|
|
1114
1183
|
*
|
|
1115
1184
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -1209,6 +1278,16 @@ export const MeasurementsV1ApiFactory = function (configuration, basePath, axios
|
|
|
1209
1278
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters, options) {
|
|
1210
1279
|
return localVarFp.measurementsV1ControllerGetAllByUserIdAdmin(requestParameters.groupId, requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(axios, basePath));
|
|
1211
1280
|
},
|
|
1281
|
+
/**
|
|
1282
|
+
*
|
|
1283
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
1284
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
1285
|
+
* @param {*} [options] Override http request option.
|
|
1286
|
+
* @throws {RequiredError}
|
|
1287
|
+
*/
|
|
1288
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters = {}, options) {
|
|
1289
|
+
return localVarFp.measurementsV1ControllerGetByUserIdPaginated(requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(axios, basePath));
|
|
1290
|
+
},
|
|
1212
1291
|
/**
|
|
1213
1292
|
*
|
|
1214
1293
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -1292,6 +1371,17 @@ export class MeasurementsV1Api extends BaseAPI {
|
|
|
1292
1371
|
measurementsV1ControllerGetAllByUserIdAdmin(requestParameters, options) {
|
|
1293
1372
|
return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerGetAllByUserIdAdmin(requestParameters.groupId, requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(this.axios, this.basePath));
|
|
1294
1373
|
}
|
|
1374
|
+
/**
|
|
1375
|
+
*
|
|
1376
|
+
* @summary Get all measurements for the authenticated user (paginated)
|
|
1377
|
+
* @param {MeasurementsV1ApiMeasurementsV1ControllerGetByUserIdPaginatedRequest} requestParameters Request parameters.
|
|
1378
|
+
* @param {*} [options] Override http request option.
|
|
1379
|
+
* @throws {RequiredError}
|
|
1380
|
+
* @memberof MeasurementsV1Api
|
|
1381
|
+
*/
|
|
1382
|
+
measurementsV1ControllerGetByUserIdPaginated(requestParameters = {}, options) {
|
|
1383
|
+
return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerGetByUserIdPaginated(requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(this.axios, this.basePath));
|
|
1384
|
+
}
|
|
1295
1385
|
/**
|
|
1296
1386
|
*
|
|
1297
1387
|
* @summary Get a measurement by group and measurement ID
|
|
@@ -6,8 +6,9 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**measurementsV1ControllerCreateMeasurement**](#measurementsv1controllercreatemeasurement) | **POST** /api/measurements/v1 | Create a new measurement for the authenticated user|
|
|
8
8
|
|[**measurementsV1ControllerDeleteMeasurement**](#measurementsv1controllerdeletemeasurement) | **DELETE** /api/measurements/v1/{measurementId} | Soft delete a specific measurement for the authenticated user|
|
|
9
|
-
|[**measurementsV1ControllerGetAllByUserId**](#measurementsv1controllergetallbyuserid) | **GET** /api/measurements/v1 | Get all measurements for the authenticated user|
|
|
9
|
+
|[**measurementsV1ControllerGetAllByUserId**](#measurementsv1controllergetallbyuserid) | **GET** /api/measurements/v1/all | Get all measurements for the authenticated user|
|
|
10
10
|
|[**measurementsV1ControllerGetAllByUserIdAdmin**](#measurementsv1controllergetallbyuseridadmin) | **GET** /api/measurements/v1/group/{groupId} | Get all measurements for the group|
|
|
11
|
+
|[**measurementsV1ControllerGetByUserIdPaginated**](#measurementsv1controllergetbyuseridpaginated) | **GET** /api/measurements/v1 | Get all measurements for the authenticated user (paginated)|
|
|
11
12
|
|[**measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId**](#measurementsv1controllergetmeasurementbygroupidandmeasurementid) | **GET** /api/measurements/v1/group/{groupId}/{measurementId} | Get a measurement by group and measurement ID|
|
|
12
13
|
|[**measurementsV1ControllerGetMeasurementById**](#measurementsv1controllergetmeasurementbyid) | **GET** /api/measurements/v1/{measurementId} | Get a specific measurement by ID for the authenticated user|
|
|
13
14
|
|[**measurementsV1ControllerUpdateMeasurement**](#measurementsv1controllerupdatemeasurement) | **PATCH** /api/measurements/v1/{measurementId} | Update a specific measurement for the authenticated user|
|
|
@@ -216,6 +217,68 @@ const { status, data } = await apiInstance.measurementsV1ControllerGetAllByUserI
|
|
|
216
217
|
| **toDate** | [**string**] | To date | (optional) defaults to undefined|
|
|
217
218
|
|
|
218
219
|
|
|
220
|
+
### Return type
|
|
221
|
+
|
|
222
|
+
**GetMeasurementsResponseDto**
|
|
223
|
+
|
|
224
|
+
### Authorization
|
|
225
|
+
|
|
226
|
+
[apiKey](../README.md#apiKey), [bearer](../README.md#bearer)
|
|
227
|
+
|
|
228
|
+
### HTTP request headers
|
|
229
|
+
|
|
230
|
+
- **Content-Type**: Not defined
|
|
231
|
+
- **Accept**: application/json
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### HTTP response details
|
|
235
|
+
| Status code | Description | Response headers |
|
|
236
|
+
|-------------|-------------|------------------|
|
|
237
|
+
|**200** | | - |
|
|
238
|
+
|**400** | Invalid JWT payload structure or validation failed | - |
|
|
239
|
+
|**401** | JWT token is missing, expired, or invalid | - |
|
|
240
|
+
|**500** | Internal server error during JWT validation | - |
|
|
241
|
+
|
|
242
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
243
|
+
|
|
244
|
+
# **measurementsV1ControllerGetByUserIdPaginated**
|
|
245
|
+
> GetMeasurementsResponseDto measurementsV1ControllerGetByUserIdPaginated()
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
### Example
|
|
249
|
+
|
|
250
|
+
```typescript
|
|
251
|
+
import {
|
|
252
|
+
MeasurementsV1Api,
|
|
253
|
+
Configuration
|
|
254
|
+
} from '@dimrev4/fitness-v3-backend-sdk';
|
|
255
|
+
|
|
256
|
+
const configuration = new Configuration();
|
|
257
|
+
const apiInstance = new MeasurementsV1Api(configuration);
|
|
258
|
+
|
|
259
|
+
let limit: number; //Limit (optional) (default to undefined)
|
|
260
|
+
let offset: number; //Offset (optional) (default to undefined)
|
|
261
|
+
let fromDate: string; //From date (optional) (default to undefined)
|
|
262
|
+
let toDate: string; //To date (optional) (default to undefined)
|
|
263
|
+
|
|
264
|
+
const { status, data } = await apiInstance.measurementsV1ControllerGetByUserIdPaginated(
|
|
265
|
+
limit,
|
|
266
|
+
offset,
|
|
267
|
+
fromDate,
|
|
268
|
+
toDate
|
|
269
|
+
);
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### Parameters
|
|
273
|
+
|
|
274
|
+
|Name | Type | Description | Notes|
|
|
275
|
+
|------------- | ------------- | ------------- | -------------|
|
|
276
|
+
| **limit** | [**number**] | Limit | (optional) defaults to undefined|
|
|
277
|
+
| **offset** | [**number**] | Offset | (optional) defaults to undefined|
|
|
278
|
+
| **fromDate** | [**string**] | From date | (optional) defaults to undefined|
|
|
279
|
+
| **toDate** | [**string**] | To date | (optional) defaults to undefined|
|
|
280
|
+
|
|
281
|
+
|
|
219
282
|
### Return type
|
|
220
283
|
|
|
221
284
|
**GetMeasurementsResponseDto**
|