@dimrev4/fitness-v3-backend 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +30 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +423 -0
- package/api.ts +1870 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +1285 -0
- package/dist/api.js +970 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +1285 -0
- package/dist/esm/api.js +959 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AuthV1Api.md +257 -0
- package/docs/ConfirmOtpRequestDto.md +22 -0
- package/docs/CreateMeasurementRequestDto.md +26 -0
- package/docs/DeleteMeasurementResponseDto.md +22 -0
- package/docs/GetMeResponseDto.md +20 -0
- package/docs/GetMeasurementsResponseDto.md +30 -0
- package/docs/GroupDto.md +28 -0
- package/docs/LoginRequestDto.md +22 -0
- package/docs/LoginResponseDto.md +22 -0
- package/docs/LogoutResponseDto.md +20 -0
- package/docs/MeasurementDto.md +36 -0
- package/docs/MeasurementsV1Api.md +414 -0
- package/docs/RegisterRequestDto.md +24 -0
- package/docs/RegisterResponseDto.md +20 -0
- package/docs/UpdateMeasurementRequestDto.md +24 -0
- package/docs/UserDetailsDto.md +32 -0
- package/docs/UserDto.md +30 -0
- package/docs/UserToGroupDetailsDto.md +42 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +38 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# AuthV1Api
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**authV1ControllerConfirmOtp**](#authv1controllerconfirmotp) | **POST** /api/auth/v1/confirm-otp | Confirm OTP|
|
|
8
|
+
|[**authV1ControllerGetMe**](#authv1controllergetme) | **POST** /api/auth/v1/get-me | Get Me|
|
|
9
|
+
|[**authV1ControllerLogin**](#authv1controllerlogin) | **POST** /api/auth/v1/login | Login|
|
|
10
|
+
|[**authV1ControllerLogout**](#authv1controllerlogout) | **POST** /api/auth/v1/logout | Logout|
|
|
11
|
+
|[**authV1ControllerRegister**](#authv1controllerregister) | **POST** /api/auth/v1/register | Register|
|
|
12
|
+
|
|
13
|
+
# **authV1ControllerConfirmOtp**
|
|
14
|
+
> LoginResponseDto authV1ControllerConfirmOtp(confirmOtpRequestDto)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
AuthV1Api,
|
|
22
|
+
Configuration,
|
|
23
|
+
ConfirmOtpRequestDto
|
|
24
|
+
} from '@dimrev4/fitness-v3-backend-sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new AuthV1Api(configuration);
|
|
28
|
+
|
|
29
|
+
let confirmOtpRequestDto: ConfirmOtpRequestDto; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.authV1ControllerConfirmOtp(
|
|
32
|
+
confirmOtpRequestDto
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **confirmOtpRequestDto** | **ConfirmOtpRequestDto**| | |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**LoginResponseDto**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
No authorization required
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
64
|
+
# **authV1ControllerGetMe**
|
|
65
|
+
> GetMeResponseDto authV1ControllerGetMe()
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Example
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import {
|
|
72
|
+
AuthV1Api,
|
|
73
|
+
Configuration
|
|
74
|
+
} from '@dimrev4/fitness-v3-backend-sdk';
|
|
75
|
+
|
|
76
|
+
const configuration = new Configuration();
|
|
77
|
+
const apiInstance = new AuthV1Api(configuration);
|
|
78
|
+
|
|
79
|
+
const { status, data } = await apiInstance.authV1ControllerGetMe();
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Parameters
|
|
83
|
+
This endpoint does not have any parameters.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Return type
|
|
87
|
+
|
|
88
|
+
**GetMeResponseDto**
|
|
89
|
+
|
|
90
|
+
### Authorization
|
|
91
|
+
|
|
92
|
+
[bearer](../README.md#bearer)
|
|
93
|
+
|
|
94
|
+
### HTTP request headers
|
|
95
|
+
|
|
96
|
+
- **Content-Type**: Not defined
|
|
97
|
+
- **Accept**: application/json
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### HTTP response details
|
|
101
|
+
| Status code | Description | Response headers |
|
|
102
|
+
|-------------|-------------|------------------|
|
|
103
|
+
|**200** | | - |
|
|
104
|
+
|**400** | Invalid JWT payload structure or validation failed | - |
|
|
105
|
+
|**401** | JWT token is missing, expired, or invalid | - |
|
|
106
|
+
|**500** | Internal server error during JWT validation | - |
|
|
107
|
+
|
|
108
|
+
[[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)
|
|
109
|
+
|
|
110
|
+
# **authV1ControllerLogin**
|
|
111
|
+
> LoginResponseDto authV1ControllerLogin(loginRequestDto)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### Example
|
|
115
|
+
|
|
116
|
+
```typescript
|
|
117
|
+
import {
|
|
118
|
+
AuthV1Api,
|
|
119
|
+
Configuration,
|
|
120
|
+
LoginRequestDto
|
|
121
|
+
} from '@dimrev4/fitness-v3-backend-sdk';
|
|
122
|
+
|
|
123
|
+
const configuration = new Configuration();
|
|
124
|
+
const apiInstance = new AuthV1Api(configuration);
|
|
125
|
+
|
|
126
|
+
let loginRequestDto: LoginRequestDto; //
|
|
127
|
+
|
|
128
|
+
const { status, data } = await apiInstance.authV1ControllerLogin(
|
|
129
|
+
loginRequestDto
|
|
130
|
+
);
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Parameters
|
|
134
|
+
|
|
135
|
+
|Name | Type | Description | Notes|
|
|
136
|
+
|------------- | ------------- | ------------- | -------------|
|
|
137
|
+
| **loginRequestDto** | **LoginRequestDto**| | |
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### Return type
|
|
141
|
+
|
|
142
|
+
**LoginResponseDto**
|
|
143
|
+
|
|
144
|
+
### Authorization
|
|
145
|
+
|
|
146
|
+
No authorization required
|
|
147
|
+
|
|
148
|
+
### HTTP request headers
|
|
149
|
+
|
|
150
|
+
- **Content-Type**: application/json
|
|
151
|
+
- **Accept**: application/json
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
### HTTP response details
|
|
155
|
+
| Status code | Description | Response headers |
|
|
156
|
+
|-------------|-------------|------------------|
|
|
157
|
+
|**200** | | - |
|
|
158
|
+
|
|
159
|
+
[[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)
|
|
160
|
+
|
|
161
|
+
# **authV1ControllerLogout**
|
|
162
|
+
> LogoutResponseDto authV1ControllerLogout()
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Example
|
|
166
|
+
|
|
167
|
+
```typescript
|
|
168
|
+
import {
|
|
169
|
+
AuthV1Api,
|
|
170
|
+
Configuration
|
|
171
|
+
} from '@dimrev4/fitness-v3-backend-sdk';
|
|
172
|
+
|
|
173
|
+
const configuration = new Configuration();
|
|
174
|
+
const apiInstance = new AuthV1Api(configuration);
|
|
175
|
+
|
|
176
|
+
const { status, data } = await apiInstance.authV1ControllerLogout();
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Parameters
|
|
180
|
+
This endpoint does not have any parameters.
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Return type
|
|
184
|
+
|
|
185
|
+
**LogoutResponseDto**
|
|
186
|
+
|
|
187
|
+
### Authorization
|
|
188
|
+
|
|
189
|
+
[bearer](../README.md#bearer)
|
|
190
|
+
|
|
191
|
+
### HTTP request headers
|
|
192
|
+
|
|
193
|
+
- **Content-Type**: Not defined
|
|
194
|
+
- **Accept**: application/json
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
### HTTP response details
|
|
198
|
+
| Status code | Description | Response headers |
|
|
199
|
+
|-------------|-------------|------------------|
|
|
200
|
+
|**200** | | - |
|
|
201
|
+
|**400** | Invalid JWT payload structure or validation failed | - |
|
|
202
|
+
|**401** | JWT token is missing, expired, or invalid | - |
|
|
203
|
+
|**500** | Internal server error during JWT validation | - |
|
|
204
|
+
|
|
205
|
+
[[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)
|
|
206
|
+
|
|
207
|
+
# **authV1ControllerRegister**
|
|
208
|
+
> RegisterResponseDto authV1ControllerRegister(registerRequestDto)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### Example
|
|
212
|
+
|
|
213
|
+
```typescript
|
|
214
|
+
import {
|
|
215
|
+
AuthV1Api,
|
|
216
|
+
Configuration,
|
|
217
|
+
RegisterRequestDto
|
|
218
|
+
} from '@dimrev4/fitness-v3-backend-sdk';
|
|
219
|
+
|
|
220
|
+
const configuration = new Configuration();
|
|
221
|
+
const apiInstance = new AuthV1Api(configuration);
|
|
222
|
+
|
|
223
|
+
let registerRequestDto: RegisterRequestDto; //
|
|
224
|
+
|
|
225
|
+
const { status, data } = await apiInstance.authV1ControllerRegister(
|
|
226
|
+
registerRequestDto
|
|
227
|
+
);
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### Parameters
|
|
231
|
+
|
|
232
|
+
|Name | Type | Description | Notes|
|
|
233
|
+
|------------- | ------------- | ------------- | -------------|
|
|
234
|
+
| **registerRequestDto** | **RegisterRequestDto**| | |
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### Return type
|
|
238
|
+
|
|
239
|
+
**RegisterResponseDto**
|
|
240
|
+
|
|
241
|
+
### Authorization
|
|
242
|
+
|
|
243
|
+
No authorization required
|
|
244
|
+
|
|
245
|
+
### HTTP request headers
|
|
246
|
+
|
|
247
|
+
- **Content-Type**: application/json
|
|
248
|
+
- **Accept**: application/json
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
### HTTP response details
|
|
252
|
+
| Status code | Description | Response headers |
|
|
253
|
+
|-------------|-------------|------------------|
|
|
254
|
+
|**200** | | - |
|
|
255
|
+
|
|
256
|
+
[[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)
|
|
257
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ConfirmOtpRequestDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | Email | [default to undefined]
|
|
9
|
+
**otp** | **string** | OTP | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ConfirmOtpRequestDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ConfirmOtpRequestDto = {
|
|
17
|
+
email,
|
|
18
|
+
otp,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CreateMeasurementRequestDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**weightKG** | **number** | Weight in kilograms | [default to undefined]
|
|
9
|
+
**heightCM** | **number** | Height in centimeters | [default to undefined]
|
|
10
|
+
**bmi** | **number** | Body Mass Index | [default to undefined]
|
|
11
|
+
**date** | **string** | Measurement date | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CreateMeasurementRequestDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: CreateMeasurementRequestDto = {
|
|
19
|
+
weightKG,
|
|
20
|
+
heightCM,
|
|
21
|
+
bmi,
|
|
22
|
+
date,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# DeleteMeasurementResponseDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Success message | [default to undefined]
|
|
9
|
+
**id** | **string** | ID of the deleted measurement | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DeleteMeasurementResponseDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DeleteMeasurementResponseDto = {
|
|
17
|
+
message,
|
|
18
|
+
id,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GetMeResponseDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**user** | [**UserDetailsDto**](UserDetailsDto.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GetMeResponseDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GetMeResponseDto = {
|
|
16
|
+
user,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# GetMeasurementsResponseDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**items** | [**MeasurementDto**](MeasurementDto.md) | | [default to undefined]
|
|
9
|
+
**totalItems** | **number** | | [default to undefined]
|
|
10
|
+
**totalPages** | **number** | | [default to undefined]
|
|
11
|
+
**currentPage** | **number** | | [default to undefined]
|
|
12
|
+
**hasNextPage** | **boolean** | | [default to undefined]
|
|
13
|
+
**hasPreviousPage** | **boolean** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { GetMeasurementsResponseDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: GetMeasurementsResponseDto = {
|
|
21
|
+
items,
|
|
22
|
+
totalItems,
|
|
23
|
+
totalPages,
|
|
24
|
+
currentPage,
|
|
25
|
+
hasNextPage,
|
|
26
|
+
hasPreviousPage,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/GroupDto.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# GroupDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Group ID | [default to undefined]
|
|
9
|
+
**name** | **string** | Group name | [default to undefined]
|
|
10
|
+
**createdAt** | **string** | Group creation date | [default to undefined]
|
|
11
|
+
**updatedAt** | **string** | Group update date | [default to undefined]
|
|
12
|
+
**deletedAt** | **string** | Group deletion date | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { GroupDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: GroupDto = {
|
|
20
|
+
id,
|
|
21
|
+
name,
|
|
22
|
+
createdAt,
|
|
23
|
+
updatedAt,
|
|
24
|
+
deletedAt,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# LoginRequestDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | Email | [default to undefined]
|
|
9
|
+
**password** | **string** | Password | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { LoginRequestDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: LoginRequestDto = {
|
|
17
|
+
email,
|
|
18
|
+
password,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# LoginResponseDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**user** | [**UserDetailsDto**](UserDetailsDto.md) | | [default to undefined]
|
|
9
|
+
**accessToken** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { LoginResponseDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: LoginResponseDto = {
|
|
17
|
+
user,
|
|
18
|
+
accessToken,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# LogoutResponseDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Success message | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { LogoutResponseDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: LogoutResponseDto = {
|
|
16
|
+
message,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# MeasurementDto
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Measurement ID | [default to undefined]
|
|
9
|
+
**date** | **string** | Measurement take date | [default to undefined]
|
|
10
|
+
**weightKG** | **number** | Weight in KG | [default to undefined]
|
|
11
|
+
**heightCM** | **number** | Height in CM | [default to undefined]
|
|
12
|
+
**bmi** | **number** | BMI | [default to undefined]
|
|
13
|
+
**userId** | **string** | User ID | [default to undefined]
|
|
14
|
+
**createdAt** | **string** | Measurement creation date | [default to undefined]
|
|
15
|
+
**updatedAt** | **string** | Measurement update date | [default to undefined]
|
|
16
|
+
**deletedAt** | **string** | Measurement deletion date | [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { MeasurementDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
22
|
+
|
|
23
|
+
const instance: MeasurementDto = {
|
|
24
|
+
id,
|
|
25
|
+
date,
|
|
26
|
+
weightKG,
|
|
27
|
+
heightCM,
|
|
28
|
+
bmi,
|
|
29
|
+
userId,
|
|
30
|
+
createdAt,
|
|
31
|
+
updatedAt,
|
|
32
|
+
deletedAt,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|