@abyss-project/training 1.0.0
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/.eslintrc.js +34 -0
- package/README.md +2 -0
- package/dist/api/abyss.admin.api.d.ts +2 -0
- package/dist/api/abyss.admin.api.js +8 -0
- package/dist/api/analytics.api.d.ts +11 -0
- package/dist/api/analytics.api.js +18 -0
- package/dist/api/index.d.ts +7 -0
- package/dist/api/index.js +23 -0
- package/dist/api/monitor.api.d.ts +2 -0
- package/dist/api/monitor.api.js +8 -0
- package/dist/api/project-analytics.api.d.ts +7 -0
- package/dist/api/project-analytics.api.js +16 -0
- package/dist/api/project-document.admin.api.d.ts +6 -0
- package/dist/api/project-document.admin.api.js +24 -0
- package/dist/api/project-document.api.d.ts +9 -0
- package/dist/api/project-document.api.js +38 -0
- package/dist/api/project-event.api.d.ts +7 -0
- package/dist/api/project-event.api.js +28 -0
- package/dist/api/project-follower.admin.api.d.ts +4 -0
- package/dist/api/project-follower.admin.api.js +18 -0
- package/dist/api/project-follower.api.d.ts +5 -0
- package/dist/api/project-follower.api.js +20 -0
- package/dist/api/project-post.admin.api.d.ts +6 -0
- package/dist/api/project-post.admin.api.js +24 -0
- package/dist/api/project-post.api.d.ts +6 -0
- package/dist/api/project-post.api.js +24 -0
- package/dist/api/project-presentation.admin.api.d.ts +4 -0
- package/dist/api/project-presentation.admin.api.js +16 -0
- package/dist/api/project-presentation.api.d.ts +4 -0
- package/dist/api/project-presentation.api.js +16 -0
- package/dist/api/project-social-network.admin.api.d.ts +7 -0
- package/dist/api/project-social-network.admin.api.js +28 -0
- package/dist/api/project-social-network.api.d.ts +6 -0
- package/dist/api/project-social-network.api.js +24 -0
- package/dist/api/project-star.admin.api.d.ts +4 -0
- package/dist/api/project-star.admin.api.js +18 -0
- package/dist/api/project-star.api.d.ts +5 -0
- package/dist/api/project-star.api.js +20 -0
- package/dist/api/project.admin.api.d.ts +11 -0
- package/dist/api/project.admin.api.js +46 -0
- package/dist/api/project.api.d.ts +13 -0
- package/dist/api/project.api.js +56 -0
- package/dist/api/project.public.api.d.ts +8 -0
- package/dist/api/project.public.api.js +32 -0
- package/dist/api/user.admin.api.d.ts +5 -0
- package/dist/api/user.admin.api.js +23 -0
- package/dist/api/user.api.d.ts +4 -0
- package/dist/api/user.api.js +17 -0
- package/dist/api/workout-session.api.d.ts +9 -0
- package/dist/api/workout-session.api.js +38 -0
- package/dist/api/workout-template.api.d.ts +7 -0
- package/dist/api/workout-template.api.js +28 -0
- package/dist/api/workout-template.public.api.d.ts +3 -0
- package/dist/api/workout-template.public.api.js +12 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +17 -0
- package/dist/constants/project.constant.d.ts +4 -0
- package/dist/constants/project.constant.js +7 -0
- package/dist/constants/training.constant.d.ts +2 -0
- package/dist/constants/training.constant.js +5 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +99 -0
- package/dist/types/enum/api-error.enum.d.ts +21 -0
- package/dist/types/enum/api-error.enum.js +26 -0
- package/dist/types/enum/equipment-type.enum.d.ts +11 -0
- package/dist/types/enum/equipment-type.enum.js +15 -0
- package/dist/types/enum/exercise-group-type.enum.d.ts +9 -0
- package/dist/types/enum/exercise-group-type.enum.js +13 -0
- package/dist/types/enum/exercise-type.enum.d.ts +8 -0
- package/dist/types/enum/exercise-type.enum.js +12 -0
- package/dist/types/enum/index.d.ts +6 -0
- package/dist/types/enum/index.js +22 -0
- package/dist/types/enum/muscle-group.enum.d.ts +16 -0
- package/dist/types/enum/muscle-group.enum.js +20 -0
- package/dist/types/enum/project-category.enum.d.ts +63 -0
- package/dist/types/enum/project-category.enum.js +67 -0
- package/dist/types/enum/project-document-type.enum.d.ts +6 -0
- package/dist/types/enum/project-document-type.enum.js +10 -0
- package/dist/types/enum/project-language.enum.d.ts +40 -0
- package/dist/types/enum/project-language.enum.js +44 -0
- package/dist/types/enum/project-presentation-type.enum.d.ts +3 -0
- package/dist/types/enum/project-presentation-type.enum.js +7 -0
- package/dist/types/enum/project-status.enum.d.ts +5 -0
- package/dist/types/enum/project-status.enum.js +9 -0
- package/dist/types/enum/workout-session-status.enum.d.ts +7 -0
- package/dist/types/enum/workout-session-status.enum.js +11 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +18 -0
- package/dist/types/interface/api/index.d.ts +19 -0
- package/dist/types/interface/api/index.js +35 -0
- package/dist/types/interface/api/requests/abyss.admin.request.d.ts +3 -0
- package/dist/types/interface/api/requests/abyss.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-analytics.request.d.ts +19 -0
- package/dist/types/interface/api/requests/project-analytics.request.js +2 -0
- package/dist/types/interface/api/requests/project-document.admin.request.d.ts +18 -0
- package/dist/types/interface/api/requests/project-document.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-document.request.d.ts +52 -0
- package/dist/types/interface/api/requests/project-document.request.js +2 -0
- package/dist/types/interface/api/requests/project-event.request.d.ts +30 -0
- package/dist/types/interface/api/requests/project-event.request.js +2 -0
- package/dist/types/interface/api/requests/project-follower.admin.request.d.ts +13 -0
- package/dist/types/interface/api/requests/project-follower.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-follower.request.d.ts +12 -0
- package/dist/types/interface/api/requests/project-follower.request.js +2 -0
- package/dist/types/interface/api/requests/project-post-analytics.request.d.ts +4 -0
- package/dist/types/interface/api/requests/project-post-analytics.request.js +2 -0
- package/dist/types/interface/api/requests/project-post.admin.request.d.ts +24 -0
- package/dist/types/interface/api/requests/project-post.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-post.request.d.ts +28 -0
- package/dist/types/interface/api/requests/project-post.request.js +2 -0
- package/dist/types/interface/api/requests/project-presentation.admin.request.d.ts +12 -0
- package/dist/types/interface/api/requests/project-presentation.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-presentation.request.d.ts +13 -0
- package/dist/types/interface/api/requests/project-presentation.request.js +2 -0
- package/dist/types/interface/api/requests/project-social-network.admin.request.d.ts +30 -0
- package/dist/types/interface/api/requests/project-social-network.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-social-network.request.d.ts +28 -0
- package/dist/types/interface/api/requests/project-social-network.request.js +2 -0
- package/dist/types/interface/api/requests/project-star.admin.request.d.ts +13 -0
- package/dist/types/interface/api/requests/project-star.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project-star.request.d.ts +12 -0
- package/dist/types/interface/api/requests/project-star.request.js +2 -0
- package/dist/types/interface/api/requests/project.admin.request.d.ts +69 -0
- package/dist/types/interface/api/requests/project.admin.request.js +2 -0
- package/dist/types/interface/api/requests/project.public.request.d.ts +38 -0
- package/dist/types/interface/api/requests/project.public.request.js +2 -0
- package/dist/types/interface/api/requests/project.request.d.ts +70 -0
- package/dist/types/interface/api/requests/project.request.js +2 -0
- package/dist/types/interface/api/requests/storage.admin.request.d.ts +3 -0
- package/dist/types/interface/api/requests/storage.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user.admin.request.d.ts +14 -0
- package/dist/types/interface/api/requests/user.admin.request.js +2 -0
- package/dist/types/interface/api/requests/user.request.d.ts +2 -0
- package/dist/types/interface/api/requests/user.request.js +2 -0
- package/dist/types/interface/api/requests/workout-session.request.d.ts +74 -0
- package/dist/types/interface/api/requests/workout-session.request.js +2 -0
- package/dist/types/interface/api/requests/workout-template.public.request.d.ts +15 -0
- package/dist/types/interface/api/requests/workout-template.public.request.js +2 -0
- package/dist/types/interface/api/requests/workout-template.request.d.ts +62 -0
- package/dist/types/interface/api/requests/workout-template.request.js +2 -0
- package/dist/types/interface/api/responses/abyss.admin.response.d.ts +6 -0
- package/dist/types/interface/api/responses/abyss.admin.response.js +2 -0
- package/dist/types/interface/api/responses/monitor.response.d.ts +7 -0
- package/dist/types/interface/api/responses/monitor.response.js +2 -0
- package/dist/types/interface/api/responses/project-analytics.response.d.ts +77 -0
- package/dist/types/interface/api/responses/project-analytics.response.js +2 -0
- package/dist/types/interface/api/responses/project-document.admin.response.d.ts +17 -0
- package/dist/types/interface/api/responses/project-document.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project-document.response.d.ts +25 -0
- package/dist/types/interface/api/responses/project-document.response.js +2 -0
- package/dist/types/interface/api/responses/project-event.response.d.ts +17 -0
- package/dist/types/interface/api/responses/project-event.response.js +2 -0
- package/dist/types/interface/api/responses/project-follower.admin.response.d.ts +9 -0
- package/dist/types/interface/api/responses/project-follower.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project-follower.response.d.ts +10 -0
- package/dist/types/interface/api/responses/project-follower.response.js +2 -0
- package/dist/types/interface/api/responses/project-post-analytics.response.d.ts +34 -0
- package/dist/types/interface/api/responses/project-post-analytics.response.js +2 -0
- package/dist/types/interface/api/responses/project-post.admin.response.d.ts +17 -0
- package/dist/types/interface/api/responses/project-post.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project-post.response.d.ts +17 -0
- package/dist/types/interface/api/responses/project-post.response.js +2 -0
- package/dist/types/interface/api/responses/project-presentation.admin.response.d.ts +12 -0
- package/dist/types/interface/api/responses/project-presentation.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project-presentation.response.d.ts +12 -0
- package/dist/types/interface/api/responses/project-presentation.response.js +2 -0
- package/dist/types/interface/api/responses/project-social-network.admin.response.d.ts +21 -0
- package/dist/types/interface/api/responses/project-social-network.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project-social-network.response.d.ts +20 -0
- package/dist/types/interface/api/responses/project-social-network.response.js +2 -0
- package/dist/types/interface/api/responses/project-star.admin.response.d.ts +9 -0
- package/dist/types/interface/api/responses/project-star.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project-star.response.d.ts +10 -0
- package/dist/types/interface/api/responses/project-star.response.js +2 -0
- package/dist/types/interface/api/responses/project.admin.response.d.ts +39 -0
- package/dist/types/interface/api/responses/project.admin.response.js +2 -0
- package/dist/types/interface/api/responses/project.public.response.d.ts +46 -0
- package/dist/types/interface/api/responses/project.public.response.js +2 -0
- package/dist/types/interface/api/responses/project.response.d.ts +76 -0
- package/dist/types/interface/api/responses/project.response.js +2 -0
- package/dist/types/interface/api/responses/storage.admin.response.d.ts +3 -0
- package/dist/types/interface/api/responses/storage.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user.admin.response.d.ts +14 -0
- package/dist/types/interface/api/responses/user.admin.response.js +2 -0
- package/dist/types/interface/api/responses/user.response.d.ts +13 -0
- package/dist/types/interface/api/responses/user.response.js +2 -0
- package/dist/types/interface/api/responses/workout-session.response.d.ts +26 -0
- package/dist/types/interface/api/responses/workout-session.response.js +2 -0
- package/dist/types/interface/api/responses/workout-template.public.response.d.ts +7 -0
- package/dist/types/interface/api/responses/workout-template.public.response.js +2 -0
- package/dist/types/interface/api/responses/workout-template.response.d.ts +18 -0
- package/dist/types/interface/api/responses/workout-template.response.js +2 -0
- package/dist/types/interface/api/type-message/api-error.d.ts +8 -0
- package/dist/types/interface/api/type-message/api-error.js +2 -0
- package/dist/types/interface/api/type-message/base-order.d.ts +4 -0
- package/dist/types/interface/api/type-message/base-order.js +2 -0
- package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -0
- package/dist/types/interface/api/type-message/base-paginate.js +2 -0
- package/dist/types/interface/api/type-message/response.d.ts +5 -0
- package/dist/types/interface/api/type-message/response.js +2 -0
- package/dist/types/interface/index.d.ts +7 -0
- package/dist/types/interface/index.js +23 -0
- package/dist/types/interface/models/exercise-set.model.d.ts +26 -0
- package/dist/types/interface/models/exercise-set.model.js +2 -0
- package/dist/types/interface/models/exercise.model.d.ts +23 -0
- package/dist/types/interface/models/exercise.model.js +2 -0
- package/dist/types/interface/models/project-analytics.model.d.ts +28 -0
- package/dist/types/interface/models/project-analytics.model.js +15 -0
- package/dist/types/interface/models/project-document.model.d.ts +19 -0
- package/dist/types/interface/models/project-document.model.js +2 -0
- package/dist/types/interface/models/project-event.model.d.ts +11 -0
- package/dist/types/interface/models/project-event.model.js +2 -0
- package/dist/types/interface/models/project-follower.model.d.ts +11 -0
- package/dist/types/interface/models/project-follower.model.js +2 -0
- package/dist/types/interface/models/project-post.model.d.ts +10 -0
- package/dist/types/interface/models/project-post.model.js +2 -0
- package/dist/types/interface/models/project-presentation.model.d.ts +12 -0
- package/dist/types/interface/models/project-presentation.model.js +2 -0
- package/dist/types/interface/models/project-social-network.model.d.ts +11 -0
- package/dist/types/interface/models/project-social-network.model.js +2 -0
- package/dist/types/interface/models/project-star.model.d.ts +11 -0
- package/dist/types/interface/models/project-star.model.js +2 -0
- package/dist/types/interface/models/project-view.model.d.ts +13 -0
- package/dist/types/interface/models/project-view.model.js +2 -0
- package/dist/types/interface/models/project.model.d.ts +37 -0
- package/dist/types/interface/models/project.model.js +2 -0
- package/dist/types/interface/models/user.model.d.ts +7 -0
- package/dist/types/interface/models/user.model.js +2 -0
- package/dist/types/interface/models/workout-exercise.model.d.ts +21 -0
- package/dist/types/interface/models/workout-exercise.model.js +2 -0
- package/dist/types/interface/models/workout-session.model.d.ts +21 -0
- package/dist/types/interface/models/workout-session.model.js +2 -0
- package/dist/types/interface/models/workout-template.model.d.ts +16 -0
- package/dist/types/interface/models/workout-template.model.js +2 -0
- package/dist/utils/css-sanitizer.utils.d.ts +2 -0
- package/dist/utils/css-sanitizer.utils.js +33 -0
- package/dist/utils/error.utils.d.ts +15 -0
- package/dist/utils/error.utils.js +24 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/package.json +51 -0
- package/tsconfig.json +105 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
export interface IGetProjectPostAdminParams {
|
|
3
|
+
projectPostId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IDeleteProjectPostAdminParams {
|
|
6
|
+
projectPostId: string;
|
|
7
|
+
}
|
|
8
|
+
export type IPaginateProjectPostAdminQuery = {
|
|
9
|
+
projectId?: string;
|
|
10
|
+
} & QueryPaginate;
|
|
11
|
+
export interface IUpdateProjectPostAdminParams {
|
|
12
|
+
projectPostId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IUpdateProjectPostAdminBody {
|
|
15
|
+
title?: string;
|
|
16
|
+
content?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ICreateProjectPostAdminParams {
|
|
19
|
+
projectId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ICreateProjectPostAdminBody {
|
|
22
|
+
title: string;
|
|
23
|
+
content: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
2
|
+
export interface IGetProjectPostParams {
|
|
3
|
+
projectId: string;
|
|
4
|
+
projectPostId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IPaginateProjectPostParams {
|
|
7
|
+
projectId: string;
|
|
8
|
+
}
|
|
9
|
+
export type IPaginateProjectPostQuery = QueryPaginate;
|
|
10
|
+
export interface IDeleteProjectPostParams {
|
|
11
|
+
projectId: string;
|
|
12
|
+
projectPostId: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IUpdateProjectPostParams {
|
|
15
|
+
projectId: string;
|
|
16
|
+
projectPostId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IUpdateProjectPostBody {
|
|
19
|
+
title?: string;
|
|
20
|
+
content?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ICreateProjectPostParams {
|
|
23
|
+
projectId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ICreateProjectPostBody {
|
|
26
|
+
title: string;
|
|
27
|
+
content: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IUpsertProjectPresentationAdminParams {
|
|
2
|
+
projectId: string;
|
|
3
|
+
}
|
|
4
|
+
export interface IUpsertProjectPresentationAdminBody {
|
|
5
|
+
content: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IGetProjectPresentationAdminParams {
|
|
8
|
+
projectId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IDeleteProjectPresentationAdminParams {
|
|
11
|
+
projectId: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IUpsertProjectPresentationParams {
|
|
2
|
+
projectId: string;
|
|
3
|
+
}
|
|
4
|
+
export interface IUpsertProjectPresentationBody {
|
|
5
|
+
content: string;
|
|
6
|
+
customCss?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IGetProjectPresentationParams {
|
|
9
|
+
projectId: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IDeleteProjectPresentationParams {
|
|
12
|
+
projectId: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { QueryPaginate } from '../type-message/base-paginate';
|
|
2
|
+
export interface IGetProjectSocialNetworkAdminParams {
|
|
3
|
+
projectSocialNetworkId: string;
|
|
4
|
+
}
|
|
5
|
+
export type IPaginateProjectSocialNetworkAdminQuery = {
|
|
6
|
+
projectId?: string;
|
|
7
|
+
socialNetwork?: string[];
|
|
8
|
+
} & QueryPaginate;
|
|
9
|
+
export interface IListProjectSocialNetworkAdminParams {
|
|
10
|
+
projectId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IDeleteProjectSocialNetworkAdminParams {
|
|
13
|
+
projectSocialNetworkId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IUpdateProjectSocialNetworkAdminParams {
|
|
16
|
+
projectSocialNetworkId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IUpdateProjectSocialNetworkAdminBody {
|
|
19
|
+
socialNetwork?: string;
|
|
20
|
+
url?: string;
|
|
21
|
+
tooltip?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface ICreateProjectSocialNetworkAdminParams {
|
|
24
|
+
projectId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ICreateProjectSocialNetworkAdminBody {
|
|
27
|
+
socialNetwork: string;
|
|
28
|
+
url: string;
|
|
29
|
+
tooltip: string | null;
|
|
30
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface IGetProjectSocialNetworkParams {
|
|
2
|
+
projectId: string;
|
|
3
|
+
projectSocialNetworkId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IListProjectSocialNetworkParams {
|
|
6
|
+
projectId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IDeleteProjectSocialNetworkParams {
|
|
9
|
+
projectId: string;
|
|
10
|
+
projectSocialNetworkId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IUpdateProjectSocialNetworkParams {
|
|
13
|
+
projectId: string;
|
|
14
|
+
projectSocialNetworkId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IUpdateProjectSocialNetworkBody {
|
|
17
|
+
socialNetwork?: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
tooltip?: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface ICreateProjectSocialNetworkParams {
|
|
22
|
+
projectId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ICreateProjectSocialNetworkBody {
|
|
25
|
+
socialNetwork: string;
|
|
26
|
+
url: string;
|
|
27
|
+
tooltip: string | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
export interface IStarProjectStarAdminParams {
|
|
3
|
+
userId: string;
|
|
4
|
+
projectId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IUnStarProjectStarAdminParams {
|
|
7
|
+
userId: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
}
|
|
10
|
+
export type IPaginateProjectStarAdminQuery = {
|
|
11
|
+
userId?: string[];
|
|
12
|
+
projectId?: string[];
|
|
13
|
+
} & QueryPaginate;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
export interface IStarProjectStarParams {
|
|
3
|
+
projectId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IUnStarProjectStarParams {
|
|
6
|
+
projectId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IPaginateProjectStarParams {
|
|
9
|
+
projectId: string;
|
|
10
|
+
}
|
|
11
|
+
export type IPaginateProjectStarQuery = QueryPaginate;
|
|
12
|
+
export type IPaginateUserProjectStarQuery = QueryPaginate;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ProjectCategory, ProjectLanguage, ProjectStatus } from '../../../enum';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
export interface IUpdateProjectAdminParams {
|
|
4
|
+
projectId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IUpdateProjectAdminBody {
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
category?: ProjectCategory;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
status?: ProjectStatus;
|
|
12
|
+
mainLanguage?: ProjectLanguage;
|
|
13
|
+
otherLanguage?: ProjectLanguage[];
|
|
14
|
+
isPublished?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ILinkToAbyssProjectAdminParams {
|
|
17
|
+
projectId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ILinkToAbyssProjectAdminBody {
|
|
20
|
+
abyssProjectId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ILinkToAbyssApplicationProjectAdminParams {
|
|
23
|
+
projectId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ILinkToAbyssApplicationProjectAdminBody {
|
|
26
|
+
abyssProjectApplicationId: string | null;
|
|
27
|
+
}
|
|
28
|
+
export interface ICreateProjectAdminParams {
|
|
29
|
+
userId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ICreateProjectAdminBody {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
category: ProjectCategory;
|
|
35
|
+
tags: string[];
|
|
36
|
+
abyssProjectId: string | null;
|
|
37
|
+
abyssProjectApplicationId: string | null;
|
|
38
|
+
status: ProjectStatus;
|
|
39
|
+
mainLanguage: ProjectLanguage;
|
|
40
|
+
otherLanguage: ProjectLanguage[];
|
|
41
|
+
}
|
|
42
|
+
export interface IGetProjectAdminParams {
|
|
43
|
+
projectId: string;
|
|
44
|
+
}
|
|
45
|
+
export interface IGetBySlugProjectAdminParams {
|
|
46
|
+
slug: string;
|
|
47
|
+
}
|
|
48
|
+
export interface IDeleteProjectAdminParams {
|
|
49
|
+
projectId: string;
|
|
50
|
+
}
|
|
51
|
+
export type IPaginateProjectAdminQuery = {
|
|
52
|
+
title?: string;
|
|
53
|
+
tags?: string[];
|
|
54
|
+
category?: ProjectCategory[];
|
|
55
|
+
userId?: string;
|
|
56
|
+
status?: ProjectStatus[];
|
|
57
|
+
mainLanguage?: ProjectLanguage[];
|
|
58
|
+
otherLanguage?: ProjectLanguage[];
|
|
59
|
+
userIdHasPermission?: string;
|
|
60
|
+
} & QueryPaginate;
|
|
61
|
+
export interface IListByAbyssProjectIdProjectAdminParams {
|
|
62
|
+
abyssProjectId: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ITransferProjectAdminParams {
|
|
65
|
+
projectId: string;
|
|
66
|
+
}
|
|
67
|
+
export interface ITransferProjectAdminBody {
|
|
68
|
+
userId: string;
|
|
69
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ProjectCategory, ProjectLanguage, ProjectStatus } from '../../../enum';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
export interface IGetPublishedProjectPublicParams {
|
|
4
|
+
projectId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IGetPublishedBySlugProjectPublicParams {
|
|
7
|
+
slug: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IPaginatePostProjectPublicParams {
|
|
10
|
+
projectId: string;
|
|
11
|
+
}
|
|
12
|
+
export type IPaginatePostProjectPublicQuery = QueryPaginate;
|
|
13
|
+
export type IPaginatePublishedProjectPublicQuery = {
|
|
14
|
+
title?: string;
|
|
15
|
+
tags?: string[];
|
|
16
|
+
category?: ProjectCategory[];
|
|
17
|
+
userId?: string;
|
|
18
|
+
status?: ProjectStatus[];
|
|
19
|
+
mainLanguage?: ProjectLanguage[];
|
|
20
|
+
otherLanguage?: ProjectLanguage[];
|
|
21
|
+
} & QueryPaginate;
|
|
22
|
+
export interface IGeneratePresentationProjectPublicBody {
|
|
23
|
+
title: string;
|
|
24
|
+
description: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IGeneratePostProjectPublicBody {
|
|
27
|
+
title: string;
|
|
28
|
+
description: string;
|
|
29
|
+
subject: string;
|
|
30
|
+
socialNetworks?: {
|
|
31
|
+
socialNetwork: string;
|
|
32
|
+
url: string;
|
|
33
|
+
}[];
|
|
34
|
+
}
|
|
35
|
+
export interface IPaginatePublishedProjectEventPublicParams {
|
|
36
|
+
projectId: string;
|
|
37
|
+
}
|
|
38
|
+
export type IPaginatePublishedProjectEventPublicQuery = QueryPaginate;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ProjectCategory, ProjectLanguage, ProjectStatus } from '../../../enum';
|
|
2
|
+
import { QueryPaginate } from '..';
|
|
3
|
+
export interface IUpdateProjectParams {
|
|
4
|
+
projectId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IUpdateProjectBody {
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
category?: ProjectCategory;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
status?: ProjectStatus;
|
|
12
|
+
mainLanguage?: ProjectLanguage;
|
|
13
|
+
otherLanguage?: ProjectLanguage[];
|
|
14
|
+
isPublished?: boolean;
|
|
15
|
+
contactUrl?: string | null;
|
|
16
|
+
joinUrl?: string | null;
|
|
17
|
+
accessUrl?: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface ILinkToAbyssProjectParams {
|
|
20
|
+
projectId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ILinkToAbyssProjectBody {
|
|
23
|
+
abyssProjectId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ILinkToAbyssApplicationProjectParams {
|
|
26
|
+
projectId: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ILinkToAbyssApplicationProjectBody {
|
|
29
|
+
abyssProjectApplicationId: string | null;
|
|
30
|
+
}
|
|
31
|
+
export interface ICreateProjectBody {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
category: ProjectCategory;
|
|
35
|
+
tags: string[];
|
|
36
|
+
abyssProjectId: string | null;
|
|
37
|
+
abyssProjectApplicationId: string | null;
|
|
38
|
+
status: ProjectStatus;
|
|
39
|
+
mainLanguage: ProjectLanguage;
|
|
40
|
+
otherLanguage: ProjectLanguage[];
|
|
41
|
+
contactUrl?: string | null;
|
|
42
|
+
joinUrl?: string | null;
|
|
43
|
+
accessUrl?: string | null;
|
|
44
|
+
}
|
|
45
|
+
export interface IGetProjectParams {
|
|
46
|
+
projectId: string;
|
|
47
|
+
}
|
|
48
|
+
export type IListByAbyssProjectIdProjectParams = {
|
|
49
|
+
abyssProjectId: string;
|
|
50
|
+
};
|
|
51
|
+
export interface IGetBySlugProjectParams {
|
|
52
|
+
slug: string;
|
|
53
|
+
}
|
|
54
|
+
export interface IDeleteProjectParams {
|
|
55
|
+
projectId: string;
|
|
56
|
+
}
|
|
57
|
+
export type IPaginateProjectQuery = {
|
|
58
|
+
title?: string;
|
|
59
|
+
tags?: string[];
|
|
60
|
+
category?: ProjectCategory[];
|
|
61
|
+
status?: ProjectStatus[];
|
|
62
|
+
mainLanguage?: ProjectLanguage[];
|
|
63
|
+
otherLanguage?: ProjectLanguage[];
|
|
64
|
+
} & QueryPaginate;
|
|
65
|
+
export interface ITransferProjectParams {
|
|
66
|
+
projectId: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ITransferProjectBody {
|
|
69
|
+
userId: string;
|
|
70
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
export interface IGetUserAdminParams {
|
|
3
|
+
userId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IResetApiKeyUserAdminParams {
|
|
6
|
+
userId: string;
|
|
7
|
+
}
|
|
8
|
+
export type IPaginateUserAdminQuery = QueryPaginate;
|
|
9
|
+
export interface IUpdateUserAdminParams {
|
|
10
|
+
userId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IUpdateUserAdminBody {
|
|
13
|
+
isAdmin?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
import { WorkoutSessionStatus } from '../../../enum/workout-session-status.enum';
|
|
3
|
+
export interface ICreateWorkoutSessionBody {
|
|
4
|
+
workoutTemplateId?: string | null;
|
|
5
|
+
name: string;
|
|
6
|
+
status?: WorkoutSessionStatus;
|
|
7
|
+
scheduledAt?: Date | null;
|
|
8
|
+
notes?: string | null;
|
|
9
|
+
exerciseSets?: ICreateWorkoutSessionExerciseSetBody[];
|
|
10
|
+
}
|
|
11
|
+
export interface ICreateWorkoutSessionExerciseSetBody {
|
|
12
|
+
exerciseId: string;
|
|
13
|
+
setNumber: number;
|
|
14
|
+
reps?: number | null;
|
|
15
|
+
weight?: number | null;
|
|
16
|
+
duration?: number | null;
|
|
17
|
+
distance?: number | null;
|
|
18
|
+
restTime?: number | null;
|
|
19
|
+
rpe?: number | null;
|
|
20
|
+
feeling?: string | null;
|
|
21
|
+
isSkipped?: boolean;
|
|
22
|
+
skipReason?: string | null;
|
|
23
|
+
isWarmup?: boolean;
|
|
24
|
+
isDropSet?: boolean;
|
|
25
|
+
isFailure?: boolean;
|
|
26
|
+
completedAt?: Date | null;
|
|
27
|
+
notes?: string | null;
|
|
28
|
+
}
|
|
29
|
+
export interface IGetWorkoutSessionParams {
|
|
30
|
+
workoutSessionId: string;
|
|
31
|
+
}
|
|
32
|
+
export type IPaginateWorkoutSessionQuery = QueryPaginate & {
|
|
33
|
+
workoutTemplateId?: string;
|
|
34
|
+
status?: WorkoutSessionStatus;
|
|
35
|
+
startDate?: Date;
|
|
36
|
+
endDate?: Date;
|
|
37
|
+
};
|
|
38
|
+
export interface IGetUserWorkoutSessionParams {
|
|
39
|
+
userId: string;
|
|
40
|
+
}
|
|
41
|
+
export type IGetUserWorkoutSessionQuery = QueryPaginate & {
|
|
42
|
+
workoutTemplateId?: string;
|
|
43
|
+
status?: WorkoutSessionStatus;
|
|
44
|
+
startDate?: Date;
|
|
45
|
+
endDate?: Date;
|
|
46
|
+
};
|
|
47
|
+
export interface IUpdateWorkoutSessionParams {
|
|
48
|
+
workoutSessionId: string;
|
|
49
|
+
}
|
|
50
|
+
export interface IUpdateWorkoutSessionBody {
|
|
51
|
+
workoutTemplateId?: string | null;
|
|
52
|
+
name?: string;
|
|
53
|
+
status?: WorkoutSessionStatus;
|
|
54
|
+
scheduledAt?: Date | null;
|
|
55
|
+
startedAt?: Date | null;
|
|
56
|
+
completedAt?: Date | null;
|
|
57
|
+
duration?: number | null;
|
|
58
|
+
notes?: string | null;
|
|
59
|
+
exerciseSets?: ICreateWorkoutSessionExerciseSetBody[];
|
|
60
|
+
}
|
|
61
|
+
export interface IDeleteWorkoutSessionParams {
|
|
62
|
+
workoutSessionId: string;
|
|
63
|
+
}
|
|
64
|
+
export interface IStartWorkoutSessionParams {
|
|
65
|
+
workoutSessionId: string;
|
|
66
|
+
}
|
|
67
|
+
export interface ICompleteWorkoutSessionParams {
|
|
68
|
+
workoutSessionId: string;
|
|
69
|
+
}
|
|
70
|
+
export interface ICompleteWorkoutSessionBody {
|
|
71
|
+
duration?: number | null;
|
|
72
|
+
notes?: string | null;
|
|
73
|
+
rating?: number | null;
|
|
74
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
import { MuscleGroup } from '../../../enum/muscle-group.enum';
|
|
3
|
+
import { ExerciseType } from '../../../enum/exercise-type.enum';
|
|
4
|
+
import { EquipmentType } from '../../../enum/equipment-type.enum';
|
|
5
|
+
export interface IGetWorkoutTemplatePublicParams {
|
|
6
|
+
workoutTemplateId: string;
|
|
7
|
+
}
|
|
8
|
+
export type IPaginateWorkoutTemplatePublicQuery = QueryPaginate & {
|
|
9
|
+
name?: string;
|
|
10
|
+
durationMin?: number;
|
|
11
|
+
durationMax?: number;
|
|
12
|
+
muscleGroups?: MuscleGroup[];
|
|
13
|
+
exerciseTypes?: ExerciseType[];
|
|
14
|
+
equipmentTypes?: EquipmentType[];
|
|
15
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { QueryPaginate } from '..';
|
|
2
|
+
import { ExerciseGroupType } from '../../../enum/exercise-group-type.enum';
|
|
3
|
+
import { MuscleGroup } from '../../../enum/muscle-group.enum';
|
|
4
|
+
import { ExerciseType } from '../../../enum/exercise-type.enum';
|
|
5
|
+
import { EquipmentType } from '../../../enum/equipment-type.enum';
|
|
6
|
+
export interface ICreateWorkoutTemplateBody {
|
|
7
|
+
name: string;
|
|
8
|
+
description?: string | null;
|
|
9
|
+
isPublic: boolean;
|
|
10
|
+
duration?: number | null;
|
|
11
|
+
exercises: ICreateWorkoutTemplateExerciseBody[];
|
|
12
|
+
}
|
|
13
|
+
export interface ICreateWorkoutTemplateExerciseBody {
|
|
14
|
+
exerciseId: string;
|
|
15
|
+
order: number;
|
|
16
|
+
groupType?: ExerciseGroupType;
|
|
17
|
+
groupId?: string | null;
|
|
18
|
+
groupOrder?: number | null;
|
|
19
|
+
plannedSets?: number | null;
|
|
20
|
+
plannedReps?: number | null;
|
|
21
|
+
plannedWeight?: number | null;
|
|
22
|
+
plannedRestTime?: number | null;
|
|
23
|
+
notes?: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface IGetWorkoutTemplateParams {
|
|
26
|
+
workoutTemplateId: string;
|
|
27
|
+
}
|
|
28
|
+
export type IPaginateWorkoutTemplateQuery = QueryPaginate & {
|
|
29
|
+
name?: string;
|
|
30
|
+
userId?: string;
|
|
31
|
+
isPublic?: boolean;
|
|
32
|
+
durationMin?: number;
|
|
33
|
+
durationMax?: number;
|
|
34
|
+
muscleGroups?: MuscleGroup[];
|
|
35
|
+
exerciseTypes?: ExerciseType[];
|
|
36
|
+
equipmentTypes?: EquipmentType[];
|
|
37
|
+
};
|
|
38
|
+
export interface IGetUserWorkoutTemplateParams {
|
|
39
|
+
userId: string;
|
|
40
|
+
}
|
|
41
|
+
export type IGetUserWorkoutTemplateQuery = QueryPaginate & {
|
|
42
|
+
name?: string;
|
|
43
|
+
isPublic?: boolean;
|
|
44
|
+
durationMin?: number;
|
|
45
|
+
durationMax?: number;
|
|
46
|
+
muscleGroups?: MuscleGroup[];
|
|
47
|
+
exerciseTypes?: ExerciseType[];
|
|
48
|
+
equipmentTypes?: EquipmentType[];
|
|
49
|
+
};
|
|
50
|
+
export interface IUpdateWorkoutTemplateParams {
|
|
51
|
+
workoutTemplateId: string;
|
|
52
|
+
}
|
|
53
|
+
export interface IUpdateWorkoutTemplateBody {
|
|
54
|
+
name?: string;
|
|
55
|
+
description?: string | null;
|
|
56
|
+
isPublic?: boolean;
|
|
57
|
+
duration?: number | null;
|
|
58
|
+
exercises?: ICreateWorkoutTemplateExerciseBody[];
|
|
59
|
+
}
|
|
60
|
+
export interface IDeleteWorkoutTemplateParams {
|
|
61
|
+
workoutTemplateId: string;
|
|
62
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IUser } from '../../models/user.model';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface IActivateUserServiceAbyssAdminData {
|
|
4
|
+
user: IUser;
|
|
5
|
+
}
|
|
6
|
+
export type IActivateUserServiceAbyssAdminResponse = IResponse<IActivateUserServiceAbyssAdminData>;
|