@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.
- package/dist/authz/AccessToken.js +2 -1
- package/dist/authz/AuthConfigurationService.js +15 -12
- package/dist/authz/AuthConfigurationService.js.map +1 -1
- package/dist/authz/AuthConfigurationVariables.js +4 -2
- package/dist/authz/AuthConfigurationVariables.js.map +1 -1
- package/dist/authz/ClaimsAuthorisationGuard.js +13 -7
- package/dist/authz/ClaimsAuthorisationGuard.js.map +1 -1
- package/dist/authz/DefaultAuthGuard.js +8 -5
- package/dist/authz/DefaultAuthGuard.js.map +1 -1
- package/dist/authz/MandatoryUserClaims.decorator.js +6 -2
- package/dist/authz/MandatoryUserClaims.decorator.js.map +1 -1
- package/dist/authz/RequestWithUser.js +2 -1
- package/dist/authz/authz.module.js +23 -17
- package/dist/authz/authz.module.js.map +1 -1
- package/dist/authz/authzstrategy.js +22 -16
- package/dist/authz/authzstrategy.js.map +1 -1
- package/dist/authzclient/AuthClientConfigurationService.js +13 -10
- package/dist/authzclient/AuthClientConfigurationService.js.map +1 -1
- package/dist/authzclient/AuthClientConfigurationVariables.js +4 -2
- package/dist/authzclient/AuthClientConfigurationVariables.js.map +1 -1
- package/dist/authzclient/AuthzClientProvider.js +8 -5
- package/dist/authzclient/AuthzClientProvider.js.map +1 -1
- package/dist/authzclient/UserProfile.dto.js +5 -1
- package/dist/authzclient/UserProfile.dto.js.map +1 -1
- package/dist/authzclient/authz-client.module.js +19 -13
- package/dist/authzclient/authz-client.module.js.map +1 -1
- package/dist/authzclient/authz.service.js +14 -8
- package/dist/authzclient/authz.service.js.map +1 -1
- package/dist/cli/cli.js +10 -7
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/commands/WriteApiClientCommand.js +13 -6
- package/dist/cli/commands/WriteApiClientCommand.js.map +1 -1
- package/dist/configuration/ValidatedConfigurationService.js +8 -5
- package/dist/configuration/ValidatedConfigurationService.js.map +1 -1
- package/dist/core-config/CoreConfig.module.js +15 -9
- package/dist/core-config/CoreConfig.module.js.map +1 -1
- package/dist/core-config/CoreConfigurationService.js +25 -22
- package/dist/core-config/CoreConfigurationService.js.map +1 -1
- package/dist/core-config/CoreConfigurationVariables.js +4 -2
- package/dist/core-config/CoreConfigurationVariables.js.map +1 -1
- package/dist/database-postgres/PostgresDatabase.module.js +14 -13
- package/dist/database-postgres/PostgresDatabase.module.js.map +1 -1
- package/dist/database-postgres/PostgresDatabaseConfigurationService.js +8 -5
- package/dist/database-postgres/PostgresDatabaseConfigurationService.js.map +1 -1
- package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.d.ts +3 -1
- package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js +18 -5
- package/dist/database-postgres/PostgresTypeOrmConfigurationProvider.js.map +1 -1
- package/dist/database-postgres/PostrgresMigrationsHelper.d.ts +3 -0
- package/dist/database-postgres/PostrgresMigrationsHelper.js +7 -0
- package/dist/database-postgres/PostrgresMigrationsHelper.js.map +1 -0
- package/dist/database-sqlite/SqliteDatabase.module.js +14 -13
- package/dist/database-sqlite/SqliteDatabase.module.js.map +1 -1
- package/dist/database-sqlite/SqliteDatabaseConfigurationService.js +8 -5
- package/dist/database-sqlite/SqliteDatabaseConfigurationService.js.map +1 -1
- package/dist/database-sqlite/SqliteMigrationsHelper.d.ts +3 -0
- package/dist/database-sqlite/SqliteMigrationsHelper.js +7 -0
- package/dist/database-sqlite/SqliteMigrationsHelper.js.map +1 -0
- package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.d.ts +3 -1
- package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.js +18 -5
- package/dist/database-sqlite/SqliteTypeOrmConfigurationProvider.js.map +1 -1
- package/dist/index.js +64 -30
- package/dist/index.js.map +1 -1
- package/dist/invitations/InvitationConfigurationService.js +13 -10
- package/dist/invitations/InvitationConfigurationService.js.map +1 -1
- package/dist/invitations/InvitationConfigurationVariables.js +4 -2
- package/dist/invitations/InvitationConfigurationVariables.js.map +1 -1
- package/dist/invitations/dto/create-invitation.dto.js +9 -5
- package/dist/invitations/dto/create-invitation.dto.js.map +1 -1
- package/dist/invitations/entities/invitation.entity.js +33 -30
- package/dist/invitations/entities/invitation.entity.js.map +1 -1
- package/dist/invitations/invitation.controller.js +24 -21
- package/dist/invitations/invitation.controller.js.map +1 -1
- package/dist/invitations/invitation.module.js +27 -21
- package/dist/invitations/invitation.module.js.map +1 -1
- package/dist/invitations/invitation.service.js +21 -18
- package/dist/invitations/invitation.service.js.map +1 -1
- package/dist/logger/CoreLoggerService.js +9 -7
- package/dist/logger/CoreLoggerService.js.map +1 -1
- package/dist/logger/LoggingConfigurationService.js +15 -12
- package/dist/logger/LoggingConfigurationService.js.map +1 -1
- package/dist/logger/LoggingConfigurationVariables.js +4 -2
- package/dist/logger/LoggingConfigurationVariables.js.map +1 -1
- package/dist/logger/LoggingInterceptor.js +13 -7
- package/dist/logger/LoggingInterceptor.js.map +1 -1
- package/dist/logger/logger.module.js +20 -14
- package/dist/logger/logger.module.js.map +1 -1
- package/dist/organisation/dto/RolesEnum.js +5 -2
- package/dist/organisation/dto/RolesEnum.js.map +1 -1
- package/dist/organisation/dto/create-organisation.dto.js +11 -7
- package/dist/organisation/dto/create-organisation.dto.js.map +1 -1
- package/dist/organisation/dto/update-organisation.dto.js +7 -3
- package/dist/organisation/dto/update-organisation.dto.js.map +1 -1
- package/dist/organisation/entities/member-role.entity.js +23 -20
- package/dist/organisation/entities/member-role.entity.js.map +1 -1
- package/dist/organisation/entities/organisation-membership.entity.js +40 -37
- package/dist/organisation/entities/organisation-membership.entity.js.map +1 -1
- package/dist/organisation/entities/organisation.entity.js +29 -26
- package/dist/organisation/entities/organisation.entity.js.map +1 -1
- package/dist/organisation/organisation.controller.js +32 -29
- package/dist/organisation/organisation.controller.js.map +1 -1
- package/dist/organisation/organisation.module.js +15 -12
- package/dist/organisation/organisation.module.js.map +1 -1
- package/dist/organisation/organisation.service.js +23 -20
- package/dist/organisation/organisation.service.js.map +1 -1
- package/dist/person/dto/create-person.dto.js +5 -1
- package/dist/person/dto/create-person.dto.js.map +1 -1
- package/dist/person/dto/update-person.dto.js +7 -3
- package/dist/person/dto/update-person.dto.js.map +1 -1
- package/dist/person/entities/person.entity.js +44 -41
- package/dist/person/entities/person.entity.js.map +1 -1
- package/dist/person/person.controller.js +28 -25
- package/dist/person/person.controller.js.map +1 -1
- package/dist/person/person.module.js +18 -15
- package/dist/person/person.module.js.map +1 -1
- package/dist/person/person.service.js +28 -22
- package/dist/person/person.service.js.map +1 -1
- package/dist/root-app/SwaggerGen.js +21 -15
- package/dist/root-app/SwaggerGen.js.map +1 -1
- package/dist/root-app/app.controller.js +23 -17
- package/dist/root-app/app.controller.js.map +1 -1
- package/dist/root-app/app.service.js +6 -3
- package/dist/root-app/app.service.js.map +1 -1
- package/dist/root-app/core-app.module.js +32 -26
- package/dist/root-app/core-app.module.js.map +1 -1
- package/dist/root-app/notfound.interceptor.js +9 -6
- package/dist/root-app/notfound.interceptor.js.map +1 -1
- package/dist/runningCommandLine/CliCommandService.js +14 -8
- package/dist/runningCommandLine/CliCommandService.js.map +1 -1
- package/dist/runningCommandLine/RunningCommandLine.module.js +12 -9
- package/dist/runningCommandLine/RunningCommandLine.module.js.map +1 -1
- package/dist/smtp-email-client/EmailClientProvider.js +8 -5
- package/dist/smtp-email-client/EmailClientProvider.js.map +1 -1
- package/dist/smtp-email-client/EmailConfigurationService.js +27 -24
- package/dist/smtp-email-client/EmailConfigurationService.js.map +1 -1
- package/dist/smtp-email-client/EmailConfigurationVariables.js +4 -2
- package/dist/smtp-email-client/EmailConfigurationVariables.js.map +1 -1
- package/dist/smtp-email-client/email-client.service.js +21 -15
- package/dist/smtp-email-client/email-client.service.js.map +1 -1
- package/dist/smtp-email-client/email.controller.js +15 -12
- package/dist/smtp-email-client/email.controller.js.map +1 -1
- package/dist/smtp-email-client/email.entity.js +35 -32
- package/dist/smtp-email-client/email.entity.js.map +1 -1
- package/dist/smtp-email-client/smtp-email-client.module.js +32 -26
- package/dist/smtp-email-client/smtp-email-client.module.js.map +1 -1
- package/dist/smtp-email-client/smtp-email-handler.js +21 -15
- package/dist/smtp-email-client/smtp-email-handler.js.map +1 -1
- package/dist/stripe-client/StripeClientConfigurationService.js +17 -14
- package/dist/stripe-client/StripeClientConfigurationService.js.map +1 -1
- package/dist/stripe-client/StripeClientProvider.js +11 -5
- package/dist/stripe-client/StripeClientProvider.js.map +1 -1
- package/dist/stripe-client/StripeConfigurationVariables.js +4 -2
- package/dist/stripe-client/StripeConfigurationVariables.js.map +1 -1
- package/dist/stripe-client/models/StripeCheckoutSessionParams.js +24 -19
- package/dist/stripe-client/models/StripeCheckoutSessionParams.js.map +1 -1
- package/dist/stripe-client/services/stripe-checkout.service.js +16 -10
- package/dist/stripe-client/services/stripe-checkout.service.js.map +1 -1
- package/dist/stripe-client/services/stripe-event-handler.js +18 -12
- package/dist/stripe-client/services/stripe-event-handler.js.map +1 -1
- package/dist/stripe-client/services/stripe-webhook-handler.service.js +19 -13
- package/dist/stripe-client/services/stripe-webhook-handler.service.js.map +1 -1
- package/dist/stripe-client/stripe-account.module.js +28 -22
- package/dist/stripe-client/stripe-account.module.js.map +1 -1
- package/dist/stripe-client/stripe-controller.js +30 -27
- package/dist/stripe-client/stripe-controller.js.map +1 -1
- package/dist/testing/preRun.js +3 -1
- package/dist/testing/preRun.js.map +1 -1
- package/dist/twitter-client/TwitterClientConfigurationService.js +19 -16
- package/dist/twitter-client/TwitterClientConfigurationService.js.map +1 -1
- package/dist/twitter-client/TwitterClientProvider.js +8 -5
- package/dist/twitter-client/TwitterClientProvider.js.map +1 -1
- package/dist/twitter-client/TwitterConfigurationVariables.js +4 -2
- package/dist/twitter-client/TwitterConfigurationVariables.js.map +1 -1
- package/dist/twitter-client/services/twitter-client.service.js +14 -8
- package/dist/twitter-client/services/twitter-client.service.js.map +1 -1
- package/dist/twitter-client/twitter-account.module.js +21 -15
- package/dist/twitter-client/twitter-account.module.js.map +1 -1
- package/package.json +5 -5
- package/dist/cli/commands/WriteTypeOrmConfigCommand.d.ts +0 -19
- package/dist/cli/commands/WriteTypeOrmConfigCommand.js +0 -40
- 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
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAA+C;AAC/C,8FAAwF;AAuDpF,yGAvDI,oDAAwB,OAuDJ;AAtD5B,oFAA6E;AAoDzE,qGApDI,6CAAoB,OAoDJ;AAnDxB,2FAAmF;AAgC/E,sGAhCI,gDAAqB,OAgCJ;AA/BzB,mDAA+C;AAmD3C,gGAnDI,gCAAe,OAmDJ;AAlDnB,uDAAiD;AAqC7C,4FArCI,0BAAW,OAqCJ;AApCf,yDAAkD;AAmC9C,4FAnCI,2BAAW,OAmCJ;AAlCf,+DAA0D;AAgCtD,iGAhCI,mCAAgB,OAgCJ;AA9BpB,iGAA4F;AAqCxF,8GArCI,6DAA6B,OAqCJ;AApCjC,qFAAgF;AAwB5E,yGAxBI,mDAAwB,OAwBJ;AAvB5B,yFAAmF;AA6BrD,+FA7BtB,gDAAsB,OA6Bc;AA5B5C,mHAA8G;AAgClE,6GAhCpC,2EAAoC,OAgC4B;AA/BxE,mFAA6E;AAsCzE,qGAtCI,4CAAoB,OAsCJ;AArCxB,6GAAwG;AAsCpG,mHAtCI,uEAAkC,OAsCJ;AArCtC,mFAAyE;AA8BrE,gGA9BI,sCAAe,OA8BJ;AA7BnB,mFAA2D;AAiBvD,4BAjBG,2BAAiB,CAiBH;AAhBrB,4EAAsE;AAgClE,mGAhCI,wCAAkB,OAgCJ;AA/BtB,mEAAuD;AAyBnD,uFAzBI,sBAAM,OAyBJ;AAxBV,0DAAoD;AA6BhD,6FA7BI,4BAAY,OA6BJ;AA5BhB,4DAAsD;AA8BlD,8FA9BI,8BAAa,OA8BJ;AA7BjB,gEAAsD;AAelD,2FAfI,4BAAU,OAeJ;AAdd,sDAAiD;AAgB7C,2FAhBI,uBAAU,OAgBJ;AAfd,6FAAsF;AA8BlF,qGA9BI,6CAAoB,OA8BJ;AA7BxB,uEAAiE;AAa7D,iGAbI,oCAAgB,OAaJ;AAZpB,8EAAyE;AAgCrE,kGAhCI,qCAAiB,OAgCJ;AA/BrB,+EAA0E;AAgCtE,yGAhCI,mDAAwB,OAgCJ;AA/B5B,yFAA0E;AAgCtE,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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
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":"
|
|
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
|
-
|
|
2
|
-
|
|
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,
|
|
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
|
-
|
|
11
|
-
|
|
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":"
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
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":"
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
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":"
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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(
|
|
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
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"invitation.module.js","sourceRoot":"","sources":["../../src/invitations/invitation.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAsC;AACtC,2DAAqD;AACrD,6CAA8C;AAC9C,oEAAwD;AACxD,mEAA6D;AAC7D,6DAAuD;AACvD,4FAAoF;AACpF,6EAAuE;AACvE,2CAA4C;AAC5C,0GAAiE;AACjE,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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
95
|
+
exports.InvitationService = InvitationService;
|
|
93
96
|
//# sourceMappingURL=invitation.service.js.map
|