@cbm-common/cbm-types 0.0.126 → 0.0.127

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,8 +1,16 @@
1
1
  import { Location } from '@angular/common';
2
+ import { OnInit } from '@angular/core';
2
3
  import { Router } from '@angular/router';
3
- export declare class CbmForbidden {
4
+ import { CbmAuthService } from '../../domain/services/auth/auth.service';
5
+ export declare class CbmForbidden implements OnInit {
4
6
  private readonly location;
5
7
  private readonly router;
6
- constructor(location: Location, router: Router);
7
- goBack(): void;
8
+ private readonly authService;
9
+ constructor(location: Location, router: Router, authService: CbmAuthService);
10
+ 'permission-code': import("@angular/core").InputSignal<string | null | undefined>;
11
+ 'on-access': import("@angular/core").OutputEmitterRef<string>;
12
+ permissionCode: import("@angular/core").Signal<string | null | undefined>;
13
+ protected readonly access: Map<string, string>;
14
+ protected goBack(): void;
15
+ ngOnInit(): void;
8
16
  }
@@ -0,0 +1,13 @@
1
+ import { FormControl } from "@angular/forms";
2
+ import { CbmItemModel } from "./item.domain.model";
3
+ import { CbmServiceModel } from "./service.domain.model";
4
+ export declare namespace CbmCollectTaxesModel {
5
+ interface Controls {
6
+ itemControl?: FormControl<Partial<CbmItemModel.ListResponse.Item> | null>;
7
+ serviceControl?: FormControl<Partial<CbmServiceModel.ListResponse.Item> | null>;
8
+ discountControl?: FormControl<string>;
9
+ discountRateControl?: FormControl<string>;
10
+ amountControl: FormControl<string>;
11
+ priceControl: FormControl<string>;
12
+ }
13
+ }
@@ -108,14 +108,7 @@ export declare namespace CbmAuthData {
108
108
  user_role_id: string;
109
109
  selected: boolean;
110
110
  count_user_role: boolean;
111
- access: Roles.Access[];
112
- }
113
- namespace Roles {
114
- interface Access {
115
- code: string;
116
- writing: boolean;
117
- reading: boolean;
118
- }
111
+ access: Record<string, string>;
119
112
  }
120
113
  interface Module {
121
114
  _id: string;
@@ -10,7 +10,7 @@ export declare class CbmAuthService {
10
10
  private consoleTokenData?;
11
11
  private tokenInfoData?;
12
12
  private tokenConsoleInfoData?;
13
- userRol: Map<string, CbmAuthData.Roles.Access>;
13
+ userRol: Map<string, string>;
14
14
  set authToken(token: string);
15
15
  set userToken(token: string);
16
16
  set consoleToken(token: string);
@@ -0,0 +1,10 @@
1
+ import { DestroyRef } from "@angular/core";
2
+ import { CbmCollectTaxesModel } from "../../models/collect-taxes.domain.model";
3
+ export declare class CbmCollectTaxesDomainService {
4
+ private readonly destroyRef;
5
+ private readonly controls;
6
+ constructor(destroyRef: DestroyRef, controls: CbmCollectTaxesModel.Controls);
7
+ private taxes;
8
+ getTax(key: string): string | null;
9
+ private subObservers;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.126",
3
+ "version": "0.0.127",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {