@cbm-common/cbm-types 0.0.255 → 0.0.257

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,7 +1,15 @@
1
1
  import { FormControl } from '@angular/forms';
2
+ import { CbmCostCenterModel } from '../../../domain/models/cost-center.domain.model';
3
+ import { Subject } from 'rxjs';
2
4
  export declare class AdditionalDataComponent {
3
5
  replaceItemNameControl: import("@angular/core").InputSignal<FormControl<string | null>>;
4
6
  commentaryItemControl: import("@angular/core").InputSignal<FormControl<string | null>>;
7
+ costCenterControl: import("@angular/core").InputSignal<FormControl<CbmCostCenterModel.ListResponse.Data | null> | undefined>;
8
+ costCenterControlConfig: import("@angular/core").InputSignal<{
9
+ loading: boolean;
10
+ searchCostCenterInput$: Subject<string>;
11
+ data: CbmCostCenterModel.ListResponse.Data[];
12
+ } | undefined>;
5
13
  iceItemControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
6
14
  irbpnrItemControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
7
15
  unitDiscountControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
@@ -10,4 +18,9 @@ export declare class AdditionalDataComponent {
10
18
  onBlurUnitDiscount: import("@angular/core").OutputEmitterRef<void>;
11
19
  onBlurPriceWithIva: import("@angular/core").OutputEmitterRef<void>;
12
20
  onBlurUnitPriceWithIva: import("@angular/core").OutputEmitterRef<void>;
21
+ protected compareWithId(a: {
22
+ _id: string;
23
+ }, b: {
24
+ _id: string;
25
+ }): boolean;
13
26
  }
@@ -1,11 +1,19 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { IItemInformation } from './additional-data-modal.model';
4
+ import { CbmCostCenterModel } from '../../domain/models/cost-center.domain.model';
5
+ import { Subject } from 'rxjs';
4
6
  export declare class CbmAdditionalDataModalComponent {
5
7
  modalId: import("@angular/core").InputSignal<string>;
6
8
  isOpen: import("@angular/core").InputSignal<boolean | undefined>;
7
9
  replaceItemNameControl: import("@angular/core").InputSignal<FormControl<string | null>>;
8
10
  commentaryItemControl: import("@angular/core").InputSignal<FormControl<string | null>>;
11
+ costCenterControl: import("@angular/core").InputSignal<FormControl<CbmCostCenterModel.ListResponse.Data | null> | undefined>;
12
+ costCenterControlConfig: import("@angular/core").InputSignal<{
13
+ loading: boolean;
14
+ searchCostCenterInput$: Subject<string>;
15
+ data: CbmCostCenterModel.ListResponse.Data[];
16
+ } | undefined>;
9
17
  unitDiscountControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
10
18
  priceWithIvaControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
11
19
  unitPriceWithIvaControl: import("@angular/core").InputSignal<FormControl<string | null> | undefined>;
@@ -20,6 +20,7 @@ import { CbmModalConfirmComponent } from '../../modal-confirm/modal-confirm';
20
20
  import { StockByWarehouseModalCompModel } from '../../stock-by-warehouse-modal/stock-by-warehouse-modal.model';
21
21
  import { ConfigFilters, ITableColumnAdvancedItemSearchModal } from '../advanced-item-search-modal';
22
22
  import { IPagination, TStatus } from '../types';
23
+ import { Router } from '@angular/router';
23
24
  interface IItemWithChecked extends CbmItemModel.AdvancedItemListResponse.Item {
24
25
  checked: boolean;
25
26
  }
@@ -34,7 +35,8 @@ export declare class ItemListComponent implements OnInit {
34
35
  private destroyRef;
35
36
  private readonly warehouseRepository;
36
37
  private readonly authReactiveService;
37
- constructor(priceListRepository: CbmPriceListDomainRepository, manufacturerRepository: CbmManufacturerRepository, groupRepository: CbmGroupDomainRepository, itemRepository: CbmItemDomainRepository, providerRepository: CbmProviderRepository, notificationService: CbmNotificationService, tableConfigService: TableConfigurationService, destroyRef: DestroyRef, warehouseRepository: CbmWarehouseDomainRepository, authReactiveService: CbmAuthReactiveService);
38
+ private router;
39
+ constructor(priceListRepository: CbmPriceListDomainRepository, manufacturerRepository: CbmManufacturerRepository, groupRepository: CbmGroupDomainRepository, itemRepository: CbmItemDomainRepository, providerRepository: CbmProviderRepository, notificationService: CbmNotificationService, tableConfigService: TableConfigurationService, destroyRef: DestroyRef, warehouseRepository: CbmWarehouseDomainRepository, authReactiveService: CbmAuthReactiveService, router: Router);
38
40
  private readonly CACHE_TTL_MS;
39
41
  private searchCache;
40
42
  private getCacheKey;
@@ -129,6 +131,7 @@ export declare class ItemListComponent implements OnInit {
129
131
  removeRememberedItem(item: IItemWithChecked): void;
130
132
  /** Marca/desmarca todos los items visibles (no agregados aún) */
131
133
  toggleCheckAll(): void;
134
+ redirectToMovements(item: CbmItemModel.ListResponse.Item): void;
132
135
  newWindowWithItem(item: CbmItemModel.ListResponse.Item): void;
133
136
  }
134
137
  export {};
@@ -1,4 +1,5 @@
1
1
  import { DestroyRef, ElementRef } from '@angular/core';
2
+ import { Router } from '@angular/router';
2
3
  import { CbmStockItemModel } from '../../domain/models/stock-item.domain.model';
3
4
  import { CbmStockItemRepository } from '../../domain/repositories/stock-item.domain.repository';
4
5
  import { CbmNotificationService } from '../../domain/services/notification/notification.service';
@@ -7,6 +8,7 @@ export declare class StockByWarehouse {
7
8
  private stockItemRepository;
8
9
  private destroyRef;
9
10
  private notificationService;
11
+ private router;
10
12
  statusOfGetWarehouseStock: import("@angular/core").WritableSignal<status>;
11
13
  statusOfGetBatchStock: import("@angular/core").WritableSignal<status>;
12
14
  statusOfGetSerieStock: import("@angular/core").WritableSignal<status>;
@@ -23,8 +25,9 @@ export declare class StockByWarehouse {
23
25
  modalId: import("@angular/core").InputSignal<string>;
24
26
  data: import("@angular/core").InputSignal<cbmStockWarehouseModalModel.item | null>;
25
27
  viewModal: import("@angular/core").InputSignal<boolean>;
28
+ showActions: import("@angular/core").InputSignal<boolean>;
26
29
  modalRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
27
- constructor(stockItemRepository: CbmStockItemRepository, destroyRef: DestroyRef, notificationService: CbmNotificationService);
30
+ constructor(stockItemRepository: CbmStockItemRepository, destroyRef: DestroyRef, notificationService: CbmNotificationService, router: Router);
28
31
  getWarehouseStock(): void;
29
32
  getBatchStock(): void;
30
33
  getSerieStock(): void;
@@ -41,4 +44,7 @@ export declare class StockByWarehouse {
41
44
  onNextPageWarehouse(page: number): void;
42
45
  onPreviousPageWarehouse(page: number): void;
43
46
  onPageSizeChangeWarehouse(size: number): void;
47
+ navigateToProductMovement(): void;
48
+ navigateToCommittedProductMovement(): void;
49
+ navigateToTransitProductMovement(): void;
44
50
  }
@@ -41,12 +41,16 @@ export declare namespace CbmPrintSettingsModel {
41
41
  code: string;
42
42
  description: string;
43
43
  enabled: boolean;
44
+ beneficiary_type?: string;
45
+ description_dynamic?: string;
44
46
  }
45
47
  interface SignatureRide {
46
48
  _id: string;
47
49
  code: string;
48
50
  description: string;
49
51
  enabled: boolean;
52
+ beneficiary_type?: string;
53
+ description_dynamic?: string;
50
54
  }
51
55
  }
52
56
  interface SaveBody {
@@ -102,11 +106,15 @@ export declare namespace CbmPrintSettingsModel {
102
106
  code: string;
103
107
  description: string;
104
108
  enabled: boolean;
109
+ beneficiary_type?: string;
110
+ description_dynamic?: string;
105
111
  }
106
112
  interface SignatureRide {
107
113
  code: string;
108
114
  description: string;
109
115
  enabled: boolean;
116
+ beneficiary_type?: string;
117
+ description_dynamic?: string;
110
118
  }
111
119
  }
112
120
  interface GetOneResponse {
@@ -133,14 +141,27 @@ export declare namespace CbmPrintSettingsModel {
133
141
  enabled: boolean;
134
142
  order?: number;
135
143
  deleted: boolean;
136
- signature_data: any[];
137
- signature_data_ride: any[];
144
+ signature_data: Signature[];
145
+ signature_data_ride: SignatureDataRide[];
138
146
  created_at: number;
139
147
  created_user?: string;
140
148
  updated_at?: number;
141
149
  updated_user?: string;
142
150
  print_code?: string;
143
151
  }
152
+ interface Signature {
153
+ code: string;
154
+ description: string;
155
+ enabled: boolean;
156
+ beneficiary_type?: string;
157
+ description_dynamic?: string;
158
+ }
159
+ interface SignatureDataRide {
160
+ code: string;
161
+ description: string;
162
+ enabled: boolean;
163
+ _id: string;
164
+ }
144
165
  }
145
166
  interface ConfirmResponse {
146
167
  success: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.255",
3
+ "version": "0.0.257",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {