@darraghor/nest-backend-libs 2.23.1 → 2.24.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 (369) hide show
  1. package/dist/authorization/authz.module.js +40 -0
  2. package/dist/authorization/authz.module.js.map +1 -0
  3. package/dist/{authz → authorization/config}/AuthConfigurationService.d.ts +1 -1
  4. package/dist/{authz → authorization/config}/AuthConfigurationService.js +12 -15
  5. package/dist/authorization/config/AuthConfigurationService.js.map +1 -0
  6. package/dist/authorization/config/AuthConfigurationVariables.js +6 -0
  7. package/dist/authorization/config/AuthConfigurationVariables.js.map +1 -0
  8. package/dist/{authz → authorization/guards}/ApiKeyAuthGuard.js +5 -8
  9. package/dist/authorization/guards/ApiKeyAuthGuard.js.map +1 -0
  10. package/dist/{authz → authorization/guards}/ClaimsAuthorisationGuard.js +6 -9
  11. package/dist/authorization/guards/ClaimsAuthorisationGuard.js.map +1 -0
  12. package/dist/{authz → authorization/guards}/DefaultAuthGuard.js +5 -8
  13. package/dist/authorization/guards/DefaultAuthGuard.js.map +1 -0
  14. package/dist/authorization/guards/MandatoryUserClaims.decorator.js +4 -0
  15. package/dist/authorization/guards/MandatoryUserClaims.decorator.js.map +1 -0
  16. package/dist/{authz → authorization}/isOwnerOrThrow.js +3 -7
  17. package/dist/authorization/isOwnerOrThrow.js.map +1 -0
  18. package/dist/authorization/models/AccessToken.js +2 -0
  19. package/dist/authorization/models/AccessToken.js.map +1 -0
  20. package/dist/{authz → authorization/models}/RequestWithUser.d.ts +1 -1
  21. package/dist/authorization/models/RequestWithUser.js +2 -0
  22. package/dist/authorization/models/RequestWithUser.js.map +1 -0
  23. package/dist/authorization/models/SuperUserClaims.js +6 -0
  24. package/dist/authorization/models/SuperUserClaims.js.map +1 -0
  25. package/dist/{authz → authorization/services}/UserValidation.service.d.ts +6 -8
  26. package/dist/{authz → authorization/services}/UserValidation.service.js +67 -52
  27. package/dist/authorization/services/UserValidation.service.js.map +1 -0
  28. package/dist/{authz → authorization/strategies}/apikeystrategy.d.ts +2 -2
  29. package/dist/{authz → authorization/strategies}/apikeystrategy.js +8 -11
  30. package/dist/authorization/strategies/apikeystrategy.js.map +1 -0
  31. package/dist/{authz → authorization/strategies}/authzstrategy.d.ts +4 -4
  32. package/dist/{authz → authorization/strategies}/authzstrategy.js +15 -18
  33. package/dist/authorization/strategies/authzstrategy.js.map +1 -0
  34. package/dist/authzclient/AuthClientConfigurationService.d.ts +1 -1
  35. package/dist/authzclient/AuthClientConfigurationService.js +10 -13
  36. package/dist/authzclient/AuthClientConfigurationService.js.map +1 -1
  37. package/dist/authzclient/AuthClientConfigurationVariables.js +2 -4
  38. package/dist/authzclient/AuthClientConfigurationVariables.js.map +1 -1
  39. package/dist/authzclient/AuthzClientProvider.d.ts +3 -3
  40. package/dist/authzclient/AuthzClientProvider.js +6 -8
  41. package/dist/authzclient/AuthzClientProvider.js.map +1 -1
  42. package/dist/authzclient/UserProfile.dto.js +1 -5
  43. package/dist/authzclient/UserProfile.dto.js.map +1 -1
  44. package/dist/authzclient/authz-client.module.js +13 -19
  45. package/dist/authzclient/authz-client.module.js.map +1 -1
  46. package/dist/authzclient/authz.service.d.ts +2 -2
  47. package/dist/authzclient/authz.service.js +6 -10
  48. package/dist/authzclient/authz.service.js.map +1 -1
  49. package/dist/cli/cli.js +4 -29
  50. package/dist/cli/cli.js.map +1 -1
  51. package/dist/cli/commands/WriteApiClientCommand.js +6 -13
  52. package/dist/cli/commands/WriteApiClientCommand.js.map +1 -1
  53. package/dist/configuration/ValidatedConfigurationService.js +5 -8
  54. package/dist/configuration/ValidatedConfigurationService.js.map +1 -1
  55. package/dist/core-config/CoreConfig.module.js +9 -15
  56. package/dist/core-config/CoreConfig.module.js.map +1 -1
  57. package/dist/core-config/CoreConfigurationService.d.ts +2 -1
  58. package/dist/core-config/CoreConfigurationService.js +33 -27
  59. package/dist/core-config/CoreConfigurationService.js.map +1 -1
  60. package/dist/core-config/CoreConfigurationVariables.d.ts +2 -0
  61. package/dist/core-config/CoreConfigurationVariables.js +3 -4
  62. package/dist/core-config/CoreConfigurationVariables.js.map +1 -1
  63. package/dist/database-postgres/PostgresDatabase.module.js +11 -14
  64. package/dist/database-postgres/PostgresDatabase.module.js.map +1 -1
  65. package/dist/database-postgres/PostgresDatabaseConfigurationService.js +5 -8
  66. package/dist/database-postgres/PostgresDatabaseConfigurationService.js.map +1 -1
  67. package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js +7 -13
  68. package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js.map +1 -1
  69. package/dist/database-postgres/PostrgresMigrationsHelper.js +6 -11
  70. package/dist/database-postgres/PostrgresMigrationsHelper.js.map +1 -1
  71. package/dist/database-sqlite/SqliteDatabase.module.js +11 -14
  72. package/dist/database-sqlite/SqliteDatabase.module.js.map +1 -1
  73. package/dist/database-sqlite/SqliteDatabaseConfigurationService.js +5 -8
  74. package/dist/database-sqlite/SqliteDatabaseConfigurationService.js.map +1 -1
  75. package/dist/database-sqlite/SqliteMigrationsHelper.js +6 -11
  76. package/dist/database-sqlite/SqliteMigrationsHelper.js.map +1 -1
  77. package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.js +8 -14
  78. package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.js.map +1 -1
  79. package/dist/health/Health.controller.js +15 -18
  80. package/dist/health/Health.controller.js.map +1 -1
  81. package/dist/health/Health.module.js +8 -11
  82. package/dist/health/Health.module.js.map +1 -1
  83. package/dist/index.d.ts +48 -24
  84. package/dist/index.js +54 -58
  85. package/dist/index.js.map +1 -1
  86. package/dist/invitations/InvitationConfigurationService.d.ts +1 -1
  87. package/dist/invitations/InvitationConfigurationService.js +10 -13
  88. package/dist/invitations/InvitationConfigurationService.js.map +1 -1
  89. package/dist/invitations/InvitationConfigurationVariables.js +2 -4
  90. package/dist/invitations/InvitationConfigurationVariables.js.map +1 -1
  91. package/dist/invitations/dto/create-invitation.dto.js +5 -9
  92. package/dist/invitations/dto/create-invitation.dto.js.map +1 -1
  93. package/dist/invitations/entities/invitation.entity.d.ts +3 -2
  94. package/dist/invitations/entities/invitation.entity.js +33 -36
  95. package/dist/invitations/entities/invitation.entity.js.map +1 -1
  96. package/dist/invitations/invitation.controller.d.ts +4 -4
  97. package/dist/invitations/invitation.controller.js +21 -24
  98. package/dist/invitations/invitation.controller.js.map +1 -1
  99. package/dist/invitations/invitation.module.js +21 -27
  100. package/dist/invitations/invitation.module.js.map +1 -1
  101. package/dist/invitations/invitation.service.d.ts +7 -7
  102. package/dist/invitations/invitation.service.js +34 -37
  103. package/dist/invitations/invitation.service.js.map +1 -1
  104. package/dist/logger/LoggingConfigurationService.d.ts +1 -1
  105. package/dist/logger/LoggingConfigurationService.js +16 -19
  106. package/dist/logger/LoggingConfigurationService.js.map +1 -1
  107. package/dist/logger/LoggingConfigurationVariables.js +2 -4
  108. package/dist/logger/LoggingConfigurationVariables.js.map +1 -1
  109. package/dist/logger/logger.module.js +10 -16
  110. package/dist/logger/logger.module.js.map +1 -1
  111. package/dist/organisation/dto/RolesEnum.js +2 -5
  112. package/dist/organisation/dto/RolesEnum.js.map +1 -1
  113. package/dist/organisation/dto/create-organisation.dto.d.ts +1 -1
  114. package/dist/organisation/dto/create-organisation.dto.js +7 -11
  115. package/dist/organisation/dto/create-organisation.dto.js.map +1 -1
  116. package/dist/organisation/dto/update-organisation.dto.d.ts +1 -1
  117. package/dist/organisation/dto/update-organisation.dto.js +3 -7
  118. package/dist/organisation/dto/update-organisation.dto.js.map +1 -1
  119. package/dist/organisation/entities/member-role.entity.d.ts +3 -2
  120. package/dist/organisation/entities/member-role.entity.js +20 -23
  121. package/dist/organisation/entities/member-role.entity.js.map +1 -1
  122. package/dist/organisation/entities/organisation.entity.d.ts +2 -2
  123. package/dist/organisation/entities/organisation.entity.js +28 -31
  124. package/dist/organisation/entities/organisation.entity.js.map +1 -1
  125. package/dist/organisation/organisation.controller.d.ts +5 -5
  126. package/dist/organisation/organisation.controller.js +30 -33
  127. package/dist/organisation/organisation.controller.js.map +1 -1
  128. package/dist/organisation/organisation.module.js +18 -21
  129. package/dist/organisation/organisation.module.js.map +1 -1
  130. package/dist/organisation/organisation.service.d.ts +3 -3
  131. package/dist/organisation/organisation.service.js +21 -24
  132. package/dist/organisation/organisation.service.js.map +1 -1
  133. package/dist/organisation-memberships/dtos/create-membership-dto.js +4 -8
  134. package/dist/organisation-memberships/dtos/create-membership-dto.js.map +1 -1
  135. package/dist/organisation-memberships/entities/organisation-membership.entity.d.ts +4 -4
  136. package/dist/organisation-memberships/entities/organisation-membership.entity.js +40 -43
  137. package/dist/organisation-memberships/entities/organisation-membership.entity.js.map +1 -1
  138. package/dist/organisation-memberships/organisation-memberships.controller.d.ts +6 -6
  139. package/dist/organisation-memberships/organisation-memberships.controller.js +29 -32
  140. package/dist/organisation-memberships/organisation-memberships.controller.js.map +1 -1
  141. package/dist/organisation-memberships/organisation-memberships.module.js +16 -19
  142. package/dist/organisation-memberships/organisation-memberships.module.js.map +1 -1
  143. package/dist/organisation-memberships/organisation-memberships.service.d.ts +3 -3
  144. package/dist/organisation-memberships/organisation-memberships.service.js +20 -23
  145. package/dist/organisation-memberships/organisation-memberships.service.js.map +1 -1
  146. package/dist/organisation-subscriptions/all-subscriptions.controller.d.ts +2 -2
  147. package/dist/organisation-subscriptions/all-subscriptions.controller.js +16 -17
  148. package/dist/organisation-subscriptions/all-subscriptions.controller.js.map +1 -1
  149. package/dist/organisation-subscriptions/entities/organisation-subscription.entity.d.ts +3 -2
  150. package/dist/organisation-subscriptions/entities/organisation-subscription.entity.js +40 -43
  151. package/dist/organisation-subscriptions/entities/organisation-subscription.entity.js.map +1 -1
  152. package/dist/organisation-subscriptions/models/fulfillSubscriptionDto.js +25 -29
  153. package/dist/organisation-subscriptions/models/fulfillSubscriptionDto.js.map +1 -1
  154. package/dist/organisation-subscriptions/organisation-subscriptions.controller.d.ts +5 -5
  155. package/dist/organisation-subscriptions/organisation-subscriptions.controller.js +27 -31
  156. package/dist/organisation-subscriptions/organisation-subscriptions.controller.js.map +1 -1
  157. package/dist/organisation-subscriptions/organisation-subscriptions.module.js +18 -21
  158. package/dist/organisation-subscriptions/organisation-subscriptions.module.js.map +1 -1
  159. package/dist/organisation-subscriptions/organisation-subscriptions.service.d.ts +4 -4
  160. package/dist/organisation-subscriptions/organisation-subscriptions.service.js +21 -24
  161. package/dist/organisation-subscriptions/organisation-subscriptions.service.js.map +1 -1
  162. package/dist/payment-sessions/payment-session.controller.d.ts +3 -3
  163. package/dist/payment-sessions/payment-session.controller.js +17 -18
  164. package/dist/payment-sessions/payment-session.controller.js.map +1 -1
  165. package/dist/payment-sessions/payment-session.entity.js +14 -17
  166. package/dist/payment-sessions/payment-session.entity.js.map +1 -1
  167. package/dist/payment-sessions/payment-session.module.js +11 -14
  168. package/dist/payment-sessions/payment-session.module.js.map +1 -1
  169. package/dist/payment-sessions/payment-session.service.d.ts +1 -1
  170. package/dist/payment-sessions/payment-session.service.js +8 -11
  171. package/dist/payment-sessions/payment-session.service.js.map +1 -1
  172. package/dist/root-app/SwaggerGen.d.ts +1 -1
  173. package/dist/root-app/SwaggerGen.js +14 -20
  174. package/dist/root-app/SwaggerGen.js.map +1 -1
  175. package/dist/root-app/app.controller.d.ts +2 -2
  176. package/dist/root-app/app.controller.js +16 -19
  177. package/dist/root-app/app.controller.js.map +1 -1
  178. package/dist/root-app/app.service.js +3 -6
  179. package/dist/root-app/app.service.js.map +1 -1
  180. package/dist/root-app/core-app.module.js +51 -45
  181. package/dist/root-app/core-app.module.js.map +1 -1
  182. package/dist/root-app/models/QueueItemDto.js +7 -11
  183. package/dist/root-app/models/QueueItemDto.js.map +1 -1
  184. package/dist/root-app/models/boolean-result.js +3 -7
  185. package/dist/root-app/models/boolean-result.js.map +1 -1
  186. package/dist/root-app/notfound.interceptor.js +6 -9
  187. package/dist/root-app/notfound.interceptor.js.map +1 -1
  188. package/dist/runningCommandLine/CliCommandService.js +7 -13
  189. package/dist/runningCommandLine/CliCommandService.js.map +1 -1
  190. package/dist/runningCommandLine/RunningCommandLine.module.js +7 -10
  191. package/dist/runningCommandLine/RunningCommandLine.module.js.map +1 -1
  192. package/dist/smtp-email-client/EmailConfigurationService.d.ts +1 -1
  193. package/dist/smtp-email-client/EmailConfigurationService.js +24 -27
  194. package/dist/smtp-email-client/EmailConfigurationService.js.map +1 -1
  195. package/dist/smtp-email-client/EmailConfigurationVariables.js +2 -4
  196. package/dist/smtp-email-client/EmailConfigurationVariables.js.map +1 -1
  197. package/dist/smtp-email-client/EmailTransporterProvider.d.ts +1 -1
  198. package/dist/smtp-email-client/EmailTransporterProvider.js +5 -8
  199. package/dist/smtp-email-client/EmailTransporterProvider.js.map +1 -1
  200. package/dist/smtp-email-client/email-client.service.d.ts +2 -2
  201. package/dist/smtp-email-client/email-client.service.js +13 -16
  202. package/dist/smtp-email-client/email-client.service.js.map +1 -1
  203. package/dist/smtp-email-client/email.controller.d.ts +3 -3
  204. package/dist/smtp-email-client/email.controller.js +24 -25
  205. package/dist/smtp-email-client/email.controller.js.map +1 -1
  206. package/dist/smtp-email-client/email.entity.js +32 -35
  207. package/dist/smtp-email-client/email.entity.js.map +1 -1
  208. package/dist/smtp-email-client/smtp-email-client.module.js +22 -28
  209. package/dist/smtp-email-client/smtp-email-client.module.js.map +1 -1
  210. package/dist/smtp-email-client/smtp-email-handler.d.ts +2 -2
  211. package/dist/smtp-email-client/smtp-email-handler.js +18 -21
  212. package/dist/smtp-email-client/smtp-email-handler.js.map +1 -1
  213. package/dist/stripe-client/StripeClientConfigurationService.d.ts +1 -1
  214. package/dist/stripe-client/StripeClientConfigurationService.js +14 -17
  215. package/dist/stripe-client/StripeClientConfigurationService.js.map +1 -1
  216. package/dist/stripe-client/StripeClientProvider.d.ts +1 -1
  217. package/dist/stripe-client/StripeClientProvider.js +5 -11
  218. package/dist/stripe-client/StripeClientProvider.js.map +1 -1
  219. package/dist/stripe-client/StripeConfigurationVariables.js +2 -4
  220. package/dist/stripe-client/StripeConfigurationVariables.js.map +1 -1
  221. package/dist/stripe-client/controllers/stripe-checkout-controller.d.ts +4 -4
  222. package/dist/stripe-client/controllers/stripe-checkout-controller.js +17 -20
  223. package/dist/stripe-client/controllers/stripe-checkout-controller.js.map +1 -1
  224. package/dist/stripe-client/controllers/stripe-customer-portal-controller.d.ts +4 -4
  225. package/dist/stripe-client/controllers/stripe-customer-portal-controller.js +18 -21
  226. package/dist/stripe-client/controllers/stripe-customer-portal-controller.js.map +1 -1
  227. package/dist/stripe-client/controllers/stripe-events-controller.d.ts +3 -3
  228. package/dist/stripe-client/controllers/stripe-events-controller.js +20 -21
  229. package/dist/stripe-client/controllers/stripe-events-controller.js.map +1 -1
  230. package/dist/stripe-client/controllers/stripe-unauthenticated-checkout-controller.d.ts +3 -3
  231. package/dist/stripe-client/controllers/stripe-unauthenticated-checkout-controller.js +13 -16
  232. package/dist/stripe-client/controllers/stripe-unauthenticated-checkout-controller.js.map +1 -1
  233. package/dist/stripe-client/controllers/stripe-webhook-controller.d.ts +2 -2
  234. package/dist/stripe-client/controllers/stripe-webhook-controller.js +27 -28
  235. package/dist/stripe-client/controllers/stripe-webhook-controller.js.map +1 -1
  236. package/dist/stripe-client/entities/stripe-checkout-event.entity.js +19 -22
  237. package/dist/stripe-client/entities/stripe-checkout-event.entity.js.map +1 -1
  238. package/dist/stripe-client/models/StripeCheckoutLineItem.js +7 -11
  239. package/dist/stripe-client/models/StripeCheckoutLineItem.js.map +1 -1
  240. package/dist/stripe-client/models/StripeCheckoutSessionRequestDto.d.ts +1 -1
  241. package/dist/stripe-client/models/StripeCheckoutSessionRequestDto.js +17 -21
  242. package/dist/stripe-client/models/StripeCheckoutSessionRequestDto.js.map +1 -1
  243. package/dist/stripe-client/models/StripeCheckoutSessionResponseDto.js +4 -8
  244. package/dist/stripe-client/models/StripeCheckoutSessionResponseDto.js.map +1 -1
  245. package/dist/stripe-client/models/StripeCustomerPortalRequestDto.js +9 -13
  246. package/dist/stripe-client/models/StripeCustomerPortalRequestDto.js.map +1 -1
  247. package/dist/stripe-client/models/StripeCustomerPortalResponseDto.js +3 -7
  248. package/dist/stripe-client/models/StripeCustomerPortalResponseDto.js.map +1 -1
  249. package/dist/stripe-client/models/UrlResponseDto.js +1 -5
  250. package/dist/stripe-client/models/UrlResponseDto.js.map +1 -1
  251. package/dist/stripe-client/services/queued-payment-event.handler.d.ts +3 -3
  252. package/dist/stripe-client/services/queued-payment-event.handler.js +22 -28
  253. package/dist/stripe-client/services/queued-payment-event.handler.js.map +1 -1
  254. package/dist/stripe-client/services/stripe-checkout.service.d.ts +9 -9
  255. package/dist/stripe-client/services/stripe-checkout.service.js +20 -26
  256. package/dist/stripe-client/services/stripe-checkout.service.js.map +1 -1
  257. package/dist/stripe-client/services/stripe-webhook-handler.service.d.ts +1 -1
  258. package/dist/stripe-client/services/stripe-webhook-handler.service.js +12 -18
  259. package/dist/stripe-client/services/stripe-webhook-handler.service.js.map +1 -1
  260. package/dist/stripe-client/stripe-account.module.js +37 -43
  261. package/dist/stripe-client/stripe-account.module.js.map +1 -1
  262. package/dist/testing/preRun.js +1 -3
  263. package/dist/testing/preRun.js.map +1 -1
  264. package/dist/twitter-client/TwitterClientConfigurationService.d.ts +1 -1
  265. package/dist/twitter-client/TwitterClientConfigurationService.js +16 -19
  266. package/dist/twitter-client/TwitterClientConfigurationService.js.map +1 -1
  267. package/dist/twitter-client/TwitterClientProvider.d.ts +2 -2
  268. package/dist/twitter-client/TwitterClientProvider.js +5 -8
  269. package/dist/twitter-client/TwitterClientProvider.js.map +1 -1
  270. package/dist/twitter-client/TwitterConfigurationVariables.js +2 -4
  271. package/dist/twitter-client/TwitterConfigurationVariables.js.map +1 -1
  272. package/dist/twitter-client/services/twitter-client.service.d.ts +1 -1
  273. package/dist/twitter-client/services/twitter-client.service.js +6 -10
  274. package/dist/twitter-client/services/twitter-client.service.js.map +1 -1
  275. package/dist/twitter-client/twitter-account.module.js +14 -20
  276. package/dist/twitter-client/twitter-account.module.js.map +1 -1
  277. package/dist/user-api-key/CreateApiKeyDto.js +6 -9
  278. package/dist/user-api-key/CreateApiKeyDto.js.map +1 -1
  279. package/dist/user-api-key/user-apikey.controller.d.ts +5 -5
  280. package/dist/user-api-key/user-apikey.controller.js +30 -35
  281. package/dist/user-api-key/user-apikey.controller.js.map +1 -1
  282. package/dist/user-api-key/user-apikey.module.js +11 -14
  283. package/dist/user-api-key/user-apikey.module.js.map +1 -1
  284. package/dist/user-api-key/user-apikey.service.d.ts +1 -1
  285. package/dist/user-api-key/user-apikey.service.js +14 -17
  286. package/dist/user-api-key/user-apikey.service.js.map +1 -1
  287. package/dist/user-api-key/userApiKey.entity.d.ts +3 -2
  288. package/dist/user-api-key/userApiKey.entity.js +22 -25
  289. package/dist/user-api-key/userApiKey.entity.js.map +1 -1
  290. package/dist/user-internal/dto/create-user.dto.js +1 -5
  291. package/dist/user-internal/dto/create-user.dto.js.map +1 -1
  292. package/dist/user-internal/dto/update-user.dto.d.ts +1 -1
  293. package/dist/user-internal/dto/update-user.dto.js +3 -7
  294. package/dist/user-internal/dto/update-user.dto.js.map +1 -1
  295. package/dist/user-internal/dto/userResponseDto.d.ts +1 -1
  296. package/dist/user-internal/dto/userResponseDto.js +21 -25
  297. package/dist/user-internal/dto/userResponseDto.js.map +1 -1
  298. package/dist/user-internal/entities/user.entity.d.ts +2 -2
  299. package/dist/user-internal/entities/user.entity.js +47 -50
  300. package/dist/user-internal/entities/user.entity.js.map +1 -1
  301. package/dist/user-internal/user-internal.module.js +11 -12
  302. package/dist/user-internal/user-internal.module.js.map +1 -1
  303. package/dist/{user-external → user-internal}/user.controller.d.ts +6 -6
  304. package/dist/{user-external → user-internal}/user.controller.js +38 -38
  305. package/dist/user-internal/user.controller.js.map +1 -0
  306. package/dist/user-internal/user.service.d.ts +3 -3
  307. package/dist/user-internal/user.service.js +12 -15
  308. package/dist/user-internal/user.service.js.map +1 -1
  309. package/package.json +8 -2
  310. package/dist/authz/AccessToken.js +0 -3
  311. package/dist/authz/AccessToken.js.map +0 -1
  312. package/dist/authz/ApiKeyAuthGuard.js.map +0 -1
  313. package/dist/authz/AuthConfigurationService.js.map +0 -1
  314. package/dist/authz/AuthConfigurationVariables.js +0 -8
  315. package/dist/authz/AuthConfigurationVariables.js.map +0 -1
  316. package/dist/authz/ClaimsAuthorisationGuard.js.map +0 -1
  317. package/dist/authz/DefaultAuthGuard.js.map +0 -1
  318. package/dist/authz/MandatoryUserClaims.decorator.js +0 -8
  319. package/dist/authz/MandatoryUserClaims.decorator.js.map +0 -1
  320. package/dist/authz/RequestWithUser.js +0 -3
  321. package/dist/authz/RequestWithUser.js.map +0 -1
  322. package/dist/authz/SuperUserClaims.js +0 -9
  323. package/dist/authz/SuperUserClaims.js.map +0 -1
  324. package/dist/authz/UserValidation.service.js.map +0 -1
  325. package/dist/authz/apikeystrategy.js.map +0 -1
  326. package/dist/authz/authz.module.js +0 -48
  327. package/dist/authz/authz.module.js.map +0 -1
  328. package/dist/authz/authzstrategy.js.map +0 -1
  329. package/dist/authz/index.d.ts +0 -10
  330. package/dist/authz/index.js +0 -22
  331. package/dist/authz/index.js.map +0 -1
  332. package/dist/authz/isOwnerOrThrow.js.map +0 -1
  333. package/dist/invitations/index.d.ts +0 -4
  334. package/dist/invitations/index.js +0 -12
  335. package/dist/invitations/index.js.map +0 -1
  336. package/dist/organisation/index.d.ts +0 -1
  337. package/dist/organisation/index.js +0 -6
  338. package/dist/organisation/index.js.map +0 -1
  339. package/dist/organisation-memberships/index.d.ts +0 -2
  340. package/dist/organisation-memberships/index.js +0 -8
  341. package/dist/organisation-memberships/index.js.map +0 -1
  342. package/dist/organisation-subscriptions/index.d.ts +0 -3
  343. package/dist/organisation-subscriptions/index.js +0 -10
  344. package/dist/organisation-subscriptions/index.js.map +0 -1
  345. package/dist/stripe-client/index.d.ts +0 -7
  346. package/dist/stripe-client/index.js +0 -18
  347. package/dist/stripe-client/index.js.map +0 -1
  348. package/dist/user-api-key/index.d.ts +0 -3
  349. package/dist/user-api-key/index.js +0 -10
  350. package/dist/user-api-key/index.js.map +0 -1
  351. package/dist/user-external/index.d.ts +0 -1
  352. package/dist/user-external/index.js +0 -6
  353. package/dist/user-external/index.js.map +0 -1
  354. package/dist/user-external/user-external.module.d.ts +0 -2
  355. package/dist/user-external/user-external.module.js +0 -22
  356. package/dist/user-external/user-external.module.js.map +0 -1
  357. package/dist/user-external/user.controller.js.map +0 -1
  358. package/dist/user-internal/index.d.ts +0 -2
  359. package/dist/user-internal/index.js +0 -8
  360. package/dist/user-internal/index.js.map +0 -1
  361. /package/dist/{authz → authorization}/authz.module.d.ts +0 -0
  362. /package/dist/{authz → authorization/config}/AuthConfigurationVariables.d.ts +0 -0
  363. /package/dist/{authz → authorization/guards}/ApiKeyAuthGuard.d.ts +0 -0
  364. /package/dist/{authz → authorization/guards}/ClaimsAuthorisationGuard.d.ts +0 -0
  365. /package/dist/{authz → authorization/guards}/DefaultAuthGuard.d.ts +0 -0
  366. /package/dist/{authz → authorization/guards}/MandatoryUserClaims.decorator.d.ts +0 -0
  367. /package/dist/{authz → authorization}/isOwnerOrThrow.d.ts +0 -0
  368. /package/dist/{authz → authorization/models}/AccessToken.d.ts +0 -0
  369. /package/dist/{authz → authorization/models}/SuperUserClaims.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"core-app.module.js","sourceRoot":"","sources":["../../src/root-app/core-app.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAsD;AACtD,+DAA+D;AAC/D,4DAA4D;AAC5D,4BAA0B;AAC1B,oDAA4B;AAC5B,2CAOwB;AACxB,6CAAiD;AACjD,qDAA+C;AAC/C,+CAAyC;AACzC,6CAAwC;AACxC,uCAAoD;AACpD,sFAAiF;AACjF,wEAAkE;AAClE,2CAA4C;AAC5C,uCAAwC;AACxC,2DAAqD;AACrD,2DAA4E;AAC5E,uFAAkF;AAClF,oCAAqC;AAoD9B,IAAM,UAAU,GAAhB,MAAM,UAAU;IACZ,MAAM,CAAC,e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AS;yBAClB;qBACJ,CAAC;gBACN,CAAC;aACJ,CAAC;YACF,gBAAgB;YAChB,cAAc,CAAC,aAAa,CAAC;gBACzB,OAAO,EAAE,CAAC,gBAAgB,CAAC;gBAC3B,MAAM,EAAE,CAAC,wBAAwB,CAAC;gBAClC,UAAU,EAAE,KAAK,EACb,aAAuC;gBAEvC,4DAA4D;kBAC9D,EAAE;oBACA,OAAO;wBACH,IAAI,EAAE,aAAa,CAAC,iBAAiB;qBACxC,CAAC;gBACN,CAAC;aACJ,CAAC;YACF,UAAU,CAAC,YAAY,CAAC;gBACpB,OAAO,EAAE,CAAC,gBAAgB,CAAC;gBAE3B,UAAU,EAAE,KAAK,EACb,aAAuC;gBAEvC,4DAA4D;kBAC9D,EAAE;oBACA,MAAM,QAAQ,GAAG,IAAI,GAAG,CACpB,aAAa,CAAC,aAAa,IAAI,mBAAmB,CACrD,CAAC;oBACF,OAAO;wBACH,KAAK,EAAE;4BACH,IAAI,EAAE,QAAQ,CAAC,QAAQ;4BACvB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;4BAC3B,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;4BAC3B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;4BAC3B,oBAAoB,EAAE,CAAC;yBAC1B;qBACJ,CAAC;gBACN,CAAC;gBACD,MAAM,EAAE,CAAC,wBAAwB,CAAC;aACrC,CAAC;YACF,YAAY;YACZ,WAAW;SACd;QACD,WAAW,EAAE,CAAC,aAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;QACnC,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,CAAC;KAC/D,CAAC;GACW,UAAU,CAyDtB;SAzDY,UAAU"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,10 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.QueueItemDto = void 0;
13
- const swagger_1 = require("@nestjs/swagger");
14
- class QueueItemDto {
10
+ import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
11
+ export class QueueItemDto {
15
12
  id;
16
13
  queueDateLocal;
17
14
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
@@ -21,24 +18,23 @@ class QueueItemDto {
21
18
  failReason;
22
19
  }
23
20
  __decorate([
24
- (0, swagger_1.ApiProperty)(),
21
+ ApiProperty(),
25
22
  __metadata("design:type", String)
26
23
  ], QueueItemDto.prototype, "id", void 0);
27
24
  __decorate([
28
- (0, swagger_1.ApiProperty)(),
25
+ ApiProperty(),
29
26
  __metadata("design:type", Date)
30
27
  ], QueueItemDto.prototype, "queueDateLocal", void 0);
31
28
  __decorate([
32
- (0, swagger_1.ApiProperty)(),
29
+ ApiProperty(),
33
30
  __metadata("design:type", String)
34
31
  ], QueueItemDto.prototype, "result", void 0);
35
32
  __decorate([
36
- (0, swagger_1.ApiProperty)(),
33
+ ApiProperty(),
37
34
  __metadata("design:type", String)
38
35
  ], QueueItemDto.prototype, "data", void 0);
39
36
  __decorate([
40
- (0, swagger_1.ApiPropertyOptional)(),
37
+ ApiPropertyOptional(),
41
38
  __metadata("design:type", String)
42
39
  ], QueueItemDto.prototype, "failReason", void 0);
43
- exports.QueueItemDto = QueueItemDto;
44
40
  //# sourceMappingURL=QueueItemDto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueueItemDto.js","sourceRoot":"","sources":["../../../src/root-app/models/QueueItemDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAiE;AAEjE,MAAa,YAAY;IAErB,EAAE,CAAU;IAEZ,cAAc,CAAQ;IACtB,mEAAmE;IAEnE,MAAM,CAAU;IAChB,mEAAmE;IAEnE,IAAI,CAAU;IAEd,UAAU,CAAU;CACvB;AAZG;IAAC,IAAA,qBAAW,GAAE;;wCACF;AACZ;IAAC,IAAA,qBAAW,GAAE;8BACG,IAAI;oDAAC;AAEtB;IAAC,IAAA,qBAAW,GAAE;;4CACE;AAEhB;IAAC,IAAA,qBAAW,GAAE;;0CACA;AACd;IAAC,IAAA,6BAAmB,GAAE;;gDACF;AAZxB,oCAaC"}
1
+ {"version":3,"file":"QueueItemDto.js","sourceRoot":"","sources":["../../../src/root-app/models/QueueItemDto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEjE,MAAM,OAAO,YAAY;IAErB,EAAE,CAAU;IAEZ,cAAc,CAAQ;IACtB,mEAAmE;IAEnE,MAAM,CAAU;IAChB,mEAAmE;IAEnE,IAAI,CAAU;IAEd,UAAU,CAAU;CACvB;AAZG;IAAC,WAAW,EAAE;;wCACF;AACZ;IAAC,WAAW,EAAE;8BACG,IAAI;oDAAC;AAEtB;IAAC,WAAW,EAAE;;4CACE;AAEhB;IAAC,WAAW,EAAE;;0CACA;AACd;IAAC,mBAAmB,EAAE;;gDACF"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,15 +7,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BooleanResult = void 0;
13
- const swagger_1 = require("@nestjs/swagger");
14
- class BooleanResult {
10
+ import { ApiProperty } from "@nestjs/swagger";
11
+ export class BooleanResult {
15
12
  result;
16
13
  }
17
14
  __decorate([
18
- (0, swagger_1.ApiProperty)(),
15
+ ApiProperty(),
19
16
  __metadata("design:type", Boolean)
20
17
  ], BooleanResult.prototype, "result", void 0);
21
- exports.BooleanResult = BooleanResult;
22
18
  //# sourceMappingURL=boolean-result.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"boolean-result.js","sourceRoot":"","sources":["../../../src/root-app/models/boolean-result.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAE5C,MAAa,aAAa;IAEtB,MAAM,CAAW;CACpB;AAFG;IAAC,IAAA,qBAAW,GAAE;;6CACG;AAFrB,sCAGC"}
1
+ {"version":3,"file":"boolean-result.js","sourceRoot":"","sources":["../../../src/root-app/models/boolean-result.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,aAAa;IAEtB,MAAM,CAAW;CACpB;AAFG;IAAC,WAAW,EAAE;;6CACG"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,26 +7,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.NotFoundInterceptor = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const operators_1 = require("rxjs/operators");
10
+ import { Injectable, NotFoundException, } from "@nestjs/common";
11
+ import { tap } from "rxjs/operators";
15
12
  let NotFoundInterceptor = class NotFoundInterceptor {
16
13
  errorMessage;
17
14
  constructor(errorMessage) {
18
15
  this.errorMessage = errorMessage;
19
16
  }
20
17
  intercept(context, stream$) {
21
- return stream$.handle().pipe((0, operators_1.tap)((data) => {
18
+ return stream$.handle().pipe(tap((data) => {
22
19
  if (data === undefined) {
23
- throw new common_1.NotFoundException(this.errorMessage);
20
+ throw new NotFoundException(this.errorMessage);
24
21
  }
25
22
  }));
26
23
  }
27
24
  };
28
25
  NotFoundInterceptor = __decorate([
29
- (0, common_1.Injectable)(),
26
+ Injectable(),
30
27
  __metadata("design:paramtypes", [String])
31
28
  ], NotFoundInterceptor);
32
- exports.NotFoundInterceptor = NotFoundInterceptor;
29
+ export { NotFoundInterceptor };
33
30
  //# sourceMappingURL=notfound.interceptor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notfound.interceptor.js","sourceRoot":"","sources":["../../src/root-app/notfound.interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAMwB;AAExB,8CAAmC;AAG5B,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACR;IAApB,YAAoB,YAAoB;QAApB,iBAAY,GAAZ,YAAY,CAAQ;IAAG,CAAC;IAE5C,SAAS,CACL,OAAyB,EACzB,OAAoB;QAEpB,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CACxB,IAAA,eAAG,EAAC,CAAC,IAAI,EAAE,EAAE;YACT,IAAI,IAAI,KAAK,SAAS,EAAE;gBACpB,MAAM,IAAI,0BAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;aAClD;QACL,CAAC,CAAC,CACL,CAAC;IACN,CAAC;CACJ,CAAA;AAfY,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;;GACA,mBAAmB,CAe/B;AAfY,kDAAmB"}
1
+ {"version":3,"file":"notfound.interceptor.js","sourceRoot":"","sources":["../../src/root-app/notfound.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACH,UAAU,EAGV,iBAAiB,GAEpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AAG5B,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACR;IAApB,YAAoB,YAAoB;QAApB,iBAAY,GAAZ,YAAY,CAAQ;IAAG,CAAC;IAE5C,SAAS,CACL,OAAyB,EACzB,OAAoB;QAEpB,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CACxB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACT,IAAI,IAAI,KAAK,SAAS,EAAE;gBACpB,MAAM,IAAI,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;aAClD;QACL,CAAC,CAAC,CACL,CAAC;IACN,CAAC;CACJ,CAAA;AAfY,mBAAmB;IAD/B,UAAU,EAAE;;GACA,mBAAmB,CAe/B;SAfY,mBAAmB"}
@@ -1,23 +1,17 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
4
  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
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
6
  };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
7
  var CliCommandService_1;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.CliCommandService = void 0;
14
- const common_1 = require("@nestjs/common");
15
- const child_process_1 = require("child_process");
8
+ import { Injectable, Logger } from "@nestjs/common";
9
+ import { exec } from "child_process";
16
10
  // eslint-disable-next-line unicorn/import-style
17
- const util_1 = __importDefault(require("util"));
18
- const execPromise = util_1.default.promisify(child_process_1.exec);
11
+ import util from "util";
12
+ const execPromise = util.promisify(exec);
19
13
  let CliCommandService = CliCommandService_1 = class CliCommandService {
20
- logger = new common_1.Logger(CliCommandService_1.name);
14
+ logger = new Logger(CliCommandService_1.name);
21
15
  async execAsPromised(command, commandArguments, cwd, shell) {
22
16
  this.logger.warn(`Executing cli command '${command}' in '${cwd}'`);
23
17
  this.logger.warn("Note: Do NOT allow user input as parameters for 'execAsPromised' as inputs are not sanitised and a hacker could take over your system.");
@@ -29,7 +23,7 @@ let CliCommandService = CliCommandService_1 = class CliCommandService {
29
23
  }
30
24
  };
31
25
  CliCommandService = CliCommandService_1 = __decorate([
32
- (0, common_1.Injectable)()
26
+ Injectable()
33
27
  ], CliCommandService);
34
- exports.CliCommandService = CliCommandService;
28
+ export { CliCommandService };
35
29
  //# sourceMappingURL=CliCommandService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CliCommandService.js","sourceRoot":"","sources":["../../src/runningCommandLine/CliCommandService.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAkD;AAClD,iDAAmC;AACnC,gDAAgD;AAChD,gDAAwB;AAExB,MAAM,WAAW,GAAG,cAAI,CAAC,SAAS,CAAC,oBAAI,CAAC,CAAC;AAGlC,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IACT,MAAM,GAAG,IAAI,eAAM,CAAC,mBAAiB,CAAC,IAAI,CAAC,CAAC;IAEtD,KAAK,CAAC,cAAc,CACvB,OAAe,EACf,gBAA0B,EAC1B,GAAW,EACX,KAAc;QAEd,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,0BAA0B,OAAO,SAAS,GAAG,GAAG,CAAC,CAAC;QACnE,IAAI,C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CAAC;IACzB,CAAC;CACJ,CAAA;AAvBY,iBAAiB;IAD7B,UAAU,EAAE;GACA,iBAAiB,CAuB7B;SAvBY,iBAAiB"}
@@ -1,24 +1,21 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
4
  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
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
6
  };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.RunningCommandLineModule = void 0;
10
- const common_1 = require("@nestjs/common");
11
- require("reflect-metadata");
12
- const CliCommandService_1 = require("./CliCommandService");
7
+ import { Module } from "@nestjs/common";
8
+ import "reflect-metadata";
9
+ import { CliCommandService } from "./CliCommandService.js";
13
10
  let RunningCommandLineModule = class RunningCommandLineModule {
14
11
  };
15
12
  RunningCommandLineModule = __decorate([
16
- (0, common_1.Module)({
13
+ Module({
17
14
  imports: [],
18
- providers: [CliCommandService_1.CliCommandService],
19
- exports: [CliCommandService_1.CliCommandService],
15
+ providers: [CliCommandService],
16
+ exports: [CliCommandService],
20
17
  controllers: [],
21
18
  })
22
19
  ], RunningCommandLineModule);
23
- exports.RunningCommandLineModule = RunningCommandLineModule;
20
+ export { RunningCommandLineModule };
24
21
  //# sourceMappingURL=RunningCommandLine.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RunningCommandLine.module.js","sourceRoot":"","sources":["../../src/runningCommandLine/RunningCommandLine.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsC;AACtC,4BAA0B;AAC1B,2DAAsD;AAQ/C,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,wBAAwB;IANpC,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,CAAC,qCAAiB,CAAC;QAC9B,OAAO,EAAE,CAAC,qCAAiB,CAAC;QAC5B,WAAW,EAAE,EAAE;KAClB,CAAC;GACW,wBAAwB,CAAG;AAA3B,4DAAwB"}
1
+ {"version":3,"file":"RunningCommandLine.module.js","sourceRoot":"","sources":["../../src/runningCommandLine/RunningCommandLine.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAQlD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,wBAAwB;IANpC,MAAM,CAAC;QACJ,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,CAAC,iBAAiB,CAAC;QAC9B,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,WAAW,EAAE,EAAE;KAClB,CAAC;GACW,wBAAwB,CAAG;SAA3B,wBAAwB"}
@@ -1,5 +1,5 @@
1
1
  import { ConfigService } from "@nestjs/config";
2
- import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService";
2
+ import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService.js";
3
3
  export declare class EmailConfigurationService extends ValidatedConfigurationService {
4
4
  private configService;
5
5
  constructor(configService: ConfigService);
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,14 +7,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EmailConfigurationService = void 0;
13
10
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
14
- const common_1 = require("@nestjs/common");
15
- const config_1 = require("@nestjs/config");
16
- const class_validator_1 = require("class-validator");
17
- const ValidatedConfigurationService_1 = require("../configuration/ValidatedConfigurationService");
18
- let EmailConfigurationService = class EmailConfigurationService extends ValidatedConfigurationService_1.ValidatedConfigurationService {
11
+ import { Injectable } from "@nestjs/common";
12
+ import { ConfigService } from "@nestjs/config";
13
+ import { IsBoolean, IsDefined, IsInt, IsString } from "class-validator";
14
+ import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService.js";
15
+ let EmailConfigurationService = class EmailConfigurationService extends ValidatedConfigurationService {
19
16
  configService;
20
17
  constructor(configService) {
21
18
  super();
@@ -48,56 +45,56 @@ let EmailConfigurationService = class EmailConfigurationService extends Validate
48
45
  }
49
46
  };
50
47
  __decorate([
51
- (0, class_validator_1.IsDefined)(),
52
- (0, class_validator_1.IsBoolean)(),
48
+ IsDefined(),
49
+ IsBoolean(),
53
50
  __metadata("design:type", Boolean),
54
51
  __metadata("design:paramtypes", [])
55
52
  ], EmailConfigurationService.prototype, "isEmailSyncSendEnabled", null);
56
53
  __decorate([
57
- (0, class_validator_1.IsDefined)(),
58
- (0, class_validator_1.IsString)(),
54
+ IsDefined(),
55
+ IsString(),
59
56
  __metadata("design:type", String),
60
57
  __metadata("design:paramtypes", [])
61
58
  ], EmailConfigurationService.prototype, "extraEmailBcc", null);
62
59
  __decorate([
63
- (0, class_validator_1.IsDefined)(),
64
- (0, class_validator_1.IsString)(),
60
+ IsDefined(),
61
+ IsString(),
65
62
  __metadata("design:type", String),
66
63
  __metadata("design:paramtypes", [])
67
64
  ], EmailConfigurationService.prototype, "emailPassword", null);
68
65
  __decorate([
69
- (0, class_validator_1.IsDefined)(),
70
- (0, class_validator_1.IsString)(),
66
+ IsDefined(),
67
+ IsString(),
71
68
  __metadata("design:type", String),
72
69
  __metadata("design:paramtypes", [])
73
70
  ], EmailConfigurationService.prototype, "smtpHost", null);
74
71
  __decorate([
75
- (0, class_validator_1.IsDefined)(),
76
- (0, class_validator_1.IsInt)(),
72
+ IsDefined(),
73
+ IsInt(),
77
74
  __metadata("design:type", Number),
78
75
  __metadata("design:paramtypes", [])
79
76
  ], EmailConfigurationService.prototype, "smtpPort", null);
80
77
  __decorate([
81
- (0, class_validator_1.IsDefined)(),
82
- (0, class_validator_1.IsString)(),
78
+ IsDefined(),
79
+ IsString(),
83
80
  __metadata("design:type", String),
84
81
  __metadata("design:paramtypes", [])
85
82
  ], EmailConfigurationService.prototype, "emailUsername", null);
86
83
  __decorate([
87
- (0, class_validator_1.IsDefined)(),
88
- (0, class_validator_1.IsString)(),
84
+ IsDefined(),
85
+ IsString(),
89
86
  __metadata("design:type", String),
90
87
  __metadata("design:paramtypes", [])
91
88
  ], EmailConfigurationService.prototype, "senderEmailAddress", null);
92
89
  __decorate([
93
- (0, class_validator_1.IsDefined)(),
94
- (0, class_validator_1.IsString)(),
90
+ IsDefined(),
91
+ IsString(),
95
92
  __metadata("design:type", String),
96
93
  __metadata("design:paramtypes", [])
97
94
  ], EmailConfigurationService.prototype, "senderName", null);
98
95
  EmailConfigurationService = __decorate([
99
- (0, common_1.Injectable)(),
100
- __metadata("design:paramtypes", [config_1.ConfigService])
96
+ Injectable(),
97
+ __metadata("design:paramtypes", [ConfigService])
101
98
  ], EmailConfigurationService);
102
- exports.EmailConfigurationService = EmailConfigurationService;
99
+ export { EmailConfigurationService };
103
100
  //# sourceMappingURL=EmailConfigurationService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmailConfigurationService.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA6D;AAC7D,2CAA0C;AAC1C,2CAA6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8DAGV;AAED;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;;yDAGV;AAED;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,uBAAK,GAAE;;;yDAMP;AAED;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;;8DAGV;AAED;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;;mEAGV;AAED;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;;2DAGV;AAzDQ,yBAAyB;IADrC,IAAA,mBAAU,GAAE;qCAE0B,sBAAa;GADvC,yBAAyB,CA0DrC;AA1DY,8DAAyB"}
1
+ {"version":3,"file":"EmailConfigurationService.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6DAA6D;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAC,6BAA6B,EAAC,MAAM,mDAAmD,CAAC;AAGzF,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,6BAA6B;IACpD;IAApB,YAAoB,aAA4B;QAC5C,KAAK,EAAE,CAAC;QADQ,kBAAa,GAAb,aAAa,CAAe;IAEhD,CAAC;IAED,IAEI,sBAAsB;QACtB,OAAO,CACH,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,8BAA8B,CAAC;YAC9D,MAAM,CACT,CAAC;IACN,CAAC;IAED,IAEI,aAAa;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,qBAAqB,CAAE,CAAC;IAClE,CAAC;IAED,IAEI,aAAa;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,oBAAoB,CAAE,CAAC;IACjE,CAAC;IAED,IAEI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,gBAAgB,CAAE,CAAC;IAC7D,CAAC;IAED,IAEI,QAAQ;QACR,OAAO,MAAM,CAAC,QAAQ,CAClB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,gBAAgB,CAAE,EACjD,EAAE,CACL,CAAC;IACN,CAAC;IAED,IAEI,aAAa;QACb,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,oBAAoB,CAAE,CAAC;IACjE,CAAC;IAED,IAEI,kBAAkB;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,0BAA0B,CAAE,CAAC;IACvE,CAAC;IAED,IAEI,UAAU;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,kBAAkB,CAAE,CAAC;IAC/D,CAAC;CACJ,CAAA;AArDG;IAAC,SAAS,EAAE;IACX,SAAS,EAAE;;;uEAMX;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;8DAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;8DAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;yDAGV;AAED;IAAC,SAAS,EAAE;IACX,KAAK,EAAE;;;yDAMP;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;8DAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;mEAGV;AAED;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;2DAGV;AAzDQ,yBAAyB;IADrC,UAAU,EAAE;qCAE0B,aAAa;GADvC,yBAAyB,CA0DrC;SA1DY,yBAAyB"}
@@ -1,7 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const config_1 = require("@nestjs/config");
4
- exports.default = (0, config_1.registerAs)("email", () => ({
1
+ import { registerAs } from "@nestjs/config";
2
+ export default registerAs("email", () => ({
5
3
  extraEmailBcc: process.env.EXTRA_EMAIL_BCC,
6
4
  senderName: process.env.EMAIL_SENDER_NAME,
7
5
  senderEmailAddress: process.env.EMAIL_SENDER_ADDRESS,
@@ -1 +1 @@
1
- {"version":3,"file":"EmailConfigurationVariables.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailConfigurationVariables.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAE1C,kBAAe,IAAA,mBAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IACtC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;IAC1C,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;IACzC,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB;IACpD,sBAAsB,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB;IAC3D,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;IAC7C,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;IAC7C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;IACrC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;CACxC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"EmailConfigurationVariables.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailConfigurationVariables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAE1C,eAAe,UAAU,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IACtC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;IAC1C,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;IACzC,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB;IACpD,sBAAsB,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB;IAC3D,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;IAC7C,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;IAC7C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;IACrC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;CACxC,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Transporter } from "nodemailer";
2
- import { EmailConfigurationService } from "./EmailConfigurationService";
2
+ import { EmailConfigurationService } from "./EmailConfigurationService.js";
3
3
  export declare const EmailTransporterProvider: {
4
4
  provide: string;
5
5
  useFactory: (config: EmailConfigurationService) => Transporter;
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmailTransporterProvider = void 0;
4
- const nodemailer_1 = require("nodemailer");
5
- const EmailConfigurationService_1 = require("./EmailConfigurationService");
6
- exports.EmailTransporterProvider = {
1
+ import { createTransport } from "nodemailer";
2
+ import { EmailConfigurationService } from "./EmailConfigurationService.js";
3
+ export const EmailTransporterProvider = {
7
4
  provide: "SmtpEmailTransporter",
8
5
  useFactory: (config) => {
9
- return (0, nodemailer_1.createTransport)({
6
+ return createTransport({
10
7
  host: config.smtpHost,
11
8
  port: config.smtpPort,
12
9
  secure: config.smtpPort === 465 ? true : false,
@@ -17,6 +14,6 @@ exports.EmailTransporterProvider = {
17
14
  },
18
15
  });
19
16
  },
20
- inject: [EmailConfigurationService_1.EmailConfigurationService],
17
+ inject: [EmailConfigurationService],
21
18
  };
22
19
  //# sourceMappingURL=EmailTransporterProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmailTransporterProvider.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailTransporterProvider.ts"],"names":[],"mappings":";;;AAAA,2CAAwD;AACxD,2EAAsE;AAEzD,QAAA,wBAAwB,GAAG;IACpC,OAAO,EAAE,sBAAsB;IAC/B,UAAU,EAAE,CAAC,MAAiC,EAAe,EAAE;QAC3D,OAAO,IAAA,4BAAe,EAAC;YACnB,IAAI,EAAE,MAAM,CAAC,QAAQ;YACrB,IAAI,EAAE,MAAM,CAAC,QAAQ;YACrB,MAAM,EAAE,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;YAC9C,mEAAmE;YACnE,IAAI,EAAE;gBACF,IAAI,EAAE,MAAM,CAAC,aAAa;gBAC1B,IAAI,EAAE,MAAM,CAAC,aAAa;aAC7B;SACJ,CAAC,CAAC;IACP,CAAC;IACD,MAAM,EAAE,CAAC,qDAAyB,CAAC;CACtC,CAAC"}
1
+ {"version":3,"file":"EmailTransporterProvider.js","sourceRoot":"","sources":["../../src/smtp-email-client/EmailTransporterProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAc,MAAM,YAAY,CAAC;AACxD,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAC;AAEzE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,OAAO,EAAE,sBAAsB;IAC/B,UAAU,EAAE,CAAC,MAAiC,EAAe,EAAE;QAC3D,OAAO,eAAe,CAAC;YACnB,IAAI,EAAE,MAAM,CAAC,QAAQ;YACrB,IAAI,EAAE,MAAM,CAAC,QAAQ;YACrB,MAAM,EAAE,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;YAC9C,mEAAmE;YACnE,IAAI,EAAE;gBACF,IAAI,EAAE,MAAM,CAAC,aAAa;gBAC1B,IAAI,EAAE,MAAM,CAAC,aAAa;aAC7B;SACJ,CAAC,CAAC;IACP,CAAC;IACD,MAAM,EAAE,CAAC,yBAAyB,CAAC;CACtC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { Queue } from "bull";
2
2
  import { Transporter } from "nodemailer";
3
3
  import { Repository } from "typeorm";
4
- import { Email } from "./email.entity";
5
- import { EmailConfigurationService } from "./EmailConfigurationService";
4
+ import { Email } from "./email.entity.js";
5
+ import { EmailConfigurationService } from "./EmailConfigurationService.js";
6
6
  export declare class SmtpEmailClient {
7
7
  private emailRepository;
8
8
  private smtpEmailTransporter;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -12,20 +11,18 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
13
  var SmtpEmailClient_1;
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SmtpEmailClient = void 0;
17
- const bull_1 = require("@nestjs/bull");
18
- const common_1 = require("@nestjs/common");
19
- const typeorm_1 = require("@nestjs/typeorm");
20
- const typeorm_2 = require("typeorm");
21
- const email_entity_1 = require("./email.entity");
22
- const EmailConfigurationService_1 = require("./EmailConfigurationService");
14
+ import { InjectQueue } from "@nestjs/bull";
15
+ import { Inject, Injectable, Logger } from "@nestjs/common";
16
+ import { InjectRepository } from "@nestjs/typeorm";
17
+ import { Repository } from "typeorm";
18
+ import { Email } from "./email.entity.js";
19
+ import { EmailConfigurationService } from "./EmailConfigurationService.js";
23
20
  let SmtpEmailClient = SmtpEmailClient_1 = class SmtpEmailClient {
24
21
  emailRepository;
25
22
  smtpEmailTransporter;
26
23
  queue;
27
24
  config;
28
- logger = new common_1.Logger(SmtpEmailClient_1.name);
25
+ logger = new Logger(SmtpEmailClient_1.name);
29
26
  constructor(emailRepository, smtpEmailTransporter, queue, config) {
30
27
  this.emailRepository = emailRepository;
31
28
  this.smtpEmailTransporter = smtpEmailTransporter;
@@ -59,11 +56,11 @@ let SmtpEmailClient = SmtpEmailClient_1 = class SmtpEmailClient {
59
56
  }
60
57
  };
61
58
  SmtpEmailClient = SmtpEmailClient_1 = __decorate([
62
- (0, common_1.Injectable)(),
63
- __param(0, (0, typeorm_1.InjectRepository)(email_entity_1.Email)),
64
- __param(1, (0, common_1.Inject)("SmtpEmailTransporter")),
65
- __param(2, (0, bull_1.InjectQueue)("smtp-emails")),
66
- __metadata("design:paramtypes", [typeorm_2.Repository, Object, Object, EmailConfigurationService_1.EmailConfigurationService])
59
+ Injectable(),
60
+ __param(0, InjectRepository(Email)),
61
+ __param(1, Inject("SmtpEmailTransporter")),
62
+ __param(2, InjectQueue("smtp-emails")),
63
+ __metadata("design:paramtypes", [Repository, Object, Object, EmailConfigurationService])
67
64
  ], SmtpEmailClient);
68
- exports.SmtpEmailClient = SmtpEmailClient;
65
+ export { SmtpEmailClient };
69
66
  //# sourceMappingURL=email-client.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"email-client.service.js","sourceRoot":"","sources":["../../src/smtp-email-client/email-client.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAyC;AACzC,2CAA0D;AAC1D,6CAAiD;AAGjD,qCAAmC;AACnC,iDAAqC;AACrC,2EAAsE;AAG/D,IAAM,eAAe,uBAArB,MAAM,eAAe;IAIZ;IAEA;IAEA;IACA;IARK,MAAM,GAAG,IAAI,eAAM,CAAC,iBAAe,CAAC,IAAI,CAAC,CAAC;IAC3D,YAEY,eAAkC,EAElC,oBAAiC,EAEjC,KAAY,EACZ,MAAiC;QALjC,oBAAe,GAAf,eAAe,CAAmB;QAElC,yBAAoB,GAApB,oBAAoB,CAAa;QAEjC,UAAK,GAAL,KAAK,CAAO;QACZ,WAAM,GAAN,MAAM,CAA2B;IAC1C,CAAC;IAEG,KAAK,CAAC,MAAM;QACf,wGAAwG;QACxG,MAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,QAAQ,CACjB,EAAY,EACZ,KAAe,EACf,OAAe,EACf,aAAqB,EACrB,aAAsB,EACtB,QAAiB;QAEjB,IAAI,CAAC,aAAa,IAAI,C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AAoE;QACpE,KAAK,CAAC,QAAQ,GAAG,aAAa,CAAC;QAC/B,KAAK,CAAC,KAAK,GAAG,2BAA2B,CAAC;QAC1C,KAAK,CAAC,EAAE,GAAG,0BAA0B,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QACxB,KAAK,CAAC,OAAO,GAAG,aAAa,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,GAAG,CACX,yCAAyC,KAAK,CAAC,OAAO,EAAE,CAC3D,CAAC;QACF,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACJ,CAAA;AAlDY,eAAe;IAD3B,UAAU,EAAE;IAIJ,WAAA,gBAAgB,CAAC,KAAK,CAAC,CAAA;IAEvB,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAE9B,WAAA,WAAW,CAAC,aAAa,CAAC,CAAA;qCAHF,UAAU,kBAKnB,yBAAyB;GATpC,eAAe,CAkD3B;SAlDY,eAAe"}
@@ -1,7 +1,7 @@
1
1
  import { Queue } from "bull";
2
- import { BooleanResult } from "../root-app/models/boolean-result";
3
- import { QueueItemDto } from "../root-app/models/QueueItemDto";
4
- import { SmtpEmailClient } from "./email-client.service";
2
+ import { BooleanResult } from "../root-app/models/boolean-result.js";
3
+ import { QueueItemDto } from "../root-app/models/QueueItemDto.js";
4
+ import { SmtpEmailClient } from "./email-client.service.js";
5
5
  export declare class EmailClientController {
6
6
  private readonly service;
7
7
  private queue;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -11,15 +10,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
10
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.EmailClientController = void 0;
16
- const bull_1 = require("@nestjs/bull");
17
- const common_1 = require("@nestjs/common");
18
- const swagger_1 = require("@nestjs/swagger");
19
- const authz_1 = require("../authz");
20
- const boolean_result_1 = require("../root-app/models/boolean-result");
21
- const QueueItemDto_1 = require("../root-app/models/QueueItemDto");
22
- const email_client_service_1 = require("./email-client.service");
13
+ import { InjectQueue } from "@nestjs/bull";
14
+ import { Controller, Get, UseGuards } from "@nestjs/common";
15
+ import { ApiBearerAuth, ApiOkResponse, ApiTags } from "@nestjs/swagger";
16
+ import { ClaimsAuthorisationGuard } from "../authorization/guards/ClaimsAuthorisationGuard.js";
17
+ import { DefaultAuthGuard } from "../authorization/guards/DefaultAuthGuard.js";
18
+ import { MandatoryUserClaims } from "../authorization/guards/MandatoryUserClaims.decorator.js";
19
+ import { BooleanResult } from "../root-app/models/boolean-result.js";
20
+ import { QueueItemDto } from "../root-app/models/QueueItemDto.js";
21
+ import { SmtpEmailClient } from "./email-client.service.js";
23
22
  let EmailClientController = class EmailClientController {
24
23
  service;
25
24
  queue;
@@ -68,37 +67,37 @@ let EmailClientController = class EmailClientController {
68
67
  }
69
68
  };
70
69
  __decorate([
71
- (0, common_1.Get)("verify"),
72
- (0, swagger_1.ApiOkResponse)({ type: boolean_result_1.BooleanResult }),
70
+ Get("verify"),
71
+ ApiOkResponse({ type: BooleanResult }),
73
72
  __metadata("design:type", Function),
74
73
  __metadata("design:paramtypes", []),
75
74
  __metadata("design:returntype", Promise)
76
75
  ], EmailClientController.prototype, "verify", null);
77
76
  __decorate([
78
- (0, authz_1.MandatoryUserClaims)("read:all"),
79
- (0, common_1.Get)("peekalljobs"),
80
- (0, swagger_1.ApiOkResponse)({ type: [QueueItemDto_1.QueueItemDto] }),
77
+ MandatoryUserClaims("read:all"),
78
+ Get("peekalljobs"),
79
+ ApiOkResponse({ type: [QueueItemDto] }),
81
80
  __metadata("design:type", Function),
82
81
  __metadata("design:paramtypes", []),
83
82
  __metadata("design:returntype", Promise)
84
83
  ], EmailClientController.prototype, "peekQueueJobs", null);
85
84
  __decorate([
86
- (0, authz_1.MandatoryUserClaims)("read:all"),
87
- (0, common_1.Get)("peekfailedjobs")
85
+ MandatoryUserClaims("read:all"),
86
+ Get("peekfailedjobs")
88
87
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
89
88
  ,
90
- (0, swagger_1.ApiOkResponse)({ type: [QueueItemDto_1.QueueItemDto] }),
89
+ ApiOkResponse({ type: [QueueItemDto] }),
91
90
  __metadata("design:type", Function),
92
91
  __metadata("design:paramtypes", []),
93
92
  __metadata("design:returntype", Promise)
94
93
  ], EmailClientController.prototype, "peekFailedQueueJobs", null);
95
94
  EmailClientController = __decorate([
96
- (0, common_1.UseGuards)(authz_1.DefaultAuthGuard, authz_1.ClaimsAuthorisationGuard),
97
- (0, swagger_1.ApiBearerAuth)(),
98
- (0, swagger_1.ApiTags)("Email-client"),
99
- (0, common_1.Controller)("email-client"),
100
- __param(1, (0, bull_1.InjectQueue)("smtp-emails")),
101
- __metadata("design:paramtypes", [email_client_service_1.SmtpEmailClient, Object])
95
+ UseGuards(DefaultAuthGuard, ClaimsAuthorisationGuard),
96
+ ApiBearerAuth(),
97
+ ApiTags("Email-client"),
98
+ Controller("email-client"),
99
+ __param(1, InjectQueue("smtp-emails")),
100
+ __metadata("design:paramtypes", [SmtpEmailClient, Object])
102
101
  ], EmailClientController);
103
- exports.EmailClientController = EmailClientController;
102
+ export { EmailClientController };
104
103
  //# sourceMappingURL=email.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"email.controller.js","sourceRoot":"","sources":["../../src/smtp-email-client/email.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAAyC;AACzC,2CAA0D;AAC1D,6CAAsE;AAEtE,oCAIkB;AAClB,sEAAgE;AAChE,kEAA6D;AAC7D,i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