@dimrev4/fitness-v3-backend 0.0.41 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +27 -9
- package/dist/api.d.ts +24 -6
- package/dist/api.js +9 -3
- package/dist/esm/api.d.ts +24 -6
- package/dist/esm/api.js +9 -3
- package/docs/CreateExerciseRequestDto.md +2 -0
- package/docs/CreateWorkoutRequestDto.md +0 -2
- package/docs/ExerciseDto.md +2 -0
- package/docs/ExerciseWithSetsDto.md +2 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -96,13 +96,21 @@ export interface CreateExerciseRequestDto {
|
|
|
96
96
|
* @memberof CreateExerciseRequestDto
|
|
97
97
|
*/
|
|
98
98
|
'instructions': string;
|
|
99
|
+
/**
|
|
100
|
+
* Exercise image url
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof CreateExerciseRequestDto
|
|
103
|
+
*/
|
|
104
|
+
'imgUrl': string;
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
export const CreateExerciseRequestDtoTypeEnum = {
|
|
102
108
|
Cardio: 'CARDIO',
|
|
103
109
|
Strength: 'STRENGTH',
|
|
104
110
|
Flexibility: 'FLEXIBILITY',
|
|
105
|
-
BodyWeight: 'BODY_WEIGHT'
|
|
111
|
+
BodyWeight: 'BODY_WEIGHT',
|
|
112
|
+
Compound: 'COMPOUND',
|
|
113
|
+
Isolation: 'ISOLATION'
|
|
106
114
|
} as const;
|
|
107
115
|
|
|
108
116
|
export type CreateExerciseRequestDtoTypeEnum = typeof CreateExerciseRequestDtoTypeEnum[keyof typeof CreateExerciseRequestDtoTypeEnum];
|
|
@@ -543,12 +551,6 @@ export interface CreateWorkoutRequestDto {
|
|
|
543
551
|
* @memberof CreateWorkoutRequestDto
|
|
544
552
|
*/
|
|
545
553
|
'description': string;
|
|
546
|
-
/**
|
|
547
|
-
* The image url of the workout
|
|
548
|
-
* @type {string}
|
|
549
|
-
* @memberof CreateWorkoutRequestDto
|
|
550
|
-
*/
|
|
551
|
-
'imageUrl': string;
|
|
552
554
|
/**
|
|
553
555
|
* The resource type of the workout
|
|
554
556
|
* @type {string}
|
|
@@ -656,6 +658,12 @@ export interface ExerciseDto {
|
|
|
656
658
|
* @memberof ExerciseDto
|
|
657
659
|
*/
|
|
658
660
|
'instructions': string;
|
|
661
|
+
/**
|
|
662
|
+
* Exercise image url
|
|
663
|
+
* @type {string}
|
|
664
|
+
* @memberof ExerciseDto
|
|
665
|
+
*/
|
|
666
|
+
'imgUrl': string;
|
|
659
667
|
/**
|
|
660
668
|
* Exercise created at
|
|
661
669
|
* @type {string}
|
|
@@ -680,7 +688,9 @@ export const ExerciseDtoTypeEnum = {
|
|
|
680
688
|
Cardio: 'CARDIO',
|
|
681
689
|
Strength: 'STRENGTH',
|
|
682
690
|
Flexibility: 'FLEXIBILITY',
|
|
683
|
-
BodyWeight: 'BODY_WEIGHT'
|
|
691
|
+
BodyWeight: 'BODY_WEIGHT',
|
|
692
|
+
Compound: 'COMPOUND',
|
|
693
|
+
Isolation: 'ISOLATION'
|
|
684
694
|
} as const;
|
|
685
695
|
|
|
686
696
|
export type ExerciseDtoTypeEnum = typeof ExerciseDtoTypeEnum[keyof typeof ExerciseDtoTypeEnum];
|
|
@@ -817,6 +827,12 @@ export interface ExerciseWithSetsDto {
|
|
|
817
827
|
* @memberof ExerciseWithSetsDto
|
|
818
828
|
*/
|
|
819
829
|
'completedMeta': object;
|
|
830
|
+
/**
|
|
831
|
+
* Exercise image url
|
|
832
|
+
* @type {string}
|
|
833
|
+
* @memberof ExerciseWithSetsDto
|
|
834
|
+
*/
|
|
835
|
+
'imgUrl': string;
|
|
820
836
|
/**
|
|
821
837
|
* Exercise created at
|
|
822
838
|
* @type {string}
|
|
@@ -847,7 +863,9 @@ export const ExerciseWithSetsDtoTypeEnum = {
|
|
|
847
863
|
Cardio: 'CARDIO',
|
|
848
864
|
Strength: 'STRENGTH',
|
|
849
865
|
Flexibility: 'FLEXIBILITY',
|
|
850
|
-
BodyWeight: 'BODY_WEIGHT'
|
|
866
|
+
BodyWeight: 'BODY_WEIGHT',
|
|
867
|
+
Compound: 'COMPOUND',
|
|
868
|
+
Isolation: 'ISOLATION'
|
|
851
869
|
} as const;
|
|
852
870
|
|
|
853
871
|
export type ExerciseWithSetsDtoTypeEnum = typeof ExerciseWithSetsDtoTypeEnum[keyof typeof ExerciseWithSetsDtoTypeEnum];
|
package/dist/api.d.ts
CHANGED
|
@@ -86,12 +86,20 @@ export interface CreateExerciseRequestDto {
|
|
|
86
86
|
* @memberof CreateExerciseRequestDto
|
|
87
87
|
*/
|
|
88
88
|
'instructions': string;
|
|
89
|
+
/**
|
|
90
|
+
* Exercise image url
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof CreateExerciseRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'imgUrl': string;
|
|
89
95
|
}
|
|
90
96
|
export declare const CreateExerciseRequestDtoTypeEnum: {
|
|
91
97
|
readonly Cardio: "CARDIO";
|
|
92
98
|
readonly Strength: "STRENGTH";
|
|
93
99
|
readonly Flexibility: "FLEXIBILITY";
|
|
94
100
|
readonly BodyWeight: "BODY_WEIGHT";
|
|
101
|
+
readonly Compound: "COMPOUND";
|
|
102
|
+
readonly Isolation: "ISOLATION";
|
|
95
103
|
};
|
|
96
104
|
export type CreateExerciseRequestDtoTypeEnum = typeof CreateExerciseRequestDtoTypeEnum[keyof typeof CreateExerciseRequestDtoTypeEnum];
|
|
97
105
|
export declare const CreateExerciseRequestDtoBodyPartsEnum: {
|
|
@@ -518,12 +526,6 @@ export interface CreateWorkoutRequestDto {
|
|
|
518
526
|
* @memberof CreateWorkoutRequestDto
|
|
519
527
|
*/
|
|
520
528
|
'description': string;
|
|
521
|
-
/**
|
|
522
|
-
* The image url of the workout
|
|
523
|
-
* @type {string}
|
|
524
|
-
* @memberof CreateWorkoutRequestDto
|
|
525
|
-
*/
|
|
526
|
-
'imageUrl': string;
|
|
527
529
|
/**
|
|
528
530
|
* The resource type of the workout
|
|
529
531
|
* @type {string}
|
|
@@ -628,6 +630,12 @@ export interface ExerciseDto {
|
|
|
628
630
|
* @memberof ExerciseDto
|
|
629
631
|
*/
|
|
630
632
|
'instructions': string;
|
|
633
|
+
/**
|
|
634
|
+
* Exercise image url
|
|
635
|
+
* @type {string}
|
|
636
|
+
* @memberof ExerciseDto
|
|
637
|
+
*/
|
|
638
|
+
'imgUrl': string;
|
|
631
639
|
/**
|
|
632
640
|
* Exercise created at
|
|
633
641
|
* @type {string}
|
|
@@ -652,6 +660,8 @@ export declare const ExerciseDtoTypeEnum: {
|
|
|
652
660
|
readonly Strength: "STRENGTH";
|
|
653
661
|
readonly Flexibility: "FLEXIBILITY";
|
|
654
662
|
readonly BodyWeight: "BODY_WEIGHT";
|
|
663
|
+
readonly Compound: "COMPOUND";
|
|
664
|
+
readonly Isolation: "ISOLATION";
|
|
655
665
|
};
|
|
656
666
|
export type ExerciseDtoTypeEnum = typeof ExerciseDtoTypeEnum[keyof typeof ExerciseDtoTypeEnum];
|
|
657
667
|
export declare const ExerciseDtoBodyPartsEnum: {
|
|
@@ -783,6 +793,12 @@ export interface ExerciseWithSetsDto {
|
|
|
783
793
|
* @memberof ExerciseWithSetsDto
|
|
784
794
|
*/
|
|
785
795
|
'completedMeta': object;
|
|
796
|
+
/**
|
|
797
|
+
* Exercise image url
|
|
798
|
+
* @type {string}
|
|
799
|
+
* @memberof ExerciseWithSetsDto
|
|
800
|
+
*/
|
|
801
|
+
'imgUrl': string;
|
|
786
802
|
/**
|
|
787
803
|
* Exercise created at
|
|
788
804
|
* @type {string}
|
|
@@ -813,6 +829,8 @@ export declare const ExerciseWithSetsDtoTypeEnum: {
|
|
|
813
829
|
readonly Strength: "STRENGTH";
|
|
814
830
|
readonly Flexibility: "FLEXIBILITY";
|
|
815
831
|
readonly BodyWeight: "BODY_WEIGHT";
|
|
832
|
+
readonly Compound: "COMPOUND";
|
|
833
|
+
readonly Isolation: "ISOLATION";
|
|
816
834
|
};
|
|
817
835
|
export type ExerciseWithSetsDtoTypeEnum = typeof ExerciseWithSetsDtoTypeEnum[keyof typeof ExerciseWithSetsDtoTypeEnum];
|
|
818
836
|
export declare const ExerciseWithSetsDtoBodyPartsEnum: {
|
package/dist/api.js
CHANGED
|
@@ -34,7 +34,9 @@ exports.CreateExerciseRequestDtoTypeEnum = {
|
|
|
34
34
|
Cardio: 'CARDIO',
|
|
35
35
|
Strength: 'STRENGTH',
|
|
36
36
|
Flexibility: 'FLEXIBILITY',
|
|
37
|
-
BodyWeight: 'BODY_WEIGHT'
|
|
37
|
+
BodyWeight: 'BODY_WEIGHT',
|
|
38
|
+
Compound: 'COMPOUND',
|
|
39
|
+
Isolation: 'ISOLATION'
|
|
38
40
|
};
|
|
39
41
|
exports.CreateExerciseRequestDtoBodyPartsEnum = {
|
|
40
42
|
Shoulders: 'SHOULDERS',
|
|
@@ -106,7 +108,9 @@ exports.ExerciseDtoTypeEnum = {
|
|
|
106
108
|
Cardio: 'CARDIO',
|
|
107
109
|
Strength: 'STRENGTH',
|
|
108
110
|
Flexibility: 'FLEXIBILITY',
|
|
109
|
-
BodyWeight: 'BODY_WEIGHT'
|
|
111
|
+
BodyWeight: 'BODY_WEIGHT',
|
|
112
|
+
Compound: 'COMPOUND',
|
|
113
|
+
Isolation: 'ISOLATION'
|
|
110
114
|
};
|
|
111
115
|
exports.ExerciseDtoBodyPartsEnum = {
|
|
112
116
|
Shoulders: 'SHOULDERS',
|
|
@@ -153,7 +157,9 @@ exports.ExerciseWithSetsDtoTypeEnum = {
|
|
|
153
157
|
Cardio: 'CARDIO',
|
|
154
158
|
Strength: 'STRENGTH',
|
|
155
159
|
Flexibility: 'FLEXIBILITY',
|
|
156
|
-
BodyWeight: 'BODY_WEIGHT'
|
|
160
|
+
BodyWeight: 'BODY_WEIGHT',
|
|
161
|
+
Compound: 'COMPOUND',
|
|
162
|
+
Isolation: 'ISOLATION'
|
|
157
163
|
};
|
|
158
164
|
exports.ExerciseWithSetsDtoBodyPartsEnum = {
|
|
159
165
|
Shoulders: 'SHOULDERS',
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -86,12 +86,20 @@ export interface CreateExerciseRequestDto {
|
|
|
86
86
|
* @memberof CreateExerciseRequestDto
|
|
87
87
|
*/
|
|
88
88
|
'instructions': string;
|
|
89
|
+
/**
|
|
90
|
+
* Exercise image url
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof CreateExerciseRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'imgUrl': string;
|
|
89
95
|
}
|
|
90
96
|
export declare const CreateExerciseRequestDtoTypeEnum: {
|
|
91
97
|
readonly Cardio: "CARDIO";
|
|
92
98
|
readonly Strength: "STRENGTH";
|
|
93
99
|
readonly Flexibility: "FLEXIBILITY";
|
|
94
100
|
readonly BodyWeight: "BODY_WEIGHT";
|
|
101
|
+
readonly Compound: "COMPOUND";
|
|
102
|
+
readonly Isolation: "ISOLATION";
|
|
95
103
|
};
|
|
96
104
|
export type CreateExerciseRequestDtoTypeEnum = typeof CreateExerciseRequestDtoTypeEnum[keyof typeof CreateExerciseRequestDtoTypeEnum];
|
|
97
105
|
export declare const CreateExerciseRequestDtoBodyPartsEnum: {
|
|
@@ -518,12 +526,6 @@ export interface CreateWorkoutRequestDto {
|
|
|
518
526
|
* @memberof CreateWorkoutRequestDto
|
|
519
527
|
*/
|
|
520
528
|
'description': string;
|
|
521
|
-
/**
|
|
522
|
-
* The image url of the workout
|
|
523
|
-
* @type {string}
|
|
524
|
-
* @memberof CreateWorkoutRequestDto
|
|
525
|
-
*/
|
|
526
|
-
'imageUrl': string;
|
|
527
529
|
/**
|
|
528
530
|
* The resource type of the workout
|
|
529
531
|
* @type {string}
|
|
@@ -628,6 +630,12 @@ export interface ExerciseDto {
|
|
|
628
630
|
* @memberof ExerciseDto
|
|
629
631
|
*/
|
|
630
632
|
'instructions': string;
|
|
633
|
+
/**
|
|
634
|
+
* Exercise image url
|
|
635
|
+
* @type {string}
|
|
636
|
+
* @memberof ExerciseDto
|
|
637
|
+
*/
|
|
638
|
+
'imgUrl': string;
|
|
631
639
|
/**
|
|
632
640
|
* Exercise created at
|
|
633
641
|
* @type {string}
|
|
@@ -652,6 +660,8 @@ export declare const ExerciseDtoTypeEnum: {
|
|
|
652
660
|
readonly Strength: "STRENGTH";
|
|
653
661
|
readonly Flexibility: "FLEXIBILITY";
|
|
654
662
|
readonly BodyWeight: "BODY_WEIGHT";
|
|
663
|
+
readonly Compound: "COMPOUND";
|
|
664
|
+
readonly Isolation: "ISOLATION";
|
|
655
665
|
};
|
|
656
666
|
export type ExerciseDtoTypeEnum = typeof ExerciseDtoTypeEnum[keyof typeof ExerciseDtoTypeEnum];
|
|
657
667
|
export declare const ExerciseDtoBodyPartsEnum: {
|
|
@@ -783,6 +793,12 @@ export interface ExerciseWithSetsDto {
|
|
|
783
793
|
* @memberof ExerciseWithSetsDto
|
|
784
794
|
*/
|
|
785
795
|
'completedMeta': object;
|
|
796
|
+
/**
|
|
797
|
+
* Exercise image url
|
|
798
|
+
* @type {string}
|
|
799
|
+
* @memberof ExerciseWithSetsDto
|
|
800
|
+
*/
|
|
801
|
+
'imgUrl': string;
|
|
786
802
|
/**
|
|
787
803
|
* Exercise created at
|
|
788
804
|
* @type {string}
|
|
@@ -813,6 +829,8 @@ export declare const ExerciseWithSetsDtoTypeEnum: {
|
|
|
813
829
|
readonly Strength: "STRENGTH";
|
|
814
830
|
readonly Flexibility: "FLEXIBILITY";
|
|
815
831
|
readonly BodyWeight: "BODY_WEIGHT";
|
|
832
|
+
readonly Compound: "COMPOUND";
|
|
833
|
+
readonly Isolation: "ISOLATION";
|
|
816
834
|
};
|
|
817
835
|
export type ExerciseWithSetsDtoTypeEnum = typeof ExerciseWithSetsDtoTypeEnum[keyof typeof ExerciseWithSetsDtoTypeEnum];
|
|
818
836
|
export declare const ExerciseWithSetsDtoBodyPartsEnum: {
|
package/dist/esm/api.js
CHANGED
|
@@ -30,7 +30,9 @@ export const CreateExerciseRequestDtoTypeEnum = {
|
|
|
30
30
|
Cardio: 'CARDIO',
|
|
31
31
|
Strength: 'STRENGTH',
|
|
32
32
|
Flexibility: 'FLEXIBILITY',
|
|
33
|
-
BodyWeight: 'BODY_WEIGHT'
|
|
33
|
+
BodyWeight: 'BODY_WEIGHT',
|
|
34
|
+
Compound: 'COMPOUND',
|
|
35
|
+
Isolation: 'ISOLATION'
|
|
34
36
|
};
|
|
35
37
|
export const CreateExerciseRequestDtoBodyPartsEnum = {
|
|
36
38
|
Shoulders: 'SHOULDERS',
|
|
@@ -102,7 +104,9 @@ export const ExerciseDtoTypeEnum = {
|
|
|
102
104
|
Cardio: 'CARDIO',
|
|
103
105
|
Strength: 'STRENGTH',
|
|
104
106
|
Flexibility: 'FLEXIBILITY',
|
|
105
|
-
BodyWeight: 'BODY_WEIGHT'
|
|
107
|
+
BodyWeight: 'BODY_WEIGHT',
|
|
108
|
+
Compound: 'COMPOUND',
|
|
109
|
+
Isolation: 'ISOLATION'
|
|
106
110
|
};
|
|
107
111
|
export const ExerciseDtoBodyPartsEnum = {
|
|
108
112
|
Shoulders: 'SHOULDERS',
|
|
@@ -149,7 +153,9 @@ export const ExerciseWithSetsDtoTypeEnum = {
|
|
|
149
153
|
Cardio: 'CARDIO',
|
|
150
154
|
Strength: 'STRENGTH',
|
|
151
155
|
Flexibility: 'FLEXIBILITY',
|
|
152
|
-
BodyWeight: 'BODY_WEIGHT'
|
|
156
|
+
BodyWeight: 'BODY_WEIGHT',
|
|
157
|
+
Compound: 'COMPOUND',
|
|
158
|
+
Isolation: 'ISOLATION'
|
|
153
159
|
};
|
|
154
160
|
export const ExerciseWithSetsDtoBodyPartsEnum = {
|
|
155
161
|
Shoulders: 'SHOULDERS',
|
|
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**equipment** | **Array<string>** | Exercise equipment | [default to undefined]
|
|
13
13
|
**difficulty** | **string** | Exercise difficulty | [default to undefined]
|
|
14
14
|
**instructions** | **string** | Exercise instructions | [default to undefined]
|
|
15
|
+
**imgUrl** | **string** | Exercise image url | [default to undefined]
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const instance: CreateExerciseRequestDto = {
|
|
|
26
27
|
equipment,
|
|
27
28
|
difficulty,
|
|
28
29
|
instructions,
|
|
30
|
+
imgUrl,
|
|
29
31
|
};
|
|
30
32
|
```
|
|
31
33
|
|
|
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**name** | **string** | The name of the workout | [default to undefined]
|
|
9
9
|
**description** | **string** | The description of the workout | [default to undefined]
|
|
10
|
-
**imageUrl** | **string** | The image url of the workout | [default to undefined]
|
|
11
10
|
**ResourceType** | **string** | The resource type of the workout | [default to undefined]
|
|
12
11
|
**userId** | **string** | The user id of the workout | [optional] [default to undefined]
|
|
13
12
|
**groupId** | **string** | The group id of the workout | [optional] [default to undefined]
|
|
@@ -21,7 +20,6 @@ import { CreateWorkoutRequestDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
|
21
20
|
const instance: CreateWorkoutRequestDto = {
|
|
22
21
|
name,
|
|
23
22
|
description,
|
|
24
|
-
imageUrl,
|
|
25
23
|
ResourceType,
|
|
26
24
|
userId,
|
|
27
25
|
groupId,
|
package/docs/ExerciseDto.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**equipment** | **Array<string>** | Exercise equipment | [default to undefined]
|
|
14
14
|
**difficulty** | **string** | Exercise difficulty | [default to undefined]
|
|
15
15
|
**instructions** | **string** | Exercise instructions | [default to undefined]
|
|
16
|
+
**imgUrl** | **string** | Exercise image url | [default to undefined]
|
|
16
17
|
**createdAt** | **string** | Exercise created at | [default to undefined]
|
|
17
18
|
**updatedAt** | **string** | Exercise updated at | [default to undefined]
|
|
18
19
|
**deletedAt** | **string** | Exercise deleted at | [default to undefined]
|
|
@@ -31,6 +32,7 @@ const instance: ExerciseDto = {
|
|
|
31
32
|
equipment,
|
|
32
33
|
difficulty,
|
|
33
34
|
instructions,
|
|
35
|
+
imgUrl,
|
|
34
36
|
createdAt,
|
|
35
37
|
updatedAt,
|
|
36
38
|
deletedAt,
|
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**difficulty** | **string** | Exercise difficulty | [default to undefined]
|
|
15
15
|
**instructions** | **string** | Exercise instructions | [default to undefined]
|
|
16
16
|
**completedMeta** | **object** | Completed workout meta data | [default to undefined]
|
|
17
|
+
**imgUrl** | **string** | Exercise image url | [default to undefined]
|
|
17
18
|
**createdAt** | **string** | Exercise created at | [default to undefined]
|
|
18
19
|
**updatedAt** | **string** | Exercise updated at | [default to undefined]
|
|
19
20
|
**deletedAt** | **string** | Exercise deleted at | [default to undefined]
|
|
@@ -34,6 +35,7 @@ const instance: ExerciseWithSetsDto = {
|
|
|
34
35
|
difficulty,
|
|
35
36
|
instructions,
|
|
36
37
|
completedMeta,
|
|
38
|
+
imgUrl,
|
|
37
39
|
createdAt,
|
|
38
40
|
updatedAt,
|
|
39
41
|
deletedAt,
|