@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.
Files changed (242) hide show
  1. package/.eslintrc.js +34 -0
  2. package/README.md +2 -0
  3. package/dist/api/abyss.admin.api.d.ts +2 -0
  4. package/dist/api/abyss.admin.api.js +8 -0
  5. package/dist/api/analytics.api.d.ts +11 -0
  6. package/dist/api/analytics.api.js +18 -0
  7. package/dist/api/index.d.ts +7 -0
  8. package/dist/api/index.js +23 -0
  9. package/dist/api/monitor.api.d.ts +2 -0
  10. package/dist/api/monitor.api.js +8 -0
  11. package/dist/api/project-analytics.api.d.ts +7 -0
  12. package/dist/api/project-analytics.api.js +16 -0
  13. package/dist/api/project-document.admin.api.d.ts +6 -0
  14. package/dist/api/project-document.admin.api.js +24 -0
  15. package/dist/api/project-document.api.d.ts +9 -0
  16. package/dist/api/project-document.api.js +38 -0
  17. package/dist/api/project-event.api.d.ts +7 -0
  18. package/dist/api/project-event.api.js +28 -0
  19. package/dist/api/project-follower.admin.api.d.ts +4 -0
  20. package/dist/api/project-follower.admin.api.js +18 -0
  21. package/dist/api/project-follower.api.d.ts +5 -0
  22. package/dist/api/project-follower.api.js +20 -0
  23. package/dist/api/project-post.admin.api.d.ts +6 -0
  24. package/dist/api/project-post.admin.api.js +24 -0
  25. package/dist/api/project-post.api.d.ts +6 -0
  26. package/dist/api/project-post.api.js +24 -0
  27. package/dist/api/project-presentation.admin.api.d.ts +4 -0
  28. package/dist/api/project-presentation.admin.api.js +16 -0
  29. package/dist/api/project-presentation.api.d.ts +4 -0
  30. package/dist/api/project-presentation.api.js +16 -0
  31. package/dist/api/project-social-network.admin.api.d.ts +7 -0
  32. package/dist/api/project-social-network.admin.api.js +28 -0
  33. package/dist/api/project-social-network.api.d.ts +6 -0
  34. package/dist/api/project-social-network.api.js +24 -0
  35. package/dist/api/project-star.admin.api.d.ts +4 -0
  36. package/dist/api/project-star.admin.api.js +18 -0
  37. package/dist/api/project-star.api.d.ts +5 -0
  38. package/dist/api/project-star.api.js +20 -0
  39. package/dist/api/project.admin.api.d.ts +11 -0
  40. package/dist/api/project.admin.api.js +46 -0
  41. package/dist/api/project.api.d.ts +13 -0
  42. package/dist/api/project.api.js +56 -0
  43. package/dist/api/project.public.api.d.ts +8 -0
  44. package/dist/api/project.public.api.js +32 -0
  45. package/dist/api/user.admin.api.d.ts +5 -0
  46. package/dist/api/user.admin.api.js +23 -0
  47. package/dist/api/user.api.d.ts +4 -0
  48. package/dist/api/user.api.js +17 -0
  49. package/dist/api/workout-session.api.d.ts +9 -0
  50. package/dist/api/workout-session.api.js +38 -0
  51. package/dist/api/workout-template.api.d.ts +7 -0
  52. package/dist/api/workout-template.api.js +28 -0
  53. package/dist/api/workout-template.public.api.d.ts +3 -0
  54. package/dist/api/workout-template.public.api.js +12 -0
  55. package/dist/constants/index.d.ts +1 -0
  56. package/dist/constants/index.js +17 -0
  57. package/dist/constants/project.constant.d.ts +4 -0
  58. package/dist/constants/project.constant.js +7 -0
  59. package/dist/constants/training.constant.d.ts +2 -0
  60. package/dist/constants/training.constant.js +5 -0
  61. package/dist/index.d.ts +22 -0
  62. package/dist/index.js +99 -0
  63. package/dist/types/enum/api-error.enum.d.ts +21 -0
  64. package/dist/types/enum/api-error.enum.js +26 -0
  65. package/dist/types/enum/equipment-type.enum.d.ts +11 -0
  66. package/dist/types/enum/equipment-type.enum.js +15 -0
  67. package/dist/types/enum/exercise-group-type.enum.d.ts +9 -0
  68. package/dist/types/enum/exercise-group-type.enum.js +13 -0
  69. package/dist/types/enum/exercise-type.enum.d.ts +8 -0
  70. package/dist/types/enum/exercise-type.enum.js +12 -0
  71. package/dist/types/enum/index.d.ts +6 -0
  72. package/dist/types/enum/index.js +22 -0
  73. package/dist/types/enum/muscle-group.enum.d.ts +16 -0
  74. package/dist/types/enum/muscle-group.enum.js +20 -0
  75. package/dist/types/enum/project-category.enum.d.ts +63 -0
  76. package/dist/types/enum/project-category.enum.js +67 -0
  77. package/dist/types/enum/project-document-type.enum.d.ts +6 -0
  78. package/dist/types/enum/project-document-type.enum.js +10 -0
  79. package/dist/types/enum/project-language.enum.d.ts +40 -0
  80. package/dist/types/enum/project-language.enum.js +44 -0
  81. package/dist/types/enum/project-presentation-type.enum.d.ts +3 -0
  82. package/dist/types/enum/project-presentation-type.enum.js +7 -0
  83. package/dist/types/enum/project-status.enum.d.ts +5 -0
  84. package/dist/types/enum/project-status.enum.js +9 -0
  85. package/dist/types/enum/workout-session-status.enum.d.ts +7 -0
  86. package/dist/types/enum/workout-session-status.enum.js +11 -0
  87. package/dist/types/index.d.ts +2 -0
  88. package/dist/types/index.js +18 -0
  89. package/dist/types/interface/api/index.d.ts +19 -0
  90. package/dist/types/interface/api/index.js +35 -0
  91. package/dist/types/interface/api/requests/abyss.admin.request.d.ts +3 -0
  92. package/dist/types/interface/api/requests/abyss.admin.request.js +2 -0
  93. package/dist/types/interface/api/requests/project-analytics.request.d.ts +19 -0
  94. package/dist/types/interface/api/requests/project-analytics.request.js +2 -0
  95. package/dist/types/interface/api/requests/project-document.admin.request.d.ts +18 -0
  96. package/dist/types/interface/api/requests/project-document.admin.request.js +2 -0
  97. package/dist/types/interface/api/requests/project-document.request.d.ts +52 -0
  98. package/dist/types/interface/api/requests/project-document.request.js +2 -0
  99. package/dist/types/interface/api/requests/project-event.request.d.ts +30 -0
  100. package/dist/types/interface/api/requests/project-event.request.js +2 -0
  101. package/dist/types/interface/api/requests/project-follower.admin.request.d.ts +13 -0
  102. package/dist/types/interface/api/requests/project-follower.admin.request.js +2 -0
  103. package/dist/types/interface/api/requests/project-follower.request.d.ts +12 -0
  104. package/dist/types/interface/api/requests/project-follower.request.js +2 -0
  105. package/dist/types/interface/api/requests/project-post-analytics.request.d.ts +4 -0
  106. package/dist/types/interface/api/requests/project-post-analytics.request.js +2 -0
  107. package/dist/types/interface/api/requests/project-post.admin.request.d.ts +24 -0
  108. package/dist/types/interface/api/requests/project-post.admin.request.js +2 -0
  109. package/dist/types/interface/api/requests/project-post.request.d.ts +28 -0
  110. package/dist/types/interface/api/requests/project-post.request.js +2 -0
  111. package/dist/types/interface/api/requests/project-presentation.admin.request.d.ts +12 -0
  112. package/dist/types/interface/api/requests/project-presentation.admin.request.js +2 -0
  113. package/dist/types/interface/api/requests/project-presentation.request.d.ts +13 -0
  114. package/dist/types/interface/api/requests/project-presentation.request.js +2 -0
  115. package/dist/types/interface/api/requests/project-social-network.admin.request.d.ts +30 -0
  116. package/dist/types/interface/api/requests/project-social-network.admin.request.js +2 -0
  117. package/dist/types/interface/api/requests/project-social-network.request.d.ts +28 -0
  118. package/dist/types/interface/api/requests/project-social-network.request.js +2 -0
  119. package/dist/types/interface/api/requests/project-star.admin.request.d.ts +13 -0
  120. package/dist/types/interface/api/requests/project-star.admin.request.js +2 -0
  121. package/dist/types/interface/api/requests/project-star.request.d.ts +12 -0
  122. package/dist/types/interface/api/requests/project-star.request.js +2 -0
  123. package/dist/types/interface/api/requests/project.admin.request.d.ts +69 -0
  124. package/dist/types/interface/api/requests/project.admin.request.js +2 -0
  125. package/dist/types/interface/api/requests/project.public.request.d.ts +38 -0
  126. package/dist/types/interface/api/requests/project.public.request.js +2 -0
  127. package/dist/types/interface/api/requests/project.request.d.ts +70 -0
  128. package/dist/types/interface/api/requests/project.request.js +2 -0
  129. package/dist/types/interface/api/requests/storage.admin.request.d.ts +3 -0
  130. package/dist/types/interface/api/requests/storage.admin.request.js +2 -0
  131. package/dist/types/interface/api/requests/user.admin.request.d.ts +14 -0
  132. package/dist/types/interface/api/requests/user.admin.request.js +2 -0
  133. package/dist/types/interface/api/requests/user.request.d.ts +2 -0
  134. package/dist/types/interface/api/requests/user.request.js +2 -0
  135. package/dist/types/interface/api/requests/workout-session.request.d.ts +74 -0
  136. package/dist/types/interface/api/requests/workout-session.request.js +2 -0
  137. package/dist/types/interface/api/requests/workout-template.public.request.d.ts +15 -0
  138. package/dist/types/interface/api/requests/workout-template.public.request.js +2 -0
  139. package/dist/types/interface/api/requests/workout-template.request.d.ts +62 -0
  140. package/dist/types/interface/api/requests/workout-template.request.js +2 -0
  141. package/dist/types/interface/api/responses/abyss.admin.response.d.ts +6 -0
  142. package/dist/types/interface/api/responses/abyss.admin.response.js +2 -0
  143. package/dist/types/interface/api/responses/monitor.response.d.ts +7 -0
  144. package/dist/types/interface/api/responses/monitor.response.js +2 -0
  145. package/dist/types/interface/api/responses/project-analytics.response.d.ts +77 -0
  146. package/dist/types/interface/api/responses/project-analytics.response.js +2 -0
  147. package/dist/types/interface/api/responses/project-document.admin.response.d.ts +17 -0
  148. package/dist/types/interface/api/responses/project-document.admin.response.js +2 -0
  149. package/dist/types/interface/api/responses/project-document.response.d.ts +25 -0
  150. package/dist/types/interface/api/responses/project-document.response.js +2 -0
  151. package/dist/types/interface/api/responses/project-event.response.d.ts +17 -0
  152. package/dist/types/interface/api/responses/project-event.response.js +2 -0
  153. package/dist/types/interface/api/responses/project-follower.admin.response.d.ts +9 -0
  154. package/dist/types/interface/api/responses/project-follower.admin.response.js +2 -0
  155. package/dist/types/interface/api/responses/project-follower.response.d.ts +10 -0
  156. package/dist/types/interface/api/responses/project-follower.response.js +2 -0
  157. package/dist/types/interface/api/responses/project-post-analytics.response.d.ts +34 -0
  158. package/dist/types/interface/api/responses/project-post-analytics.response.js +2 -0
  159. package/dist/types/interface/api/responses/project-post.admin.response.d.ts +17 -0
  160. package/dist/types/interface/api/responses/project-post.admin.response.js +2 -0
  161. package/dist/types/interface/api/responses/project-post.response.d.ts +17 -0
  162. package/dist/types/interface/api/responses/project-post.response.js +2 -0
  163. package/dist/types/interface/api/responses/project-presentation.admin.response.d.ts +12 -0
  164. package/dist/types/interface/api/responses/project-presentation.admin.response.js +2 -0
  165. package/dist/types/interface/api/responses/project-presentation.response.d.ts +12 -0
  166. package/dist/types/interface/api/responses/project-presentation.response.js +2 -0
  167. package/dist/types/interface/api/responses/project-social-network.admin.response.d.ts +21 -0
  168. package/dist/types/interface/api/responses/project-social-network.admin.response.js +2 -0
  169. package/dist/types/interface/api/responses/project-social-network.response.d.ts +20 -0
  170. package/dist/types/interface/api/responses/project-social-network.response.js +2 -0
  171. package/dist/types/interface/api/responses/project-star.admin.response.d.ts +9 -0
  172. package/dist/types/interface/api/responses/project-star.admin.response.js +2 -0
  173. package/dist/types/interface/api/responses/project-star.response.d.ts +10 -0
  174. package/dist/types/interface/api/responses/project-star.response.js +2 -0
  175. package/dist/types/interface/api/responses/project.admin.response.d.ts +39 -0
  176. package/dist/types/interface/api/responses/project.admin.response.js +2 -0
  177. package/dist/types/interface/api/responses/project.public.response.d.ts +46 -0
  178. package/dist/types/interface/api/responses/project.public.response.js +2 -0
  179. package/dist/types/interface/api/responses/project.response.d.ts +76 -0
  180. package/dist/types/interface/api/responses/project.response.js +2 -0
  181. package/dist/types/interface/api/responses/storage.admin.response.d.ts +3 -0
  182. package/dist/types/interface/api/responses/storage.admin.response.js +2 -0
  183. package/dist/types/interface/api/responses/user.admin.response.d.ts +14 -0
  184. package/dist/types/interface/api/responses/user.admin.response.js +2 -0
  185. package/dist/types/interface/api/responses/user.response.d.ts +13 -0
  186. package/dist/types/interface/api/responses/user.response.js +2 -0
  187. package/dist/types/interface/api/responses/workout-session.response.d.ts +26 -0
  188. package/dist/types/interface/api/responses/workout-session.response.js +2 -0
  189. package/dist/types/interface/api/responses/workout-template.public.response.d.ts +7 -0
  190. package/dist/types/interface/api/responses/workout-template.public.response.js +2 -0
  191. package/dist/types/interface/api/responses/workout-template.response.d.ts +18 -0
  192. package/dist/types/interface/api/responses/workout-template.response.js +2 -0
  193. package/dist/types/interface/api/type-message/api-error.d.ts +8 -0
  194. package/dist/types/interface/api/type-message/api-error.js +2 -0
  195. package/dist/types/interface/api/type-message/base-order.d.ts +4 -0
  196. package/dist/types/interface/api/type-message/base-order.js +2 -0
  197. package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -0
  198. package/dist/types/interface/api/type-message/base-paginate.js +2 -0
  199. package/dist/types/interface/api/type-message/response.d.ts +5 -0
  200. package/dist/types/interface/api/type-message/response.js +2 -0
  201. package/dist/types/interface/index.d.ts +7 -0
  202. package/dist/types/interface/index.js +23 -0
  203. package/dist/types/interface/models/exercise-set.model.d.ts +26 -0
  204. package/dist/types/interface/models/exercise-set.model.js +2 -0
  205. package/dist/types/interface/models/exercise.model.d.ts +23 -0
  206. package/dist/types/interface/models/exercise.model.js +2 -0
  207. package/dist/types/interface/models/project-analytics.model.d.ts +28 -0
  208. package/dist/types/interface/models/project-analytics.model.js +15 -0
  209. package/dist/types/interface/models/project-document.model.d.ts +19 -0
  210. package/dist/types/interface/models/project-document.model.js +2 -0
  211. package/dist/types/interface/models/project-event.model.d.ts +11 -0
  212. package/dist/types/interface/models/project-event.model.js +2 -0
  213. package/dist/types/interface/models/project-follower.model.d.ts +11 -0
  214. package/dist/types/interface/models/project-follower.model.js +2 -0
  215. package/dist/types/interface/models/project-post.model.d.ts +10 -0
  216. package/dist/types/interface/models/project-post.model.js +2 -0
  217. package/dist/types/interface/models/project-presentation.model.d.ts +12 -0
  218. package/dist/types/interface/models/project-presentation.model.js +2 -0
  219. package/dist/types/interface/models/project-social-network.model.d.ts +11 -0
  220. package/dist/types/interface/models/project-social-network.model.js +2 -0
  221. package/dist/types/interface/models/project-star.model.d.ts +11 -0
  222. package/dist/types/interface/models/project-star.model.js +2 -0
  223. package/dist/types/interface/models/project-view.model.d.ts +13 -0
  224. package/dist/types/interface/models/project-view.model.js +2 -0
  225. package/dist/types/interface/models/project.model.d.ts +37 -0
  226. package/dist/types/interface/models/project.model.js +2 -0
  227. package/dist/types/interface/models/user.model.d.ts +7 -0
  228. package/dist/types/interface/models/user.model.js +2 -0
  229. package/dist/types/interface/models/workout-exercise.model.d.ts +21 -0
  230. package/dist/types/interface/models/workout-exercise.model.js +2 -0
  231. package/dist/types/interface/models/workout-session.model.d.ts +21 -0
  232. package/dist/types/interface/models/workout-session.model.js +2 -0
  233. package/dist/types/interface/models/workout-template.model.d.ts +16 -0
  234. package/dist/types/interface/models/workout-template.model.js +2 -0
  235. package/dist/utils/css-sanitizer.utils.d.ts +2 -0
  236. package/dist/utils/css-sanitizer.utils.js +33 -0
  237. package/dist/utils/error.utils.d.ts +15 -0
  238. package/dist/utils/error.utils.js +24 -0
  239. package/dist/utils/index.d.ts +1 -0
  240. package/dist/utils/index.js +17 -0
  241. package/package.json +51 -0
  242. package/tsconfig.json +105 -0
