@cbm-common/cbm-types 0.0.175 → 0.0.176
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-provider/add-provider.d.ts +1 -2
- package/lib/components/attachments/attachments.d.ts +3 -1
- package/lib/components/branch-card/branch-card.d.ts +1 -1
- package/lib/components/relationship-movements/relationship-movements.d.ts +4 -1
- package/lib/domain/models/bank-movements.domain.model.d.ts +18 -2
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +92 -0
- package/lib/domain/repositories/bank-movements.domain.repository.d.ts +3 -3
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +8 -0
- package/lib/domain/services/auth-reactive.domain.service.d.ts +7 -4
- package/lib/infrastructure/repositories/bank-movements.infrastructure.repository.d.ts +3 -2
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/account-group.infrastructure.service.d.ts +1 -1
- package/lib/infrastructure/services/bank-movements.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-price-type.domain.service.d.ts +0 -12
|
@@ -105,9 +105,8 @@ export declare class CbmAddProviderComponent {
|
|
|
105
105
|
onEmailBlur(): void;
|
|
106
106
|
removeEmail(email: string): void;
|
|
107
107
|
saveProvider(action: TSaveOptions): Promise<void>;
|
|
108
|
-
updateProvider(): void
|
|
108
|
+
updateProvider(): Promise<void>;
|
|
109
109
|
validateSaveProviderForm(saveOption: TSaveOptions): void;
|
|
110
|
-
validateUpdateProviderForm(): void;
|
|
111
110
|
validateAccountCategory(id: string): void;
|
|
112
111
|
onCancelModalConfirm(): void;
|
|
113
112
|
}
|
|
@@ -6,6 +6,7 @@ import { CbmNotificationService } from "../../domain/services/notification/notif
|
|
|
6
6
|
import { TStatus, IPagination } from './types';
|
|
7
7
|
import { CbmUploadDomainRepository } from "../../domain/repositories/upload.domain.repository";
|
|
8
8
|
import { CbmUploadModel } from "../../domain/models/upload.domain.model";
|
|
9
|
+
import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
9
10
|
export declare class CbmAttachmentsComponent implements AfterViewChecked, OnInit {
|
|
10
11
|
private uploadRepository;
|
|
11
12
|
private notificationService;
|
|
@@ -13,6 +14,7 @@ export declare class CbmAttachmentsComponent implements AfterViewChecked, OnInit
|
|
|
13
14
|
gridViewButtonRef: import("@angular/core").Signal<readonly GridViewComponent[]>;
|
|
14
15
|
listViewButtonRef: import("@angular/core").Signal<readonly ListViewComponent[]>;
|
|
15
16
|
dropdownMenus: import("@angular/core").Signal<readonly ElementRef<any>[]>;
|
|
17
|
+
modalConfirm: import("@angular/core").Signal<CbmModalConfirmComponent>;
|
|
16
18
|
collectionId: import("@angular/core").InputSignal<string>;
|
|
17
19
|
collectionName: import("@angular/core").InputSignal<string>;
|
|
18
20
|
event: import("@angular/core").InputSignal<string>;
|
|
@@ -42,7 +44,7 @@ export declare class CbmAttachmentsComponent implements AfterViewChecked, OnInit
|
|
|
42
44
|
onPageSizeChange(size: number): void;
|
|
43
45
|
onFileSelected(files: FileList): void;
|
|
44
46
|
onCancelPress(): void;
|
|
45
|
-
saveAttachment(): void
|
|
47
|
+
saveAttachment(): Promise<void>;
|
|
46
48
|
onViewImagePress(attachment: CbmUploadModel.ListAnnexeResponse.Item): void;
|
|
47
49
|
onDownloadPress(attachment: CbmUploadModel.ListAnnexeResponse.Item): Promise<void>;
|
|
48
50
|
onDeletePress(attachment: CbmUploadModel.ListAnnexeResponse.Item): void;
|
|
@@ -10,7 +10,7 @@ export declare class CbmBranchCardComponent {
|
|
|
10
10
|
routeChange: import("@angular/core").Signal<string | string[]>;
|
|
11
11
|
changeBranch: import("@angular/core").Signal<boolean>;
|
|
12
12
|
expaded: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
-
globalData: import("@angular/core").Signal<import("../../domain/models/auth-reactive.domain.model").CbmAuthReactiveModel.GlobalTokenData
|
|
13
|
+
globalData: import("@angular/core").Signal<import("../../domain/models/auth-reactive.domain.model").CbmAuthReactiveModel.GlobalTokenData>;
|
|
14
14
|
companyBranch: import("@angular/core").Signal<import("../../domain/models/auth-reactive.domain.model").CbmAuthReactiveModel.GlobalTokenData.CompanyBranchData>;
|
|
15
15
|
changeRedirect(): void;
|
|
16
16
|
}
|
|
@@ -48,7 +48,10 @@ export declare class CbmRelationshipMovementsComponent implements OnInit {
|
|
|
48
48
|
onDialogClick(event: Event, dialog: HTMLDialogElement): void;
|
|
49
49
|
handleCloseDialog(dialog: HTMLDialogElement): void;
|
|
50
50
|
makeInitialRequests(): void;
|
|
51
|
-
|
|
51
|
+
validateOperationNumber(): Promise<void>;
|
|
52
|
+
fetchOperations(): Promise<CbmBankMovementsModel.ValidationOperationResponse>;
|
|
53
|
+
fetchOperationNumberForOrder(): Promise<CbmBankMovementsModel.ValidationOperationOrdersResponse.Data>;
|
|
54
|
+
patchData(data: CbmBankMovementsModel.ValidationOperationResponse.Data | CbmBankMovementsModel.ValidationOperationResponse.Data): void;
|
|
52
55
|
getOne(collectionName: string, id: string): void;
|
|
53
56
|
getArrayLength<T>(obj: any, property: string, config?: CbmRelationShipMovementsModel.IConfigMethods): number | undefined;
|
|
54
57
|
getPropertyValue<T>(obj: any, property: string, config: CbmRelationShipMovementsModel.IConfigMethods): T;
|
|
@@ -46,8 +46,8 @@ export declare namespace CbmBankMovementsModel {
|
|
|
46
46
|
bank_id: string;
|
|
47
47
|
}
|
|
48
48
|
interface ValidationOperationResponse {
|
|
49
|
-
success
|
|
50
|
-
data
|
|
49
|
+
success: boolean;
|
|
50
|
+
data: ValidationOperationResponse.Data;
|
|
51
51
|
message?: string;
|
|
52
52
|
}
|
|
53
53
|
namespace ValidationOperationResponse {
|
|
@@ -57,4 +57,20 @@ export declare namespace CbmBankMovementsModel {
|
|
|
57
57
|
event_module: string;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
interface ValidationOperationOrdersParams {
|
|
61
|
+
operation_number: string;
|
|
62
|
+
bank_id: string;
|
|
63
|
+
}
|
|
64
|
+
interface ValidationOperationOrdersResponse {
|
|
65
|
+
success: boolean;
|
|
66
|
+
data: ValidationOperationOrdersResponse.Data;
|
|
67
|
+
message?: string;
|
|
68
|
+
}
|
|
69
|
+
namespace ValidationOperationOrdersResponse {
|
|
70
|
+
interface Data {
|
|
71
|
+
collection_origin_id: string;
|
|
72
|
+
collection_origin_name: string;
|
|
73
|
+
event_module: string;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
60
76
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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_number: string;
|
|
28
|
+
document_emission_point_number: string;
|
|
29
|
+
document_sequence: string;
|
|
30
|
+
new_document_number: string;
|
|
31
|
+
balance: number;
|
|
32
|
+
client_id: string;
|
|
33
|
+
client_payment_deadline?: number;
|
|
34
|
+
client_credit_limit?: number;
|
|
35
|
+
client_business_name: string;
|
|
36
|
+
client_trade_name: string;
|
|
37
|
+
client_document_number: string;
|
|
38
|
+
client_credit_application: boolean;
|
|
39
|
+
client_price_list_id: string;
|
|
40
|
+
client_price_list_code: string;
|
|
41
|
+
client_price_list_name: string;
|
|
42
|
+
client_document_type_id: string;
|
|
43
|
+
client_document_type_name: string;
|
|
44
|
+
client_document_type_code: string;
|
|
45
|
+
client_category_id: string;
|
|
46
|
+
client_category_name: string;
|
|
47
|
+
client_branch_id: string;
|
|
48
|
+
client_branch_code: string;
|
|
49
|
+
client_branch_name: string;
|
|
50
|
+
client_branch_address: string;
|
|
51
|
+
client_branch_email: string[];
|
|
52
|
+
client_branch_phone_code?: string;
|
|
53
|
+
client_branch_phone?: string;
|
|
54
|
+
client_branch_cellphone?: string;
|
|
55
|
+
client_branch_type_establishment: `${TTypeEstablishment}`;
|
|
56
|
+
client_branch_province_id?: string;
|
|
57
|
+
client_branch_province_code?: string;
|
|
58
|
+
client_branch_province_name?: string;
|
|
59
|
+
client_branch_canton_id?: string;
|
|
60
|
+
client_branch_canton_code?: string;
|
|
61
|
+
client_branch_canton_name?: string;
|
|
62
|
+
client_branch_parish_id?: string;
|
|
63
|
+
client_branch_parish_code?: string;
|
|
64
|
+
client_branch_parish_name?: string;
|
|
65
|
+
client_branch_longitude?: number;
|
|
66
|
+
client_branch_latitude?: number;
|
|
67
|
+
client_branch_seller_id: string;
|
|
68
|
+
client_branch_seller_identification_number: string;
|
|
69
|
+
client_branch_seller_full_name: string;
|
|
70
|
+
client_branch_seller_address: string;
|
|
71
|
+
client_branch_seller_email: string[];
|
|
72
|
+
client_branch_seller_cellphone: string;
|
|
73
|
+
client_branch_contact_id?: string;
|
|
74
|
+
client_branch_contact_identification_number?: string;
|
|
75
|
+
client_branch_contact_full_name?: string;
|
|
76
|
+
client_branch_contact_cellphone?: string;
|
|
77
|
+
client_branch_contact_email?: string[];
|
|
78
|
+
date: number;
|
|
79
|
+
type: string;
|
|
80
|
+
checked?: boolean;
|
|
81
|
+
}
|
|
82
|
+
interface totales {
|
|
83
|
+
total_retention?: number;
|
|
84
|
+
total_down_payment?: number;
|
|
85
|
+
total_credit_note?: number;
|
|
86
|
+
total_initial_balance_retention?: number;
|
|
87
|
+
total_initial_balance_down_payment?: number;
|
|
88
|
+
total_initial_balance_credit_note?: number;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
export {};
|
|
92
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ICbmBankMovementsRepository } from '../../infrastructure/repositories/bank-movements.infrastructure.repository';
|
|
3
|
-
import { CbmBankMovementsService } from '../../infrastructure/services/bank-movements.infrastructure.service';
|
|
4
3
|
import { CbmBankMovementsModel } from '../models/bank-movements.domain.model';
|
|
5
4
|
export declare class CbmBankMovementsRepository implements ICbmBankMovementsRepository {
|
|
6
5
|
private service;
|
|
7
|
-
constructor(service:
|
|
8
|
-
validationOperation(params: CbmBankMovementsModel.ValidationOperationParams): Observable<CbmBankMovementsModel.ValidationOperationResponse>;
|
|
6
|
+
constructor(service: ICbmBankMovementsRepository);
|
|
9
7
|
list(params: CbmBankMovementsModel.ListParams): Observable<CbmBankMovementsModel.ListResponse>;
|
|
8
|
+
validationOperation(params: CbmBankMovementsModel.ValidationOperationParams): Observable<CbmBankMovementsModel.ValidationOperationResponse>;
|
|
9
|
+
validationOrders(request: CbmBankMovementsModel.ValidationOperationOrdersParams): Observable<CbmBankMovementsModel.ValidationOperationOrdersResponse>;
|
|
10
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
|
+
}
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { Subject } from "rxjs";
|
|
2
2
|
import { CbmAuthReactiveModel } from "../models/auth-reactive.domain.model";
|
|
3
3
|
import { CbmAuthService } from "./auth/auth.service";
|
|
4
|
+
import { Router } from "@angular/router";
|
|
4
5
|
type TLocalStorageKey = CbmAuthReactiveModel.TLocalStorageKey;
|
|
5
6
|
export declare class CbmAuthReactiveService {
|
|
6
7
|
private readonly authService;
|
|
7
|
-
|
|
8
|
+
private readonly router;
|
|
9
|
+
constructor(authService: CbmAuthService, router: Router);
|
|
8
10
|
setToken: Subject<[CbmAuthReactiveModel.TLocalStorageKey, string | null]>;
|
|
9
11
|
private userTokenData;
|
|
10
12
|
private globalTokenData;
|
|
11
13
|
private consoleTokenData;
|
|
12
14
|
tokens: Record<TLocalStorageKey, () => string | null>;
|
|
13
|
-
userData: import("@angular/core").Signal<CbmAuthReactiveModel.UserTokenData
|
|
14
|
-
globalData: import("@angular/core").Signal<CbmAuthReactiveModel.GlobalTokenData
|
|
15
|
-
consoleData: import("@angular/core").Signal<CbmAuthReactiveModel.ConsoleTokenData
|
|
15
|
+
userData: import("@angular/core").Signal<CbmAuthReactiveModel.UserTokenData>;
|
|
16
|
+
globalData: import("@angular/core").Signal<CbmAuthReactiveModel.GlobalTokenData>;
|
|
17
|
+
consoleData: import("@angular/core").Signal<CbmAuthReactiveModel.ConsoleTokenData>;
|
|
16
18
|
init(): Promise<void>;
|
|
17
19
|
destroySession(): void;
|
|
18
20
|
private subObservers;
|
|
19
21
|
private refreshTokensFromStorage;
|
|
20
22
|
private loadTokensFromStorage;
|
|
21
23
|
private decodeToken;
|
|
24
|
+
logout(): void;
|
|
22
25
|
}
|
|
23
26
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CbmBankMovementsModel } from
|
|
1
|
+
import { CbmBankMovementsModel } from '../../domain/models/bank-movements.domain.model';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
export interface ICbmBankMovementsRepository {
|
|
4
|
-
validationOperation(params: CbmBankMovementsModel.ValidationOperationParams): Observable<CbmBankMovementsModel.ValidationOperationResponse>;
|
|
5
4
|
list(params: CbmBankMovementsModel.ListParams): Observable<CbmBankMovementsModel.ListResponse>;
|
|
5
|
+
validationOperation(params: CbmBankMovementsModel.ValidationOperationParams): Observable<CbmBankMovementsModel.ValidationOperationResponse>;
|
|
6
|
+
validationOrders(request: CbmBankMovementsModel.ValidationOperationOrdersParams): Observable<CbmBankMovementsModel.ValidationOperationOrdersResponse>;
|
|
6
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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from "@angular/common/http";
|
|
2
|
-
import { CbmAccountGroupModel } from "../../domain/models/account-group.domain.model";
|
|
3
2
|
import { Observable } from "rxjs";
|
|
3
|
+
import { CbmAccountGroupModel } from "../../domain/models/account-group.domain.model";
|
|
4
4
|
import { ICbmAccountGroupRepository } from "../repositories/account-group.infrastructure.repository";
|
|
5
5
|
export declare class CbmAccountGroupService implements ICbmAccountGroupRepository {
|
|
6
6
|
private http;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { CbmBankMovementsModel } from
|
|
3
|
-
import { ICbmBankMovementsRepository } from
|
|
2
|
+
import { CbmBankMovementsModel } from '../../domain/models/bank-movements.domain.model';
|
|
3
|
+
import { ICbmBankMovementsRepository } from '../repositories/bank-movements.infrastructure.repository';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
export declare class CbmBankMovementsService implements ICbmBankMovementsRepository {
|
|
6
6
|
private http;
|
|
@@ -8,4 +8,5 @@ export declare class CbmBankMovementsService implements ICbmBankMovementsReposit
|
|
|
8
8
|
private readonly url;
|
|
9
9
|
list(params: CbmBankMovementsModel.ListParams): Observable<CbmBankMovementsModel.ListResponse>;
|
|
10
10
|
validationOperation(request: CbmBankMovementsModel.ValidationOperationParams): Observable<CbmBankMovementsModel.ValidationOperationResponse>;
|
|
11
|
+
validationOrders(request: CbmBankMovementsModel.ValidationOperationOrdersParams): Observable<CbmBankMovementsModel.ValidationOperationOrdersResponse>;
|
|
11
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,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
|
-
}
|