@experteam-mx/ngx-services 18.8.11 → 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
+ };
@@ -172,13 +172,13 @@ export interface PromotionCodeDiscount extends ApiModel {
172
172
  origin_full_name: string;
173
173
  promotion_code: string;
174
174
  discount_percentage: number;
175
- amount_details: PromotionCodeDiscountAmountDetail[];
175
+ product_subtotals: ProductSubtotal[];
176
176
  }
177
- export interface PromotionCodeDiscountAmountDetail {
177
+ export interface ProductSubtotal {
178
178
  country_reference_currency_id: number;
179
179
  currency_id: number;
180
180
  currency_code: string;
181
- product_subtotal: number;
181
+ value: number;
182
182
  shipment_total: number;
183
183
  discount_amount: number;
184
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.8.11",
3
+ "version": "18.8.13",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [