@experteam-mx/ngx-services 18.9.14 → 18.9.16

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 (108) 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 +24 -1
  9. package/esm2022/lib/apis/api-companies.service.mjs +1 -1
  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 +1 -1
  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 +45 -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 +30 -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 +1 -1
  54. package/esm2022/lib/apis/models/api-external-ops.types.mjs +1 -1
  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 +1 -1
  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 +5 -1
  89. package/fesm2022/experteam-mx-ngx-services.mjs +194 -1
  90. package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
  91. package/lib/apis/api-catalogs.service.d.ts +19 -1
  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 +39 -1
  95. package/lib/apis/api-shipments.service.d.ts +20 -1
  96. package/lib/apis/models/api-catalog.interfaces.d.ts +7 -0
  97. package/lib/apis/models/api-catalog.types.d.ts +11 -1
  98. package/lib/apis/models/api-companies.types.d.ts +3 -2
  99. package/lib/apis/models/api-inventories.types.d.ts +6 -0
  100. package/lib/apis/models/api-quote.interfaces.d.ts +13 -0
  101. package/lib/apis/models/api-quote.types.d.ts +17 -0
  102. package/lib/apis/models/api-reports.interfaces.d.ts +120 -3
  103. package/lib/apis/models/api-reports.types.d.ts +11 -2
  104. package/lib/apis/models/api-shipments.interfaces.d.ts +29 -0
  105. package/lib/apis/models/api-shipments.types.d.ts +29 -1
  106. package/lib/ngx-services.models.d.ts +2 -1
  107. package/package.json +1 -1
  108. package/public-api.d.ts +4 -0
@@ -2,7 +2,7 @@ import { Environment } from '../ngx-services.models';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { Observable } from 'rxjs';
4
4
  import { QueryParams } from './models/api.models';
