@cbm-common/cbm-types 0.0.136 → 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.
- package/lib/components/branch-card/branch-card.d.ts +5 -4
- package/lib/domain/services/auth-reactive.domain.service.d.ts +1 -3
- package/package.json +1 -1
- package/lib/domain/services/item/find-item-code.domain.service.d.ts +0 -15
- package/lib/domain/services/item/find-price-type.domain.service.d.ts +0 -12
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
2
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -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
|
|
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,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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DestroyRef } from "@angular/core";
|
|
2
|
-
import { FormControl } from "@angular/forms";
|
|
3
|
-
import { IGetPriceTypeParams, IPriceTypeExec } from "../../../types/price-type.fn";
|
|
4
|
-
import { CbmSalePriceModel } from "../../models/sale-price.domain.model";
|
|
5
|
-
export declare class FindPriceTypeService {
|
|
6
|
-
private readonly destroyRef;
|
|
7
|
-
private readonly controlPriceType;
|
|
8
|
-
private readonly controls;
|
|
9
|
-
private readonly params;
|
|
10
|
-
constructor(destroyRef: DestroyRef, controlPriceType: FormControl<Partial<CbmSalePriceModel.GetResponse.Data> | null>, controls: Omit<IPriceTypeExec, 'controlPriceType'>, params: IGetPriceTypeParams);
|
|
11
|
-
subObserver(): void;
|
|
12
|
-
}
|