@cbm-common/cbm-types 0.0.318 → 0.0.320
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/availability-board/availability-board.d.ts +35 -5
- package/lib/domain/models/sales-account.domain.model.d.ts +4 -0
- package/lib/domain/repositories/sales-account.domain.repository.d.ts +1 -0
- package/lib/infrastructure/repositories/sales-account.infrastructure.repository.d.ts +1 -0
- package/lib/infrastructure/services/sales-account.infrastructure.service.d.ts +1 -0
- package/package.json +2 -2
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +0 -92
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +0 -8
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +0 -5
- package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +0 -9
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
import { AvailabilityBoardModel } from './availability-board.model';
|
|
2
2
|
import { ValueColumnCompModel } from './models/value-column.model';
|
|
3
3
|
import { ConfigService } from './services/config.service';
|
|
4
|
-
|
|
4
|
+
interface ReservationMovedEvent {
|
|
5
|
+
reservation_id: string;
|
|
6
|
+
booking_id: string;
|
|
7
|
+
old_room: string;
|
|
8
|
+
new_room: string;
|
|
9
|
+
}
|
|
5
10
|
export declare class CbmAvailabilityBoardComponent {
|
|
6
11
|
private readonly configService;
|
|
7
12
|
constructor(configService: ConfigService);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
private readonly elementRef;
|
|
14
|
+
reservationMoved: import("@angular/core").OutputEmitterRef<ReservationMovedEvent>;
|
|
15
|
+
draggingReservation: import("@angular/core").WritableSignal<any>;
|
|
16
|
+
protected dragPosition: import("@angular/core").WritableSignal<{
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
11
19
|
}>;
|
|
20
|
+
protected isDragging: import("@angular/core").Signal<boolean>;
|
|
21
|
+
private startRow;
|
|
22
|
+
private currentRow;
|
|
23
|
+
private startMouseX;
|
|
24
|
+
private startMouseY;
|
|
25
|
+
private draggedHtmlElement;
|
|
12
26
|
timelineRange: import("@angular/core").WritableSignal<Date[]>;
|
|
13
27
|
protected timeline: import("@angular/core").WritableSignal<AvailabilityBoardModel.DateRange[]>;
|
|
14
28
|
protected titleBody: import("@angular/core").WritableSignal<ValueColumnCompModel.Values[]>;
|
|
@@ -25,7 +39,23 @@ export declare class CbmAvailabilityBoardComponent {
|
|
|
25
39
|
protected setSpan: (span: number) => string;
|
|
26
40
|
setValuesColumn(value: AvailabilityBoardModel.ValueColumn[]): void;
|
|
27
41
|
setEvents<T = any>(events: AvailabilityBoardModel.EventParams[], bgColor?: (d: Date, data: T) => string): void;
|
|
42
|
+
getDragStyle(reservation: any): {
|
|
43
|
+
transform?: undefined;
|
|
44
|
+
zIndex?: undefined;
|
|
45
|
+
position?: undefined;
|
|
46
|
+
pointerEvents?: undefined;
|
|
47
|
+
opacity?: undefined;
|
|
48
|
+
} | {
|
|
49
|
+
transform: string;
|
|
50
|
+
zIndex: string;
|
|
51
|
+
position: string;
|
|
52
|
+
pointerEvents: string;
|
|
53
|
+
opacity: string;
|
|
54
|
+
};
|
|
55
|
+
startDragReservation(event: MouseEvent, reservation: any, row: number): void;
|
|
56
|
+
onMouseMove(event: MouseEvent): void;
|
|
57
|
+
onMouseUp(): void;
|
|
28
58
|
isToday(date: Date): boolean;
|
|
29
59
|
isEqualDate(date1: Date, date2: Date): boolean;
|
|
30
|
-
drop(event: CdkDragDrop<any>, roomId: string): void;
|
|
31
60
|
}
|
|
61
|
+
export {};
|
|
@@ -399,6 +399,10 @@ export declare namespace CbmSalesAccountModel {
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
+
interface GetOneByOriginParams {
|
|
403
|
+
collection_origin_id: string;
|
|
404
|
+
collection_origin_name: 'check_in' | 'order_vehicle';
|
|
405
|
+
}
|
|
402
406
|
interface SalesAccountRelatedDocuments {
|
|
403
407
|
_id: string;
|
|
404
408
|
company_id: string;
|
|
@@ -8,6 +8,7 @@ export declare class CbmSalesAccountDomainRepository {
|
|
|
8
8
|
constructor(service: ICbmSalesAccountRepository);
|
|
9
9
|
list(params: CbmSalesAccountModel.ListParams): Observable<CbmSalesAccountModel.ListResponse>;
|
|
10
10
|
getOne<T>(id: string): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
11
|
+
getOneByOrigin(params: CbmSalesAccountModel.GetOneByOriginParams): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
11
12
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
12
13
|
updatePrice(id: string, data: CbmSalesAccountModel.UpdatePriceBody): Observable<IGeneral.Confirm>;
|
|
13
14
|
downloadIndividualPdf(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
@@ -5,6 +5,7 @@ import { CbmSalesAccountModel } from '../../domain/models/sales-account.domain.m
|
|
|
5
5
|
export interface ICbmSalesAccountRepository {
|
|
6
6
|
list(params: CbmSalesAccountModel.ListParams): Observable<CbmSalesAccountModel.ListResponse>;
|
|
7
7
|
getOne(id: string): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
8
|
+
getOneByOrigin(params: CbmSalesAccountModel.GetOneByOriginParams): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
8
9
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
9
10
|
updatePrice(id: string, data: CbmSalesAccountModel.UpdatePriceBody): Observable<IGeneral.Confirm>;
|
|
10
11
|
downloadIndividualPdf(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
@@ -11,6 +11,7 @@ export declare class CbmSalesAccountService implements ICbmSalesAccountRepositor
|
|
|
11
11
|
private readonly baseReportChargeUrl;
|
|
12
12
|
list(params: CbmSalesAccountModel.ListParams): Observable<CbmSalesAccountModel.ListResponse>;
|
|
13
13
|
getOne(id: string): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
14
|
+
getOneByOrigin(params: CbmSalesAccountModel.GetOneByOriginParams): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
14
15
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
15
16
|
updatePrice(id: string, data: CbmSalesAccountModel.UpdatePriceBody): Observable<IGeneral.Confirm>;
|
|
16
17
|
downloadIndividualPdf(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
package/package.json
CHANGED
|
@@ -1,92 +0,0 @@
|
|
|
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,8 +0,0 @@
|
|
|
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
|
-
}
|
package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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,9 +0,0 @@
|
|
|
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
|
-
}
|