UNPKG

@experteam-mx/ngx-services

Version:

Angular common services for Experteam apps

36 lines (35 loc) 1.59 kB
import { QueryParams } from './models/api.models'; import { HttpClient } from '@angular/common/http'; import { Environment } from '../ngx-services.models'; import { Observable } from 'rxjs'; import { CookieService } from 'ngx-cookie-service'; import { CompositionCountryReferencesOut, ShipmentOut } from './models/api-composition.types'; import * as i0 from "@angular/core"; export declare class ApiCompositionService { private environments; private cookie; private http; constructor(environments: Environment, cookie: CookieService, http: HttpClient); /** * Retrieves the API security URL from the environment configuration. * * @return {string} The API security URL. */ get url(): string; /** * Retrieves shipment details based on the provided shipment ID. * * @param {number} id - The unique identifier of the shipment to retrieve. * @return {Observable<ShipmentOut>} An observable that emits the details of the shipment. */ getShipment(id: number): Observable<ShipmentOut>; /** * Fetches the country references data based on the provided query parameters. * * @param {QueryParams} params - The query parameters for the API request. * @return {Observable<CompositionCountryReferencesOut>} - An observable emitting the country references. */ getCountryReferences(params: QueryParams): Observable<CompositionCountryReferencesOut>; static ɵfac: i0.ɵɵFactoryDeclaration<ApiCompositionService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ApiCompositionService>; }