@experteam-mx/ngx-services 18.8.16 → 18.8.17
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 +10 -1
- package/esm2022/lib/apis/api-shipments.service.mjs +30 -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-shipments.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +38 -0
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-catalogs.service.d.ts +7 -1
- package/lib/apis/api-shipments.service.d.ts +20 -1
- package/lib/apis/models/api-catalog.interfaces.d.ts +7 -0
- package/lib/apis/models/api-catalog.types.d.ts +5 -1
- package/lib/apis/models/api-shipments.interfaces.d.ts +29 -0
- package/lib/apis/models/api-shipments.types.d.ts +29 -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, 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, 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;
|
|
@@ -435,6 +435,12 @@ export declare class ApiCatalogsService {
|
|
|
435
435
|
* The Observable will emit an error if the HTTP request fails.
|
|
436
436
|
*/
|
|
437
437
|
deleteHoliday(id: number): Observable<{}>;
|
|
438
|
+
/**
|
|
439
|
+
* Retrieves a list of business party trader types
|
|
440
|
+
* @param {QueryParams} params - Query parameters for filtering and pagination (optional)
|
|
441
|
+
* @returns {Observable<BusinessPartyTraderTypesOut>} Observable containing the list of trader types
|
|
442
|
+
*/
|
|
443
|
+
getBusinessPartyTraderTypes(params: QueryParams): Observable<BusinessPartyTraderTypesOut>;
|
|
438
444
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiCatalogsService, never>;
|
|
439
445
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiCatalogsService>;
|
|
440
446
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Environment } from '../ngx-services.models';
|
|
4
|
-
import { ExportTypesOut, ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
|
|
4
|
+
import { EmbassyShipmentIn, EmbassyShipmentOut, EmbassyShipmentsOut, ExportTypesOut, ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
|
|
5
5
|
import { QueryParams } from './models/api.models';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ApiShipmentsService {
|
|
@@ -53,6 +53,25 @@ export declare class ApiShipmentsService {
|
|
|
53
53
|
* @return {Observable<ExportTypesOut>} An observable containing the list of export types.
|
|
54
54
|
*/
|
|
55
55
|
getExportTypes(params: QueryParams): Observable<ExportTypesOut>;
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves a paginated list of embassy shipments
|
|
58
|
+
* @param {QueryParams} params - Query parameters for filtering and pagination
|
|
59
|
+
* @returns {Observable<EmbassyShipmentsOut>} Observable containing the list of shipments and pagination metadata
|
|
60
|
+
*/
|
|
61
|
+
getEmbassyShipments(params: QueryParams): Observable<EmbassyShipmentsOut>;
|
|
62
|
+
/**
|
|
63
|
+
* Creates a new embassy shipment
|
|
64
|
+
* @param {EmbassyShipmentIn} body - The shipment data to create
|
|
65
|
+
* @returns {Observable<EmbassyShipmentOut>} Observable containing the created shipment with its assigned ID
|
|
66
|
+
*/
|
|
67
|
+
postEmbassyShipments(body: EmbassyShipmentIn): Observable<EmbassyShipmentOut>;
|
|
68
|
+
/**
|
|
69
|
+
* Updates an existing embassy shipment
|
|
70
|
+
* @param {number} id - The unique identifier of the shipment to update
|
|
71
|
+
* @param {EmbassyShipmentIn} body - The updated shipment data
|
|
72
|
+
* @returns {Observable<EmbassyShipmentOut>} Observable containing the updated shipment
|
|
73
|
+
*/
|
|
74
|
+
putEmbassyShipments(id: number, body: EmbassyShipmentIn): Observable<EmbassyShipmentOut>;
|
|
56
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiShipmentsService, never>;
|
|
57
76
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiShipmentsService>;
|
|
58
77
|
}
|
|
@@ -210,3 +210,10 @@ export interface Holiday extends SymfonyModel {
|
|
|
210
210
|
description: string;
|
|
211
211
|
country: Country;
|
|
212
212
|
}
|
|
213
|
+
export interface BusinessPartyTraderType extends SymfonyModel {
|
|
214
|
+
code: string;
|
|
215
|
+
name: string;
|
|
216
|
+
description: string | null;
|
|
217
|
+
category: string | null;
|
|
218
|
+
esbCode: string;
|
|
219
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewSectionOption } from './api-catalog.enum';
|
|
2
|
-
import { CancellationReason, Country, Currency, ExtraCharge, GenericFolio, Holiday, IdentificationType, Language, ManagementArea, OperationType, PostalLocation, Product, Question, Region, ShipmentContentType, ShipmentGroup, ShipmentIncomeType, ShipmentScope, ShipmentStatus, UniqueFolio, Unit, Zone } from './api-catalog.interfaces';
|
|
2
|
+
import { BusinessPartyTraderType, CancellationReason, Country, Currency, ExtraCharge, GenericFolio, Holiday, IdentificationType, Language, ManagementArea, OperationType, PostalLocation, Product, Question, Region, ShipmentContentType, ShipmentGroup, ShipmentIncomeType, ShipmentScope, ShipmentStatus, UniqueFolio, Unit, Zone } from './api-catalog.interfaces';
|
|
3
3
|
export type OperationTypesOut = {
|
|
4
4
|
total: number;
|
|
5
5
|
operationTypes: OperationType[];
|
|
@@ -205,3 +205,7 @@ export type HolidayIn = {
|
|
|
205
205
|
countryId: number;
|
|
206
206
|
isActive: boolean;
|
|
207
207
|
};
|
|
208
|
+
export type BusinessPartyTraderTypesOut = {
|
|
209
|
+
total: number;
|
|
210
|
+
businessPartyTraderTypes: BusinessPartyTraderType[];
|
|
211
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
|
|
2
|
+
import { ShipmentContentType } from './api-catalog.interfaces';
|
|
2
3
|
export interface ShipmentEmployeeCustomers extends ActiveLessSymfonyModel {
|
|
3
4
|
trackingNumber: string;
|
|
4
5
|
employeeCustomerId: number;
|
|
@@ -10,3 +11,31 @@ export interface ExportType extends SymfonyModel {
|
|
|
10
11
|
code: string;
|
|
11
12
|
name: string;
|
|
12
13
|
}
|
|
14
|
+
export interface DestinationCountry extends ActiveLessSymfonyModel {
|
|
15
|
+
code: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
18
|
+
export interface EmbassyShipment extends SymfonyModel {
|
|
19
|
+
id: number;
|
|
20
|
+
countryId: number;
|
|
21
|
+
name: string;
|
|
22
|
+
destinationCountry: DestinationCountry;
|
|
23
|
+
destinationCityName: string | null;
|
|
24
|
+
destinationPostalCode: string | null;
|
|
25
|
+
destinationCountyName: string | null;
|
|
26
|
+
contentDescription: string | null;
|
|
27
|
+
shipmentContentType: ShipmentContentType;
|
|
28
|
+
piecesNumber: number | null;
|
|
29
|
+
destinationCompanyName: string | null;
|
|
30
|
+
destinationFullName: string | null;
|
|
31
|
+
destinationAddressLine1: string | null;
|
|
32
|
+
destinationAddressLine2: string | null;
|
|
33
|
+
destinationAddressLine3: string | null;
|
|
34
|
+
destinationPhoneCode: string | null;
|
|
35
|
+
destinationPhoneNumber: string | null;
|
|
36
|
+
destinationEmail: string | null;
|
|
37
|
+
businessPartyTraderTypeId: number | null;
|
|
38
|
+
isActive: boolean;
|
|
39
|
+
createdAt: string;
|
|
40
|
+
updatedAt: string;
|
|
41
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExportType, ShipmentEmployeeCustomers } from './api-shipments.interfaces';
|
|
1
|
+
import { EmbassyShipment, ExportType, ShipmentEmployeeCustomers } from './api-shipments.interfaces';
|
|
2
2
|
import { Document } from './api-invoices.interfaces';
|
|
3
3
|
export type ValidateAccountIn = {
|
|
4
4
|
accountValue: string;
|
|
@@ -91,3 +91,31 @@ export type ExportTypesOut = {
|
|
|
91
91
|
exportTypes: ExportType[];
|
|
92
92
|
total: number;
|
|
93
93
|
};
|
|
94
|
+
export type EmbassyShipmentsOut = {
|
|
95
|
+
total: number;
|
|
96
|
+
embassyShipments: EmbassyShipment[];
|
|
97
|
+
};
|
|
98
|
+
export type EmbassyShipmentIn = {
|
|
99
|
+
countryId: number;
|
|
100
|
+
name: string;
|
|
101
|
+
destinationCountryId: number | null;
|
|
102
|
+
destinationCityName: string | null;
|
|
103
|
+
destinationPostalCode: string | null;
|
|
104
|
+
destinationCountyName: string | null;
|
|
105
|
+
contentDescription: string | null;
|
|
106
|
+
shipmentContentTypeId: number | null;
|
|
107
|
+
piecesNumber: number | null;
|
|
108
|
+
destinationCompanyName: string | null;
|
|
109
|
+
destinationFullName: string | null;
|
|
110
|
+
destinationAddressLine1: string | null;
|
|
111
|
+
destinationAddressLine2: string | null;
|
|
112
|
+
destinationAddressLine3: string | null;
|
|
113
|
+
destinationPhoneCode: string | null;
|
|
114
|
+
destinationPhoneNumber: string | null;
|
|
115
|
+
destinationEmail: string | null;
|
|
116
|
+
businessPartyTraderTypeId: number | null;
|
|
117
|
+
isActive: boolean;
|
|
118
|
+
};
|
|
119
|
+
export interface EmbassyShipmentOut {
|
|
120
|
+
embassyShipment: EmbassyShipment;
|
|
121
|
+
}
|