@experteam-mx/ngx-services 18.7.7 → 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.
@@ -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;
@@ -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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.7.7",
3
+ "version": "18.7.8",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [