@darraghor/nest-backend-libs 2.9.0 → 2.10.1

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 (180) hide show
  1. package/dist/authz/AccessToken.js +2 -1
  2. package/dist/authz/AuthConfigurationService.js +15 -12
  3. package/dist/authz/AuthConfigurationService.js.map +1 -1
  4. package/dist/authz/AuthConfigurationVariables.js +4 -2
  5. package/dist/authz/AuthConfigurationVariables.js.map +1 -1
  6. package/dist/authz/ClaimsAuthorisationGuard.js +13 -7
  7. package/dist/authz/ClaimsAuthorisationGuard.js.map +1 -1
  8. package/dist/authz/DefaultAuthGuard.js +8 -5
  9. package/dist/authz/DefaultAuthGuard.js.map +1 -1
  10. package/dist/authz/MandatoryUserClaims.decorator.js +6 -2
  11. package/dist/authz/MandatoryUserClaims.decorator.js.map +1 -1
  12. package/dist/authz/RequestWithUser.js +2 -1
  13. package/dist/authz/authz.module.js +23 -17
  14. package/dist/authz/authz.module.js.map +1 -1
  15. package/dist/authz/authzstrategy.js +22 -16
  16. package/dist/authz/authzstrategy.js.map +1 -1
  17. package/dist/authzclient/AuthClientConfigurationService.js +13 -10
  18. package/dist/authzclient/AuthClientConfigurationService.js.map +1 -1
  19. package/dist/authzclient/AuthClientConfigurationVariables.js +4 -2
  20. package/dist/authzclient/AuthClientConfigurationVariables.js.map +1 -1
  21. package/dist/authzclient/AuthzClientProvider.js +8 -5
  22. package/dist/authzclient/AuthzClientProvider.js.map +1 -1
  23. package/dist/authzclient/UserProfile.dto.js +5 -1
  24. package/dist/authzclient/UserProfile.dto.js.map +1 -1
  25. package/dist/authzclient/authz-client.module.js +19 -13
  26. package/dist/authzclient/authz-client.module.js.map +1 -1
  27. package/dist/authzclient/authz.service.js +14 -8
  28. package/dist/authzclient/authz.service.js.map +1 -1
  29. package/dist/cli/cli.js +10 -7
  30. package/dist/cli/cli.js.map +1 -1
  31. package/dist/cli/commands/WriteApiClientCommand.js +13 -6
  32. package/dist/cli/commands/WriteApiClientCommand.js.map +1 -1
  33. package/dist/configuration/ValidatedConfigurationService.js +8 -5
  34. package/dist/configuration/ValidatedConfigurationService.js.map +1 -1
  35. package/dist/core-config/CoreConfig.module.js +15 -9
  36. package/dist/core-config/CoreConfig.module.js.map +1 -1
  37. package/dist/core-config/CoreConfigurationService.js +25 -22
  38. package/dist/core-config/CoreConfigurationService.js.map +1 -1
  39. package/dist/core-config/CoreConfigurationVariables.js +4 -2
  40. package/dist/core-config/CoreConfigurationVariables.js.map +1 -1
  41. package/dist/database-postgres/PostgresDatabase.module.js +14 -13
  42. package/dist/database-postgres/PostgresDatabase.module.js.map +1 -1
  43. package/dist/database-postgres/PostgresDatabaseConfigurationService.js +8 -5
  44. package/dist/database-postgres/PostgresDatabaseConfigurationService.js.map +1 -1
  45. package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.d.ts +3 -1
  46. package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js +18 -5
  47. package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js.map +1 -1
  48. package/dist/database-postgres/PostrgresMigrationsHelper.d.ts +3 -0
  49. package/dist/database-postgres/PostrgresMigrationsHelper.js +7 -0
  50. package/dist/database-postgres/PostrgresMigrationsHelper.js.map +1 -0
  51. package/dist/database-sqlite/SqliteDatabase.module.js +14 -13
  52. package/dist/database-sqlite/SqliteDatabase.module.js.map +1 -1
  53. package/dist/database-sqlite/SqliteDatabaseConfigurationService.js +8 -5
  54. package/dist/database-sqlite/SqliteDatabaseConfigurationService.js.map +1 -1
  55. package/dist/database-sqlite/SqliteMigrationsHelper.d.ts +3 -0
  56. package/dist/database-sqlite/SqliteMigrationsHelper.js +7 -0
  57. package/dist/database-sqlite/SqliteMigrationsHelper.js.map +1 -0
  58. package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.d.ts +3 -1
  59. package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.js +18 -5
  60. package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.js.map +1 -1
  61. package/dist/index.js +64 -30
  62. package/dist/index.js.map +1 -1
  63. package/dist/invitations/InvitationConfigurationService.js +13 -10
  64. package/dist/invitations/InvitationConfigurationService.js.map +1 -1
  65. package/dist/invitations/InvitationConfigurationVariables.js +4 -2
  66. package/dist/invitations/InvitationConfigurationVariables.js.map +1 -1
  67. package/dist/invitations/dto/create-invitation.dto.js +9 -5
  68. package/dist/invitations/dto/create-invitation.dto.js.map +1 -1
  69. package/dist/invitations/entities/invitation.entity.js +33 -30
  70. package/dist/invitations/entities/invitation.entity.js.map +1 -1
  71. package/dist/invitations/invitation.controller.js +24 -21
  72. package/dist/invitations/invitation.controller.js.map +1 -1
  73. package/dist/invitations/invitation.module.js +27 -21
  74. package/dist/invitations/invitation.module.js.map +1 -1
  75. package/dist/invitations/invitation.service.js +21 -18
  76. package/dist/invitations/invitation.service.js.map +1 -1
  77. package/dist/logger/CoreLoggerService.js +9 -7
  78. package/dist/logger/CoreLoggerService.js.map +1 -1
  79. package/dist/logger/LoggingConfigurationService.js +15 -12
  80. package/dist/logger/LoggingConfigurationService.js.map +1 -1
  81. package/dist/logger/LoggingConfigurationVariables.js +4 -2
  82. package/dist/logger/LoggingConfigurationVariables.js.map +1 -1
  83. package/dist/logger/LoggingInterceptor.js +13 -7
  84. package/dist/logger/LoggingInterceptor.js.map +1 -1
  85. package/dist/logger/logger.module.js +20 -14
  86. package/dist/logger/logger.module.js.map +1 -1
  87. package/dist/organisation/dto/RolesEnum.js +5 -2
  88. package/dist/organisation/dto/RolesEnum.js.map +1 -1
  89. package/dist/organisation/dto/create-organisation.dto.js +11 -7
  90. package/dist/organisation/dto/create-organisation.dto.js.map +1 -1
  91. package/dist/organisation/dto/update-organisation.dto.js +7 -3
  92. package/dist/organisation/dto/update-organisation.dto.js.map +1 -1
  93. package/dist/organisation/entities/member-role.entity.js +23 -20
  94. package/dist/organisation/entities/member-role.entity.js.map +1 -1
  95. package/dist/organisation/entities/organisation-membership.entity.js +40 -37
  96. package/dist/organisation/entities/organisation-membership.entity.js.map +1 -1
  97. package/dist/organisation/entities/organisation.entity.js +29 -26
  98. package/dist/organisation/entities/organisation.entity.js.map +1 -1
  99. package/dist/organisation/organisation.controller.js +32 -29
  100. package/dist/organisation/organisation.controller.js.map +1 -1
  101. package/dist/organisation/organisation.module.js +15 -12
  102. package/dist/organisation/organisation.module.js.map +1 -1
  103. package/dist/organisation/organisation.service.js +23 -20
  104. package/dist/organisation/organisation.service.js.map +1 -1
  105. package/dist/person/dto/create-person.dto.js +5 -1
  106. package/dist/person/dto/create-person.dto.js.map +1 -1
  107. package/dist/person/dto/update-person.dto.js +7 -3
  108. package/dist/person/dto/update-person.dto.js.map +1 -1
  109. package/dist/person/entities/person.entity.js +44 -41
  110. package/dist/person/entities/person.entity.js.map +1 -1
  111. package/dist/person/person.controller.js +28 -25
  112. package/dist/person/person.controller.js.map +1 -1
  113. package/dist/person/person.module.js +18 -15
  114. package/dist/person/person.module.js.map +1 -1
  115. package/dist/person/person.service.js +28 -22
  116. package/dist/person/person.service.js.map +1 -1
  117. package/dist/root-app/SwaggerGen.js +21 -15
  118. package/dist/root-app/SwaggerGen.js.map +1 -1
  119. package/dist/root-app/app.controller.js +23 -17
  120. package/dist/root-app/app.controller.js.map +1 -1
  121. package/dist/root-app/app.service.js +6 -3
  122. package/dist/root-app/app.service.js.map +1 -1
  123. package/dist/root-app/core-app.module.js +32 -26
  124. package/dist/root-app/core-app.module.js.map +1 -1
  125. package/dist/root-app/notfound.interceptor.js +9 -6
  126. package/dist/root-app/notfound.interceptor.js.map +1 -1
  127. package/dist/runningCommandLine/CliCommandService.js +14 -8
  128. package/dist/runningCommandLine/CliCommandService.js.map +1 -1
  129. package/dist/runningCommandLine/RunningCommandLine.module.js +12 -9
  130. package/dist/runningCommandLine/RunningCommandLine.module.js.map +1 -1
  131. package/dist/smtp-email-client/EmailClientProvider.js +8 -5
  132. package/dist/smtp-email-client/EmailClientProvider.js.map +1 -1
  133. package/dist/smtp-email-client/EmailConfigurationService.js +27 -24
  134. package/dist/smtp-email-client/EmailConfigurationService.js.map +1 -1
  135. package/dist/smtp-email-client/EmailConfigurationVariables.js +4 -2
  136. package/dist/smtp-email-client/EmailConfigurationVariables.js.map +1 -1
  137. package/dist/smtp-email-client/email-client.service.js +21 -15
  138. package/dist/smtp-email-client/email-client.service.js.map +1 -1
  139. package/dist/smtp-email-client/email.controller.js +15 -12
  140. package/dist/smtp-email-client/email.controller.js.map +1 -1
  141. package/dist/smtp-email-client/email.entity.js +35 -32
  142. package/dist/smtp-email-client/email.entity.js.map +1 -1
  143. package/dist/smtp-email-client/smtp-email-client.module.js +32 -26
  144. package/dist/smtp-email-client/smtp-email-client.module.js.map +1 -1
  145. package/dist/smtp-email-client/smtp-email-handler.js +21 -15
  146. package/dist/smtp-email-client/smtp-email-handler.js.map +1 -1
  147. package/dist/stripe-client/StripeClientConfigurationService.js +17 -14
  148. package/dist/stripe-client/StripeClientConfigurationService.js.map +1 -1
  149. package/dist/stripe-client/StripeClientProvider.js +11 -5
  150. package/dist/stripe-client/StripeClientProvider.js.map +1 -1
  151. package/dist/stripe-client/StripeConfigurationVariables.js +4 -2
  152. package/dist/stripe-client/StripeConfigurationVariables.js.map +1 -1
  153. package/dist/stripe-client/models/StripeCheckoutSessionParams.js +24 -19
  154. package/dist/stripe-client/models/StripeCheckoutSessionParams.js.map +1 -1
  155. package/dist/stripe-client/services/stripe-checkout.service.js +16 -10
  156. package/dist/stripe-client/services/stripe-checkout.service.js.map +1 -1
  157. package/dist/stripe-client/services/stripe-event-handler.js +18 -12
  158. package/dist/stripe-client/services/stripe-event-handler.js.map +1 -1
  159. package/dist/stripe-client/services/stripe-webhook-handler.service.js +19 -13
  160. package/dist/stripe-client/services/stripe-webhook-handler.service.js.map +1 -1
  161. package/dist/stripe-client/stripe-account.module.js +28 -22
  162. package/dist/stripe-client/stripe-account.module.js.map +1 -1
  163. package/dist/stripe-client/stripe-controller.js +30 -27
  164. package/dist/stripe-client/stripe-controller.js.map +1 -1
  165. package/dist/testing/preRun.js +3 -1
  166. package/dist/testing/preRun.js.map +1 -1
  167. package/dist/twitter-client/TwitterClientConfigurationService.js +19 -16
  168. package/dist/twitter-client/TwitterClientConfigurationService.js.map +1 -1
  169. package/dist/twitter-client/TwitterClientProvider.js +8 -5
  170. package/dist/twitter-client/TwitterClientProvider.js.map +1 -1
  171. package/dist/twitter-client/TwitterConfigurationVariables.js +4 -2
  172. package/dist/twitter-client/TwitterConfigurationVariables.js.map +1 -1
  173. package/dist/twitter-client/services/twitter-client.service.js +14 -8
  174. package/dist/twitter-client/services/twitter-client.service.js.map +1 -1
  175. package/dist/twitter-client/twitter-account.module.js +21 -15
  176. package/dist/twitter-client/twitter-account.module.js.map +1 -1
  177. package/package.json +5 -5
  178. package/dist/cli/commands/WriteTypeOrmConfigCommand.d.ts +0 -19
  179. package/dist/cli/commands/WriteTypeOrmConfigCommand.js +0 -40
  180. package/dist/cli/commands/WriteTypeOrmConfigCommand.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SqliteTypeOrmConfigurationProvider.js","sourceRoot":"","sources":["../../src/database-sqlite/SqliteTypeOrmConfigurationProvider.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAG1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,MAAM,OAAO,kCAAkC;IAC3C;;;;OAIG;IACI,MAAM,CAAC,gBAAgB;QAC1B,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAClC,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAChC,SAAS,EACT,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,IAAI,EAC3C,IAAI,EACJ,kBAAkB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAAC;QAE3D,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAC3B,SAAS,EACT,OAAO,CAAC,GAAG,CAAC,sBAAsB;YAC9B,kCAAkC,EACtC,IAAI,EACJ,kBAAkB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,aAAa,CAAC,CAAC;QAE7D,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAC5B,SAAS,EACT,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,kCAAkC,EACjE,IAAI,EACJ,YAAY,EACZ,WAAW,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,cAAc,CAAC,CAAC;QAErD,OAAO;YACH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB;YAC9C,OAAO,EAAE,KAAK;YACd,mBAAmB,EAAE,YAAY;YACjC,aAAa,EAAE,KAAK;YACpB,WAAW,EAAE,KAAK;YAClB,QAAQ,EAAE,CAAC,kBAAkB,EAAE,aAAa,CAAC;YAC7C,UAAU,EAAE,CAAC,cAAc,CAAC;YAC5B,GAAG,EAAE;gBACD,aAAa,EAAE,gBAAgB;aAClC;SACiB,CAAC;IAC3B,CAAC;CACJ"}
1
+ {"version":3,"file":"SqliteTypeOrmConfigurationProvider.js","sourceRoot":"","sources":["../../src/database-sqlite/SqliteTypeOrmConfigurationProvider.ts"],"names":[],"mappings":";AAAA,0CAA0C;;;;;;AAG1C,gDAAwB;AAGxB,MAAa,kCAAkC;IAC3C;;;;OAIG;IACI,MAAM,CAAC,gBAAgB;QAC1B,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAClC,MAAM,kBAAkB,GAAG,cAAI,CAAC,IAAI,CAChC,SAAS,EACT,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,IAAI,EAC3C,IAAI,EACJ,kBAAkB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAAC;QAE3D,MAAM,aAAa,GAAG,cAAI,CAAC,IAAI,CAC3B,SAAS,EACT,OAAO,CAAC,GAAG,CAAC,sBAAsB;YAC9B,kCAAkC,EACtC,IAAI,EACJ,kBAAkB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,aAAa,CAAC,CAAC;QAE7D,MAAM,cAAc,GAAG,cAAI,CAAC,IAAI,CAC5B,SAAS,EACT,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,kCAAkC,EACjE,IAAI,EACJ,YAAY,EACZ,WAAW,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,cAAc,CAAC,CAAC;QAErD,OAAO;YACH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB;YAC9C,OAAO,EAAE,KAAK;YACd,mBAAmB,EAAE,YAAY;YACjC,aAAa,EAAE,KAAK;YACpB,WAAW,EAAE,KAAK;YAClB,QAAQ,EAAE,CAAC,kBAAkB,EAAE,aAAa,CAAC;YAC7C,UAAU,EAAE,CAAC,cAAc,CAAC;YAC5B,GAAG,EAAE;gBACD,aAAa,EAAE,gBAAgB;aAClC;SACiB,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,oBAAoB;QAC9B,OAAO;YACH,GAAG,kCAAkC,CAAC,gBAAgB,EAAE;YACxD,gBAAgB,EAAE,IAAI;SACzB,CAAC;IACN,CAAC;CACJ;AAvDD,gFAuDC"}
package/dist/index.js CHANGED
@@ -1,32 +1,66 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.StripeEventHandler = exports.StripeAccountModule = exports.InvitationModule = exports.MandatoryUserClaims = exports.ClaimsAuthorisationGuard = exports.CliCommandService = exports.RunningCommandLineModule = exports.EUploadMimeType = exports.TwitterAccountModule = exports.TwitterClientService = exports.SqliteDatabaseConfigurationService = exports.SqliteDatabaseModule = exports.PersonService = exports.OrganisationModule = exports.PersonModule = exports.ValidatedConfigurationService = exports.SmtpEmailClient = exports.TypeOrmConfigurationProvider = exports.Person = exports.AuthzModule = exports.JwtStrategy = exports.DatabaseModule = exports.DefaultAuthGuard = exports.SwaggerGen = exports.CoreConfigModule = exports.CoreModule = exports.SmtpEmailClientModule = exports.CoreConfigurationService = exports.CoreLoggerService = void 0;
1
7
  /* eslint-disable unicorn/prefer-export-from */
