@experteam-mx/ngx-services 18.7.6 → 18.7.8
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 +21 -1
- package/esm2022/lib/apis/api-composition.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.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-composition.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +30 -0
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-catalogs.service.d.ts +15 -1
- package/lib/apis/api-composition.service.d.ts +9 -1
- package/lib/apis/models/api-catalog.interfaces.d.ts +9 -0
- package/lib/apis/models/api-catalog.types.d.ts +9 -1
- package/lib/apis/models/api-companies.interfaces.d.ts +1 -1
- package/lib/apis/models/api-composition.types.d.ts +5 -0
- package/lib/apis/models/api-invoices.interfaces.d.ts +4 -8
- package/lib/apis/models/api-reports.interfaces.d.ts +9 -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, PostalLocationsOut, ProductIn, ProductOut, RegionsOut, ShipmentContentTypesOut, ShipmentIncomeTypeIn, ShipmentIncomeTypeOut, ShipmentIncomeTypesOut, ShipmentScopesOut, UniqueFolioIn, UniqueFolioOut, UniqueFoliosOut, UnitsOut, ZonesOut } from './models/api-catalog.types';
|
|
5
|
+
import { CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CountriesOut, CountryIn, CountryOut, CurrenciesOut, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, GenericFolioIn, GenericFolioOut, GenericFoliosOut, IdentificationTypesOut, LanguagesOut, ManagementAreasOut, OperationTypesOut, PostalLocationsOut, ProductIn, ProductOut, 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;
|
|
@@ -254,6 +254,20 @@ export declare class ApiCatalogsService {
|
|
|
254
254
|
* @return {Observable<UniqueFolioOut>} An observable emitting the updated unique folio data.
|
|
255
255
|
*/
|
|
256
256
|
pathUniqueFolio(id: number, body: Partial<UniqueFolioIn>): Observable<UniqueFolioOut>;
|
|
257
|
+
/**
|
|
258
|
+
* Retrieves shipment groups based on the provided query parameters.
|
|
259
|
+
*
|
|
260
|
+
* @param params - The query parameters to filter the shipment groups.
|
|
261
|
+
* @returns An Observable that emits the shipment groups data.
|
|
262
|
+
*/
|
|
263
|
+
getShipmentGroups(params: QueryParams): Observable<ShipmentGroupsOut>;
|
|
264
|
+
/**
|
|
265
|
+
* Retrieves the shipment statuses from the API.
|
|
266
|
+
*
|
|
267
|
+
* @param params - The query parameters to filter or modify the request.
|
|
268
|
+
* @returns An Observable that emits the shipment statuses output.
|
|
269
|
+
*/
|
|
270
|
+
getShipmentStatuses(params: QueryParams): Observable<ShipmentStatusesOut>;
|
|
257
271
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiCatalogsService, never>;
|
|
258
272
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiCatalogsService>;
|
|
259
273
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { QueryParams } from './models/api.models';
|
|
1
2
|
import { HttpClient } from '@angular/common/http';
|
|
2
3
|
import { Environment } from '../ngx-services.models';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
5
|
import { CookieService } from 'ngx-cookie-service';
|
|
5
|
-
import { ShipmentOut } from './models/api-composition.types';
|
|
6
|
+
import { CompositionCountryReferencesOut, ShipmentOut } from './models/api-composition.types';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class ApiCompositionService {
|
|
8
9
|
private environments;
|
|
@@ -22,6 +23,13 @@ export declare class ApiCompositionService {
|
|
|
22
23
|
* @return {Observable<ShipmentOut>} An observable that emits the details of the shipment.
|
|
23
24
|
*/
|
|
24
25
|
getShipment(id: number): Observable<ShipmentOut>;
|
|
26
|
+
/**
|
|
27
|
+
* Fetches the country references data based on the provided query parameters.
|
|
28
|
+
*
|
|
29
|
+
* @param {QueryParams} params - The query parameters for the API request.
|
|
30
|
+
* @return {Observable<CompositionCountryReferencesOut>} - An observable emitting the country references.
|
|
31
|
+
*/
|
|
32
|
+
getCountryReferences(params: QueryParams): Observable<CompositionCountryReferencesOut>;
|
|
25
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiCompositionService, never>;
|
|
26
34
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiCompositionService>;
|
|
27
35
|
}
|
|
@@ -27,6 +27,7 @@ export interface Country extends SymfonyModel {
|
|
|
27
27
|
others_printer_name: string;
|
|
28
28
|
territories: number[];
|
|
29
29
|
use_billing?: boolean;
|
|
30
|
+
translations: Translations;
|
|
30
31
|
}
|
|
31
32
|
export interface LocationType extends SymfonyModel {
|
|
32
33
|
code: string;
|
|
@@ -188,3 +189,11 @@ export interface UniqueFolio extends SymfonyModel {
|
|
|
188
189
|
kad: string | null;
|
|
189
190
|
executive: string;
|
|
190
191
|
}
|
|
192
|
+
export interface ShipmentGroup extends SymfonyModel {
|
|
193
|
+
code: string;
|
|
194
|
+
name: string;
|
|
195
|
+
}
|
|
196
|
+
export interface ShipmentStatus extends SymfonyModel {
|
|
197
|
+
code: string;
|
|
198
|
+
description: string;
|
|
199
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CancellationReason, Country, Currency, ExtraCharge, GenericFolio, IdentificationType, Language, ManagementArea, OperationType, PostalLocation, Product, Region, ShipmentContentType, ShipmentIncomeType, ShipmentScope, UniqueFolio, Unit, Zone } from './api-catalog.interfaces';
|
|
1
|
+
import { CancellationReason, Country, Currency, ExtraCharge, GenericFolio, IdentificationType, Language, ManagementArea, OperationType, PostalLocation, Product, 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[];
|
|
@@ -155,3 +155,11 @@ export type UniqueFoliosOut = {
|
|
|
155
155
|
total: number;
|
|
156
156
|
uniqueFolios: UniqueFolio[];
|
|
157
157
|
};
|
|
158
|
+
export type ShipmentGroupsOut = {
|
|
159
|
+
shipmentGroups: ShipmentGroup[];
|
|
160
|
+
total: number;
|
|
161
|
+
};
|
|
162
|
+
export type ShipmentStatusesOut = {
|
|
163
|
+
shipmentStatuses: ShipmentStatus[];
|
|
164
|
+
total: number;
|
|
165
|
+
};
|
|
@@ -2,7 +2,7 @@ import { ActiveLessLaravelModel, LaravelModel } from './api.models';
|
|
|
2
2
|
import { BoardingProcessStatus, Country, Currency, IdentificationType, Product, State } from './api-catalog.interfaces';
|
|
3
3
|
export interface Account extends LaravelModel {
|
|
4
4
|
number: string;
|
|
5
|
-
description: string;
|
|
5
|
+
description: string | null;
|
|
6
6
|
account_type_id: number;
|
|
7
7
|
account_type: AccountType;
|
|
8
8
|
country_id: number;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ShipmentComposition } from './api-composition.interfaces';
|
|
2
|
+
import { CountryReference } from './api-companies.interfaces';
|
|
2
3
|
export type ShipmentOut = {
|
|
3
4
|
shipment: ShipmentComposition;
|
|
4
5
|
};
|
|
6
|
+
export type CompositionCountryReferencesOut = {
|
|
7
|
+
country_references: CountryReference[];
|
|
8
|
+
total: number;
|
|
9
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LaravelModel } from './api.models';
|
|
1
|
+
import { LaravelModel, Translations } from './api.models';
|
|
2
2
|
import { Currency, IdentificationType } from './api-catalog.interfaces';
|
|
3
3
|
export interface Document extends LaravelModel {
|
|
4
4
|
document_type_range_id: number;
|
|
@@ -102,16 +102,12 @@ export interface DocumentItem extends LaravelModel {
|
|
|
102
102
|
details_json: string;
|
|
103
103
|
}
|
|
104
104
|
export interface DocumentPayment extends LaravelModel {
|
|
105
|
-
id: number;
|
|
106
105
|
document_id: number;
|
|
107
106
|
payment_id: number;
|
|
108
107
|
amount: number;
|
|
109
|
-
created_at: string;
|
|
110
|
-
updated_at: string;
|
|
111
108
|
payment: Payment;
|
|
112
109
|
}
|
|
113
110
|
export interface Payment extends LaravelModel {
|
|
114
|
-
id: number;
|
|
115
111
|
amount: number;
|
|
116
112
|
country_reference_currency_id: number;
|
|
117
113
|
exchange: number;
|
|
@@ -120,20 +116,19 @@ export interface Payment extends LaravelModel {
|
|
|
120
116
|
received: number;
|
|
121
117
|
status: number;
|
|
122
118
|
details: {};
|
|
123
|
-
created_at: string;
|
|
124
|
-
updated_at: string;
|
|
125
119
|
transaction_id: string;
|
|
126
120
|
gmt_offset: string;
|
|
127
121
|
country_payment_type_id: number;
|
|
128
122
|
opening_id: number;
|
|
129
123
|
installation_id: number;
|
|
130
|
-
details_json:
|
|
124
|
+
details_json: string;
|
|
131
125
|
payment_adjustment: {};
|
|
132
126
|
pivot: {
|
|
133
127
|
document_id: number;
|
|
134
128
|
payment_id: number;
|
|
135
129
|
amount: number;
|
|
136
130
|
};
|
|
131
|
+
countryPaymentType: CountryPaymentType;
|
|
137
132
|
}
|
|
138
133
|
export interface Customer extends LaravelModel {
|
|
139
134
|
identification_number: number;
|
|
@@ -178,6 +173,7 @@ export interface CountryPaymentType extends LaravelModel {
|
|
|
178
173
|
code: string;
|
|
179
174
|
country_payment_type_fields: CountryPaymentTypeField[];
|
|
180
175
|
payment_type: PaymentType;
|
|
176
|
+
translations: Translations;
|
|
181
177
|
}
|
|
182
178
|
export interface CountryPaymentTypeField extends LaravelModel {
|
|
183
179
|
country_payment_type_id: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActiveLessLaravelModel, ApiModel, LaravelModel, Translations } from './api.models';
|
|
1
|
+
import { ActiveLessLaravelModel, ActiveLessSymfonyModel, ApiModel, LaravelModel, Translations } from './api.models';
|
|
2
2
|
import { DocumentPayment } from './api-invoices.interfaces';
|
|
3
3
|
import { OperationType } from './api-catalog.interfaces';
|
|
4
4
|
export interface CollectionPayment extends LaravelModel {
|
|
@@ -133,17 +133,20 @@ export interface ShipmentReports extends LaravelModel {
|
|
|
133
133
|
shipment_status_code: string;
|
|
134
134
|
shipment_status_description: string;
|
|
135
135
|
shipment_status_id: number;
|
|
136
|
+
shipment_tags: ShipmentTag[];
|
|
136
137
|
shipment_tracking_number: string;
|
|
137
138
|
shipment_type: string;
|
|
138
139
|
shipment_value: number;
|
|
139
140
|
shipper_account: string;
|
|
140
141
|
shipper_address_line1: string;
|
|
141
142
|
shipper_address_line2: string;
|
|
143
|
+
shipper_address_line3: string;
|
|
142
144
|
shipper_city_name: string;
|
|
143
145
|
shipper_company_name: string;
|
|
144
146
|
shipper_email: string;
|
|
145
147
|
shipper_full_name: string;
|
|
146
148
|
shipper_full_phone_number: string;
|
|
149
|
+
shipper_identification_number: string;
|
|
147
150
|
shipper_phone_code: string;
|
|
148
151
|
shipper_phone_number: string;
|
|
149
152
|
shipper_postal_code: string;
|
|
@@ -197,6 +200,11 @@ export interface ShipmentReports extends LaravelModel {
|
|
|
197
200
|
};
|
|
198
201
|
};
|
|
199
202
|
}
|
|
203
|
+
export interface ShipmentTag extends ActiveLessSymfonyModel {
|
|
204
|
+
name: string;
|
|
205
|
+
code: string;
|
|
206
|
+
translations: Translations;
|
|
207
|
+
}
|
|
200
208
|
export interface ReportExternalShipment extends ActiveLessLaravelModel {
|
|
201
209
|
account_number: string;
|
|
202
210
|
collection_date: string;
|