@cbm-common/cbm-types 0.0.135 → 0.0.137

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,15 +1,16 @@
1
1
  import { Router, ActivatedRoute } from '@angular/router';
2
- import { CbmAuthService } from '../../domain/services/auth/auth.service';
2
+ import { CbmAuthReactiveService } from '../../domain/services/auth-reactive.domain.service';
3
3
  export declare class CbmBranchCardComponent {
4
- private readonly authService;
5
4
  private readonly router;
6
5
  private readonly route;
7
- constructor(authService: CbmAuthService, router: Router, route: ActivatedRoute);
6
+ private readonly authReactiveService;
7
+ constructor(router: Router, route: ActivatedRoute, authReactiveService: CbmAuthReactiveService);
8
8
  'route-change': import("@angular/core").InputSignal<string | string[]>;
9
9
  'change-branch': import("@angular/core").InputSignal<boolean>;
10
10
  routeChange: import("@angular/core").Signal<string | string[]>;
11
11
  changeBranch: import("@angular/core").Signal<boolean>;
12
12
  expaded: import("@angular/core").WritableSignal<boolean>;
13
- companyBranch: import("../../domain/services/auth/auth.model").CbmAuthData.CompanyBranchData;
13
+ globalData: import("@angular/core").Signal<import("../../domain/models/auth-reactive.domain.model").CbmAuthReactiveModel.GlobalTokenData | null>;
14
+ companyBranch: import("@angular/core").Signal<import("../../domain/models/auth-reactive.domain.model").CbmAuthReactiveModel.GlobalTokenData.CompanyBranchData>;
14
15
  changeRedirect(): void;
15
16
  }
@@ -25,6 +25,7 @@ export declare namespace CbmStockItemModel {
25
25
  warehouse_name: string;
26
26
  warehouse_code: string;
27
27
  item_warehouse: item.ItemWarehouse;
28
+ available_stock: number;
28
29
  }
29
30
  namespace item {
30
31
  interface ItemWarehouse {
@@ -1,7 +1,6 @@
1
1
  import { Subject } from "rxjs";
2
2
  import { CbmAuthReactiveModel } from "../models/auth-reactive.domain.model";
3
3
  import { CbmAuthService } from "./auth/auth.service";
4
- type TLocalStorageKey = CbmAuthReactiveModel.TLocalStorageKey;
5
4
  export declare class CbmAuthReactiveService {
6
5
  private readonly authService;
7
6
  constructor(authService: CbmAuthService);
@@ -10,7 +9,7 @@ export declare class CbmAuthReactiveService {
10
9
  private userTokenData;
11
10
  private globalTokenData;
12
11
  private consoleTokenData;
13
- tokens: Record<TLocalStorageKey, string | null>;
12
+ private tokens;
14
13
  userData: import("@angular/core").Signal<CbmAuthReactiveModel.UserTokenData | null>;
15
14
  globalData: import("@angular/core").Signal<CbmAuthReactiveModel.GlobalTokenData | null>;
16
15
  consoleData: import("@angular/core").Signal<CbmAuthReactiveModel.ConsoleTokenData | null>;
@@ -21,4 +20,3 @@ export declare class CbmAuthReactiveService {
21
20
  private loadTokensFromStorage;
22
21
  private decodeToken;
23
22
  }
24
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.135",
3
+ "version": "0.0.137",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
@@ -1,15 +0,0 @@
1
- import { DestroyRef } from "@angular/core";
2
- import { FormControl } from "@angular/forms";
3
- import { CbmItemModel } from "@cbm-common/cbm-types";
4
- import { CbmItemDomainRepository } from "../../repositories/item.domain.repository";
5
- import { CbmNotificationService } from "../notification/notification.service";
6
- export declare class FindItemCodeService {
7
- private readonly destroyRef;
8
- private readonly itemRepository;
9
- private readonly notificationService;
10
- private readonly codeControl;
11
- private readonly itemControl;
12
- constructor(destroyRef: DestroyRef, itemRepository: CbmItemDomainRepository, notificationService: CbmNotificationService, codeControl: FormControl<string>, itemControl: FormControl<Partial<CbmItemModel.ListResponse.Item> | null>);
13
- loading: import("@angular/core").WritableSignal<boolean>;
14
- findCode(code?: string): Promise<void>;
15
- }