@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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +423 -0
  5. package/api.ts +1870 -0
  6. package/base.ts +86 -0
  7. package/common.ts +150 -0
  8. package/configuration.ts +115 -0
  9. package/dist/api.d.ts +1285 -0
  10. package/dist/api.js +970 -0
  11. package/dist/base.d.ts +66 -0
  12. package/dist/base.js +65 -0
  13. package/dist/common.d.ts +65 -0
  14. package/dist/common.js +161 -0
  15. package/dist/configuration.d.ts +91 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +1285 -0
  18. package/dist/esm/api.js +959 -0
  19. package/dist/esm/base.d.ts +66 -0
  20. package/dist/esm/base.js +60 -0
  21. package/dist/esm/common.d.ts +65 -0
  22. package/dist/esm/common.js +149 -0
  23. package/dist/esm/configuration.d.ts +91 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/AuthV1Api.md +257 -0
  30. package/docs/ConfirmOtpRequestDto.md +22 -0
  31. package/docs/CreateMeasurementRequestDto.md +26 -0
  32. package/docs/DeleteMeasurementResponseDto.md +22 -0
  33. package/docs/GetMeResponseDto.md +20 -0
  34. package/docs/GetMeasurementsResponseDto.md +30 -0
  35. package/docs/GroupDto.md +28 -0
  36. package/docs/LoginRequestDto.md +22 -0
  37. package/docs/LoginResponseDto.md +22 -0
  38. package/docs/LogoutResponseDto.md +20 -0
  39. package/docs/MeasurementDto.md +36 -0
  40. package/docs/MeasurementsV1Api.md +414 -0
  41. package/docs/RegisterRequestDto.md +24 -0
  42. package/docs/RegisterResponseDto.md +20 -0
  43. package/docs/UpdateMeasurementRequestDto.md +24 -0
  44. package/docs/UserDetailsDto.md +32 -0
  45. package/docs/UserDto.md +30 -0
  46. package/docs/UserToGroupDetailsDto.md +42 -0
  47. package/git_push.sh +57 -0
  48. package/index.ts +18 -0
  49. package/package.json +38 -0
  50. package/tsconfig.esm.json +7 -0
  51. package/tsconfig.json +18 -0
package/api.ts ADDED
@@ -0,0 +1,1870 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fitness Backend
5
+ * Fitness Backend API
6
+ *
7
+ * The version of the OpenAPI document: 0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from './configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
22
+ import type { RequestArgs } from './base';
23
+ // @ts-ignore
24
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
+
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface ConfirmOtpRequestDto
30
+ */
31
+ export interface ConfirmOtpRequestDto {
32
+ /**
33
+ * Email
34
+ * @type {string}
35
+ * @memberof ConfirmOtpRequestDto
36
+ */
37
+ 'email': string;
38
+ /**
39
+ * OTP
40
+ * @type {string}
41
+ * @memberof ConfirmOtpRequestDto
42
+ */
43
+ 'otp': string;
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface CreateMeasurementRequestDto
49
+ */
50
+ export interface CreateMeasurementRequestDto {
51
+ /**
52
+ * Weight in kilograms
53
+ * @type {number}
54
+ * @memberof CreateMeasurementRequestDto
55
+ */
56
+ 'weightKG': number;
57
+ /**
58
+ * Height in centimeters
59
+ * @type {number}
60
+ * @memberof CreateMeasurementRequestDto
61
+ */
62
+ 'heightCM': number;
63
+ /**
64
+ * Body Mass Index
65
+ * @type {number}
66
+ * @memberof CreateMeasurementRequestDto
67
+ */
68
+ 'bmi': number;
69
+ /**
70
+ * Measurement date
71
+ * @type {string}
72
+ * @memberof CreateMeasurementRequestDto
73
+ */
74
+ 'date': string;
75
+ }
76
+ /**
77
+ *
78
+ * @export
79
+ * @interface DeleteMeasurementResponseDto
80
+ */
81
+ export interface DeleteMeasurementResponseDto {
82
+ /**
83
+ * Success message
84
+ * @type {string}
85
+ * @memberof DeleteMeasurementResponseDto
86
+ */
87
+ 'message': string;
88
+ /**
89
+ * ID of the deleted measurement
90
+ * @type {string}
91
+ * @memberof DeleteMeasurementResponseDto
92
+ */
93
+ 'id': string;
94
+ }
95
+ /**
96
+ *
97
+ * @export
98
+ * @interface GetMeResponseDto
99
+ */
100
+ export interface GetMeResponseDto {
101
+ /**
102
+ *
103
+ * @type {UserDetailsDto}
104
+ * @memberof GetMeResponseDto
105
+ */
106
+ 'user': UserDetailsDto;
107
+ }
108
+ /**
109
+ *
110
+ * @export
111
+ * @interface GetMeasurementsResponseDto
112
+ */
113
+ export interface GetMeasurementsResponseDto {
114
+ /**
115
+ *
116
+ * @type {MeasurementDto}
117
+ * @memberof GetMeasurementsResponseDto
118
+ */
119
+ 'items': MeasurementDto;
120
+ /**
121
+ *
122
+ * @type {number}
123
+ * @memberof GetMeasurementsResponseDto
124
+ */
125
+ 'totalItems': number;
126
+ /**
127
+ *
128
+ * @type {number}
129
+ * @memberof GetMeasurementsResponseDto
130
+ */
131
+ 'totalPages': number;
132
+ /**
133
+ *
134
+ * @type {number}
135
+ * @memberof GetMeasurementsResponseDto
136
+ */
137
+ 'currentPage': number;
138
+ /**
139
+ *
140
+ * @type {boolean}
141
+ * @memberof GetMeasurementsResponseDto
142
+ */
143
+ 'hasNextPage': boolean;
144
+ /**
145
+ *
146
+ * @type {boolean}
147
+ * @memberof GetMeasurementsResponseDto
148
+ */
149
+ 'hasPreviousPage': boolean;
150
+ }
151
+ /**
152
+ *
153
+ * @export
154
+ * @interface GroupDto
155
+ */
156
+ export interface GroupDto {
157
+ /**
158
+ * Group ID
159
+ * @type {string}
160
+ * @memberof GroupDto
161
+ */
162
+ 'id': string;
163
+ /**
164
+ * Group name
165
+ * @type {string}
166
+ * @memberof GroupDto
167
+ */
168
+ 'name': string;
169
+ /**
170
+ * Group creation date
171
+ * @type {string}
172
+ * @memberof GroupDto
173
+ */
174
+ 'createdAt': string;
175
+ /**
176
+ * Group update date
177
+ * @type {string}
178
+ * @memberof GroupDto
179
+ */
180
+ 'updatedAt': string;
181
+ /**
182
+ * Group deletion date
183
+ * @type {string}
184
+ * @memberof GroupDto
185
+ */
186
+ 'deletedAt': string | null;
187
+ }
188
+ /**
189
+ *
190
+ * @export
191
+ * @interface LoginRequestDto
192
+ */
193
+ export interface LoginRequestDto {
194
+ /**
195
+ * Email
196
+ * @type {string}
197
+ * @memberof LoginRequestDto
198
+ */
199
+ 'email': string;
200
+ /**
201
+ * Password
202
+ * @type {string}
203
+ * @memberof LoginRequestDto
204
+ */
205
+ 'password': string;
206
+ }
207
+ /**
208
+ *
209
+ * @export
210
+ * @interface LoginResponseDto
211
+ */
212
+ export interface LoginResponseDto {
213
+ /**
214
+ *
215
+ * @type {UserDetailsDto}
216
+ * @memberof LoginResponseDto
217
+ */
218
+ 'user': UserDetailsDto;
219
+ /**
220
+ *
221
+ * @type {string}
222
+ * @memberof LoginResponseDto
223
+ */
224
+ 'accessToken': string;
225
+ }
226
+ /**
227
+ *
228
+ * @export
229
+ * @interface LogoutResponseDto
230
+ */
231
+ export interface LogoutResponseDto {
232
+ /**
233
+ * Success message
234
+ * @type {string}
235
+ * @memberof LogoutResponseDto
236
+ */
237
+ 'message': string;
238
+ }
239
+ /**
240
+ *
241
+ * @export
242
+ * @interface MeasurementDto
243
+ */
244
+ export interface MeasurementDto {
245
+ /**
246
+ * Measurement ID
247
+ * @type {string}
248
+ * @memberof MeasurementDto
249
+ */
250
+ 'id': string;
251
+ /**
252
+ * Measurement take date
253
+ * @type {string}
254
+ * @memberof MeasurementDto
255
+ */
256
+ 'date': string;
257
+ /**
258
+ * Weight in KG
259
+ * @type {number}
260
+ * @memberof MeasurementDto
261
+ */
262
+ 'weightKG': number;
263
+ /**
264
+ * Height in CM
265
+ * @type {number}
266
+ * @memberof MeasurementDto
267
+ */
268
+ 'heightCM': number;
269
+ /**
270
+ * BMI
271
+ * @type {number}
272
+ * @memberof MeasurementDto
273
+ */
274
+ 'bmi': number;
275
+ /**
276
+ * User ID
277
+ * @type {string}
278
+ * @memberof MeasurementDto
279
+ */
280
+ 'userId': string;
281
+ /**
282
+ * Measurement creation date
283
+ * @type {string}
284
+ * @memberof MeasurementDto
285
+ */
286
+ 'createdAt': string;
287
+ /**
288
+ * Measurement update date
289
+ * @type {string}
290
+ * @memberof MeasurementDto
291
+ */
292
+ 'updatedAt': string;
293
+ /**
294
+ * Measurement deletion date
295
+ * @type {string}
296
+ * @memberof MeasurementDto
297
+ */
298
+ 'deletedAt': string | null;
299
+ }
300
+ /**
301
+ *
302
+ * @export
303
+ * @interface RegisterRequestDto
304
+ */
305
+ export interface RegisterRequestDto {
306
+ /**
307
+ * Email
308
+ * @type {string}
309
+ * @memberof RegisterRequestDto
310
+ */
311
+ 'email': string;
312
+ /**
313
+ * Username
314
+ * @type {string}
315
+ * @memberof RegisterRequestDto
316
+ */
317
+ 'username': string;
318
+ /**
319
+ * Password
320
+ * @type {string}
321
+ * @memberof RegisterRequestDto
322
+ */
323
+ 'password': string;
324
+ }
325
+ /**
326
+ *
327
+ * @export
328
+ * @interface RegisterResponseDto
329
+ */
330
+ export interface RegisterResponseDto {
331
+ /**
332
+ * Message
333
+ * @type {string}
334
+ * @memberof RegisterResponseDto
335
+ */
336
+ 'message': string;
337
+ }
338
+ /**
339
+ *
340
+ * @export
341
+ * @interface UpdateMeasurementRequestDto
342
+ */
343
+ export interface UpdateMeasurementRequestDto {
344
+ /**
345
+ * Weight in kilograms
346
+ * @type {number}
347
+ * @memberof UpdateMeasurementRequestDto
348
+ */
349
+ 'weightKG'?: number;
350
+ /**
351
+ * Height in centimeters
352
+ * @type {number}
353
+ * @memberof UpdateMeasurementRequestDto
354
+ */
355
+ 'heightCM'?: number;
356
+ /**
357
+ * Body Mass Index
358
+ * @type {number}
359
+ * @memberof UpdateMeasurementRequestDto
360
+ */
361
+ 'bmi'?: number;
362
+ }
363
+ /**
364
+ *
365
+ * @export
366
+ * @interface UserDetailsDto
367
+ */
368
+ export interface UserDetailsDto {
369
+ /**
370
+ * User ID
371
+ * @type {string}
372
+ * @memberof UserDetailsDto
373
+ */
374
+ 'id': string;
375
+ /**
376
+ * Username
377
+ * @type {string}
378
+ * @memberof UserDetailsDto
379
+ */
380
+ 'username': string;
381
+ /**
382
+ * User email
383
+ * @type {string}
384
+ * @memberof UserDetailsDto
385
+ */
386
+ 'email': string;
387
+ /**
388
+ * User creation date
389
+ * @type {string}
390
+ * @memberof UserDetailsDto
391
+ */
392
+ 'createdAt': string;
393
+ /**
394
+ * User update date
395
+ * @type {string}
396
+ * @memberof UserDetailsDto
397
+ */
398
+ 'updatedAt': string;
399
+ /**
400
+ * User deletion date
401
+ * @type {string}
402
+ * @memberof UserDetailsDto
403
+ */
404
+ 'deletedAt': string | null;
405
+ /**
406
+ * User to Group relations
407
+ * @type {Array<UserToGroupDetailsDto>}
408
+ * @memberof UserDetailsDto
409
+ */
410
+ 'userToGroup': Array<UserToGroupDetailsDto>;
411
+ }
412
+ /**
413
+ *
414
+ * @export
415
+ * @interface UserDto
416
+ */
417
+ export interface UserDto {
418
+ /**
419
+ * User ID
420
+ * @type {string}
421
+ * @memberof UserDto
422
+ */
423
+ 'id': string;
424
+ /**
425
+ * Username
426
+ * @type {string}
427
+ * @memberof UserDto
428
+ */
429
+ 'username': string;
430
+ /**
431
+ * User email
432
+ * @type {string}
433
+ * @memberof UserDto
434
+ */
435
+ 'email': string;
436
+ /**
437
+ * User creation date
438
+ * @type {string}
439
+ * @memberof UserDto
440
+ */
441
+ 'createdAt': string;
442
+ /**
443
+ * User update date
444
+ * @type {string}
445
+ * @memberof UserDto
446
+ */
447
+ 'updatedAt': string;
448
+ /**
449
+ * User deletion date
450
+ * @type {object}
451
+ * @memberof UserDto
452
+ */
453
+ 'deletedAt': object | null;
454
+ }
455
+ /**
456
+ *
457
+ * @export
458
+ * @interface UserToGroupDetailsDto
459
+ */
460
+ export interface UserToGroupDetailsDto {
461
+ /**
462
+ * Group ID
463
+ * @type {string}
464
+ * @memberof UserToGroupDetailsDto
465
+ */
466
+ 'groupId': string;
467
+ /**
468
+ * User ID
469
+ * @type {string}
470
+ * @memberof UserToGroupDetailsDto
471
+ */
472
+ 'userId': string;
473
+ /**
474
+ * Group creation date
475
+ * @type {string}
476
+ * @memberof UserToGroupDetailsDto
477
+ */
478
+ 'createdAt': string;
479
+ /**
480
+ * Group update date
481
+ * @type {string}
482
+ * @memberof UserToGroupDetailsDto
483
+ */
484
+ 'updatedAt': string;
485
+ /**
486
+ * Group deletion date
487
+ * @type {string}
488
+ * @memberof UserToGroupDetailsDto
489
+ */
490
+ 'deletedAt': string | null;
491
+ /**
492
+ * Can create
493
+ * @type {boolean}
494
+ * @memberof UserToGroupDetailsDto
495
+ */
496
+ 'canCreate': boolean;
497
+ /**
498
+ * Can read
499
+ * @type {boolean}
500
+ * @memberof UserToGroupDetailsDto
501
+ */
502
+ 'canRead': boolean;
503
+ /**
504
+ * Can update
505
+ * @type {boolean}
506
+ * @memberof UserToGroupDetailsDto
507
+ */
508
+ 'canUpdate': boolean;
509
+ /**
510
+ * Can delete
511
+ * @type {boolean}
512
+ * @memberof UserToGroupDetailsDto
513
+ */
514
+ 'canDelete': boolean;
515
+ /**
516
+ * Group
517
+ * @type {GroupDto}
518
+ * @memberof UserToGroupDetailsDto
519
+ */
520
+ 'group': GroupDto;
521
+ /**
522
+ * User
523
+ * @type {UserDto}
524
+ * @memberof UserToGroupDetailsDto
525
+ */
526
+ 'user': UserDto;
527
+ /**
528
+ * Is Root
529
+ * @type {boolean}
530
+ * @memberof UserToGroupDetailsDto
531
+ */
532
+ 'isRoot': boolean;
533
+ }
534
+
535
+ /**
536
+ * AuthV1Api - axios parameter creator
537
+ * @export
538
+ */
539
+ export const AuthV1ApiAxiosParamCreator = function (configuration?: Configuration) {
540
+ return {
541
+ /**
542
+ *
543
+ * @summary Confirm OTP
544
+ * @param {ConfirmOtpRequestDto} confirmOtpRequestDto
545
+ * @param {*} [options] Override http request option.
546
+ * @throws {RequiredError}
547
+ */
548
+ authV1ControllerConfirmOtp: async (confirmOtpRequestDto: ConfirmOtpRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
549
+ // verify required parameter 'confirmOtpRequestDto' is not null or undefined
550
+ assertParamExists('authV1ControllerConfirmOtp', 'confirmOtpRequestDto', confirmOtpRequestDto)
551
+ const localVarPath = `/api/auth/v1/confirm-otp`;
552
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
553
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
554
+ let baseOptions;
555
+ if (configuration) {
556
+ baseOptions = configuration.baseOptions;
557
+ }
558
+
559
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
560
+ const localVarHeaderParameter = {} as any;
561
+ const localVarQueryParameter = {} as any;
562
+
563
+
564
+
565
+ localVarHeaderParameter['Content-Type'] = 'application/json';
566
+
567
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
568
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
569
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
570
+ localVarRequestOptions.data = serializeDataIfNeeded(confirmOtpRequestDto, localVarRequestOptions, configuration)
571
+
572
+ return {
573
+ url: toPathString(localVarUrlObj),
574
+ options: localVarRequestOptions,
575
+ };
576
+ },
577
+ /**
578
+ *
579
+ * @summary Get Me
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ authV1ControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
584
+ const localVarPath = `/api/auth/v1/get-me`;
585
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
586
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
587
+ let baseOptions;
588
+ if (configuration) {
589
+ baseOptions = configuration.baseOptions;
590
+ }
591
+
592
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
593
+ const localVarHeaderParameter = {} as any;
594
+ const localVarQueryParameter = {} as any;
595
+
596
+ // authentication bearer required
597
+ // http bearer authentication required
598
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
599
+
600
+
601
+
602
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
603
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
604
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
605
+
606
+ return {
607
+ url: toPathString(localVarUrlObj),
608
+ options: localVarRequestOptions,
609
+ };
610
+ },
611
+ /**
612
+ *
613
+ * @summary Login
614
+ * @param {LoginRequestDto} loginRequestDto
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ authV1ControllerLogin: async (loginRequestDto: LoginRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
619
+ // verify required parameter 'loginRequestDto' is not null or undefined
620
+ assertParamExists('authV1ControllerLogin', 'loginRequestDto', loginRequestDto)
621
+ const localVarPath = `/api/auth/v1/login`;
622
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
623
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
624
+ let baseOptions;
625
+ if (configuration) {
626
+ baseOptions = configuration.baseOptions;
627
+ }
628
+
629
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
630
+ const localVarHeaderParameter = {} as any;
631
+ const localVarQueryParameter = {} as any;
632
+
633
+
634
+
635
+ localVarHeaderParameter['Content-Type'] = 'application/json';
636
+
637
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
638
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
639
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
640
+ localVarRequestOptions.data = serializeDataIfNeeded(loginRequestDto, localVarRequestOptions, configuration)
641
+
642
+ return {
643
+ url: toPathString(localVarUrlObj),
644
+ options: localVarRequestOptions,
645
+ };
646
+ },
647
+ /**
648
+ *
649
+ * @summary Logout
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ authV1ControllerLogout: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
654
+ const localVarPath = `/api/auth/v1/logout`;
655
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
656
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
657
+ let baseOptions;
658
+ if (configuration) {
659
+ baseOptions = configuration.baseOptions;
660
+ }
661
+
662
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
663
+ const localVarHeaderParameter = {} as any;
664
+ const localVarQueryParameter = {} as any;
665
+
666
+ // authentication bearer required
667
+ // http bearer authentication required
668
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
669
+
670
+
671
+
672
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
673
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
674
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
675
+
676
+ return {
677
+ url: toPathString(localVarUrlObj),
678
+ options: localVarRequestOptions,
679
+ };
680
+ },
681
+ /**
682
+ *
683
+ * @summary Register
684
+ * @param {RegisterRequestDto} registerRequestDto
685
+ * @param {*} [options] Override http request option.
686
+ * @throws {RequiredError}
687
+ */
688
+ authV1ControllerRegister: async (registerRequestDto: RegisterRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
689
+ // verify required parameter 'registerRequestDto' is not null or undefined
690
+ assertParamExists('authV1ControllerRegister', 'registerRequestDto', registerRequestDto)
691
+ const localVarPath = `/api/auth/v1/register`;
692
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
693
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
694
+ let baseOptions;
695
+ if (configuration) {
696
+ baseOptions = configuration.baseOptions;
697
+ }
698
+
699
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
700
+ const localVarHeaderParameter = {} as any;
701
+ const localVarQueryParameter = {} as any;
702
+
703
+
704
+
705
+ localVarHeaderParameter['Content-Type'] = 'application/json';
706
+
707
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
708
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
709
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
710
+ localVarRequestOptions.data = serializeDataIfNeeded(registerRequestDto, localVarRequestOptions, configuration)
711
+
712
+ return {
713
+ url: toPathString(localVarUrlObj),
714
+ options: localVarRequestOptions,
715
+ };
716
+ },
717
+ }
718
+ };
719
+
720
+ /**
721
+ * AuthV1Api - functional programming interface
722
+ * @export
723
+ */
724
+ export const AuthV1ApiFp = function(configuration?: Configuration) {
725
+ const localVarAxiosParamCreator = AuthV1ApiAxiosParamCreator(configuration)
726
+ return {
727
+ /**
728
+ *
729
+ * @summary Confirm OTP
730
+ * @param {ConfirmOtpRequestDto} confirmOtpRequestDto
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ async authV1ControllerConfirmOtp(confirmOtpRequestDto: ConfirmOtpRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
735
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authV1ControllerConfirmOtp(confirmOtpRequestDto, options);
736
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
737
+ const localVarOperationServerBasePath = operationServerMap['AuthV1Api.authV1ControllerConfirmOtp']?.[localVarOperationServerIndex]?.url;
738
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
739
+ },
740
+ /**
741
+ *
742
+ * @summary Get Me
743
+ * @param {*} [options] Override http request option.
744
+ * @throws {RequiredError}
745
+ */
746
+ async authV1ControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMeResponseDto>> {
747
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authV1ControllerGetMe(options);
748
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
749
+ const localVarOperationServerBasePath = operationServerMap['AuthV1Api.authV1ControllerGetMe']?.[localVarOperationServerIndex]?.url;
750
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
751
+ },
752
+ /**
753
+ *
754
+ * @summary Login
755
+ * @param {LoginRequestDto} loginRequestDto
756
+ * @param {*} [options] Override http request option.
757
+ * @throws {RequiredError}
758
+ */
759
+ async authV1ControllerLogin(loginRequestDto: LoginRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
760
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authV1ControllerLogin(loginRequestDto, options);
761
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
762
+ const localVarOperationServerBasePath = operationServerMap['AuthV1Api.authV1ControllerLogin']?.[localVarOperationServerIndex]?.url;
763
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
764
+ },
765
+ /**
766
+ *
767
+ * @summary Logout
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ async authV1ControllerLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
772
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authV1ControllerLogout(options);
773
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
774
+ const localVarOperationServerBasePath = operationServerMap['AuthV1Api.authV1ControllerLogout']?.[localVarOperationServerIndex]?.url;
775
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
776
+ },
777
+ /**
778
+ *
779
+ * @summary Register
780
+ * @param {RegisterRequestDto} registerRequestDto
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ */
784
+ async authV1ControllerRegister(registerRequestDto: RegisterRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterResponseDto>> {
785
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authV1ControllerRegister(registerRequestDto, options);
786
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
787
+ const localVarOperationServerBasePath = operationServerMap['AuthV1Api.authV1ControllerRegister']?.[localVarOperationServerIndex]?.url;
788
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
789
+ },
790
+ }
791
+ };
792
+
793
+ /**
794
+ * AuthV1Api - factory interface
795
+ * @export
796
+ */
797
+ export const AuthV1ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
798
+ const localVarFp = AuthV1ApiFp(configuration)
799
+ return {
800
+ /**
801
+ *
802
+ * @summary Confirm OTP
803
+ * @param {AuthV1ApiAuthV1ControllerConfirmOtpRequest} requestParameters Request parameters.
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ authV1ControllerConfirmOtp(requestParameters: AuthV1ApiAuthV1ControllerConfirmOtpRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponseDto> {
808
+ return localVarFp.authV1ControllerConfirmOtp(requestParameters.confirmOtpRequestDto, options).then((request) => request(axios, basePath));
809
+ },
810
+ /**
811
+ *
812
+ * @summary Get Me
813
+ * @param {*} [options] Override http request option.
814
+ * @throws {RequiredError}
815
+ */
816
+ authV1ControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<GetMeResponseDto> {
817
+ return localVarFp.authV1ControllerGetMe(options).then((request) => request(axios, basePath));
818
+ },
819
+ /**
820
+ *
821
+ * @summary Login
822
+ * @param {AuthV1ApiAuthV1ControllerLoginRequest} requestParameters Request parameters.
823
+ * @param {*} [options] Override http request option.
824
+ * @throws {RequiredError}
825
+ */
826
+ authV1ControllerLogin(requestParameters: AuthV1ApiAuthV1ControllerLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponseDto> {
827
+ return localVarFp.authV1ControllerLogin(requestParameters.loginRequestDto, options).then((request) => request(axios, basePath));
828
+ },
829
+ /**
830
+ *
831
+ * @summary Logout
832
+ * @param {*} [options] Override http request option.
833
+ * @throws {RequiredError}
834
+ */
835
+ authV1ControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
836
+ return localVarFp.authV1ControllerLogout(options).then((request) => request(axios, basePath));
837
+ },
838
+ /**
839
+ *
840
+ * @summary Register
841
+ * @param {AuthV1ApiAuthV1ControllerRegisterRequest} requestParameters Request parameters.
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ */
845
+ authV1ControllerRegister(requestParameters: AuthV1ApiAuthV1ControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterResponseDto> {
846
+ return localVarFp.authV1ControllerRegister(requestParameters.registerRequestDto, options).then((request) => request(axios, basePath));
847
+ },
848
+ };
849
+ };
850
+
851
+ /**
852
+ * AuthV1Api - interface
853
+ * @export
854
+ * @interface AuthV1Api
855
+ */
856
+ export interface AuthV1ApiInterface {
857
+ /**
858
+ *
859
+ * @summary Confirm OTP
860
+ * @param {AuthV1ApiAuthV1ControllerConfirmOtpRequest} requestParameters Request parameters.
861
+ * @param {*} [options] Override http request option.
862
+ * @throws {RequiredError}
863
+ * @memberof AuthV1ApiInterface
864
+ */
865
+ authV1ControllerConfirmOtp(requestParameters: AuthV1ApiAuthV1ControllerConfirmOtpRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponseDto>;
866
+
867
+ /**
868
+ *
869
+ * @summary Get Me
870
+ * @param {*} [options] Override http request option.
871
+ * @throws {RequiredError}
872
+ * @memberof AuthV1ApiInterface
873
+ */
874
+ authV1ControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<GetMeResponseDto>;
875
+
876
+ /**
877
+ *
878
+ * @summary Login
879
+ * @param {AuthV1ApiAuthV1ControllerLoginRequest} requestParameters Request parameters.
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ * @memberof AuthV1ApiInterface
883
+ */
884
+ authV1ControllerLogin(requestParameters: AuthV1ApiAuthV1ControllerLoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponseDto>;
885
+
886
+ /**
887
+ *
888
+ * @summary Logout
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ * @memberof AuthV1ApiInterface
892
+ */
893
+ authV1ControllerLogout(options?: RawAxiosRequestConfig): AxiosPromise<LogoutResponseDto>;
894
+
895
+ /**
896
+ *
897
+ * @summary Register
898
+ * @param {AuthV1ApiAuthV1ControllerRegisterRequest} requestParameters Request parameters.
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ * @memberof AuthV1ApiInterface
902
+ */
903
+ authV1ControllerRegister(requestParameters: AuthV1ApiAuthV1ControllerRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterResponseDto>;
904
+
905
+ }
906
+
907
+ /**
908
+ * Request parameters for authV1ControllerConfirmOtp operation in AuthV1Api.
909
+ * @export
910
+ * @interface AuthV1ApiAuthV1ControllerConfirmOtpRequest
911
+ */
912
+ export interface AuthV1ApiAuthV1ControllerConfirmOtpRequest {
913
+ /**
914
+ *
915
+ * @type {ConfirmOtpRequestDto}
916
+ * @memberof AuthV1ApiAuthV1ControllerConfirmOtp
917
+ */
918
+ readonly confirmOtpRequestDto: ConfirmOtpRequestDto
919
+ }
920
+
921
+ /**
922
+ * Request parameters for authV1ControllerLogin operation in AuthV1Api.
923
+ * @export
924
+ * @interface AuthV1ApiAuthV1ControllerLoginRequest
925
+ */
926
+ export interface AuthV1ApiAuthV1ControllerLoginRequest {
927
+ /**
928
+ *
929
+ * @type {LoginRequestDto}
930
+ * @memberof AuthV1ApiAuthV1ControllerLogin
931
+ */
932
+ readonly loginRequestDto: LoginRequestDto
933
+ }
934
+
935
+ /**
936
+ * Request parameters for authV1ControllerRegister operation in AuthV1Api.
937
+ * @export
938
+ * @interface AuthV1ApiAuthV1ControllerRegisterRequest
939
+ */
940
+ export interface AuthV1ApiAuthV1ControllerRegisterRequest {
941
+ /**
942
+ *
943
+ * @type {RegisterRequestDto}
944
+ * @memberof AuthV1ApiAuthV1ControllerRegister
945
+ */
946
+ readonly registerRequestDto: RegisterRequestDto
947
+ }
948
+
949
+ /**
950
+ * AuthV1Api - object-oriented interface
951
+ * @export
952
+ * @class AuthV1Api
953
+ * @extends {BaseAPI}
954
+ */
955
+ export class AuthV1Api extends BaseAPI implements AuthV1ApiInterface {
956
+ /**
957
+ *
958
+ * @summary Confirm OTP
959
+ * @param {AuthV1ApiAuthV1ControllerConfirmOtpRequest} requestParameters Request parameters.
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ * @memberof AuthV1Api
963
+ */
964
+ public authV1ControllerConfirmOtp(requestParameters: AuthV1ApiAuthV1ControllerConfirmOtpRequest, options?: RawAxiosRequestConfig) {
965
+ return AuthV1ApiFp(this.configuration).authV1ControllerConfirmOtp(requestParameters.confirmOtpRequestDto, options).then((request) => request(this.axios, this.basePath));
966
+ }
967
+
968
+ /**
969
+ *
970
+ * @summary Get Me
971
+ * @param {*} [options] Override http request option.
972
+ * @throws {RequiredError}
973
+ * @memberof AuthV1Api
974
+ */
975
+ public authV1ControllerGetMe(options?: RawAxiosRequestConfig) {
976
+ return AuthV1ApiFp(this.configuration).authV1ControllerGetMe(options).then((request) => request(this.axios, this.basePath));
977
+ }
978
+
979
+ /**
980
+ *
981
+ * @summary Login
982
+ * @param {AuthV1ApiAuthV1ControllerLoginRequest} requestParameters Request parameters.
983
+ * @param {*} [options] Override http request option.
984
+ * @throws {RequiredError}
985
+ * @memberof AuthV1Api
986
+ */
987
+ public authV1ControllerLogin(requestParameters: AuthV1ApiAuthV1ControllerLoginRequest, options?: RawAxiosRequestConfig) {
988
+ return AuthV1ApiFp(this.configuration).authV1ControllerLogin(requestParameters.loginRequestDto, options).then((request) => request(this.axios, this.basePath));
989
+ }
990
+
991
+ /**
992
+ *
993
+ * @summary Logout
994
+ * @param {*} [options] Override http request option.
995
+ * @throws {RequiredError}
996
+ * @memberof AuthV1Api
997
+ */
998
+ public authV1ControllerLogout(options?: RawAxiosRequestConfig) {
999
+ return AuthV1ApiFp(this.configuration).authV1ControllerLogout(options).then((request) => request(this.axios, this.basePath));
1000
+ }
1001
+
1002
+ /**
1003
+ *
1004
+ * @summary Register
1005
+ * @param {AuthV1ApiAuthV1ControllerRegisterRequest} requestParameters Request parameters.
1006
+ * @param {*} [options] Override http request option.
1007
+ * @throws {RequiredError}
1008
+ * @memberof AuthV1Api
1009
+ */
1010
+ public authV1ControllerRegister(requestParameters: AuthV1ApiAuthV1ControllerRegisterRequest, options?: RawAxiosRequestConfig) {
1011
+ return AuthV1ApiFp(this.configuration).authV1ControllerRegister(requestParameters.registerRequestDto, options).then((request) => request(this.axios, this.basePath));
1012
+ }
1013
+ }
1014
+
1015
+
1016
+
1017
+ /**
1018
+ * MeasurementsV1Api - axios parameter creator
1019
+ * @export
1020
+ */
1021
+ export const MeasurementsV1ApiAxiosParamCreator = function (configuration?: Configuration) {
1022
+ return {
1023
+ /**
1024
+ *
1025
+ * @summary Create a new measurement for the authenticated user
1026
+ * @param {CreateMeasurementRequestDto} createMeasurementRequestDto
1027
+ * @param {*} [options] Override http request option.
1028
+ * @throws {RequiredError}
1029
+ */
1030
+ measurementsV1ControllerCreateMeasurement: async (createMeasurementRequestDto: CreateMeasurementRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1031
+ // verify required parameter 'createMeasurementRequestDto' is not null or undefined
1032
+ assertParamExists('measurementsV1ControllerCreateMeasurement', 'createMeasurementRequestDto', createMeasurementRequestDto)
1033
+ const localVarPath = `/api/measurements/v1`;
1034
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1035
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1036
+ let baseOptions;
1037
+ if (configuration) {
1038
+ baseOptions = configuration.baseOptions;
1039
+ }
1040
+
1041
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1042
+ const localVarHeaderParameter = {} as any;
1043
+ const localVarQueryParameter = {} as any;
1044
+
1045
+ // authentication bearer required
1046
+ // http bearer authentication required
1047
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1048
+
1049
+
1050
+
1051
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1052
+
1053
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1054
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1055
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1056
+ localVarRequestOptions.data = serializeDataIfNeeded(createMeasurementRequestDto, localVarRequestOptions, configuration)
1057
+
1058
+ return {
1059
+ url: toPathString(localVarUrlObj),
1060
+ options: localVarRequestOptions,
1061
+ };
1062
+ },
1063
+ /**
1064
+ *
1065
+ * @summary Soft delete a specific measurement for the authenticated user
1066
+ * @param {string} measurementId
1067
+ * @param {*} [options] Override http request option.
1068
+ * @throws {RequiredError}
1069
+ */
1070
+ measurementsV1ControllerDeleteMeasurement: async (measurementId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1071
+ // verify required parameter 'measurementId' is not null or undefined
1072
+ assertParamExists('measurementsV1ControllerDeleteMeasurement', 'measurementId', measurementId)
1073
+ const localVarPath = `/api/measurements/v1/{measurementId}`
1074
+ .replace(`{${"measurementId"}}`, encodeURIComponent(String(measurementId)));
1075
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1076
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1077
+ let baseOptions;
1078
+ if (configuration) {
1079
+ baseOptions = configuration.baseOptions;
1080
+ }
1081
+
1082
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1083
+ const localVarHeaderParameter = {} as any;
1084
+ const localVarQueryParameter = {} as any;
1085
+
1086
+ // authentication bearer required
1087
+ // http bearer authentication required
1088
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1089
+
1090
+
1091
+
1092
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1093
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1094
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1095
+
1096
+ return {
1097
+ url: toPathString(localVarUrlObj),
1098
+ options: localVarRequestOptions,
1099
+ };
1100
+ },
1101
+ /**
1102
+ *
1103
+ * @summary Get all measurements for the authenticated user
1104
+ * @param {number} [limit] Limit
1105
+ * @param {number} [offset] Offset
1106
+ * @param {string} [fromDate] From date
1107
+ * @param {string} [toDate] To date
1108
+ * @param {*} [options] Override http request option.
1109
+ * @throws {RequiredError}
1110
+ */
1111
+ measurementsV1ControllerGetAllByUserId: async (limit?: number, offset?: number, fromDate?: string, toDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1112
+ const localVarPath = `/api/measurements/v1`;
1113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1114
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1115
+ let baseOptions;
1116
+ if (configuration) {
1117
+ baseOptions = configuration.baseOptions;
1118
+ }
1119
+
1120
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1121
+ const localVarHeaderParameter = {} as any;
1122
+ const localVarQueryParameter = {} as any;
1123
+
1124
+ // authentication bearer required
1125
+ // http bearer authentication required
1126
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1127
+
1128
+ if (limit !== undefined) {
1129
+ localVarQueryParameter['limit'] = limit;
1130
+ }
1131
+
1132
+ if (offset !== undefined) {
1133
+ localVarQueryParameter['offset'] = offset;
1134
+ }
1135
+
1136
+ if (fromDate !== undefined) {
1137
+ localVarQueryParameter['fromDate'] = (fromDate as any instanceof Date) ?
1138
+ (fromDate as any).toISOString() :
1139
+ fromDate;
1140
+ }
1141
+
1142
+ if (toDate !== undefined) {
1143
+ localVarQueryParameter['toDate'] = (toDate as any instanceof Date) ?
1144
+ (toDate as any).toISOString() :
1145
+ toDate;
1146
+ }
1147
+
1148
+
1149
+
1150
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1152
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1153
+
1154
+ return {
1155
+ url: toPathString(localVarUrlObj),
1156
+ options: localVarRequestOptions,
1157
+ };
1158
+ },
1159
+ /**
1160
+ *
1161
+ * @summary Get all measurements for the group
1162
+ * @param {string} groupId
1163
+ * @param {number} [limit] Limit
1164
+ * @param {number} [offset] Offset
1165
+ * @param {string} [fromDate] From date
1166
+ * @param {string} [toDate] To date
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ */
1170
+ measurementsV1ControllerGetAllByUserIdAdmin: async (groupId: string, limit?: number, offset?: number, fromDate?: string, toDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1171
+ // verify required parameter 'groupId' is not null or undefined
1172
+ assertParamExists('measurementsV1ControllerGetAllByUserIdAdmin', 'groupId', groupId)
1173
+ const localVarPath = `/api/measurements/v1/group/{groupId}`
1174
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
1175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1176
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1177
+ let baseOptions;
1178
+ if (configuration) {
1179
+ baseOptions = configuration.baseOptions;
1180
+ }
1181
+
1182
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1183
+ const localVarHeaderParameter = {} as any;
1184
+ const localVarQueryParameter = {} as any;
1185
+
1186
+ // authentication bearer required
1187
+ // http bearer authentication required
1188
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1189
+
1190
+ if (limit !== undefined) {
1191
+ localVarQueryParameter['limit'] = limit;
1192
+ }
1193
+
1194
+ if (offset !== undefined) {
1195
+ localVarQueryParameter['offset'] = offset;
1196
+ }
1197
+
1198
+ if (fromDate !== undefined) {
1199
+ localVarQueryParameter['fromDate'] = (fromDate as any instanceof Date) ?
1200
+ (fromDate as any).toISOString() :
1201
+ fromDate;
1202
+ }
1203
+
1204
+ if (toDate !== undefined) {
1205
+ localVarQueryParameter['toDate'] = (toDate as any instanceof Date) ?
1206
+ (toDate as any).toISOString() :
1207
+ toDate;
1208
+ }
1209
+
1210
+
1211
+
1212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1214
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1215
+
1216
+ return {
1217
+ url: toPathString(localVarUrlObj),
1218
+ options: localVarRequestOptions,
1219
+ };
1220
+ },
1221
+ /**
1222
+ *
1223
+ * @summary Get a measurement by group and measurement ID
1224
+ * @param {string} groupId
1225
+ * @param {string} measurementId
1226
+ * @param {*} [options] Override http request option.
1227
+ * @throws {RequiredError}
1228
+ */
1229
+ measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId: async (groupId: string, measurementId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1230
+ // verify required parameter 'groupId' is not null or undefined
1231
+ assertParamExists('measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId', 'groupId', groupId)
1232
+ // verify required parameter 'measurementId' is not null or undefined
1233
+ assertParamExists('measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId', 'measurementId', measurementId)
1234
+ const localVarPath = `/api/measurements/v1/group/{groupId}/{measurementId}`
1235
+ .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
1236
+ .replace(`{${"measurementId"}}`, encodeURIComponent(String(measurementId)));
1237
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1238
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1239
+ let baseOptions;
1240
+ if (configuration) {
1241
+ baseOptions = configuration.baseOptions;
1242
+ }
1243
+
1244
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1245
+ const localVarHeaderParameter = {} as any;
1246
+ const localVarQueryParameter = {} as any;
1247
+
1248
+ // authentication bearer required
1249
+ // http bearer authentication required
1250
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1251
+
1252
+
1253
+
1254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1257
+
1258
+ return {
1259
+ url: toPathString(localVarUrlObj),
1260
+ options: localVarRequestOptions,
1261
+ };
1262
+ },
1263
+ /**
1264
+ *
1265
+ * @summary Get a specific measurement by ID for the authenticated user
1266
+ * @param {string} measurementId
1267
+ * @param {*} [options] Override http request option.
1268
+ * @throws {RequiredError}
1269
+ */
1270
+ measurementsV1ControllerGetMeasurementById: async (measurementId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1271
+ // verify required parameter 'measurementId' is not null or undefined
1272
+ assertParamExists('measurementsV1ControllerGetMeasurementById', 'measurementId', measurementId)
1273
+ const localVarPath = `/api/measurements/v1/{measurementId}`
1274
+ .replace(`{${"measurementId"}}`, encodeURIComponent(String(measurementId)));
1275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1276
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1277
+ let baseOptions;
1278
+ if (configuration) {
1279
+ baseOptions = configuration.baseOptions;
1280
+ }
1281
+
1282
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1283
+ const localVarHeaderParameter = {} as any;
1284
+ const localVarQueryParameter = {} as any;
1285
+
1286
+ // authentication bearer required
1287
+ // http bearer authentication required
1288
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1289
+
1290
+
1291
+
1292
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1294
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1295
+
1296
+ return {
1297
+ url: toPathString(localVarUrlObj),
1298
+ options: localVarRequestOptions,
1299
+ };
1300
+ },
1301
+ /**
1302
+ *
1303
+ * @summary Update a specific measurement for the authenticated user
1304
+ * @param {string} measurementId
1305
+ * @param {UpdateMeasurementRequestDto} updateMeasurementRequestDto
1306
+ * @param {*} [options] Override http request option.
1307
+ * @throws {RequiredError}
1308
+ */
1309
+ measurementsV1ControllerUpdateMeasurement: async (measurementId: string, updateMeasurementRequestDto: UpdateMeasurementRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1310
+ // verify required parameter 'measurementId' is not null or undefined
1311
+ assertParamExists('measurementsV1ControllerUpdateMeasurement', 'measurementId', measurementId)
1312
+ // verify required parameter 'updateMeasurementRequestDto' is not null or undefined
1313
+ assertParamExists('measurementsV1ControllerUpdateMeasurement', 'updateMeasurementRequestDto', updateMeasurementRequestDto)
1314
+ const localVarPath = `/api/measurements/v1/{measurementId}`
1315
+ .replace(`{${"measurementId"}}`, encodeURIComponent(String(measurementId)));
1316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1317
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1318
+ let baseOptions;
1319
+ if (configuration) {
1320
+ baseOptions = configuration.baseOptions;
1321
+ }
1322
+
1323
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1324
+ const localVarHeaderParameter = {} as any;
1325
+ const localVarQueryParameter = {} as any;
1326
+
1327
+ // authentication bearer required
1328
+ // http bearer authentication required
1329
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1330
+
1331
+
1332
+
1333
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1334
+
1335
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1337
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1338
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMeasurementRequestDto, localVarRequestOptions, configuration)
1339
+
1340
+ return {
1341
+ url: toPathString(localVarUrlObj),
1342
+ options: localVarRequestOptions,
1343
+ };
1344
+ },
1345
+ }
1346
+ };
1347
+
1348
+ /**
1349
+ * MeasurementsV1Api - functional programming interface
1350
+ * @export
1351
+ */
1352
+ export const MeasurementsV1ApiFp = function(configuration?: Configuration) {
1353
+ const localVarAxiosParamCreator = MeasurementsV1ApiAxiosParamCreator(configuration)
1354
+ return {
1355
+ /**
1356
+ *
1357
+ * @summary Create a new measurement for the authenticated user
1358
+ * @param {CreateMeasurementRequestDto} createMeasurementRequestDto
1359
+ * @param {*} [options] Override http request option.
1360
+ * @throws {RequiredError}
1361
+ */
1362
+ async measurementsV1ControllerCreateMeasurement(createMeasurementRequestDto: CreateMeasurementRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MeasurementDto>> {
1363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.measurementsV1ControllerCreateMeasurement(createMeasurementRequestDto, options);
1364
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1365
+ const localVarOperationServerBasePath = operationServerMap['MeasurementsV1Api.measurementsV1ControllerCreateMeasurement']?.[localVarOperationServerIndex]?.url;
1366
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1367
+ },
1368
+ /**
1369
+ *
1370
+ * @summary Soft delete a specific measurement for the authenticated user
1371
+ * @param {string} measurementId
1372
+ * @param {*} [options] Override http request option.
1373
+ * @throws {RequiredError}
1374
+ */
1375
+ async measurementsV1ControllerDeleteMeasurement(measurementId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteMeasurementResponseDto>> {
1376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.measurementsV1ControllerDeleteMeasurement(measurementId, options);
1377
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1378
+ const localVarOperationServerBasePath = operationServerMap['MeasurementsV1Api.measurementsV1ControllerDeleteMeasurement']?.[localVarOperationServerIndex]?.url;
1379
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1380
+ },
1381
+ /**
1382
+ *
1383
+ * @summary Get all measurements for the authenticated user
1384
+ * @param {number} [limit] Limit
1385
+ * @param {number} [offset] Offset
1386
+ * @param {string} [fromDate] From date
1387
+ * @param {string} [toDate] To date
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ */
1391
+ async measurementsV1ControllerGetAllByUserId(limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMeasurementsResponseDto>> {
1392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.measurementsV1ControllerGetAllByUserId(limit, offset, fromDate, toDate, options);
1393
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1394
+ const localVarOperationServerBasePath = operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetAllByUserId']?.[localVarOperationServerIndex]?.url;
1395
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1396
+ },
1397
+ /**
1398
+ *
1399
+ * @summary Get all measurements for the group
1400
+ * @param {string} groupId
1401
+ * @param {number} [limit] Limit
1402
+ * @param {number} [offset] Offset
1403
+ * @param {string} [fromDate] From date
1404
+ * @param {string} [toDate] To date
1405
+ * @param {*} [options] Override http request option.
1406
+ * @throws {RequiredError}
1407
+ */
1408
+ async measurementsV1ControllerGetAllByUserIdAdmin(groupId: string, limit?: number, offset?: number, fromDate?: string, toDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetMeasurementsResponseDto>> {
1409
+ const localVarAxiosArgs = await localVarAxiosParamCreator.measurementsV1ControllerGetAllByUserIdAdmin(groupId, limit, offset, fromDate, toDate, options);
1410
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1411
+ const localVarOperationServerBasePath = operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetAllByUserIdAdmin']?.[localVarOperationServerIndex]?.url;
1412
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1413
+ },
1414
+ /**
1415
+ *
1416
+ * @summary Get a measurement by group and measurement ID
1417
+ * @param {string} groupId
1418
+ * @param {string} measurementId
1419
+ * @param {*} [options] Override http request option.
1420
+ * @throws {RequiredError}
1421
+ */
1422
+ async measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(groupId: string, measurementId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MeasurementDto>> {
1423
+ const localVarAxiosArgs = await localVarAxiosParamCreator.measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(groupId, measurementId, options);
1424
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1425
+ const localVarOperationServerBasePath = operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId']?.[localVarOperationServerIndex]?.url;
1426
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1427
+ },
1428
+ /**
1429
+ *
1430
+ * @summary Get a specific measurement by ID for the authenticated user
1431
+ * @param {string} measurementId
1432
+ * @param {*} [options] Override http request option.
1433
+ * @throws {RequiredError}
1434
+ */
1435
+ async measurementsV1ControllerGetMeasurementById(measurementId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MeasurementDto>> {
1436
+ const localVarAxiosArgs = await localVarAxiosParamCreator.measurementsV1ControllerGetMeasurementById(measurementId, options);
1437
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1438
+ const localVarOperationServerBasePath = operationServerMap['MeasurementsV1Api.measurementsV1ControllerGetMeasurementById']?.[localVarOperationServerIndex]?.url;
1439
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1440
+ },
1441
+ /**
1442
+ *
1443
+ * @summary Update a specific measurement for the authenticated user
1444
+ * @param {string} measurementId
1445
+ * @param {UpdateMeasurementRequestDto} updateMeasurementRequestDto
1446
+ * @param {*} [options] Override http request option.
1447
+ * @throws {RequiredError}
1448
+ */
1449
+ async measurementsV1ControllerUpdateMeasurement(measurementId: string, updateMeasurementRequestDto: UpdateMeasurementRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MeasurementDto>> {
1450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.measurementsV1ControllerUpdateMeasurement(measurementId, updateMeasurementRequestDto, options);
1451
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1452
+ const localVarOperationServerBasePath = operationServerMap['MeasurementsV1Api.measurementsV1ControllerUpdateMeasurement']?.[localVarOperationServerIndex]?.url;
1453
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1454
+ },
1455
+ }
1456
+ };
1457
+
1458
+ /**
1459
+ * MeasurementsV1Api - factory interface
1460
+ * @export
1461
+ */
1462
+ export const MeasurementsV1ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1463
+ const localVarFp = MeasurementsV1ApiFp(configuration)
1464
+ return {
1465
+ /**
1466
+ *
1467
+ * @summary Create a new measurement for the authenticated user
1468
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurementRequest} requestParameters Request parameters.
1469
+ * @param {*} [options] Override http request option.
1470
+ * @throws {RequiredError}
1471
+ */
1472
+ measurementsV1ControllerCreateMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurementRequest, options?: RawAxiosRequestConfig): AxiosPromise<MeasurementDto> {
1473
+ return localVarFp.measurementsV1ControllerCreateMeasurement(requestParameters.createMeasurementRequestDto, options).then((request) => request(axios, basePath));
1474
+ },
1475
+ /**
1476
+ *
1477
+ * @summary Soft delete a specific measurement for the authenticated user
1478
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurementRequest} requestParameters Request parameters.
1479
+ * @param {*} [options] Override http request option.
1480
+ * @throws {RequiredError}
1481
+ */
1482
+ measurementsV1ControllerDeleteMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurementRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteMeasurementResponseDto> {
1483
+ return localVarFp.measurementsV1ControllerDeleteMeasurement(requestParameters.measurementId, options).then((request) => request(axios, basePath));
1484
+ },
1485
+ /**
1486
+ *
1487
+ * @summary Get all measurements for the authenticated user
1488
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdRequest} requestParameters Request parameters.
1489
+ * @param {*} [options] Override http request option.
1490
+ * @throws {RequiredError}
1491
+ */
1492
+ measurementsV1ControllerGetAllByUserId(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto> {
1493
+ return localVarFp.measurementsV1ControllerGetAllByUserId(requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(axios, basePath));
1494
+ },
1495
+ /**
1496
+ *
1497
+ * @summary Get all measurements for the group
1498
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest} requestParameters Request parameters.
1499
+ * @param {*} [options] Override http request option.
1500
+ * @throws {RequiredError}
1501
+ */
1502
+ measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto> {
1503
+ return localVarFp.measurementsV1ControllerGetAllByUserIdAdmin(requestParameters.groupId, requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(axios, basePath));
1504
+ },
1505
+ /**
1506
+ *
1507
+ * @summary Get a measurement by group and measurement ID
1508
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementIdRequest} requestParameters Request parameters.
1509
+ * @param {*} [options] Override http request option.
1510
+ * @throws {RequiredError}
1511
+ */
1512
+ measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<MeasurementDto> {
1513
+ return localVarFp.measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(requestParameters.groupId, requestParameters.measurementId, options).then((request) => request(axios, basePath));
1514
+ },
1515
+ /**
1516
+ *
1517
+ * @summary Get a specific measurement by ID for the authenticated user
1518
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByIdRequest} requestParameters Request parameters.
1519
+ * @param {*} [options] Override http request option.
1520
+ * @throws {RequiredError}
1521
+ */
1522
+ measurementsV1ControllerGetMeasurementById(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<MeasurementDto> {
1523
+ return localVarFp.measurementsV1ControllerGetMeasurementById(requestParameters.measurementId, options).then((request) => request(axios, basePath));
1524
+ },
1525
+ /**
1526
+ *
1527
+ * @summary Update a specific measurement for the authenticated user
1528
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest} requestParameters Request parameters.
1529
+ * @param {*} [options] Override http request option.
1530
+ * @throws {RequiredError}
1531
+ */
1532
+ measurementsV1ControllerUpdateMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest, options?: RawAxiosRequestConfig): AxiosPromise<MeasurementDto> {
1533
+ return localVarFp.measurementsV1ControllerUpdateMeasurement(requestParameters.measurementId, requestParameters.updateMeasurementRequestDto, options).then((request) => request(axios, basePath));
1534
+ },
1535
+ };
1536
+ };
1537
+
1538
+ /**
1539
+ * MeasurementsV1Api - interface
1540
+ * @export
1541
+ * @interface MeasurementsV1Api
1542
+ */
1543
+ export interface MeasurementsV1ApiInterface {
1544
+ /**
1545
+ *
1546
+ * @summary Create a new measurement for the authenticated user
1547
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurementRequest} requestParameters Request parameters.
1548
+ * @param {*} [options] Override http request option.
1549
+ * @throws {RequiredError}
1550
+ * @memberof MeasurementsV1ApiInterface
1551
+ */
1552
+ measurementsV1ControllerCreateMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurementRequest, options?: RawAxiosRequestConfig): AxiosPromise<MeasurementDto>;
1553
+
1554
+ /**
1555
+ *
1556
+ * @summary Soft delete a specific measurement for the authenticated user
1557
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurementRequest} requestParameters Request parameters.
1558
+ * @param {*} [options] Override http request option.
1559
+ * @throws {RequiredError}
1560
+ * @memberof MeasurementsV1ApiInterface
1561
+ */
1562
+ measurementsV1ControllerDeleteMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurementRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteMeasurementResponseDto>;
1563
+
1564
+ /**
1565
+ *
1566
+ * @summary Get all measurements for the authenticated user
1567
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdRequest} requestParameters Request parameters.
1568
+ * @param {*} [options] Override http request option.
1569
+ * @throws {RequiredError}
1570
+ * @memberof MeasurementsV1ApiInterface
1571
+ */
1572
+ measurementsV1ControllerGetAllByUserId(requestParameters?: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
1573
+
1574
+ /**
1575
+ *
1576
+ * @summary Get all measurements for the group
1577
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest} requestParameters Request parameters.
1578
+ * @param {*} [options] Override http request option.
1579
+ * @throws {RequiredError}
1580
+ * @memberof MeasurementsV1ApiInterface
1581
+ */
1582
+ measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetMeasurementsResponseDto>;
1583
+
1584
+ /**
1585
+ *
1586
+ * @summary Get a measurement by group and measurement ID
1587
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementIdRequest} requestParameters Request parameters.
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ * @memberof MeasurementsV1ApiInterface
1591
+ */
1592
+ measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<MeasurementDto>;
1593
+
1594
+ /**
1595
+ *
1596
+ * @summary Get a specific measurement by ID for the authenticated user
1597
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByIdRequest} requestParameters Request parameters.
1598
+ * @param {*} [options] Override http request option.
1599
+ * @throws {RequiredError}
1600
+ * @memberof MeasurementsV1ApiInterface
1601
+ */
1602
+ measurementsV1ControllerGetMeasurementById(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<MeasurementDto>;
1603
+
1604
+ /**
1605
+ *
1606
+ * @summary Update a specific measurement for the authenticated user
1607
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest} requestParameters Request parameters.
1608
+ * @param {*} [options] Override http request option.
1609
+ * @throws {RequiredError}
1610
+ * @memberof MeasurementsV1ApiInterface
1611
+ */
1612
+ measurementsV1ControllerUpdateMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest, options?: RawAxiosRequestConfig): AxiosPromise<MeasurementDto>;
1613
+
1614
+ }
1615
+
1616
+ /**
1617
+ * Request parameters for measurementsV1ControllerCreateMeasurement operation in MeasurementsV1Api.
1618
+ * @export
1619
+ * @interface MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurementRequest
1620
+ */
1621
+ export interface MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurementRequest {
1622
+ /**
1623
+ *
1624
+ * @type {CreateMeasurementRequestDto}
1625
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurement
1626
+ */
1627
+ readonly createMeasurementRequestDto: CreateMeasurementRequestDto
1628
+ }
1629
+
1630
+ /**
1631
+ * Request parameters for measurementsV1ControllerDeleteMeasurement operation in MeasurementsV1Api.
1632
+ * @export
1633
+ * @interface MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurementRequest
1634
+ */
1635
+ export interface MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurementRequest {
1636
+ /**
1637
+ *
1638
+ * @type {string}
1639
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurement
1640
+ */
1641
+ readonly measurementId: string
1642
+ }
1643
+
1644
+ /**
1645
+ * Request parameters for measurementsV1ControllerGetAllByUserId operation in MeasurementsV1Api.
1646
+ * @export
1647
+ * @interface MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdRequest
1648
+ */
1649
+ export interface MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdRequest {
1650
+ /**
1651
+ * Limit
1652
+ * @type {number}
1653
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserId
1654
+ */
1655
+ readonly limit?: number
1656
+
1657
+ /**
1658
+ * Offset
1659
+ * @type {number}
1660
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserId
1661
+ */
1662
+ readonly offset?: number
1663
+
1664
+ /**
1665
+ * From date
1666
+ * @type {string}
1667
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserId
1668
+ */
1669
+ readonly fromDate?: string
1670
+
1671
+ /**
1672
+ * To date
1673
+ * @type {string}
1674
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserId
1675
+ */
1676
+ readonly toDate?: string
1677
+ }
1678
+
1679
+ /**
1680
+ * Request parameters for measurementsV1ControllerGetAllByUserIdAdmin operation in MeasurementsV1Api.
1681
+ * @export
1682
+ * @interface MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest
1683
+ */
1684
+ export interface MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest {
1685
+ /**
1686
+ *
1687
+ * @type {string}
1688
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdmin
1689
+ */
1690
+ readonly groupId: string
1691
+
1692
+ /**
1693
+ * Limit
1694
+ * @type {number}
1695
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdmin
1696
+ */
1697
+ readonly limit?: number
1698
+
1699
+ /**
1700
+ * Offset
1701
+ * @type {number}
1702
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdmin
1703
+ */
1704
+ readonly offset?: number
1705
+
1706
+ /**
1707
+ * From date
1708
+ * @type {string}
1709
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdmin
1710
+ */
1711
+ readonly fromDate?: string
1712
+
1713
+ /**
1714
+ * To date
1715
+ * @type {string}
1716
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdmin
1717
+ */
1718
+ readonly toDate?: string
1719
+ }
1720
+
1721
+ /**
1722
+ * Request parameters for measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId operation in MeasurementsV1Api.
1723
+ * @export
1724
+ * @interface MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementIdRequest
1725
+ */
1726
+ export interface MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementIdRequest {
1727
+ /**
1728
+ *
1729
+ * @type {string}
1730
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId
1731
+ */
1732
+ readonly groupId: string
1733
+
1734
+ /**
1735
+ *
1736
+ * @type {string}
1737
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId
1738
+ */
1739
+ readonly measurementId: string
1740
+ }
1741
+
1742
+ /**
1743
+ * Request parameters for measurementsV1ControllerGetMeasurementById operation in MeasurementsV1Api.
1744
+ * @export
1745
+ * @interface MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByIdRequest
1746
+ */
1747
+ export interface MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByIdRequest {
1748
+ /**
1749
+ *
1750
+ * @type {string}
1751
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementById
1752
+ */
1753
+ readonly measurementId: string
1754
+ }
1755
+
1756
+ /**
1757
+ * Request parameters for measurementsV1ControllerUpdateMeasurement operation in MeasurementsV1Api.
1758
+ * @export
1759
+ * @interface MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest
1760
+ */
1761
+ export interface MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest {
1762
+ /**
1763
+ *
1764
+ * @type {string}
1765
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurement
1766
+ */
1767
+ readonly measurementId: string
1768
+
1769
+ /**
1770
+ *
1771
+ * @type {UpdateMeasurementRequestDto}
1772
+ * @memberof MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurement
1773
+ */
1774
+ readonly updateMeasurementRequestDto: UpdateMeasurementRequestDto
1775
+ }
1776
+
1777
+ /**
1778
+ * MeasurementsV1Api - object-oriented interface
1779
+ * @export
1780
+ * @class MeasurementsV1Api
1781
+ * @extends {BaseAPI}
1782
+ */
1783
+ export class MeasurementsV1Api extends BaseAPI implements MeasurementsV1ApiInterface {
1784
+ /**
1785
+ *
1786
+ * @summary Create a new measurement for the authenticated user
1787
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurementRequest} requestParameters Request parameters.
1788
+ * @param {*} [options] Override http request option.
1789
+ * @throws {RequiredError}
1790
+ * @memberof MeasurementsV1Api
1791
+ */
1792
+ public measurementsV1ControllerCreateMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerCreateMeasurementRequest, options?: RawAxiosRequestConfig) {
1793
+ return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerCreateMeasurement(requestParameters.createMeasurementRequestDto, options).then((request) => request(this.axios, this.basePath));
1794
+ }
1795
+
1796
+ /**
1797
+ *
1798
+ * @summary Soft delete a specific measurement for the authenticated user
1799
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurementRequest} requestParameters Request parameters.
1800
+ * @param {*} [options] Override http request option.
1801
+ * @throws {RequiredError}
1802
+ * @memberof MeasurementsV1Api
1803
+ */
1804
+ public measurementsV1ControllerDeleteMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerDeleteMeasurementRequest, options?: RawAxiosRequestConfig) {
1805
+ return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerDeleteMeasurement(requestParameters.measurementId, options).then((request) => request(this.axios, this.basePath));
1806
+ }
1807
+
1808
+ /**
1809
+ *
1810
+ * @summary Get all measurements for the authenticated user
1811
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdRequest} requestParameters Request parameters.
1812
+ * @param {*} [options] Override http request option.
1813
+ * @throws {RequiredError}
1814
+ * @memberof MeasurementsV1Api
1815
+ */
1816
+ public measurementsV1ControllerGetAllByUserId(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdRequest = {}, options?: RawAxiosRequestConfig) {
1817
+ return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerGetAllByUserId(requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(this.axios, this.basePath));
1818
+ }
1819
+
1820
+ /**
1821
+ *
1822
+ * @summary Get all measurements for the group
1823
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest} requestParameters Request parameters.
1824
+ * @param {*} [options] Override http request option.
1825
+ * @throws {RequiredError}
1826
+ * @memberof MeasurementsV1Api
1827
+ */
1828
+ public measurementsV1ControllerGetAllByUserIdAdmin(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetAllByUserIdAdminRequest, options?: RawAxiosRequestConfig) {
1829
+ return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerGetAllByUserIdAdmin(requestParameters.groupId, requestParameters.limit, requestParameters.offset, requestParameters.fromDate, requestParameters.toDate, options).then((request) => request(this.axios, this.basePath));
1830
+ }
1831
+
1832
+ /**
1833
+ *
1834
+ * @summary Get a measurement by group and measurement ID
1835
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementIdRequest} requestParameters Request parameters.
1836
+ * @param {*} [options] Override http request option.
1837
+ * @throws {RequiredError}
1838
+ * @memberof MeasurementsV1Api
1839
+ */
1840
+ public measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByGroupIdAndMeasurementIdRequest, options?: RawAxiosRequestConfig) {
1841
+ return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(requestParameters.groupId, requestParameters.measurementId, options).then((request) => request(this.axios, this.basePath));
1842
+ }
1843
+
1844
+ /**
1845
+ *
1846
+ * @summary Get a specific measurement by ID for the authenticated user
1847
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByIdRequest} requestParameters Request parameters.
1848
+ * @param {*} [options] Override http request option.
1849
+ * @throws {RequiredError}
1850
+ * @memberof MeasurementsV1Api
1851
+ */
1852
+ public measurementsV1ControllerGetMeasurementById(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerGetMeasurementByIdRequest, options?: RawAxiosRequestConfig) {
1853
+ return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerGetMeasurementById(requestParameters.measurementId, options).then((request) => request(this.axios, this.basePath));
1854
+ }
1855
+
1856
+ /**
1857
+ *
1858
+ * @summary Update a specific measurement for the authenticated user
1859
+ * @param {MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest} requestParameters Request parameters.
1860
+ * @param {*} [options] Override http request option.
1861
+ * @throws {RequiredError}
1862
+ * @memberof MeasurementsV1Api
1863
+ */
1864
+ public measurementsV1ControllerUpdateMeasurement(requestParameters: MeasurementsV1ApiMeasurementsV1ControllerUpdateMeasurementRequest, options?: RawAxiosRequestConfig) {
1865
+ return MeasurementsV1ApiFp(this.configuration).measurementsV1ControllerUpdateMeasurement(requestParameters.measurementId, requestParameters.updateMeasurementRequestDto, options).then((request) => request(this.axios, this.basePath));
1866
+ }
1867
+ }
1868
+
1869
+
1870
+