@experteam-mx/ngx-services 18.8.0 → 18.9.0
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-companies.service.mjs +17 -1
- 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-companies.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 +26 -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-companies.service.d.ts +12 -0
- 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 +1 -5
- package/lib/apis/models/api-companies.types.d.ts +4 -0
- 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
|
*
|
|
@@ -697,6 +697,18 @@ export declare class ApiCompaniesService {
|
|
|
697
697
|
* @returns {Observable<TDXAccountSettingsOut>} An observable containing the updated TDX account setting.
|
|
698
698
|
*/
|
|
699
699
|
putTDXAccountSettings(id: number, body: TDXAccountSettingsIn): Observable<TDXAccountSettingsOut>;
|
|
700
|
+
/**
|
|
701
|
+
* Retrieves the employees of a specific location using a provided token.
|
|
702
|
+
*
|
|
703
|
+
* @param params - Input parameters for the request, defined by the `LocationEmployeesIn` interface.
|
|
704
|
+
* @returns An `Observable<LocationEmployeesOut>` that emits the employees
|
|
705
|
+
* associated with the given location.
|
|
706
|
+
* @returns The response type is `ApiSuccess<LocationEmployeesOut>`, from which the `data` field is extracted.
|
|
707
|
+
*/
|
|
708
|
+
getLocationEmployeesByToken(params: {
|
|
709
|
+
token: string;
|
|
710
|
+
queryParams: QueryParams;
|
|
711
|
+
}): Observable<LocationEmployeesOut>;
|
|
700
712
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiCompaniesService, never>;
|
|
701
713
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiCompaniesService>;
|
|
702
714
|
}
|
|
@@ -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[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Account, AccountCategory, AccountType, BoardingProcess, Company, CompanyCountry, CompanyCountryTax, CountryExchange, CountryReference, CountryReferenceCurrency, CountryReferenceExtraCharge, CountryReferenceProduct, Employee, EmployeeCustomerDhl, ExtraChargeEntity, Installation, Location, LocationEmployee, Parameter, ParameterConfig, ProductEntity, SupplyEntity, System, TDXAccountSetting, WorkflowConfig } from './api-companies.interfaces';
|
|
2
|
+
import { QueryParams } from './api.models';
|
|
2
3
|
export type LocationEmployeesOut = {
|
|
3
4
|
location_employees: LocationEmployee[];
|
|
4
5
|
total: number;
|
|
@@ -451,3 +452,6 @@ export type TDXAccountSettingsIn = {
|
|
|
451
452
|
product_id: number;
|
|
452
453
|
is_active: boolean;
|
|
453
454
|
};
|
|
455
|
+
export type LocationEmployeesIn = {
|
|
456
|
+
token: string;
|
|
457
|
+
} & QueryParams;
|
|
@@ -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
|
+
};
|