@cbm-common/cbm-types 0.0.252 → 0.0.253
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/accounting-seat/directives/drop-down-menu.directive.d.ts +13 -0
- package/lib/components/accounting-seat/directives/drop-down.directive.d.ts +10 -0
- package/lib/components/attachments/components/grid-view/grid-view.d.ts +17 -8
- package/lib/components/pms-add-charge/pms-add-charge.d.ts +4 -1
- package/lib/components/record-detail-metadata/components/options/options.d.ts +13 -0
- package/lib/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +13 -0
- package/lib/components/record-detail-metadata/directives/drop-down.directive.d.ts +9 -0
- package/lib/components/stock-by-warehouse/stock-by-warehouse.d.ts +2 -1
- package/lib/domain/models/sales-account.domain.model.d.ts +4 -0
- package/lib/domain/models/sales-pending-document.domain.model.d.ts +91 -0
- package/lib/domain/models/stock-item.domain.model.d.ts +24 -4
- package/lib/domain/repositories/charge.domain.repository.d.ts +2 -0
- package/lib/domain/repositories/sales-account.domain.repository.d.ts +3 -1
- package/lib/domain/repositories/sales-pending-document.domain.repository.d.ts +8 -0
- package/lib/domain/services/general.domain.service.d.ts +4 -0
- package/lib/infrastructure/repositories/blanket-agreement-category-service..infrastructure.repository.d.ts +7 -0
- package/lib/infrastructure/repositories/charge.infrastructure.repository.d.ts +2 -0
- package/lib/infrastructure/repositories/sales-account.infrastructure.repository.d.ts +3 -1
- package/lib/infrastructure/repositories/sales-pending-document.infrastructure.repository.d.ts +5 -0
- package/lib/infrastructure/services/charge.infrastructure.service.d.ts +3 -1
- package/lib/infrastructure/services/sales-account.infrastructure.service.d.ts +3 -1
- package/lib/infrastructure/services/sales-pending-document.infrastructure.service.d.ts +9 -0
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
|
|
3
|
+
private element;
|
|
4
|
+
private renderer2;
|
|
5
|
+
hiddenMenu: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
+
constructor(element: ElementRef, renderer2: Renderer2);
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
+
toggle(event: Event): void;
|
|
11
|
+
private toggleMenu;
|
|
12
|
+
initStyle(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
export declare class DropdownDirective implements AfterViewInit {
|
|
3
|
+
private elementRef;
|
|
4
|
+
private renderer;
|
|
5
|
+
private isOpen;
|
|
6
|
+
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
7
|
+
ngAfterViewInit(): void;
|
|
8
|
+
toggleDropdown(event: MouseEvent): void;
|
|
9
|
+
closeDropdown(event: MouseEvent): void;
|
|
10
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { DestroyRef, SimpleChanges } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
|
+
import { CbmModalConfirmComponent } from '../../../modal-confirm/modal-confirm';
|
|
4
|
+
import { TStatus } from '../../../accounting-seat/types';
|
|
5
|
+
import { IPagination } from '../../../advanced-item-search-modal/types';
|
|
6
|
+
import { CbmUploadModel } from '../../../../domain/models/upload.domain.model';
|
|
7
|
+
import { CbmNotificationService } from '../../../../domain/services/notification/notification.service';
|
|
8
|
+
import { CbmUploadDomainRepository } from '../../../../domain/repositories/upload.domain.repository';
|
|
9
|
+
type TFileKind = 'image' | 'pdf' | 'xlsx' | 'docx' | 'zip' | 'other';
|
|
8
10
|
export declare class GridViewComponent {
|
|
9
11
|
private uploadRepository;
|
|
10
12
|
private notificationService;
|
|
11
13
|
private destroyRef;
|
|
14
|
+
private sanitizer;
|
|
12
15
|
modalConfirmRef: import("@angular/core").Signal<CbmModalConfirmComponent>;
|
|
13
16
|
collectionId: import("@angular/core").InputSignal<string>;
|
|
14
17
|
collectionName: import("@angular/core").InputSignal<string>;
|
|
@@ -17,16 +20,22 @@ export declare class GridViewComponent {
|
|
|
17
20
|
statusOfDeleteAttachment: import("@angular/core").WritableSignal<TStatus>;
|
|
18
21
|
attachments: import("@angular/core").WritableSignal<CbmUploadModel.ListAnnexeResponse.Item[]>;
|
|
19
22
|
attachment: import("@angular/core").WritableSignal<CbmUploadModel.ListAnnexeResponse.Item | null>;
|
|
23
|
+
previewAttachment: import("@angular/core").WritableSignal<CbmUploadModel.ListAnnexeResponse.Item | null>;
|
|
20
24
|
attachmentsPagination: import("@angular/core").WritableSignal<IPagination>;
|
|
21
|
-
|
|
25
|
+
safePreviewUrl: import("@angular/core").Signal<SafeResourceUrl | null>;
|
|
26
|
+
constructor(uploadRepository: CbmUploadDomainRepository, notificationService: CbmNotificationService, destroyRef: DestroyRef, sanitizer: DomSanitizer);
|
|
22
27
|
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
onEscapeKey(): void;
|
|
29
|
+
getFileKind(mimetype?: string): TFileKind;
|
|
30
|
+
onPreviewPress(item: CbmUploadModel.ListAnnexeResponse.Item): void;
|
|
31
|
+
onClosePreview(): void;
|
|
23
32
|
fetchAttachments(): void;
|
|
24
33
|
onGoToPage(page: number): void;
|
|
25
34
|
onNextPage(page: number): void;
|
|
26
35
|
onPreviousPage(page: number): void;
|
|
27
36
|
onPageSizeChange(): void;
|
|
28
|
-
onViewImagePress(attachment: CbmUploadModel.ListAnnexeResponse.Item): void;
|
|
29
37
|
onDownloadPress(attachment: CbmUploadModel.ListAnnexeResponse.Item): Promise<void>;
|
|
30
38
|
onDeletePress(attachment: CbmUploadModel.ListAnnexeResponse.Item): Promise<void>;
|
|
31
39
|
onDeleteConfirm(): void;
|
|
32
40
|
}
|
|
41
|
+
export {};
|
|
@@ -22,6 +22,7 @@ import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
|
|
|
22
22
|
import { CbmServiceDetails } from '../service-details/service-details';
|
|
23
23
|
import { CbmTaxesModal } from '../taxes-modal/taxes-modal.model';
|
|
24
24
|
import { FoliosModal } from './folios-modal/folios-modal';
|
|
25
|
+
import { GeneralDomainService } from '../../domain/services/general.domain.service';
|
|
25
26
|
export declare class CbmPmsAddCharge implements OnInit {
|
|
26
27
|
private readonly destroyRef;
|
|
27
28
|
private readonly roomRepository;
|
|
@@ -32,7 +33,8 @@ export declare class CbmPmsAddCharge implements OnInit {
|
|
|
32
33
|
private readonly costCenterRepository;
|
|
33
34
|
private readonly irbpnrService;
|
|
34
35
|
private readonly clientRepository;
|
|
35
|
-
|
|
36
|
+
private generalService;
|
|
37
|
+
constructor(destroyRef: DestroyRef, roomRepository: CbmRoomRepository, chargeRepository: CbmChargeRepository, notificationService: CbmNotificationService, authService: CbmAuthReactiveService, salesAccountRepository: CbmSalesAccountDomainRepository, costCenterRepository: CbmCostCenterRepository, irbpnrService: CbmIrbpnrDomainService, clientRepository: CbmClientDomainRepository, generalService: GeneralDomainService);
|
|
36
38
|
disableGuard: boolean;
|
|
37
39
|
formDirty: () => boolean;
|
|
38
40
|
chargeFormGroup: FormGroup<{
|
|
@@ -82,6 +84,7 @@ export declare class CbmPmsAddCharge implements OnInit {
|
|
|
82
84
|
protected subObservers(): void;
|
|
83
85
|
private buildChargeDetail;
|
|
84
86
|
saveCharge(): Promise<void>;
|
|
87
|
+
private downloadAndOpenPdf;
|
|
85
88
|
protected getFolio(folio: CbmSalesAccountModel.ListResponse.Item): Promise<void>;
|
|
86
89
|
protected updateTotals(field: keyof typeof this.typeTotals, value: number): void;
|
|
87
90
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { Router, ActivatedRoute, Params } from '@angular/router';
|
|
3
|
+
import { CbmRecordDetailMetadataModel } from "../../types";
|
|
4
|
+
export declare class OptionsComponent {
|
|
5
|
+
private router;
|
|
6
|
+
private route;
|
|
7
|
+
constructor(router: Router, route: ActivatedRoute);
|
|
8
|
+
metadata: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.metadata | null>;
|
|
9
|
+
options: import("@angular/core").InputSignal<CbmRecordDetailMetadataModel.options[] | undefined>;
|
|
10
|
+
optionInSignals: WritableSignal<WritableSignal<CbmRecordDetailMetadataModel.options>[]>;
|
|
11
|
+
executeFunction(option: WritableSignal<CbmRecordDetailMetadataModel.options>): void;
|
|
12
|
+
navigate(routerLink?: string, queryParams?: Params): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
export declare class DropdownMenuDirective implements OnChanges, AfterViewInit {
|
|
3
|
+
private element;
|
|
4
|
+
private renderer2;
|
|
5
|
+
hiddenMenu: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
hiddenMenuOp: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
+
constructor(element: ElementRef, renderer2: Renderer2);
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
+
toggle(event: Event): void;
|
|
11
|
+
private toggleMenu;
|
|
12
|
+
initStyle(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
export declare class DropdownDirective {
|
|
3
|
+
private elementRef;
|
|
4
|
+
private renderer;
|
|
5
|
+
private isOpen;
|
|
6
|
+
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
7
|
+
toggleDropdown(event: MouseEvent): void;
|
|
8
|
+
closeDropdown(event: MouseEvent): void;
|
|
9
|
+
}
|
|
@@ -16,7 +16,8 @@ export declare class StockByWarehouse {
|
|
|
16
16
|
dateWarehouse: import("@angular/core").WritableSignal<Date>;
|
|
17
17
|
dateSerie: import("@angular/core").WritableSignal<Date>;
|
|
18
18
|
dateBatch: import("@angular/core").WritableSignal<Date>;
|
|
19
|
-
warehouseStock: import("@angular/core").WritableSignal<CbmStockItemModel.listResponseWarehouse.
|
|
19
|
+
warehouseStock: import("@angular/core").WritableSignal<CbmStockItemModel.listResponseWarehouse.Item[]>;
|
|
20
|
+
itemWarehouseStock: import("@angular/core").WritableSignal<CbmStockItemModel.listResponseWarehouse.Item.ItemWarehouse | null>;
|
|
20
21
|
batchStock: import("@angular/core").WritableSignal<CbmStockItemModel.ListResponseBatch.item[]>;
|
|
21
22
|
serieStock: import("@angular/core").WritableSignal<CbmStockItemModel.ListResponseSerie.item[]>;
|
|
22
23
|
modalId: import("@angular/core").InputSignal<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
|
+
}
|
|
@@ -10,10 +10,10 @@ export declare namespace CbmStockItemModel {
|
|
|
10
10
|
pageSize: number;
|
|
11
11
|
pages: number;
|
|
12
12
|
total: number;
|
|
13
|
-
items: listResponseWarehouse.
|
|
13
|
+
items: listResponseWarehouse.Item[];
|
|
14
14
|
}
|
|
15
15
|
namespace listResponseWarehouse {
|
|
16
|
-
interface
|
|
16
|
+
interface Item {
|
|
17
17
|
_id: string;
|
|
18
18
|
company_id: string;
|
|
19
19
|
warehouse_id: string;
|
|
@@ -24,11 +24,11 @@ export declare namespace CbmStockItemModel {
|
|
|
24
24
|
created_at: number;
|
|
25
25
|
warehouse_name: string;
|
|
26
26
|
warehouse_code: string;
|
|
27
|
-
item_warehouse:
|
|
27
|
+
item_warehouse: Item.ItemWarehouse;
|
|
28
28
|
available_stock: number;
|
|
29
29
|
stock_in_transit: number;
|
|
30
30
|
}
|
|
31
|
-
namespace
|
|
31
|
+
namespace Item {
|
|
32
32
|
interface ItemWarehouse {
|
|
33
33
|
_id: string;
|
|
34
34
|
item_id: string;
|
|
@@ -41,6 +41,26 @@ export declare namespace CbmStockItemModel {
|
|
|
41
41
|
created_user: string;
|
|
42
42
|
recount: boolean;
|
|
43
43
|
created_at: number;
|
|
44
|
+
company_id?: string;
|
|
45
|
+
warehouse_name?: string;
|
|
46
|
+
warehouse_code?: string;
|
|
47
|
+
user_id?: string;
|
|
48
|
+
item_manufacturer_id?: string;
|
|
49
|
+
item_manufacturer_name?: string;
|
|
50
|
+
provider_id?: string;
|
|
51
|
+
provider_name?: string;
|
|
52
|
+
provider_item_code?: string;
|
|
53
|
+
provider_trade_name?: string;
|
|
54
|
+
provider_document_number?: string;
|
|
55
|
+
unit_measure_id?: string;
|
|
56
|
+
unit_measure_name?: string;
|
|
57
|
+
unit_measure_code?: string;
|
|
58
|
+
item_barcode?: string;
|
|
59
|
+
item_code?: string;
|
|
60
|
+
item_name?: string;
|
|
61
|
+
item_manage_by?: string;
|
|
62
|
+
updated_at?: number;
|
|
63
|
+
updated_user?: string;
|
|
44
64
|
}
|
|
45
65
|
}
|
|
46
66
|
}
|
|
@@ -2,8 +2,10 @@ import { ICbmChargeRepository } from "../../infrastructure/repositories/charge.i
|
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { CbmChargeModel } from "../models/charge.domain.model";
|
|
4
4
|
import { IGeneral } from "../models/general.domain.model";
|
|
5
|
+
import { HttpResponse } from "@angular/common/http";
|
|
5
6
|
export declare class CbmChargeRepository implements ICbmChargeRepository {
|
|
6
7
|
private readonly chargeService;
|
|
7
8
|
constructor(chargeService: ICbmChargeRepository);
|
|
8
9
|
save(request: CbmChargeModel.Save): Observable<IGeneral.Confirm>;
|
|
10
|
+
downloadTicket(id: string, timezone: string, locale: string): Observable<HttpResponse<Blob>>;
|
|
9
11
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { HttpResponse } from '@angular/common/http';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
import { ICbmSalesAccountRepository } from '../../infrastructure/repositories/sales-account.infrastructure.repository';
|
|
3
|
-
import { CbmSalesAccountModel } from '../models/sales-account.domain.model';
|
|
4
4
|
import { IGeneral } from '../models/general.domain.model';
|
|
5
|
+
import { CbmSalesAccountModel } from '../models/sales-account.domain.model';
|
|
5
6
|
export declare class CbmSalesAccountDomainRepository {
|
|
6
7
|
private readonly service;
|
|
7
8
|
constructor(service: ICbmSalesAccountRepository);
|
|
@@ -9,4 +10,5 @@ export declare class CbmSalesAccountDomainRepository {
|
|
|
9
10
|
getOne<T>(id: string): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
10
11
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
11
12
|
updatePrice(id: string, data: CbmSalesAccountModel.UpdatePriceBody): Observable<IGeneral.Confirm>;
|
|
13
|
+
downloadIndividualPdf(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
12
14
|
}
|
|
@@ -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
|
+
}
|
|
@@ -2,6 +2,10 @@ import { ValidatorFn } from '@angular/forms';
|
|
|
2
2
|
export declare class GeneralDomainService {
|
|
3
3
|
modalShow(modalId: string): void;
|
|
4
4
|
modalHide(modalId: string): void;
|
|
5
|
+
isMobile(): boolean;
|
|
6
|
+
printPdf(response: any): void;
|
|
7
|
+
closePrintPdf(): void;
|
|
8
|
+
downloadPdf(response: any): void;
|
|
5
9
|
getTimestampFromDate(localDate: string): number;
|
|
6
10
|
findRoute(eventModule: string, collectionName: string): {
|
|
7
11
|
event: string | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CbmBlanketAgreementCategoryServiceModel } from "../../domain/models/blanket-agreement-category-service.domain.model";
|
|
3
|
+
export interface ICbmBlanketAgreementCategoryServiceRepository {
|
|
4
|
+
list(params: CbmBlanketAgreementCategoryServiceModel.ListParams): Observable<CbmBlanketAgreementCategoryServiceModel.ListResponse>;
|
|
5
|
+
save(data: CbmBlanketAgreementCategoryServiceModel.SaveBody): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
|
|
6
|
+
delete(id: string): Observable<CbmBlanketAgreementCategoryServiceModel.ConfirmResponse>;
|
|
7
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { CbmChargeModel } from "../../domain/models/charge.domain.model";
|
|
3
3
|
import { IGeneral } from "../../domain/models/general.domain.model";
|
|
4
|
+
import { HttpResponse } from "@angular/common/http";
|
|
4
5
|
export interface ICbmChargeRepository {
|
|
5
6
|
save(request: CbmChargeModel.Save): Observable<IGeneral.Confirm>;
|
|
7
|
+
downloadTicket(id: string, timezone: string, locale: string): Observable<HttpResponse<Blob>>;
|
|
6
8
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { HttpResponse } from '@angular/common/http';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { CbmSalesAccountModel } from '../../domain/models/sales-account.domain.model';
|
|
3
3
|
import { IGeneral } from '../../domain/models/general.domain.model';
|
|
4
|
+
import { CbmSalesAccountModel } from '../../domain/models/sales-account.domain.model';
|
|
4
5
|
export interface ICbmSalesAccountRepository {
|
|
5
6
|
list(params: CbmSalesAccountModel.ListParams): Observable<CbmSalesAccountModel.ListResponse>;
|
|
6
7
|
getOne(id: string): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
7
8
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
8
9
|
updatePrice(id: string, data: CbmSalesAccountModel.UpdatePriceBody): Observable<IGeneral.Confirm>;
|
|
10
|
+
downloadIndividualPdf(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
9
11
|
}
|
|
@@ -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,11 +1,13 @@
|
|
|
1
|
-
import { HttpClient } from "@angular/common/http";
|
|
2
1
|
import { ICbmChargeRepository } from "../repositories/charge.infrastructure.repository";
|
|
3
2
|
import { Observable } from "rxjs";
|
|
4
3
|
import { CbmChargeModel } from "../../domain/models/charge.domain.model";
|
|
5
4
|
import { IGeneral } from "../../domain/models/general.domain.model";
|
|
5
|
+
import { HttpClient, HttpResponse } from '@angular/common/http';
|
|
6
6
|
export declare class CbmChargeService implements ICbmChargeRepository {
|
|
7
7
|
private readonly http;
|
|
8
8
|
constructor(http: HttpClient);
|
|
9
9
|
private readonly url;
|
|
10
|
+
private readonly urlReport;
|
|
10
11
|
save(request: CbmChargeModel.Save): Observable<IGeneral.Confirm>;
|
|
12
|
+
downloadTicket(id: string, timezone: string, locale: string): Observable<HttpResponse<Blob>>;
|
|
11
13
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ICbmSalesAccountRepository } from '../repositories/sales-account.infrastructure.repository';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { CbmSalesAccountModel } from '../../domain/models/sales-account.domain.model';
|
|
5
4
|
import { IGeneral } from '../../domain/models/general.domain.model';
|
|
5
|
+
import { HttpClient, HttpResponse } from '@angular/common/http';
|
|
6
6
|
export declare class CbmSalesAccountService implements ICbmSalesAccountRepository {
|
|
7
7
|
private readonly http;
|
|
8
8
|
constructor(http: HttpClient);
|
|
9
9
|
private readonly baseUrl;
|
|
10
|
+
private readonly baseReportUrl;
|
|
10
11
|
list(params: CbmSalesAccountModel.ListParams): Observable<CbmSalesAccountModel.ListResponse>;
|
|
11
12
|
getOne(id: string): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
12
13
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
13
14
|
updatePrice(id: string, data: CbmSalesAccountModel.UpdatePriceBody): Observable<IGeneral.Confirm>;
|
|
15
|
+
downloadIndividualPdf(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
14
16
|
}
|
|
@@ -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
|
+
}
|