@experteam-mx/ngx-services 18.8.13 → 18.8.14

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,7 @@
1
1
  import { HttpClient, HttpResponse } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Environment } from '../ngx-services.models';
4
- import { CollectionPaymentsOut, ExternalShipmentsOut, FileCheckOut, InvoicesOut, PartialWithdrawalsOut, PromotionCodeDiscountsOut, ShipmentsReportOut } from './models/api-reports.types';
4
+ import { CollectionPaymentsOut, ExternalShipmentsOut, FileCheckOut, InvoicesOut, PartialWithdrawalsOut, PromotionCodeDiscountsOut, ShipmentsLandingReportOut, ShipmentsReportOut } from './models/api-reports.types';
5
5
  import { QueryParams } from './models/api.models';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiReportsService {
@@ -28,6 +28,31 @@ export declare class ApiReportsService {
28
28
  * @return {Observable<ShipmentsReportOut>} An observable emitting the shipment report data.
29
29
  */
30
30
  getShipmentsReport(params: QueryParams): Observable<ShipmentsReportOut>;
31
+ /**
32
+ * Retrieves the shipments landing report from the reports API.
33
+ *
34
+ * Sends a GET request to the `/shipments-landing-report` endpoint with the provided query parameters.
35
+ * The HTTP response is expected to be wrapped in an `ApiSuccess` envelope, from which the `data`
36
+ * payload is extracted and returned as the stream value.
37
+ *
38
+ * @param params - Query parameters used to filter or paginate the shipments landing report.
39
+ * @returns An observable that emits the parsed `ShipmentsLandingReportOut` data from the API response.
40
+ *
41
+ * @remarks
42
+ * - The underlying HTTP call uses `HttpClient.get` with `params` serialized as query string values.
43
+ * - The response is piped through `map` to unwrap `data` from `ApiSuccess<T>`.
44
+ * - Errors from the HTTP request are propagated through the observable stream.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * // Basic usage:
49
+ * service.getShipmentsLandingReport({ page: 1, perPage: 25 })
50
+ * .subscribe(report => {
51
+ * // handle ShipmentsLandingReportOut
52
+ * });
53
+ * ```
54
+ */
55
+ getShipmentsLandingReport(params: QueryParams): Observable<ShipmentsLandingReportOut>;
31
56
  /**
32
57
  * Retrieves a report of external shipments based on the provided query parameters.
33
58
  *
@@ -117,6 +117,75 @@ export interface ShipmentReports {
117
117
  };
118
118
  }[];
119
119
  }
120
+ export interface ShipmentLandingReport extends ActiveLessLaravelModel {
121
+ authorization_numbers: string[];
122
+ commercial_invoice: boolean;
123
+ company_id: number;
124
+ company_name: string;
125
+ country_id: number;
126
+ currency_code: string | null;
127
+ document_id: number;
128
+ hasCreditCardPayment: boolean;
129
+ installation_id: number;
130
+ installation_number: number;
131
+ invoice_document_id: number | null;
132
+ is_document: boolean;
133
+ is_manual: boolean;
134
+ itn_number: string;
135
+ location_code: string;
136
+ location_facility_code: string;
137
+ location_id: number;
138
+ location_name: string;
139
+ price_override_approver_name: string;
140
+ price_override_reason_name: string;
141
+ product_global_name: string;
142
+ product_local_name: string;
143
+ question_description: string | null;
144
+ receiver_address_line1: string;
145
+ receiver_city_name: string;
146
+ receiver_company_name: string;
147
+ receiver_country_name: string;
148
+ receiver_full_name: string;
149
+ receiver_postal_code: string;
150
+ receiver_state_name: string;
151
+ send_to_api_inventories: boolean;
152
+ shipment_description: string;
153
+ shipment_group_id: number;
154
+ shipment_group_name: string;
155
+ shipment_pieces_tracking_numbers: string[];
156
+ shipment_status_code: string;
157
+ shipment_status_id: number;
158
+ shipment_status_name_EN: string;
159
+ shipment_status_name_ES: string;
160
+ shipment_status_name_FR: string;
161
+ shipment_status_name_PT: string;
162
+ shipment_tags: ShipmentTag[];
163
+ shipment_tracking_number: string;
164
+ shipment_type: string;
165
+ shipment_value: string;
166
+ shipper_account: string;
167
+ shipper_address_line1: string;
168
+ shipper_address_line2: string;
169
+ shipper_address_line3: string;
170
+ shipper_city_name: string;
171
+ shipper_company_name: string;
172
+ shipper_email: string;
173
+ shipper_full_name: string;
174
+ shipper_full_phone_number: string;
175
+ shipper_identification_number: string;
176
+ shipper_phone_number: string;
177
+ shipper_postal_code: string;
178
+ shipper_state_name: string;
179
+ tracking: string | null;
180
+ user_id: number;
181
+ user_username: string;
182
+ additional_documents: {
183
+ country_id: number;
184
+ include_indemnity_letter: boolean;
185
+ shipment_content_type_id: number;
186
+ shipment_scope_id: number;
187
+ };
188
+ }
120
189
  export interface ShipmentTag extends ActiveLessSymfonyModel {
121
190
  name: string;
122
191
  code: string;
@@ -1,4 +1,4 @@
1
- import { CollectionPayment, Invoice, PartialWithdrawal, PromotionCodeDiscount, ReportExternalShipment, ShipmentReports } from './api-reports.interfaces';
1
+ import { CollectionPayment, Invoice, PartialWithdrawal, PromotionCodeDiscount, ReportExternalShipment, ShipmentLandingReport, ShipmentReports } from './api-reports.interfaces';
2
2
  import { QueryParams } from './api.models';
3
3
  import { Session } from './api-security.interfaces';
4
4
  export type CollectionPaymentsOut = {
@@ -9,6 +9,10 @@ export type ShipmentsReportOut = {
9
9
  shipments: ShipmentReports[];
10
10
  total: number;
11
11
  };
12
+ export type ShipmentsLandingReportOut = {
13
+ shipments_landing: ShipmentLandingReport[];
14
+ total: number;
15
+ };
12
16
  export type ExternalShipmentsOut = {
13
17
  external_shipments: ReportExternalShipment[];
14
18
  total: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.8.13",
3
+ "version": "18.8.14",
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
@@ -23,7 +23,6 @@ export * from './lib/apis/api-security.service';
23
23
  export * from './lib/apis/api-services.service';
24
24
  export * from './lib/apis/api-shipments.service';
25
25
  export * from './lib/apis/api-supplies.service';
26
- export * from './lib/apis/models/api-billing.models';
27
26
  export * from './lib/apis/models/api-billing-do.interfaces';
28
27
  export * from './lib/apis/models/api-billing-do.types';
29
28
  export * from './lib/apis/models/api-billing-mx.interfaces';
@@ -32,6 +31,7 @@ export * from './lib/apis/models/api-billing-pa.interfaces';
32
31
  export * from './lib/apis/models/api-billing-pa.types';
33
32
  export * from './lib/apis/models/api-billing-sv.interfaces';
34
33
  export * from './lib/apis/models/api-billing-sv.types';
34
+ export * from './lib/apis/models/api-billing.models';
35
35
  export * from './lib/apis/models/api-cash-operations.interfaces';
36
36
  export * from './lib/apis/models/api-cash-operations.types';
37
37
  export * from './lib/apis/models/api-catalog.enum';
@@ -45,11 +45,11 @@ export * from './lib/apis/models/api-customs.interfaces';
45
45
  export * from './lib/apis/models/api-customs.types';
46
46
  export * from './lib/apis/models/api-discounts.interfaces';
47
47
  export * from './lib/apis/models/api-discounts.types';
48
+ export * from './lib/apis/models/api-e-tools-auto-billing.interfaces';
49
+ export * from './lib/apis/models/api-e-tools-auto-billing.types';
48
50
  export * from './lib/apis/models/api-events.enum';
49
51
  export * from './lib/apis/models/api-events.interfaces';
50
52
  export * from './lib/apis/models/api-events.types';
51
- export * from './lib/apis/models/api-e-tools-auto-billing.interfaces';
52
- export * from './lib/apis/models/api-e-tools-auto-billing.types';
53
53
  export * from './lib/apis/models/api-external-pickups.types';
54
54
  export * from './lib/apis/models/api-inventories.enum';
55
55
  export * from './lib/apis/models/api-inventories.interfaces';
@@ -61,6 +61,7 @@ export * from './lib/apis/models/api-notifications.types';
61
61
  export * from './lib/apis/models/api-open-items.interfaces';
62
62
  export * from './lib/apis/models/api-open-items.types';
63
63
  export * from './lib/apis/models/api-reports.interfaces';
64
+ export * from './lib/apis/models/api-reports.types';
64
65
  export * from './lib/apis/models/api-security.interfaces';
65
66
  export * from './lib/apis/models/api-security.types';
66
67
  export * from './lib/apis/models/api-services.interfaces';