itlab-internal-services 2.15.7 → 2.16.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 (342) hide show
  1. package/README.md +1 -187
  2. package/dist/classes/document-merger.class.js +3 -5
  3. package/dist/classes/index.d.ts +1 -0
  4. package/dist/classes/index.js +3 -1
  5. package/dist/classes/report-category.class.d.ts +55 -0
  6. package/dist/classes/report-category.class.js +120 -0
  7. package/dist/decorators/{account.decorator.d.ts → authenticated-account.decorator.d.ts} +4 -4
  8. package/dist/decorators/{account.decorator.js → authenticated-account.decorator.js} +8 -10
  9. package/dist/decorators/index.d.ts +1 -1
  10. package/dist/decorators/index.js +1 -1
  11. package/dist/exceptions/authenticated-user-required.exception.d.ts +34 -0
  12. package/dist/exceptions/authenticated-user-required.exception.js +51 -0
  13. package/dist/exceptions/bad-body.exception.d.ts +19 -8
  14. package/dist/exceptions/bad-body.exception.js +26 -10
  15. package/dist/exceptions/bad-parameter.exception.d.ts +23 -8
  16. package/dist/exceptions/bad-parameter.exception.js +41 -19
  17. package/dist/exceptions/duplicate.exception.d.ts +20 -8
  18. package/dist/exceptions/duplicate.exception.js +27 -10
  19. package/dist/exceptions/index.d.ts +1 -0
  20. package/dist/exceptions/index.js +1 -0
  21. package/dist/functions/add-views-likes-virtuals.function.d.ts +15 -0
  22. package/dist/functions/add-views-likes-virtuals.function.js +43 -0
  23. package/dist/functions/create-internal-axios-client.function.js +2 -2
  24. package/dist/functions/index.d.ts +1 -0
  25. package/dist/functions/index.js +3 -1
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +2 -2
  28. package/dist/likeable.interface.d.ts +1 -1
  29. package/dist/likeable.interface.js +2 -2
  30. package/dist/models/account.model.d.ts +23 -0
  31. package/dist/models/account.model.js +59 -0
  32. package/dist/models/index.d.ts +3 -1
  33. package/dist/models/index.js +7 -3
  34. package/dist/{modules/search/models → models}/search-document.model.d.ts +1 -1
  35. package/dist/{modules/search/models → models}/search-document.model.js +1 -1
  36. package/dist/models/{account-entity.model.d.ts → user.model.d.ts} +8 -21
  37. package/dist/models/{account-entity.model.js → user.model.js} +11 -25
  38. package/dist/modules/authentication/authentication-module-options.interface.d.ts +2 -8
  39. package/dist/modules/authentication/authentication-options.parameter.d.ts +4 -0
  40. package/dist/modules/authentication/{inject-auth-options.decorator.js → authentication-options.parameter.js} +5 -2
  41. package/dist/modules/authentication/authentication.module.d.ts +23 -0
  42. package/dist/modules/authentication/authentication.module.js +24 -1
  43. package/dist/modules/authentication/guards/index.d.ts +2 -2
  44. package/dist/modules/authentication/guards/index.js +7 -7
  45. package/dist/modules/authentication/guards/jwt-auth.guard.d.ts +17 -0
  46. package/dist/modules/authentication/guards/jwt-auth.guard.js +73 -0
  47. package/dist/modules/authentication/guards/permissions.guard.d.ts +5 -27
  48. package/dist/modules/authentication/guards/permissions.guard.js +26 -59
  49. package/dist/modules/authentication/guards/public.guard.d.ts +7 -13
  50. package/dist/modules/authentication/guards/public.guard.js +10 -24
  51. package/dist/modules/authentication/guards/service-auth.guard.d.ts +22 -0
  52. package/dist/modules/authentication/guards/service-auth.guard.js +65 -0
  53. package/dist/modules/authentication/index.d.ts +3 -3
  54. package/dist/modules/authentication/index.js +3 -5
  55. package/dist/modules/cache/cache-response.interceptor.d.ts +2 -2
  56. package/dist/modules/cache/cache-response.interceptor.js +2 -2
  57. package/dist/modules/cache/index.d.ts +1 -0
  58. package/dist/modules/cache/index.js +1 -0
  59. package/dist/modules/comment/comment-module-options.interface.d.ts +38 -0
  60. package/dist/modules/comment/comment.controller.d.ts +24 -30
  61. package/dist/modules/comment/comment.controller.js +59 -61
  62. package/dist/modules/comment/comment.module-definition.d.ts +1 -42
  63. package/dist/modules/comment/comment.module-definition.js +1 -2
  64. package/dist/modules/comment/comment.module.d.ts +13 -13
  65. package/dist/modules/comment/comment.module.js +15 -42
  66. package/dist/modules/comment/comment.service.d.ts +27 -37
  67. package/dist/modules/comment/comment.service.js +50 -84
  68. package/dist/modules/comment/index.d.ts +2 -3
  69. package/dist/modules/comment/index.js +16 -7
  70. package/dist/modules/database/database.module.js +2 -5
  71. package/dist/modules/database/index.d.ts +2 -5
  72. package/dist/modules/database/index.js +17 -9
  73. package/dist/modules/index.d.ts +2 -6
  74. package/dist/modules/index.js +2 -6
  75. package/dist/modules/like/index.d.ts +2 -1
  76. package/dist/modules/like/index.js +16 -3
  77. package/dist/modules/like/like-module-options.interface.d.ts +21 -0
  78. package/dist/modules/like/like.controller.d.ts +45 -37
  79. package/dist/modules/like/like.controller.js +117 -102
  80. package/dist/modules/like/like.module-definition.d.ts +1 -17
  81. package/dist/modules/like/like.module-definition.js +1 -2
  82. package/dist/modules/like/like.module.d.ts +12 -12
  83. package/dist/modules/like/like.module.js +14 -37
  84. package/dist/modules/like/like.service.d.ts +31 -27
  85. package/dist/modules/like/like.service.js +42 -35
  86. package/dist/modules/merge/index.d.ts +3 -0
  87. package/dist/modules/merge/index.js +19 -0
  88. package/dist/modules/merge/merge-module-options.interface.d.ts +21 -0
  89. package/dist/modules/merge/merge.controller.d.ts +30 -0
  90. package/dist/modules/merge/merge.controller.js +76 -0
  91. package/dist/modules/merge/merge.module.d.ts +18 -0
  92. package/dist/modules/merge/merge.module.js +41 -0
  93. package/dist/modules/merge/merge.service.interface.d.ts +17 -0
  94. package/dist/modules/services/base-http.service.d.ts +83 -0
  95. package/dist/modules/services/base-http.service.js +124 -0
  96. package/dist/modules/services/base-urls.d.ts +22 -0
  97. package/dist/modules/services/base-urls.js +121 -0
  98. package/dist/modules/services/index.d.ts +4 -0
  99. package/dist/modules/services/index.js +20 -0
  100. package/dist/modules/services/providers/accounts.service.d.ts +52 -0
  101. package/dist/modules/services/providers/accounts.service.js +82 -0
  102. package/dist/modules/services/providers/books.service.d.ts +29 -0
  103. package/dist/modules/services/providers/books.service.js +53 -0
  104. package/dist/modules/services/providers/changelog.service.d.ts +18 -0
  105. package/dist/modules/services/providers/changelog.service.js +41 -0
  106. package/dist/modules/services/providers/comments/comments.service-definition.d.ts +1 -0
  107. package/dist/modules/services/providers/comments/comments.service-definition.js +4 -0
  108. package/dist/modules/services/providers/comments/comments.service.d.ts +60 -0
  109. package/dist/modules/services/providers/comments/comments.service.js +138 -0
  110. package/dist/modules/services/providers/comments/index.d.ts +1 -0
  111. package/dist/{factories → modules/services/providers/comments}/index.js +1 -1
  112. package/dist/modules/services/providers/content/content-types.d.ts +20 -0
  113. package/dist/modules/services/providers/content/content-types.js +7 -0
  114. package/dist/modules/services/providers/content/content.service-definition.d.ts +1 -0
  115. package/dist/modules/services/providers/content/content.service-definition.js +4 -0
  116. package/dist/modules/services/providers/content/content.service.d.ts +94 -0
  117. package/dist/modules/services/providers/content/content.service.js +214 -0
  118. package/dist/modules/services/providers/content/index.d.ts +1 -0
  119. package/dist/modules/{search/models → services/providers/content}/index.js +1 -1
  120. package/dist/modules/services/providers/demo-hive.service.d.ts +29 -0
  121. package/dist/modules/services/providers/demo-hive.service.js +53 -0
  122. package/dist/modules/services/providers/events.service.d.ts +29 -0
  123. package/dist/modules/services/providers/events.service.js +53 -0
  124. package/dist/modules/services/providers/hackschool.service.d.ts +49 -0
  125. package/dist/modules/services/providers/hackschool.service.js +77 -0
  126. package/dist/modules/services/providers/ideas.service.d.ts +18 -0
  127. package/dist/modules/services/providers/ideas.service.js +41 -0
  128. package/dist/modules/services/providers/index.d.ts +19 -0
  129. package/dist/modules/services/providers/index.js +35 -0
  130. package/dist/modules/services/providers/lunch-roulette.service.d.ts +18 -0
  131. package/dist/modules/services/providers/lunch-roulette.service.js +41 -0
  132. package/dist/modules/services/providers/mail/index.d.ts +3 -0
  133. package/dist/modules/services/providers/mail/index.js +19 -0
  134. package/dist/modules/services/providers/mail/mail-types.d.ts +30 -0
  135. package/dist/modules/services/providers/mail/mail-types.js +22 -0
  136. package/dist/modules/services/providers/mail/mail.service.d.ts +99 -0
  137. package/dist/modules/{mail → services/providers/mail}/mail.service.js +54 -91
  138. package/dist/modules/services/providers/newletter.service.d.ts +29 -0
  139. package/dist/modules/services/providers/newletter.service.js +53 -0
  140. package/dist/modules/services/providers/newsroom.service.d.ts +47 -0
  141. package/dist/modules/services/providers/newsroom.service.js +71 -0
  142. package/dist/modules/services/providers/notification/dtos/schedule-notification.dto.js +2 -0
  143. package/dist/modules/services/providers/notification/index.d.ts +2 -0
  144. package/dist/modules/services/providers/notification/index.js +18 -0
  145. package/dist/modules/services/providers/notification/notification.service-definition.d.ts +1 -0
  146. package/dist/modules/services/providers/notification/notification.service-definition.js +4 -0
  147. package/dist/modules/services/providers/notification/notification.service.d.ts +50 -0
  148. package/dist/modules/services/providers/notification/notification.service.js +130 -0
  149. package/dist/modules/services/providers/pass/dtos/create-guild-member-pass.dto.js +2 -0
  150. package/dist/modules/services/providers/pass/dtos/create-team-member-pass.dto.js +2 -0
  151. package/dist/modules/services/providers/pass/index.d.ts +2 -0
  152. package/dist/modules/services/providers/pass/index.js +18 -0
  153. package/dist/modules/services/providers/pass/pass-types.d.ts +18 -0
  154. package/dist/modules/services/providers/pass/pass-types.js +7 -0
  155. package/dist/modules/{pass → services/providers/pass}/pass.service.d.ts +15 -39
  156. package/dist/modules/{pass → services/providers/pass}/pass.service.js +46 -61
  157. package/dist/modules/services/providers/podcasts.service.d.ts +29 -0
  158. package/dist/modules/services/providers/podcasts.service.js +53 -0
  159. package/dist/modules/services/providers/search/dtos/index-search-document.dto.js +2 -0
  160. package/dist/modules/services/providers/search/index.d.ts +2 -0
  161. package/dist/modules/services/providers/search/index.js +18 -0
  162. package/dist/modules/services/providers/search/search.service-definition.d.ts +1 -0
  163. package/dist/modules/services/providers/search/search.service-definition.js +4 -0
  164. package/dist/modules/services/providers/search/search.service.d.ts +66 -0
  165. package/dist/modules/services/providers/search/search.service.js +171 -0
  166. package/dist/modules/services/providers/team.service.d.ts +29 -0
  167. package/dist/modules/services/providers/team.service.js +53 -0
  168. package/dist/modules/services/providers/tech-radar.service.d.ts +39 -0
  169. package/dist/modules/services/providers/tech-radar.service.js +65 -0
  170. package/dist/modules/services/services-module-options.interface.d.ts +4 -0
  171. package/dist/modules/services/services-module-options.interface.js +2 -0
  172. package/dist/modules/services/services-options.parameter.d.ts +1 -0
  173. package/dist/modules/services/services-options.parameter.js +8 -0
  174. package/dist/modules/services/services.module-definition.d.ts +16 -0
  175. package/dist/modules/services/services.module-definition.js +21 -0
  176. package/dist/modules/services/services.module.d.ts +17 -0
  177. package/dist/modules/services/services.module.js +63 -0
  178. package/dist/pipes/index.d.ts +2 -3
  179. package/dist/pipes/index.js +2 -3
  180. package/dist/pipes/params/hub-id.pipe.d.ts +22 -0
  181. package/dist/pipes/{hub-id.pipe.js → params/hub-id.pipe.js} +14 -17
  182. package/dist/pipes/params/hub-resource.pipe.d.ts +22 -0
  183. package/dist/pipes/{hub-resource.pipe.js → params/hub-resource.pipe.js} +19 -20
  184. package/dist/pipes/params/index.d.ts +3 -0
  185. package/dist/pipes/params/index.js +19 -0
  186. package/dist/pipes/params/mongo-id.pipe.d.ts +15 -0
  187. package/dist/pipes/params/mongo-id.pipe.js +52 -0
  188. package/dist/pipes/queries/index.d.ts +3 -0
  189. package/dist/pipes/queries/index.js +19 -0
  190. package/dist/pipes/queries/mongo-ids.pipe.d.ts +22 -0
  191. package/dist/pipes/queries/mongo-ids.pipe.js +60 -0
  192. package/dist/pipes/queries/optional-boolean.pipe.d.ts +29 -0
  193. package/dist/pipes/queries/optional-boolean.pipe.js +72 -0
  194. package/dist/pipes/queries/optional-include-drafts.pipe.d.ts +28 -0
  195. package/dist/pipes/queries/optional-include-drafts.pipe.js +38 -0
  196. package/dist/properties/index.d.ts +1 -0
  197. package/dist/properties/index.js +5 -0
  198. package/dist/swagger/index.d.ts +1 -0
  199. package/dist/swagger/index.js +5 -0
  200. package/dist/swagger/remove-public-route-auth.plugin.d.ts +9 -0
  201. package/dist/swagger/remove-public-route-auth.plugin.js +25 -0
  202. package/dist/swagger/swagger-options.interface.d.ts +14 -0
  203. package/dist/swagger/swagger-options.interface.js +2 -0
  204. package/dist/swagger/swagger.function.d.ts +11 -0
  205. package/dist/swagger/swagger.function.js +47 -0
  206. package/dist/transform/boolean.transform.js +3 -3
  207. package/dist/viewable.interface.js +1 -1
  208. package/package.json +2 -2
  209. package/dist/factories/index.d.ts +0 -1
  210. package/dist/factories/virtuals.factory.d.ts +0 -79
  211. package/dist/factories/virtuals.factory.js +0 -171
  212. package/dist/modules/authentication/guards/auth.guard.d.ts +0 -36
  213. package/dist/modules/authentication/guards/auth.guard.js +0 -107
  214. package/dist/modules/authentication/guards/internal.guard.d.ts +0 -33
  215. package/dist/modules/authentication/guards/internal.guard.js +0 -72
  216. package/dist/modules/authentication/inject-auth-options.decorator.d.ts +0 -1
  217. package/dist/modules/comment/comment.model.d.ts +0 -29
  218. package/dist/modules/comment/comment.model.js +0 -43
  219. package/dist/modules/content/content.module-definition.d.ts +0 -5
  220. package/dist/modules/content/content.module-definition.js +0 -8
  221. package/dist/modules/content/content.module.d.ts +0 -31
  222. package/dist/modules/content/content.module.js +0 -60
  223. package/dist/modules/content/content.service.d.ts +0 -50
  224. package/dist/modules/content/content.service.js +0 -145
  225. package/dist/modules/content/index.d.ts +0 -3
  226. package/dist/modules/content/index.js +0 -9
  227. package/dist/modules/database/model-service/dbs/hub-account.db.d.ts +0 -28
  228. package/dist/modules/database/model-service/dbs/hub-account.db.js +0 -44
  229. package/dist/modules/database/model-service/dbs/hub-books.db.d.ts +0 -23
  230. package/dist/modules/database/model-service/dbs/hub-books.db.js +0 -45
  231. package/dist/modules/database/model-service/dbs/hub-comments.db.d.ts +0 -29
  232. package/dist/modules/database/model-service/dbs/hub-comments.db.js +0 -68
  233. package/dist/modules/database/model-service/dbs/hub-content.db.d.ts +0 -24
  234. package/dist/modules/database/model-service/dbs/hub-content.db.js +0 -49
  235. package/dist/modules/database/model-service/dbs/hub-demo-hive.db.d.ts +0 -23
  236. package/dist/modules/database/model-service/dbs/hub-demo-hive.db.js +0 -45
  237. package/dist/modules/database/model-service/dbs/hub-events.db.d.ts +0 -24
  238. package/dist/modules/database/model-service/dbs/hub-events.db.js +0 -49
  239. package/dist/modules/database/model-service/dbs/hub-hackschool.db.d.ts +0 -60
  240. package/dist/modules/database/model-service/dbs/hub-hackschool.db.js +0 -106
  241. package/dist/modules/database/model-service/dbs/hub-newsroom.db.d.ts +0 -25
  242. package/dist/modules/database/model-service/dbs/hub-newsroom.db.js +0 -53
  243. package/dist/modules/database/model-service/dbs/hub-podcasts.db.d.ts +0 -23
  244. package/dist/modules/database/model-service/dbs/hub-podcasts.db.js +0 -45
  245. package/dist/modules/database/model-service/dbs/hub-team.db.d.ts +0 -22
  246. package/dist/modules/database/model-service/dbs/hub-team.db.js +0 -41
  247. package/dist/modules/database/model-service/dbs/hub-tech-radar.db.d.ts +0 -42
  248. package/dist/modules/database/model-service/dbs/hub-tech-radar.db.js +0 -81
  249. package/dist/modules/database/model-service/model.service.d.ts +0 -6407
  250. package/dist/modules/database/model-service/model.service.js +0 -136
  251. package/dist/modules/database/populate-service/populate.service.d.ts +0 -73
  252. package/dist/modules/database/populate-service/populate.service.js +0 -163
  253. package/dist/modules/database/service-mapper-service/service-mapper.service.d.ts +0 -32
  254. package/dist/modules/database/service-mapper-service/service-mapper.service.js +0 -73
  255. package/dist/modules/fetch/fetch.module.d.ts +0 -31
  256. package/dist/modules/fetch/fetch.module.js +0 -60
  257. package/dist/modules/fetch/fetch.service.d.ts +0 -153
  258. package/dist/modules/fetch/fetch.service.js +0 -274
  259. package/dist/modules/fetch/index.d.ts +0 -2
  260. package/dist/modules/fetch/index.js +0 -7
  261. package/dist/modules/mail/index.d.ts +0 -4
  262. package/dist/modules/mail/index.js +0 -23
  263. package/dist/modules/mail/mail.module.d.ts +0 -31
  264. package/dist/modules/mail/mail.module.js +0 -60
  265. package/dist/modules/mail/mail.service.d.ts +0 -136
  266. package/dist/modules/notification/index.d.ts +0 -3
  267. package/dist/modules/notification/index.js +0 -22
  268. package/dist/modules/notification/notification.module-definition.d.ts +0 -5
  269. package/dist/modules/notification/notification.module-definition.js +0 -8
  270. package/dist/modules/notification/notification.module.d.ts +0 -34
  271. package/dist/modules/notification/notification.module.js +0 -63
  272. package/dist/modules/notification/notification.service.d.ts +0 -42
  273. package/dist/modules/notification/notification.service.js +0 -100
  274. package/dist/modules/pass/index.d.ts +0 -3
  275. package/dist/modules/pass/index.js +0 -22
  276. package/dist/modules/pass/pass.module.d.ts +0 -32
  277. package/dist/modules/pass/pass.module.js +0 -61
  278. package/dist/modules/search/index.d.ts +0 -4
  279. package/dist/modules/search/index.js +0 -23
  280. package/dist/modules/search/models/index.d.ts +0 -1
  281. package/dist/modules/search/search.module-definition.d.ts +0 -5
  282. package/dist/modules/search/search.module-definition.js +0 -8
  283. package/dist/modules/search/search.module.d.ts +0 -33
  284. package/dist/modules/search/search.module.js +0 -62
  285. package/dist/modules/search/search.service.d.ts +0 -49
  286. package/dist/modules/search/search.service.js +0 -120
  287. package/dist/pipes/hub-id.pipe.d.ts +0 -22
  288. package/dist/pipes/hub-resource.pipe.d.ts +0 -22
  289. package/dist/pipes/mongo-id.pipe.d.ts +0 -14
  290. package/dist/pipes/mongo-id.pipe.js +0 -52
  291. package/dist/swagger.config.d.ts +0 -36
  292. package/dist/swagger.config.js +0 -76
  293. /package/dist/modules/{mail/dtos/auth-login-token-mail.dto.js → comment/comment-module-options.interface.js} +0 -0
  294. /package/dist/modules/{mail/dtos/auth-password-reset-mail.dto.js → like/like-module-options.interface.js} +0 -0
  295. /package/dist/modules/{mail/dtos/event-cancel-mail.dto.js → merge/merge-module-options.interface.js} +0 -0
  296. /package/dist/modules/{mail/dtos/event-invite-mail.dto.js → merge/merge.service.interface.js} +0 -0
  297. /package/dist/modules/{mail → services/providers/mail}/dtos/auth-login-token-mail.dto.d.ts +0 -0
  298. /package/dist/modules/{mail/dtos/idea-status-updated-mail.dto.js → services/providers/mail/dtos/auth-login-token-mail.dto.js} +0 -0
  299. /package/dist/modules/{mail → services/providers/mail}/dtos/auth-password-reset-mail.dto.d.ts +0 -0
  300. /package/dist/modules/{mail/dtos/idea-submitted-mail.dto.js → services/providers/mail/dtos/auth-password-reset-mail.dto.js} +0 -0
  301. /package/dist/modules/{mail → services/providers/mail}/dtos/event-cancel-mail.dto.d.ts +0 -0
  302. /package/dist/modules/{mail/dtos/lunch-roulette-cancel-mail.dto.js → services/providers/mail/dtos/event-cancel-mail.dto.js} +0 -0
  303. /package/dist/modules/{mail → services/providers/mail}/dtos/event-invite-mail.dto.d.ts +0 -0
  304. /package/dist/modules/{mail/dtos/lunch-roulette-matched-mail.dto.js → services/providers/mail/dtos/event-invite-mail.dto.js} +0 -0
  305. /package/dist/modules/{mail → services/providers/mail}/dtos/idea-status-updated-mail.dto.d.ts +0 -0
  306. /package/dist/modules/{mail/dtos/lunch-roulette-submitted-mail.dto.js → services/providers/mail/dtos/idea-status-updated-mail.dto.js} +0 -0
  307. /package/dist/modules/{mail → services/providers/mail}/dtos/idea-submitted-mail.dto.d.ts +0 -0
  308. /package/dist/modules/{mail/dtos/lunch-roulette-unmatched-mail.dto.js → services/providers/mail/dtos/idea-submitted-mail.dto.js} +0 -0
  309. /package/dist/modules/{mail → services/providers/mail}/dtos/index.d.ts +0 -0
  310. /package/dist/modules/{mail → services/providers/mail}/dtos/index.js +0 -0
  311. /package/dist/modules/{mail → services/providers/mail}/dtos/lunch-roulette-cancel-mail.dto.d.ts +0 -0
  312. /package/dist/modules/{mail/dtos/newsletter-issue-mail.dto.js → services/providers/mail/dtos/lunch-roulette-cancel-mail.dto.js} +0 -0
  313. /package/dist/modules/{mail → services/providers/mail}/dtos/lunch-roulette-matched-mail.dto.d.ts +0 -0
  314. /package/dist/modules/{mail/dtos/newsletter-subscribed-mail.dto.js → services/providers/mail/dtos/lunch-roulette-matched-mail.dto.js} +0 -0
  315. /package/dist/modules/{mail → services/providers/mail}/dtos/lunch-roulette-submitted-mail.dto.d.ts +0 -0
  316. /package/dist/modules/{mail/dtos/newsletter-unsubscribed-mail.dto.js → services/providers/mail/dtos/lunch-roulette-submitted-mail.dto.js} +0 -0
  317. /package/dist/modules/{mail → services/providers/mail}/dtos/lunch-roulette-unmatched-mail.dto.d.ts +0 -0
  318. /package/dist/modules/{mail/dtos/notification-mail.dto.js → services/providers/mail/dtos/lunch-roulette-unmatched-mail.dto.js} +0 -0
  319. /package/dist/modules/{mail → services/providers/mail}/dtos/newsletter-issue-mail.dto.d.ts +0 -0
  320. /package/dist/modules/{notification/dtos/schedule-notification.dto.js → services/providers/mail/dtos/newsletter-issue-mail.dto.js} +0 -0
  321. /package/dist/modules/{mail → services/providers/mail}/dtos/newsletter-subscribed-mail.dto.d.ts +0 -0
  322. /package/dist/modules/{pass/dtos/create-guild-member-pass.dto.js → services/providers/mail/dtos/newsletter-subscribed-mail.dto.js} +0 -0
  323. /package/dist/modules/{mail → services/providers/mail}/dtos/newsletter-unsubscribed-mail.dto.d.ts +0 -0
  324. /package/dist/modules/{pass/dtos/create-team-member-pass.dto.js → services/providers/mail/dtos/newsletter-unsubscribed-mail.dto.js} +0 -0
  325. /package/dist/modules/{mail → services/providers/mail}/dtos/notification-mail.dto.d.ts +0 -0
  326. /package/dist/modules/{search/dtos/index-search-document.dto.js → services/providers/mail/dtos/notification-mail.dto.js} +0 -0
  327. /package/dist/modules/{mail → services/providers/mail}/models/index.d.ts +0 -0
  328. /package/dist/modules/{mail → services/providers/mail}/models/index.js +0 -0
  329. /package/dist/modules/{mail → services/providers/mail}/models/mail-recipient.model.d.ts +0 -0
  330. /package/dist/modules/{mail → services/providers/mail}/models/mail-recipient.model.js +0 -0
  331. /package/dist/modules/{notification → services/providers/notification}/dtos/index.d.ts +0 -0
  332. /package/dist/modules/{notification → services/providers/notification}/dtos/index.js +0 -0
  333. /package/dist/modules/{notification → services/providers/notification}/dtos/schedule-notification.dto.d.ts +0 -0
  334. /package/dist/modules/{pass → services/providers/pass}/dtos/create-guild-member-pass.dto.d.ts +0 -0
  335. /package/dist/modules/{pass → services/providers/pass}/dtos/create-team-member-pass.dto.d.ts +0 -0
  336. /package/dist/modules/{pass → services/providers/pass}/dtos/index.d.ts +0 -0
  337. /package/dist/modules/{pass → services/providers/pass}/dtos/index.js +0 -0
  338. /package/dist/modules/{search → services/providers/search}/dtos/index-search-document.dto.d.ts +0 -0
  339. /package/dist/modules/{search → services/providers/search}/dtos/index.d.ts +0 -0
  340. /package/dist/modules/{search → services/providers/search}/dtos/index.js +0 -0
  341. /package/dist/{modules/content → properties}/content.property.d.ts +0 -0
  342. /package/dist/{modules/content → properties}/content.property.js +0 -0
