@punks/backend-entity-manager 0.0.201 → 0.0.203
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/cjs/index.js +21 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/secrets.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/services/index.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/services/providers.d.ts +2 -1
- package/dist/cjs/types/platforms/nest/services/secrets/index.d.ts +7 -0
- package/dist/esm/index.js +22 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/secrets.d.ts +1 -0
- package/dist/esm/types/platforms/nest/services/index.d.ts +1 -0
- package/dist/esm/types/platforms/nest/services/providers.d.ts +2 -1
- package/dist/esm/types/platforms/nest/services/secrets/index.d.ts +7 -0
- package/dist/index.d.ts +9 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { EventsService } from "./events";
|
|
|
4
4
|
import { FilesService } from "./files";
|
|
5
5
|
import { AppHashingService } from "./hashing";
|
|
6
6
|
import { EntityManagerService } from "./manager";
|
|
7
|
+
import { SecretsService } from "./secrets";
|
|
7
8
|
import { AppSessionService } from "./session";
|
|
8
9
|
import { TrackingService } from "./tracking";
|
|
9
|
-
export declare const Services: (typeof AppSessionService | typeof AppHashingService | typeof EntityManagerService | typeof EmailService | typeof CacheService | typeof FilesService | typeof EventsService | typeof TrackingService)[];
|
|
10
|
+
export declare const Services: (typeof AppSessionService | typeof AppHashingService | typeof EntityManagerService | typeof EmailService | typeof CacheService | typeof FilesService | typeof EventsService | typeof TrackingService | typeof SecretsService)[];
|
package/dist/esm/index.js
CHANGED
|
@@ -21399,6 +21399,25 @@ TrackingService = __decorate([
|
|
|
21399
21399
|
__metadata("design:paramtypes", [EntityManagerRegistry])
|
|
21400
21400
|
], TrackingService);
|
|
21401
21401
|
|
|
21402
|
+
let SecretsService = class SecretsService {
|
|
21403
|
+
constructor(registry) {
|
|
21404
|
+
this.registry = registry;
|
|
21405
|
+
}
|
|
21406
|
+
get secretsProvider() {
|
|
21407
|
+
return this.providers[0];
|
|
21408
|
+
}
|
|
21409
|
+
get providers() {
|
|
21410
|
+
return this.registry
|
|
21411
|
+
.getContainer()
|
|
21412
|
+
.getEntitiesServicesLocator()
|
|
21413
|
+
.resolveSecretsProviders();
|
|
21414
|
+
}
|
|
21415
|
+
};
|
|
21416
|
+
SecretsService = __decorate([
|
|
21417
|
+
Injectable(),
|
|
21418
|
+
__metadata("design:paramtypes", [EntityManagerRegistry])
|
|
21419
|
+
], SecretsService);
|
|
21420
|
+
|
|
21402
21421
|
let AuthenticationServicesResolver = class AuthenticationServicesResolver {
|
|
21403
21422
|
registerUsersService(usersService) {
|
|
21404
21423
|
this.usersService = usersService;
|
|
@@ -22131,6 +22150,7 @@ const Services$1 = [
|
|
|
22131
22150
|
EventsService,
|
|
22132
22151
|
FilesService,
|
|
22133
22152
|
TrackingService,
|
|
22153
|
+
SecretsService,
|
|
22134
22154
|
];
|
|
22135
22155
|
|
|
22136
22156
|
const IoC = [EntityManagerRegistry];
|
|
@@ -28764,7 +28784,7 @@ let AwsSecretsProvider = class AwsSecretsProvider {
|
|
|
28764
28784
|
[definition.key]: {
|
|
28765
28785
|
type: definition.type,
|
|
28766
28786
|
hidden: definition.hidden,
|
|
28767
|
-
value: null,
|
|
28787
|
+
value: definition.defaultValue ?? null,
|
|
28768
28788
|
timestamp: Date.now(),
|
|
28769
28789
|
},
|
|
28770
28790
|
});
|
|
@@ -28823,5 +28843,5 @@ AwsSecretsModule = AwsSecretsModule_1 = __decorate([
|
|
|
28823
28843
|
})
|
|
28824
28844
|
], AwsSecretsModule);
|
|
28825
28845
|
|
|
28826
|
-
export { AUTHENTICATION_EVENTS_NAMESPACE, AppExceptionsFilterBase, AppHashingService, AppInMemorySettings, AppSessionMiddleware, AppSessionService, AuthGuard, Authenticated, AuthenticationEmailTemplates, AuthenticationError, AuthenticationEvents, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationService, AwsBucketModule, AwsEmailModule, AwsS3BucketError as AwsS2BucketError, AwsS3BucketProvider, AwsSecretsModule, AwsSecretsProvider, AwsSesEmailTemplate, BucketItemType, CacheService, CurrentUser, EmailService, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EntitySeeder, EntitySerializationFormat, EntitySerializer, EntitySnapshotService, EntityVersionOperation, EventsService, FilesService, IEntityVersionsCursor, InMemoryBucketProvider, InMemoryEmailProvider, InvalidCredentialsError, MemberOf, MissingEntityIdError, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestEntitySerializer, NestEntitySnapshotService, NestPipelineTemplate, NestTypeOrmEntitySeeder, NestTypeOrmQueryBuilder, NestTypeOrmRepository, OperationTokenMismatchError, PLATFORM_EVENT_NAMESPACE, Permissions, PipelineController, PipelineErrorType, PipelineInvocationError, PipelineStatus, PipelineStepErrorType, PipelinesBuilder, PipelinesRunner, PlatformEvents, Public, QueryBuilderBase, QueryBuilderOperation, ReplicationMode, Roles, SendgridEmailModule, SendgridEmailTemplate, SortDirection, TrackingService, TypeOrmQueryBuilder, TypeOrmRepository, TypeormCacheInstance, UserCreationError, UserRegistrationError, WpAppInitializer, WpAwsSesEmailTemplate, WpBucketProvider, WpCacheInstance, WpEmailLogger, WpEmailProvider, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpEntitySeeder, WpEntitySerializer, WpEntitySnapshotService, WpEntityVersioningProvider, WpEventsTracker, WpFileProvider, WpFileReferenceRepository, WpGlobalAuthenticationMiddleware, WpPermissionsService, WpPipeline, WpRolesService, WpSendgridEmailTemplate, WpUserRolesService, WpUserService, buildPermissionsGuard, buildRolesGuard, createContainer, createExpressFileResponse, getLocalizedText, newUuid, renderHandlebarsTemplate, toEntitiesImportInput };
|
|
28846
|
+
export { AUTHENTICATION_EVENTS_NAMESPACE, AppExceptionsFilterBase, AppHashingService, AppInMemorySettings, AppSessionMiddleware, AppSessionService, AuthGuard, Authenticated, AuthenticationEmailTemplates, AuthenticationError, AuthenticationEvents, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationService, AwsBucketModule, AwsEmailModule, AwsS3BucketError as AwsS2BucketError, AwsS3BucketProvider, AwsSecretsModule, AwsSecretsProvider, AwsSesEmailTemplate, BucketItemType, CacheService, CurrentUser, EmailService, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EntitySeeder, EntitySerializationFormat, EntitySerializer, EntitySnapshotService, EntityVersionOperation, EventsService, FilesService, IEntityVersionsCursor, InMemoryBucketProvider, InMemoryEmailProvider, InvalidCredentialsError, MemberOf, MissingEntityIdError, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestEntitySerializer, NestEntitySnapshotService, NestPipelineTemplate, NestTypeOrmEntitySeeder, NestTypeOrmQueryBuilder, NestTypeOrmRepository, OperationTokenMismatchError, PLATFORM_EVENT_NAMESPACE, Permissions, PipelineController, PipelineErrorType, PipelineInvocationError, PipelineStatus, PipelineStepErrorType, PipelinesBuilder, PipelinesRunner, PlatformEvents, Public, QueryBuilderBase, QueryBuilderOperation, ReplicationMode, Roles, SecretsService, SendgridEmailModule, SendgridEmailTemplate, SortDirection, TrackingService, TypeOrmQueryBuilder, TypeOrmRepository, TypeormCacheInstance, UserCreationError, UserRegistrationError, WpAppInitializer, WpAwsSesEmailTemplate, WpBucketProvider, WpCacheInstance, WpEmailLogger, WpEmailProvider, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpEntitySeeder, WpEntitySerializer, WpEntitySnapshotService, WpEntityVersioningProvider, WpEventsTracker, WpFileProvider, WpFileReferenceRepository, WpGlobalAuthenticationMiddleware, WpPermissionsService, WpPipeline, WpRolesService, WpSendgridEmailTemplate, WpUserRolesService, WpUserService, buildPermissionsGuard, buildRolesGuard, createContainer, createExpressFileResponse, getLocalizedText, newUuid, renderHandlebarsTemplate, toEntitiesImportInput };
|
|
28827
28847
|
//# sourceMappingURL=index.js.map
|