@ever-gauzy/plugin-integration-plane-api 0.1.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 (743) hide show
  1. package/README.md +1 -0
  2. package/dist/config/constants.d.ts +125 -0
  3. package/dist/config/constants.js +185 -0
  4. package/dist/config/constants.js.map +1 -0
  5. package/dist/config/credentials.d.ts +30 -0
  6. package/dist/config/credentials.js +50 -0
  7. package/dist/config/credentials.js.map +1 -0
  8. package/dist/config/decorators/index.d.ts +1 -0
  9. package/dist/config/decorators/index.js +18 -0
  10. package/dist/config/decorators/index.js.map +1 -0
  11. package/dist/config/decorators/transformers/index.d.ts +1 -0
  12. package/dist/config/decorators/transformers/index.js +18 -0
  13. package/dist/config/decorators/transformers/index.js.map +1 -0
  14. package/dist/config/decorators/transformers/priority.transformer.d.ts +1 -0
  15. package/dist/config/decorators/transformers/priority.transformer.js +12 -0
  16. package/dist/config/decorators/transformers/priority.transformer.js.map +1 -0
  17. package/dist/config/index.d.ts +7 -0
  18. package/dist/config/index.js +24 -0
  19. package/dist/config/index.js.map +1 -0
  20. package/dist/config/serializers/activity/activity.serializer.d.ts +28 -0
  21. package/dist/config/serializers/activity/activity.serializer.js +288 -0
  22. package/dist/config/serializers/activity/activity.serializer.js.map +1 -0
  23. package/dist/config/serializers/activity/assignees-activities.serializer.d.ts +18 -0
  24. package/dist/config/serializers/activity/assignees-activities.serializer.js +64 -0
  25. package/dist/config/serializers/activity/assignees-activities.serializer.js.map +1 -0
  26. package/dist/config/serializers/activity/index.d.ts +7 -0
  27. package/dist/config/serializers/activity/index.js +24 -0
  28. package/dist/config/serializers/activity/index.js.map +1 -0
  29. package/dist/config/serializers/activity/labels-activities.serializer.d.ts +11 -0
  30. package/dist/config/serializers/activity/labels-activities.serializer.js +30 -0
  31. package/dist/config/serializers/activity/labels-activities.serializer.js.map +1 -0
  32. package/dist/config/serializers/activity/many-to-many-field-activity.helper.d.ts +29 -0
  33. package/dist/config/serializers/activity/many-to-many-field-activity.helper.js +45 -0
  34. package/dist/config/serializers/activity/many-to-many-field-activity.helper.js.map +1 -0
  35. package/dist/config/serializers/activity/modules-activities.serializer.d.ts +11 -0
  36. package/dist/config/serializers/activity/modules-activities.serializer.js +30 -0
  37. package/dist/config/serializers/activity/modules-activities.serializer.js.map +1 -0
  38. package/dist/config/serializers/activity/parent-activities.serializer.d.ts +14 -0
  39. package/dist/config/serializers/activity/parent-activities.serializer.js +47 -0
  40. package/dist/config/serializers/activity/parent-activities.serializer.js.map +1 -0
  41. package/dist/config/serializers/activity/status-activities.serializer.d.ts +12 -0
  42. package/dist/config/serializers/activity/status-activities.serializer.js +30 -0
  43. package/dist/config/serializers/activity/status-activities.serializer.js.map +1 -0
  44. package/dist/config/serializers/analytics/analytics.serializer.d.ts +17 -0
  45. package/dist/config/serializers/analytics/analytics.serializer.js +395 -0
  46. package/dist/config/serializers/analytics/analytics.serializer.js.map +1 -0
  47. package/dist/config/serializers/analytics/index.d.ts +1 -0
  48. package/dist/config/serializers/analytics/index.js +18 -0
  49. package/dist/config/serializers/analytics/index.js.map +1 -0
  50. package/dist/config/serializers/auth/auth.serializer.d.ts +2 -0
  51. package/dist/config/serializers/auth/auth.serializer.js +11 -0
  52. package/dist/config/serializers/auth/auth.serializer.js.map +1 -0
  53. package/dist/config/serializers/auth/index.d.ts +1 -0
  54. package/dist/config/serializers/auth/index.js +18 -0
  55. package/dist/config/serializers/auth/index.js.map +1 -0
  56. package/dist/config/serializers/comments/comment.serializer.d.ts +25 -0
  57. package/dist/config/serializers/comments/comment.serializer.js +94 -0
  58. package/dist/config/serializers/comments/comment.serializer.js.map +1 -0
  59. package/dist/config/serializers/comments/index.d.ts +1 -0
  60. package/dist/config/serializers/comments/index.js +18 -0
  61. package/dist/config/serializers/comments/index.js.map +1 -0
  62. package/dist/config/serializers/cycles/cycle.serializer.d.ts +86 -0
  63. package/dist/config/serializers/cycles/cycle.serializer.js +480 -0
  64. package/dist/config/serializers/cycles/cycle.serializer.js.map +1 -0
  65. package/dist/config/serializers/cycles/index.d.ts +1 -0
  66. package/dist/config/serializers/cycles/index.js +18 -0
  67. package/dist/config/serializers/cycles/index.js.map +1 -0
  68. package/dist/config/serializers/dashboard/dashboard.serializer.d.ts +22 -0
  69. package/dist/config/serializers/dashboard/dashboard.serializer.js +66 -0
  70. package/dist/config/serializers/dashboard/dashboard.serializer.js.map +1 -0
  71. package/dist/config/serializers/dashboard/index.d.ts +1 -0
  72. package/dist/config/serializers/dashboard/index.js +18 -0
  73. package/dist/config/serializers/dashboard/index.js.map +1 -0
  74. package/dist/config/serializers/employee-properties/employee-properties.serializer.d.ts +9 -0
  75. package/dist/config/serializers/employee-properties/employee-properties.serializer.js +57 -0
  76. package/dist/config/serializers/employee-properties/employee-properties.serializer.js.map +1 -0
  77. package/dist/config/serializers/employee-properties/index.d.ts +1 -0
  78. package/dist/config/serializers/employee-properties/index.js +18 -0
  79. package/dist/config/serializers/employee-properties/index.js.map +1 -0
  80. package/dist/config/serializers/index.d.ts +24 -0
  81. package/dist/config/serializers/index.js +41 -0
  82. package/dist/config/serializers/index.js.map +1 -0
  83. package/dist/config/serializers/invitation/index.d.ts +1 -0
  84. package/dist/config/serializers/invitation/index.js +18 -0
  85. package/dist/config/serializers/invitation/index.js.map +1 -0
  86. package/dist/config/serializers/invitation/invitation.serializer.d.ts +52 -0
  87. package/dist/config/serializers/invitation/invitation.serializer.js +140 -0
  88. package/dist/config/serializers/invitation/invitation.serializer.js.map +1 -0
  89. package/dist/config/serializers/issue-link/index.d.ts +1 -0
  90. package/dist/config/serializers/issue-link/index.js +18 -0
  91. package/dist/config/serializers/issue-link/index.js.map +1 -0
  92. package/dist/config/serializers/issue-link/issue-link.serializer.d.ts +28 -0
  93. package/dist/config/serializers/issue-link/issue-link.serializer.js +89 -0
  94. package/dist/config/serializers/issue-link/issue-link.serializer.js.map +1 -0
  95. package/dist/config/serializers/mention/index.d.ts +1 -0
  96. package/dist/config/serializers/mention/index.js +18 -0
  97. package/dist/config/serializers/mention/index.js.map +1 -0
  98. package/dist/config/serializers/mention/mention.serializer.d.ts +2 -0
  99. package/dist/config/serializers/mention/mention.serializer.js +22 -0
  100. package/dist/config/serializers/mention/mention.serializer.js.map +1 -0
  101. package/dist/config/serializers/modules/index.d.ts +1 -0
  102. package/dist/config/serializers/modules/index.js +18 -0
  103. package/dist/config/serializers/modules/index.js.map +1 -0
  104. package/dist/config/serializers/modules/module.serializer.d.ts +49 -0
  105. package/dist/config/serializers/modules/module.serializer.js +215 -0
  106. package/dist/config/serializers/modules/module.serializer.js.map +1 -0
  107. package/dist/config/serializers/notification/index.d.ts +1 -0
  108. package/dist/config/serializers/notification/index.js +18 -0
  109. package/dist/config/serializers/notification/index.js.map +1 -0
  110. package/dist/config/serializers/notification/notification.serializer.d.ts +31 -0
  111. package/dist/config/serializers/notification/notification.serializer.js +135 -0
  112. package/dist/config/serializers/notification/notification.serializer.js.map +1 -0
  113. package/dist/config/serializers/pages/index.d.ts +1 -0
  114. package/dist/config/serializers/pages/index.js +18 -0
  115. package/dist/config/serializers/pages/index.js.map +1 -0
  116. package/dist/config/serializers/pages/page.serializer.d.ts +23 -0
  117. package/dist/config/serializers/pages/page.serializer.js +106 -0
  118. package/dist/config/serializers/pages/page.serializer.js.map +1 -0
  119. package/dist/config/serializers/project-deploy-boards/index.d.ts +2 -0
  120. package/dist/config/serializers/project-deploy-boards/index.js +19 -0
  121. package/dist/config/serializers/project-deploy-boards/index.js.map +1 -0
  122. package/dist/config/serializers/project-deploy-boards/project-deploy-boards.helper.d.ts +16 -0
  123. package/dist/config/serializers/project-deploy-boards/project-deploy-boards.helper.js +169 -0
  124. package/dist/config/serializers/project-deploy-boards/project-deploy-boards.helper.js.map +1 -0
  125. package/dist/config/serializers/project-deploy-boards/project-deploy-boards.serializer.d.ts +14 -0
  126. package/dist/config/serializers/project-deploy-boards/project-deploy-boards.serializer.js +35 -0
  127. package/dist/config/serializers/project-deploy-boards/project-deploy-boards.serializer.js.map +1 -0
  128. package/dist/config/serializers/projects/index.d.ts +1 -0
  129. package/dist/config/serializers/projects/index.js +18 -0
  130. package/dist/config/serializers/projects/index.js.map +1 -0
  131. package/dist/config/serializers/projects/projects.serializer.d.ts +42 -0
  132. package/dist/config/serializers/projects/projects.serializer.js +216 -0
  133. package/dist/config/serializers/projects/projects.serializer.js.map +1 -0
  134. package/dist/config/serializers/query-params.serializers.d.ts +4 -0
  135. package/dist/config/serializers/query-params.serializers.js +10 -0
  136. package/dist/config/serializers/query-params.serializers.js.map +1 -0
  137. package/dist/config/serializers/reactions/index.d.ts +1 -0
  138. package/dist/config/serializers/reactions/index.js +18 -0
  139. package/dist/config/serializers/reactions/index.js.map +1 -0
  140. package/dist/config/serializers/reactions/reaction.serializer.d.ts +4 -0
  141. package/dist/config/serializers/reactions/reaction.serializer.js +62 -0
  142. package/dist/config/serializers/reactions/reaction.serializer.js.map +1 -0
  143. package/dist/config/serializers/recent-visits/index.d.ts +1 -0
  144. package/dist/config/serializers/recent-visits/index.js +18 -0
  145. package/dist/config/serializers/recent-visits/index.js.map +1 -0
  146. package/dist/config/serializers/recent-visits/recent-visits.serializer.d.ts +32 -0
  147. package/dist/config/serializers/recent-visits/recent-visits.serializer.js +109 -0
  148. package/dist/config/serializers/recent-visits/recent-visits.serializer.js.map +1 -0
  149. package/dist/config/serializers/subscription/index.d.ts +1 -0
  150. package/dist/config/serializers/subscription/index.js +18 -0
  151. package/dist/config/serializers/subscription/index.js.map +1 -0
  152. package/dist/config/serializers/subscription/subscription.serializer.d.ts +23 -0
  153. package/dist/config/serializers/subscription/subscription.serializer.js +68 -0
  154. package/dist/config/serializers/subscription/subscription.serializer.js.map +1 -0
  155. package/dist/config/serializers/tasks/index.d.ts +5 -0
  156. package/dist/config/serializers/tasks/index.js +22 -0
  157. package/dist/config/serializers/tasks/index.js.map +1 -0
  158. package/dist/config/serializers/tasks/intake-issue/index.d.ts +1 -0
  159. package/dist/config/serializers/tasks/intake-issue/index.js +18 -0
  160. package/dist/config/serializers/tasks/intake-issue/index.js.map +1 -0
  161. package/dist/config/serializers/tasks/intake-issue/intake-issue.serializer.d.ts +35 -0
  162. package/dist/config/serializers/tasks/intake-issue/intake-issue.serializer.js +123 -0
  163. package/dist/config/serializers/tasks/intake-issue/intake-issue.serializer.js.map +1 -0
  164. package/dist/config/serializers/tasks/issue-labels/index.d.ts +1 -0
  165. package/dist/config/serializers/tasks/issue-labels/index.js +18 -0
  166. package/dist/config/serializers/tasks/issue-labels/index.js.map +1 -0
  167. package/dist/config/serializers/tasks/issue-labels/issue-labels.serializer.d.ts +6 -0
  168. package/dist/config/serializers/tasks/issue-labels/issue-labels.serializer.js +31 -0
  169. package/dist/config/serializers/tasks/issue-labels/issue-labels.serializer.js.map +1 -0
  170. package/dist/config/serializers/tasks/issue-relations/index.d.ts +1 -0
  171. package/dist/config/serializers/tasks/issue-relations/index.js +18 -0
  172. package/dist/config/serializers/tasks/issue-relations/index.js.map +1 -0
  173. package/dist/config/serializers/tasks/issue-relations/issue-relations.serializer.d.ts +8 -0
  174. package/dist/config/serializers/tasks/issue-relations/issue-relations.serializer.js +94 -0
  175. package/dist/config/serializers/tasks/issue-relations/issue-relations.serializer.js.map +1 -0
  176. package/dist/config/serializers/tasks/statuses/index.d.ts +1 -0
  177. package/dist/config/serializers/tasks/statuses/index.js +18 -0
  178. package/dist/config/serializers/tasks/statuses/index.js.map +1 -0
  179. package/dist/config/serializers/tasks/statuses/statuses.serializer.d.ts +12 -0
  180. package/dist/config/serializers/tasks/statuses/statuses.serializer.js +100 -0
  181. package/dist/config/serializers/tasks/statuses/statuses.serializer.js.map +1 -0
  182. package/dist/config/serializers/tasks/tasks.serializer.d.ts +285 -0
  183. package/dist/config/serializers/tasks/tasks.serializer.js +1074 -0
  184. package/dist/config/serializers/tasks/tasks.serializer.js.map +1 -0
  185. package/dist/config/serializers/user/actor-details.helper.d.ts +10 -0
  186. package/dist/config/serializers/user/actor-details.helper.js +16 -0
  187. package/dist/config/serializers/user/actor-details.helper.js.map +1 -0
  188. package/dist/config/serializers/user/index.d.ts +2 -0
  189. package/dist/config/serializers/user/index.js +19 -0
  190. package/dist/config/serializers/user/index.js.map +1 -0
  191. package/dist/config/serializers/user/user.serializer.d.ts +140 -0
  192. package/dist/config/serializers/user/user.serializer.js +192 -0
  193. package/dist/config/serializers/user/user.serializer.js.map +1 -0
  194. package/dist/config/serializers/user-favorites/index.d.ts +1 -0
  195. package/dist/config/serializers/user-favorites/index.js +18 -0
  196. package/dist/config/serializers/user-favorites/index.js.map +1 -0
  197. package/dist/config/serializers/user-favorites/user-favorite.serializer.d.ts +6 -0
  198. package/dist/config/serializers/user-favorites/user-favorite.serializer.js +61 -0
  199. package/dist/config/serializers/user-favorites/user-favorite.serializer.js.map +1 -0
  200. package/dist/config/serializers/views/date-range.helper.d.ts +1 -0
  201. package/dist/config/serializers/views/date-range.helper.js +85 -0
  202. package/dist/config/serializers/views/date-range.helper.js.map +1 -0
  203. package/dist/config/serializers/views/index.d.ts +3 -0
  204. package/dist/config/serializers/views/index.js +20 -0
  205. package/dist/config/serializers/views/index.js.map +1 -0
  206. package/dist/config/serializers/views/view-id-from-referer.helper.d.ts +14 -0
  207. package/dist/config/serializers/views/view-id-from-referer.helper.js +27 -0
  208. package/dist/config/serializers/views/view-id-from-referer.helper.js.map +1 -0
  209. package/dist/config/serializers/views/view.serializer.d.ts +47 -0
  210. package/dist/config/serializers/views/view.serializer.js +187 -0
  211. package/dist/config/serializers/views/view.serializer.js.map +1 -0
  212. package/dist/config/serializers/workspace-organization/index.d.ts +2 -0
  213. package/dist/config/serializers/workspace-organization/index.js +19 -0
  214. package/dist/config/serializers/workspace-organization/index.js.map +1 -0
  215. package/dist/config/serializers/workspace-organization/organization.serializer.d.ts +92 -0
  216. package/dist/config/serializers/workspace-organization/organization.serializer.js +270 -0
  217. package/dist/config/serializers/workspace-organization/organization.serializer.js.map +1 -0
  218. package/dist/config/serializers/workspace-organization/widgets-filter.helper.d.ts +4 -0
  219. package/dist/config/serializers/workspace-organization/widgets-filter.helper.js +14 -0
  220. package/dist/config/serializers/workspace-organization/widgets-filter.helper.js.map +1 -0
  221. package/dist/config/time-zones.d.ts +8 -0
  222. package/dist/config/time-zones.js +722 -0
  223. package/dist/config/time-zones.js.map +1 -0
  224. package/dist/config/utils/index.d.ts +1 -0
  225. package/dist/config/utils/index.js +18 -0
  226. package/dist/config/utils/index.js.map +1 -0
  227. package/dist/config/utils/shared.utils.d.ts +95 -0
  228. package/dist/config/utils/shared.utils.js +256 -0
  229. package/dist/config/utils/shared.utils.js.map +1 -0
  230. package/dist/config/validators/custom-length.decorator.d.ts +28 -0
  231. package/dist/config/validators/custom-length.decorator.js +65 -0
  232. package/dist/config/validators/custom-length.decorator.js.map +1 -0
  233. package/dist/config/validators/index.d.ts +1 -0
  234. package/dist/config/validators/index.js +18 -0
  235. package/dist/config/validators/index.js.map +1 -0
  236. package/dist/dev.d.ts +1 -0
  237. package/dist/dev.js +10 -0
  238. package/dist/dev.js.map +1 -0
  239. package/dist/index.d.ts +5 -0
  240. package/dist/index.js +14 -0
  241. package/dist/index.js.map +1 -0
  242. package/dist/main.d.ts +1 -0
  243. package/dist/main.js +50 -0
  244. package/dist/main.js.map +1 -0
  245. package/dist/modules/activity/activity.module.d.ts +2 -0
  246. package/dist/modules/activity/activity.module.js +22 -0
  247. package/dist/modules/activity/activity.module.js.map +1 -0
  248. package/dist/modules/activity/activity.service.d.ts +12 -0
  249. package/dist/modules/activity/activity.service.js +45 -0
  250. package/dist/modules/activity/activity.service.js.map +1 -0
  251. package/dist/modules/advance-analytics/advance-analytics.controller.d.ts +30 -0
  252. package/dist/modules/advance-analytics/advance-analytics.controller.js +128 -0
  253. package/dist/modules/advance-analytics/advance-analytics.controller.js.map +1 -0
  254. package/dist/modules/advance-analytics/advance-analytics.module.d.ts +15 -0
  255. package/dist/modules/advance-analytics/advance-analytics.module.js +56 -0
  256. package/dist/modules/advance-analytics/advance-analytics.module.js.map +1 -0
  257. package/dist/modules/advance-analytics/advance-analytics.service.d.ts +29 -0
  258. package/dist/modules/advance-analytics/advance-analytics.service.js +143 -0
  259. package/dist/modules/advance-analytics/advance-analytics.service.js.map +1 -0
  260. package/dist/modules/advance-analytics/dto/advance-analytics-query.dto.d.ts +26 -0
  261. package/dist/modules/advance-analytics/dto/advance-analytics-query.dto.js +93 -0
  262. package/dist/modules/advance-analytics/dto/advance-analytics-query.dto.js.map +1 -0
  263. package/dist/modules/advance-analytics/dto/index.d.ts +1 -0
  264. package/dist/modules/advance-analytics/dto/index.js +18 -0
  265. package/dist/modules/advance-analytics/dto/index.js.map +1 -0
  266. package/dist/modules/advance-analytics/index.d.ts +4 -0
  267. package/dist/modules/advance-analytics/index.js +21 -0
  268. package/dist/modules/advance-analytics/index.js.map +1 -0
  269. package/dist/modules/api-fetch/api-fetch.module.d.ts +2 -0
  270. package/dist/modules/api-fetch/api-fetch.module.js +24 -0
  271. package/dist/modules/api-fetch/api-fetch.module.js.map +1 -0
  272. package/dist/modules/api-fetch/api-fetch.service.d.ts +31 -0
  273. package/dist/modules/api-fetch/api-fetch.service.js +96 -0
  274. package/dist/modules/api-fetch/api-fetch.service.js.map +1 -0
  275. package/dist/modules/api-fetch/token.helper.d.ts +22 -0
  276. package/dist/modules/api-fetch/token.helper.js +58 -0
  277. package/dist/modules/api-fetch/token.helper.js.map +1 -0
  278. package/dist/modules/api-fetch/token.middleware.d.ts +8 -0
  279. package/dist/modules/api-fetch/token.middleware.js +38 -0
  280. package/dist/modules/api-fetch/token.middleware.js.map +1 -0
  281. package/dist/modules/app.module.d.ts +7 -0
  282. package/dist/modules/app.module.js +49 -0
  283. package/dist/modules/app.module.js.map +1 -0
  284. package/dist/modules/auth/auth.controller.d.ts +32 -0
  285. package/dist/modules/auth/auth.controller.js +278 -0
  286. package/dist/modules/auth/auth.controller.js.map +1 -0
  287. package/dist/modules/auth/auth.guard.d.ts +9 -0
  288. package/dist/modules/auth/auth.guard.js +52 -0
  289. package/dist/modules/auth/auth.guard.js.map +1 -0
  290. package/dist/modules/auth/auth.module.d.ts +2 -0
  291. package/dist/modules/auth/auth.module.js +30 -0
  292. package/dist/modules/auth/auth.module.js.map +1 -0
  293. package/dist/modules/auth/auth.service.d.ts +133 -0
  294. package/dist/modules/auth/auth.service.js +362 -0
  295. package/dist/modules/auth/auth.service.js.map +1 -0
  296. package/dist/modules/auth/dto/index.d.ts +1 -0
  297. package/dist/modules/auth/dto/index.js +18 -0
  298. package/dist/modules/auth/dto/index.js.map +1 -0
  299. package/dist/modules/auth/dto/two-factor-dto.d.ts +15 -0
  300. package/dist/modules/auth/dto/two-factor-dto.js +18 -0
  301. package/dist/modules/auth/dto/two-factor-dto.js.map +1 -0
  302. package/dist/modules/comments/comments.controller.d.ts +24 -0
  303. package/dist/modules/comments/comments.controller.js +72 -0
  304. package/dist/modules/comments/comments.controller.js.map +1 -0
  305. package/dist/modules/comments/comments.module.d.ts +2 -0
  306. package/dist/modules/comments/comments.module.js +26 -0
  307. package/dist/modules/comments/comments.module.js.map +1 -0
  308. package/dist/modules/comments/comments.service.d.ts +92 -0
  309. package/dist/modules/comments/comments.service.js +235 -0
  310. package/dist/modules/comments/comments.service.js.map +1 -0
  311. package/dist/modules/cycles/cycles.controller.d.ts +106 -0
  312. package/dist/modules/cycles/cycles.controller.js +270 -0
  313. package/dist/modules/cycles/cycles.controller.js.map +1 -0
  314. package/dist/modules/cycles/cycles.module.d.ts +2 -0
  315. package/dist/modules/cycles/cycles.module.js +31 -0
  316. package/dist/modules/cycles/cycles.module.js.map +1 -0
  317. package/dist/modules/cycles/cycles.service.d.ts +169 -0
  318. package/dist/modules/cycles/cycles.service.js +477 -0
  319. package/dist/modules/cycles/cycles.service.js.map +1 -0
  320. package/dist/modules/cycles/dto/create-cycle.dto.d.ts +6 -0
  321. package/dist/modules/cycles/dto/create-cycle.dto.js +9 -0
  322. package/dist/modules/cycles/dto/create-cycle.dto.js.map +1 -0
  323. package/dist/modules/cycles/dto/cycle.dto.d.ts +18 -0
  324. package/dist/modules/cycles/dto/cycle.dto.js +112 -0
  325. package/dist/modules/cycles/dto/cycle.dto.js.map +1 -0
  326. package/dist/modules/cycles/dto/index.d.ts +3 -0
  327. package/dist/modules/cycles/dto/index.js +20 -0
  328. package/dist/modules/cycles/dto/index.js.map +1 -0
  329. package/dist/modules/cycles/dto/update-cycle.dto.d.ts +6 -0
  330. package/dist/modules/cycles/dto/update-cycle.dto.js +9 -0
  331. package/dist/modules/cycles/dto/update-cycle.dto.js.map +1 -0
  332. package/dist/modules/dashboard/dashboard.controller.d.ts +16 -0
  333. package/dist/modules/dashboard/dashboard.controller.js +59 -0
  334. package/dist/modules/dashboard/dashboard.controller.js.map +1 -0
  335. package/dist/modules/dashboard/dashboard.module.d.ts +2 -0
  336. package/dist/modules/dashboard/dashboard.module.js +30 -0
  337. package/dist/modules/dashboard/dashboard.module.js.map +1 -0
  338. package/dist/modules/dashboard/dashboard.service.d.ts +33 -0
  339. package/dist/modules/dashboard/dashboard.service.js +97 -0
  340. package/dist/modules/dashboard/dashboard.service.js.map +1 -0
  341. package/dist/modules/dashboard/widget.service.d.ts +22 -0
  342. package/dist/modules/dashboard/widget.service.js +68 -0
  343. package/dist/modules/dashboard/widget.service.js.map +1 -0
  344. package/dist/modules/employee-properties/employee-properties.module.d.ts +2 -0
  345. package/dist/modules/employee-properties/employee-properties.module.js +21 -0
  346. package/dist/modules/employee-properties/employee-properties.module.js.map +1 -0
  347. package/dist/modules/employee-properties/employee-properties.service.d.ts +30 -0
  348. package/dist/modules/employee-properties/employee-properties.service.js +95 -0
  349. package/dist/modules/employee-properties/employee-properties.service.js.map +1 -0
  350. package/dist/modules/file-assets/file-assets.controller.d.ts +120 -0
  351. package/dist/modules/file-assets/file-assets.controller.js +192 -0
  352. package/dist/modules/file-assets/file-assets.controller.js.map +1 -0
  353. package/dist/modules/file-assets/file-assets.module.d.ts +2 -0
  354. package/dist/modules/file-assets/file-assets.module.js +23 -0
  355. package/dist/modules/file-assets/file-assets.module.js.map +1 -0
  356. package/dist/modules/file-assets/file-assets.service.d.ts +47 -0
  357. package/dist/modules/file-assets/file-assets.service.js +141 -0
  358. package/dist/modules/file-assets/file-assets.service.js.map +1 -0
  359. package/dist/modules/http.module.d.ts +2 -0
  360. package/dist/modules/http.module.js +22 -0
  361. package/dist/modules/http.module.js.map +1 -0
  362. package/dist/modules/instances/instances.controller.d.ts +73 -0
  363. package/dist/modules/instances/instances.controller.js +39 -0
  364. package/dist/modules/instances/instances.controller.js.map +1 -0
  365. package/dist/modules/instances/instances.module.d.ts +2 -0
  366. package/dist/modules/instances/instances.module.js +28 -0
  367. package/dist/modules/instances/instances.module.js.map +1 -0
  368. package/dist/modules/instances/instances.service.d.ts +68 -0
  369. package/dist/modules/instances/instances.service.js +88 -0
  370. package/dist/modules/instances/instances.service.js.map +1 -0
  371. package/dist/modules/invitation/dto/create-invitation.d.ts +8 -0
  372. package/dist/modules/invitation/dto/create-invitation.js +41 -0
  373. package/dist/modules/invitation/dto/create-invitation.js.map +1 -0
  374. package/dist/modules/invitation/dto/index.d.ts +1 -0
  375. package/dist/modules/invitation/dto/index.js +18 -0
  376. package/dist/modules/invitation/dto/index.js.map +1 -0
  377. package/dist/modules/invitation/invitation.controller.d.ts +53 -0
  378. package/dist/modules/invitation/invitation.controller.js +168 -0
  379. package/dist/modules/invitation/invitation.controller.js.map +1 -0
  380. package/dist/modules/invitation/invitation.module.d.ts +2 -0
  381. package/dist/modules/invitation/invitation.module.js +29 -0
  382. package/dist/modules/invitation/invitation.module.js.map +1 -0
  383. package/dist/modules/invitation/invitation.service.d.ts +67 -0
  384. package/dist/modules/invitation/invitation.service.js +193 -0
  385. package/dist/modules/invitation/invitation.service.js.map +1 -0
  386. package/dist/modules/issue-links/issue-links.module.d.ts +2 -0
  387. package/dist/modules/issue-links/issue-links.module.js +21 -0
  388. package/dist/modules/issue-links/issue-links.module.js.map +1 -0
  389. package/dist/modules/issue-links/issue-links.service.d.ts +47 -0
  390. package/dist/modules/issue-links/issue-links.service.js +143 -0
  391. package/dist/modules/issue-links/issue-links.service.js.map +1 -0
  392. package/dist/modules/issue-relations/dto/create-issue-relation.dto.d.ts +5 -0
  393. package/dist/modules/issue-relations/dto/create-issue-relation.dto.js +31 -0
  394. package/dist/modules/issue-relations/dto/create-issue-relation.dto.js.map +1 -0
  395. package/dist/modules/issue-relations/dto/delete-issue-relation.dto.d.ts +7 -0
  396. package/dist/modules/issue-relations/dto/delete-issue-relation.dto.js +25 -0
  397. package/dist/modules/issue-relations/dto/delete-issue-relation.dto.js.map +1 -0
  398. package/dist/modules/issue-relations/dto/index.d.ts +2 -0
  399. package/dist/modules/issue-relations/dto/index.js +19 -0
  400. package/dist/modules/issue-relations/dto/index.js.map +1 -0
  401. package/dist/modules/issue-relations/issue-relations.module.d.ts +2 -0
  402. package/dist/modules/issue-relations/issue-relations.module.js +23 -0
  403. package/dist/modules/issue-relations/issue-relations.module.js.map +1 -0
  404. package/dist/modules/issue-relations/issue-relations.service.d.ts +49 -0
  405. package/dist/modules/issue-relations/issue-relations.service.js +242 -0
  406. package/dist/modules/issue-relations/issue-relations.service.js.map +1 -0
  407. package/dist/modules/issues/draft-issues/draft-issues.module.d.ts +2 -0
  408. package/dist/modules/issues/draft-issues/draft-issues.module.js +23 -0
  409. package/dist/modules/issues/draft-issues/draft-issues.module.js.map +1 -0
  410. package/dist/modules/issues/draft-issues/draft-issues.service.d.ts +34 -0
  411. package/dist/modules/issues/draft-issues/draft-issues.service.js +94 -0
  412. package/dist/modules/issues/draft-issues/draft-issues.service.js.map +1 -0
  413. package/dist/modules/issues/dto/create-issue-comment.dto.d.ts +4 -0
  414. package/dist/modules/issues/dto/create-issue-comment.dto.js +24 -0
  415. package/dist/modules/issues/dto/create-issue-comment.dto.js.map +1 -0
  416. package/dist/modules/issues/dto/create-issue-link.dto.d.ts +5 -0
  417. package/dist/modules/issues/dto/create-issue-link.dto.js +30 -0
  418. package/dist/modules/issues/dto/create-issue-link.dto.js.map +1 -0
  419. package/dist/modules/issues/dto/create-issue-reaction.dto.d.ts +4 -0
  420. package/dist/modules/issues/dto/create-issue-reaction.dto.js +24 -0
  421. package/dist/modules/issues/dto/create-issue-reaction.dto.js.map +1 -0
  422. package/dist/modules/issues/dto/create-issue.dto.d.ts +21 -0
  423. package/dist/modules/issues/dto/create-issue.dto.js +139 -0
  424. package/dist/modules/issues/dto/create-issue.dto.js.map +1 -0
  425. package/dist/modules/issues/dto/index.d.ts +5 -0
  426. package/dist/modules/issues/dto/index.js +22 -0
  427. package/dist/modules/issues/dto/index.js.map +1 -0
  428. package/dist/modules/issues/dto/update-issue.dto.d.ts +5 -0
  429. package/dist/modules/issues/dto/update-issue.dto.js +25 -0
  430. package/dist/modules/issues/dto/update-issue.dto.js.map +1 -0
  431. package/dist/modules/issues/intake-issues/intake-issues.controller.d.ts +31 -0
  432. package/dist/modules/issues/intake-issues/intake-issues.controller.js +102 -0
  433. package/dist/modules/issues/intake-issues/intake-issues.controller.js.map +1 -0
  434. package/dist/modules/issues/intake-issues/intake-issues.module.d.ts +2 -0
  435. package/dist/modules/issues/intake-issues/intake-issues.module.js +26 -0
  436. package/dist/modules/issues/intake-issues/intake-issues.module.js.map +1 -0
  437. package/dist/modules/issues/intake-issues/intake-issues.service.d.ts +54 -0
  438. package/dist/modules/issues/intake-issues/intake-issues.service.js +182 -0
  439. package/dist/modules/issues/intake-issues/intake-issues.service.js.map +1 -0
  440. package/dist/modules/issues/issue-labels/dto/create-issue-label.dto.d.ts +5 -0
  441. package/dist/modules/issues/issue-labels/dto/create-issue-label.dto.js +30 -0
  442. package/dist/modules/issues/issue-labels/dto/create-issue-label.dto.js.map +1 -0
  443. package/dist/modules/issues/issue-labels/dto/index.d.ts +2 -0
  444. package/dist/modules/issues/issue-labels/dto/index.js +19 -0
  445. package/dist/modules/issues/issue-labels/dto/index.js.map +1 -0
  446. package/dist/modules/issues/issue-labels/dto/update-issue-label.dto.d.ts +6 -0
  447. package/dist/modules/issues/issue-labels/dto/update-issue-label.dto.js +9 -0
  448. package/dist/modules/issues/issue-labels/dto/update-issue-label.dto.js.map +1 -0
  449. package/dist/modules/issues/issue-labels/issue-labels.controller.d.ts +38 -0
  450. package/dist/modules/issues/issue-labels/issue-labels.controller.js +108 -0
  451. package/dist/modules/issues/issue-labels/issue-labels.controller.js.map +1 -0
  452. package/dist/modules/issues/issue-labels/issue-labels.module.d.ts +2 -0
  453. package/dist/modules/issues/issue-labels/issue-labels.module.js +23 -0
  454. package/dist/modules/issues/issue-labels/issue-labels.module.js.map +1 -0
  455. package/dist/modules/issues/issue-labels/issue-labels.service.d.ts +36 -0
  456. package/dist/modules/issues/issue-labels/issue-labels.service.js +107 -0
  457. package/dist/modules/issues/issue-labels/issue-labels.service.js.map +1 -0
  458. package/dist/modules/issues/issues.controller.d.ts +200 -0
  459. package/dist/modules/issues/issues.controller.js +547 -0
  460. package/dist/modules/issues/issues.controller.js.map +1 -0
  461. package/dist/modules/issues/issues.module.d.ts +2 -0
  462. package/dist/modules/issues/issues.module.js +45 -0
  463. package/dist/modules/issues/issues.module.js.map +1 -0
  464. package/dist/modules/issues/issues.service.d.ts +327 -0
  465. package/dist/modules/issues/issues.service.js +1052 -0
  466. package/dist/modules/issues/issues.service.js.map +1 -0
  467. package/dist/modules/issues/search-issues/search-issues.controller.d.ts +14 -0
  468. package/dist/modules/issues/search-issues/search-issues.controller.js +49 -0
  469. package/dist/modules/issues/search-issues/search-issues.controller.js.map +1 -0
  470. package/dist/modules/issues/search-issues/search-issues.module.d.ts +2 -0
  471. package/dist/modules/issues/search-issues/search-issues.module.js +23 -0
  472. package/dist/modules/issues/search-issues/search-issues.module.js.map +1 -0
  473. package/dist/modules/issues/search-issues/search-issues.service.d.ts +13 -0
  474. package/dist/modules/issues/search-issues/search-issues.service.js +97 -0
  475. package/dist/modules/issues/search-issues/search-issues.service.js.map +1 -0
  476. package/dist/modules/logger/index.d.ts +2 -0
  477. package/dist/modules/logger/index.js +19 -0
  478. package/dist/modules/logger/index.js.map +1 -0
  479. package/dist/modules/logger/logger.module.d.ts +6 -0
  480. package/dist/modules/logger/logger.module.js +26 -0
  481. package/dist/modules/logger/logger.module.js.map +1 -0
  482. package/dist/modules/logger/logger.service.d.ts +59 -0
  483. package/dist/modules/logger/logger.service.js +99 -0
  484. package/dist/modules/logger/logger.service.js.map +1 -0
  485. package/dist/modules/mention/mention.module.d.ts +2 -0
  486. package/dist/modules/mention/mention.module.js +21 -0
  487. package/dist/modules/mention/mention.module.js.map +1 -0
  488. package/dist/modules/mention/mention.service.d.ts +6 -0
  489. package/dist/modules/mention/mention.service.js +38 -0
  490. package/dist/modules/mention/mention.service.js.map +1 -0
  491. package/dist/modules/notification/notification.module.d.ts +2 -0
  492. package/dist/modules/notification/notification.module.js +21 -0
  493. package/dist/modules/notification/notification.module.js.map +1 -0
  494. package/dist/modules/notification/notification.service.d.ts +37 -0
  495. package/dist/modules/notification/notification.service.js +113 -0
  496. package/dist/modules/notification/notification.service.js.map +1 -0
  497. package/dist/modules/pages/dto/create-page.dto.d.ts +14 -0
  498. package/dist/modules/pages/dto/create-page.dto.js +68 -0
  499. package/dist/modules/pages/dto/create-page.dto.js.map +1 -0
  500. package/dist/modules/pages/dto/index.d.ts +2 -0
  501. package/dist/modules/pages/dto/index.js +19 -0
  502. package/dist/modules/pages/dto/index.js.map +1 -0
  503. package/dist/modules/pages/dto/update-page.dto.d.ts +15 -0
  504. package/dist/modules/pages/dto/update-page.dto.js +71 -0
  505. package/dist/modules/pages/dto/update-page.dto.js.map +1 -0
  506. package/dist/modules/pages/pages.controller.d.ts +109 -0
  507. package/dist/modules/pages/pages.controller.js +387 -0
  508. package/dist/modules/pages/pages.controller.js.map +1 -0
  509. package/dist/modules/pages/pages.module.d.ts +2 -0
  510. package/dist/modules/pages/pages.module.js +23 -0
  511. package/dist/modules/pages/pages.module.js.map +1 -0
  512. package/dist/modules/pages/pages.service.d.ts +112 -0
  513. package/dist/modules/pages/pages.service.js +481 -0
  514. package/dist/modules/pages/pages.service.js.map +1 -0
  515. package/dist/modules/project/dto/create-project.dto.d.ts +15 -0
  516. package/dist/modules/project/dto/create-project.dto.js +93 -0
  517. package/dist/modules/project/dto/create-project.dto.js.map +1 -0
  518. package/dist/modules/project/dto/index.d.ts +2 -0
  519. package/dist/modules/project/dto/index.js +19 -0
  520. package/dist/modules/project/dto/index.js.map +1 -0
  521. package/dist/modules/project/dto/project-member.dto.d.ts +8 -0
  522. package/dist/modules/project/dto/project-member.dto.js +48 -0
  523. package/dist/modules/project/dto/project-member.dto.js.map +1 -0
  524. package/dist/modules/project/dto/update-project.dto.d.ts +6 -0
  525. package/dist/modules/project/dto/update-project.dto.js +9 -0
  526. package/dist/modules/project/dto/update-project.dto.js.map +1 -0
  527. package/dist/modules/project/project-deploy-boards/project-deploy-boards.service.d.ts +33 -0
  528. package/dist/modules/project/project-deploy-boards/project-deploy-boards.service.js +127 -0
  529. package/dist/modules/project/project-deploy-boards/project-deploy-boards.service.js.map +1 -0
  530. package/dist/modules/project/project-identifiers/project-identifiers.controller.d.ts +12 -0
  531. package/dist/modules/project/project-identifiers/project-identifiers.controller.js +48 -0
  532. package/dist/modules/project/project-identifiers/project-identifiers.controller.js.map +1 -0
  533. package/dist/modules/project/project-identifiers/project-identifiers.module.d.ts +2 -0
  534. package/dist/modules/project/project-identifiers/project-identifiers.module.js +29 -0
  535. package/dist/modules/project/project-identifiers/project-identifiers.module.js.map +1 -0
  536. package/dist/modules/project/project-identifiers/project-identifiers.service.d.ts +14 -0
  537. package/dist/modules/project/project-identifiers/project-identifiers.service.js +60 -0
  538. package/dist/modules/project/project-identifiers/project-identifiers.service.js.map +1 -0
  539. package/dist/modules/project/project.controller.d.ts +94 -0
  540. package/dist/modules/project/project.controller.js +338 -0
  541. package/dist/modules/project/project.controller.js.map +1 -0
  542. package/dist/modules/project/project.module.d.ts +2 -0
  543. package/dist/modules/project/project.module.js +87 -0
  544. package/dist/modules/project/project.module.js.map +1 -0
  545. package/dist/modules/project/project.service.d.ts +132 -0
  546. package/dist/modules/project/project.service.js +491 -0
  547. package/dist/modules/project/project.service.js.map +1 -0
  548. package/dist/modules/project-module/dto/create-module.dto.d.ts +12 -0
  549. package/dist/modules/project-module/dto/create-module.dto.js +76 -0
  550. package/dist/modules/project-module/dto/create-module.dto.js.map +1 -0
  551. package/dist/modules/project-module/dto/index.d.ts +2 -0
  552. package/dist/modules/project-module/dto/index.js +19 -0
  553. package/dist/modules/project-module/dto/index.js.map +1 -0
  554. package/dist/modules/project-module/dto/update-module.dto.d.ts +6 -0
  555. package/dist/modules/project-module/dto/update-module.dto.js +9 -0
  556. package/dist/modules/project-module/dto/update-module.dto.js.map +1 -0
  557. package/dist/modules/project-module/project-module.controller.d.ts +52 -0
  558. package/dist/modules/project-module/project-module.controller.js +167 -0
  559. package/dist/modules/project-module/project-module.controller.js.map +1 -0
  560. package/dist/modules/project-module/project-module.module.d.ts +2 -0
  561. package/dist/modules/project-module/project-module.module.js +26 -0
  562. package/dist/modules/project-module/project-module.module.js.map +1 -0
  563. package/dist/modules/project-module/project-module.service.d.ts +66 -0
  564. package/dist/modules/project-module/project-module.service.js +275 -0
  565. package/dist/modules/project-module/project-module.service.js.map +1 -0
  566. package/dist/modules/reactions/reactions.module.d.ts +2 -0
  567. package/dist/modules/reactions/reactions.module.js +21 -0
  568. package/dist/modules/reactions/reactions.module.js.map +1 -0
  569. package/dist/modules/reactions/reactions.service.d.ts +48 -0
  570. package/dist/modules/reactions/reactions.service.js +121 -0
  571. package/dist/modules/reactions/reactions.service.js.map +1 -0
  572. package/dist/modules/recent-visits/recent-visits.controller.d.ts +12 -0
  573. package/dist/modules/recent-visits/recent-visits.controller.js +50 -0
  574. package/dist/modules/recent-visits/recent-visits.controller.js.map +1 -0
  575. package/dist/modules/recent-visits/recent-visits.module.d.ts +2 -0
  576. package/dist/modules/recent-visits/recent-visits.module.js +23 -0
  577. package/dist/modules/recent-visits/recent-visits.module.js.map +1 -0
  578. package/dist/modules/recent-visits/recent-visits.service.d.ts +12 -0
  579. package/dist/modules/recent-visits/recent-visits.service.js +53 -0
  580. package/dist/modules/recent-visits/recent-visits.service.js.map +1 -0
  581. package/dist/modules/sidebar-preferences/sidebar-preferences.controller.d.ts +47 -0
  582. package/dist/modules/sidebar-preferences/sidebar-preferences.controller.js +38 -0
  583. package/dist/modules/sidebar-preferences/sidebar-preferences.controller.js.map +1 -0
  584. package/dist/modules/sidebar-preferences/sidebar-preferences.module.d.ts +2 -0
  585. package/dist/modules/sidebar-preferences/sidebar-preferences.module.js +23 -0
  586. package/dist/modules/sidebar-preferences/sidebar-preferences.module.js.map +1 -0
  587. package/dist/modules/sidebar-preferences/sidebar-preferences.service.d.ts +49 -0
  588. package/dist/modules/sidebar-preferences/sidebar-preferences.service.js +27 -0
  589. package/dist/modules/sidebar-preferences/sidebar-preferences.service.js.map +1 -0
  590. package/dist/modules/states/dto/create-state.dto.d.ts +7 -0
  591. package/dist/modules/states/dto/create-state.dto.js +42 -0
  592. package/dist/modules/states/dto/create-state.dto.js.map +1 -0
  593. package/dist/modules/states/dto/index.d.ts +1 -0
  594. package/dist/modules/states/dto/index.js +18 -0
  595. package/dist/modules/states/dto/index.js.map +1 -0
  596. package/dist/modules/states/states.controller.d.ts +27 -0
  597. package/dist/modules/states/states.controller.js +85 -0
  598. package/dist/modules/states/states.controller.js.map +1 -0
  599. package/dist/modules/states/states.module.d.ts +2 -0
  600. package/dist/modules/states/states.module.js +23 -0
  601. package/dist/modules/states/states.module.js.map +1 -0
  602. package/dist/modules/states/states.service.d.ts +33 -0
  603. package/dist/modules/states/states.service.js +99 -0
  604. package/dist/modules/states/states.service.js.map +1 -0
  605. package/dist/modules/subscription/subscription.module.d.ts +2 -0
  606. package/dist/modules/subscription/subscription.module.js +21 -0
  607. package/dist/modules/subscription/subscription.module.js.map +1 -0
  608. package/dist/modules/subscription/subscription.service.d.ts +32 -0
  609. package/dist/modules/subscription/subscription.service.js +98 -0
  610. package/dist/modules/subscription/subscription.service.js.map +1 -0
  611. package/dist/modules/timezones/timezones.controller.d.ts +10 -0
  612. package/dist/modules/timezones/timezones.controller.js +34 -0
  613. package/dist/modules/timezones/timezones.controller.js.map +1 -0
  614. package/dist/modules/timezones/timezones.module.d.ts +2 -0
  615. package/dist/modules/timezones/timezones.module.js +26 -0
  616. package/dist/modules/timezones/timezones.module.js.map +1 -0
  617. package/dist/modules/user/dto/check-exist-user.dto.d.ts +10 -0
  618. package/dist/modules/user/dto/check-exist-user.dto.js +13 -0
  619. package/dist/modules/user/dto/check-exist-user.dto.js.map +1 -0
  620. package/dist/modules/user/dto/include-teams.dto.d.ts +3 -0
  621. package/dist/modules/user/dto/include-teams.dto.js +24 -0
  622. package/dist/modules/user/dto/include-teams.dto.js.map +1 -0
  623. package/dist/modules/user/dto/index.d.ts +6 -0
  624. package/dist/modules/user/dto/index.js +23 -0
  625. package/dist/modules/user/dto/index.js.map +1 -0
  626. package/dist/modules/user/dto/user-code.dto.d.ts +7 -0
  627. package/dist/modules/user/dto/user-code.dto.js +28 -0
  628. package/dist/modules/user/dto/user-code.dto.js.map +1 -0
  629. package/dist/modules/user/dto/user-email.dto.d.ts +7 -0
  630. package/dist/modules/user/dto/user-email.dto.js +27 -0
  631. package/dist/modules/user/dto/user-email.dto.js.map +1 -0
  632. package/dist/modules/user/dto/user-password.dto.d.ts +7 -0
  633. package/dist/modules/user/dto/user-password.dto.js +27 -0
  634. package/dist/modules/user/dto/user-password.dto.js.map +1 -0
  635. package/dist/modules/user/dto/user-token.dto.d.ts +7 -0
  636. package/dist/modules/user/dto/user-token.dto.js +27 -0
  637. package/dist/modules/user/dto/user-token.dto.js.map +1 -0
  638. package/dist/modules/user/user.controller.d.ts +79 -0
  639. package/dist/modules/user/user.controller.js +109 -0
  640. package/dist/modules/user/user.controller.js.map +1 -0
  641. package/dist/modules/user/user.module.d.ts +2 -0
  642. package/dist/modules/user/user.module.js +29 -0
  643. package/dist/modules/user/user.module.js.map +1 -0
  644. package/dist/modules/user/user.service.d.ts +118 -0
  645. package/dist/modules/user/user.service.js +182 -0
  646. package/dist/modules/user/user.service.js.map +1 -0
  647. package/dist/modules/user-favorites/dto/create-favorite.dto.d.ts +9 -0
  648. package/dist/modules/user-favorites/dto/create-favorite.dto.js +55 -0
  649. package/dist/modules/user-favorites/dto/create-favorite.dto.js.map +1 -0
  650. package/dist/modules/user-favorites/dto/index.d.ts +1 -0
  651. package/dist/modules/user-favorites/dto/index.js +18 -0
  652. package/dist/modules/user-favorites/dto/index.js.map +1 -0
  653. package/dist/modules/user-favorites/user-favorites.controller.d.ts +27 -0
  654. package/dist/modules/user-favorites/user-favorites.controller.js +82 -0
  655. package/dist/modules/user-favorites/user-favorites.controller.js.map +1 -0
  656. package/dist/modules/user-favorites/user-favorites.module.d.ts +2 -0
  657. package/dist/modules/user-favorites/user-favorites.module.js +38 -0
  658. package/dist/modules/user-favorites/user-favorites.module.js.map +1 -0
  659. package/dist/modules/user-favorites/user-favorites.service.d.ts +36 -0
  660. package/dist/modules/user-favorites/user-favorites.service.js +174 -0
  661. package/dist/modules/user-favorites/user-favorites.service.js.map +1 -0
  662. package/dist/modules/views/dto/create-issue-view.dto.d.ts +9 -0
  663. package/dist/modules/views/dto/create-issue-view.dto.js +54 -0
  664. package/dist/modules/views/dto/create-issue-view.dto.js.map +1 -0
  665. package/dist/modules/views/dto/index.d.ts +2 -0
  666. package/dist/modules/views/dto/index.js +19 -0
  667. package/dist/modules/views/dto/index.js.map +1 -0
  668. package/dist/modules/views/dto/update-issue-view.dto.d.ts +6 -0
  669. package/dist/modules/views/dto/update-issue-view.dto.js +9 -0
  670. package/dist/modules/views/dto/update-issue-view.dto.js.map +1 -0
  671. package/dist/modules/views/view.controller.d.ts +45 -0
  672. package/dist/modules/views/view.controller.js +128 -0
  673. package/dist/modules/views/view.controller.js.map +1 -0
  674. package/dist/modules/views/view.module.d.ts +2 -0
  675. package/dist/modules/views/view.module.js +23 -0
  676. package/dist/modules/views/view.module.js.map +1 -0
  677. package/dist/modules/views/view.service.d.ts +55 -0
  678. package/dist/modules/views/view.service.js +158 -0
  679. package/dist/modules/views/view.service.js.map +1 -0
  680. package/dist/modules/views/workspace-view.controller.d.ts +42 -0
  681. package/dist/modules/views/workspace-view.controller.js +120 -0
  682. package/dist/modules/views/workspace-view.controller.js.map +1 -0
  683. package/dist/modules/views/workspace-view.module.d.ts +2 -0
  684. package/dist/modules/views/workspace-view.module.js +28 -0
  685. package/dist/modules/views/workspace-view.module.js.map +1 -0
  686. package/dist/modules/work-items/work-items.controller.d.ts +6 -0
  687. package/dist/modules/work-items/work-items.controller.js +42 -0
  688. package/dist/modules/work-items/work-items.controller.js.map +1 -0
  689. package/dist/modules/work-items/work-items.module.d.ts +2 -0
  690. package/dist/modules/work-items/work-items.module.js +23 -0
  691. package/dist/modules/work-items/work-items.module.js.map +1 -0
  692. package/dist/modules/work-items/work-items.service.d.ts +11 -0
  693. package/dist/modules/work-items/work-items.service.js +45 -0
  694. package/dist/modules/work-items/work-items.service.js.map +1 -0
  695. package/dist/modules/workspace/dto/create-workspace.dto.d.ts +13 -0
  696. package/dist/modules/workspace/dto/create-workspace.dto.js +48 -0
  697. package/dist/modules/workspace/dto/create-workspace.dto.js.map +1 -0
  698. package/dist/modules/workspace/dto/index.d.ts +0 -0
  699. package/dist/modules/workspace/dto/index.js +2 -0
  700. package/dist/modules/workspace/dto/index.js.map +1 -0
  701. package/dist/modules/workspace/workspace-context.service.d.ts +13 -0
  702. package/dist/modules/workspace/workspace-context.service.js +35 -0
  703. package/dist/modules/workspace/workspace-context.service.js.map +1 -0
  704. package/dist/modules/workspace/workspace.controller.d.ts +292 -0
  705. package/dist/modules/workspace/workspace.controller.js +758 -0
  706. package/dist/modules/workspace/workspace.controller.js.map +1 -0
  707. package/dist/modules/workspace/workspace.middleware.d.ts +5 -0
  708. package/dist/modules/workspace/workspace.middleware.js +32 -0
  709. package/dist/modules/workspace/workspace.middleware.js.map +1 -0
  710. package/dist/modules/workspace/workspace.module.d.ts +2 -0
  711. package/dist/modules/workspace/workspace.module.js +49 -0
  712. package/dist/modules/workspace/workspace.module.js.map +1 -0
  713. package/dist/modules/workspace/workspace.service.d.ts +475 -0
  714. package/dist/modules/workspace/workspace.service.js +1266 -0
  715. package/dist/modules/workspace/workspace.service.js.map +1 -0
  716. package/dist/modules/workspace/workspaces.controller.d.ts +13 -0
  717. package/dist/modules/workspace/workspaces.controller.js +57 -0
  718. package/dist/modules/workspace/workspaces.controller.js.map +1 -0
  719. package/dist/modules/workspace/workspaces.module.d.ts +2 -0
  720. package/dist/modules/workspace/workspaces.module.js +29 -0
  721. package/dist/modules/workspace/workspaces.module.js.map +1 -0
  722. package/dist/modules/workspace/workspaces.service.d.ts +15 -0
  723. package/dist/modules/workspace/workspaces.service.js +52 -0
  724. package/dist/modules/workspace/workspaces.service.js.map +1 -0
  725. package/dist/modules/workspace-slug/workspace-slug.controller.d.ts +6 -0
  726. package/dist/modules/workspace-slug/workspace-slug.controller.js +37 -0
  727. package/dist/modules/workspace-slug/workspace-slug.controller.js.map +1 -0
  728. package/dist/modules/workspace-slug/workspace-slug.module.d.ts +2 -0
  729. package/dist/modules/workspace-slug/workspace-slug.module.js +26 -0
  730. package/dist/modules/workspace-slug/workspace-slug.module.js.map +1 -0
  731. package/dist/mount.d.ts +51 -0
  732. package/dist/mount.js +194 -0
  733. package/dist/mount.js.map +1 -0
  734. package/dist/plane-config.registry.d.ts +31 -0
  735. package/dist/plane-config.registry.js +91 -0
  736. package/dist/plane-config.registry.js.map +1 -0
  737. package/dist/plane-plugin-options.interface.d.ts +70 -0
  738. package/dist/plane-plugin-options.interface.js +5 -0
  739. package/dist/plane-plugin-options.interface.js.map +1 -0
  740. package/dist/plane-proxy.module.d.ts +16 -0
  741. package/dist/plane-proxy.module.js +176 -0
  742. package/dist/plane-proxy.module.js.map +1 -0
  743. package/package.json +109 -0