2
- import { RunningCommandLineModule } from "./runningCommandLine/RunningCommandLine.module";
3
- import { TwitterAccountModule } from "./twitter-client/twitter-account.module";
4
- import { SmtpEmailClientModule } from "./smtp-email-client/smtp-email-client.module";
5
- import { EUploadMimeType } from "twitter-api-v2";
6
- import { AuthzModule } from "./authz/authz.module";
7
- import { JwtStrategy } from "./authz/authzstrategy";
8
- import { DefaultAuthGuard } from "./authz/DefaultAuthGuard";
9
- import { ValidatedConfigurationService } from "./configuration/ValidatedConfigurationService";
10
- import { CoreConfigurationService } from "./core-config/CoreConfigurationService";
11
- import { PostgresDatabaseModule } from "./database-postgres/PostgresDatabase.module";
12
- import { PostgresTypeOrmConfigurationProvider } from "./database-postgres/PostgresTypeOrmConfigurationProvider";
13
- import { SqliteDatabaseModule } from "./database-sqlite/SqliteDatabase.module";
14
- import { SqliteDatabaseConfigurationService } from "./database-sqlite/SqliteDatabaseConfigurationService";
15
- import { SmtpEmailClient } from "./smtp-email-client/email-client.service";
16
- import CoreLoggerService from "./logger/CoreLoggerService";
17
- import { OrganisationModule } from "./organisation/organisation.module";
18
- import { Person } from "./person/entities/person.entity";
19
- import { PersonModule } from "./person/person.module";
20
- import { PersonService } from "./person/person.service";
21
- import { CoreModule } from "./root-app/core-app.module";
22
- import { SwaggerGen } from "./root-app/SwaggerGen";
23
- import { TwitterClientService } from "./twitter-client/services/twitter-client.service";
24
- import { CoreConfigModule } from "./core-config/CoreConfig.module";
25
- import { CliCommandService } from "./runningCommandLine/CliCommandService";
26
- import { ClaimsAuthorisationGuard } from "./authz/ClaimsAuthorisationGuard";
27
- import { MandatoryUserClaims } from "./authz/MandatoryUserClaims.decorator";
28
- import { InvitationModule } from "./invitations/invitation.module";
29
- import { StripeAccountModule } from "./stripe-client/stripe-account.module";
30
- import { StripeEventHandler } from "./stripe-client/services/stripe-event-handler";
31
- export { CoreLoggerService, CoreConfigurationService, SmtpEmailClientModule, CoreModule, CoreConfigModule, SwaggerGen, DefaultAuthGuard, PostgresDatabaseModule as DatabaseModule, JwtStrategy, AuthzModule, Person, PostgresTypeOrmConfigurationProvider as TypeOrmConfigurationProvider, SmtpEmailClient, ValidatedConfigurationService, PersonModule, OrganisationModule, PersonService, SqliteDatabaseModule, SqliteDatabaseConfigurationService, TwitterClientService, TwitterAccountModule, EUploadMimeType, RunningCommandLineModule, CliCommandService, ClaimsAuthorisationGuard, MandatoryUserClaims, InvitationModule, StripeAccountModule, StripeEventHandler, };
8
+ const RunningCommandLine_module_1 = require("./runningCommandLine/RunningCommandLine.module");
9
+ Object.defineProperty(exports, "RunningCommandLineModule", { enumerable: true, get: function () { return RunningCommandLine_module_1.RunningCommandLineModule; } });
10
+ const twitter_account_module_1 = require("./twitter-client/twitter-account.module");
11
+ Object.defineProperty(exports, "TwitterAccountModule", { enumerable: true, get: function () { return twitter_account_module_1.TwitterAccountModule; } });
12
+ const smtp_email_client_module_1 = require("./smtp-email-client/smtp-email-client.module");
13
+ Object.defineProperty(exports, "SmtpEmailClientModule", { enumerable: true, get: function () { return smtp_email_client_module_1.SmtpEmailClientModule; } });
14
+ const twitter_api_v2_1 = require("twitter-api-v2");
15
+ Object.defineProperty(exports, "EUploadMimeType", { enumerable: true, get: function () { return twitter_api_v2_1.EUploadMimeType; } });
16
+ const authz_module_1 = require("./authz/authz.module");
17
+ Object.defineProperty(exports, "AuthzModule", { enumerable: true, get: function () { return authz_module_1.AuthzModule; } });
18
+ const authzstrategy_1 = require("./authz/authzstrategy");
19
+ Object.defineProperty(exports, "JwtStrategy", { enumerable: true, get: function () { return authzstrategy_1.JwtStrategy; } });
20
+ const DefaultAuthGuard_1 = require("./authz/DefaultAuthGuard");
21
+ Object.defineProperty(exports, "DefaultAuthGuard", { enumerable: true, get: function () { return DefaultAuthGuard_1.DefaultAuthGuard; } });
22
+ const ValidatedConfigurationService_1 = require("./configuration/ValidatedConfigurationService");
23
+ Object.defineProperty(exports, "ValidatedConfigurationService", { enumerable: true, get: function () { return ValidatedConfigurationService_1.ValidatedConfigurationService; } });
24
+ const CoreConfigurationService_1 = require("./core-config/CoreConfigurationService");
25
+ Object.defineProperty(exports, "CoreConfigurationService", { enumerable: true, get: function () { return CoreConfigurationService_1.CoreConfigurationService; } });
26
+ const PostgresDatabase_module_1 = require("./database-postgres/PostgresDatabase.module");
27
+ Object.defineProperty(exports, "DatabaseModule", { enumerable: true, get: function () { return PostgresDatabase_module_1.PostgresDatabaseModule; } });
28
+ const PostgresTypeOrmConfigurationProvider_1 = require("./database-postgres/PostgresTypeOrmConfigurationProvider");
29
+ Object.defineProperty(exports, "TypeOrmConfigurationProvider", { enumerable: true, get: function () { return PostgresTypeOrmConfigurationProvider_1.PostgresTypeOrmConfigurationProvider; } });
30
+ const SqliteDatabase_module_1 = require("./database-sqlite/SqliteDatabase.module");
31
+ Object.defineProperty(exports, "SqliteDatabaseModule", { enumerable: true, get: function () { return SqliteDatabase_module_1.SqliteDatabaseModule; } });
32
+ const SqliteDatabaseConfigurationService_1 = require("./database-sqlite/SqliteDatabaseConfigurationService");
33
+ Object.defineProperty(exports, "SqliteDatabaseConfigurationService", { enumerable: true, get: function () { return SqliteDatabaseConfigurationService_1.SqliteDatabaseConfigurationService; } });
34
+ const email_client_service_1 = require("./smtp-email-client/email-client.service");
35
+ Object.defineProperty(exports, "SmtpEmailClient", { enumerable: true, get: function () { return email_client_service_1.SmtpEmailClient; } });
36
+ const CoreLoggerService_1 = __importDefault(require("./logger/CoreLoggerService"));
37
+ exports.CoreLoggerService = CoreLoggerService_1.default;
38
+ const organisation_module_1 = require("./organisation/organisation.module");
39
+ Object.defineProperty(exports, "OrganisationModule", { enumerable: true, get: function () { return organisation_module_1.OrganisationModule; } });
40
+ const person_entity_1 = require("./person/entities/person.entity");
41
+ Object.defineProperty(exports, "Person", { enumerable: true, get: function () { return person_entity_1.Person; } });
42
+ const person_module_1 = require("./person/person.module");
43
+ Object.defineProperty(exports, "PersonModule", { enumerable: true, get: function () { return person_module_1.PersonModule; } });
44
+ const person_service_1 = require("./person/person.service");
45
+ Object.defineProperty(exports, "PersonService", { enumerable: true, get: function () { return person_service_1.PersonService; } });
46
+ const core_app_module_1 = require("./root-app/core-app.module");
47
+ Object.defineProperty(exports, "CoreModule", { enumerable: true, get: function () { return core_app_module_1.CoreModule; } });
48
+ const SwaggerGen_1 = require("./root-app/SwaggerGen");
49
+ Object.defineProperty(exports, "SwaggerGen", { enumerable: true, get: function () { return SwaggerGen_1.SwaggerGen; } });
50
+ const twitter_client_service_1 = require("./twitter-client/services/twitter-client.service");
51
+ Object.defineProperty(exports, "TwitterClientService", { enumerable: true, get: function () { return twitter_client_service_1.TwitterClientService; } });
52
+ const CoreConfig_module_1 = require("./core-config/CoreConfig.module");
53
+ Object.defineProperty(exports, "CoreConfigModule", { enumerable: true, get: function () { return CoreConfig_module_1.CoreConfigModule; } });
54
+ const CliCommandService_1 = require("./runningCommandLine/CliCommandService");
55
+ Object.defineProperty(exports, "CliCommandService", { enumerable: true, get: function () { return CliCommandService_1.CliCommandService; } });
56
+ const ClaimsAuthorisationGuard_1 = require("./authz/ClaimsAuthorisationGuard");
57
+ Object.defineProperty(exports, "ClaimsAuthorisationGuard", { enumerable: true, get: function () { return ClaimsAuthorisationGuard_1.ClaimsAuthorisationGuard; } });
58
+ const MandatoryUserClaims_decorator_1 = require("./authz/MandatoryUserClaims.decorator");
59
+ Object.defineProperty(exports, "MandatoryUserClaims", { enumerable: true, get: function () { return MandatoryUserClaims_decorator_1.MandatoryUserClaims; } });
60
+ const invitation_module_1 = require("./invitations/invitation.module");
61
+ Object.defineProperty(exports, "InvitationModule", { enumerable: true, get: function () { return invitation_module_1.InvitationModule; } });
62
+ const stripe_account_module_1 = require("./stripe-client/stripe-account.module");
63
+ Object.defineProperty(exports, "StripeAccountModule", { enumerable: true, get: function () { return stripe_account_module_1.StripeAccountModule; } });
64
+ const stripe_event_handler_1 = require("./stripe-client/services/stripe-event-handler");
65
+ Object.defineProperty(exports, "StripeEventHandler", { enumerable: true, get: function () { return stripe_event_handler_1.StripeEventHandler; } });
32
66
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,EAAC,wBAAwB,EAAC,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAC,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAC,6BAA6B,EAAC,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EAAC,wBAAwB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAC,sBAAsB,EAAC,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAC,oCAAoC,EAAC,MAAM,0DAA0D,CAAC;AAC9G,OAAO,EAAC,oBAAoB,EAAC,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAC,kCAAkC,EAAC,MAAM,sDAAsD,CAAC;AACxG,OAAO,EAAC,eAAe,EAAC,MAAM,0CAA0C,CAAC;AACzE,OAAO,iBAAiB,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAC,kBAAkB,EAAC,MAA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CtE,oGAhCI,mDAAmB,OAgCJ;AA/BvB,uEAAiE;AAgC7D,iGAhCI,oCAAgB,OAgCJ;AA/BpB,iFAA0E;AAgCtE,oGAhCI,2CAAmB,OAgCJ;AA/BvB,wFAAiF;AAgC7E,mGAhCI,yCAAkB,OAgCJ"}
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -7,12 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
8
  var __metadata = (this && this.__metadata) || function (k, v) {
8
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
10
  };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.InvitationsConfigurationService = void 0;
