@cbm-common/cbm-types 0.0.28 → 0.0.30
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/confirmation-modal/confirmation-modal.d.ts +15 -0
- package/lib/components/stock-by-warehouse/directives/drop-down-menu.directive.d.ts +15 -0
- package/lib/components/stock-by-warehouse/stock-by-warehouse.d.ts +42 -0
- package/lib/components/stock-by-warehouse/type.d.ts +15 -0
- package/lib/domain/models/company-branch.domain.model.d.ts +163 -0
- package/lib/domain/models/stock-item.domain.model.d.ts +88 -0
- package/lib/domain/repositories/company-branch.domain.repository.d.ts +17 -0
- package/lib/domain/repositories/stock-item.domain.repository.d.ts +11 -0
- package/lib/infrastructure/repositories/compony-branch.infrastructure.repository.d.ts +14 -0
- package/lib/infrastructure/repositories/stock-item.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/services/company-branch.infrastructure.service.d.ts +18 -0
- package/lib/infrastructure/services/stock-item.infrastructure.service.d.ts +12 -0
- package/lib/remotes/components.remote.d.ts +2 -0
- package/lib/remotes/repositories/company-branch.repository.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +11 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
export declare class ConfirmationModal {
|
|
3
|
+
titleText: import("@angular/core").InputSignal<string>;
|
|
4
|
+
message: import("@angular/core").InputSignal<string>;
|
|
5
|
+
isOpen: import("@angular/core").InputSignal<boolean | undefined>;
|
|
6
|
+
confirm: import("@angular/core").OutputEmitterRef<void>;
|
|
7
|
+
cancel: import("@angular/core").OutputEmitterRef<void>;
|
|
8
|
+
open: import("@angular/core").OutputEmitterRef<void>;
|
|
9
|
+
close: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
+
modalRef: import("@angular/core").Signal<ElementRef<HTMLDialogElement> | undefined>;
|
|
11
|
+
constructor();
|
|
12
|
+
openModal(): void;
|
|
13
|
+
closeModal(): void;
|
|
14
|
+
handleCloseDialog(dialog: HTMLDialogElement): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef, Renderer2, AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
export declare class NavMenuDirective implements AfterViewInit, OnDestroy {
|
|
3
|
+
private el;
|
|
4
|
+
private renderer;
|
|
5
|
+
private buttons;
|
|
6
|
+
private contentSections;
|
|
7
|
+
private observer;
|
|
8
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
9
|
+
ngAfterViewInit(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
private initializeElements;
|
|
12
|
+
private observeDomChanges;
|
|
13
|
+
onClick(event: MouseEvent): void;
|
|
14
|
+
private setActiveButton;
|
|
15
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DestroyRef, ElementRef } from '@angular/core';
|
|
2
|
+
import { cbmStockWarehouseModalModel, IPagination, status } from './type';
|
|
3
|
+
import { CbmStockItemModel } from '../../domain/models/stock-item.domain.model';
|
|
4
|
+
import { CbmStockItemRepository } from '../../domain/repositories/stock-item.domain.repository';
|
|
5
|
+
import { CbmNotificationService } from '../../domain/services/notification/notification.service';
|
|
6
|
+
export declare class StockByWarehouse {
|
|
7
|
+
private stockItemRepository;
|
|
8
|
+
private destroyRef;
|
|
9
|
+
private notificationService;
|
|
10
|
+
statusOfGetWarehouseStock: import("@angular/core").WritableSignal<status>;
|
|
11
|
+
statusOfGetBatchStock: import("@angular/core").WritableSignal<status>;
|
|
12
|
+
statusOfGetSerieStock: import("@angular/core").WritableSignal<status>;
|
|
13
|
+
paginationWarehouseStock: import("@angular/core").WritableSignal<IPagination>;
|
|
14
|
+
paginationBatchStock: import("@angular/core").WritableSignal<IPagination>;
|
|
15
|
+
paginationSerieStock: import("@angular/core").WritableSignal<IPagination>;
|
|
16
|
+
dateWarehouse: import("@angular/core").WritableSignal<Date>;
|
|
17
|
+
dateSerie: import("@angular/core").WritableSignal<Date>;
|
|
18
|
+
dateBatch: import("@angular/core").WritableSignal<Date>;
|
|
19
|
+
warehouseStock: import("@angular/core").WritableSignal<CbmStockItemModel.listResponseWarehouse.item[]>;
|
|
20
|
+
batchStock: import("@angular/core").WritableSignal<CbmStockItemModel.ListResponseBatch.item[]>;
|
|
21
|
+
serieStock: import("@angular/core").WritableSignal<CbmStockItemModel.ListResponseSerie.item[]>;
|
|
22
|
+
modalId: import("@angular/core").InputSignal<string>;
|
|
23
|
+
data: import("@angular/core").InputSignal<cbmStockWarehouseModalModel.item | null>;
|
|
24
|
+
modalRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
25
|
+
constructor(stockItemRepository: CbmStockItemRepository, destroyRef: DestroyRef, notificationService: CbmNotificationService);
|
|
26
|
+
getWarehouseStock(): void;
|
|
27
|
+
getBatchStock(): void;
|
|
28
|
+
getSerieStock(): void;
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
onGoToPageBatch(page: number): void;
|
|
31
|
+
onNextPageBatch(page: number): void;
|
|
32
|
+
onPreviousPageBatch(page: number): void;
|
|
33
|
+
onPageSizeChangeBatch(size: number): void;
|
|
34
|
+
onGoToPageSerie(page: number): void;
|
|
35
|
+
onNextPageSerie(page: number): void;
|
|
36
|
+
onPreviousPageSerie(page: number): void;
|
|
37
|
+
onPageSizeChangeSerie(size: number): void;
|
|
38
|
+
onGoToPageWarehouse(page: number): void;
|
|
39
|
+
onNextPageWarehouse(page: number): void;
|
|
40
|
+
onPreviousPageWarehouse(page: number): void;
|
|
41
|
+
onPageSizeChangeWarehouse(size: number): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare namespace cbmStockWarehouseModalModel {
|
|
2
|
+
interface item {
|
|
3
|
+
code: string;
|
|
4
|
+
name: string;
|
|
5
|
+
_id: string;
|
|
6
|
+
manage_by: string;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export type status = 'init' | 'success' | 'failed' | 'loading';
|
|
10
|
+
export interface IPagination {
|
|
11
|
+
page: number;
|
|
12
|
+
pages: number;
|
|
13
|
+
records: number;
|
|
14
|
+
size: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export declare namespace CbmCompanyBranchModel {
|
|
2
|
+
interface ListResponse {
|
|
3
|
+
success: boolean;
|
|
4
|
+
data: ListResponse.Data[];
|
|
5
|
+
}
|
|
6
|
+
namespace ListResponse {
|
|
7
|
+
interface Data {
|
|
8
|
+
_id: string;
|
|
9
|
+
company_id?: string;
|
|
10
|
+
identification_number?: string;
|
|
11
|
+
trade_name?: string;
|
|
12
|
+
address?: string;
|
|
13
|
+
email?: string;
|
|
14
|
+
cellphone?: string;
|
|
15
|
+
phone?: string;
|
|
16
|
+
environment?: number;
|
|
17
|
+
enabled?: boolean;
|
|
18
|
+
created_at?: number;
|
|
19
|
+
logo?: string;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
interface GetOneResponse {
|
|
23
|
+
success: boolean;
|
|
24
|
+
data: GetOneResponse.Data;
|
|
25
|
+
}
|
|
26
|
+
namespace GetOneResponse {
|
|
27
|
+
interface Data {
|
|
28
|
+
_id: string;
|
|
29
|
+
company_id?: string;
|
|
30
|
+
identification_number?: string;
|
|
31
|
+
trade_name?: string;
|
|
32
|
+
address?: string;
|
|
33
|
+
email?: string;
|
|
34
|
+
cellphone?: string;
|
|
35
|
+
phone?: string;
|
|
36
|
+
environment?: number;
|
|
37
|
+
enabled?: boolean;
|
|
38
|
+
created_at?: number;
|
|
39
|
+
logo?: string;
|
|
40
|
+
disabled_reason?: string;
|
|
41
|
+
updated_at?: number;
|
|
42
|
+
reading?: boolean;
|
|
43
|
+
transaction?: boolean;
|
|
44
|
+
disabled_at?: number;
|
|
45
|
+
disabled_user?: string;
|
|
46
|
+
created_user?: string;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
interface SaveBody {
|
|
50
|
+
company_id?: string;
|
|
51
|
+
identification_number: string;
|
|
52
|
+
trade_name: string;
|
|
53
|
+
address: string;
|
|
54
|
+
email: string;
|
|
55
|
+
cellphone: string;
|
|
56
|
+
phone: string;
|
|
57
|
+
environment: number;
|
|
58
|
+
}
|
|
59
|
+
interface UpdateBody {
|
|
60
|
+
company_id?: string;
|
|
61
|
+
identification_number?: string;
|
|
62
|
+
cellphone?: string;
|
|
63
|
+
phone?: string;
|
|
64
|
+
environment?: number;
|
|
65
|
+
NIF?: string;
|
|
66
|
+
business_name?: string;
|
|
67
|
+
address?: string;
|
|
68
|
+
trade_name?: string;
|
|
69
|
+
default_account_plan?: boolean;
|
|
70
|
+
account_template_id?: string;
|
|
71
|
+
email?: string;
|
|
72
|
+
status?: string;
|
|
73
|
+
readonly?: boolean;
|
|
74
|
+
mandatory_accounting?: boolean;
|
|
75
|
+
withholding_agent?: boolean;
|
|
76
|
+
special_taxpayer?: boolean;
|
|
77
|
+
artisanal_qualification?: boolean;
|
|
78
|
+
withholding_agent_number?: string;
|
|
79
|
+
special_taxpayer_number?: string;
|
|
80
|
+
artisanal_qualification_number?: string;
|
|
81
|
+
manager_name?: string;
|
|
82
|
+
accountant_name?: string;
|
|
83
|
+
regime_id?: string;
|
|
84
|
+
regime_code?: string;
|
|
85
|
+
regime_name?: string;
|
|
86
|
+
branches?: BranchParams.Data[];
|
|
87
|
+
password_signature?: string;
|
|
88
|
+
}
|
|
89
|
+
namespace BranchParams {
|
|
90
|
+
interface Data {
|
|
91
|
+
identification_number?: string;
|
|
92
|
+
trade_name?: string;
|
|
93
|
+
address?: string;
|
|
94
|
+
email?: string;
|
|
95
|
+
cellphone?: string;
|
|
96
|
+
phone?: string;
|
|
97
|
+
environment?: number;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
interface ChangeStatusBody {
|
|
101
|
+
enabled: boolean;
|
|
102
|
+
disabled_reason?: string;
|
|
103
|
+
}
|
|
104
|
+
interface ConfirmResponse {
|
|
105
|
+
success: boolean;
|
|
106
|
+
message: string;
|
|
107
|
+
data?: any;
|
|
108
|
+
}
|
|
109
|
+
interface ListPaginatedParams {
|
|
110
|
+
page: number;
|
|
111
|
+
size: number;
|
|
112
|
+
company_id: string;
|
|
113
|
+
enabled?: boolean;
|
|
114
|
+
}
|
|
115
|
+
interface ListPaginatedResponse {
|
|
116
|
+
success: boolean;
|
|
117
|
+
pageNum: number;
|
|
118
|
+
pageSize: number;
|
|
119
|
+
pages: number;
|
|
120
|
+
total: number;
|
|
121
|
+
items: ListPaginatedResponse.Items[];
|
|
122
|
+
used_branch_read: number;
|
|
123
|
+
used_branch_transactional: number;
|
|
124
|
+
}
|
|
125
|
+
namespace ListPaginatedResponse {
|
|
126
|
+
interface Items {
|
|
127
|
+
_id: string;
|
|
128
|
+
company_id: string;
|
|
129
|
+
identification_number: string;
|
|
130
|
+
trade_name: string;
|
|
131
|
+
address: string;
|
|
132
|
+
email: string;
|
|
133
|
+
cellphone: string;
|
|
134
|
+
phone: string;
|
|
135
|
+
environment: number;
|
|
136
|
+
logo: string;
|
|
137
|
+
enabled: boolean;
|
|
138
|
+
created_at: number;
|
|
139
|
+
disabled_reason?: string;
|
|
140
|
+
updated_at: number;
|
|
141
|
+
created_user?: string;
|
|
142
|
+
updated_user?: string;
|
|
143
|
+
reading?: boolean;
|
|
144
|
+
transaction?: boolean;
|
|
145
|
+
disabled_at?: number;
|
|
146
|
+
disabled_user?: string;
|
|
147
|
+
enabled_at?: number;
|
|
148
|
+
enabled_user?: string;
|
|
149
|
+
company_logo?: boolean;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
interface ChangeMode {
|
|
153
|
+
reading?: boolean;
|
|
154
|
+
transaction?: boolean;
|
|
155
|
+
}
|
|
156
|
+
interface ChangeProduction {
|
|
157
|
+
environment: number;
|
|
158
|
+
}
|
|
159
|
+
interface ChangeCompanyLogo {
|
|
160
|
+
companyId: string;
|
|
161
|
+
companyBranchId: string;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export declare namespace CbmStockItemModel {
|
|
2
|
+
interface listParams {
|
|
3
|
+
page: number;
|
|
4
|
+
size: number;
|
|
5
|
+
item_id: string;
|
|
6
|
+
}
|
|
7
|
+
interface listResponseWarehouse {
|
|
8
|
+
success: boolean;
|
|
9
|
+
pageNum: number;
|
|
10
|
+
pageSize: number;
|
|
11
|
+
pages: number;
|
|
12
|
+
total: number;
|
|
13
|
+
items: listResponseWarehouse.item[];
|
|
14
|
+
}
|
|
15
|
+
namespace listResponseWarehouse {
|
|
16
|
+
interface item {
|
|
17
|
+
_id: string;
|
|
18
|
+
company_id: string;
|
|
19
|
+
warehouse_id: string;
|
|
20
|
+
item_id: string;
|
|
21
|
+
in_stock: number;
|
|
22
|
+
committed: number;
|
|
23
|
+
ordered: number;
|
|
24
|
+
created_at: number;
|
|
25
|
+
warehouse_name: string;
|
|
26
|
+
warehouse_code: string;
|
|
27
|
+
item_warehouse: item.ItemWarehouse;
|
|
28
|
+
}
|
|
29
|
+
namespace item {
|
|
30
|
+
interface ItemWarehouse {
|
|
31
|
+
_id: string;
|
|
32
|
+
item_id: string;
|
|
33
|
+
warehouse_id: string;
|
|
34
|
+
locked: boolean;
|
|
35
|
+
min_stock: null | number;
|
|
36
|
+
max_stock: null | number;
|
|
37
|
+
required_stock: null | number;
|
|
38
|
+
location: null | number;
|
|
39
|
+
created_user: string;
|
|
40
|
+
recount: boolean;
|
|
41
|
+
created_at: number;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
interface ListResponseBatch {
|
|
46
|
+
success: boolean;
|
|
47
|
+
pageNum: number;
|
|
48
|
+
pageSize: number;
|
|
49
|
+
pages: number;
|
|
50
|
+
total: number;
|
|
51
|
+
items: ListResponseBatch.item[];
|
|
52
|
+
}
|
|
53
|
+
namespace ListResponseBatch {
|
|
54
|
+
interface item {
|
|
55
|
+
company_id: string;
|
|
56
|
+
warehouse_id: string;
|
|
57
|
+
item_id: string;
|
|
58
|
+
in_stock: number;
|
|
59
|
+
warehouse_name: string;
|
|
60
|
+
batch_id: string;
|
|
61
|
+
batch_code: string;
|
|
62
|
+
batch_date_factory: number;
|
|
63
|
+
batch_date_expired: number;
|
|
64
|
+
batch_date_admission: number;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
interface ListResponseSerie {
|
|
68
|
+
success: boolean;
|
|
69
|
+
pageNum: number;
|
|
70
|
+
pageSize: number;
|
|
71
|
+
pages: number;
|
|
72
|
+
total: number;
|
|
73
|
+
items: ListResponseSerie.item[];
|
|
74
|
+
}
|
|
75
|
+
namespace ListResponseSerie {
|
|
76
|
+
interface item {
|
|
77
|
+
company_id: string;
|
|
78
|
+
warehouse_id: string;
|
|
79
|
+
item_id: string;
|
|
80
|
+
in_stock: number;
|
|
81
|
+
warehouse_name: string;
|
|
82
|
+
series_id: string;
|
|
83
|
+
series_series: string;
|
|
84
|
+
series_date_factory: number;
|
|
85
|
+
series_date_admission: number;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ICbmCompanyBranchRepository } from "../../infrastructure/repositories/compony-branch.infrastructure.repository";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { CbmCompanyBranchModel } from "../models/company-branch.domain.model";
|
|
4
|
+
export declare class CbmCompanyBranchRepository implements ICbmCompanyBranchRepository {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(service: ICbmCompanyBranchRepository);
|
|
7
|
+
list(companyId: string): Observable<CbmCompanyBranchModel.ListResponse>;
|
|
8
|
+
getOne(id: string): Observable<CbmCompanyBranchModel.GetOneResponse>;
|
|
9
|
+
save(data: CbmCompanyBranchModel.SaveBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
10
|
+
update(id: string, data: CbmCompanyBranchModel.UpdateBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
11
|
+
changeStatus(id: string, data: CbmCompanyBranchModel.ChangeStatusBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
12
|
+
changeMode(id: string, data: CbmCompanyBranchModel.ChangeMode): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
13
|
+
uploadLogo(id: string, formData: FormData): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
14
|
+
listPaginated(params: CbmCompanyBranchModel.ListPaginatedParams): Observable<CbmCompanyBranchModel.ListPaginatedResponse>;
|
|
15
|
+
changeProduction(id: string, data: CbmCompanyBranchModel.ChangeProduction): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
16
|
+
changeCompanyLogo(params: CbmCompanyBranchModel.ChangeCompanyLogo): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { ICbmStockItemRepository } from "../../infrastructure/repositories/stock-item.infrastructure.repository";
|
|
3
|
+
import { CbmStockItemService } from "../../infrastructure/services/stock-item.infrastructure.service";
|
|
4
|
+
import { CbmStockItemModel } from "../models/stock-item.domain.model";
|
|
5
|
+
export declare class CbmStockItemRepository implements ICbmStockItemRepository {
|
|
6
|
+
private service;
|
|
7
|
+
constructor(service: CbmStockItemService);
|
|
8
|
+
warehouseStock(params: CbmStockItemModel.listParams): Observable<CbmStockItemModel.listResponseWarehouse>;
|
|
9
|
+
batchStock(params: CbmStockItemModel.listParams): Observable<CbmStockItemModel.ListResponseBatch>;
|
|
10
|
+
serieStock(params: CbmStockItemModel.listParams): Observable<CbmStockItemModel.ListResponseSerie>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmCompanyBranchModel } from "../../domain/models/company-branch.domain.model";
|
|
3
|
+
export interface ICbmCompanyBranchRepository {
|
|
4
|
+
list(companyId: string): Observable<CbmCompanyBranchModel.ListResponse>;
|
|
5
|
+
getOne(id: string): Observable<CbmCompanyBranchModel.GetOneResponse>;
|
|
6
|
+
save(data: CbmCompanyBranchModel.SaveBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
7
|
+
update(id: string, data: CbmCompanyBranchModel.UpdateBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
8
|
+
changeStatus(id: string, data: CbmCompanyBranchModel.ChangeStatusBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
9
|
+
changeMode(id: string, data: CbmCompanyBranchModel.ChangeMode): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
10
|
+
uploadLogo(id: string, formData: FormData): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
11
|
+
listPaginated(params: CbmCompanyBranchModel.ListPaginatedParams): Observable<CbmCompanyBranchModel.ListPaginatedResponse>;
|
|
12
|
+
changeProduction(id: string, data: CbmCompanyBranchModel.ChangeProduction): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
13
|
+
changeCompanyLogo(params: CbmCompanyBranchModel.ChangeCompanyLogo): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmStockItemModel } from "../../domain/models/stock-item.domain.model";
|
|
3
|
+
export interface ICbmStockItemRepository {
|
|
4
|
+
warehouseStock(params: CbmStockItemModel.listParams): Observable<CbmStockItemModel.listResponseWarehouse>;
|
|
5
|
+
batchStock(params: CbmStockItemModel.listParams): Observable<CbmStockItemModel.ListResponseBatch>;
|
|
6
|
+
serieStock(params: CbmStockItemModel.listParams): Observable<CbmStockItemModel.ListResponseSerie>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { CbmCompanyBranchModel } from "../../domain/models/company-branch.domain.model";
|
|
4
|
+
export declare class CbmCompanyBranchService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
list(companyId: string): Observable<CbmCompanyBranchModel.ListResponse>;
|
|
9
|
+
getOne(id: string): Observable<CbmCompanyBranchModel.GetOneResponse>;
|
|
10
|
+
save(data: CbmCompanyBranchModel.SaveBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
11
|
+
update(id: string, data: CbmCompanyBranchModel.UpdateBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
12
|
+
changeStatus(id: string, data: CbmCompanyBranchModel.ChangeStatusBody): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
13
|
+
changeMode(id: string, data: CbmCompanyBranchModel.ChangeMode): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
14
|
+
uploadLogo(id: string, formData: FormData): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
15
|
+
listPaginated(params: CbmCompanyBranchModel.ListPaginatedParams): Observable<CbmCompanyBranchModel.ListPaginatedResponse>;
|
|
16
|
+
changeProduction(id: string, data: CbmCompanyBranchModel.ChangeProduction): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
17
|
+
changeCompanyLogo(data: CbmCompanyBranchModel.ChangeCompanyLogo): Observable<CbmCompanyBranchModel.ConfirmResponse>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { CbmStockItemModel } from "../../domain/models/stock-item.domain.model";
|
|
4
|
+
export declare class CbmStockItemService {
|
|
5
|
+
private readonly http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly urlStock;
|
|
8
|
+
private readonly urlStockBatchSeries;
|
|
9
|
+
warehouseStock(params: CbmStockItemModel.listParams): Observable<CbmStockItemModel.listResponseWarehouse>;
|
|
10
|
+
batchStock(params: CbmStockItemModel.listParams): Observable<CbmStockItemModel.ListResponseBatch>;
|
|
11
|
+
serieStock(params: CbmStockItemModel.listParams): Observable<CbmStockItemModel.ListResponseSerie>;
|
|
12
|
+
}
|
|
@@ -12,3 +12,5 @@ export { CbmJsonModalComponent } from '../components/json-modal/json-modal';
|
|
|
12
12
|
export { CbmPaginationNavComponent } from '../components/pagination-nav/pagination-nav';
|
|
13
13
|
export { CbmTreeSelectComponent } from '../components/tree-select/tree-select';
|
|
14
14
|
export { CbmViewReportComponent } from '../components/view-reports/view-reports';
|
|
15
|
+
export { ConfirmationModal } from '../components/confirmation-modal/confirmation-modal';
|
|
16
|
+
export { StockByWarehouse } from '../components/stock-by-warehouse/stock-by-warehouse';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -226,3 +226,14 @@ export * from './lib/domain/models/sale-price.domain.model';
|
|
|
226
226
|
// #region view reports component
|
|
227
227
|
export * from './lib/components/view-reports/model';
|
|
228
228
|
export * from './lib/components/view-reports/view-reports';
|
|
229
|
+
|
|
230
|
+
// #region confirmation-modal component
|
|
231
|
+
export * from './lib/components/confirmation-modal/confirmation-modal';
|
|
232
|
+
|
|
233
|
+
// #region stock-by-warehouse component
|
|
234
|
+
export * from './lib/components/stock-by-warehouse/stock-by-warehouse';
|
|
235
|
+
export * from './lib/components/stock-by-warehouse/type';
|
|
236
|
+
|
|
237
|
+
// #region company branch repository
|
|
238
|
+
export * from './lib/domain/repositories/company-branch.domain.repository';
|
|
239
|
+
export * from './lib/domain/models/company-branch.domain.model';
|