@experteam-mx/ngx-services 18.7.5 → 18.7.7

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.
@@ -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
  }
@@ -188,3 +188,11 @@ export interface UniqueFolio extends SymfonyModel {
188
188
  kad: string | null;
189
189
  executive: string;
190
190
  }
191
+ export interface ShipmentGroup extends SymfonyModel {
192
+ code: string;
193
+ name: string;
194
+ }
195
+ export interface ShipmentStatus extends SymfonyModel {
196
+ code: string;
197
+ description: string;
198
+ }
@@ -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
+ };
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.7.5",
3
+ "version": "18.7.7",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [