@cbm-common/cbm-types 0.0.170 → 0.0.172
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/advanced-item-search-modal/advanced-item-search-modal.d.ts +1 -0
- package/lib/domain/models/provider-contact.domain.model.d.ts +68 -0
- package/lib/domain/models/provider.domain.model.d.ts +15 -0
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +91 -0
- package/lib/domain/repositories/provider-contact.domain.repository.d.ts +10 -0
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +8 -0
- package/lib/infrastructure/repositories/provider-contact.infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/provider-contact.infrastructure.service.d.ts +12 -0
- 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
|
@@ -8,6 +8,7 @@ export declare class CbmAdvancedItemSearchModal {
|
|
|
8
8
|
private itemRepository;
|
|
9
9
|
private readonly destroyRef;
|
|
10
10
|
'modal-id': import("@angular/core").InputSignal<string>;
|
|
11
|
+
hideAlternativeItemsButton: import("@angular/core").InputSignal<boolean>;
|
|
11
12
|
hidePricelistFilter: import("@angular/core").InputSignal<boolean | undefined>;
|
|
12
13
|
isOpen: import("@angular/core").InputSignal<boolean | undefined>;
|
|
13
14
|
priceList: import("@angular/core").InputSignal<string | CbmPriceListModel.ListResponse.Data | undefined>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare namespace CbmProviderContactModel {
|
|
2
|
+
interface ListParams {
|
|
3
|
+
provider_id: string;
|
|
4
|
+
identification_number?: string;
|
|
5
|
+
full_name?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ListResponse {
|
|
8
|
+
success: boolean;
|
|
9
|
+
data: ListResponse.Data[];
|
|
10
|
+
}
|
|
11
|
+
namespace ListResponse {
|
|
12
|
+
interface Data {
|
|
13
|
+
_id: string;
|
|
14
|
+
company_id: string;
|
|
15
|
+
provider_id: string;
|
|
16
|
+
identification_number: string;
|
|
17
|
+
full_name: string;
|
|
18
|
+
phone_code: string;
|
|
19
|
+
cellphone: string;
|
|
20
|
+
email: string[];
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
deleted: boolean;
|
|
23
|
+
created_user: string;
|
|
24
|
+
created_at: number;
|
|
25
|
+
updated_at: number;
|
|
26
|
+
updated_user: string;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
interface GetOneResponse {
|
|
30
|
+
success: boolean;
|
|
31
|
+
data: GetOneResponse.Data;
|
|
32
|
+
}
|
|
33
|
+
namespace GetOneResponse {
|
|
34
|
+
interface Data {
|
|
35
|
+
_id: string;
|
|
36
|
+
company_id: string;
|
|
37
|
+
provider_id: string;
|
|
38
|
+
identification_number: string;
|
|
39
|
+
full_name: string;
|
|
40
|
+
phone_code: string;
|
|
41
|
+
cellphone: string;
|
|
42
|
+
email: string[];
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
deleted: boolean;
|
|
45
|
+
created_user: string;
|
|
46
|
+
created_at: number;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
interface UpdateBody {
|
|
50
|
+
details_provider_contact: UpdateBody.DetailsProviderContact[];
|
|
51
|
+
delete_records_contact: string[];
|
|
52
|
+
}
|
|
53
|
+
namespace UpdateBody {
|
|
54
|
+
interface DetailsProviderContact {
|
|
55
|
+
_id: string;
|
|
56
|
+
identification_number: string;
|
|
57
|
+
full_name: string;
|
|
58
|
+
phone_code: string;
|
|
59
|
+
cellphone: string;
|
|
60
|
+
email: string[];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
interface ConfirmResponse {
|
|
64
|
+
success: boolean;
|
|
65
|
+
message: string;
|
|
66
|
+
data?: any;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -119,9 +119,24 @@ export declare namespace CbmProviderModel {
|
|
|
119
119
|
updated_at?: number;
|
|
120
120
|
updated_user?: string;
|
|
121
121
|
document_name_pay?: string;
|
|
122
|
+
provider_contact?: Data.ProviderContact[];
|
|
122
123
|
provider_category?: Data.ProviderCategory;
|
|
123
124
|
}
|
|
124
125
|
export namespace Data {
|
|
126
|
+
interface ProviderContact {
|
|
127
|
+
_id: string;
|
|
128
|
+
company_id?: string;
|
|
129
|
+
provider_id?: string;
|
|
130
|
+
identification_number?: string;
|
|
131
|
+
full_name?: string;
|
|
132
|
+
phone_code?: string;
|
|
133
|
+
cellphone?: string;
|
|
134
|
+
email?: string[];
|
|
135
|
+
enabled?: boolean;
|
|
136
|
+
deleted?: boolean;
|
|
137
|
+
created_user?: string;
|
|
138
|
+
created_at?: number;
|
|
139
|
+
}
|
|
125
140
|
interface ProviderCategory {
|
|
126
141
|
_id: string;
|
|
127
142
|
company_id?: string;
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmProviderContactModel } from '../models/provider-contact.domain.model';
|
|
3
|
+
import { ICbmProviderContactInfrastructureRepository } from '../../infrastructure/repositories/provider-contact.infrastructure.repository';
|
|
4
|
+
export declare class CbmProviderContactRepository implements ICbmProviderContactInfrastructureRepository {
|
|
5
|
+
private readonly apiProviderContact;
|
|
6
|
+
constructor(apiProviderContact: ICbmProviderContactInfrastructureRepository);
|
|
7
|
+
list(request: CbmProviderContactModel.ListParams): Observable<CbmProviderContactModel.ListResponse>;
|
|
8
|
+
getOne(_id: string): Observable<CbmProviderContactModel.GetOneResponse>;
|
|
9
|
+
update(_id: string, request: CbmProviderContactModel.UpdateBody): Observable<CbmProviderContactModel.ConfirmResponse>;
|
|
10
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { CbmProviderContactModel } from '../../domain/models/provider-contact.domain.model';
|
|
3
|
+
export interface ICbmProviderContactInfrastructureRepository {
|
|
4
|
+
list(request: CbmProviderContactModel.ListParams): Observable<CbmProviderContactModel.ListResponse>;
|
|
5
|
+
getOne(_id: string): Observable<CbmProviderContactModel.GetOneResponse>;
|
|
6
|
+
update(_id: string, request: CbmProviderContactModel.UpdateBody): Observable<CbmProviderContactModel.ConfirmResponse>;
|
|
7
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ICbmProviderContactInfrastructureRepository } from '../repositories/provider-contact.infrastructure.repository';
|
|
4
|
+
import { CbmProviderContactModel } from '../../domain/models/provider-contact.domain.model';
|
|
5
|
+
export declare class CbmProviderContactInfrastructureService implements ICbmProviderContactInfrastructureRepository {
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
private readonly url;
|
|
9
|
+
list(request: CbmProviderContactModel.ListParams): Observable<CbmProviderContactModel.ListResponse>;
|
|
10
|
+
getOne(_id: string): Observable<CbmProviderContactModel.GetOneResponse>;
|
|
11
|
+
update(_id: string, request: CbmProviderContactModel.UpdateBody): Observable<CbmProviderContactModel.ConfirmResponse>;
|
|
12
|
+
}
|
|
@@ -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
|
-
}
|