@experteam-mx/ngx-services 18.8.17 → 18.8.19
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-catalogs.service.mjs +16 -1
- package/esm2022/lib/apis/api-reports.service.mjs +17 -1
- package/esm2022/lib/apis/models/api-catalog.types.mjs +1 -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 +31 -0
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-catalogs.service.d.ts +13 -1
- package/lib/apis/api-reports.service.d.ts +14 -1
- package/lib/apis/models/api-catalog.types.d.ts +6 -0
- 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
|
@@ -2,7 +2,7 @@ import { Environment } from '../ngx-services.models';
|
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { QueryParams } from './models/api.models';
|
|
5
|
-
import { BusinessPartyTraderTypesOut, CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CountriesOut, CountryIn, CountryOut, CurrenciesOut, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, GenericFolioIn, GenericFolioOut, GenericFoliosOut, HolidayIn, HolidayOut, HolidaysOut, IdentificationTypeIn, IdentificationTypeOut, IdentificationTypesOut, LanguagesOut, ManagementAreasOut, OperationTypesOut, PostalLocationsOut, ProductIn, ProductOut, QuestionIn, QuestionOut, QuestionsOut, RegionsOut, ShipmentContentTypesOut, ShipmentGroupsOut, ShipmentIncomeTypeIn, ShipmentIncomeTypeOut, ShipmentIncomeTypesOut, ShipmentScopesOut, ShipmentStatusesOut, UniqueFolioIn, UniqueFolioOut, UniqueFoliosOut, UnitsOut, ZonesOut } from './models/api-catalog.types';
|
|
5
|
+
import { BusinessPartyTraderTypesOut, CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CountriesOut, CountryIn, CountryOut, CurrenciesOut, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, GenericFolioIn, GenericFolioOut, GenericFoliosOut, HolidayIn, HolidayOut, HolidaysOut, IdentificationTypeIn, IdentificationTypeNumberValidationIn, IdentificationTypeNumberValidationOut, IdentificationTypeOut, IdentificationTypesOut, LanguagesOut, ManagementAreasOut, OperationTypesOut, PostalLocationsOut, ProductIn, ProductOut, QuestionIn, QuestionOut, QuestionsOut, RegionsOut, ShipmentContentTypesOut, ShipmentGroupsOut, ShipmentIncomeTypeIn, ShipmentIncomeTypeOut, ShipmentIncomeTypesOut, ShipmentScopesOut, ShipmentStatusesOut, UniqueFolioIn, UniqueFolioOut, UniqueFoliosOut, UnitsOut, ZonesOut } from './models/api-catalog.types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiCatalogsService {
|
|
8
8
|
private environments;
|
|
@@ -77,6 +77,18 @@ export declare class ApiCatalogsService {
|
|
|
77
77
|
* The Observable will emit an error if the HTTP request fails.
|
|
78
78
|
*/
|
|
79
79
|
deleteIdentificationType(id: number): Observable<{}>;
|
|
80
|
+
/**
|
|
81
|
+
* Sends a POST request to validate identification type number.
|
|
82
|
+
*
|
|
83
|
+
* The request payload is sent as an object with a `body` property containing the provided
|
|
84
|
+
* IdentificationTypeNumberValidationIn value (i.e. { body: IdentificationTypeNumberValidationIn }). On success the HTTP response is expected
|
|
85
|
+
* to follow the ApiSuccess<T> shape; the operator maps that response to the inner `data`
|
|
86
|
+
* object and emits it as a IdentificationTypeNumberValidationOut.
|
|
87
|
+
*
|
|
88
|
+
* @param body - The identification type number validation payload to validate (IdentificationTypeNumberValidationIn).
|
|
89
|
+
* @returns Observable<IdentificationTypeNumberValidationOut> that emits the validate status.
|
|
90
|
+
*/
|
|
91
|
+
postIdentificationtTypeNumberValidation(body: IdentificationTypeNumberValidationIn): Observable<IdentificationTypeNumberValidationOut>;
|
|
80
92
|
/**
|
|
81
93
|
* Fetches the extra charges based on the provided query parameters.
|
|
82
94
|
*
|
|
@@ -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
|
}
|
|
@@ -205,6 +205,12 @@ export type HolidayIn = {
|
|
|
205
205
|
countryId: number;
|
|
206
206
|
isActive: boolean;
|
|
207
207
|
};
|
|
208
|
+
export type IdentificationTypeNumberValidationIn = {
|
|
209
|
+
identificationTypeId: number;
|
|
210
|
+
identificationNumber: string;
|
|
211
|
+
section: string;
|
|
212
|
+
};
|
|
213
|
+
export type IdentificationTypeNumberValidationOut = {};
|
|
208
214
|
export type BusinessPartyTraderTypesOut = {
|
|
209
215
|
total: number;
|
|
210
216
|
businessPartyTraderTypes: BusinessPartyTraderType[];
|
|
@@ -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
|
+
};
|