@@ -0,0 +1,214 @@
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 ContentService_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ContentService = void 0;
17
+ exports.InjectFeatureContentService = InjectFeatureContentService;
18
+ const common_1 = require("@nestjs/common");
19
+ const config_1 = require("@nestjs/config");
20
+ const authentication_1 = require("../../../authentication");
21
+ const authentication_module_definition_1 = require("../../../authentication/authentication.module-definition");
22
+ const cache_1 = require("../../../cache");
23
+ const base_http_service_1 = require("../../base-http.service");
24
+ const base_urls_1 = require("../../base-urls");
25
+ const services_options_parameter_1 = require("../../services-options.parameter");
26
+ const content_service_definition_1 = require("./content.service-definition");
27
+ /**
28
+ * Parameter decorator to inject the feature-specific ContentService.
29
+ */
30
+ function InjectFeatureContentService() {
31
+ return (0, common_1.Inject)(content_service_definition_1.FEATURE_CONTENT_SERVICE_TOKEN);
32
+ }
33
+ /**
34
+ * Service responsible for all operations with the Organisation Hub Content Service.
35
+ *
36
+ * This includes:
37
+ * - Validating content structure before submission.
38
+ * - Submitting content to the backend.
39
+ * - Removing content from the backend.
40
+ * - Retrieving content in multiple formats.
41
+ *
42
+ * Optionally supports caching via `CacheService` for read operations.
43
+ */
44
+ let ContentService = ContentService_1 = class ContentService extends base_http_service_1.BaseHttpService {
45
+ /**
46
+ * Creates a ContentService client for a specific resource.
47
+ *
48
+ * @param authenticationOptions Authentication options injected from the Auth module.
49
+ * @param options Options specifying the resource type this service operates on.
50
+ * @param configService NestJS configuration service for environment variables and URLs.
51
+ * @param cacheService Optional caching service for retrieving content efficiently.
52
+ */
53
+ constructor(authenticationOptions, options, configService, cacheService) {
54
+ super('Content', base_urls_1.BaseUrls.ContentService, authenticationOptions, configService);
55
+ this.options = options;
56
+ this.cacheService = cacheService;
57
+ }
58
+ /**
59
+ * Factory method to create a dynamic module for a specific Hub resource.
60
+ *
61
+ * @param resource The HubResource type this module will provide content services for.
62
+ * @returns A DynamicModule with a provider for the specified ContentService instance.
63
+ */
64
+ static forResource(resource) {
65
+ let ContentModule = class ContentModule {
66
+ };
67
+ ContentModule = __decorate([
68
+ (0, common_1.Module)({})
69
+ ], ContentModule);
70
+ return {
71
+ module: ContentModule,
72
+ exports: [content_service_definition_1.FEATURE_CONTENT_SERVICE_TOKEN],
73
+ providers: [
74
+ {
75
+ provide: content_service_definition_1.FEATURE_CONTENT_SERVICE_TOKEN,
76
+ inject: [authentication_module_definition_1.AUTHENTICATION_MODULE_OPTIONS_TOKEN, config_1.ConfigService],
77
+ useFactory: (authenticationOptions, configService) => {
78
+ return new ContentService_1(authenticationOptions, { resource }, configService);
79
+ },
80
+ },
81
+ ],
82
+ };
83
+ }
84
+ /**
85
+ * Validates the given content object using the backend service.
86
+ * Logs the process and throws an HTTP exception if validation fails.
87
+ *
88
+ * @param content Content object to validate.
89
+ * @returns Resolves if validation is successful.
90
+ * @throws HttpException if the backend returns an error.
91
+ */
92
+ async validateContent(content) {
93
+ const endpoint = `internal/verify`;
94
+ this.logger.log('Validating content...');
95
+ try {
96
+ await this.client.post(endpoint, { content });
97
+ this.logger.log('Content validation successful.');
98
+ }
99
+ catch (error) {
100
+ const { status, data, message } = this.parseError(error);
101
+ this.logger.error(`Content validation failed: ${message}`);
102
+ throw new common_1.HttpException(data, status);
103
+ }
104
+ }
105
+ /**
106
+ * Submits content for a given resource.
107
+ *
108
+ * @param resourceId Unique identifier of the resource.
109
+ * @param content Content object to submit.
110
+ * @throws HttpException if the backend returns an error.
111
+ */
112
+ async submitContent(resourceId, content) {
113
+ if (!this.options.resource) {
114
+ this.logger.error('Cannot submit content: Resource type not provided.');
115
+ return;
116
+ }
117
+ const endpoint = `internal/${this.options.resource}/${resourceId}`;
118
+ this.logger.log(`Submitting content for ${this.options.resource} ${resourceId}...`);
119
+ try {
120
+ await this.client.post(endpoint, { content });
121
+ this.logger.log(`Content successfully submitted for ${this.options.resource} ${resourceId}.`);
122
+ }
123
+ catch (error) {
124
+ const { status, data, message } = this.parseError(error);
125
+ this.logger.error(`Content submission failed for ${this.options.resource} ${resourceId}: ${message}`);
126
+ throw new common_1.HttpException(data, status);
127
+ }
128
+ }
129
+ /**
130
+ * Directly submits content without extra validation.
131
+ * Backend will handle validation internally.
132
+ *
133
+ * @param resourceId Unique identifier of the resource.
134
+ * @param content Content object to submit.
135
+ * @throws HttpException if the backend returns an error.
136
+ */
137
+ async validateAndSubmitContent(resourceId, content) {
138
+ await this.submitContent(resourceId, content);
139
+ }
140
+ /**
141
+ * Removes content associated with a given resource.
142
+ * Logs errors but does not throw; always resolves to allow safe cleanup.
143
+ *
144
+ * @param resourceId Unique identifier of the resource.
145
+ */
146
+ deleteContent(resourceId) {
147
+ if (!this.options.resource) {
148
+ this.logger.error('Cannot remove document: Resource type not provided.');
149
+ return;
150
+ }
151
+ const endpoint = `internal/${this.options.resource}/${resourceId}`;
152
+ this.logger.log(`Removing content for ${this.options.resource} ${resourceId}...`);
153
+ this.client
154
+ .delete(endpoint)
155
+ .then(() => {
156
+ this.logger.log(`Content removed successfully for ${this.options.resource} (${resourceId}).`);
157
+ })
158
+ .catch((error) => {
159
+ const { message } = this.parseError(error);
160
+ this.logger.error(`Content removal failed for ${this.options.resource} ${resourceId}: ${message}`);
161
+ });
162
+ }
163
+ /**
164
+ * Retrieves content in a specified format from the backend.
165
+ * Provides default values if content retrieval fails.
166
+ *
167
+ * @param resourceId Unique identifier of the resource.
168
+ * @param type Format of content to retrieve ('json', 'text', 'html', 'populated').
169
+ * @returns Retrieved content in the requested format.
170
+ */
171
+ async getContent(resourceId, type) {
172
+ const defaultReturnValue = (type === 'text' ? '' : []);
173
+ if (!this.options.resource) {
174
+ this.logger.error('Cannot fetch content: Resource type not provided.');
175
+ return defaultReturnValue;
176
+ }
177
+ const endpoint = `internal/${this.options.resource}/${resourceId}/${type}`;
178
+ this.logger.log(`Fetching ${type} content for ${this.options.resource} ${resourceId}...`);
179
+ try {
180
+ const { data } = await this.client.get(endpoint);
181
+ this.logger.log(`Successfully retrieved ${type} content for ${this.options.resource} ${resourceId}.`);
182
+ return data;
183
+ }
184
+ catch (error) {
185
+ const { message } = this.parseError(error);
186
+ this.logger.error(`Failed to fetch ${type} content for ${this.options.resource} ${resourceId}: ${message}`);
187
+ return defaultReturnValue;
188
+ }
189
+ }
190
+ /**
191
+ * Retrieves content from the cache if available; otherwise fetches from the backend.
192
+ *
193
+ * @param resourceId Unique identifier of the resource.
194
+ * @param type Format of content to retrieve.
195
+ * @returns Cached or freshly retrieved content.
196
+ */
197
+ async getCachedContent(resourceId, type) {
198
+ const fetchContent = () => this.getContent(resourceId, type);
199
+ if (this.cacheService) {
200
+ const cacheKey = `${this.options.resource}.${resourceId}.${type}Content`;
201
+ return this.cacheService.fetchOrStore(cacheKey, fetchContent, 60000);
202
+ }
203
+ return fetchContent();
204
+ }
205
+ };
206
+ exports.ContentService = ContentService;
207
+ exports.ContentService = ContentService = ContentService_1 = __decorate([
208
+ (0, common_1.Injectable)(),
209
+ __param(0, (0, authentication_1.InjectAuthenticationOptions)()),
210
+ __param(1, (0, services_options_parameter_1.InjectServicesOptions)()),
211
+ __param(3, (0, common_1.Optional)()),
212
+ __metadata("design:paramtypes", [Object, Object, config_1.ConfigService,
213
+ cache_1.CacheService])
214
+ ], ContentService);
@@ -0,0 +1 @@
1
+ export * from './content.service';
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./search-document.model"), exports);
17
+ __exportStar(require("./content.service"), exports);
@@ -0,0 +1,29 @@
1
+ import { ConfigService } from '@nestjs/config';
2
+ import { LabDemo } from 'itlab-functions';
3
+ import { AuthenticationModuleOptions } from '../../authentication';
4
+ import { BaseHttpService } from '../base-http.service';
5
+ /**
6
+ * DemoHiveService
7
+ *
8
+ * Service client for interacting with the DemoHive domain.
9
+ * Inherits logging, authentication, and environment-sensitive URL resolution from `BaseHttpService`.
10
+ */
11
+ export declare class DemoHiveService extends BaseHttpService {
12
+ /**
13
+ * Constructs a DemoHive service client.
14
+ *
15
+ * @param {AuthenticationModuleOptions} authenticationOptions - Authentication options (provided by DI).
16
+ * @param {ConfigService} configService - Global NestJS config service for environment detection.
17
+ */
18
+ constructor(authenticationOptions: AuthenticationModuleOptions, configService: ConfigService);
19
+ /**
20
+ * Retrieves a single demo entry by its MongoDB identifier.
21
+ *
22
+ * If the downstream call fails or the resource does not exist, the method
23
+ * will log the failure and return `undefined`.
24
+ *
25
+ * @param {string} demoId - Unique MongoDB identifier of the demo item.
26
+ * @returns {Promise<LabDemo | undefined>} Resolves to the demo object if found, otherwise `undefined`.
27
+ */
28
+ fetchDemoById(demoId: string): Promise<LabDemo | undefined>;
29
+ }
@@ -0,0 +1,53 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DemoHiveService = void 0;
16
+ const config_1 = require("@nestjs/config");
17
+ const authentication_1 = require("../../authentication");
18
+ const base_http_service_1 = require("../base-http.service");
19
+ const base_urls_1 = require("../base-urls");
20
+ /**
21
+ * DemoHiveService
22
+ *
23
+ * Service client for interacting with the DemoHive domain.
24
+ * Inherits logging, authentication, and environment-sensitive URL resolution from `BaseHttpService`.
25
+ */
26
+ let DemoHiveService = class DemoHiveService extends base_http_service_1.BaseHttpService {
27
+ /**
28
+ * Constructs a DemoHive service client.
29
+ *
30
+ * @param {AuthenticationModuleOptions} authenticationOptions - Authentication options (provided by DI).
31
+ * @param {ConfigService} configService - Global NestJS config service for environment detection.
32
+ */
33
+ constructor(authenticationOptions, configService) {
34
+ super('DemoHive', base_urls_1.BaseUrls.DemoHiveService, authenticationOptions, configService);
35
+ }
36
+ /**
37
+ * Retrieves a single demo entry by its MongoDB identifier.
38
+ *
39
+ * If the downstream call fails or the resource does not exist, the method
40
+ * will log the failure and return `undefined`.
41
+ *
42
+ * @param {string} demoId - Unique MongoDB identifier of the demo item.
43
+ * @returns {Promise<LabDemo | undefined>} Resolves to the demo object if found, otherwise `undefined`.
44
+ */
45
+ async fetchDemoById(demoId) {
46
+ return this.fetchResource(`internal/demo/${demoId}`);
47
+ }
48
+ };
49
+ exports.DemoHiveService = DemoHiveService;
50
+ exports.DemoHiveService = DemoHiveService = __decorate([
51
+ __param(0, (0, authentication_1.InjectAuthenticationOptions)()),
52
+ __metadata("design:paramtypes", [Object, config_1.ConfigService])
53
+ ], DemoHiveService);
@@ -0,0 +1,29 @@
1
+ import { ConfigService } from '@nestjs/config';
2
+ import { LabEvent } from 'itlab-functions';
3
+ import { AuthenticationModuleOptions } from '../../authentication';
4
+ import { BaseHttpService } from '../base-http.service';
5
+ /**
6
+ * EventsService
7
+ *
8
+ * Service client for interacting with the Events domain.
9
+ * Inherits logging, authentication, and environment-sensitive URL resolution from `BaseHttpService`.
10
+ */
11
+ export declare class EventsService extends BaseHttpService {
12
+ /**
13
+ * Constructs a Events service client.
14
+ *
15
+ * @param {AuthenticationModuleOptions} authenticationOptions - Authentication options (provided by DI).
16
+ * @param {ConfigService} configService - Global NestJS config service for environment detection.
17
+ */
18
+ constructor(authenticationOptions: AuthenticationModuleOptions, configService: ConfigService);
19
+ /**
20
+ * Retrieves a single event entry by its MongoDB identifier.
21
+ *
22
+ * If the downstream call fails or the resource does not exist, the method
23
+ * will log the failure and return `undefined`.
24
+ *
25
+ * @param {string} eventId - Unique MongoDB identifier of the event item.
26
+ * @returns {Promise<LabEvent | undefined>} Resolves to the event object if found, otherwise `undefined`.
27
+ */
28
+ fetchEventById(eventId?: string): Promise<LabEvent>;
29
+ }
@@ -0,0 +1,53 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.EventsService = void 0;
16
+ const config_1 = require("@nestjs/config");
17
+ const authentication_1 = require("../../authentication");
18
+ const base_http_service_1 = require("../base-http.service");
19
+ const base_urls_1 = require("../base-urls");
20
+ /**
21
+ * EventsService
22
+ *
23
+ * Service client for interacting with the Events domain.
24
+ * Inherits logging, authentication, and environment-sensitive URL resolution from `BaseHttpService`.
25
+ */
26
+ let EventsService = class EventsService extends base_http_service_1.BaseHttpService {
27
+ /**
28
+ * Constructs a Events service client.
29
+ *
30
+ * @param {AuthenticationModuleOptions} authenticationOptions - Authentication options (provided by DI).
31
+ * @param {ConfigService} configService - Global NestJS config service for environment detection.
32
+ */
33
+ constructor(authenticationOptions, configService) {
34
+ super('Events', base_urls_1.BaseUrls.EventsService, authenticationOptions, configService);
35
+ }
36
+ /**
37
+ * Retrieves a single event entry by its MongoDB identifier.
38
+ *
39
+ * If the downstream call fails or the resource does not exist, the method
40
+ * will log the failure and return `undefined`.
41
+ *
42
+ * @param {string} eventId - Unique MongoDB identifier of the event item.
43
+ * @returns {Promise<LabEvent | undefined>} Resolves to the event object if found, otherwise `undefined`.
44
+ */
45
+ async fetchEventById(eventId) {
46
+ return this.fetchResource(`internal/event/${eventId}`);
47
+ }
48
+ };
49
+ exports.EventsService = EventsService;
50
+ exports.EventsService = EventsService = __decorate([
51
+ __param(0, (0, authentication_1.InjectAuthenticationOptions)()),
52
+ __metadata("design:paramtypes", [Object, config_1.ConfigService])
53
+ ], EventsService);
@@ -0,0 +1,49 @@
1
+ import { ConfigService } from '@nestjs/config';
2
+ import { LabHackschoolCourse, LabHackschoolDoc, LabHackschoolThread } from 'itlab-functions';
3
+ import { AuthenticationModuleOptions } from '../../authentication';
4
+ import { BaseHttpService } from '../base-http.service';
5
+ /**
6
+ * HackschoolService
7
+ *
8
+ * Service client for interacting with the Hackschool domain.
9
+ * Inherits logging, authentication, and environment-sensitive URL resolution from `BaseHttpService`.
10
+ */
11
+ export declare class HackschoolService extends BaseHttpService {
12
+ /**
13
+ * Constructs a Hackschool service client.
14
+ *
15
+ * @param {AuthenticationModuleOptions} authenticationOptions - Authentication options (provided by DI).
16
+ * @param {ConfigService} configService - Global NestJS config service for environment detection.
17
+ */
18
+ constructor(authenticationOptions: AuthenticationModuleOptions, configService: ConfigService);
19
+ /**
20
+ * Retrieves a single course entry by its MongoDB identifier.
21
+ *
22
+ * If the downstream call fails or the resource does not exist, the method
23
+ * will log the failure and return `undefined`.
24
+ *
25
+ * @param {string} courseId - Unique MongoDB identifier of the course item.
26
+ * @returns {Promise<LabHackschoolCourse | undefined>} Resolves to the course object if found, otherwise `undefined`.
27
+ */
28
+ fetchCourseById(courseId: string): Promise<LabHackschoolCourse | undefined>;
29
+ /**
30
+ * Retrieves a single doc entry by its MongoDB identifier.
31
+ *
32
+ * If the downstream call fails or the resource does not exist, the method
33
+ * will log the failure and return `undefined`.
34
+ *
35
+ * @param {string} docId - Unique MongoDB identifier of the doc item.
36
+ * @returns {Promise<LabHackschoolDoc | undefined>} Resolves to the doc object if found, otherwise `undefined`.
37
+ */
38
+ fetchDocById(docId: string): Promise<LabHackschoolDoc | undefined>;
39
+ /**
40
+ * Retrieves a single thread entry by its MongoDB identifier.
41
+ *
42
+ * If the downstream call fails or the resource does not exist, the method
43
+ * will log the failure and return `undefined`.
44
+ *
45
+ * @param {string} threadId - Unique MongoDB identifier of the thread item.
46
+ * @returns {Promise<LabHackschoolThread | undefined>} Resolves to the thread object if found, otherwise `undefined`.
47
+ */
48
+ fetchThreadById(threadId: string): Promise<LabHackschoolThread | undefined>;
49
+ }
@@ -0,0 +1,77 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.HackschoolService = void 0;
16
+ const config_1 = require("@nestjs/config");
17
+ const authentication_1 = require("../../authentication");
18
+ const base_http_service_1 = require("../base-http.service");
19
+ const base_urls_1 = require("../base-urls");
20
+ /**
21
+ * HackschoolService
22
+ *
23
+ * Service client for interacting with the Hackschool domain.
24
+ * Inherits logging, authentication, and environment-sensitive URL resolution from `BaseHttpService`.
25
+ */
26
+ let HackschoolService = class HackschoolService extends base_http_service_1.BaseHttpService {
27
+ /**
28
+ * Constructs a Hackschool service client.
29
+ *
30
+ * @param {AuthenticationModuleOptions} authenticationOptions - Authentication options (provided by DI).
31
+ * @param {ConfigService} configService - Global NestJS config service for environment detection.
32
+ */
33
+ constructor(authenticationOptions, configService) {
34
+ super('Hackschool', base_urls_1.BaseUrls.HackschoolService, authenticationOptions, configService);
35
+ }
36
+ /**
37
+ * Retrieves a single course entry by its MongoDB identifier.
38
+ *
39
+ * If the downstream call fails or the resource does not exist, the method
40
+ * will log the failure and return `undefined`.
41
+ *
42
+ * @param {string} courseId - Unique MongoDB identifier of the course item.
43
+ * @returns {Promise<LabHackschoolCourse | undefined>} Resolves to the course object if found, otherwise `undefined`.
44
+ */
45
+ async fetchCourseById(courseId) {
46
+ return this.fetchResource(`internal/course/${courseId}`);
47
+ }
48
+ /**
49
+ * Retrieves a single doc entry by its MongoDB identifier.
50
+ *
51
+ * If the downstream call fails or the resource does not exist, the method
52
+ * will log the failure and return `undefined`.
53
+ *
54
+ * @param {string} docId - Unique MongoDB identifier of the doc item.
55
+ * @returns {Promise<LabHackschoolDoc | undefined>} Resolves to the doc object if found, otherwise `undefined`.
56
+ */
57
+ async fetchDocById(docId) {
58
+ return this.fetchResource(`internal/doc/${docId}`);
59
+ }
60
+ /**
61
+ * Retrieves a single thread entry by its MongoDB identifier.
62
+ *
63
+ * If the downstream call fails or the resource does not exist, the method
64
+ * will log the failure and return `undefined`.
65
+ *
66
+ * @param {string} threadId - Unique MongoDB identifier of the thread item.
67
+ * @returns {Promise<LabHackschoolThread | undefined>} Resolves to the thread object if found, otherwise `undefined`.
68
+ */
69
+ async fetchThreadById(threadId) {
70
+ return this.fetchResource(`internal/thread/${threadId}`);
71
+ }
72
+ };
73
+ exports.HackschoolService = HackschoolService;
74
+ exports.HackschoolService = HackschoolService = __decorate([
75
+ __param(0, (0, authentication_1.InjectAuthenticationOptions)()),
76
+ __metadata("design:paramtypes", [Object, config_1.ConfigService])
77
+ ], HackschoolService);
@@ -0,0 +1,18 @@
1
+ import { ConfigService } from '@nestjs/config';
2
+ import { AuthenticationModuleOptions } from '../../authentication';
3
+ import { BaseHttpService } from '../base-http.service';
4
+ /**
5
+ * IdeasService
6
+ *
7
+ * Service client for interacting with the Ideas domain.
8
+ * Inherits logging, authentication, and environment-sensitive URL resolution from `BaseHttpService`.
9
+ */
10
+ export declare class IdeasService extends BaseHttpService {
11
+ /**
12
+ * Constructs a Ideas service client.
13
+ *
14
+ * @param {AuthenticationModuleOptions} authenticationOptions - Authentication options (provided by DI).
15
+ * @param {ConfigService} configService - Global NestJS config service for environment detection.
16
+ */
17
+ constructor(authenticationOptions: AuthenticationModuleOptions, configService: ConfigService);
18
+ }
@@ -0,0 +1,41 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.IdeasService = void 0;
16
+ const config_1 = require("@nestjs/config");
17
+ const authentication_1 = require("../../authentication");
18
+ const base_http_service_1 = require("../base-http.service");
19
+ const base_urls_1 = require("../base-urls");
20
+ /**
21
+ * IdeasService
22
+ *
23
+ * Service client for interacting with the Ideas domain.
24
+ * Inherits logging, authentication, and environment-sensitive URL resolution from `BaseHttpService`.
25
+ */
26
+ let IdeasService = class IdeasService extends base_http_service_1.BaseHttpService {
27
+ /**
28
+ * Constructs a Ideas service client.
29
+ *
30
+ * @param {AuthenticationModuleOptions} authenticationOptions - Authentication options (provided by DI).
31
+ * @param {ConfigService} configService - Global NestJS config service for environment detection.
32
+ */
33
+ constructor(authenticationOptions, configService) {
34
+ super('Ideas', base_urls_1.BaseUrls.IdeasService, authenticationOptions, configService);
35
+ }
36
+ };
37
+ exports.IdeasService = IdeasService;
38
+ exports.IdeasService = IdeasService = __decorate([
39
+ __param(0, (0, authentication_1.InjectAuthenticationOptions)()),
40
+ __metadata("design:paramtypes", [Object, config_1.ConfigService])
41
+ ], IdeasService);
@@ -0,0 +1,19 @@
1
+ export * from './books.service';
2
+ export * from './demo-hive.service';
3
+ export * from './events.service';
4
+ export * from './hackschool.service';
5
+ export * from './ideas.service';
6
+ export * from './lunch-roulette.service';
7
+ export * from './newletter.service';
8
+ export * from './newsroom.service';
9
+ export * from './podcasts.service';
10
+ export * from './team.service';
11
+ export * from './tech-radar.service';
12
+ export * from './accounts.service';
13
+ export * from './changelog.service';
14
+ export * from './comments';
15
+ export * from './mail';
16
+ export * from './notification';
17
+ export * from './search';
18
+ export * from './content';
19
+ export * from './pass';
@@ -0,0 +1,35 @@
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("./books.service"), exports);
18
+ __exportStar(require("./demo-hive.service"), exports);
19
+ __exportStar(require("./events.service"), exports);
20
+ __exportStar(require("./hackschool.service"), exports);
21
+ __exportStar(require("./ideas.service"), exports);
22
+ __exportStar(require("./lunch-roulette.service"), exports);
23
+ __exportStar(require("./newletter.service"), exports);
24
+ __exportStar(require("./newsroom.service"), exports);
25
+ __exportStar(require("./podcasts.service"), exports);
26
+ __exportStar(require("./team.service"), exports);
27
+ __exportStar(require("./tech-radar.service"), exports);
28
+ __exportStar(require("./accounts.service"), exports);
29
+ __exportStar(require("./changelog.service"), exports);
30
+ __exportStar(require("./comments"), exports);
31
+ __exportStar(require("./mail"), exports);
32
+ __exportStar(require("./notification"), exports);
33
+ __exportStar(require("./search"), exports);
34
+ __exportStar(require("./content"), exports);
35
+ __exportStar(require("./pass"), exports);
@@ -0,0 +1,18 @@
1
+ import { ConfigService } from '@nestjs/config';
2
+ import { AuthenticationModuleOptions } from '../../authentication';
3
+ import { BaseHttpService } from '../base-http.service';
4
+ /**
5
+ * LunchRouletteService
6
+ *
7
+ * Service client for interacting with the LunchRoulette domain.
8
+ * Inherits logging, authentication, and environment-sensitive URL resolution from `BaseHttpService`.
9
+ */
10
+ export declare class LunchRouletteService extends BaseHttpService {
11
+ /**
12
+ * Constructs a LunchRoulette service client.
13
+ *
14
+ * @param {AuthenticationModuleOptions} authenticationOptions - Authentication options (provided by DI).
15
+ * @param {ConfigService} configService - Global NestJS config service for environment detection.
16
+ */
17
+ constructor(authenticationOptions: AuthenticationModuleOptions, configService: ConfigService);
18
+ }