@cbm-common/cbm-types 0.0.165 → 0.0.167
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/add-down-payment/add-down-payment.d.ts +1 -1
- package/lib/components/advanced-account-search-modal/advanced-account-search-modal.d.ts +5 -6
- package/lib/components/advanced-account-search-modal/animations.d.ts +2 -0
- package/lib/components/advanced-item-search-modal/advanced-item-search-modal.d.ts +2 -0
- package/lib/components/advanced-item-search-modal/item-list/item-list.d.ts +0 -1
- package/lib/components/client-card/client-card.component.d.ts +2 -1
- package/lib/components/item-details/item-details.d.ts +8 -5
- package/lib/components/item-details/item-details.types.d.ts +3 -2
- package/lib/components/pms-add-charge/pms-add-charge.d.ts +3 -1
- package/lib/components/service-details/service-details.types.d.ts +2 -2
- package/lib/components/stock-by-warehouse-modal/stock-by-warehouse-modal.model.d.ts +1 -1
- package/lib/domain/models/credit-request.model.d.ts +1 -1
- package/lib/domain/models/document-type.model.d.ts +17 -0
- package/lib/domain/models/item.domain.model.d.ts +1 -0
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +91 -0
- package/lib/domain/repositories/document-type.domain.repository.d.ts +3 -2
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +8 -0
- package/lib/domain/services/item/find-item-by-code.domain.service.d.ts +1 -1
- package/lib/domain/services/relationship-movements.config.d.ts +1 -1
- package/lib/infrastructure/repositories/document-type.infrastructure.repository.d.ts +2 -1
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/document-type.infrastructure.service.d.ts +3 -2
- package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +9 -0
- 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
|
@@ -113,7 +113,7 @@ export declare class CbmAddDownPayment {
|
|
|
113
113
|
statusOfFectchAccounts: import("@angular/core").WritableSignal<TStatus>;
|
|
114
114
|
statusOfOperationNumber: import("@angular/core").WritableSignal<TStatus>;
|
|
115
115
|
now: Date;
|
|
116
|
-
relationshioMovementsMethods: Partial<Record<ECollectionNames, import("
|
|
116
|
+
relationshioMovementsMethods: Partial<Record<ECollectionNames, import("../relationship-movements/relationship-movements.model").CbmRelationShipMovementsModel.IConfigMethods>>;
|
|
117
117
|
isRelationshioMovementsModalShown: import("@angular/core").WritableSignal<boolean>;
|
|
118
118
|
hasRelationshipMovements: import("@angular/core").WritableSignal<boolean>;
|
|
119
119
|
saveOption: import("@angular/core").WritableSignal<TSaveOptions | null>;
|
|
@@ -19,8 +19,7 @@ export declare class CbmAdvancedAccountSearchModal implements OnInit {
|
|
|
19
19
|
isOpen: import("@angular/core").InputSignal<boolean | undefined>;
|
|
20
20
|
addedAccountsIds: import("@angular/core").InputSignal<string[]>;
|
|
21
21
|
hideTable: import("@angular/core").InputSignal<boolean>;
|
|
22
|
-
|
|
23
|
-
nameCodeFilter: import("@angular/core").InputSignal<string | undefined>;
|
|
22
|
+
hasCodeFilterFromFather: import("@angular/core").WritableSignal<string | undefined>;
|
|
24
23
|
isOnlyOneAccountCoincidence: import("@angular/core").OutputEmitterRef<CbmAccountModel.ListPaginatedResponse.Item | undefined>;
|
|
25
24
|
addAccount: import("@angular/core").OutputEmitterRef<CbmAccountModel.ListPaginatedResponse.Item>;
|
|
26
25
|
addAllAccounts: import("@angular/core").OutputEmitterRef<CbmAccountModel.ListPaginatedResponse.Item[]>;
|
|
@@ -37,15 +36,15 @@ export declare class CbmAdvancedAccountSearchModal implements OnInit {
|
|
|
37
36
|
modalId: import("@angular/core").Signal<string>;
|
|
38
37
|
computedAccounts: import("@angular/core").Signal<IAccountWithChecked[]>;
|
|
39
38
|
isVisible: Subject<boolean>;
|
|
39
|
+
isVisible$: import("@angular/core").WritableSignal<boolean>;
|
|
40
40
|
selectedAccount: import("@angular/core").WritableSignal<CbmAccountModel.ListPaginatedResponse.Item | null>;
|
|
41
|
-
accounts$: PaginatedListService<CbmAccountModel.ListPaginatedResponse, CbmAccountModel.ListPaginatedParams, CbmAccountModel.ListPaginatedResponse>;
|
|
41
|
+
accounts$: PaginatedListService<CbmAccountModel.ListPaginatedResponse, CbmAccountModel.ListPaginatedParams, CbmAccountModel.ListPaginatedResponse.Item[]>;
|
|
42
42
|
formToFilter: FormGroup<{
|
|
43
43
|
nameCode: FormControl<string | null>;
|
|
44
44
|
code: FormControl<string | null>;
|
|
45
45
|
checked: FormControl<boolean | null>;
|
|
46
46
|
}>;
|
|
47
47
|
get nameCodeControl(): FormControl<string | null>;
|
|
48
|
-
get codeControl(): FormControl<string | null>;
|
|
49
48
|
ngOnInit(): void;
|
|
50
49
|
makeSubscriptions(): void;
|
|
51
50
|
makeInitialRequests(): void;
|
|
@@ -54,8 +53,8 @@ export declare class CbmAdvancedAccountSearchModal implements OnInit {
|
|
|
54
53
|
_addAccount(account: CbmAccountModel.ListPaginatedResponse.Item): void;
|
|
55
54
|
validateConfirmToAddAllAccounts(): Promise<void>;
|
|
56
55
|
_addAllAccounts(): void;
|
|
57
|
-
|
|
58
|
-
openModal(
|
|
56
|
+
_checkAccount(item: IAccountWithChecked): void;
|
|
57
|
+
openModal(code?: string): void;
|
|
59
58
|
closeModal(): void;
|
|
60
59
|
}
|
|
61
60
|
export {};
|
|
@@ -22,9 +22,11 @@ export declare class CbmAdvancedItemSearchModal {
|
|
|
22
22
|
addItem: import("@angular/core").OutputEmitterRef<CbmAlternativeItemModel.ListChildrenResponse.Data.Item | CbmItemModel.ListResponse.Item>;
|
|
23
23
|
addAllItems: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item[] | CbmAlternativeItemModel.ListChildrenResponse.Data.Item[]>;
|
|
24
24
|
isVisible: Subject<boolean>;
|
|
25
|
+
isVisible$: import("@angular/core").WritableSignal<boolean>;
|
|
25
26
|
selectedItem: import("@angular/core").WritableSignal<CbmItemModel.ListResponse.Item | null>;
|
|
26
27
|
constructor(itemRepository: CbmItemDomainRepository, destroyRef: DestroyRef);
|
|
27
28
|
openModal(codeFilter?: string): void;
|
|
28
29
|
closeModal(): void;
|
|
30
|
+
sendItemInput(item: CbmItemModel.ListResponse.Item): void;
|
|
29
31
|
getOneItemByCode(): void;
|
|
30
32
|
}
|
|
@@ -35,7 +35,6 @@ export declare class ItemListComponent {
|
|
|
35
35
|
isFilterVisible: import("@angular/core").WritableSignal<boolean>;
|
|
36
36
|
categories: import("@angular/core").WritableSignal<CbmTreeSelect.Children<any>>;
|
|
37
37
|
items: import("@angular/core").WritableSignal<IItemWithChecked[]>;
|
|
38
|
-
item: import("@angular/core").OutputEmitterRef<CbmItemModel.ListResponse.Item | undefined>;
|
|
39
38
|
checkedItems: import("@angular/core").WritableSignal<CbmItemModel.ListResponse.Item[]>;
|
|
40
39
|
priceLists: import("@angular/core").WritableSignal<CbmPriceListModel.ListResponse.Data[] | null>;
|
|
41
40
|
statusOfFetchCategories: import("@angular/core").WritableSignal<TStatus>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CbmClientModel } from '../../domain/models/client.domain.model';
|
|
2
|
+
import { CbmClientBranchModel } from '../../domain/models/client-branch.domain.model';
|
|
2
3
|
export declare class CbmClientCardComponent {
|
|
3
4
|
client: import("@angular/core").InputSignal<Partial<CbmClientModel.GetOneResponse.Data> | null>;
|
|
4
5
|
contact: import("@angular/core").InputSignal<Partial<CbmClientModel.GetOneResponse.Data.Contact> | null>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
2
|
import { FormArray, FormGroup } from '@angular/forms';
|
|
3
|
-
import { CbmClientModel, CbmCostCenterModel, CbmTaxesModal } from '@cbm-common/cbm-types';
|
|
4
|
-
import { CbmSalePriceModel } from '@cbm-common/cbm-types/lib/domain/models/sale-price.domain.model';
|
|
5
3
|
import { ListService, PaginatedListService } from '@cbm-common/data-access';
|
|
6
4
|
import { Subject } from 'rxjs';
|
|
7
5
|
import { CbmPriceListModel } from '../../domain/models/price-list.domain.model';
|
|
@@ -13,6 +11,11 @@ import { CbmNotificationService } from '../../remotes/services.remote';
|
|
|
13
11
|
import { cbmStockWarehouseModalModel } from '../stock-by-warehouse/type';
|
|
14
12
|
import { IItemDetails } from './item-details.types';
|
|
15
13
|
import { CbmIrbpnrDomainService } from '../../domain/services/taxes/irbpnr.domain.service';
|
|
14
|
+
import { CbmSalePriceModel } from '../../domain/models/sale-price.domain.model';
|
|
15
|
+
import { CbmClientModel } from '../../domain/models/client.domain.model';
|
|
16
|
+
import { CbmCostCenterModel } from '../../domain/models/cost-center.domain.model';
|
|
17
|
+
import { CbmTaxesModal } from '../taxes-modal/taxes-modal.model';
|
|
18
|
+
import { CbmItemModel } from '../../domain/models/item.domain.model';
|
|
16
19
|
export declare class ItemDetails implements OnInit {
|
|
17
20
|
private readonly destroyRef;
|
|
18
21
|
private readonly itemRepository;
|
|
@@ -32,9 +35,9 @@ export declare class ItemDetails implements OnInit {
|
|
|
32
35
|
loadItems$: Subject<void>;
|
|
33
36
|
loadCostCenter$: Subject<void>;
|
|
34
37
|
itemDetailsFormArray: FormArray<FormGroup<IItemDetails.FormGroupDetail>>;
|
|
35
|
-
items$: PaginatedListService<
|
|
36
|
-
priceTypes$: ListService<
|
|
37
|
-
costCenters$: ListService<
|
|
38
|
+
items$: PaginatedListService<CbmItemModel.ListResponse, CbmItemModel.ListParams, CbmItemModel.ListResponse.Item[]>;
|
|
39
|
+
priceTypes$: ListService<CbmSalePriceModel.GetResponse, CbmSalePriceModel.GetParams, CbmSalePriceModel.GetResponse.Data[]>;
|
|
40
|
+
costCenters$: ListService<CbmCostCenterModel.ListResponse, CbmCostCenterModel.ListParams, CbmCostCenterModel.ListResponse.Data[]>;
|
|
38
41
|
priceList: import("@angular/core").Signal<Partial<CbmPriceListModel.ListResponse.Data>>;
|
|
39
42
|
clientData: import("@angular/core").Signal<Partial<CbmClientModel.GetOneResponse.Data>>;
|
|
40
43
|
costCenterData: import("@angular/core").Signal<Partial<CbmCostCenterModel.ListResponse.Data>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FormControl } from "@angular/forms";
|
|
2
|
-
import { CbmCostCenterModel, CbmItemModel } from "@cbm-common/cbm-types";
|
|
3
|
-
import { CbmSalePriceModel } from "@cbm-common/cbm-types/lib/domain/models/sale-price.domain.model";
|
|
4
2
|
import { FindItemByCodeService } from "../../domain/services/item/find-item-by-code.domain.service";
|
|
5
3
|
import { CbmUnitMeasureModel } from "../../domain/models/unit-measure.domain.model";
|
|
4
|
+
import { CbmSalePriceModel } from "../../domain/models/sale-price.domain.model";
|
|
5
|
+
import { CbmCostCenterModel } from "../../domain/models/cost-center.domain.model";
|
|
6
|
+
import { CbmItemModel } from "../../domain/models/item.domain.model";
|
|
6
7
|
export declare namespace IItemDetails {
|
|
7
8
|
interface FormGroupDetail {
|
|
8
9
|
code: FormControl<string>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { CbmClientModel, CbmContactModel, CbmPriceListModel } from '@cbm-common/cbm-types';
|
|
4
3
|
import { ListService, PaginatedListService } from '@cbm-common/data-access';
|
|
5
4
|
import { Subject } from 'rxjs';
|
|
6
5
|
import { CbmCostCenterModel } from '../../domain/models/cost-center.domain.model';
|
|
@@ -18,6 +17,9 @@ import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
|
18
17
|
import { FoliosModal } from './folios-modal/folios-modal';
|
|
19
18
|
import { CbmTaxesModal } from '../taxes-modal/taxes-modal.model';
|
|
20
19
|
import { CbmIrbpnrDomainService } from '../../domain/services/taxes/irbpnr.domain.service';
|
|
20
|
+
import { CbmPriceListModel } from '../../domain/models/price-list.domain.model';
|
|
21
|
+
import { CbmClientModel } from '../../domain/models/client.domain.model';
|
|
22
|
+
import { CbmContactModel } from '../../domain/models/contact.domain.model';
|
|
21
23
|
export declare class CbmPmsAddCharge implements OnInit {
|
|
22
24
|
private readonly destroyRef;
|
|
23
25
|
private readonly roomRepository;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FormControl } from "@angular/forms";
|
|
2
|
-
import { CbmCostCenterModel } from "@cbm-common/cbm-types";
|
|
3
|
-
import { CbmSalePriceModel } from "@cbm-common/cbm-types/lib/domain/models/sale-price.domain.model";
|
|
4
2
|
import { CbmServiceModel } from "../../domain/models/service.domain.model";
|
|
5
3
|
import { FindServiceCodeService } from "../../domain/services/service/find-service-code.domain.service";
|
|
4
|
+
import { CbmSalePriceModel } from "../../domain/models/sale-price.domain.model";
|
|
5
|
+
import { CbmCostCenterModel } from "../../domain/models/cost-center.domain.model";
|
|
6
6
|
export declare namespace IServiceDetails {
|
|
7
7
|
interface FormGroupDetail {
|
|
8
8
|
code: FormControl<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CbmItemModel } from
|
|
1
|
+
import { CbmItemModel } from "../../domain/models/item.domain.model";
|
|
2
2
|
export declare namespace StockByWarehouseModalCompModel {
|
|
3
3
|
type ItemToConsulted = Partial<Pick<CbmItemModel.ListResponse.Item, '_id' | 'name' | 'code' | 'manage_by'>> | Partial<Pick<CbmItemModel.ListWithStockResponse.Item, '_id' | 'name' | 'code' | 'manage_by'>>;
|
|
4
4
|
}
|
|
@@ -19,6 +19,23 @@ export declare namespace CbmDocumentTypeModel {
|
|
|
19
19
|
include_purchasing?: boolean;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
interface ListResponseSupport {
|
|
23
|
+
success: boolean;
|
|
24
|
+
data: ListResponseSupport.Data[];
|
|
25
|
+
}
|
|
26
|
+
namespace ListResponseSupport {
|
|
27
|
+
interface Data {
|
|
28
|
+
_id: string;
|
|
29
|
+
tax_support_id: string;
|
|
30
|
+
tax_support_document_type_id: string;
|
|
31
|
+
deleted: boolean;
|
|
32
|
+
created_at: number;
|
|
33
|
+
created_user: string;
|
|
34
|
+
document_type_id: string;
|
|
35
|
+
code: string;
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
22
39
|
interface GetOneResponse {
|
|
23
40
|
success: boolean;
|
|
24
41
|
data: GetOneResponse.Data;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare namespace CbmSalesPendingDocumentModel {
|
|
2
|
+
type TTypeEstablishment = 'matrix' | 'branch';
|
|
3
|
+
export interface ListParams {
|
|
4
|
+
page: number;
|
|
5
|
+
size: number;
|
|
6
|
+
document_number?: string;
|
|
7
|
+
date_end?: number;
|
|
8
|
+
date_begin?: number;
|
|
9
|
+
client_id?: string;
|
|
10
|
+
client_branch_id?: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ListResponse {
|
|
14
|
+
success: boolean;
|
|
15
|
+
pageNum: number;
|
|
16
|
+
pageSize: number;
|
|
17
|
+
pages: number;
|
|
18
|
+
total: number;
|
|
19
|
+
totales: ListResponse.totales;
|
|
20
|
+
items: ListResponse.Item[];
|
|
21
|
+
}
|
|
22
|
+
export namespace ListResponse {
|
|
23
|
+
interface Item {
|
|
24
|
+
_id: string;
|
|
25
|
+
created_at: number;
|
|
26
|
+
document_nomenclature: string;
|
|
27
|
+
document_emission_point_number: string;
|
|
28
|
+
document_sequence: string;
|
|
29
|
+
balance: number;
|
|
30
|
+
client_id: string;
|
|
31
|
+
client_payment_deadline?: number;
|
|
32
|
+
client_credit_limit?: number;
|
|
33
|
+
client_business_name: string;
|
|
34
|
+
client_trade_name: string;
|
|
35
|
+
client_document_number: string;
|
|
36
|
+
client_credit_application: boolean;
|
|
37
|
+
client_price_list_id: string;
|
|
38
|
+
client_price_list_code: string;
|
|
39
|
+
client_price_list_name: string;
|
|
40
|
+
client_document_type_id: string;
|
|
41
|
+
client_document_type_name: string;
|
|
42
|
+
client_document_type_code: string;
|
|
43
|
+
client_category_id: string;
|
|
44
|
+
client_category_name: string;
|
|
45
|
+
client_branch_id: string;
|
|
46
|
+
client_branch_code: string;
|
|
47
|
+
client_branch_name: string;
|
|
48
|
+
client_branch_address: string;
|
|
49
|
+
client_branch_email: string[];
|
|
50
|
+
client_branch_phone_code?: string;
|
|
51
|
+
client_branch_phone?: string;
|
|
52
|
+
client_branch_cellphone?: string;
|
|
53
|
+
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
54
|
+
client_branch_province_id?: string;
|
|
55
|
+
client_branch_province_code?: string;
|
|
56
|
+
client_branch_province_name?: string;
|
|
57
|
+
client_branch_canton_id?: string;
|
|
58
|
+
client_branch_canton_code?: string;
|
|
59
|
+
client_branch_canton_name?: string;
|
|
60
|
+
client_branch_parish_id?: string;
|
|
61
|
+
client_branch_parish_code?: string;
|
|
62
|
+
client_branch_parish_name?: string;
|
|
63
|
+
client_branch_longitude?: number;
|
|
64
|
+
client_branch_latitude?: number;
|
|
65
|
+
client_branch_seller_id: string;
|
|
66
|
+
client_branch_seller_identification_number: string;
|
|
67
|
+
client_branch_seller_full_name: string;
|
|
68
|
+
client_branch_seller_address: string;
|
|
69
|
+
client_branch_seller_email: string[];
|
|
70
|
+
client_branch_seller_cellphone: string;
|
|
71
|
+
client_branch_contact_id?: string;
|
|
72
|
+
client_branch_contact_identification_number?: string;
|
|
73
|
+
client_branch_contact_full_name?: string;
|
|
74
|
+
client_branch_contact_cellphone?: string;
|
|
75
|
+
client_branch_contact_email?: string[];
|
|
76
|
+
new_document_number: string;
|
|
77
|
+
date: number;
|
|
78
|
+
type: string;
|
|
79
|
+
checked?: boolean;
|
|
80
|
+
}
|
|
81
|
+
interface totales {
|
|
82
|
+
total_retention?: number;
|
|
83
|
+
total_down_payment?: number;
|
|
84
|
+
total_credit_note?: number;
|
|
85
|
+
total_initial_balance_retention?: number;
|
|
86
|
+
total_initial_balance_down_payment?: number;
|
|
87
|
+
total_initial_balance_credit_note?: number;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
91
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { ICbmDocumentTypeInfrastructureRepository } from
|
|
3
|
-
import { CbmDocumentTypeModel } from
|
|
2
|
+
import { ICbmDocumentTypeInfrastructureRepository } from '../../infrastructure/repositories/document-type.infrastructure.repository';
|
|
3
|
+
import { CbmDocumentTypeModel } from '../models/document-type.model';
|
|
4
4
|
export declare class CbmDocumentTypeDomainRepository implements ICbmDocumentTypeInfrastructureRepository {
|
|
5
5
|
private readonly service;
|
|
6
6
|
constructor(service: ICbmDocumentTypeInfrastructureRepository);
|
|
7
7
|
list(params: CbmDocumentTypeModel.ListParams): Observable<CbmDocumentTypeModel.ListResponse>;
|
|
8
|
+
listSupport(id: string): Observable<CbmDocumentTypeModel.ListResponseSupport>;
|
|
8
9
|
getOne(id: string): Observable<CbmDocumentTypeModel.GetOneResponse>;
|
|
9
10
|
save(data: CbmDocumentTypeModel.SaveBody): Observable<CbmDocumentTypeModel.ConfirmResponse>;
|
|
10
11
|
update(id: string, data: CbmDocumentTypeModel.UpdateBody): Observable<CbmDocumentTypeModel.ConfirmResponse>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmSalesPendingDocumentModel } from '../models/sales-pending-document.domain.model';
|
|
3
|
+
import { ICbmSalesPendingDocumentRepository } from '../../infrastructure/repositories/sales-pending-document.infrastructure.repository';
|
|
4
|
+
export declare class CbmSalesPendingDocumentRepository implements ICbmSalesPendingDocumentRepository {
|
|
5
|
+
private service;
|
|
6
|
+
constructor(service: ICbmSalesPendingDocumentRepository);
|
|
7
|
+
list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DestroyRef } from "@angular/core";
|
|
2
2
|
import { FormControl } from "@angular/forms";
|
|
3
|
-
import { CbmItemModel } from "@cbm-common/cbm-types";
|
|
4
3
|
import { CbmItemDomainRepository } from "../../repositories/item.domain.repository";
|
|
5
4
|
import { CbmNotificationService } from "../notification/notification.service";
|
|
5
|
+
import { CbmItemModel } from "../../models/item.domain.model";
|
|
6
6
|
export declare class FindItemByCodeService {
|
|
7
7
|
private readonly destroyRef;
|
|
8
8
|
private readonly itemRepository;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CbmRelationShipMovementsModel } from '@cbm-common/cbm-types';
|
|
2
1
|
import { ECollectionNames } from '../../types/collection-names';
|
|
3
2
|
import { CbmOutgoingBankingTransactionRepository } from '../repositories/outgoing-banking-transaction.domain.repository';
|
|
4
3
|
import { CbmIncomeBankingTransactionRepository } from '../repositories/income-banking-transaction.domain.repository';
|
|
@@ -7,6 +6,7 @@ import { CbmCardSettlementRepository } from '../repositories/card-settlement.dom
|
|
|
7
6
|
import { CbmCashLiquidationRepository } from '../repositories/cash-liquidation.domain.repository';
|
|
8
7
|
import { IncomeDomainRepository } from '../repositories/income.domain.repository';
|
|
9
8
|
import { DownPaymentDomainRepository } from '../repositories/down-payment.domain.repository';
|
|
9
|
+
import { CbmRelationShipMovementsModel } from '../../components/relationship-movements/relationship-movements.model';
|
|
10
10
|
type TConfig = Partial<Record<ECollectionNames, CbmRelationShipMovementsModel.IConfigMethods>>;
|
|
11
11
|
export declare class RelationshipMovementsConfig {
|
|
12
12
|
private readonly apiOutgoingBankingTransactionUseCase;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { CbmDocumentTypeModel } from
|
|
1
|
+
import { CbmDocumentTypeModel } from '../../domain/models/document-type.model';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
export interface ICbmDocumentTypeInfrastructureRepository {
|
|
4
4
|
list(params: CbmDocumentTypeModel.ListParams): Observable<CbmDocumentTypeModel.ListResponse>;
|
|
5
|
+
listSupport(id: string): Observable<CbmDocumentTypeModel.ListResponseSupport>;
|
|
5
6
|
getOne(id: string): Observable<CbmDocumentTypeModel.GetOneResponse>;
|
|
6
7
|
save(data: CbmDocumentTypeModel.SaveBody): Observable<CbmDocumentTypeModel.ConfirmResponse>;
|
|
7
8
|
update(id: string, data: CbmDocumentTypeModel.UpdateBody): Observable<CbmDocumentTypeModel.ConfirmResponse>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
|
|
3
|
+
export interface ICbmSalesPendingDocumentRepository {
|
|
4
|
+
list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
|
|
5
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { CbmDocumentTypeModel } from
|
|
3
|
-
import { ICbmDocumentTypeInfrastructureRepository } from
|
|
2
|
+
import { CbmDocumentTypeModel } from '../../domain/models/document-type.model';
|
|
3
|
+
import { ICbmDocumentTypeInfrastructureRepository } from '../repositories/document-type.infrastructure.repository';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
export declare class CbmDocumentTypeInfrastructureService implements ICbmDocumentTypeInfrastructureRepository {
|
|
6
6
|
private readonly http;
|
|
7
7
|
constructor(http: HttpClient);
|
|
8
8
|
private readonly url;
|
|
9
9
|
list(params: CbmDocumentTypeModel.ListParams): Observable<CbmDocumentTypeModel.ListResponse>;
|
|
10
|
+
listSupport(id: string): Observable<CbmDocumentTypeModel.ListResponseSupport>;
|
|
10
11
|
getOne(id: string): Observable<CbmDocumentTypeModel.GetOneResponse>;
|
|
11
12
|
save(data: CbmDocumentTypeModel.SaveBody): Observable<CbmDocumentTypeModel.ConfirmResponse>;
|
|
12
13
|
update(id: string, data: CbmDocumentTypeModel.UpdateBody): Observable<CbmDocumentTypeModel.ConfirmResponse>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
|
|
4
|
+
export declare class CbmSalesPendingDocumentService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
private readonly url;
|
|
8
|
+
list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
|
|
9
|
+
}
|
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
|
-
}
|