@cbm-common/cbm-types 0.0.196 → 0.0.198
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/additional-data-modal/additional-data-modal.d.ts +2 -0
- package/lib/components/advanced-item-search-modal/advanced-item-search-modal.d.ts +3 -3
- package/lib/components/advanced-item-search-modal/item-list/item-list.d.ts +20 -5
- package/lib/components/stock-by-warehouse/stock-by-warehouse.d.ts +1 -1
- package/lib/domain/models/item.domain.model.d.ts +72 -0
- package/lib/domain/models/provider.domain.model.d.ts +2 -0
- package/lib/domain/repositories/item.domain.repository.d.ts +1 -0
- package/lib/infrastructure/repositories/item.infrastructure.repository.d.ts +1 -0
- package/lib/infrastructure/services/item.infrastructure.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -11,6 +11,8 @@ export declare class CbmAdditionalDataModalComponent implements OnInit {
|
|
|
11
11
|
unitDiscountControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
12
12
|
priceWithIvaControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
13
13
|
unitPriceWithIvaControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
14
|
+
irbpnrItemControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
15
|
+
iceItemControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
|
|
14
16
|
ivaValue: import("@angular/core").InputSignal<number | undefined>;
|
|
15
17
|
iceValue: import("@angular/core").InputSignal<number | undefined>;
|
|
16
18
|
item: import("@angular/core").InputSignal<IItemInformation | null>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { DestroyRef } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
2
3
|
import { CbmAlternativeItemModel } from '../../domain/models/alternative-item.domain.model';
|
|
3
4
|
import { CbmItemModel } from '../../domain/models/item.domain.model';
|
|
4
5
|
import { CbmPriceListModel } from '../../domain/models/price-list.domain.model';
|
|
5
6
|
import { CbmItemDomainRepository } from '../../domain/repositories/item.domain.repository';
|
|
6
|
-
import { Subject } from 'rxjs';
|
|
7
7
|
export declare class CbmAdvancedItemSearchModal {
|
|
8
|
-
private itemRepository;
|
|
8
|
+
private readonly itemRepository;
|
|
9
9
|
private readonly destroyRef;
|
|
10
|
+
constructor(itemRepository: CbmItemDomainRepository, destroyRef: DestroyRef);
|
|
10
11
|
'modal-id': import("@angular/core").InputSignal<string>;
|
|
11
12
|
hideAlternativeItemsButton: import("@angular/core").InputSignal<boolean>;
|
|
12
13
|
hidePricelistFilter: import("@angular/core").InputSignal<boolean | undefined>;
|
|
@@ -25,7 +26,6 @@ export declare class CbmAdvancedItemSearchModal {
|
|
|
25
26
|
isVisible: Subject<boolean>;
|
|
26
27
|
isVisible$: import("@angular/core").WritableSignal<boolean>;
|
|
27
28
|
selectedItem: import("@angular/core").WritableSignal<CbmItemModel.ListResponse.Item | null>;
|
|
28
|
-
constructor(itemRepository: CbmItemDomainRepository, destroyRef: DestroyRef);
|
|
29
29
|
openModal(codeFilter?: string): void;
|
|
30
30
|
closeModal(): void;
|
|
31
31
|
sendItemInput(item: CbmItemModel.ListResponse.Item): void;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { DestroyRef, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { CbmProviderModel, CbmWarehouseModel } from '@cbm-common/cbm-types';
|
|
4
|
+
import { ListService } from '@cbm-common/data-access';
|
|
3
5
|
import { Subject } from 'rxjs';
|
|
4
6
|
import { CbmGroupModel } from '../../../domain/models/group.domain.model';
|
|
5
7
|
import { CbmItemModel } from '../../../domain/models/item.domain.model';
|
|
8
|
+
import { CbmManufacturerModel } from '../../../domain/models/manufacturer.domain.model';
|
|
6
9
|
import { CbmPriceListModel } from '../../../domain/models/price-list.domain.model';
|
|
7
10
|
import { CbmGroupDomainRepository } from '../../../domain/repositories/group.domain.repository';
|
|
8
11
|
import { CbmItemDomainRepository } from '../../../domain/repositories/item.domain.repository';
|
|
12
|
+
import { CbmManufacturerRepository } from '../../../domain/repositories/manufacturer.domain.repository';
|
|
9
13
|
import { CbmPriceListDomainRepository } from '../../../domain/repositories/price-list.domain.repository';
|
|
14
|
+
import { CbmWarehouseDomainRepository } from '../../../domain/repositories/warehouse.domain.repository';
|
|
15
|
+
import { CbmAuthReactiveService } from '../../../domain/services/auth-reactive.domain.service';
|
|
10
16
|
import { CbmNotificationService } from '../../../domain/services/notification/notification.service';
|
|
11
17
|
import { CbmModalConfirmComponent } from '../../modal-confirm/modal-confirm';
|
|
12
18
|
import { CbmTreeSelect } from '../../tree-select/types';
|
|
13
19
|
import { IPagination, TStatus } from '../types';
|
|
14
|
-
|
|
15
|
-
import { CbmManufacturerRepository } from '../../../domain/repositories/manufacturer.domain.repository';
|
|
16
|
-
interface IItemWithChecked extends CbmItemModel.ListResponse.Item {
|
|
20
|
+
interface IItemWithChecked extends CbmItemModel.AdvancedItemListResponse.Item {
|
|
17
21
|
checked: boolean;
|
|
18
22
|
}
|
|
19
23
|
export declare class ItemListComponent {
|
|
@@ -22,7 +26,9 @@ export declare class ItemListComponent {
|
|
|
22
26
|
private groupRepository;
|
|
23
27
|
private itemRepository;
|
|
24
28
|
private notificationService;
|
|
29
|
+
private readonly warehouseRepository;
|
|
25
30
|
private destroyRef;
|
|
31
|
+
private readonly authReactiveService;
|
|
26
32
|
modalConfirmRef: import("@angular/core").Signal<CbmModalConfirmComponent>;
|
|
27
33
|
hidePricelistFilter: import("@angular/core").InputSignal<boolean | undefined>;
|
|
28
34
|
priceList: import("@angular/core").InputSignal<string | CbmPriceListModel.ListResponse.Data | undefined>;
|
|
@@ -34,12 +40,12 @@ export declare class ItemListComponent {
|
|
|
34
40
|
addAllItems: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item[]>;
|
|
35
41
|
selectItem: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item>;
|
|
36
42
|
addSelectedPriceList: import("@angular/core").OutputEmitterRef<CbmPriceListModel.ListResponse.Data>;
|
|
37
|
-
checkAllItems: import("@angular/core").WritableSignal<boolean>;
|
|
38
43
|
isTableHide: import("@angular/core").WritableSignal<boolean>;
|
|
39
44
|
isFilterVisible: import("@angular/core").WritableSignal<boolean>;
|
|
40
45
|
categories: import("@angular/core").WritableSignal<CbmTreeSelect.Children<any>>;
|
|
41
46
|
items: import("@angular/core").WritableSignal<IItemWithChecked[]>;
|
|
42
47
|
checkedItems: import("@angular/core").WritableSignal<CbmItemModel.ListResponse.Item[]>;
|
|
48
|
+
rememberedItems: import("@angular/core").WritableSignal<IItemWithChecked[]>;
|
|
43
49
|
priceLists: import("@angular/core").WritableSignal<CbmPriceListModel.ListResponse.Data[] | null>;
|
|
44
50
|
manufacturers: import("@angular/core").WritableSignal<CbmManufacturerModel.ListResponse.Item[]>;
|
|
45
51
|
statusOfFetchCategories: import("@angular/core").WritableSignal<TStatus>;
|
|
@@ -50,6 +56,7 @@ export declare class ItemListComponent {
|
|
|
50
56
|
manufacturerPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
51
57
|
isSmallScreen: import("@angular/core").WritableSignal<boolean>;
|
|
52
58
|
computedItems: import("@angular/core").Signal<IItemWithChecked[]>;
|
|
59
|
+
areAllItemsChecked: import("@angular/core").Signal<boolean>;
|
|
53
60
|
subjectToSearchCategory$: Subject<string>;
|
|
54
61
|
subjectToSearchPriceLists$: Subject<string>;
|
|
55
62
|
subjectToSearchManufacturers$: Subject<string>;
|
|
@@ -60,8 +67,14 @@ export declare class ItemListComponent {
|
|
|
60
67
|
nameCode: FormControl<string | null>;
|
|
61
68
|
code: FormControl<string | null>;
|
|
62
69
|
checked: FormControl<boolean | null>;
|
|
70
|
+
warehouse: FormControl<CbmWarehouseModel.ListResponse.Data | null>;
|
|
71
|
+
provider: FormControl<CbmProviderModel.ListResponse.Item | null>;
|
|
72
|
+
provider_code: FormControl<string | null>;
|
|
73
|
+
manage_by: FormControl<CbmItemModel.EManageBy | null>;
|
|
63
74
|
}>;
|
|
64
|
-
constructor(priceListRepository: CbmPriceListDomainRepository, manufacturerRepository: CbmManufacturerRepository, groupRepository: CbmGroupDomainRepository, itemRepository: CbmItemDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef);
|
|
75
|
+
constructor(priceListRepository: CbmPriceListDomainRepository, manufacturerRepository: CbmManufacturerRepository, groupRepository: CbmGroupDomainRepository, itemRepository: CbmItemDomainRepository, notificationService: CbmNotificationService, warehouseRepository: CbmWarehouseDomainRepository, destroyRef: DestroyRef, authReactiveService: CbmAuthReactiveService);
|
|
76
|
+
company: import("@angular/core").Signal<import("../../../domain/models/auth-reactive.domain.model").CbmAuthReactiveModel.GlobalTokenData.Company>;
|
|
77
|
+
warehouses$: ListService<import("../../../domain/models/warehouse.domain.model").CbmWarehouseModel.ListResponse, import("../../../domain/models/warehouse.domain.model").CbmWarehouseModel.ListParams, import("../../../domain/models/warehouse.domain.model").CbmWarehouseModel.ListResponse.Data[]>;
|
|
65
78
|
ngOnInit(): void;
|
|
66
79
|
ngOnChanges(changes: SimpleChanges): void;
|
|
67
80
|
get priceListControl(): FormControl<CbmPriceListModel.ListResponse.Data | null>;
|
|
@@ -91,5 +104,7 @@ export declare class ItemListComponent {
|
|
|
91
104
|
getPriceWithoutIva(item: CbmItemModel.ListResponse.Item): string;
|
|
92
105
|
getPriceWithIva(item: CbmItemModel.ListResponse.Item): string;
|
|
93
106
|
_checkItem(item: IItemWithChecked): void;
|
|
107
|
+
removeRememberedItem(item: IItemWithChecked): void;
|
|
108
|
+
toggleCheckAll(): void;
|
|
94
109
|
}
|
|
95
110
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DestroyRef, ElementRef } from '@angular/core';
|
|
2
|
-
import { cbmStockWarehouseModalModel, IPagination, status } from './type';
|
|
3
2
|
import { CbmStockItemModel } from '../../domain/models/stock-item.domain.model';
|
|
4
3
|
import { CbmStockItemRepository } from '../../domain/repositories/stock-item.domain.repository';
|
|
5
4
|
import { CbmNotificationService } from '../../domain/services/notification/notification.service';
|
|
5
|
+
import { cbmStockWarehouseModalModel, IPagination, status } from './type';
|
|
6
6
|
export declare class StockByWarehouse {
|
|
7
7
|
private stockItemRepository;
|
|
8
8
|
private destroyRef;
|
|
@@ -204,6 +204,78 @@ export declare namespace CbmItemModel {
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
+
interface AdvancedItemListParams {
|
|
208
|
+
page: number;
|
|
209
|
+
size: number;
|
|
210
|
+
name_code_filter?: string;
|
|
211
|
+
category_id?: string;
|
|
212
|
+
manage_by?: string;
|
|
213
|
+
manufacturer_id?: string;
|
|
214
|
+
property_id?: string;
|
|
215
|
+
stock?: boolean;
|
|
216
|
+
warehouse_id?: string;
|
|
217
|
+
provider_code?: boolean;
|
|
218
|
+
provider_id?: string;
|
|
219
|
+
}
|
|
220
|
+
interface AdvancedItemListResponse {
|
|
221
|
+
success: boolean;
|
|
222
|
+
pageNum: number;
|
|
223
|
+
pageSize: number;
|
|
224
|
+
total: number;
|
|
225
|
+
pages: number;
|
|
226
|
+
items: AdvancedItemListResponse.Item[];
|
|
227
|
+
}
|
|
228
|
+
namespace AdvancedItemListResponse {
|
|
229
|
+
interface Item {
|
|
230
|
+
_id: string;
|
|
231
|
+
category_id: string;
|
|
232
|
+
unit_measure_id: string;
|
|
233
|
+
code: string;
|
|
234
|
+
barcode: string;
|
|
235
|
+
name: string;
|
|
236
|
+
manage_by: TManageBy;
|
|
237
|
+
enabled: boolean;
|
|
238
|
+
unit_measure_name: string;
|
|
239
|
+
unit_measure_code: string;
|
|
240
|
+
category_name: string;
|
|
241
|
+
created_at: number;
|
|
242
|
+
item_price: number;
|
|
243
|
+
item_price_name: string;
|
|
244
|
+
manufacturer_id?: string;
|
|
245
|
+
manufacturer_name?: string;
|
|
246
|
+
tax_iva_code: string;
|
|
247
|
+
tax_iva_percentage: number;
|
|
248
|
+
tax_iva_description: string;
|
|
249
|
+
item_base_price: number;
|
|
250
|
+
tax_iva: Item.TaxIva;
|
|
251
|
+
category: Item.Category;
|
|
252
|
+
company_id: string;
|
|
253
|
+
user_id: string;
|
|
254
|
+
tax_iva_id: string;
|
|
255
|
+
iva: number;
|
|
256
|
+
automatic_code: boolean;
|
|
257
|
+
not_apply_discount_group: boolean;
|
|
258
|
+
tax_ice: boolean;
|
|
259
|
+
tax_irbpn: boolean;
|
|
260
|
+
unit_measure_group_indicator: boolean;
|
|
261
|
+
deleted: boolean;
|
|
262
|
+
item_stock_company: number;
|
|
263
|
+
item_stock_warehouse: number;
|
|
264
|
+
observation?: string;
|
|
265
|
+
}
|
|
266
|
+
namespace Item {
|
|
267
|
+
interface TaxIva {
|
|
268
|
+
_id: string;
|
|
269
|
+
code: string;
|
|
270
|
+
percentage: number;
|
|
271
|
+
description: string;
|
|
272
|
+
}
|
|
273
|
+
interface Category {
|
|
274
|
+
_id: string;
|
|
275
|
+
name: string;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
207
279
|
interface GetOneResponse {
|
|
208
280
|
success: boolean;
|
|
209
281
|
data: GetOneResponse.Data;
|
|
@@ -120,6 +120,7 @@ export declare namespace CbmProviderModel {
|
|
|
120
120
|
updated_user?: string;
|
|
121
121
|
document_name_pay?: string;
|
|
122
122
|
foreign_tax_regime_type?: string;
|
|
123
|
+
payment_to_resident?: string;
|
|
123
124
|
payment_country_code?: string;
|
|
124
125
|
payment_country_name?: string;
|
|
125
126
|
payment_destination_country_code?: string;
|
|
@@ -239,6 +240,7 @@ export declare namespace CbmProviderModel {
|
|
|
239
240
|
payment_destination_country_name?: string;
|
|
240
241
|
double_taxation_treaty_applies?: boolean;
|
|
241
242
|
legal_withholding_applies?: string;
|
|
243
|
+
payment_to_resident?: string;
|
|
242
244
|
contacts?: UpdateManagementBody.Contact[];
|
|
243
245
|
delete_contacts?: string;
|
|
244
246
|
}
|
|
@@ -6,6 +6,7 @@ export declare class CbmItemDomainRepository implements ICbmItemInfrastructureRe
|
|
|
6
6
|
private service;
|
|
7
7
|
constructor(service: ICbmItemInfrastructureRepository);
|
|
8
8
|
list(params: CbmItemModel.ListParams): Observable<CbmItemModel.ListResponse>;
|
|
9
|
+
advancedItem(params: CbmItemModel.AdvancedItemListParams): Observable<CbmItemModel.AdvancedItemListResponse>;
|
|
9
10
|
getOne(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
10
11
|
getOneParameters(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
11
12
|
getOneByCode(code: string): Observable<CbmItemModel.GetOneByCodeResponse>;
|
|
@@ -3,6 +3,7 @@ import { CbmItemModel } from "../../domain/models/item.domain.model";
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
export interface ICbmItemInfrastructureRepository {
|
|
5
5
|
list(params: CbmItemModel.ListParams): Observable<CbmItemModel.ListResponse>;
|
|
6
|
+
advancedItem(params: CbmItemModel.AdvancedItemListParams): Observable<CbmItemModel.AdvancedItemListResponse>;
|
|
6
7
|
getOne(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
7
8
|
getOneParameters(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
8
9
|
getOneByCode(code: string): Observable<CbmItemModel.GetOneByCodeResponse>;
|
|
@@ -7,6 +7,7 @@ export declare class CbmItemInfrastructureService implements ICbmItemInfrastruct
|
|
|
7
7
|
constructor(http: HttpClient);
|
|
8
8
|
private readonly url;
|
|
9
9
|
list(params: CbmItemModel.ListParams): Observable<CbmItemModel.ListResponse>;
|
|
10
|
+
advancedItem(params: CbmItemModel.AdvancedItemListParams): Observable<CbmItemModel.AdvancedItemListResponse>;
|
|
10
11
|
getOne(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
11
12
|
getOneParameters(id: string): Observable<CbmItemModel.GetOneResponse>;
|
|
12
13
|
getOneByCode(code: string): Observable<CbmItemModel.GetOneByCodeResponse>;
|