@@ -0,0 +1,77 @@
1
+ import { IResponse } from '../..';
2
+ export interface ITrackProjectAnalyticsData {
3
+ }
4
+ export type ITrackProjectAnalyticsResponse = IResponse<ITrackProjectAnalyticsData>;
5
+ export interface IProjectPostAnalytics {
6
+ period: {
7
+ startDate: string;
8
+ endDate: string;
9
+ };
10
+ totals: {
11
+ views: number;
12
+ uniqueViews: number;
13
+ prints: number;
14
+ };
15
+ trends: {
16
+ last7Days: {
17
+ views: number;
18
+ uniqueViews: number;
19
+ prints: number;
20
+ };
21
+ last30Days: {
22
+ views: number;
23
+ uniqueViews: number;
24
+ prints: number;
25
+ };
26
+ };
27
+ timeSeries: Array<{
28
+ date: string;
29
+ views: number;
30
+ uniqueViews: number;
31
+ prints: number;
32
+ }>;
33
+ }
34
+ export interface IGetProjectPostAnalyticsData {
35
+ analytics: IProjectPostAnalytics;
36
+ }
37
+ export type IGetProjectPostAnalyticsResponse = IResponse<IGetProjectPostAnalyticsData>;
38
+ export interface IProjectAnalyticsStats {
39
+ period: {
40
+ startDate: string;
41
+ endDate: string;
42
+ };
43
+ metrics: {
44
+ contactClicks: number;
45
+ joinClicks: number;
46
+ accessClicks: number;
47
+ postViews: number;
48
+ starsAdded: number;
49
+ starsRemoved: number;
50
+ followersAdded: number;
51
+ followersRemoved: number;
52
+ view: number;
53
+ uniqView: number;
54
+ prints: number;
55
+ };
56
+ timeSeries: Array<{
57
+ date: string;
58
+ contactClicks: number;
59
+ joinClicks: number;
60
+ accessClicks: number;
61
+ postViews: number;
62
+ view: number;
63
+ uniqView: number;
64
+ prints: number;
65
+ starsAdded: number;
66
+ starsRemoved: number;
67
+ followersAdded: number;
68
+ followersRemoved: number;
69
+ stars: number;
70
+ followers: number;
71
+ posts: number;
72
+ }>;
73
+ }
74
+ export interface IGetProjectAnalyticsData {
75
+ current: IProjectAnalyticsStats;
76
+ }
77
+ export type IGetProjectAnalyticsResponse = IResponse<IGetProjectAnalyticsData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { IResponse, BasePaginate, IProjectDocument } from '../..';
2
+ export interface IGetProjectDocumentAdminData {
3
+ projectDocument: IProjectDocument;
4
+ }
5
+ export type IGetProjectDocumentAdminResponse = IResponse<IGetProjectDocumentAdminData>;
6
+ export type IPaginateProjectDocumentAdminResponse = IResponse<BasePaginate<IProjectDocument>>;
7
+ export interface IEnableProjectDocumentAdminData {
8
+ projectDocument: IProjectDocument;
9
+ }
10
+ export type IEnableProjectDocumentAdminResponse = IResponse<IEnableProjectDocumentAdminData>;
11
+ export interface IDisableProjectDocumentAdminData {
12
+ projectDocument: IProjectDocument;
13
+ }
14
+ export type IDisableProjectDocumentAdminResponse = IResponse<IDisableProjectDocumentAdminData>;
15
+ export interface IDeleteProjectDocumentAdminData {
16
+ }
17
+ export type IDeleteProjectDocumentAdminResponse = IResponse<IDeleteProjectDocumentAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ import { IResponse, BasePaginate, IProjectDocument } from '../..';
2
+ export interface IGetProjectDocumentData {
3
+ projectDocument: IProjectDocument;
4
+ }
5
+ export type IGetProjectDocumentResponse = IResponse<IGetProjectDocumentData>;
6
+ export type IPaginateProjectDocumentResponse = IResponse<BasePaginate<IProjectDocument>>;
7
+ export interface IGetUploadPreSignedUrlProjectDocumentData {
8
+ preSignedUrl: string;
9
+ }
10
+ export type IGetUploadPreSignedUrlProjectDocumentResponse = IResponse<IGetUploadPreSignedUrlProjectDocumentData>;
11
+ export type IImportFromCloudProjectDocumentData = Record<string, never>;
12
+ export type IImportFromCloudProjectDocumentResponse = IResponse<IImportFromCloudProjectDocumentData>;
13
+ export type IImportFromCollectionProjectDocumentData = Record<string, never>;
14
+ export type IImportFromCollectionProjectDocumentResponse = IResponse<IImportFromCollectionProjectDocumentData>;
15
+ export interface IEnableProjectDocumentData {
16
+ projectDocument: IProjectDocument;
17
+ }
18
+ export type IEnableProjectDocumentResponse = IResponse<IEnableProjectDocumentData>;
19
+ export interface IDisableProjectDocumentData {
20
+ projectDocument: IProjectDocument;
21
+ }
22
+ export type IDisableProjectDocumentResponse = IResponse<IDisableProjectDocumentData>;
23
+ export interface IDeleteProjectDocumentData {
24
+ }
25
+ export type IDeleteProjectDocumentResponse = IResponse<IDeleteProjectDocumentData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { IResponse, IProjectEvent, BasePaginate } from '../..';
2
+ export interface IGetProjectEventData {
3
+ projectEvent: IProjectEvent;
4
+ }
5
+ export type IGetProjectEventResponse = IResponse<IGetProjectEventData>;
6
+ export type IPaginateProjectEventResponse = IResponse<BasePaginate<IProjectEvent>>;
7
+ export interface IUpdateProjectEventData {
8
+ projectEvent: IProjectEvent;
9
+ }
10
+ export type IUpdateProjectEventResponse = IResponse<IUpdateProjectEventData>;
11
+ export interface ICreateProjectEventData {
12
+ projectEvent: IProjectEvent;
13
+ }
14
+ export type ICreateProjectEventResponse = IResponse<ICreateProjectEventData>;
15
+ export interface IDeleteProjectEventData {
16
+ }
17
+ export type IDeleteProjectEventResponse = IResponse<IDeleteProjectEventData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { BasePaginate, IProjectFollower, IResponse } from '../..';
2
+ export interface IFollowProjectFollowerAdminData {
3
+ projectFollower: IProjectFollower;
4
+ }
5
+ export type IFollowProjectFollowerAdminResponse = IResponse<IFollowProjectFollowerAdminData>;
6
+ export interface IUnFollowProjectFollowerAdminData {
7
+ }
8
+ export type IUnFollowProjectFollowerAdminResponse = IResponse<IUnFollowProjectFollowerAdminData>;
9
+ export type IPaginateProjectFollowerAdminResponse = IResponse<BasePaginate<IProjectFollower>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { BasePaginate, IProjectFollower, IResponse } from '../..';
2
+ export interface IFollowProjectFollowerData {
3
+ projectFollower: IProjectFollower;
4
+ }
5
+ export type IFollowProjectFollowerResponse = IResponse<IFollowProjectFollowerData>;
6
+ export interface IUnFollowProjectFollowerData {
7
+ }
8
+ export type IUnFollowProjectFollowerResponse = IResponse<IUnFollowProjectFollowerData>;
9
+ export type IPaginateProjectFollowerResponse = IResponse<BasePaginate<IProjectFollower>>;
10
+ export type IPaginateUserProjectFollowerResponse = IResponse<BasePaginate<IProjectFollower>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,34 @@
1
+ import { IResponse } from '../..';
2
+ export interface IProjectPostAnalytics {
3
+ period: {
4
+ startDate: string;
5
+ endDate: string;
6
+ };
7
+ totals: {
8
+ views: number;
9
+ uniqueViews: number;
10
+ prints: number;
11
+ };
12
+ trends: {
13
+ last7Days: {
14
+ views: number;
15
+ uniqueViews: number;
16
+ prints: number;
17
+ };
18
+ last30Days: {
19
+ views: number;
20
+ uniqueViews: number;
21
+ prints: number;
22
+ };
23
+ };
24
+ timeSeries: Array<{
25
+ date: string;
26
+ views: number;
27
+ uniqueViews: number;
28
+ prints: number;
29
+ }>;
30
+ }
31
+ export interface IGetProjectPostAnalyticsData {
32
+ analytics: IProjectPostAnalytics;
33
+ }
34
+ export type IGetProjectPostAnalyticsResponse = IResponse<IGetProjectPostAnalyticsData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { IResponse, IProjectPost, BasePaginate } from '../..';
2
+ export interface IGetProjectPostAdminData {
3
+ projectPost: IProjectPost;
4
+ }
5
+ export type IGetProjectPostAdminResponse = IResponse<IGetProjectPostAdminData>;
6
+ export type IPaginateProjectPostAdminResponse = IResponse<BasePaginate<IProjectPost>>;
7
+ export interface IUpdateProjectPostAdminData {
8
+ projectPost: IProjectPost;
9
+ }
10
+ export type IUpdateProjectPostAdminResponse = IResponse<IUpdateProjectPostAdminData>;
11
+ export interface ICreateProjectPostAdminData {
12
+ projectPost: IProjectPost;
13
+ }
14
+ export type ICreateProjectPostAdminResponse = IResponse<ICreateProjectPostAdminData>;
15
+ export interface IDeleteProjectPostAdminData {
16
+ }
17
+ export type IDeleteProjectPostAdminResponse = IResponse<IDeleteProjectPostAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { IResponse, IProjectPost, BasePaginate } from '../..';
2
+ export interface IGetProjectPostData {
3
+ projectPost: IProjectPost;
4
+ }
5
+ export type IGetProjectPostResponse = IResponse<IGetProjectPostData>;
6
+ export type IPaginateProjectPostResponse = IResponse<BasePaginate<IProjectPost>>;
7
+ export interface IUpdateProjectPostData {
8
+ projectPost: IProjectPost;
9
+ }
10
+ export type IUpdateProjectPostResponse = IResponse<IUpdateProjectPostData>;
11
+ export interface ICreateProjectPostData {
12
+ projectPost: IProjectPost;
13
+ }
14
+ export type ICreateProjectPostResponse = IResponse<ICreateProjectPostData>;
15
+ export interface IDeleteProjectPostData {
16
+ }
17
+ export type IDeleteProjectPostResponse = IResponse<IDeleteProjectPostData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { IProjectPresentation, IResponse } from '../..';
2
+ export interface IGetProjectPresentationAdminData {
3
+ projectPresentation: IProjectPresentation;
4
+ }
5
+ export type IGetProjectPresentationAdminResponse = IResponse<IGetProjectPresentationAdminData>;
6
+ export interface IUpsertProjectPresentationAdminData {
7
+ projectPresentation: IProjectPresentation;
8
+ }
9
+ export type IUpsertProjectPresentationAdminResponse = IResponse<IUpsertProjectPresentationAdminData>;
10
+ export interface IDeleteProjectPresentationAdminData {
11
+ }
12
+ export type IDeleteProjectPresentationAdminResponse = IResponse<IDeleteProjectPresentationAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { IProjectPresentation, IResponse } from '../..';
2
+ export interface IGetProjectPresentationData {
3
+ projectPresentation: IProjectPresentation;
4
+ }
5
+ export type IGetProjectPresentationResponse = IResponse<IGetProjectPresentationData>;
6
+ export interface IUpsertProjectPresentationData {
7
+ projectPresentation: IProjectPresentation;
8
+ }
9
+ export type IUpsertProjectPresentationResponse = IResponse<IUpsertProjectPresentationData>;
10
+ export interface IDeleteProjectPresentationData {
11
+ }
12
+ export type IDeleteProjectPresentationResponse = IResponse<IDeleteProjectPresentationData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { IResponse, IProjectSocialNetwork, BasePaginate } from '../..';
2
+ export interface IGetProjectSocialNetworkAdminData {
3
+ projectSocialNetwork: IProjectSocialNetwork;
4
+ }
5
+ export type IGetProjectSocialNetworkAdminResponse = IResponse<IGetProjectSocialNetworkAdminData>;
6
+ export type IPaginateProjectSocialNetworkAdminResponse = IResponse<BasePaginate<IProjectSocialNetwork>>;
7
+ export interface IListProjectSocialNetworkAdminData {
8
+ projectSocialNetworks: IProjectSocialNetwork[];
9
+ }
10
+ export type IListProjectSocialNetworkAdminResponse = IResponse<IListProjectSocialNetworkAdminData>;
11
+ export interface IUpdateProjectSocialNetworkAdminData {
12
+ projectSocialNetwork: IProjectSocialNetwork;
13
+ }
14
+ export type IUpdateProjectSocialNetworkAdminResponse = IResponse<IUpdateProjectSocialNetworkAdminData>;
15
+ export interface ICreateProjectSocialNetworkAdminData {
16
+ projectSocialNetwork: IProjectSocialNetwork;
17
+ }
18
+ export type ICreateProjectSocialNetworkAdminResponse = IResponse<ICreateProjectSocialNetworkAdminData>;
19
+ export interface IDeleteProjectSocialNetworkAdminData {
20
+ }
21
+ export type IDeleteProjectSocialNetworkAdminResponse = IResponse<IDeleteProjectSocialNetworkAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { IResponse, IProjectSocialNetwork } from '../..';
2
+ export interface IGetProjectSocialNetworkData {
3
+ projectSocialNetwork: IProjectSocialNetwork;
4
+ }
5
+ export type IGetProjectSocialNetworkResponse = IResponse<IGetProjectSocialNetworkData>;
6
+ export interface IListProjectSocialNetworkData {
7
+ projectSocialNetworks: IProjectSocialNetwork[];
8
+ }
9
+ export type IListProjectSocialNetworkResponse = IResponse<IListProjectSocialNetworkData>;
10
+ export interface IUpdateProjectSocialNetworkData {
11
+ projectSocialNetwork: IProjectSocialNetwork;
12
+ }
13
+ export type IUpdateProjectSocialNetworkResponse = IResponse<IUpdateProjectSocialNetworkData>;
14
+ export interface ICreateProjectSocialNetworkData {
15
+ projectSocialNetwork: IProjectSocialNetwork;
16
+ }
17
+ export type ICreateProjectSocialNetworkResponse = IResponse<ICreateProjectSocialNetworkData>;
18
+ export interface IDeleteProjectSocialNetworkData {
19
+ }
20
+ export type IDeleteProjectSocialNetworkResponse = IResponse<IDeleteProjectSocialNetworkData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { BasePaginate, IProjectStar, IResponse } from '../..';
2
+ export interface IStarProjectStarAdminData {
3
+ projectStar: IProjectStar;
4
+ }
5
+ export type IStarProjectStarAdminResponse = IResponse<IStarProjectStarAdminData>;
6
+ export interface IUnStarProjectStarAdminData {
7
+ }
8
+ export type IUnStarProjectStarAdminResponse = IResponse<IUnStarProjectStarAdminData>;
9
+ export type IPaginateProjectStarAdminResponse = IResponse<BasePaginate<IProjectStar>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { BasePaginate, IProjectStar, IResponse } from '../..';
2
+ export interface IStarProjectStarData {
3
+ projectStar: IProjectStar;
4
+ }
5
+ export type IStarProjectStarResponse = IResponse<IStarProjectStarData>;
6
+ export interface IUnStarProjectStarData {
7
+ }
8
+ export type IUnStarProjectStarResponse = IResponse<IUnStarProjectStarData>;
9
+ export type IPaginateProjectStarResponse = IResponse<BasePaginate<IProjectStar>>;
10
+ export type IPaginateUserProjectStarResponse = IResponse<BasePaginate<IProjectStar>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
1
+ import { BasePaginate, IProject, IResponse, ProjectMetrics } from '../..';
2
+ export interface IGetProjectAdminData {
3
+ project: IProject;
4
+ metrics: ProjectMetrics;
5
+ }
6
+ export type IGetProjectAdminResponse = IResponse<IGetProjectAdminData>;
7
+ export interface IGetBySlugProjectAdminData {
8
+ project: IProject;
9
+ metrics: ProjectMetrics;
10
+ }
11
+ export type IGetBySlugProjectAdminResponse = IResponse<IGetBySlugProjectAdminData>;
12
+ export type IPaginateProjectAdminResponse = IResponse<BasePaginate<IProject>>;
13
+ export interface IUpdateProjectAdminData {
14
+ project: IProject;
15
+ }
16
+ export type IUpdateProjectAdminResponse = IResponse<IUpdateProjectAdminData>;
17
+ export interface ICreateProjectAdminData {
18
+ project: IProject;
19
+ }
20
+ export type ICreateProjectAdminResponse = IResponse<ICreateProjectAdminData>;
21
+ export interface IDeleteProjectAdminData {
22
+ }
23
+ export type IDeleteProjectAdminResponse = IResponse<IDeleteProjectAdminData>;
24
+ export interface ILinkToAbyssProjectAdminData {
25
+ project: IProject;
26
+ }
27
+ export type ILinkToAbyssProjectAdminResponse = IResponse<ILinkToAbyssProjectAdminData>;
28
+ export interface ILinkToAbyssApplicationProjectAdminData {
29
+ project: IProject;
30
+ }
31
+ export type ILinkToAbyssApplicationProjectAdminResponse = IResponse<ILinkToAbyssApplicationProjectAdminData>;
32
+ export interface IListByAbyssProjectIdProjectAdminData {
33
+ projects: IProject[];
34
+ }
35
+ export type IListByAbyssProjectIdProjectAdminResponse = IResponse<IListByAbyssProjectIdProjectAdminData>;
36
+ export interface ITransferProjectAdminData {
37
+ project: IProject;
38
+ }
39
+ export type ITransferProjectAdminResponse = IResponse<ITransferProjectAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ import { BasePaginate, IProject, IProjectEvent, IProjectPost, IResponse, ProjectMetrics, ProjectWithMetrics } from '../..';
2
+ import { ProjectCategory, ProjectLanguage, ProjectStatus } from '../../../enum';
3
+ export interface IGetPublishedProjectPublicData {
4
+ project: IProject;
5
+ metrics: ProjectMetrics;
6
+ }
7
+ export type IGetPublishedProjectPublicResponse = IResponse<IGetPublishedProjectPublicData>;
8
+ export type IPaginatePostProjectPublicResponse = IResponse<BasePaginate<IProjectPost>>;
9
+ export interface IGetPublishedBySlugProjectPublicData {
10
+ project: IProject;
11
+ metrics: ProjectMetrics;
12
+ }
13
+ export type IGetPublishedBySlugProjectPublicResponse = IResponse<IGetPublishedBySlugProjectPublicData>;
14
+ export type IPaginatePublishedProjectPublicResponse = IResponse<BasePaginate<ProjectWithMetrics>>;
15
+ export interface IGetPopularProjectPublicData {
16
+ tags: {
17
+ tag: string;
18
+ count: number;
19
+ }[];
20
+ status: {
21
+ status: ProjectStatus;
22
+ count: number;
23
+ }[];
24
+ category: {
25
+ category: ProjectCategory;
26
+ count: number;
27
+ }[];
28
+ mainLanguage: {
29
+ language: ProjectLanguage;
30
+ count: number;
31
+ }[];
32
+ otherLanguage: {
33
+ language: ProjectLanguage;
34
+ count: number;
35
+ }[];
36
+ }
37
+ export type IGetPopularProjectPublicResponse = IResponse<IGetPopularProjectPublicData>;
38
+ export interface IGeneratePresentationProjectPublicData {
39
+ content: string;
40
+ }
41
+ export type IGeneratePresentationProjectPublicResponse = IResponse<IGeneratePresentationProjectPublicData>;
42
+ export interface IGeneratePostProjectPublicData {
43
+ content: string;
44
+ }
45
+ export type IGeneratePostProjectPublicResponse = IResponse<IGeneratePostProjectPublicData>;
46
+ export type IPaginatePublishedProjectEventPublicResponse = IResponse<BasePaginate<IProjectEvent>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,76 @@
1
+ import { BasePaginate, IProject, IResponse, ProjectWithMetrics } from '../..';
2
+ export type ProjectMetrics = {
3
+ star: {
4
+ count: number;
5
+ lastStarredAt: Date | null;
6
+ };
7
+ follower: {
8
+ count: number;
9
+ lastFollowedAt: Date | null;
10
+ };
11
+ view: {
12
+ total: number;
13
+ uniqTotal: number;
14
+ totalPrint: number;
15
+ history: {
16
+ date: string;
17
+ count: number;
18
+ }[];
19
+ };
20
+ post: {
21
+ total: number;
22
+ history: {
23
+ date: string;
24
+ count: number;
25
+ }[];
26
+ };
27
+ };
28
+ export interface IGetProjectData {
29
+ project: IProject;
30
+ metrics: ProjectMetrics;
31
+ }
32
+ export type IGetProjectResponse = IResponse<IGetProjectData>;
33
+ export interface IGetBySlugProjectData {
34
+ project: IProject;
35
+ metrics: ProjectMetrics;
36
+ }
37
+ export type IGetBySlugProjectResponse = IResponse<IGetBySlugProjectData>;
38
+ export type IPaginateProjectResponse = IResponse<BasePaginate<ProjectWithMetrics>>;
39
+ export interface IUpdateProjectData {
40
+ project: IProject;
41
+ }
42
+ export type IUpdateProjectResponse = IResponse<IUpdateProjectData>;
43
+ export interface ICreateProjectData {
44
+ project: IProject;
45
+ }
46
+ export type ICreateProjectResponse = IResponse<ICreateProjectData>;
47
+ export interface IDeleteProjectData {
48
+ }
49
+ export type IDeleteProjectResponse = IResponse<IDeleteProjectData>;
50
+ export interface ILinkToAbyssProjectData {
51
+ project: IProject;
52
+ }
53
+ export type ILinkToAbyssProjectResponse = IResponse<ILinkToAbyssProjectData>;
54
+ export interface ILinkToAbyssApplicationProjectData {
55
+ project: IProject;
56
+ }
57
+ export type ILinkToAbyssApplicationProjectResponse = IResponse<ILinkToAbyssProjectData>;
58
+ export interface IListByAbyssProjectIdProjectData {
59
+ projects: ProjectWithMetrics[];
60
+ }
61
+ export type IListByAbyssProjectIdProjectResponse = IResponse<IListByAbyssProjectIdProjectData>;
62
+ export interface ITransferProjectData {
63
+ project: IProject;
64
+ }
65
+ export type ITransferProjectResponse = IResponse<ITransferProjectData>;
66
+ export interface IGlobalUserMetricsData {
67
+ totalPosts: number;
68
+ totalViews: number;
69
+ totalFollowers: number;
70
+ totalStars: number;
71
+ }
72
+ export type IGlobalUserMetricsResponse = IResponse<IGlobalUserMetricsData>;
73
+ export interface IListAllAccessibleProjectsData {
74
+ projects: ProjectWithMetrics[];
75
+ }
76
+ export type IListAllAccessibleProjectsResponse = IResponse<IListAllAccessibleProjectsData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { IResponse } from '../type-message/response';
2
+ export type ICheckIntegrityStorageAdminData = Record<string, never>;
3
+ export type ICheckIntegrityStorageAdminResponse = IResponse<ICheckIntegrityStorageAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { BasePaginate, IResponse, IUser } from '../..';
2
+ export interface IGetUserAdminData {
3
+ user: IUser;
4
+ }
5
+ export type IGetUserAdminResponse = IResponse<IGetUserAdminData>;
6
+ export type IPaginateUserAdminResponse = IResponse<BasePaginate<IUser>>;
7
+ export interface IUpdateUserAdminData {
8
+ user: IUser;
9
+ }
10
+ export type IUpdateUserAdminResponse = IResponse<IUpdateUserAdminData>;
11
+ export interface IResetApiKeyUserAdminData {
12
+ user: IUser;
13
+ }
14
+ export type IResetApiKeyUserAdminResponse = IResponse<IResetApiKeyUserAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { IResponse, IUser } from '../..';
2
+ export interface IMeUserData {
3
+ user: IUser;
4
+ }
5
+ export type IMeUserResponse = IResponse<IMeUserData>;
6
+ export interface IResetApiKeyUserData {
7
+ user: IUser;
8
+ }
9
+ export type IResetApiKeyUserResponse = IResponse<IResetApiKeyUserData>;
10
+ export interface IUpdateUserData {
11
+ user: IUser;
12
+ }
13
+ export type IUpdateUserResponse = IResponse<IUpdateUserData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ import { IResponse, BasePaginate } from '..';
2
+ import { IWorkoutSession } from '../../models/workout-session.model';
3
+ export interface ICreateWorkoutSessionData {
4
+ workoutSession: IWorkoutSession;
5
+ }
6
+ export type ICreateWorkoutSessionResponse = IResponse<ICreateWorkoutSessionData>;
7
+ export interface IGetWorkoutSessionData {
8
+ workoutSession: IWorkoutSession;
9
+ }
10
+ export type IGetWorkoutSessionResponse = IResponse<IGetWorkoutSessionData>;
11
+ export type IPaginateWorkoutSessionResponse = IResponse<BasePaginate<IWorkoutSession>>;
12
+ export interface IUpdateWorkoutSessionData {
13
+ workoutSession: IWorkoutSession;
14
+ }
15
+ export type IUpdateWorkoutSessionResponse = IResponse<IUpdateWorkoutSessionData>;
16
+ export interface IDeleteWorkoutSessionData {
17
+ }
18
+ export type IDeleteWorkoutSessionResponse = IResponse<IDeleteWorkoutSessionData>;
19
+ export interface IStartWorkoutSessionData {
20
+ workoutSession: IWorkoutSession;
21
+ }
22
+ export type IStartWorkoutSessionResponse = IResponse<IStartWorkoutSessionData>;
23
+ export interface ICompleteWorkoutSessionData {
24
+ workoutSession: IWorkoutSession;
25
+ }
26
+ export type ICompleteWorkoutSessionResponse = IResponse<ICompleteWorkoutSessionData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });