@experteam-mx/ngx-services 18.8.12 → 18.8.13

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 { QueryParams } from './models/api.models';
4
4
  import { Observable } from 'rxjs';
5
- import { CheckpointEventReasonsOut, CheckpointsOut, IncidentIn, IncidentOut, IncidentReasonComplementIn, IncidentReasonComplementOut, IncidentReasonComplementsOut, IncidentReasonIn, IncidentReasonOut, IncidentReasonsOut, IncidentsOut } from './models/api-inventories.types';
5
+ import { CheckpointEventReasonsOut, CheckpointsOut, IncidentIn, IncidentOut, IncidentReasonComplementIn, IncidentReasonComplementOut, IncidentReasonComplementsOut, IncidentReasonIn, IncidentReasonOut, IncidentReasonsOut, IncidentsOut, PackagesInStockIn, PackagesInStockOut } from './models/api-inventories.types';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiInventoriesService {
8
8
  private environments;
@@ -129,6 +129,17 @@ export declare class ApiInventoriesService {
129
129
  * @returns {Observable<IncidentReasonComplementOut>} An observable that emits the result of the delete incident reason complement.
130
130
  */
131
131
  deleteIncidentReasonComplement(id: Number): Observable<IncidentReasonComplementOut>;
132
+ /**
133
+ * Posts packages that are currently in stock.
134
+ *
135
+ * @param body - The input data containing package stock information
136
+ * @returns {Observable<PackagesInStockOut>} An Observable that emits the packages in stock output data
137
+ *
138
+ * @remarks
139
+ * This method sends a POST request to the `/packages/in-stock` endpoint and
140
+ * extracts the data property from the API success response.
141
+ */
142
+ postPackagesInStock(body: PackagesInStockIn): Observable<PackagesInStockOut>;
132
143
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiInventoriesService, never>;
133
144
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiInventoriesService>;
134
145
  }
@@ -54,3 +54,9 @@ export type IncidentReasonComplementIn = {
54
54
  readOnly?: boolean;
55
55
  isActive?: boolean;
56
56
  };
57
+ export type PackagesInStockIn = {
58
+ packageTrackingNumbers: string[];
59
+ };
60
+ export type PackagesInStockOut = {
61
+ inStock: boolean;
62
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.8.12",
3
+ "version": "18.8.13",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [