@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
@@ -0,0 +1,414 @@
1
+ # MeasurementsV1Api
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**measurementsV1ControllerCreateMeasurement**](#measurementsv1controllercreatemeasurement) | **POST** /api/measurements/v1 | Create a new measurement for the authenticated user|
8
+ |[**measurementsV1ControllerDeleteMeasurement**](#measurementsv1controllerdeletemeasurement) | **DELETE** /api/measurements/v1/{measurementId} | Soft delete a specific measurement for the authenticated user|
9
+ |[**measurementsV1ControllerGetAllByUserId**](#measurementsv1controllergetallbyuserid) | **GET** /api/measurements/v1 | Get all measurements for the authenticated user|
10
+ |[**measurementsV1ControllerGetAllByUserIdAdmin**](#measurementsv1controllergetallbyuseridadmin) | **GET** /api/measurements/v1/group/{groupId} | Get all measurements for the group|
11
+ |[**measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId**](#measurementsv1controllergetmeasurementbygroupidandmeasurementid) | **GET** /api/measurements/v1/group/{groupId}/{measurementId} | Get a measurement by group and measurement ID|
12
+ |[**measurementsV1ControllerGetMeasurementById**](#measurementsv1controllergetmeasurementbyid) | **GET** /api/measurements/v1/{measurementId} | Get a specific measurement by ID for the authenticated user|
13
+ |[**measurementsV1ControllerUpdateMeasurement**](#measurementsv1controllerupdatemeasurement) | **PATCH** /api/measurements/v1/{measurementId} | Update a specific measurement for the authenticated user|
14
+
15
+ # **measurementsV1ControllerCreateMeasurement**
16
+ > MeasurementDto measurementsV1ControllerCreateMeasurement(createMeasurementRequestDto)
17
+
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ MeasurementsV1Api,
24
+ Configuration,
25
+ CreateMeasurementRequestDto
26
+ } from '@dimrev4/fitness-v3-backend-sdk';
27
+
28
+ const configuration = new Configuration();
29
+ const apiInstance = new MeasurementsV1Api(configuration);
30
+
31
+ let createMeasurementRequestDto: CreateMeasurementRequestDto; //
32
+
33
+ const { status, data } = await apiInstance.measurementsV1ControllerCreateMeasurement(
34
+ createMeasurementRequestDto
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **createMeasurementRequestDto** | **CreateMeasurementRequestDto**| | |
43
+
44
+
45
+ ### Return type
46
+
47
+ **MeasurementDto**
48
+
49
+ ### Authorization
50
+
51
+ [bearer](../README.md#bearer)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: application/json
56
+ - **Accept**: application/json
57
+
58
+
59
+ ### HTTP response details
60
+ | Status code | Description | Response headers |
61
+ |-------------|-------------|------------------|
62
+ |**201** | | - |
63
+ |**400** | Invalid JWT payload structure or validation failed | - |
64
+ |**401** | JWT token is missing, expired, or invalid | - |
65
+ |**500** | Internal server error during JWT validation | - |
66
+
67
+ [[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)
68
+
69
+ # **measurementsV1ControllerDeleteMeasurement**
70
+ > DeleteMeasurementResponseDto measurementsV1ControllerDeleteMeasurement()
71
+
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ MeasurementsV1Api,
78
+ Configuration
79
+ } from '@dimrev4/fitness-v3-backend-sdk';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new MeasurementsV1Api(configuration);
83
+
84
+ let measurementId: string; // (default to undefined)
85
+
86
+ const { status, data } = await apiInstance.measurementsV1ControllerDeleteMeasurement(
87
+ measurementId
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **measurementId** | [**string**] | | defaults to undefined|
96
+
97
+
98
+ ### Return type
99
+
100
+ **DeleteMeasurementResponseDto**
101
+
102
+ ### Authorization
103
+
104
+ [bearer](../README.md#bearer)
105
+
106
+ ### HTTP request headers
107
+
108
+ - **Content-Type**: Not defined
109
+ - **Accept**: application/json
110
+
111
+
112
+ ### HTTP response details
113
+ | Status code | Description | Response headers |
114
+ |-------------|-------------|------------------|
115
+ |**200** | | - |
116
+ |**400** | Invalid JWT payload structure or validation failed | - |
117
+ |**401** | JWT token is missing, expired, or invalid | - |
118
+ |**500** | Internal server error during JWT validation | - |
119
+
120
+ [[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)
121
+
122
+ # **measurementsV1ControllerGetAllByUserId**
123
+ > GetMeasurementsResponseDto measurementsV1ControllerGetAllByUserId()
124
+
125
+
126
+ ### Example
127
+
128
+ ```typescript
129
+ import {
130
+ MeasurementsV1Api,
131
+ Configuration
132
+ } from '@dimrev4/fitness-v3-backend-sdk';
133
+
134
+ const configuration = new Configuration();
135
+ const apiInstance = new MeasurementsV1Api(configuration);
136
+
137
+ let limit: number; //Limit (optional) (default to undefined)
138
+ let offset: number; //Offset (optional) (default to undefined)
139
+ let fromDate: string; //From date (optional) (default to undefined)
140
+ let toDate: string; //To date (optional) (default to undefined)
141
+
142
+ const { status, data } = await apiInstance.measurementsV1ControllerGetAllByUserId(
143
+ limit,
144
+ offset,
145
+ fromDate,
146
+ toDate
147
+ );
148
+ ```
149
+
150
+ ### Parameters
151
+
152
+ |Name | Type | Description | Notes|
153
+ |------------- | ------------- | ------------- | -------------|
154
+ | **limit** | [**number**] | Limit | (optional) defaults to undefined|
155
+ | **offset** | [**number**] | Offset | (optional) defaults to undefined|
156
+ | **fromDate** | [**string**] | From date | (optional) defaults to undefined|
157
+ | **toDate** | [**string**] | To date | (optional) defaults to undefined|
158
+
159
+
160
+ ### Return type
161
+
162
+ **GetMeasurementsResponseDto**
163
+
164
+ ### Authorization
165
+
166
+ [bearer](../README.md#bearer)
167
+
168
+ ### HTTP request headers
169
+
170
+ - **Content-Type**: Not defined
171
+ - **Accept**: application/json
172
+
173
+
174
+ ### HTTP response details
175
+ | Status code | Description | Response headers |
176
+ |-------------|-------------|------------------|
177
+ |**200** | | - |
178
+ |**400** | Invalid JWT payload structure or validation failed | - |
179
+ |**401** | JWT token is missing, expired, or invalid | - |
180
+ |**500** | Internal server error during JWT validation | - |
181
+
182
+ [[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)
183
+
184
+ # **measurementsV1ControllerGetAllByUserIdAdmin**
185
+ > GetMeasurementsResponseDto measurementsV1ControllerGetAllByUserIdAdmin()
186
+
187
+
188
+ ### Example
189
+
190
+ ```typescript
191
+ import {
192
+ MeasurementsV1Api,
193
+ Configuration
194
+ } from '@dimrev4/fitness-v3-backend-sdk';
195
+
196
+ const configuration = new Configuration();
197
+ const apiInstance = new MeasurementsV1Api(configuration);
198
+
199
+ let groupId: string; // (default to undefined)
200
+ let limit: number; //Limit (optional) (default to undefined)
201
+ let offset: number; //Offset (optional) (default to undefined)
202
+ let fromDate: string; //From date (optional) (default to undefined)
203
+ let toDate: string; //To date (optional) (default to undefined)
204
+
205
+ const { status, data } = await apiInstance.measurementsV1ControllerGetAllByUserIdAdmin(
206
+ groupId,
207
+ limit,
208
+ offset,
209
+ fromDate,
210
+ toDate
211
+ );
212
+ ```
213
+
214
+ ### Parameters
215
+
216
+ |Name | Type | Description | Notes|
217
+ |------------- | ------------- | ------------- | -------------|
218
+ | **groupId** | [**string**] | | defaults to undefined|
219
+ | **limit** | [**number**] | Limit | (optional) defaults to undefined|
220
+ | **offset** | [**number**] | Offset | (optional) defaults to undefined|
221
+ | **fromDate** | [**string**] | From date | (optional) defaults to undefined|
222
+ | **toDate** | [**string**] | To date | (optional) defaults to undefined|
223
+
224
+
225
+ ### Return type
226
+
227
+ **GetMeasurementsResponseDto**
228
+
229
+ ### Authorization
230
+
231
+ [bearer](../README.md#bearer)
232
+
233
+ ### HTTP request headers
234
+
235
+ - **Content-Type**: Not defined
236
+ - **Accept**: application/json
237
+
238
+
239
+ ### HTTP response details
240
+ | Status code | Description | Response headers |
241
+ |-------------|-------------|------------------|
242
+ |**200** | | - |
243
+ |**400** | Invalid JWT payload structure or validation failed | - |
244
+ |**401** | JWT token is missing, expired, or invalid | - |
245
+ |**500** | Internal server error during JWT validation | - |
246
+
247
+ [[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)
248
+
249
+ # **measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId**
250
+ > MeasurementDto measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId()
251
+
252
+
253
+ ### Example
254
+
255
+ ```typescript
256
+ import {
257
+ MeasurementsV1Api,
258
+ Configuration
259
+ } from '@dimrev4/fitness-v3-backend-sdk';
260
+
261
+ const configuration = new Configuration();
262
+ const apiInstance = new MeasurementsV1Api(configuration);
263
+
264
+ let groupId: string; // (default to undefined)
265
+ let measurementId: string; // (default to undefined)
266
+
267
+ const { status, data } = await apiInstance.measurementsV1ControllerGetMeasurementByGroupIdAndMeasurementId(
268
+ groupId,
269
+ measurementId
270
+ );
271
+ ```
272
+
273
+ ### Parameters
274
+
275
+ |Name | Type | Description | Notes|
276
+ |------------- | ------------- | ------------- | -------------|
277
+ | **groupId** | [**string**] | | defaults to undefined|
278
+ | **measurementId** | [**string**] | | defaults to undefined|
279
+
280
+
281
+ ### Return type
282
+
283
+ **MeasurementDto**
284
+
285
+ ### Authorization
286
+
287
+ [bearer](../README.md#bearer)
288
+
289
+ ### HTTP request headers
290
+
291
+ - **Content-Type**: Not defined
292
+ - **Accept**: application/json
293
+
294
+
295
+ ### HTTP response details
296
+ | Status code | Description | Response headers |
297
+ |-------------|-------------|------------------|
298
+ |**200** | | - |
299
+ |**400** | Invalid JWT payload structure or validation failed | - |
300
+ |**401** | JWT token is missing, expired, or invalid | - |
301
+ |**500** | Internal server error during JWT validation | - |
302
+
303
+ [[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)
304
+
305
+ # **measurementsV1ControllerGetMeasurementById**
306
+ > MeasurementDto measurementsV1ControllerGetMeasurementById()
307
+
308
+
309
+ ### Example
310
+
311
+ ```typescript
312
+ import {
313
+ MeasurementsV1Api,
314
+ Configuration
315
+ } from '@dimrev4/fitness-v3-backend-sdk';
316
+
317
+ const configuration = new Configuration();
318
+ const apiInstance = new MeasurementsV1Api(configuration);
319
+
320
+ let measurementId: string; // (default to undefined)
321
+
322
+ const { status, data } = await apiInstance.measurementsV1ControllerGetMeasurementById(
323
+ measurementId
324
+ );
325
+ ```
326
+
327
+ ### Parameters
328
+
329
+ |Name | Type | Description | Notes|
330
+ |------------- | ------------- | ------------- | -------------|
331
+ | **measurementId** | [**string**] | | defaults to undefined|
332
+
333
+
334
+ ### Return type
335
+
336
+ **MeasurementDto**
337
+
338
+ ### Authorization
339
+
340
+ [bearer](../README.md#bearer)
341
+
342
+ ### HTTP request headers
343
+
344
+ - **Content-Type**: Not defined
345
+ - **Accept**: application/json
346
+
347
+
348
+ ### HTTP response details
349
+ | Status code | Description | Response headers |
350
+ |-------------|-------------|------------------|
351
+ |**200** | | - |
352
+ |**400** | Invalid JWT payload structure or validation failed | - |
353
+ |**401** | JWT token is missing, expired, or invalid | - |
354
+ |**500** | Internal server error during JWT validation | - |
355
+
356
+ [[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)
357
+
358
+ # **measurementsV1ControllerUpdateMeasurement**
359
+ > MeasurementDto measurementsV1ControllerUpdateMeasurement(updateMeasurementRequestDto)
360
+
361
+
362
+ ### Example
363
+
364
+ ```typescript
365
+ import {
366
+ MeasurementsV1Api,
367
+ Configuration,
368
+ UpdateMeasurementRequestDto
369
+ } from '@dimrev4/fitness-v3-backend-sdk';
370
+
371
+ const configuration = new Configuration();
372
+ const apiInstance = new MeasurementsV1Api(configuration);
373
+
374
+ let measurementId: string; // (default to undefined)
375
+ let updateMeasurementRequestDto: UpdateMeasurementRequestDto; //
376
+
377
+ const { status, data } = await apiInstance.measurementsV1ControllerUpdateMeasurement(
378
+ measurementId,
379
+ updateMeasurementRequestDto
380
+ );
381
+ ```
382
+
383
+ ### Parameters
384
+
385
+ |Name | Type | Description | Notes|
386
+ |------------- | ------------- | ------------- | -------------|
387
+ | **updateMeasurementRequestDto** | **UpdateMeasurementRequestDto**| | |
388
+ | **measurementId** | [**string**] | | defaults to undefined|
389
+
390
+
391
+ ### Return type
392
+
393
+ **MeasurementDto**
394
+
395
+ ### Authorization
396
+
397
+ [bearer](../README.md#bearer)
398
+
399
+ ### HTTP request headers
400
+
401
+ - **Content-Type**: application/json
402
+ - **Accept**: application/json
403
+
404
+
405
+ ### HTTP response details
406
+ | Status code | Description | Response headers |
407
+ |-------------|-------------|------------------|
408
+ |**200** | | - |
409
+ |**400** | Invalid JWT payload structure or validation failed | - |
410
+ |**401** | JWT token is missing, expired, or invalid | - |
411
+ |**500** | Internal server error during JWT validation | - |
412
+
413
+ [[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)
414
+
@@ -0,0 +1,24 @@
1
+ # RegisterRequestDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **email** | **string** | Email | [default to undefined]
9
+ **username** | **string** | Username | [default to undefined]
10
+ **password** | **string** | Password | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { RegisterRequestDto } from '@dimrev4/fitness-v3-backend-sdk';
16
+
17
+ const instance: RegisterRequestDto = {
18
+ email,
19
+ username,
20
+ password,
21
+ };
22
+ ```
23
+
24
+ [[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
+ # RegisterResponseDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | Message | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { RegisterResponseDto } from '@dimrev4/fitness-v3-backend-sdk';
14
+
15
+ const instance: RegisterResponseDto = {
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,24 @@
1
+ # UpdateMeasurementRequestDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **weightKG** | **number** | Weight in kilograms | [optional] [default to undefined]
9
+ **heightCM** | **number** | Height in centimeters | [optional] [default to undefined]
10
+ **bmi** | **number** | Body Mass Index | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { UpdateMeasurementRequestDto } from '@dimrev4/fitness-v3-backend-sdk';
16
+
17
+ const instance: UpdateMeasurementRequestDto = {
18
+ weightKG,
19
+ heightCM,
20
+ bmi,
21
+ };
22
+ ```
23
+
24
+ [[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,32 @@
1
+ # UserDetailsDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | User ID | [default to undefined]
9
+ **username** | **string** | Username | [default to undefined]
10
+ **email** | **string** | User email | [default to undefined]
11
+ **createdAt** | **string** | User creation date | [default to undefined]
12
+ **updatedAt** | **string** | User update date | [default to undefined]
13
+ **deletedAt** | **string** | User deletion date | [default to undefined]
14
+ **userToGroup** | [**Array<UserToGroupDetailsDto>**](UserToGroupDetailsDto.md) | User to Group relations | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { UserDetailsDto } from '@dimrev4/fitness-v3-backend-sdk';
20
+
21
+ const instance: UserDetailsDto = {
22
+ id,
23
+ username,
24
+ email,
25
+ createdAt,
26
+ updatedAt,
27
+ deletedAt,
28
+ userToGroup,
29
+ };
30
+ ```
31
+
32
+ [[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
+ # UserDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | User ID | [default to undefined]
9
+ **username** | **string** | Username | [default to undefined]
10
+ **email** | **string** | User email | [default to undefined]
11
+ **createdAt** | **string** | User creation date | [default to undefined]
12
+ **updatedAt** | **string** | User update date | [default to undefined]
13
+ **deletedAt** | **object** | User deletion date | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { UserDto } from '@dimrev4/fitness-v3-backend-sdk';
19
+
20
+ const instance: UserDto = {
21
+ id,
22
+ username,
23
+ email,
24
+ createdAt,
25
+ updatedAt,
26
+ deletedAt,
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)
@@ -0,0 +1,42 @@
1
+ # UserToGroupDetailsDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **groupId** | **string** | Group ID | [default to undefined]
9
+ **userId** | **string** | User ID | [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
+ **canCreate** | **boolean** | Can create | [default to undefined]
14
+ **canRead** | **boolean** | Can read | [default to undefined]
15
+ **canUpdate** | **boolean** | Can update | [default to undefined]
16
+ **canDelete** | **boolean** | Can delete | [default to undefined]
17
+ **group** | [**GroupDto**](GroupDto.md) | Group | [default to undefined]
18
+ **user** | [**UserDto**](UserDto.md) | User | [default to undefined]
19
+ **isRoot** | **boolean** | Is Root | [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { UserToGroupDetailsDto } from '@dimrev4/fitness-v3-backend-sdk';
25
+
26
+ const instance: UserToGroupDetailsDto = {
27
+ groupId,
28
+ userId,
29
+ createdAt,
30
+ updatedAt,
31
+ deletedAt,
32
+ canCreate,
33
+ canRead,
34
+ canUpdate,
35
+ canDelete,
36
+ group,
37
+ user,
38
+ isRoot,
39
+ };
40
+ ```
41
+
42
+ [[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/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
package/index.ts ADDED
@@ -0,0 +1,18 @@
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
+ export * from "./api";
17
+ export * from "./configuration";
18
+