@punks/backend-entity-manager 0.0.56 → 0.0.60

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.
@@ -23,6 +23,7 @@ export declare class UserLoginResponse {
23
23
  }
24
24
  export declare class UserRegisterRequest {
25
25
  email: string;
26
+ userName: string;
26
27
  password: string;
27
28
  data: UserRegistrationData;
28
29
  userContext: UserContext;
@@ -1 +1,4 @@
1
- export declare const WpAppInitializer: () => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
1
+ export interface WpAppInitializerProps {
2
+ priority?: number;
3
+ }
4
+ export declare const WpAppInitializer: (props?: WpAppInitializerProps) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
@@ -6,6 +6,7 @@ export type UserRegisterCallbackTemplate = {
6
6
  };
7
7
  export interface UserRegistrationInput<TUserRegistrationInfo, TUserContext extends IUserContext> {
8
8
  email: string;
9
+ userName: string;
9
10
  password: string;
10
11
  registrationInfo: TUserRegistrationInfo;
11
12
  callback: UserRegisterCallbackTemplate;
@@ -2,7 +2,6 @@ import { EventEmitter2 } from "@nestjs/event-emitter";
2
2
  import { IEventEmitter } from "../../../../abstractions/events";
3
3
  export declare class NestEventEmitter implements IEventEmitter {
4
4
  private eventEmitter;
5
- constructor();
6
- setEmitter(eventEmitter: EventEmitter2): void;
5
+ constructor(eventEmitter: EventEmitter2);
7
6
  emit(event: string, ...args: any[]): Promise<void>;
8
7
  }
package/dist/index.d.ts CHANGED
@@ -580,7 +580,10 @@ interface EntityProps {
580
580
  }
581
581
  declare const WpEntity: (name: string, props?: Omit<EntityProps, "name">) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
582
582
 
583
- declare const WpAppInitializer: () => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
583
+ interface WpAppInitializerProps {
584
+ priority?: number;
585
+ }
586
+ declare const WpAppInitializer: (props?: WpAppInitializerProps) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
584
587
 
585
588
  interface EntityRepositoryProps {
586
589
  entityName: string;
@@ -918,6 +921,7 @@ type UserRegisterCallbackTemplate = {
918
921
  };
919
922
  interface UserRegistrationInput<TUserRegistrationInfo, TUserContext extends IUserContext> {
920
923
  email: string;
924
+ userName: string;
921
925
  password: string;
922
926
  registrationInfo: TUserRegistrationInfo;
923
927
  callback: UserRegisterCallbackTemplate;
@@ -1306,8 +1310,7 @@ declare class SendgridEmailModule {
1306
1310
 
1307
1311
  declare class NestEventEmitter implements IEventEmitter {
1308
1312
  private eventEmitter;
1309
- constructor();
1310
- setEmitter(eventEmitter: EventEmitter2): void;
1313
+ constructor(eventEmitter: EventEmitter2);
1311
1314
  emit(event: string, ...args: any[]): Promise<void>;
1312
1315
  }
1313
1316
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.56",
3
+ "version": "0.0.60",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -35,7 +35,7 @@
35
35
  "@nestjs/swagger": "^7.1.2",
36
36
  "@nestjs/testing": "^10.1.0",
37
37
  "@nestjs/typeorm": "^10.0.0",
38
- "@punks/backend-core": "^0.0.13",
38
+ "@punks/backend-core": "^0.0.14",
39
39
  "@rollup/plugin-commonjs": "^21.0.1",
40
40
  "@rollup/plugin-json": "^6.0.0",
41
41
  "@rollup/plugin-node-resolve": "^13.0.6",
@@ -78,7 +78,7 @@
78
78
  "@nestjs/swagger": "^7.1.2",
79
79
  "@nestjs/testing": "^10.1.0",
80
80
  "@nestjs/typeorm": "^10.0.0",
81
- "@punks/backend-core": "0.0.13",
81
+ "@punks/backend-core": "0.0.14",
82
82
  "@sendgrid/mail": "^7.7.0",
83
83
  "bcrypt": "^5.1.0",
84
84
  "typeorm": "^0.3.17"