@experteam-mx/ngx-services 18.8.1 → 18.9.1
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 +1 -11
- package/esm2022/lib/apis/api-services.service.mjs +11 -1
- package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-catalog.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-services.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-services.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +10 -10
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-catalogs.service.d.ts +1 -8
- package/lib/apis/api-services.service.d.ts +7 -1
- package/lib/apis/models/api-catalog.interfaces.d.ts +0 -8
- package/lib/apis/models/api-catalog.types.d.ts +2 -6
- package/lib/apis/models/api-services.interfaces.d.ts +6 -0
- package/lib/apis/models/api-services.types.d.ts +11 -1
- 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 { CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CountriesOut, CountryIn, CountryOut, CurrenciesOut, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, GenericFolioIn, GenericFolioOut, GenericFoliosOut, IdentificationTypesOut, LanguagesOut, ManagementAreasOut, OperationTypesOut,
|
|
5
|
+
import { CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CountriesOut, CountryIn, CountryOut, CurrenciesOut, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, GenericFolioIn, GenericFolioOut, GenericFoliosOut, IdentificationTypesOut, LanguagesOut, ManagementAreasOut, OperationTypesOut, 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;
|
|
@@ -72,13 +72,6 @@ export declare class ApiCatalogsService {
|
|
|
72
72
|
* @return {Observable<CountryOut>} An observable that emits the updated country data.
|
|
73
73
|
*/
|
|
74
74
|
putCountry(id: number, body: CountryIn): Observable<CountryOut>;
|
|
75
|
-
/**
|
|
76
|
-
* Fetches postal location details based on the provided query parameters.
|
|
77
|
-
*
|
|
78
|
-
* @param {QueryParams} params - The query parameters to filter and fetch postal location data.
|
|
79
|
-
* @return {Observable<PostalLocationsOut>} An observable that emits the postal location details.
|
|
80
|
-
*/
|
|
81
|
-
getPostalLocations(params: QueryParams): Observable<PostalLocationsOut>;
|
|
82
75
|
/**
|
|
83
76
|
* Fetches a list of regions based on the provided query parameters.
|
|
84
77
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Environment } from '../ngx-services.models';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { ValidateFacilityIn, ValidateFacilityOut, ServiceAreasOut, EmailErrorIn, PromotionIn, PromotionOut, ValidateNIPOut, ValidateNIPIn, ValidateIdentificationBROut, ValidateIdentificationBRIn, ServiceAreaIn } from './models/api-services.types';
|
|
4
|
+
import { ValidateFacilityIn, ValidateFacilityOut, ServiceAreasOut, EmailErrorIn, PromotionIn, PromotionOut, ValidateNIPOut, ValidateNIPIn, ValidateIdentificationBROut, ValidateIdentificationBRIn, ServiceAreaIn, PostalLocationsOut, GetPostalLocationsIn } from './models/api-services.types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ApiServicesService {
|
|
7
7
|
private environments;
|
|
@@ -56,6 +56,12 @@ export declare class ApiServicesService {
|
|
|
56
56
|
* @return {Observable<ValidateIdentificationBROut>} An observable emitting the response containing the BR Identification validated data.
|
|
57
57
|
*/
|
|
58
58
|
postValidateIdentificationBR(body: ValidateIdentificationBRIn): Observable<ValidateIdentificationBROut>;
|
|
59
|
+
/**
|
|
60
|
+
* Fetches postal location details based on the provided query parameters.
|
|
61
|
+
* @param {GetPostalLocationsIn} queryParams - The query parameters to filter and fetch postal location data.
|
|
62
|
+
* @return {Observable<PostalLocationsOut>} An observable that emits the postal location details.
|
|
63
|
+
*/
|
|
64
|
+
getPostalLocations(queryParams: GetPostalLocationsIn): Observable<PostalLocationsOut>;
|
|
59
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiServicesService, never>;
|
|
60
66
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiServicesService>;
|
|
61
67
|
}
|
|
@@ -95,14 +95,6 @@ export interface ExtraCharge extends SymfonyModel {
|
|
|
95
95
|
name: string;
|
|
96
96
|
isDiscount: boolean;
|
|
97
97
|
}
|
|
98
|
-
export interface PostalLocation extends SymfonyModel {
|
|
99
|
-
city: string | null;
|
|
100
|
-
postalCode: string | null;
|
|
101
|
-
suburb: string | null;
|
|
102
|
-
stateCode: string | null;
|
|
103
|
-
iata: string;
|
|
104
|
-
state: State | null;
|
|
105
|
-
}
|
|
106
98
|
export interface Region extends SymfonyModel {
|
|
107
99
|
code: string;
|
|
108
100
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CancellationReason, Country, Currency, ExtraCharge, GenericFolio, IdentificationType, Language, ManagementArea, OperationType,
|
|
1
|
+
import { CancellationReason, Country, Currency, ExtraCharge, GenericFolio, IdentificationType, Language, ManagementArea, OperationType, Product, Question, Region, ShipmentContentType, ShipmentGroup, ShipmentIncomeType, ShipmentScope, ShipmentStatus, UniqueFolio, Unit, Zone } from './api-catalog.interfaces';
|
|
2
2
|
export type OperationTypesOut = {
|
|
3
3
|
total: number;
|
|
4
4
|
operationTypes: OperationType[];
|
|
@@ -30,10 +30,6 @@ export type CountryIn = {
|
|
|
30
30
|
export type CountryOut = {
|
|
31
31
|
country: Country;
|
|
32
32
|
};
|
|
33
|
-
export type PostalLocationsOut = {
|
|
34
|
-
total: number;
|
|
35
|
-
postalLocations: PostalLocation[];
|
|
36
|
-
};
|
|
37
33
|
export type RegionsOut = {
|
|
38
34
|
total: number;
|
|
39
35
|
regions: Region[];
|
|
@@ -44,7 +40,7 @@ export type ZonesOut = {
|
|
|
44
40
|
};
|
|
45
41
|
export type ManagementAreasOut = {
|
|
46
42
|
total: number;
|
|
47
|
-
|
|
43
|
+
managementAreas: ManagementArea[];
|
|
48
44
|
};
|
|
49
45
|
export type CancellationReasonsOut = {
|
|
50
46
|
total: number;
|
|
@@ -41,3 +41,9 @@ export interface Facility extends SymfonyModel {
|
|
|
41
41
|
facilityPrintIndicator: string;
|
|
42
42
|
effectiveDate: string;
|
|
43
43
|
}
|
|
44
|
+
export interface PostalLocation {
|
|
45
|
+
city: string | null;
|
|
46
|
+
postalCode: string | null;
|
|
47
|
+
suburb: string | null;
|
|
48
|
+
stateCode: string | null;
|
|
49
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Facility, ServiceArea } from './api-services.interfaces';
|
|
1
|
+
import { Facility, PostalLocation, ServiceArea } from './api-services.interfaces';
|
|
2
2
|
export type ServiceAreaIn = {
|
|
3
3
|
countryCodes: string[];
|
|
4
4
|
};
|
|
@@ -55,3 +55,13 @@ export type ValidateIdentificationBRIn = {
|
|
|
55
55
|
identification_number: string;
|
|
56
56
|
validate_state_tax: boolean;
|
|
57
57
|
};
|
|
58
|
+
export type PostalLocationsOut = {
|
|
59
|
+
postalLocations: PostalLocation[];
|
|
60
|
+
};
|
|
61
|
+
export type GetPostalLocationsIn = {
|
|
62
|
+
limit?: number;
|
|
63
|
+
countryId: number;
|
|
64
|
+
city?: string;
|
|
65
|
+
postalCode?: string;
|
|
66
|
+
suburb?: string;
|
|
67
|
+
};
|