@punks/backend-entity-manager 0.0.115 → 0.0.116

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.
@@ -1,4 +1,5 @@
1
1
  import { InstanceInitializeTemplate } from "./instance-initialize";
2
2
  import { OrganizationRegisterTemplate } from "./organization-register";
3
3
  import { TenantInitializeTemplate } from "./tenant-initialize";
4
- export declare const SetupTemplates: (typeof InstanceInitializeTemplate | typeof OrganizationRegisterTemplate | typeof TenantInitializeTemplate)[];
4
+ import { UserUpdateTemplate } from "./user-update";
5
+ export declare const SetupTemplates: (typeof InstanceInitializeTemplate | typeof OrganizationRegisterTemplate | typeof TenantInitializeTemplate | typeof UserUpdateTemplate)[];
@@ -1,13 +1,15 @@
1
1
  import { PipelineDefinition } from "../../../../../../../../types";
2
2
  import { AuthenticationService } from "../../../../../../extensions";
3
3
  import { IPipelineTemplateBuilder, NestPipelineTemplate } from "../../../../../../pipelines";
4
+ import { AppUserProfileEntityManager } from "../../../../entities/appUserProfiles/appUserProfile.manager";
4
5
  import { AppUserEntityManager } from "../../../../entities/appUsers/appUser.manager";
5
6
  import { AppAuthContext } from "../../../../infrastructure/authentication";
6
7
  import { UserUpdatePipelineInput } from "./models";
7
8
  export declare class UserUpdateTemplate extends NestPipelineTemplate<UserUpdatePipelineInput, void, AppAuthContext> {
8
9
  private readonly auth;
9
10
  private readonly users;
10
- constructor(auth: AuthenticationService, users: AppUserEntityManager);
11
+ private readonly userProfiles;
12
+ constructor(auth: AuthenticationService, users: AppUserEntityManager, userProfiles: AppUserProfileEntityManager);
11
13
  protected isAuthorized(context: AppAuthContext): boolean;
12
14
  protected buildTemplate(builder: IPipelineTemplateBuilder<UserUpdatePipelineInput, AppAuthContext>): PipelineDefinition<UserUpdatePipelineInput, void, AppAuthContext>;
13
15
  }
@@ -20,5 +20,5 @@ export type AppRole = {
20
20
  name: string;
21
21
  };
22
22
  export type RolesGuardOptions = {
23
- inheritRoles?: boolean;
23
+ exact?: boolean;
24
24
  };
package/dist/index.d.ts CHANGED
@@ -1448,7 +1448,7 @@ type AppRole = {
1448
1448
  name: string;
1449
1449
  };
1450
1450
  type RolesGuardOptions = {
1451
- inheritRoles?: boolean;
1451
+ exact?: boolean;
1452
1452
  };
1453
1453
 
1454
1454
  declare const Public: () => _nestjs_common.CustomDecorator<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.115",
3
+ "version": "0.0.116",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",