@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,85 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.parseFilterDate = parseFilterDate;
7
+ const moment_1 = __importDefault(require("moment"));
8
+ // Function to handle relative dates like "1_weeks;after;fromnow" or "2_months;before;fromnow"
9
+ function parseRelativeDate(dateString) {
10
+ const parts = dateString.split(';');
11
+ if (parts.length < 3 || parts.length > 4) {
12
+ throw new Error(`Invalid format for relative date: ${dateString}`);
13
+ }
14
+ const [valueWithUnit, operator, reference] = parts;
15
+ if (reference !== 'fromnow') {
16
+ throw new Error(`Unsupported date reference: ${reference}`);
17
+ }
18
+ const [value, unit] = valueWithUnit.split('_');
19
+ const amount = parseInt(value);
20
+ const validUnits = [
21
+ 'days',
22
+ 'weeks',
23
+ 'months',
24
+ 'years'
25
+ ];
26
+ if (!validUnits.includes(unit)) {
27
+ throw new Error(`Unsupported time unit: ${unit}`);
28
+ }
29
+ let date = (0, moment_1.default)();
30
+ if (operator === 'after') {
31
+ date = date.add(amount, unit); // Add time
32
+ }
33
+ else if (operator === 'before') {
34
+ date = date.subtract(amount, unit); // Subtract time
35
+ }
36
+ else {
37
+ throw new Error(`Unsupported operator: ${operator}`);
38
+ }
39
+ return date.format('YYYY-MM-DD'); // Return formatted date
40
+ }
41
+ // Function to handle specific date formats like "2024-10-09;after"
42
+ function parseSpecificDate(dateString) {
43
+ const parts = dateString.split(';');
44
+ if (parts.length !== 2) {
45
+ throw new Error(`Invalid format for specific date: ${dateString}`);
46
+ }
47
+ const [datePart, operator] = parts;
48
+ const date = (0, moment_1.default)(datePart, 'YYYY-MM-DD'); // Parse date in YYYY-MM-DD format
49
+ if (!date.isValid()) {
50
+ throw new Error(`Invalid date: ${datePart}`);
51
+ }
52
+ if (operator === 'after') {
53
+ return date.add(1, 'days').format('YYYY-MM-DD'); // Return day after
54
+ }
55
+ else if (operator === 'before') {
56
+ return date.subtract(1, 'days').format('YYYY-MM-DD'); // Return day before
57
+ }
58
+ throw new Error(`Unsupported date operator: ${operator}`);
59
+ }
60
+ // Function to handle custom ranges like "today", "yesterday", "last_7_days", "last_30_days"
61
+ function parseCustomDateRange(dateString) {
62
+ switch (dateString) {
63
+ case 'today;custom;custom':
64
+ return (0, moment_1.default)().format('YYYY-MM-DD');
65
+ case 'yesterday;custom;custom':
66
+ return (0, moment_1.default)().subtract(1, 'days').format('YYYY-MM-DD');
67
+ case 'last_7_days;custom;custom':
68
+ return (0, moment_1.default)().subtract(7, 'days').format('YYYY-MM-DD');
69
+ case 'last_30_days;custom;custom':
70
+ return (0, moment_1.default)().subtract(30, 'days').format('YYYY-MM-DD');
71
+ default:
72
+ throw new Error(`Unsupported custom date range: ${dateString}`);
73
+ }
74
+ }
75
+ // Main function to handle all formats
76
+ function parseFilterDate(dateString) {
77
+ if (dateString.includes('fromnow')) {
78
+ return parseRelativeDate(dateString); // Handle relative dates
79
+ }
80
+ if (dateString.includes('custom')) {
81
+ return parseCustomDateRange(dateString); // Handle custom date ranges
82
+ }
83
+ return parseSpecificDate(dateString); // Handle specific dates with before/after
84
+ }
85
+ //# sourceMappingURL=date-range.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-range.helper.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/views/date-range.helper.ts"],"names":[],"mappings":";;;;;AAsFA,0CAQC;AA9FD,oDAA4B;AAE5B,8FAA8F;AAC9F,SAAS,iBAAiB,CAAC,UAAkB;IAC5C,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEpC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,UAAU,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAC,aAAa,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC;IAEnD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC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D;YACC,MAAM,IAAI,KAAK,CAAC,kCAAkC,UAAU,EAAE,CAAC,CAAC;IAClE,CAAC;AACF,CAAC;AAED,sCAAsC;AACtC,SAAgB,eAAe,CAAC,UAAkB;IACjD,IAAI,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QACpC,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,wBAAwB;IAC/D,CAAC;IACD,IAAI,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,4BAA4B;IACtE,CAAC;IACD,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,0CAA0C;AACjF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './view.serializer';
2
+ export * from './date-range.helper';
3
+ export * from './view-id-from-referer.helper';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./view.serializer"), exports);
18
+ __exportStar(require("./date-range.helper"), exports);
19
+ __exportStar(require("./view-id-from-referer.helper"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/views/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,sDAAoC;AACpC,gEAA8C"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Extract the view ID from the views page referer URL.
3
+ *
4
+ * @param {string} referer - The referer URL from the request headers
5
+ * @returns {(string | null)} - Returns the view ID if found, otherwise null
6
+ */
7
+ export declare function extractViewIdFromReferer(referer: string): string | null;
8
+ /**
9
+ * Extract the view ID from the workspace views page referer URL.
10
+ *
11
+ * @param {string} referer - The referer URL from the request headers
12
+ * @returns {(string | null)} - Returns the view ID if found, otherwise null
13
+ */
14
+ export declare function extractWorkspaceViewIdFromReferer(referer: string): string | null;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.extractViewIdFromReferer = extractViewIdFromReferer;
4
+ exports.extractWorkspaceViewIdFromReferer = extractWorkspaceViewIdFromReferer;
5
+ /**
6
+ * Extract the view ID from the views page referer URL.
7
+ *
8
+ * @param {string} referer - The referer URL from the request headers
9
+ * @returns {(string | null)} - Returns the view ID if found, otherwise null
10
+ */
11
+ function extractViewIdFromReferer(referer) {
12
+ const regex = /\/views\/([a-f0-9-]{36})(\/|$)/;
13
+ const match = referer === null || referer === void 0 ? void 0 : referer.match(regex);
14
+ return match && match[1] ? match[1] : null;
15
+ }
16
+ /**
17
+ * Extract the view ID from the workspace views page referer URL.
18
+ *
19
+ * @param {string} referer - The referer URL from the request headers
20
+ * @returns {(string | null)} - Returns the view ID if found, otherwise null
21
+ */
22
+ function extractWorkspaceViewIdFromReferer(referer) {
23
+ const regex = /\/workspace-views\/([a-f0-9-]{36})(\/|$)/;
24
+ const match = referer === null || referer === void 0 ? void 0 : referer.match(regex);
25
+ return match && match[1] ? match[1] : null;
26
+ }
27
+ //# sourceMappingURL=view-id-from-referer.helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-id-from-referer.helper.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/views/view-id-from-referer.helper.ts"],"names":[],"mappings":";;AAMA,4DAIC;AAQD,8EAMC;AAxBD;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAC,OAAe;IACvD,MAAM,KAAK,GAAG,gCAAgC,CAAC;IAC/C,MAAM,KAAK,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpC,OAAO,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5C,CAAC;AAED;;;;;GAKG;AACH,SAAgB,iCAAiC,CAChD,OAAe;IAEf,MAAM,KAAK,GAAG,0CAA0C,CAAC;IACzD,MAAM,KAAK,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpC,OAAO,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { ICreateViewInput, ID, IGetTasksByViewFilters, ITaskView, ITaskViewCreateInput, ITaskViewUpdateInput, IUpdateViewInput, IView } from '@ever-gauzy/plugin-integration-plane-models';
2
+ /**
3
+ * @description Transform filters from incoming Body Request To 'queryParams' To be sent to external API
4
+ * @param {ICreateViewInput['filters']} filters - Accepted filters for quering data
5
+ * @returns {IGetTasksByViewFilters} - A transformed object that matched external API naming
6
+ */
7
+ export declare function filtersToQueryParams(filters: ICreateViewInput['filters'] | ICreateViewInput['rich_filters']): IGetTasksByViewFilters;
8
+ /**
9
+ * @description Transform queryParams from external API Response to 'filters' for internal use
10
+ * @param {IGetTasksByViewFilters} queryParams - The transformed object from external API
11
+ * @returns {ICreateViewInput['filters']} - An object that matches internal API naming
12
+ */
13
+ export declare function queryParamsToFilters(queryParams: IGetTasksByViewFilters): ICreateViewInput['filters'];
14
+ /**
15
+ * @description Transform create data from incoming body request to accepted naming of external API
16
+ * @param {ICreateViewInput} view - Incoming Body Request
17
+ * @param {ID} [organizationId] - Optional Organization ID (If view belongs to specific Organization)
18
+ * @param {ID} [projectId] - Optional Project ID (If view belongs to specific Project)
19
+ * @param {ID} [moduleId] - Optional Module ID (If view belongs to specific Module)
20
+ * @param {ID} [sprintId] - Optional Sprint ID (If view belongs to specific Sprint)
21
+ * @returns {ITaskViewCreateInput} A transformed body request
22
+ */
23
+ export declare function createViewInputTransformer(view: ICreateViewInput, projectId?: ID, organizationId?: ID, moduleId?: ID, sprintId?: ID): ITaskViewCreateInput;
24
+ /**
25
+ * @description Transform update data from incoming body request to accepted naming of external API
26
+ * @param {IUpdateViewInput} view - Incoming Body Request
27
+ * @param {ID} [organizationId] - Optional Organization ID (If view belongs to specific Organization)
28
+ * @param {ID} [projectId] - Optional Project ID (If view belongs to specific Project)
29
+ * @param {ID} [moduleId] - Optional Module ID (If view belongs to specific Module)
30
+ * @param {ID} [sprintId] - Optional Sprint ID (If view belongs to specific Sprint)
31
+ * @returns {ITaskViewUpdateInput} A transformed body request
32
+ */
33
+ export declare function updateViewInputTransformer(view: IUpdateViewInput, projectId?: ID, organizationId?: ID, moduleId?: ID, sprintId?: ID): ITaskViewUpdateInput;
34
+ /**
35
+ * @description Transform Task View From external API to issue view for internal use
36
+ * @param {(ITaskView | ITaskView[])} taskViews - External API Task view(s)
37
+ * @param {ID[]} [favoriteIds] - User favorites list
38
+ * @returns {(IView | IView[])} An array of or a single Issue View
39
+ */
40
+ export declare function issueViewTransformer(taskViews: ITaskView | ITaskView[], favoriteIds?: ID[]): IView | IView[];
41
+ export declare const viewRelations: string[];
42
+ /**
43
+ * @description Query params for getting views
44
+ * @param {ID} [projectId] - Optional Project ID to get views by Project filter
45
+ * @returns {Record<string, string>} A object with queries filters and relations
46
+ */
47
+ export declare function getViewsQuery(projectId?: ID, relations?: string[]): Record<string, string>;
@@ -0,0 +1,187 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.viewRelations = void 0;
4
+ exports.filtersToQueryParams = filtersToQueryParams;
5
+ exports.queryParamsToFilters = queryParamsToFilters;
6
+ exports.createViewInputTransformer = createViewInputTransformer;
7
+ exports.updateViewInputTransformer = updateViewInputTransformer;
8
+ exports.issueViewTransformer = issueViewTransformer;
9
+ exports.getViewsQuery = getViewsQuery;
10
+ const plugin_integration_plane_models_1 = require("@ever-gauzy/plugin-integration-plane-models");
11
+ const query_params_serializers_1 = require("../query-params.serializers");
12
+ /**
13
+ * @description Transform filters from incoming Body Request To 'queryParams' To be sent to external API
14
+ * @param {ICreateViewInput['filters']} filters - Accepted filters for quering data
15
+ * @returns {IGetTasksByViewFilters} - A transformed object that matched external API naming
16
+ */
17
+ function filtersToQueryParams(filters) {
18
+ const { assignees = [], created_by = [], cycle = [], cycle_id__in = [], labels = [], module = [], module_id__in = [], state_id__in = [], state_group__in = [], assignee_id__in = [], priority__in = [], label_id__in = [], start_date__exact = [], target_date__exact = [], priority = [], project = [], start_date = [], state = [], state_group = [],
19
+ // subscriber = [], To be added in external API
20
+ target_date = [] } = filters;
21
+ return {
22
+ projects: project,
23
+ modules: module || module_id__in,
24
+ tags: labels || label_id__in,
25
+ statusIds: state || state_id__in,
26
+ statuses: (state_group || state_group__in),
27
+ priorities: (priority || priority__in),
28
+ sprints: cycle_id__in || cycle,
29
+ members: assignees || assignee_id__in,
30
+ startDates: (start_date || start_date__exact).map((date) => new Date(date)),
31
+ dueDates: (target_date || target_date__exact).map((date) => new Date(date)),
32
+ creators: created_by
33
+ };
34
+ }
35
+ /**
36
+ * @description Transform queryParams from external API Response to 'filters' for internal use
37
+ * @param {IGetTasksByViewFilters} queryParams - The transformed object from external API
38
+ * @returns {ICreateViewInput['filters']} - An object that matches internal API naming
39
+ */
40
+ function queryParamsToFilters(queryParams) {
41
+ const { projects = [], modules = [], tags = [], statusIds = [], statuses = [], priorities = [], sprints = [], members = [], startDates = [], dueDates = [], creators = [] } = queryParams;
42
+ return {
43
+ project: projects,
44
+ module: modules,
45
+ module_id__in: modules,
46
+ labels: tags,
47
+ label_id__in: tags,
48
+ state: statusIds,
49
+ state_id__in: statusIds,
50
+ state_in: statusIds,
51
+ state_group: statuses, // assuming statuses are internally handled as strings
52
+ state_group__in: statuses,
53
+ priority: priorities, // assuming priorities are internally handled as strings
54
+ priority__in: priorities,
55
+ cycle: sprints,
56
+ cycle_id__in: sprints,
57
+ assignees: members,
58
+ assignee_id__in: members,
59
+ start_date: startDates,
60
+ start_date__exact: startDates,
61
+ start_date__range: startDates,
62
+ target_date: dueDates,
63
+ target_date__exact: dueDates,
64
+ created_by: creators
65
+ };
66
+ }
67
+ /**
68
+ * @description Transform create data from incoming body request to accepted naming of external API
69
+ * @param {ICreateViewInput} view - Incoming Body Request
70
+ * @param {ID} [organizationId] - Optional Organization ID (If view belongs to specific Organization)
71
+ * @param {ID} [projectId] - Optional Project ID (If view belongs to specific Project)
72
+ * @param {ID} [moduleId] - Optional Module ID (If view belongs to specific Module)
73
+ * @param {ID} [sprintId] - Optional Sprint ID (If view belongs to specific Sprint)
74
+ * @returns {ITaskViewCreateInput} A transformed body request
75
+ */
76
+ function createViewInputTransformer(view, projectId, organizationId, moduleId, sprintId) {
77
+ const { filters, rich_filters, display_filters, display_properties, name, access, description } = view;
78
+ const visibilityLevel = access === 1
79
+ ? plugin_integration_plane_models_1.VisibilityLevelEnum.TEAM_AND_PROJECT
80
+ : plugin_integration_plane_models_1.VisibilityLevelEnum.ORGANIZATION;
81
+ const queryParams = filtersToQueryParams(rich_filters || filters);
82
+ return {
83
+ name,
84
+ description,
85
+ visibilityLevel,
86
+ queryParams,
87
+ filterOptions: rich_filters || filters,
88
+ displayOptions: display_filters,
89
+ properties: display_properties,
90
+ organizationId,
91
+ projectId,
92
+ organizationSprintId: sprintId,
93
+ projectModuleId: moduleId
94
+ };
95
+ }
96
+ /**
97
+ * @description Transform update data from incoming body request to accepted naming of external API
98
+ * @param {IUpdateViewInput} view - Incoming Body Request
99
+ * @param {ID} [organizationId] - Optional Organization ID (If view belongs to specific Organization)
100
+ * @param {ID} [projectId] - Optional Project ID (If view belongs to specific Project)
101
+ * @param {ID} [moduleId] - Optional Module ID (If view belongs to specific Module)
102
+ * @param {ID} [sprintId] - Optional Sprint ID (If view belongs to specific Sprint)
103
+ * @returns {ITaskViewUpdateInput} A transformed body request
104
+ */
105
+ function updateViewInputTransformer(view, projectId, organizationId, moduleId, sprintId) {
106
+ // Default values if some properties are missing
107
+ const defaultView = {
108
+ filters: {},
109
+ rich_filters: {},
110
+ display_filters: {},
111
+ display_properties: {},
112
+ name: view.name
113
+ };
114
+ // Merge partial `view` with default values
115
+ const completeView = Object.assign(Object.assign({}, defaultView), view);
116
+ // Reuse of create transform function
117
+ return createViewInputTransformer(completeView, projectId, moduleId, sprintId, organizationId);
118
+ }
119
+ /**
120
+ * @description Transform Task View From external API to issue view for internal use
121
+ * @param {(ITaskView | ITaskView[])} taskViews - External API Task view(s)
122
+ * @param {ID[]} [favoriteIds] - User favorites list
123
+ * @returns {(IView | IView[])} An array of or a single Issue View
124
+ */
125
+ function issueViewTransformer(taskViews, favoriteIds) {
126
+ const transformIssueView = (taskView) => {
127
+ const isFavorite = favoriteIds === null || favoriteIds === void 0 ? void 0 : favoriteIds.includes(taskView.id);
128
+ return {
129
+ id: taskView.id,
130
+ created_at: taskView.createdAt,
131
+ updated_at: taskView.updatedAt,
132
+ deleted_at: taskView.deletedAt,
133
+ is_favorite: isFavorite,
134
+ name: taskView.name,
135
+ description: taskView.description,
136
+ query: queryParamsToFilters(taskView.queryParams),
137
+ filters: taskView.filterOptions,
138
+ rich_filters: taskView.filterOptions,
139
+ display_filters: taskView.displayOptions,
140
+ display_properties: taskView.properties,
141
+ access: taskView.visibilityLevel, // TODO : Use some transforms here
142
+ sort_order: 9, // TODO : Search for usescase and use right value
143
+ logo_props: {},
144
+ is_locked: taskView.isLocked,
145
+ created_by: '', // TODO : Make sure we have this working
146
+ updated_by: '', // TODO : Make sure we have this working
147
+ workspace: taskView.organizationId,
148
+ project: taskView.projectId,
149
+ owned_by: '' // TODO : Make sure we have this working
150
+ };
151
+ };
152
+ if (Array.isArray(taskViews)) {
153
+ return taskViews.map(transformIssueView);
154
+ }
155
+ return transformIssueView(taskViews);
156
+ }
157
+ exports.viewRelations = [
158
+ 'project',
159
+ 'organizationTeam',
160
+ 'projectModule',
161
+ 'organizationSprint'
162
+ ];
163
+ /**
164
+ * @description Query params for getting views
165
+ * @param {ID} [projectId] - Optional Project ID to get views by Project filter
166
+ * @returns {Record<string, string>} A object with queries filters and relations
167
+ */
168
+ function getViewsQuery(projectId, relations) {
169
+ // Tenant and Organization based Query
170
+ const query = Object.assign({}, (0, query_params_serializers_1.baseGetItemsWhereQuery)());
171
+ if (projectId) {
172
+ query['where[projectId]'] = projectId;
173
+ }
174
+ // Add relations
175
+ if (relations) {
176
+ relations.forEach((relation, i) => {
177
+ query[`relations[${i}]`] = relation;
178
+ });
179
+ }
180
+ else {
181
+ exports.viewRelations.forEach((relation, i) => {
182
+ query[`relations[${i}]`] = relation;
183
+ });
184
+ }
185
+ return query;
186
+ }
187
+ //# sourceMappingURL=view.serializer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view.serializer.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/views/view.serializer.ts"],"names":[],"mappings":";;;AAsBA,oDA4CC;AAOD,oDAyCC;AAWD,gEAqCC;AAWD,gEA2BC;AAQD,oDAwCC;AAcD,sCAyBC;AA/RD,iGAcqD;AACrD,0EAAqE;AAErE;;;;GAIG;AACH,SAAgB,oBAAoB,CACnC,OAAuE;IAEvE,MAAM,EACL,SAAS,GAAG,EAAE,EACd,UAAU,GAAG,EAAE,EACf,KAAK,GAAG,EAAE,EACV,YAAY,GAAG,EAAE,EACjB,MAAM,GAAG,EAAE,EACX,MAAM,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CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE;YACrC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC;QACrC,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './organization.serializer';
2
+ export * from './widgets-filter.helper';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./organization.serializer"), exports);
18
+ __exportStar(require("./widgets-filter.helper"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin-plane/src/config/serializers/workspace-organization/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC"}
@@ -0,0 +1,92 @@
1
+ import { IRole, ITask, IWorkspaceUserInfo, RolesEnum, IUserPriorityDistribution, ID, IOrganizationProject, IUserProjectsDataResponse, IEmployee, IOrganization, ICreateWorkSpace, IOrganizationCreateInput, IWorkspaceInfo } from '@ever-gauzy/plugin-integration-plane-models';
2
+ export declare const getOrganizationQuery: Record<string, string>;
3
+ /**
4
+ * Transforms a role into a numeric role value based on predefined role hierarchy.
5
+ *
6
+ * @param {IRole} role - The role object containing the role name.
7
+ * @returns {number} The corresponding role value. Returns 0 if the role is not recognized.
8
+ */
9
+ export declare function roleTransformer(role: IRole): number;
10
+ /**
11
+ * Maps a numeric role priority to its corresponding role name.
12
+ *
13
+ * @param {number} roleNumber - The numeric representation of a role's priority.
14
+ * @returns {RolesEnum} The corresponding role name from the RolesEnum.
15
+ * Defaults to RolesEnum.VIEWER if not matched.
16
+ */
17
+ export declare function roleNameMap(roleNumber: number): RolesEnum;
18
+ /**
19
+ * Transforms an IOrganization object into a simplified workspace object.
20
+ *
21
+ * This is typically used to expose minimal workspace details in APIs or UI components.
22
+ *
23
+ * @param organization - The organization to transform.
24
+ * @returns An object representing the workspace with id, name, and slug.
25
+ */
26
+ export declare function workspaceTransformer(organization: IOrganization): IWorkspaceInfo;
27
+ /**
28
+ * Transforms an organization with its employees into a list of workspace user info objects.
29
+ *
30
+ * This includes view preferences, roles, and status of each member in the workspace.
31
+ * It reads task view settings from each employee and formats them for frontend consumption.
32
+ *
33
+ * @param organization - The organization entity containing employee data.
34
+ * @returns An array of workspace user info objects.
35
+ */
36
+ export declare function organizationMembersTransformer(organization: IOrganization): IWorkspaceUserInfo[];
37
+ /**
38
+ * Helper function to build query for the /employee/members endpoint.
39
+ * Returns query params with organizationId and tenantId.
40
+ */
41
+ export declare function getEmployeeMembersQuery(organizationId: string, tenantId: string): Record<string, string>;
42
+ /**
43
+ * Transforms an array of employees (from GET /employee/members) into workspace user info objects.
44
+ *
45
+ * This is the alternative to organizationMembersTransformer that works with the
46
+ * /employee/members endpoint, which doesn't require ORG_EMPLOYEES_VIEW or ORG_USERS_VIEW
47
+ * permissions (only ORG_MEMBERS_VIEW, available to EMPLOYEE role).
48
+ *
49
+ * Trade-offs vs organizationMembersTransformer:
50
+ * - user.role is not available → defaults to MEMBER (15)
51
+ * - employee.settings are not available → returns empty view_props/default_props
52
+ *
53
+ * @param employees - Array of employees from the /employee/members response.
54
+ * @param organizationId - The organization ID for workspace info.
55
+ * @param organizationName - Optional organization name for workspace info.
56
+ * @returns An array of workspace user info objects.
57
+ */
58
+ export declare function employeeMembersTransformer(employees: IEmployee[], organizationId: string, organizationName?: string): IWorkspaceUserInfo[];
59
+ /**
60
+ * Categorizes a list of tasks by priority and calculates the count of tasks
61
+ * for each priority level.
62
+ *
63
+ * @param {ITask[]} tasks - An array of tasks to be categorized by priority.
64
+ * @returns {IUserPriorityDistribution[]} An array of priority distributions,
65
+ * where each object contains the priority, the count of tasks with that priority,
66
+ * and the priority's order.
67
+
68
+ */
69
+ export declare function userIssuesByPriority(tasks: ITask[]): IUserPriorityDistribution[];
70
+ /**
71
+ * Transforms organization project data into a user-specific structure.
72
+ * This function maps project details, tasks, and user profile information into a format
73
+ * tailored for displaying user-related project data and statistics.
74
+ *
75
+ * @param {IOrganizationProject[]} projects - An array of organization projects to transform.
76
+ * @param {ID} employeeId - The ID of the employee whose data is being processed.
77
+ * @param {ID} userId - The ID of the user whose task information is needed.
78
+ *
79
+ * @returns {IUserProjectsDataResponse} The transformed user projects data, including project statistics and user profile information.
80
+ *
81
+ */
82
+ export declare function userWorkProjectsTransformer(projects: IOrganizationProject[], employeeId: ID, userId: ID): IUserProjectsDataResponse;
83
+ /**
84
+ * Transforms a workspace creation input into an organization creation input.
85
+ *
86
+ * This function extracts member IDs from the provided input and ensures
87
+ * at least one employee ID is included (defaulting to the current employee if none are given).
88
+ *
89
+ * @param {ICreateWorkSpace} input - The input object representing a workspace creation request.
90
+ * @returns {IOrganizationCreateInput} - The transformed input suitable for organization creation.
91
+ */
92
+ export declare function createOrganizationInputTransformer(input: ICreateWorkSpace): IOrganizationCreateInput;