@cbm-common/cbm-types 0.0.134 → 0.0.136
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/domain/models/company-custom.domain.model.d.ts +1 -0
- package/lib/domain/models/stock-item.domain.model.d.ts +1 -0
- package/lib/domain/services/auth-reactive.domain.service.d.ts +1 -1
- package/lib/domain/services/item/find-item-code.domain.service.d.ts +15 -0
- package/lib/domain/services/item/find-price-type.domain.service.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CbmAuthService } from "@cbm-common/cbm-types";
|
|
2
1
|
import { Subject } from "rxjs";
|
|
3
2
|
import { CbmAuthReactiveModel } from "../models/auth-reactive.domain.model";
|
|
3
|
+
import { CbmAuthService } from "./auth/auth.service";
|
|
4
4
|
type TLocalStorageKey = CbmAuthReactiveModel.TLocalStorageKey;
|
|
5
5
|
export declare class CbmAuthReactiveService {
|
|
6
6
|
private readonly authService;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|