@punks/backend-entity-manager 0.0.62 → 0.0.63

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.
@@ -0,0 +1,13 @@
1
+ import { IEntityFacet } from "../../../abstractions";
2
+ export declare class StringFacet implements IEntityFacet<string> {
3
+ value: string;
4
+ name?: string;
5
+ }
6
+ export declare class NumericFacet implements IEntityFacet<number> {
7
+ value: number;
8
+ name?: string;
9
+ }
10
+ export declare class BooleanFacet implements IEntityFacet<boolean> {
11
+ value: boolean;
12
+ name?: string;
13
+ }
@@ -0,0 +1 @@
1
+ export { StringFacet, BooleanFacet, NumericFacet } from "./facets";
@@ -1,6 +1,7 @@
1
1
  export * from "./authentication";
2
2
  export * from "./base";
3
3
  export * from "./decorators";
4
+ export * from "./dto";
4
5
  export * from "./extensions";
5
6
  export * from "./integrations";
6
7
  export * from "./ioc";
package/dist/esm/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Log, sort, byField, toDict, newUuid as newUuid$1, removeUndefinedProps } from '@punks/backend-core';
2
2
  import { applyDecorators, Injectable, SetMetadata, Global, Module, Scope, Logger, HttpStatus, HttpException } from '@nestjs/common';
3
+ import { ApiProperty } from '@nestjs/swagger';
3
4
  import { AsyncLocalStorage } from 'async_hooks';
4
5
  import { hash } from 'bcrypt';
5
6
  import { PATH_METADATA } from '@nestjs/common/constants';
@@ -217,6 +218,68 @@ const WpEventsTracker = (props = {}) => applyDecorators(Injectable(), SetMetadat
217
218
  ...props,
218
219
  }));
219
220
 
221
+ /******************************************************************************
222
+ Copyright (c) Microsoft Corporation.
223
+
224
+ Permission to use, copy, modify, and/or distribute this software for any
225
+ purpose with or without fee is hereby granted.
226
+
227
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
228
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
229
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
230
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
231
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
232
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
233
+ PERFORMANCE OF THIS SOFTWARE.
234
+ ***************************************************************************** */
235
+
236
+ function __decorate(decorators, target, key, desc) {
237
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
238
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
239
+ 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;
240
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
241
+ }
242
+
243
+ function __metadata(metadataKey, metadataValue) {
244
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
245
+ }
246
+
247
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
248
+ var e = new Error(message);
249
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
250
+ };
251
+
252
+ class StringFacet {
253
+ }
254
+ __decorate([
255
+ ApiProperty(),
256
+ __metadata("design:type", String)
257
+ ], StringFacet.prototype, "value", void 0);
258
+ __decorate([
259
+ ApiProperty({ nullable: true }),
260
+ __metadata("design:type", String)
261
+ ], StringFacet.prototype, "name", void 0);
262
+ class NumericFacet {
263
+ }
264
+ __decorate([
265
+ ApiProperty(),
266
+ __metadata("design:type", Number)
267
+ ], NumericFacet.prototype, "value", void 0);
268
+ __decorate([
269
+ ApiProperty({ nullable: true }),
270
+ __metadata("design:type", String)
271
+ ], NumericFacet.prototype, "name", void 0);
272
+ class BooleanFacet {
273
+ }
274
+ __decorate([
275
+ ApiProperty(),
276
+ __metadata("design:type", Boolean)
277
+ ], BooleanFacet.prototype, "value", void 0);
278
+ __decorate([
279
+ ApiProperty({ nullable: true }),
280
+ __metadata("design:type", String)
281
+ ], BooleanFacet.prototype, "name", void 0);
282
+
220
283
  const AuthenticationExtensionSymbols = {
221
284
  UserService: Symbol.for("WP.EXT:AUTHENTICATION.USER_SERVICE"),
222
285
  };
@@ -257,37 +320,6 @@ const AuthenticationEvents = {
257
320
  UserPasswordResetCompleted: `${AUTHENTICATION_EVENTS_NAMESPACE}:user.passwordResetCompleted`,
258
321
  };
259
322
 
260
- /******************************************************************************
261
- Copyright (c) Microsoft Corporation.
262
-
263
- Permission to use, copy, modify, and/or distribute this software for any
264
- purpose with or without fee is hereby granted.
265
-
266
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
267
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
268
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
269
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
270
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
271
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
272
- PERFORMANCE OF THIS SOFTWARE.
273
- ***************************************************************************** */
274
-
275
- function __decorate(decorators, target, key, desc) {
276
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
277
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
278
- 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;
279
- return c > 3 && r && Object.defineProperty(target, key, r), r;
280
- }
281
-
282
- function __metadata(metadataKey, metadataValue) {
283
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
284
- }
285
-
286
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
287
- var e = new Error(message);
288
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
289
- };
290
-
291
323
  const asyncLocalStorage = new AsyncLocalStorage();
292
324
 
293
325
  let AppSessionService = class AppSessionService {
@@ -25365,5 +25397,5 @@ AppSessionMiddleware = __decorate([
25365
25397
  Injectable()
25366
25398
  ], AppSessionMiddleware);
25367
25399
 
25368
- export { AUTHENTICATION_EVENTS_NAMESPACE, AppExceptionsFilterBase, AppHashingService, AppInMemorySettings, AppSessionMiddleware, AppSessionService, AuthenticationEmailTemplates, AuthenticationError, AuthenticationEvents, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationService, AwsEmailModule, AwsSesEmailTemplate, EmailService, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EntitySeeder, EventsService, InvalidCredentialsError, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestTypeOrmEntitySeeder, NestTypeOrmQueryBuilder, NestTypeOrmRepository, OperationTokenMismatchError, PLATFORM_EVENT_NAMESPACE, PlatformEvents, QueryBuilderBase, ReplicationMode, SendgridEmailModule, SendgridEmailTemplate, SortDirection, TrackingService, UserRegistrationError, WpAppInitializer, WpAwsSesEmailTemplate, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpEntitySeeder, WpEventsTracker, WpSendgridEmailTemplate, WpUserService, getLocalizedText, newUuid, renderHandlebarsTemplate };
25400
+ export { AUTHENTICATION_EVENTS_NAMESPACE, AppExceptionsFilterBase, AppHashingService, AppInMemorySettings, AppSessionMiddleware, AppSessionService, AuthenticationEmailTemplates, AuthenticationError, AuthenticationEvents, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationService, AwsEmailModule, AwsSesEmailTemplate, BooleanFacet, EmailService, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EntitySeeder, EventsService, InvalidCredentialsError, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestTypeOrmEntitySeeder, NestTypeOrmQueryBuilder, NestTypeOrmRepository, NumericFacet, OperationTokenMismatchError, PLATFORM_EVENT_NAMESPACE, PlatformEvents, QueryBuilderBase, ReplicationMode, SendgridEmailModule, SendgridEmailTemplate, SortDirection, StringFacet, TrackingService, UserRegistrationError, WpAppInitializer, WpAwsSesEmailTemplate, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpEntitySeeder, WpEventsTracker, WpSendgridEmailTemplate, WpUserService, getLocalizedText, newUuid, renderHandlebarsTemplate };
25369
25401
  //# sourceMappingURL=index.js.map