5
- import { CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CountriesOut, CountryIn, CountryOut, CurrenciesOut, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, GenericFolioIn, GenericFolioOut, GenericFoliosOut, HolidayIn, HolidayOut, HolidaysOut, IdentificationTypeIn, IdentificationTypeOut, IdentificationTypesOut, LanguagesOut, ManagementAreasOut, OperationTypesOut, ProductIn, ProductOut, QuestionIn, QuestionOut, QuestionsOut, RegionsOut, ShipmentContentTypesOut, ShipmentGroupsOut, ShipmentIncomeTypeIn, ShipmentIncomeTypeOut, ShipmentIncomeTypesOut, ShipmentScopesOut, ShipmentStatusesOut, UniqueFolioIn, UniqueFolioOut, UniqueFoliosOut, UnitsOut, ZonesOut } from './models/api-catalog.types';
5
+ import { BusinessPartyTraderTypesOut, CancellationReasonIn, CancellationReasonOut, CancellationReasonsOut, CountriesOut, CountryIn, CountryOut, CurrenciesOut, ExtraChargeIn, ExtraChargeOut, ExtraChargesOut, GenericFolioIn, GenericFolioOut, GenericFoliosOut, HolidayIn, HolidayOut, HolidaysOut, IdentificationTypeIn, IdentificationTypeNumberValidationIn, IdentificationTypeNumberValidationOut, IdentificationTypeOut, IdentificationTypesOut, LanguagesOut, ManagementAreasOut, OperationTypesOut, ProductIn, ProductOut, QuestionIn, QuestionOut, QuestionsOut, RegionsOut, ShipmentContentTypesOut, ShipmentGroupsOut, ShipmentIncomeTypeIn, ShipmentIncomeTypeOut, ShipmentIncomeTypesOut, ShipmentScopesOut, ShipmentStatusesOut, UniqueFolioIn, UniqueFolioOut, UniqueFoliosOut, UnitsOut, ZonesOut } from './models/api-catalog.types';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiCatalogsService {
8
8
  private environments;
@@ -77,6 +77,18 @@ export declare class ApiCatalogsService {
77
77
  * The Observable will emit an error if the HTTP request fails.
78
78
  */
79
79
  deleteIdentificationType(id: number): Observable<{}>;
80
+ /**
81
+ * Sends a POST request to validate identification type number.
82
+ *
83
+ * The request payload is sent as an object with a `body` property containing the provided
84
+ * IdentificationTypeNumberValidationIn value (i.e. { body: IdentificationTypeNumberValidationIn }). On success the HTTP response is expected
85
+ * to follow the ApiSuccess<T> shape; the operator maps that response to the inner `data`
86
+ * object and emits it as a IdentificationTypeNumberValidationOut.
87
+ *
88
+ * @param body - The identification type number validation payload to validate (IdentificationTypeNumberValidationIn).
89
+ * @returns Observable<IdentificationTypeNumberValidationOut> that emits the validate status.
90
+ */
91
+ postIdentificationtTypeNumberValidation(body: IdentificationTypeNumberValidationIn): Observable<IdentificationTypeNumberValidationOut>;
80
92
  /**
81
93
  * Fetches the extra charges based on the provided query parameters.
82
94
  *
@@ -428,6 +440,12 @@ export declare class ApiCatalogsService {
428
440
  * The Observable will emit an error if the HTTP request fails.
429
441
  */
430
442
  deleteHoliday(id: number): Observable<{}>;
443
+ /**
444
+ * Retrieves a list of business party trader types
445
+ * @param {QueryParams} params - Query parameters for filtering and pagination (optional)
446
+ * @returns {Observable<BusinessPartyTraderTypesOut>} Observable containing the list of trader types
447
+ */
448
+ getBusinessPartyTraderTypes(params: QueryParams): Observable<BusinessPartyTraderTypesOut>;
431
449
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiCatalogsService, never>;
432
450
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiCatalogsService>;
433
451
  }
@@ -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, SalesBookReportOut, 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
  *
@@ -77,6 +102,19 @@ export declare class ApiReportsService {
77
102
  * @returns An observable that emits the list of invoices.
78
103
  */
79
104
  getInvoices(params: QueryParams): Observable<InvoicesOut>;
105
+ /**
106
+ * Retrieves the sales book report based on the provided query parameters.
107
+ *
108
+ * @param params - The query parameters to filter or customize the report.
109
+ * @returns An Observable that emits the sales book report data.
110
+ *
111
+ * @example
112
+ * ```typescript
113
+ * this.apiReportsService.getSalesBookReport({ page: 1, limit: 10 })
114
+ * .subscribe(report => console.log(report));
115
+ * ```
116
+ */
117
+ getSalesBookReport(params: QueryParams): Observable<SalesBookReportOut>;
80
118
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiReportsService, never>;
81
119
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiReportsService>;
82
120
  }
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Environment } from '../ngx-services.models';
4
- import { ExportTypesOut, ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
4
+ import { EmbassyShipmentIn, EmbassyShipmentOut, EmbassyShipmentsOut, ExportTypesOut, ManifestMultipleIn, ManifestMultipleOut, ShipmentCancellationIn, ShipmentCancellationOut, ShipmentEmployeeCustomer, ValidateAccountIn, ValidateAccountOut } from './models/api-shipments.types';
5
5
  import { QueryParams } from './models/api.models';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class ApiShipmentsService {
@@ -53,6 +53,25 @@ export declare class ApiShipmentsService {
53
53
  * @return {Observable<ExportTypesOut>} An observable containing the list of export types.
54
54
  */
55
55
  getExportTypes(params: QueryParams): Observable<ExportTypesOut>;
56
+ /**
57
+ * Retrieves a paginated list of embassy shipments
58
+ * @param {QueryParams} params - Query parameters for filtering and pagination
59
+ * @returns {Observable<EmbassyShipmentsOut>} Observable containing the list of shipments and pagination metadata
60
+ */
61
+ getEmbassyShipments(params: QueryParams): Observable<EmbassyShipmentsOut>;
62
+ /**
63
+ * Creates a new embassy shipment
64
+ * @param {EmbassyShipmentIn} body - The shipment data to create
65
+ * @returns {Observable<EmbassyShipmentOut>} Observable containing the created shipment with its assigned ID
66
+ */
67
+ postEmbassyShipments(body: EmbassyShipmentIn): Observable<EmbassyShipmentOut>;
68
+ /**
69
+ * Updates an existing embassy shipment
70
+ * @param {number} id - The unique identifier of the shipment to update
71
+ * @param {EmbassyShipmentIn} body - The updated shipment data
72
+ * @returns {Observable<EmbassyShipmentOut>} Observable containing the updated shipment
73
+ */
74
+ putEmbassyShipments(id: number, body: EmbassyShipmentIn): Observable<EmbassyShipmentOut>;
56
75
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiShipmentsService, never>;
57
76
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiShipmentsService>;
58
77
  }
@@ -202,3 +202,10 @@ export interface Holiday extends SymfonyModel {
202
202
  description: string;
203
203
  country: Country;
204
204
  }
205
+ export interface BusinessPartyTraderType extends SymfonyModel {
206
+ code: string;
207
+ name: string;
208
+ description: string | null;
209
+ category: string | null;
210
+ esbCode: string;
211
+ }
@@ -1,5 +1,5 @@
1
1
  import { ViewSectionOption } from './api-catalog.enum';
2
- import { CancellationReason, Country, Currency, ExtraCharge, GenericFolio, Holiday, IdentificationType, Language, ManagementArea, OperationType, Product, Question, Region, ShipmentContentType, ShipmentGroup, ShipmentIncomeType, ShipmentScope, ShipmentStatus, UniqueFolio, Unit, Zone } from './api-catalog.interfaces';
2
+ import { BusinessPartyTraderType, CancellationReason, Country, Currency, ExtraCharge, GenericFolio, Holiday, IdentificationType, Language, ManagementArea, OperationType, Product, Question, Region, ShipmentContentType, ShipmentGroup, ShipmentIncomeType, ShipmentScope, ShipmentStatus, UniqueFolio, Unit, Zone } from './api-catalog.interfaces';
3
3
  export type OperationTypesOut = {
4
4
  total: number;
5
5
  operationTypes: OperationType[];
@@ -201,3 +201,13 @@ export type HolidayIn = {
201
201
  countryId: number;
202
202
  isActive: boolean;
203
203
  };
204
+ export type IdentificationTypeNumberValidationIn = {
205
+ identificationTypeId: number;
206
+ identificationNumber: string;
207
+ section: string;
208
+ };
209
+ export type IdentificationTypeNumberValidationOut = {};
210
+ export type BusinessPartyTraderTypesOut = {
211
+ total: number;
212
+ businessPartyTraderTypes: BusinessPartyTraderType[];
213
+ };
@@ -411,12 +411,13 @@ export type CountryReferenceProductOut = {
411
411
  country_reference_product: CountryReferenceProduct;
412
412
  };
413
413
  export type ExtraChargeEntitiesIn = {
414
- model_type: string;
415
- model_id: number;
414
+ model_type?: string;
415
+ model_id?: number;
416
416
  extracharge_entities: {
417
417
  id: number;
418
418
  is_active: boolean;
419
419
  }[];
420
+ check_all?: boolean;
420
421
  };
421
422
  export type ExtraChargeEntitiesOut = {
422
423
  extracharge_entities: ExtraChargeEntity[];
@@ -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,85 @@ export interface ShipmentReports {
117
117
  };
118
118
  }[];
119
119
  }
120
+ export interface ShipmentLandingReport extends ActiveLessLaravelModel {
121
+ authorization_numbers: string[] | null;
122
+ commercial_invoice: boolean | null;
123
+ company_country_id: number;
124
+ company_id: number;
125
+ company_name: string;
126
+ country_id: number;
127
+ country_name: string;
128
+ currency_code: string | null;
129
+ document_id: number;
130
+ hasCreditCardPayment: boolean;
131
+ installation_id: number;
132
+ installation_number: number;
133
+ invoice_document_id: number | null;
134
+ is_document: boolean;
135
+ is_manual: boolean;
136
+ itn_number: string | null;
137
+ location_code: string;
138
+ location_facility_code: string;
139
+ location_id: number;
140
+ location_name: string;
141
+ price_override_approver_name: string | null;
142
+ price_override_reason_name: string | null;
143
+ product_global_name: string;
144
+ product_local_name: string;
145
+ question_description: string | null;
146
+ receiver_address_line1: string;
147
+ receiver_address_line2: string | null;
148
+ receiver_address_line3: string | null;
149
+ receiver_city_name: string;
150
+ receiver_company_name: string;
151
+ receiver_country_name: string;
152
+ receiver_county_name: string | null;
153
+ receiver_email: string | null;
154
+ receiver_full_name: string;
155
+ receiver_full_phone_number: string | null;
156
+ receiver_identification_number: string | null;
157
+ receiver_postal_code: string | null;
158
+ receiver_state_name: string;
159
+ send_to_api_inventories: boolean;
160
+ shipment_description: string;
161
+ shipment_group_id: number;
162
+ shipment_group_name: string;
163
+ shipment_pieces_tracking_numbers: string[];
164
+ shipment_status_code: string;
165
+ shipment_status_id: number;
166
+ shipment_status_name_EN: string;
167
+ shipment_status_name_ES: string;
168
+ shipment_status_name_FR: string;
169
+ shipment_status_name_PT: string;
170
+ shipment_tags: ShipmentTag[];
171
+ shipment_tracking_number: string;
172
+ shipment_type: string;
173
+ shipment_value: number;
174
+ shipper_account: string;
175
+ shipper_address_line1: string;
176
+ shipper_address_line2: string | null;
177
+ shipper_address_line3: string | null;
178
+ shipper_city_name: string | null;
179
+ shipper_company_name: string;
180
+ shipper_country_name: string;
181
+ shipper_county_name: string | null;
182
+ shipper_email: string | null;
183
+ shipper_full_name: string;
184
+ shipper_full_phone_number: string;
185
+ shipper_identification_number: string | null;
186
+ shipper_phone_number: string | null;
187
+ shipper_postal_code: string | null;
188
+ shipper_state_name: string | null;
189
+ tracking: string | null;
190
+ user_id: number;
191
+ user_username: string;
192
+ additional_documents: {
193
+ country_id: number;
194
+ include_indemnity_letter: boolean;
195
+ shipment_content_type_id: number;
196
+ shipment_scope_id: number;
197
+ } | null;
198
+ }
120
199
  export interface ShipmentTag extends ActiveLessSymfonyModel {
121
200
  name: string;
122
201
  code: string;
@@ -138,6 +217,10 @@ export interface ReportExternalShipment extends ActiveLessLaravelModel {
138
217
  total: number;
139
218
  tracking_number: string;
140
219
  user_id: number;
220
+ customer_full_name: string;
221
+ customer_email: string | null;
222
+ customer_phone_code: string | null;
223
+ customer_phone_number: string | null;
141
224
  }
142
225
  export interface ReportExternalShipmentAddress extends ApiModel {
143
226
  address_line_1: string;
@@ -172,16 +255,22 @@ export interface PromotionCodeDiscount extends ApiModel {
172
255
  origin_full_name: string;
173
256
  promotion_code: string;
174
257
  discount_percentage: number;
175
- amount_details: PromotionCodeDiscountAmountDetail[];
258
+ product_subtotals: ProductSubtotal[];
176
259
  }
177
- export interface PromotionCodeDiscountAmountDetail {
260
+ export interface ProductSubtotal {
178
261
  country_reference_currency_id: number;
179
262
  currency_id: number;
180
263
  currency_code: string;
181
- product_subtotal: number;
264
+ value: number;
182
265
  shipment_total: number;
183
266
  discount_amount: number;
184
267
  }
268
+ export interface ProductSubtotal {
269
+ country_reference_currency_id: number;
270
+ currency_id: number;
271
+ currency_code: string;
272
+ value: number;
273
+ }
185
274
  export interface WithdrawalAmount {
186
275
  country_reference_currency_id: number;
187
276
  currency_id: number;
@@ -234,3 +323,31 @@ export interface Invoice extends ActiveLessLaravelModel {
234
323
  customer_county_name: string;
235
324
  shipment_id: number;
236
325
  }
326
+ export interface Sales extends ActiveLessLaravelModel {
327
+ company_country_id: number;
328
+ country_document_type_id: number;
329
+ country_id: number;
330
+ customer_address_line1: string;
331
+ customer_email: string;
332
+ customer_name: string;
333
+ customer_phone: string;
334
+ document_full_number: string;
335
+ document_sap_full_number: string;
336
+ document_status_name: string;
337
+ document_status: number;
338
+ document_type_name_EN: string;
339
+ document_type_name_ES: string;
340
+ document_type_name_FR: string;
341
+ document_type_name_PT: string;
342
+ document_type_name: string;
343
+ exempt: number;
344
+ identification_number: string;
345
+ identification_type_id: number;
346
+ identification_type_name: string;
347
+ installation_id: number;
348
+ location_id: number;
349
+ subtotal: number;
350
+ tax: number;
351
+ total: number;
352
+ user_id: number;
353
+ }
@@ -1,6 +1,6 @@
1
- import { CollectionPayment, Invoice, PartialWithdrawal, PromotionCodeDiscount, ReportExternalShipment, ShipmentReports } from './api-reports.interfaces';
2
- import { QueryParams } from './api.models';
1
+ import { CollectionPayment, Invoice, PartialWithdrawal, PromotionCodeDiscount, ReportExternalShipment, Sales, ShipmentLandingReport, ShipmentReports } from './api-reports.interfaces';
3
2
  import { Session } from './api-security.interfaces';
3
+ import { QueryParams } from './api.models';
4
4
  export type CollectionPaymentsOut = {
5
5
  collection_payments: CollectionPayment[];
6
6
  total: number;
@@ -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;
@@ -48,3 +52,8 @@ export type InvoicesOut = {
48
52
  invoices: Invoice[];
49
53
  total: number;
50
54
  };
55
+ export type SalesBookReportOut = {
56
+ sale_books: Sales[];
57
+ total: number;
58
+ transaction_id?: string;
59
+ };
@@ -1,4 +1,5 @@
1
1
  import { ActiveLessSymfonyModel, SymfonyModel } from './api.models';
2
+ import { ShipmentContentType } from './api-catalog.interfaces';
2
3
  export interface ShipmentEmployeeCustomers extends ActiveLessSymfonyModel {
3
4
  trackingNumber: string;
4
5
  employeeCustomerId: number;
@@ -10,3 +11,31 @@ export interface ExportType extends SymfonyModel {
10
11
  code: string;
11
12
  name: string;
12
13
  }
14
+ export interface DestinationCountry extends ActiveLessSymfonyModel {
15
+ code: string;
16
+ name: string;
17
+ }
18
+ export interface EmbassyShipment extends SymfonyModel {
19
+ id: number;
20
+ countryId: number;
21
+ name: string;
22
+ destinationCountry: DestinationCountry;
23
+ destinationCityName: string | null;
24
+ destinationPostalCode: string | null;
25
+ destinationCountyName: string | null;
26
+ contentDescription: string | null;
27
+ shipmentContentType: ShipmentContentType;
28
+ piecesNumber: number | null;
29
+ destinationCompanyName: string | null;
30
+ destinationFullName: string | null;
31
+ destinationAddressLine1: string | null;
32
+ destinationAddressLine2: string | null;
33
+ destinationAddressLine3: string | null;
34
+ destinationPhoneCode: string | null;
35
+ destinationPhoneNumber: string | null;
36
+ destinationEmail: string | null;
37
+ businessPartyTraderTypeId: number | null;
38
+ isActive: boolean;
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ }
@@ -1,4 +1,4 @@
1
- import { ExportType, ShipmentEmployeeCustomers } from './api-shipments.interfaces';
1
+ import { EmbassyShipment, ExportType, ShipmentEmployeeCustomers } from './api-shipments.interfaces';
2
2
  import { Document } from './api-invoices.interfaces';
3
3
  export type ValidateAccountIn = {
4
4
  accountValue: string;
@@ -91,3 +91,31 @@ export type ExportTypesOut = {
91
91
  exportTypes: ExportType[];
92
92
  total: number;
93
93
  };
94
+ export type EmbassyShipmentsOut = {
95
+ total: number;
96
+ embassyShipments: EmbassyShipment[];
97
+ };
98
+ export type EmbassyShipmentIn = {
99
+ countryId: number;
100
+ name: string;
101
+ destinationCountryId: number | null;
102
+ destinationCityName: string | null;
103
+ destinationPostalCode: string | null;
104
+ destinationCountyName: string | null;
105
+ contentDescription: string | null;
106
+ shipmentContentTypeId: number | null;
107
+ piecesNumber: number | null;
108
+ destinationCompanyName: string | null;
109
+ destinationFullName: string | null;
110
+ destinationAddressLine1: string | null;
111
+ destinationAddressLine2: string | null;
112
+ destinationAddressLine3: string | null;
113
+ destinationPhoneCode: string | null;
114
+ destinationPhoneNumber: string | null;
115
+ destinationEmail: string | null;
116
+ businessPartyTraderTypeId: number | null;
117
+ isActive: boolean;
118
+ };
119
+ export interface EmbassyShipmentOut {
120
+ embassyShipment: EmbassyShipment;
121
+ }
@@ -27,14 +27,15 @@ export type Environment = {
27
27
  apiCompositionUrl?: string;
28
28
  apiCustomsUrl?: string;
29
29
  apiDiscountsUrl?: string;
30
- apiEventsUrl?: string;
31
30
  apiEToolsAutoBilling?: string;
31
+ apiEventsUrl?: string;
32
32
  apiExternalOperationsKey?: string;
33
33
  apiExternalOperationsUrl?: string;
34
34
  apiInventoriesUrl?: string;
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.14",
3
+ "version": "18.9.16",
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
@@ -18,6 +18,7 @@ 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';
@@ -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';