10
13
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
11
- import { Injectable } from "@nestjs/common";
12
- import { ConfigService } from "@nestjs/config";
13
- import { IsDefined, IsString } from "class-validator";
14
- import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService";
15
- let InvitationsConfigurationService = class InvitationsConfigurationService extends ValidatedConfigurationService {
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 InvitationsConfigurationService = class InvitationsConfigurationService extends ValidatedConfigurationService_1.ValidatedConfigurationService {
16
19
  configService;
17
20
  constructor(configService) {
18
21
  super();
@@ -23,14 +26,14 @@ let InvitationsConfigurationService = class InvitationsConfigurationService exte
23
26
  }
24
27
  };
25
28
  __decorate([
26
- IsDefined(),
27
- IsString(),
29
+ (0, class_validator_1.IsDefined)(),
30
+ (0, class_validator_1.IsString)(),
28
31
  __metadata("design:type", String),
29
32
  __metadata("design:paramtypes", [])
30
33
  ], InvitationsConfigurationService.prototype, "baseUrl", null);
31
34
  InvitationsConfigurationService = __decorate([
32
- Injectable(),
33
- __metadata("design:paramtypes", [ConfigService])
35
+ (0, common_1.Injectable)(),
36
+ __metadata("design:paramtypes", [config_1.ConfigService])
34
37
  ], InvitationsConfigurationService);
35
- export { InvitationsConfigurationService };
38
+ exports.InvitationsConfigurationService = InvitationsConfigurationService;
36
39
  //# sourceMappingURL=InvitationConfigurationService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvitationConfigurationService.js","sourceRoot":"","sources":["../../src/invitations/InvitationConfigurationService.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,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAC,6BAA6B,EAAC,MAAM,gDAAgD,CAAC;AAGtF,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,6BAA6B;IAC1D;IAApB,YAAoB,aAA4B;QAC5C,KAAK,EAAE,CAAC;QADQ,kBAAa,GAAb,aAAa,CAAe;IAEhD,CAAC;IAED,IAEI,OAAO;QACP,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,qBAAqB,CAAE,CAAC;IAClE,CAAC;CACJ,CAAA;AALG;IAAC,SAAS,EAAE;IACX,QAAQ,EAAE;;;8DAGV;AATQ,+BAA+B;IAD3C,UAAU,EAAE;qCAE0B,aAAa;GADvC,+BAA+B,CAU3C;SAVY,+BAA+B"}
1
+ {"version":3,"file":"InvitationConfigurationService.js","sourceRoot":"","sources":["../../src/invitations/InvitationConfigurationService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA6D;AAC7D,2CAA0C;AAC1C,2CAA6C;AAC7C,qDAAoD;AACpD,kGAA6F;AAGtF,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,6DAA6B;IAC1D;IAApB,YAAoB,aAA4B;QAC5C,KAAK,EAAE,CAAC;QADQ,kBAAa,GAAb,aAAa,CAAe;IAEhD,CAAC;IAED,IAEI,OAAO;QACP,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,qBAAqB,CAAE,CAAC;IAClE,CAAC;CACJ,CAAA;AALG;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;;8DAGV;AATQ,+BAA+B;IAD3C,IAAA,mBAAU,GAAE;qCAE0B,sBAAa;GADvC,+BAA+B,CAU3C;AAVY,0EAA+B"}
@@ -1,5 +1,7 @@
1
- import { registerAs } from "@nestjs/config";
2
- export default registerAs("invitations", () => ({
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const config_1 = require("@nestjs/config");
4
+ exports.default = (0, config_1.registerAs)("invitations", () => ({
3
5
  baseUrl: process.env.INVITATION_URLS_BASE_URL,
4
6
  }));
5
7
  //# sourceMappingURL=InvitationConfigurationVariables.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvitationConfigurationVariables.js","sourceRoot":"","sources":["../../src/invitations/InvitationConfigurationVariables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAE1C,eAAe,UAAU,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB;CAChD,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"InvitationConfigurationVariables.js","sourceRoot":"","sources":["../../src/invitations/InvitationConfigurationVariables.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAE1C,kBAAe,IAAA,mBAAU,EAAC,aAAa,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB;CAChD,CAAC,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -7,22 +8,25 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
8
  var __metadata = (this && this.__metadata) || function (k, v) {
8
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
10
  };
10
- import { ApiProperty } from "@nestjs/swagger";
11
- export class CreateInvitationDto {
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CreateInvitationDto = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ class CreateInvitationDto {
12
15
  givenName;
13
16
  emailAddress;
14
17
  organisationId;
15
18
  }
16
19
  __decorate([
17
- ApiProperty(),
20
+ (0, swagger_1.ApiProperty)(),
18
21
  __metadata("design:type", String)
19
22
  ], CreateInvitationDto.prototype, "givenName", void 0);
20
23
  __decorate([
21
- ApiProperty(),
24
+ (0, swagger_1.ApiProperty)(),
22
25
  __metadata("design:type", String)
23
26
  ], CreateInvitationDto.prototype, "emailAddress", void 0);
24
27
  __decorate([
25
- ApiProperty(),
28
+ (0, swagger_1.ApiProperty)(),
26
29
  __metadata("design:type", Number)
27
30
  ], CreateInvitationDto.prototype, "organisationId", void 0);
31
+ exports.CreateInvitationDto = CreateInvitationDto;
28
32
  //# sourceMappingURL=create-invitation.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-invitation.dto.js","sourceRoot":"","sources":["../../../src/invitations/dto/create-invitation.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,mBAAmB;IAE5B,SAAS,CAAU;IAGnB,YAAY,CAAU;IAGtB,cAAc,CAAU;CAC3B;AARG;IAAC,WAAW,EAAE;;sDACK;AAEnB;IAAC,WAAW,EAAE;;yDACQ;AAEtB;IAAC,WAAW,EAAE;;2DACU"}
1
+ {"version":3,"file":"create-invitation.dto.js","sourceRoot":"","sources":["../../../src/invitations/dto/create-invitation.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4C;AAE5C,MAAa,mBAAmB;IAE5B,SAAS,CAAU;IAGnB,YAAY,CAAU;IAGtB,cAAc,CAAU;CAC3B;AARG;IAAC,IAAA,qBAAW,GAAE;;sDACK;AAEnB;IAAC,IAAA,qBAAW,GAAE;;yDACQ;AAEtB;IAAC,IAAA,qBAAW,GAAE;;2DACU;AAR5B,kDASC"}
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -7,9 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
8
  var __metadata = (this && this.__metadata) || function (k, v) {
8
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
10
  };
10
- import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
11
- import { Column, CreateDateColumn, DeleteDateColumn, Entity, Generated, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn, } from "typeorm";
12
- import { Organisation } from "../../organisation/entities/organisation.entity";
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Invitation = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const typeorm_1 = require("typeorm");
15
+ const organisation_entity_1 = require("../../organisation/entities/organisation.entity");
13
16
  let Invitation = class Invitation {
14
17
  id;
15
18
  uuid;
@@ -24,70 +27,70 @@ let Invitation = class Invitation {
24
27
  deletedDate;
25
28
  };
26
29
  __decorate([
27
- PrimaryGeneratedColumn(),
28
- ApiProperty(),
30
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
31
+ (0, swagger_1.ApiProperty)(),
29
32
  __metadata("design:type", Number)
30
33
  ], Invitation.prototype, "id", void 0);
31
34
  __decorate([
32
- Column("uuid", {
35
+ (0, typeorm_1.Column)("uuid", {
33
36
  name: "uuid",
34
37
  default: () => "uuid_generate_v4()",
35
38
  }),
36
- Generated("uuid"),
37
- ApiProperty(),
39
+ (0, typeorm_1.Generated)("uuid"),
40
+ (0, swagger_1.ApiProperty)(),
38
41
  __metadata("design:type", String)
39
42
  ], Invitation.prototype, "uuid", void 0);
40
43
  __decorate([
41
- Column(),
42
- ApiProperty(),
44
+ (0, typeorm_1.Column)(),
45
+ (0, swagger_1.ApiProperty)(),
43
46
  __metadata("design:type", String)
44
47
  ], Invitation.prototype, "givenName", void 0);
45
48
  __decorate([
46
- Column(),
47
- ApiProperty(),
49
+ (0, typeorm_1.Column)(),
50
+ (0, swagger_1.ApiProperty)(),
48
51
  __metadata("design:type", String)
49
52
  ], Invitation.prototype, "emailAddress", void 0);
50
53
  __decorate([
51
- Column(),
52
- ApiProperty(),
54
+ (0, typeorm_1.Column)(),
55
+ (0, swagger_1.ApiProperty)(),
53
56
  __metadata("design:type", Date)
54
57
  ], Invitation.prototype, "notificationSent", void 0);
55
58
  __decorate([
56
- Column(),
57
- ApiProperty(),
59
+ (0, typeorm_1.Column)(),
60
+ (0, swagger_1.ApiProperty)(),
58
61
  __metadata("design:type", Date)
59
62
  ], Invitation.prototype, "expiresOn", void 0);
60
63
  __decorate([
61
- Column(),
62
- ApiPropertyOptional(),
64
+ (0, typeorm_1.Column)(),
65
+ (0, swagger_1.ApiPropertyOptional)(),
63
66
  __metadata("design:type", Date)
64
67
  ], Invitation.prototype, "acceptedOn", void 0);
65
68
  __decorate([
66
- Column(),
67
- ApiProperty(),
68
- ManyToOne(() => Organisation, (org) => org.invitations, {
69
+ (0, typeorm_1.Column)(),
70
+ (0, swagger_1.ApiProperty)(),
71
+ (0, typeorm_1.ManyToOne)(() => organisation_entity_1.Organisation, (org) => org.invitations, {
69
72
  eager: true,
70
73
  cascade: ["insert", "update"],
71
74
  }),
72
- __metadata("design:type", Organisation)
75
+ __metadata("design:type", organisation_entity_1.Organisation)
73
76
  ], Invitation.prototype, "organisation", void 0);
74
77
  __decorate([
75
- CreateDateColumn(),
76
- ApiProperty(),
78
+ (0, typeorm_1.CreateDateColumn)(),
79
+ (0, swagger_1.ApiProperty)(),
77
80
  __metadata("design:type", Date)
78
81
  ], Invitation.prototype, "createdDate", void 0);
79
82
  __decorate([
80
- UpdateDateColumn(),
81
- ApiProperty(),
83
+ (0, typeorm_1.UpdateDateColumn)(),
84
+ (0, swagger_1.ApiProperty)(),
82
85
  __metadata("design:type", Date)
83
86
  ], Invitation.prototype, "updateDate", void 0);
84
87
  __decorate([
85
- DeleteDateColumn(),
86
- ApiPropertyOptional(),
88
+ (0, typeorm_1.DeleteDateColumn)(),
89
+ (0, swagger_1.ApiPropertyOptional)(),
87
90
  __metadata("design:type", Date)
88
91
  ], Invitation.prototype, "deletedDate", void 0);
89
92
  Invitation = __decorate([
90
- Entity()
93
+ (0, typeorm_1.Entity)()
91
94
  ], Invitation);
92
- export { Invitation };
95
+ exports.Invitation = Invitation;
93
96
  //# sourceMappingURL=invitation.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invitation.entity.js","sourceRoot":"","sources":["../../../src/invitations/entities/invitation.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEjE,OAAO,EACH,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,SAAS,EACT,sBAAsB,EACtB,gBAAgB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAC,YA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BACR,IAAI;+CAAC;AAnDV,UAAU;IADtB,MAAM,EAAE;GACI,UAAU,CAoDtB;SApDY,UAAU"}
1
+ {"version":3,"file":"invitation.entity.js","sourceRoot":"","sources":["../../../src/invitations/entities/invitation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAiE;AAEjE,qCASiB;AACjB,yFAA6E;AAGtE,IAAM,UAAU,GAAhB,MAAM,UAAU;IAGnB,EAAE,CAAU;IAQL,IAAI,CAAU;IAIrB,SAAS,CAAU;IAInB,YAAY,CAAU;IAItB,gBAAgB,CAAQ;IAIxB,SAAS,CAAQ;IAIjB,UAAU,CAAQ;IAQlB,YAAY,CAAgB;IAI5B,WAAW,CAAQ;IAInB,UAAU,CAAQ;IAIlB,WAAW,CAAQ;CACtB,CAAA;AAnDG;IAAC,IAAA,gCAAsB,GAAE;IACxB,IAAA,qBAAW,GAAE;;sCACF;AAEZ;IAAC,IAAA,gBAAM,EAAC,MAAM,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB;KACtC,CAAC;IACD,IAAA,mBAAS,EAAC,MAAM,CAAC;IACjB,IAAA,qBAAW,GAAE;;wCACO;AAErB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;6CACK;AAEnB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;gDACQ;AAEtB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;8BACK,IAAI;oDAAC;AAExB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;8BACF,IAAI;6CAAC;AAEjB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,6BAAmB,GAAE;8BACT,IAAI;8CAAC;AAElB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;IACb,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAY,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE;QACrD,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;KAChC,CAAC;8BACa,kCAAY;gDAAC;AAE5B;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,GAAE;8BACA,IAAI;+CAAC;AAEnB;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,qBAAW,GAAE;8BACD,IAAI;8CAAC;AAElB;IAAC,IAAA,0BAAgB,GAAE;IAClB,IAAA,6BAAmB,GAAE;8BACR,IAAI;+CAAC;AAnDV,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAoDtB;AApDY,gCAAU"}
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -10,12 +11,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
11
12
  return function (target, key) { decorator(target, key, paramIndex); }
12
13
  };
13
- import { Controller, Request, Body, Param, Delete, UseGuards, Post, } from "@nestjs/common";
14
- import { ApiBearerAuth, ApiOkResponse, ApiTags } from "@nestjs/swagger";
15
- import { AuthGuard } from "@nestjs/passport";
16
- import { Invitation } from "./entities/invitation.entity";
17
- import { InvitationService } from "./invitation.service";
18
- import { CreateInvitationDto } from "./dto/create-invitation.dto";
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.InvitationController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const swagger_1 = require("@nestjs/swagger");
18
+ const passport_1 = require("@nestjs/passport");
19
+ const invitation_entity_1 = require("./entities/invitation.entity");
20
+ const invitation_service_1 = require("./invitation.service");
21
+ const create_invitation_dto_1 = require("./dto/create-invitation.dto");
19
22
  let InvitationController = class InvitationController {
20
23
  invitationService;
21
24
  constructor(invitationService) {
@@ -30,29 +33,29 @@ let InvitationController = class InvitationController {
30
33
  }
31
34
  };
32
35
  __decorate([
33
- Post(),
34
- ApiOkResponse({ type: Invitation }),
35
- __param(0, Body()),
36
- __param(1, Request()),
36
+ (0, common_1.Post)(),
37
+ (0, swagger_1.ApiOkResponse)({ type: invitation_entity_1.Invitation }),
38
+ __param(0, (0, common_1.Body)()),
39
+ __param(1, (0, common_1.Request)()),
37
40
  __metadata("design:type", Function),
38
- __metadata("design:paramtypes", [CreateInvitationDto, Object]),
41
+ __metadata("design:paramtypes", [create_invitation_dto_1.CreateInvitationDto, Object]),
39
42
  __metadata("design:returntype", Promise)
40
43
  ], InvitationController.prototype, "create", null);
41
44
  __decorate([
42
- Delete(":uuid"),
43
- ApiOkResponse({ type: Invitation }),
44
- __param(0, Param("uuid")),
45
- __param(1, Request()),
45
+ (0, common_1.Delete)(":uuid"),
46
+ (0, swagger_1.ApiOkResponse)({ type: invitation_entity_1.Invitation }),
47
+ __param(0, (0, common_1.Param)("uuid")),
48
+ __param(1, (0, common_1.Request)()),
46
49
  __metadata("design:type", Function),
47
50
  __metadata("design:paramtypes", [String, Object]),
48
51
  __metadata("design:returntype", Promise)
49
52
  ], InvitationController.prototype, "remove", null);
50
53
  InvitationController = __decorate([
51
- UseGuards(AuthGuard("jwt")),
52
- ApiBearerAuth(),
53
- Controller("invitations"),
54
- ApiTags("organisations"),
55
- __metadata("design:paramtypes", [InvitationService])
54
+ (0, common_1.UseGuards)((0, passport_1.AuthGuard)("jwt")),
55
+ (0, swagger_1.ApiBearerAuth)(),
56
+ (0, common_1.Controller)("invitations"),
57
+ (0, swagger_1.ApiTags)("organisations"),
58
+ __metadata("design:paramtypes", [invitation_service_1.InvitationService])
56
59
  ], InvitationController);
57
- export { InvitationController };
60
+ exports.InvitationController = InvitationController;
58
61
  //# sourceMappingURL=invitation.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invitation.controller.js","sourceRoot":"","sources":["../../src/invitations/invitation.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACH,UAAU,EACV,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,EACN,SAAS,EACT,IAAI,GACP,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAC;AAEtE,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAC,mBAAmB,EAAC,MAAM,6BAA6B,CAAC;AAMzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IACA;IAA7B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAI/D,AAAN,KAAK,CAAC,MAAM,CACA,SAA8B,EAC3B,OAAwB;QAEnC,OAAO,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,CAAC;IAIK,AAAN,KAAK,CAAC,MAAM,CACO,IAAY,EAChB,OAAwB;QAEnC,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CACpD,IAAI,EACJ,OAAO,CAAC,IAAI,CAAC,EAAE,CAClB,CAAC;QAEF,OAAO,YAAY,CAAC,WAAW,KAAK,SAAS,CAAC;IAClD,CAAC;CACJ,CAAA;AApBS;IAFL,IAAI,EAAE;IACN,aAAa,CAAC,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;IAE7B,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,OAAO,EAAE,CAAA;;qCADS,mBAAmB;;kDAIzC;AAIK;IAFL,MAAM,CAAC,OAAO,CAAC;IACf,aAAa,CAAC,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;IAE7B,WAAA,KAAK,CAAC,MAAM,CAAC,CAAA;IACb,WAAA,OAAO,EAAE,CAAA;;;;kDAQb;AAxBQ,oBAAoB;IAJhC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC3B,aAAa,EAAE;IACf,UAAU,CAAC,aAAa,CAAC;IACzB,OAAO,CAAC,eAAe,CAAC;qCAE2B,iBAAiB;GADxD,oBAAoB,CAyBhC;SAzBY,oBAAoB"}
1
+ {"version":3,"file":"invitation.controller.js","sourceRoot":"","sources":["../../src/invitations/invitation.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AAExB,6CAAsE;AAEtE,+CAA2C;AAE3C,oEAAwD;AACxD,6DAAuD;AACvD,uEAAgE;AAMzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IACA;IAA7B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAI/D,AAAN,KAAK,CAAC,MAAM,CACA,SAA8B,EAC3B,OAAwB;QAEnC,OAAO,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,CAAC;IAIK,AAAN,KAAK,CAAC,MAAM,CACO,IAAY,EAChB,OAAwB;QAEnC,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CACpD,IAAI,EACJ,OAAO,CAAC,IAAI,CAAC,EAAE,CAClB,CAAC;QAEF,OAAO,YAAY,CAAC,WAAW,KAAK,SAAS,CAAC;IAClD,CAAC;CACJ,CAAA;AApBS;IAFL,IAAA,aAAI,GAAE;IACN,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,8BAAU,EAAC,CAAC;IAE7B,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,gBAAO,GAAE,CAAA;;qCADS,2CAAmB;;kDAIzC;AAIK;IAFL,IAAA,eAAM,EAAC,OAAO,CAAC;IACf,IAAA,uBAAa,EAAC,EAAC,IAAI,EAAE,8BAAU,EAAC,CAAC;IAE7B,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,gBAAO,GAAE,CAAA;;;;kDAQb;AAxBQ,oBAAoB;IAJhC,IAAA,kBAAS,EAAC,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC;IAC3B,IAAA,uBAAa,GAAE;IACf,IAAA,mBAAU,EAAC,aAAa,CAAC;IACzB,IAAA,iBAAO,EAAC,eAAe,CAAC;qCAE2B,sCAAiB;GADxD,oBAAoB,CAyBhC;AAzBY,oDAAoB"}
@@ -1,35 +1,41 @@
1
+ "use strict";
1
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
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;
5
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
7
  };
7
- import { Module } from "@nestjs/common";
8
- import { LoggerModule } from "../logger/logger.module";
9
- import { TypeOrmModule } from "@nestjs/typeorm";
10
- import { Invitation } from "./entities/invitation.entity";
11
- import { InvitationController } from "./invitation.controller";
12
- import { InvitationService } from "./invitation.service";
13
- import { SmtpEmailClientModule } from "../smtp-email-client/smtp-email-client.module";
14
- import { OrganisationModule } from "../organisation/organisation.module";
15
- import { ConfigModule } from "@nestjs/config";
16
- import configVariables from "./InvitationConfigurationVariables";
17
- import { InvitationsConfigurationService } from "./InvitationConfigurationService";
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.InvitationModule = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const logger_module_1 = require("../logger/logger.module");
15
+ const typeorm_1 = require("@nestjs/typeorm");
16
+ const invitation_entity_1 = require("./entities/invitation.entity");
17
+ const invitation_controller_1 = require("./invitation.controller");
18
+ const invitation_service_1 = require("./invitation.service");
19
+ const smtp_email_client_module_1 = require("../smtp-email-client/smtp-email-client.module");
20
+ const organisation_module_1 = require("../organisation/organisation.module");
21
+ const config_1 = require("@nestjs/config");
22
+ const InvitationConfigurationVariables_1 = __importDefault(require("./InvitationConfigurationVariables"));
23
+ const InvitationConfigurationService_1 = require("./InvitationConfigurationService");
18
24
  let InvitationModule = class InvitationModule {
19
25
  };
20
26
  InvitationModule = __decorate([
21
- Module({
27
+ (0, common_1.Module)({
22
28
  imports: [
23
- ConfigModule.forFeature(configVariables),
24
- LoggerModule,
25
- TypeOrmModule.forFeature([Invitation]),
26
- SmtpEmailClientModule,
27
- OrganisationModule,
29
+ config_1.ConfigModule.forFeature(InvitationConfigurationVariables_1.default),
30
+ logger_module_1.LoggerModule,
31
+ typeorm_1.TypeOrmModule.forFeature([invitation_entity_1.Invitation]),
32
+ smtp_email_client_module_1.SmtpEmailClientModule,
33
+ organisation_module_1.OrganisationModule,
28
34
  ],
29
- controllers: [InvitationController],
30
- providers: [InvitationService, InvitationsConfigurationService],
31
- exports: [InvitationService],
35
+ controllers: [invitation_controller_1.InvitationController],
36
+ providers: [invitation_service_1.InvitationService, InvitationConfigurationService_1.InvitationsConfigurationService],
37
+ exports: [invitation_service_1.InvitationService],
32
38
  })
33
39
  ], InvitationModule);
34
- export { InvitationModule };
40
+ exports.InvitationModule = InvitationModule;
35
41
  //# sourceMappingURL=invitation.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invitation.module.js","sourceRoot":"","sources":["../../src/invitations/invitation.module.ts"],"names":[],"mappings":";;;;;;AA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,qFAAiF;AAc1E,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,gBAAgB;IAZ5B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE;YACL,qBAAY,CAAC,UAAU,CAAC,0CAAe,CAAC;YACxC,4BAAY;YACZ,uBAAa,CAAC,UAAU,CAAC,CAAC,8BAAU,CAAC,CAAC;YACtC,gDAAqB;YACrB,wCAAkB;SACrB;QACD,WAAW,EAAE,CAAC,4CAAoB,CAAC;QACnC,SAAS,EAAE,CAAC,sCAAiB,EAAE,gEAA+B,CAAC;QAC/D,OAAO,EAAE,CAAC,sCAAiB,CAAC;KAC/B,CAAC;GACW,gBAAgB,CAAG;AAAnB,4CAAgB"}
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -10,14 +11,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
11
  var __param = (this && this.__param) || function (paramIndex, decorator) {
11
12
  return function (target, key) { decorator(target, key, paramIndex); }
12
13
  };
13
- import { Injectable } from "@nestjs/common";
14
- import { InjectRepository } from "@nestjs/typeorm";
15
- import { Repository } from "typeorm";
16
- import { Roles } from "../organisation/dto/RolesEnum";
17
- import { Invitation } from "./entities/invitation.entity";
18
- import { SmtpEmailClient } from "../smtp-email-client/email-client.service";
19
- import { Organisation } from "../organisation/entities/organisation.entity";
20
- import { InvitationsConfigurationService } from "./InvitationConfigurationService";
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.InvitationService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const typeorm_1 = require("@nestjs/typeorm");
18
+ const typeorm_2 = require("typeorm");
19
+ const RolesEnum_1 = require("../organisation/dto/RolesEnum");
20
+ const invitation_entity_1 = require("./entities/invitation.entity");
21
+ const email_client_service_1 = require("../smtp-email-client/email-client.service");
22
+ const organisation_entity_1 = require("../organisation/entities/organisation.entity");
23
+ const InvitationConfigurationService_1 = require("./InvitationConfigurationService");
21
24
  let InvitationService = class InvitationService {
22
25
  invitationRepository;
23
26
  organisationRepository;
@@ -43,7 +46,7 @@ let InvitationService = class InvitationService {
43
46
  throw new Error("An valid invitation already exists for this email address for this organisation");
44
47
  }
45
48
  // otherwise, create a new invitation
46
- const unsavedInvitation = new Invitation();
49
+ const unsavedInvitation = new invitation_entity_1.Invitation();
47
50
  unsavedInvitation.emailAddress = createDto.emailAddress;
48
51
  unsavedInvitation.expiresOn = new Date();
49
52
  unsavedInvitation.expiresOn.setDate(unsavedInvitation.expiresOn.getDate() + 1);
@@ -71,7 +74,7 @@ let InvitationService = class InvitationService {
71
74
  id: currentUserId,
72
75
  },
73
76
  roles: {
74
- name: Roles.owner,
77
+ name: RolesEnum_1.Roles.owner,
75
78
  },
76
79
  },
77
80
  },
@@ -81,13 +84,13 @@ let InvitationService = class InvitationService {
81
84
  }
82
85
  };
83
86
  InvitationService = __decorate([
84
- Injectable(),
85
- __param(0, InjectRepository(Invitation)),
86
- __param(1, InjectRepository(Organisation)),
87
- __metadata("design:paramtypes", [Repository,
88
- Repository,
89
- SmtpEmailClient,
90
- InvitationsConfigurationService])
87
+ (0, common_1.Injectable)(),
88
+ __param(0, (0, typeorm_1.InjectRepository)(invitation_entity_1.Invitation)),
89
+ __param(1, (0, typeorm_1.InjectRepository)(organisation_entity_1.Organisation)),
90
+ __metadata("design:paramtypes", [typeorm_2.Repository,
91
+ typeorm_2.Repository,
92
+ email_client_service_1.SmtpEmailClient,
93
+ InvitationConfigurationService_1.InvitationsConfigurationService])
91
94
  ], InvitationService);
92
- export { InvitationService };
95
+ exports.InvitationService = InvitationService;
93
96
  //# sourceMappingURL=invitation.service.js.map