@@ -0,0 +1,278 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var AuthController_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AuthController = void 0;
17
+ const common_1 = require("@nestjs/common");
18
+ const swagger_1 = require("@nestjs/swagger");
19
+ const plugin_integration_plane_models_1 = require("@ever-gauzy/plugin-integration-plane-models");
20
+ const auth_service_1 = require("./auth.service");
21
+ const config_1 = require("../../config");
22
+ const auth_guard_1 = require("./auth.guard");
23
+ const dto_1 = require("../user/dto");
24
+ let AuthController = AuthController_1 = class AuthController {
25
+ constructor(_authService) {
26
+ this._authService = _authService;
27
+ this.logger = new common_1.Logger(AuthController_1.name);
28
+ }
29
+ async checkExistingUser(input) {
30
+ return await this._authService.checkExistingUser(input);
31
+ }
32
+ async checkExistingUserSpaces(input) {
33
+ return await this._authService.checkExistingUser(input);
34
+ }
35
+ async getCsrfToken() {
36
+ return await this._authService.getCsrfToken();
37
+ }
38
+ async signIn(req, res, data, queryNextPath) {
39
+ return await this._authService.handleSignIn(req, res, data, queryNextPath);
40
+ }
41
+ async spacesSignIn(req, res, data, queryNextPath) {
42
+ return await this._authService.handleSignIn(req, res, data, queryNextPath, 'spaces');
43
+ }
44
+ async magicSignin(req, res, data, queryNextPath) {
45
+ return await this._authService.handleMagicSignIn(req, res, data, queryNextPath);
46
+ }
47
+ async spacesMagicSignin(req, res, data, queryNextPath) {
48
+ return await this._authService.handleMagicSignIn(req, res, data, queryNextPath, 'spaces');
49
+ }
50
+ async signout(res, req) {
51
+ (0, config_1.clearTokenChuncks)(req, res);
52
+ return res.redirect(req.headers.referer);
53
+ }
54
+ async spacesSignout(res, req) {
55
+ (0, config_1.clearTokenChuncks)(req, res);
56
+ return res.redirect(`${req.headers.referer}spaces`);
57
+ }
58
+ async signUp(req, res, data) {
59
+ var _a, _b;
60
+ try {
61
+ // 1. Attempt to register the new user
62
+ const user = await this._authService.signUp(data);
63
+ if (user) {
64
+ // 2. If registration is successful, sign in the user for onboarding process
65
+ const result = await this._authService.signIn({
66
+ email: user.email,
67
+ password: data.password
68
+ });
69
+ if (result.user) {
70
+ // 3. Onboard the tenant using the user's email as the tenant name
71
+ let tenant;
72
+ try {
73
+ tenant = await this._authService.onboardTenant({
74
+ name: data.email.split('@')[0]
75
+ }, result.token);
76
+ }
77
+ catch (error) {
78
+ this.logger.error('Error when creating new Tenant', error instanceof Error ? error.stack : String(error));
79
+ }
80
+ // 4. Re-login to get fresh tokens with new tenant/role context
81
+ // (the original refresh_token JWT is now stale after onboardTenant changed user's tenantId/roleId)
82
+ let freshLogin = await this._authService.signIn({
83
+ email: user.email,
84
+ password: data.password
85
+ });
86
+ // 5. Create an organization for the tenant
87
+ let organization;
88
+ try {
89
+ organization =
90
+ await this._authService.signUpCreateOrganization({
91
+ name: data.email.split('@')[0],
92
+ currency: plugin_integration_plane_models_1.CurrenciesEnum.USD,
93
+ tenantId: tenant.id
94
+ }, freshLogin.token, tenant.id);
95
+ }
96
+ catch (error) {
97
+ this.logger.error('Error when creating new default Organization', error);
98
+ }
99
+ // 6. Create an employee record for the user within the created organization
100
+ try {
101
+ await this._authService.signUpCreateEmployee({
102
+ userId: user.id,
103
+ organizationId: organization.id,
104
+ tenantId: tenant.id
105
+ }, freshLogin.token, tenant.id);
106
+ }
107
+ catch (error) {
108
+ this.logger.error('Error when creating Employee', error instanceof Error ? error.stack : String(error));
109
+ }
110
+ // 7. Re-login again to get tokens that include the new employee context
111
+ freshLogin = await this._authService.signIn({
112
+ email: user.email,
113
+ password: data.password
114
+ });
115
+ // 8. Split the token into chunks and set cookies for the user
116
+ (0, config_1.clearTokenChuncks)(req, res);
117
+ (0, config_1.sendTokenChunks)(freshLogin.token, res);
118
+ // 9. Redirect the user to the onboarding page
119
+ return res.redirect(`${req.headers.referer}onboarding`);
120
+ }
121
+ }
122
+ // 10. Redirect to error page if user registration fails
123
+ return res.redirect(`${req.headers.referer}?error_code=INVALID_EMAIL_SIGN_UP&error_message=INVALID_EMAIL_SIGN_UP`);
124
+ }
125
+ catch (error) {
126
+ // Log any errors that occur during the sign-up process
127
+ this.logger.error(`Sign-up error: ${((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message) || error.message}`, error.stack);
128
+ }
129
+ }
130
+ async magicGenerate(input) {
131
+ return await this._authService.magicGenerate(input);
132
+ }
133
+ async spacesMagicGenerate(input) {
134
+ return await this._authService.magicGenerate(input);
135
+ }
136
+ };
137
+ exports.AuthController = AuthController;
138
+ __decorate([
139
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
140
+ (0, swagger_1.ApiOperation)({ summary: 'Check email' }),
141
+ (0, common_1.Post)('email-check'),
142
+ (0, auth_guard_1.Public)(),
143
+ __param(0, (0, common_1.Body)()),
144
+ __metadata("design:type", Function),
145
+ __metadata("design:paramtypes", [dto_1.CheckExistUserDTO]),
146
+ __metadata("design:returntype", Promise)
147
+ ], AuthController.prototype, "checkExistingUser", null);
148
+ __decorate([
149
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
150
+ (0, swagger_1.ApiOperation)({ summary: 'Check email' }),
151
+ (0, common_1.Post)('spaces/email-check'),
152
+ (0, auth_guard_1.Public)(),
153
+ __param(0, (0, common_1.Body)()),
154
+ __metadata("design:type", Function),
155
+ __metadata("design:paramtypes", [dto_1.CheckExistUserDTO]),
156
+ __metadata("design:returntype", Promise)
157
+ ], AuthController.prototype, "checkExistingUserSpaces", null);
158
+ __decorate([
159
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
160
+ (0, swagger_1.ApiOperation)({ summary: 'Get csrf_token' }),
161
+ (0, common_1.Get)('get-csrf-token'),
162
+ (0, auth_guard_1.Public)(),
163
+ __metadata("design:type", Function),
164
+ __metadata("design:paramtypes", []),
165
+ __metadata("design:returntype", Promise)
166
+ ], AuthController.prototype, "getCsrfToken", null);
167
+ __decorate([
168
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
169
+ (0, swagger_1.ApiOperation)({ summary: 'Sign in' }),
170
+ (0, common_1.Post)('sign-in'),
171
+ (0, auth_guard_1.Public)(),
172
+ __param(0, (0, common_1.Req)()),
173
+ __param(1, (0, common_1.Res)()),
174
+ __param(2, (0, common_1.Body)()),
175
+ __param(3, (0, common_1.Query)('next_path')),
176
+ __metadata("design:type", Function),
177
+ __metadata("design:paramtypes", [Object, Object, Object, String]),
178
+ __metadata("design:returntype", Promise)
179
+ ], AuthController.prototype, "signIn", null);
180
+ __decorate([
181
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
182
+ (0, swagger_1.ApiOperation)({ summary: 'Sign in' }),
183
+ (0, common_1.Post)('spaces/sign-in'),
184
+ (0, auth_guard_1.Public)(),
185
+ __param(0, (0, common_1.Req)()),
186
+ __param(1, (0, common_1.Res)()),
187
+ __param(2, (0, common_1.Body)()),
188
+ __param(3, (0, common_1.Query)('next_path')),
189
+ __metadata("design:type", Function),
190
+ __metadata("design:paramtypes", [Object, Object, Object, String]),
191
+ __metadata("design:returntype", Promise)
192
+ ], AuthController.prototype, "spacesSignIn", null);
193
+ __decorate([
194
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
195
+ (0, swagger_1.ApiOperation)({ summary: 'Magic signin' }),
196
+ (0, common_1.Post)('magic-sign-in'),
197
+ (0, auth_guard_1.Public)(),
198
+ __param(0, (0, common_1.Req)()),
199
+ __param(1, (0, common_1.Res)()),
200
+ __param(2, (0, common_1.Body)()),
201
+ __param(3, (0, common_1.Query)('next_path')),
202
+ __metadata("design:type", Function),
203
+ __metadata("design:paramtypes", [Object, Object, Object, String]),
204
+ __metadata("design:returntype", Promise)
205
+ ], AuthController.prototype, "magicSignin", null);
206
+ __decorate([
207
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
208
+ (0, swagger_1.ApiOperation)({ summary: 'Magic signin' }),
209
+ (0, common_1.Post)('spaces/magic-sign-in'),
210
+ (0, auth_guard_1.Public)(),
211
+ __param(0, (0, common_1.Req)()),
212
+ __param(1, (0, common_1.Res)()),
213
+ __param(2, (0, common_1.Body)()),
214
+ __param(3, (0, common_1.Query)('next_path')),
215
+ __metadata("design:type", Function),
216
+ __metadata("design:paramtypes", [Object, Object, Object, String]),
217
+ __metadata("design:returntype", Promise)
218
+ ], AuthController.prototype, "spacesMagicSignin", null);
219
+ __decorate([
220
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
221
+ (0, swagger_1.ApiOperation)({ summary: 'Sign out' }),
222
+ (0, common_1.Post)('sign-out'),
223
+ (0, auth_guard_1.Public)(),
224
+ __param(0, (0, common_1.Res)()),
225
+ __param(1, (0, common_1.Req)()),
226
+ __metadata("design:type", Function),
227
+ __metadata("design:paramtypes", [Object, Object]),
228
+ __metadata("design:returntype", Promise)
229
+ ], AuthController.prototype, "signout", null);
230
+ __decorate([
231
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
232
+ (0, swagger_1.ApiOperation)({ summary: 'Spaces sign out' }),
233
+ (0, common_1.Post)('spaces/sign-out'),
234
+ (0, auth_guard_1.Public)(),
235
+ __param(0, (0, common_1.Res)()),
236
+ __param(1, (0, common_1.Req)()),
237
+ __metadata("design:type", Function),
238
+ __metadata("design:paramtypes", [Object, Object]),
239
+ __metadata("design:returntype", Promise)
240
+ ], AuthController.prototype, "spacesSignout", null);
241
+ __decorate([
242
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
243
+ (0, swagger_1.ApiOperation)({ summary: 'Sign up' }),
244
+ (0, common_1.Post)('sign-up'),
245
+ (0, auth_guard_1.Public)(),
246
+ __param(0, (0, common_1.Req)()),
247
+ __param(1, (0, common_1.Res)()),
248
+ __param(2, (0, common_1.Body)()),
249
+ __metadata("design:type", Function),
250
+ __metadata("design:paramtypes", [Object, Object, Object]),
251
+ __metadata("design:returntype", Promise)
252
+ ], AuthController.prototype, "signUp", null);
253
+ __decorate([
254
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
255
+ (0, swagger_1.ApiOperation)({ summary: 'Magic generate' }),
256
+ (0, common_1.Post)('magic-generate'),
257
+ (0, auth_guard_1.Public)(),
258
+ __param(0, (0, common_1.Body)()),
259
+ __metadata("design:type", Function),
260
+ __metadata("design:paramtypes", [dto_1.UserEmailDTO]),
261
+ __metadata("design:returntype", Promise)
262
+ ], AuthController.prototype, "magicGenerate", null);
263
+ __decorate([
264
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
265
+ (0, swagger_1.ApiOperation)({ summary: 'Spaces magic generate' }),
266
+ (0, common_1.Post)('spaces/magic-generate'),
267
+ (0, auth_guard_1.Public)(),
268
+ __param(0, (0, common_1.Body)()),
269
+ __metadata("design:type", Function),
270
+ __metadata("design:paramtypes", [dto_1.UserEmailDTO]),
271
+ __metadata("design:returntype", Promise)
272
+ ], AuthController.prototype, "spacesMagicGenerate", null);
273
+ exports.AuthController = AuthController = AuthController_1 = __decorate([
274
+ (0, swagger_1.ApiTags)('Authentication routes'),
275
+ (0, common_1.Controller)(),
276
+ __metadata("design:paramtypes", [auth_service_1.AuthService])
277
+ ], AuthController);
278
+ //# sourceMappingURL=auth.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../../../packages/plugin-plane/src/modules/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2C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0 +1,9 @@
1
+ import { CanActivate, ExecutionContext } from '@nestjs/common';
2
+ import { Reflector } from '@nestjs/core';
3
+ export declare const IS_PUBLIC_KEY = "isPublic";
4
+ export declare const Public: () => import("@nestjs/common").CustomDecorator<string>;
5
+ export declare class AuthGuard implements CanActivate {
6
+ private reflector;
7
+ constructor(reflector: Reflector);
8
+ canActivate(context: ExecutionContext): boolean;
9
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AuthGuard = exports.Public = exports.IS_PUBLIC_KEY = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const core_1 = require("@nestjs/core");
15
+ exports.IS_PUBLIC_KEY = 'isPublic';
16
+ const Public = () => (0, common_1.SetMetadata)(exports.IS_PUBLIC_KEY, true);
17
+ exports.Public = Public;
18
+ let AuthGuard = class AuthGuard {
19
+ constructor(reflector) {
20
+ this.reflector = reflector;
21
+ }
22
+ canActivate(context) {
23
+ // Check if route is marked as public
24
+ const isPublic = this.reflector.getAllAndOverride(exports.IS_PUBLIC_KEY, [
25
+ context.getHandler(),
26
+ context.getClass(),
27
+ ]);
28
+ if (isPublic) {
29
+ return true;
30
+ }
31
+ const request = context.switchToHttp().getRequest();
32
+ const response = context.switchToHttp().getResponse();
33
+ const tokenChunks = [];
34
+ let index = 0;
35
+ while (request.cookies[`auth-proxy-plane-token-${index}`]) {
36
+ tokenChunks.push(request.cookies[`auth-proxy-plane-token-${index}`]);
37
+ index++;
38
+ }
39
+ const token = tokenChunks.join('');
40
+ if (!token) {
41
+ response.redirect(request.headers.referer);
42
+ return false;
43
+ }
44
+ return true;
45
+ }
46
+ };
47
+ exports.AuthGuard = AuthGuard;
48
+ exports.AuthGuard = AuthGuard = __decorate([
49
+ (0, common_1.Injectable)(),
50
+ __metadata("design:paramtypes", [core_1.Reflector])
51
+ ], AuthGuard);
52
+ //# sourceMappingURL=auth.guard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.guard.js","sourceRoot":"","sources":["../../../../../../packages/plugin-plane/src/modules/auth/auth.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAKwB;AACxB,uCAAyC;AAG5B,QAAA,aAAa,GAAG,UAAU,CAAC;AACjC,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,IAAA,oBAAW,EAAC,qBAAa,EAAE,IAAI,CAAC,CAAC;AAAhD,QAAA,MAAM,UAA0C;AAGtD,IAAM,SAAS,GAAf,MAAM,SAAS;IACrB,YAAoB,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;IAAG,CAAC;IAE5C,WAAW,CAAC,OAAyB;QACpC,qCAAqC;QACrC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAU,qBAAa,EAAE;YACzE,OAAO,CAAC,UAAU,EAAE;YACpB,OAAO,CAAC,QAAQ,EAAE;SAClB,CAAC,CAAC;QAEH,IAAI,QAAQ,EAAE,CAAC;YACd,OAAO,IAAI,CAAC;QACb,CAAC;QAED,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAAW,CAAC;QAC7D,MAAM,QAAQ,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,WAAW,EAAY,CAAC;QAEhE,MAAM,WAAW,GAAa,EAAE,CAAC;QACjC,IAAI,KAAK,GAAG,CAAC,CAAC;QAEd,OAAO,OAAO,CAAC,OAAO,CAAC,0BAA0B,KAAK,EAAE,CAAC,EAAE,CAAC;YAC3D,WAAW,CAAC,IAAI,CACf,OAAO,CAAC,OAAO,CAAC,0BAA0B,KAAK,EAAE,CAAC,CAClD,CAAC;YACF,KAAK,EAAE,CAAC;QACT,CAAC;QAED,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAEnC,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,OAAQ,CAAC,CAAC;YAC5C,OAAO,KAAK,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AApCY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;qCAEmB,gBAAS;GAD5B,SAAS,CAoCrB"}
@@ -0,0 +1,2 @@
1
+ export declare class AuthModule {
2
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.AuthModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const core_1 = require("@nestjs/core");
12
+ const auth_service_1 = require("./auth.service");
13
+ const auth_controller_1 = require("./auth.controller");
14
+ const user_module_1 = require("../user/user.module");
15
+ const employee_properties_module_1 = require("../employee-properties/employee-properties.module");
16
+ let AuthModule = class AuthModule {
17
+ };
18
+ exports.AuthModule = AuthModule;
19
+ exports.AuthModule = AuthModule = __decorate([
20
+ (0, common_1.Module)({
21
+ imports: [
22
+ core_1.RouterModule.register([{ path: '/auth', module: AuthModule }]),
23
+ user_module_1.UserModule,
24
+ employee_properties_module_1.EmployeePropertiesModule
25
+ ],
26
+ providers: [auth_service_1.AuthService],
27
+ controllers: [auth_controller_1.AuthController]
28
+ })
29
+ ], AuthModule);
30
+ //# sourceMappingURL=auth.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../../../../packages/plugin-plane/src/modules/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uCAA4C;AAC5C,iDAA6C;AAC7C,uDAAmD;AACnD,qDAAiD;AACjD,kGAA6F;AAWtF,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IATtB,IAAA,eAAM,EAAC;QACP,OAAO,EAAE;YACR,mBAAY,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;YAC9D,wBAAU;YACV,qDAAwB;SACxB;QACD,SAAS,EAAE,CAAC,0BAAW,CAAC;QACxB,WAAW,EAAE,CAAC,gCAAc,CAAC;KAC7B,CAAC;GACW,UAAU,CAAG"}
@@ -0,0 +1,133 @@
1
+ import { Request, Response } from 'express';
2
+ import { IAuthResponse, ICheckUserExist, ID, IEmailInput, IEmployee, IEmployeeCreateInput, IMagicGenerateResponse, IOrganization, IOrganizationCreateInput, IPasswordInput, ITenant, ITenantCreateInput, IUser, IUserCodeInput, IUserEmailInput, IUserLoginInput, IUserRegisterInput } from '@ever-gauzy/plugin-integration-plane-models';
3
+ import { ApiFetchService } from '../api-fetch/api-fetch.service';
4
+ import { UserService } from '../user/user.service';
5
+ import { EmployeePropertiesService } from '../employee-properties/employee-properties.service';
6
+ export declare class AuthService extends ApiFetchService {
7
+ private readonly _userService;
8
+ private readonly _employeePropertiesService;
9
+ private readonly _serverFetchService;
10
+ constructor(_userService: UserService, _employeePropertiesService: EmployeePropertiesService, _serverFetchService: ApiFetchService);
11
+ private path;
12
+ /**
13
+ * Checks if a user exists based on their email. It sends a request to the email-check endpoint
14
+ * and determines the user's existence and the authentication method required.
15
+ *
16
+ * @param {IEmailInput & Partial<IPasswordInput>} input - The input containing the user's email and optionally their password.
17
+ * @returns {Promise<ICheckUserExist>} A promise resolving to an object indicating whether the user exists and the authentication status.
18
+ *
19
+ * @throws {Error} Logs the error and returns a default response if the API request fails.
20
+ */
21
+ checkExistingUser(input: IEmailInput & Partial<IPasswordInput>): Promise<ICheckUserExist>;
22
+ /**
23
+ * Authenticates a user by sending their login credentials to the server.
24
+ *
25
+ * @async
26
+ * @param {IUserLoginInput} credentials - The user's login credentials, including email and password.
27
+ * @returns {Promise<IAuthResponse | null>} A promise that resolves to the authentication response or `null` in case of an error.
28
+ *
29
+ * @throws {any} Returns the caught error if the API request fails.
30
+ */
31
+ signIn(credentials: IUserLoginInput): Promise<IAuthResponse | null>;
32
+ /**
33
+ * Handles the sign-in process including token management and redirection.
34
+ *
35
+ * @param {Request} req - The Express request object.
36
+ * @param {Response} res - The Express response object.
37
+ * @param {IUserLoginInput & { next_path?: string }} data - The login input data with optional next_path.
38
+ * @param {string} [queryNextPath] - Optional next path from query parameters.
39
+ * @returns {Promise<void>}
40
+ */
41
+ handleSignIn(req: Request, res: Response, data: IUserLoginInput & {
42
+ next_path?: string;
43
+ }, queryNextPath?: string, customRedirectPath?: string): Promise<void>;
44
+ /**
45
+ * Registers a new user by sending their details to the server.
46
+ *
47
+ * @param {IUserRegisterInput} input - The input containing the user's details.
48
+ * @returns {Promise<IUser>} A promise resolving to the created user object.
49
+ *
50
+ * @throws {BadRequestException} Throws an exception if the API request fails.
51
+ */
52
+ signUp(input: IUserRegisterInput): Promise<IUser>;
53
+ /**
54
+ * Generates a magic key for a user by sending their email to the server.
55
+ *
56
+ * @param {IUserEmailInput} input - The input containing the user's email.
57
+ * @returns {Promise<IMagicGenerateResponse>} A promise resolving to the magic key.
58
+ *
59
+ * @throws {BadRequestException} Throws an exception if the API request fails.
60
+ */
61
+ magicGenerate(input: IUserEmailInput): Promise<IMagicGenerateResponse>;
62
+ /**
63
+ * Confirms a magic signin by sending the user's email and code to the server.
64
+ *
65
+ * @param {IUserEmailInput & IUserCodeInput} input - The input containing the user's email and code.
66
+ * @returns {Promise<IUserSigninWorkspaceResponse>} A promise resolving to the user's signin workspace response.
67
+ *
68
+ * @throws {BadRequestException} Throws an exception if the API request fails.
69
+ */
70
+ magicSignin(input: IUserEmailInput & IUserCodeInput): Promise<IAuthResponse>;
71
+ /**
72
+ * Handles the magic sign-in process including token management and redirection.
73
+ *
74
+ * @param {Request} req - The Express request object.
75
+ * @param {Response} res - The Express response object.
76
+ * @param {IUserEmailInput & IUserCodeInput & { next_path?: string }} data - The magic sign-in input data with optional next_path.
77
+ * @param {string} [queryNextPath] - Optional next path from query parameters.
78
+ * @param {string} [customRedirectPath] - Optional custom redirect path.
79
+ * @returns {Promise<void>}
80
+ */
81
+ handleMagicSignIn(req: Request, res: Response, data: IUserEmailInput & IUserCodeInput & {
82
+ next_path?: string;
83
+ }, queryNextPath?: string, customRedirectPath?: string): Promise<void>;
84
+ /**
85
+ * Initiates the onboarding process for a new tenant by sending its details to the server.
86
+ *
87
+ * @param {ITenantCreateInput} input - The input containing the tenant's details.
88
+ * @param {string} token - The bearer token for authentication.
89
+ * @returns {Promise<ITenant>} A promise resolving to the created tenant object.
90
+ *
91
+ * @throws {BadRequestException} Throws an exception if the API request fails.
92
+ */
93
+ onboardTenant(input: ITenantCreateInput, token: string): Promise<ITenant>;
94
+ /**
95
+ * Refreshes the user's authentication token using a provided refresh token.
96
+ *
97
+ * @param {string} refreshToken - The refresh token to be used for obtaining a new token.
98
+ * @param {string} token - The bearer token for authentication.
99
+ * @returns {Promise<{ token: string } | null>} A promise resolving to an object containing the new token or `null` if the request fails.
100
+ *
101
+ * @throws {BadRequestException} Throws an exception if the API request fails.
102
+ */
103
+ refreshToken(refreshToken: string, token: string): Promise<{
104
+ token: string;
105
+ } | null>;
106
+ /**
107
+ * Creates a new organization by sending its details to the server.
108
+ *
109
+ * @param {IOrganizationCreateInput} input - The input containing the organization's details.
110
+ * @param {string} token - The bearer token for authentication.
111
+ * @returns {Promise<IOrganization>} A promise resolving to the created organization object.
112
+ *
113
+ * @throws {BadRequestException} Throws an exception if the API request fails.
114
+ */
115
+ signUpCreateOrganization(input: IOrganizationCreateInput, token: string, tenantId?: ID): Promise<IOrganization>;
116
+ /**
117
+ * Creates a new employee by sending their details to the server.
118
+ *
119
+ * @param {IEmployeeCreateInput} input - The input containing the employee's details.
120
+ * @param {string} token - The bearer token for authentication.
121
+ * @returns {Promise<IEmployee>} A promise resolving to the created employee object.
122
+ *
123
+ * @throws {BadRequestException} Throws an exception if the API request fails.
124
+ */
125
+ signUpCreateEmployee(input: IEmployeeCreateInput, token: string, tenantId?: ID): Promise<IEmployee>;
126
+ /**
127
+ * @description Get the CSRF token
128
+ * @returns {Promise<{ csrf_token: string }>} The CSRF token
129
+ */
130
+ getCsrfToken(): Promise<{
131
+ csrf_token: string;
132
+ }>;
133
+ }