@experteam-mx/ngx-services 18.9.13 → 18.9.15

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.
Files changed (107) hide show
  1. package/README.md +24 -24
  2. package/esm2022/lib/apis/api-billing-do.service.mjs +1 -1
  3. package/esm2022/lib/apis/api-billing-gt.service.mjs +1 -1
  4. package/esm2022/lib/apis/api-billing-mx.service.mjs +1 -1
  5. package/esm2022/lib/apis/api-billing-pa.service.mjs +1 -1
  6. package/esm2022/lib/apis/api-billing-sv.service.mjs +1 -1
  7. package/esm2022/lib/apis/api-cash-operations.service.mjs +1 -1
  8. package/esm2022/lib/apis/api-catalogs.service.mjs +1 -1
  9. package/esm2022/lib/apis/api-companies.service.mjs +2 -2
  10. package/esm2022/lib/apis/api-composition.service.mjs +1 -1
  11. package/esm2022/lib/apis/api-customs.service.mjs +1 -1
  12. package/esm2022/lib/apis/api-discounts.service.mjs +1 -1
  13. package/esm2022/lib/apis/api-e-tools-auto-billing.service.mjs +1 -1
  14. package/esm2022/lib/apis/api-events.service.mjs +1 -1
  15. package/esm2022/lib/apis/api-external-ops.service.mjs +87 -0
  16. package/esm2022/lib/apis/api-inventories.service.mjs +15 -1
  17. package/esm2022/lib/apis/api-invoices.service.mjs +1 -1
  18. package/esm2022/lib/apis/api-notifications.service.mjs +1 -1
  19. package/esm2022/lib/apis/api-open-items.service.mjs +1 -1
  20. package/esm2022/lib/apis/api-quote.service.mjs +87 -0
  21. package/esm2022/lib/apis/api-reports.service.mjs +29 -1
  22. package/esm2022/lib/apis/api-security.service.mjs +1 -1
  23. package/esm2022/lib/apis/api-services.service.mjs +1 -1
  24. package/esm2022/lib/apis/api-shipments.service.mjs +1 -1
  25. package/esm2022/lib/apis/api-supplies.service.mjs +1 -1
  26. package/esm2022/lib/apis/models/api-billing-do.interfaces.mjs +1 -1
  27. package/esm2022/lib/apis/models/api-billing-do.types.mjs +1 -1
  28. package/esm2022/lib/apis/models/api-billing-mx.interfaces.mjs +1 -1
  29. package/esm2022/lib/apis/models/api-billing-mx.types.mjs +1 -1
  30. package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +1 -1
  31. package/esm2022/lib/apis/models/api-billing-pa.types.mjs +1 -1
  32. package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +1 -1
  33. package/esm2022/lib/apis/models/api-billing-sv.types.mjs +1 -1
  34. package/esm2022/lib/apis/models/api-billing.models.mjs +1 -1
  35. package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +1 -1
  36. package/esm2022/lib/apis/models/api-cash-operations.types.mjs +1 -1
  37. package/esm2022/lib/apis/models/api-catalog.enum.mjs +1 -1
  38. package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +1 -1
  39. package/esm2022/lib/apis/models/api-catalog.types.mjs +1 -1
  40. package/esm2022/lib/apis/models/api-companies.interfaces.mjs +1 -1
  41. package/esm2022/lib/apis/models/api-companies.types.mjs +1 -1
  42. package/esm2022/lib/apis/models/api-composition.interfaces.mjs +1 -1
  43. package/esm2022/lib/apis/models/api-composition.types.mjs +1 -1
  44. package/esm2022/lib/apis/models/api-customs.interfaces.mjs +1 -1
  45. package/esm2022/lib/apis/models/api-customs.types.mjs +1 -1
  46. package/esm2022/lib/apis/models/api-discounts.interfaces.mjs +1 -1
  47. package/esm2022/lib/apis/models/api-discounts.types.mjs +1 -1
  48. package/esm2022/lib/apis/models/api-e-tools-auto-billing.interfaces.mjs +1 -1
  49. package/esm2022/lib/apis/models/api-e-tools-auto-billing.types.mjs +1 -1
  50. package/esm2022/lib/apis/models/api-events.enum.mjs +1 -1
  51. package/esm2022/lib/apis/models/api-events.interfaces.mjs +1 -1
  52. package/esm2022/lib/apis/models/api-events.types.mjs +1 -1
  53. package/esm2022/lib/apis/models/api-external-ops.interfaces.mjs +2 -0
  54. package/esm2022/lib/apis/models/api-external-ops.types.mjs +2 -0
  55. package/esm2022/lib/apis/models/api-inventories.enum.mjs +1 -1
  56. package/esm2022/lib/apis/models/api-inventories.interfaces.mjs +1 -1
  57. package/esm2022/lib/apis/models/api-inventories.types.mjs +1 -1
  58. package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +1 -1
  59. package/esm2022/lib/apis/models/api-invoices.types.mjs +1 -1
  60. package/esm2022/lib/apis/models/api-notifications.interfaces.mjs +1 -1
  61. package/esm2022/lib/apis/models/api-notifications.types.mjs +1 -1
  62. package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +1 -1
  63. package/esm2022/lib/apis/models/api-open-items.types.mjs +1 -1
  64. package/esm2022/lib/apis/models/api-quote.interfaces.mjs +2 -0
  65. package/esm2022/lib/apis/models/api-quote.types.mjs +2 -0
  66. package/esm2022/lib/apis/models/api-reports.interfaces.mjs +1 -1
  67. package/esm2022/lib/apis/models/api-reports.types.mjs +1 -1
  68. package/esm2022/lib/apis/models/api-security.interfaces.mjs +1 -1
  69. package/esm2022/lib/apis/models/api-security.types.mjs +1 -1
  70. package/esm2022/lib/apis/models/api-services.interfaces.mjs +1 -1
  71. package/esm2022/lib/apis/models/api-services.types.mjs +1 -1
  72. package/esm2022/lib/apis/models/api-shipments.enums.mjs +1 -1
  73. package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +1 -1
  74. package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
  75. package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +1 -1
  76. package/esm2022/lib/apis/models/api-supplies.types.mjs +1 -1
  77. package/esm2022/lib/apis/models/api.models.mjs +1 -1
  78. package/esm2022/lib/cypher/crypto.service.mjs +1 -1
  79. package/esm2022/lib/helpers/files.mjs +1 -1
  80. package/esm2022/lib/helpers/http.mjs +1 -1
  81. package/esm2022/lib/interceptors/api-headers.interceptor.mjs +1 -1
  82. package/esm2022/lib/interceptors/api-key.interceptor.mjs +48 -0
  83. package/esm2022/lib/interceptors/api-token.interceptor.mjs +1 -1
  84. package/esm2022/lib/interceptors/http-caching.interceptor.mjs +1 -1
  85. package/esm2022/lib/ngx-services.models.mjs +1 -1
  86. package/esm2022/lib/ngx-services.module.mjs +1 -1
  87. package/esm2022/lib/websockets/web-sockets.service.mjs +1 -1
  88. package/esm2022/public-api.mjs +13 -8
  89. package/fesm2022/experteam-mx-ngx-services.mjs +257 -73
  90. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  91. package/lib/apis/{api-external-pickups.service.d.ts → api-external-ops.service.d.ts} +15 -7
  92. package/lib/apis/api-inventories.service.d.ts +12 -1
  93. package/lib/apis/api-quote.service.d.ts +65 -0
  94. package/lib/apis/api-reports.service.d.ts +26 -1
  95. package/lib/apis/models/api-external-ops.interfaces.d.ts +21 -0
  96. package/lib/apis/models/{api-external-pickups.types.d.ts → api-external-ops.types.d.ts} +4 -0
  97. package/lib/apis/models/api-inventories.types.d.ts +6 -0
  98. package/lib/apis/models/api-quote.interfaces.d.ts +13 -0
  99. package/lib/apis/models/api-quote.types.d.ts +17 -0
  100. package/lib/apis/models/api-reports.interfaces.d.ts +78 -0
  101. package/lib/apis/models/api-reports.types.d.ts +5 -1
  102. package/lib/interceptors/api-key.interceptor.d.ts +35 -0
  103. package/lib/ngx-services.models.d.ts +1 -0
  104. package/package.json +1 -1
  105. package/public-api.d.ts +12 -7
  106. package/esm2022/lib/apis/api-external-pickups.service.mjs +0 -74
  107. package/esm2022/lib/apis/models/api-external-pickups.types.mjs +0 -2
