@experteam-mx/ngx-services 18.8.6 → 18.8.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.
@@ -1,7 +1,8 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Environment } from '../ngx-services.models';
4
- import { ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
4
+ import { ExportTypesOut, ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
5
+ import { QueryParams } from './models/api.models';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ApiShipmentsService {
7
8
  private environments;
@@ -45,6 +46,13 @@ export declare class ApiShipmentsService {
45
46
  * @return {Observable<ShipmentCancellationOut>} An observable emitting the result of the cancellation operation.
46
47
  */
47
48
  patchShipmentsCancellation({ shipmentId, reasonId }: ShipmentCancellationIn): Observable<ShipmentCancellationOut>;
49
+ /**
50
+ * Fetches a list of export types based on the provided query parameters.
51
+ *
52
+ * @param {QueryParams} params - The query parameters to filter the export types.
53
+ * @return {Observable<ExportTypesOut>} An observable containing the list of export types.
54
+ */
55
+ getExportTypes(params: QueryParams): Observable<ExportTypesOut>;
48
56
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiShipmentsService, never>;
49
57
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiShipmentsService>;
50
58
  }
@@ -1,4 +1,4 @@
1
- import { ActiveLessSymfonyModel } from './api.models';
1
+ import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
2
2
  export interface ShipmentEmployeeCustomers extends ActiveLessSymfonyModel {
3
3
  trackingNumber: string;
4
4
  employeeCustomerId: number;
@@ -6,3 +6,7 @@ export interface ShipmentEmployeeCustomers extends ActiveLessSymfonyModel {
6
6
  id: number;
7
7
  } | null;
8
8
  }
9
+ export interface ExportType extends SymfonyModel {
10
+ code: string;
11
+ name: string;
12
+ }
@@ -1,4 +1,4 @@
1
- import { ShipmentEmployeeCustomers } from './api-shipments.interfaces';
1
+ import { ExportType, ShipmentEmployeeCustomers } from './api-shipments.interfaces';
2
2
  import { Document } from './api-invoices.interfaces';
3
3
  export type ValidateAccountIn = {
4
4
  accountValue: string;
@@ -87,3 +87,7 @@ export type ShipmentCancellationOut = {
87
87
  emailList: string[];
88
88
  creditNoteDocument: Document | null;
89
89
  };
90
+ export type ExportTypesOut = {
91
+ exportTypes: ExportType[];
92
+ total: number;
93
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.8.6",
3
+ "version": "18.8.7",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [
package/public-api.d.ts CHANGED
@@ -64,6 +64,7 @@ export * from './lib/apis/models/api-security.interfaces';
64
64
  export * from './lib/apis/models/api-security.types';
65
65
  export * from './lib/apis/models/api-services.interfaces';
66
66
  export * from './lib/apis/models/api-services.types';
67
+ export * from './lib/apis/models/api-shipments.interfaces';
67
68
  export * from './lib/apis/models/api-shipments.types';
68
69
  export * from './lib/apis/models/api-supplies.interfaces';
69
70
  export * from './lib/apis/models/api-supplies.types';