@experteam-mx/ngx-services 18.8.17 → 18.8.18
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/esm2022/lib/apis/api-reports.service.mjs +17 -1
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +16 -0
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-reports.service.d.ts +14 -1
- package/lib/apis/models/api-reports.interfaces.d.ts +28 -0
- package/lib/apis/models/api-reports.types.d.ts +7 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient, HttpResponse } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Environment } from '../ngx-services.models';
|
|
4
|
-
import { CollectionPaymentsOut, ExternalShipmentsOut, FileCheckOut, InvoicesOut, PartialWithdrawalsOut, PromotionCodeDiscountsOut, ShipmentsLandingReportOut, ShipmentsReportOut } from './models/api-reports.types';
|
|
4
|
+
import { CollectionPaymentsOut, ExternalShipmentsOut, FileCheckOut, InvoicesOut, PartialWithdrawalsOut, PromotionCodeDiscountsOut, SalesBookReportOut, ShipmentsLandingReportOut, ShipmentsReportOut } from './models/api-reports.types';
|
|
5
5
|
import { QueryParams } from './models/api.models';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiReportsService {
|
|
@@ -102,6 +102,19 @@ export declare class ApiReportsService {
|
|
|
102
102
|
* @returns An observable that emits the list of invoices.
|
|
103
103
|
*/
|
|
104
104
|
getInvoices(params: QueryParams): Observable<InvoicesOut>;
|
|
105
|
+
/**
|
|
106
|
+
* Retrieves the sales book report based on the provided query parameters.
|
|
107
|
+
*
|
|
108
|
+
* @param params - The query parameters to filter or customize the report.
|
|
109
|
+
* @returns An Observable that emits the sales book report data.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```typescript
|
|
113
|
+
* this.apiReportsService.getSalesBookReport({ page: 1, limit: 10 })
|
|
114
|
+
* .subscribe(report => console.log(report));
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
getSalesBookReport(params: QueryParams): Observable<SalesBookReportOut>;
|
|
105
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
|
|
106
119
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
|
|
107
120
|
}
|
|
@@ -312,3 +312,31 @@ export interface Invoice extends ActiveLessLaravelModel {
|
|
|
312
312
|
customer_county_name: string;
|
|
313
313
|
shipment_id: number;
|
|
314
314
|
}
|
|
315
|
+
export interface Sales extends ActiveLessLaravelModel {
|
|
316
|
+
company_country_id: number;
|
|
317
|
+
country_document_type_id: number;
|
|
318
|
+
country_id: number;
|
|
319
|
+
customer_address_line1: string;
|
|
320
|
+
customer_email: string;
|
|
321
|
+
customer_name: string;
|
|
322
|
+
customer_phone: string;
|
|
323
|
+
document_full_number: string;
|
|
324
|
+
document_sap_full_number: string;
|
|
325
|
+
document_status_name: string;
|
|
326
|
+
document_status: number;
|
|
327
|
+
document_type_name_EN: string;
|
|
328
|
+
document_type_name_ES: string;
|
|
329
|
+
document_type_name_FR: string;
|
|
330
|
+
document_type_name_PT: string;
|
|
331
|
+
document_type_name: string;
|
|
332
|
+
exempt: number;
|
|
333
|
+
identification_number: string;
|
|
334
|
+
identification_type_id: number;
|
|
335
|
+
identification_type_name: string;
|
|
336
|
+
installation_id: number;
|
|
337
|
+
location_id: number;
|
|
338
|
+
subtotal: number;
|
|
339
|
+
tax: number;
|
|
340
|
+
total: number;
|
|
341
|
+
user_id: number;
|
|
342
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CollectionPayment, Invoice, PartialWithdrawal, PromotionCodeDiscount, ReportExternalShipment, ShipmentLandingReport, ShipmentReports } from './api-reports.interfaces';
|
|
2
|
-
import { QueryParams } from './api.models';
|
|
1
|
+
import { CollectionPayment, Invoice, PartialWithdrawal, PromotionCodeDiscount, ReportExternalShipment, Sales, ShipmentLandingReport, ShipmentReports } from './api-reports.interfaces';
|
|
3
2
|
import { Session } from './api-security.interfaces';
|
|
3
|
+
import { QueryParams } from './api.models';
|
|
4
4
|
export type CollectionPaymentsOut = {
|
|
5
5
|
collection_payments: CollectionPayment[];
|
|
6
6
|
total: number;
|
|
@@ -52,3 +52,8 @@ export type InvoicesOut = {
|
|
|
52
52
|
invoices: Invoice[];
|
|
53
53
|
total: number;
|
|
54
54
|
};
|
|
55
|
+
export type SalesBookReportOut = {
|
|
56
|
+
sale_books: Sales[];
|
|
57
|
+
total: number;
|
|
58
|
+
transaction_id?: string;
|
|
59
|
+
};
|