@@ -1,13 +1,13 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { Environment } from '../ngx-services.models';
3
- import { DeliveryConfirmationCompleteIn, DeliveryConfirmationGenerateIn, DeliveryConfirmationGenerateOut, DeliveryConfirmationIn } from './models/api-external-pickups.types';
4
2
  import { Observable } from 'rxjs';
3
+ import { Environment } from '../ngx-services.models';
4
+ import { DeliveryConfirmationCompleteIn, DeliveryConfirmationGenerateIn, DeliveryConfirmationGenerateOut, DeliveryConfirmationIn, DeliveryConfirmationSearchOut } from './models/api-external-ops.types';
5
5
  import * as i0 from "@angular/core";
6
- export declare class ApiExternalPickupsService {
7
- private httpClient;
6
+ export declare class ApiExternalOperationsService {
7
+ private http;
8
8
  private environment;
9
9
  private appKey;
10
- constructor(httpClient: HttpClient, environment: Environment);
10
+ constructor(http: HttpClient, environment: Environment);
11
11
  /**
12
12
  * Getter method to retrieve the API's external operations URL.
13
13
  * Fetches the URL from the `apiExternalOperationsUrl` property of the environment object.
@@ -16,6 +16,13 @@ export declare class ApiExternalPickupsService {
16
16
  * @return {string} The external operations URL or an empty string if unavailable.
17
17
  */
18
18
  get url(): string;
19
+ /**
20
+ * Retrieves delivery confirmation details based on the provided OTP code.
21
+ *
22
+ * @param {string} otpCode - The OTP code used to search for delivery confirmation.
23
+ * @return {Observable<DeliveryConfirmationData>} An observable containing the delivery confirmation data.
24
+ */
25
+ getDeliveryConfirmation(otpCode: string): Observable<DeliveryConfirmationSearchOut>;
19
26
  /**
20
27
  * Generates a delivery confirmation by sending the provided payload to the API.
21
28
  *
@@ -41,6 +48,7 @@ export declare class ApiExternalPickupsService {
41
48
  * @return {Observable<Object>} An observable that emits the server's response when the cancellation is processed.
42
49
  */
43
50
  putDeliveryConfirmation({ otp, ...body }: DeliveryConfirmationIn): Observable<{}>;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiExternalPickupsService, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiExternalPickupsService>;
51
+ private getAppKeyHeader;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiExternalOperationsService, never>;
53
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiExternalOperationsService>;
46
54
  }
@@ -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
  }
@@ -0,0 +1,65 @@
1
+ import { Environment } from '../ngx-services.models';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { QueryParams } from './models/api.models';
4
+ import { Observable } from 'rxjs';
5
+ import { QuoteEventIn, QuoteEventOut, QuoteEventsOut, QuoteEventTypesOut } from './models/api-quote.types';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Service to manage quote-related events.
9
+ *
10
+ * This service provides methods to retrieve, create, and get event types
11
+ * related to quote processes.
12
+ */
13
+ export declare class ApiQuoteService {
14
+ private environments;
15
+ private http;
16
+ constructor(environments: Environment, http: HttpClient);
17
+ /**
18
+ * Base URL for the Quotes API.
19
+ */
20
+ get url(): string;
21
+ /**
22
+ * Retrieves all registered events for a specific quote.
23
+ *
24
+ * @param id - Quote identifier.
25
+ * @param params - Optional query parameters such as pagination or filtering.
26
+ * @returns Observable containing the list of quote events.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * this.apiQuoteService.getQuoteEvents(10, { page: 1 })
31
+ * .subscribe((events) => console.log(events))
32
+ * ```
33
+ */
34
+ getQuoteEvents(id: number, params: QueryParams): Observable<QuoteEventsOut>;
35
+ /**
36
+ * Registers a new event related to a specific quote.
37
+ *
38
+ * @param id - Quote identifier.
39
+ * @param body - Event payload to be created.
40
+ * @returns Observable containing the newly created event.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const event: QuoteEventIn = { code: 'WON', note: 'Client approved' }
45
+ * this.apiQuoteService.postQuoteEvents(10, event)
46
+ * .subscribe((response) => console.log(response))
47
+ * ```
48
+ */
49
+ postQuoteEvents(id: number, body: QuoteEventIn): Observable<QuoteEventOut>;
50
+ /**
51
+ * Retrieves the available quote event types.
52
+ *
53
+ * @param params - Optional query parameters such as pagination or filtering.
54
+ * @returns Observable containing the list of event types.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * this.apiQuoteService.getQuoteEventTypes({ page: 1 })
59
+ * .subscribe((types) => console.log(types))
60
+ * ```
61
+ */
62
+ getQuoteEventTypes(params: QueryParams): Observable<QuoteEventTypesOut>;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiQuoteService, never>;
64
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiQuoteService>;
65
+ }
@@ -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
  *
@@ -0,0 +1,21 @@
1
+ import { LaravelModel } from './api.models';
2
+ export interface Operation extends LaravelModel {
3
+ _id: string;
4
+ operation_id: number;
5
+ status: 'Pending' | 'Completed' | 'Canceled';
6
+ code: number;
7
+ signature: {
8
+ signature_base_64: string;
9
+ mime_type: 'image/png';
10
+ client: {
11
+ full_name: string;
12
+ };
13
+ package_detail: {
14
+ shipment_tracking_number: string;
15
+ pieces: {
16
+ tracking_number: string;
17
+ status: null | 'damaged' | 'lost';
18
+ }[];
19
+ }[];
20
+ };
21
+ }
@@ -1,3 +1,4 @@
1
+ import { Operation } from './api-external-ops.interfaces';
1
2
  export type DeliveryConfirmationGenerateOut = {
2
3
  code: string;
3
4
  };
@@ -29,3 +30,6 @@ export type DeliveryConfirmationIn = {
29
30
  };
30
31
  otp?: string;
31
32
  };
33
+ export type DeliveryConfirmationSearchOut = {
34
+ operation: Operation;
35
+ };
@@ -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
+ };
@@ -0,0 +1,13 @@
1
+ import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
2
+ export interface QuoteEvent extends ActiveLessSymfonyModel {
3
+ date: string;
4
+ quoteEventType: QuoteEventType;
5
+ comment: string;
6
+ userId: number;
7
+ userUsername: string;
8
+ userName: string;
9
+ }
10
+ export interface QuoteEventType extends SymfonyModel {
11
+ code: string;
12
+ name: string;
13
+ }
@@ -0,0 +1,17 @@
1
+ import { QuoteEvent, QuoteEventType } from './api-quote.interfaces';
2
+ export type QuoteEventsOut = {
3
+ total: number;
4
+ quoteEvents: QuoteEvent[];
5
+ };
6
+ export type QuoteEventIn = {
7
+ date: string;
8
+ quoteEventTypeId: number;
9
+ comment: string;
10
+ };
11
+ export interface QuoteEventOut {
12
+ quoteEvent: QuoteEvent;
13
+ }
14
+ export interface QuoteEventTypesOut {
15
+ total: number;
16
+ quoteEventTypes: QuoteEventType[];
17
+ }
@@ -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;
@@ -171,8 +240,17 @@ export interface PromotionCodeDiscount extends ApiModel {
171
240
  origin_company_name: string;
172
241
  origin_full_name: string;
173
242
  promotion_code: string;
243
+ discount_percentage: number;
174
244
  product_subtotals: ProductSubtotal[];
175
245
  }
246
+ export interface ProductSubtotal {
247
+ country_reference_currency_id: number;
248
+ currency_id: number;
249
+ currency_code: string;
250
+ value: number;
251
+ shipment_total: number;
252
+ discount_amount: number;
253
+ }
176
254
  export interface ProductSubtotal {
177
255
  country_reference_currency_id: number;
178
256
  currency_id: number;
@@ -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;
@@ -0,0 +1,35 @@
1
+ import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ /**
4
+ * HTTP interceptor that injects the external operations API key into outbound requests.
5
+ *
6
+ * The interceptor:
7
+ * 1. Reads `apiExternalOperationsKey` from the injected `ENVIRONMENT_TOKEN`.
8
+ * 2. Skips modification if the key is absent.
9
+ * 3. Leaves the request unchanged if it already contains an `AppKey` header (caller override).
10
+ * 4. Otherwise clones the request adding `AppKey: apiExternalOperationsKey`.
11
+ *
12
+ * This enables centralized, transparent authentication for services targeting external
13
+ * operations endpoints while allowing explicit per-request overrides.
14
+ *
15
+ * Example:
16
+ * ```ts
17
+ * provideHttpClient(
18
+ * withInterceptors([apiKeyInterceptor])
19
+ * );
20
+ * ```
21
+ *
22
+ * @param request The original immutable `HttpRequest` instance.
23
+ * @param next The next handler in the interceptor chain, used to forward the (possibly cloned) request.
24
+ * @returns An `Observable` stream of the HTTP events for the (potentially augmented) request.
25
+ *
26
+ * @remarks
27
+ * - If you need to intentionally send a different key for a specific request, set the `AppKey`
28
+ * header manually before this interceptor runs.
29
+ * - If `apiExternalOperationsKey` is undefined (e.g., missing configuration), the request is passed through unchanged.
30
+ * - Order matters: place this interceptor before others that rely on the presence of the `AppKey` header.
31
+ *
32
+ * @see HttpRequest
33
+ * @see HttpHandlerFn
34
+ */
35
+ export declare function apiKeyInterceptor(request: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
@@ -35,6 +35,7 @@ export type Environment = {
35
35
  apiInvoicesUrl?: string;
36
36
  apiNotificationsUrl?: string;
37
37
  apiOpenItemsUrl?: string;
38
+ apiQuotesUrl?: string;
38
39
  apiReportsUrl?: string;
39
40
  apiSecurityUrl?: string;
40
41
  apiServicesUrl?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "18.9.13",
3
+ "version": "18.9.15",
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
@@ -11,19 +11,19 @@ export * from './lib/apis/api-companies.service';
11
11
  export * from './lib/apis/api-composition.service';
12
12
  export * from './lib/apis/api-customs.service';
13
13
  export * from './lib/apis/api-discounts.service';
14
- export * from './lib/apis/api-events.service';
15
14
  export * from './lib/apis/api-e-tools-auto-billing.service';
16
- export * from './lib/apis/api-external-pickups.service';
15
+ export * from './lib/apis/api-events.service';
16
+ export * from './lib/apis/api-external-ops.service';
17
17
  export * from './lib/apis/api-inventories.service';
18
18
  export * from './lib/apis/api-invoices.service';
19
19
  export * from './lib/apis/api-notifications.service';
20
20
  export * from './lib/apis/api-open-items.service';
21
+ export * from './lib/apis/api-quote.service';
21
22
  export * from './lib/apis/api-reports.service';
22
23
  export * from './lib/apis/api-security.service';
23
24
  export * from './lib/apis/api-services.service';
24
25
  export * from './lib/apis/api-shipments.service';
25
26
  export * from './lib/apis/api-supplies.service';
26
- export * from './lib/apis/models/api-billing.models';
27
27
  export * from './lib/apis/models/api-billing-do.interfaces';
28
28
  export * from './lib/apis/models/api-billing-do.types';
29
29
  export * from './lib/apis/models/api-billing-mx.interfaces';
@@ -32,6 +32,7 @@ export * from './lib/apis/models/api-billing-pa.interfaces';
32
32
  export * from './lib/apis/models/api-billing-pa.types';
33
33
  export * from './lib/apis/models/api-billing-sv.interfaces';
34
34
  export * from './lib/apis/models/api-billing-sv.types';
35
+ export * from './lib/apis/models/api-billing.models';
35
36
  export * from './lib/apis/models/api-cash-operations.interfaces';
36
37
  export * from './lib/apis/models/api-cash-operations.types';
37
38
  export * from './lib/apis/models/api-catalog.enum';
@@ -45,12 +46,12 @@ export * from './lib/apis/models/api-customs.interfaces';
45
46
  export * from './lib/apis/models/api-customs.types';
46
47
  export * from './lib/apis/models/api-discounts.interfaces';
47
48
  export * from './lib/apis/models/api-discounts.types';
49
+ export * from './lib/apis/models/api-e-tools-auto-billing.interfaces';
50
+ export * from './lib/apis/models/api-e-tools-auto-billing.types';
48
51
  export * from './lib/apis/models/api-events.enum';
49
52
  export * from './lib/apis/models/api-events.interfaces';
50
53
  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
- export * from './lib/apis/models/api-external-pickups.types';
54
+ export * from './lib/apis/models/api-external-ops.types';
54
55
  export * from './lib/apis/models/api-inventories.enum';
55
56
  export * from './lib/apis/models/api-inventories.interfaces';
56
57
  export * from './lib/apis/models/api-inventories.types';
@@ -60,7 +61,10 @@ export * from './lib/apis/models/api-notifications.interfaces';
60
61
  export * from './lib/apis/models/api-notifications.types';
61
62
  export * from './lib/apis/models/api-open-items.interfaces';
62
63
  export * from './lib/apis/models/api-open-items.types';
64
+ export * from './lib/apis/models/api-quote.interfaces';
65
+ export * from './lib/apis/models/api-quote.types';
63
66
  export * from './lib/apis/models/api-reports.interfaces';
67
+ export * from './lib/apis/models/api-reports.types';
64
68
  export * from './lib/apis/models/api-security.interfaces';
65
69
  export * from './lib/apis/models/api-security.types';
66
70
  export * from './lib/apis/models/api-services.interfaces';
@@ -73,7 +77,8 @@ export * from './lib/apis/models/api.models';
73
77
  export * from './lib/websockets/web-sockets.service';
74
78
  export * from './lib/cypher/crypto.service';
75
79
  export * from './lib/interceptors/api-headers.interceptor';
80
+ export * from './lib/interceptors/api-key.interceptor';
76
81
  export * from './lib/interceptors/api-token.interceptor';
77
82
  export * from './lib/interceptors/http-caching.interceptor';
78
- export * from './lib/helpers/http';
79
83
  export * from './lib/helpers/files';
84
+ export * from './lib/helpers/http';
@@ -1,74 +0,0 @@
1
- import { Inject, Injectable } from '@angular/core';
2
- import { map } from 'rxjs/operators';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common/http";
5
- export class ApiExternalPickupsService {
6
- httpClient;
7
- environment;
8
- appKey;
9
- constructor(httpClient, environment) {
10
- this.httpClient = httpClient;
11
- this.environment = environment;
12
- this.appKey = environment.apiExternalOperationsKey ?? '';
13
- }
14
- /**
15
- * Getter method to retrieve the API's external operations URL.
16
- * Fetches the URL from the `apiExternalOperationsUrl` property of the environment object.
17
- * Defaults to an empty string if the property is undefined or null.
18
- *
19
- * @return {string} The external operations URL or an empty string if unavailable.
20
- */
21
- get url() {
22
- return this.environment.apiExternalOperationsUrl ?? '';
23
- }
24
- /**
25
- * Generates a delivery confirmation by sending the provided payload to the API.
26
- *
27
- * @param {DeliveryConfirmationGenerateIn} payload - The input payload required to generate the delivery confirmation.
28
- * @return {Observable<DeliveryConfirmationGenerateOut>} An observable that emits the generated delivery confirmation data.
29
- */
30
- postDeliveryConfirmationGenerate(payload) {
31
- return this.httpClient.post(`${this.url}/delivery-confirmation/generate`, payload, {
32
- headers: { appkey: this.appKey }
33
- }).pipe(map(({ data }) => data));
34
- }
35
- /**
36
- * Confirms the completion of a delivery operation by making a PATCH request.
37
- *
38
- * @param {Object} input - The input parameters for the method.
39
- * @param {string} input.operationId - The unique identifier of the delivery operation to be confirmed.
40
- * @param {string} input.keyOTP - The one-time password (OTP) key associated with the delivery confirmation.
41
- * @return {Observable<Object>} - An observable containing the response data from the API.
42
- */
43
- patchDeliveryConfirmationComplete({ keyOTP, operationId, }) {
44
- return this.httpClient.patch(`${this.url}/delivery-confirmation/completed/${keyOTP}`, null, {
45
- headers: { appkey: this.appKey },
46
- params: { operation_id: operationId }
47
- }).pipe(map(({ data }) => data));
48
- }
49
- /**
50
- * Cancels a delivery confirmation by sending an OTP and additional data to the server.
51
- *
52
- * @param {Object} param0 - The parameter object containing the required properties.
53
- * @param {string} param0.otp - The one-time password to authenticate the cancellation request.
54
- * @param {Object} param0.body - Additional body data required for cancellation.
55
- * @return {Observable<Object>} An observable that emits the server's response when the cancellation is processed.
56
- */
57
- putDeliveryConfirmation({ otp, ...body }) {
58
- return this.httpClient.put(`${this.url}/delivery-confirmation/confirmation/${otp}`, body, {
59
- headers: { appkey: this.appKey },
60
- }).pipe(map(({ data }) => data));
61
- }
62
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiExternalPickupsService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
63
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiExternalPickupsService, providedIn: 'root' });
64
- }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiExternalPickupsService, decorators: [{
66
- type: Injectable,
67
- args: [{
68
- providedIn: 'root'
69
- }]
70
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
71
- type: Inject,
72
- args: ['env']
73
- }] }] });
74
- //# source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RlciBvYmplY3QgY29udGFpbmluZyB0aGUgcmVxdWlyZWQgcHJvcGVydGllcy5cclxuICAgKiBAcGFyYW0ge3N0cmluZ30gcGFyYW0wLm90cCAtIFRoZSBvbmUtdGltZSBwYXNzd29yZCB0byBhdXRoZW50aWNhdGUgdGhlIGNhbmNlbGxhdGlvbiByZXF1ZXN0LlxyXG4gICAqIEBwYXJhbSB7T2JqZWN0fSBwYXJhbTAuYm9keSAtIEFkZGl0aW9uYWwgYm9keSBkYXRhIHJlcXVpcmVkIGZvciBjYW5jZWxsYXRpb24uXHJcbiAgICogQHJldHVybiB7T2JzZXJ2YWJsZTxPYmplY3Q+fSBBbiBvYnNlcnZhYmxlIHRoYXQgZW1pdHMgdGhlIHNlcnZlcidzIHJlc3BvbnNlIHdoZW4gdGhlIGNhbmNlbGxhdGlvbiBpcyBwcm9jZXNzZWQuXHJcbiAgICovXHJcbiAgcHVibGljIHB1dERlbGl2ZXJ5Q29uZmlybWF0aW9uICh7XHJcbiAgICBvdHAsXHJcbiAgICAuLi5ib2R5XHJcbiAgfTogRGVsaXZlcnlDb25maXJtYXRpb25Jbik6IE9ic2VydmFibGU8e30+IHtcclxuICAgIHJldHVybiB0aGlzLmh0dHBDbGllbnQucHV0PEFwaVN1Y2Nlc3M8e30+PihcclxuICAgICAgYCR7dGhpcy51cmx9L2RlbGl2ZXJ5LWNvbmZpcm1hdGlvbi9jb25maXJtYXRpb24vJHtvdHB9YCxcclxuICAgICAgYm9keSwge1xyXG4gICAgICAgIGhlYWRlcnM6IHsgYXBwa2V5OiB0aGlzLmFwcEtleSB9LFxyXG4gICAgICB9KS5waXBlKG1hcCgoeyBkYXRhIH0pID0+IGRhdGEpKVxyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLWV4dGVybmFsLXBpY2t1cHMudHlwZXMuanMiLCJzb3VyY2VSb290Ij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