@experteam-mx/ngx-services 18.9.7 → 18.9.11
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.
- package/esm2022/lib/apis/api-catalogs.service.mjs +62 -1
- package/esm2022/lib/apis/api-shipments.service.mjs +12 -1
- package/esm2022/lib/apis/models/api-catalog.enum.mjs +9 -0
- package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-catalog.types.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +1 -1
- package/esm2022/lib/apis/models/api-shipments.types.mjs +1 -1
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +82 -1
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-catalogs.service.d.ts +50 -1
- package/lib/apis/api-shipments.service.d.ts +9 -1
- package/lib/apis/models/api-catalog.enum.d.ts +7 -0
- package/lib/apis/models/api-catalog.interfaces.d.ts +4 -3
- package/lib/apis/models/api-catalog.types.d.ts +14 -0
- package/lib/apis/models/api-shipments.interfaces.d.ts +5 -1
- package/lib/apis/models/api-shipments.types.d.ts +5 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -506,6 +506,67 @@ class ApiCatalogsService {
|
|
|
506
506
|
params
|
|
507
507
|
}).pipe(map(({ data }) => data));
|
|
508
508
|
}
|
|
509
|
+
/**
|
|
510
|
+
* Retrieve a single identification type by its id.
|
|
511
|
+
*
|
|
512
|
+
* Sends an HTTP GET request to the indentification type endpoint and returns an Observable that emits
|
|
513
|
+
* the IdentificationTypeOut payload extracted from the API success envelope.
|
|
514
|
+
*
|
|
515
|
+
* @param id - The numeric identifier of the identification type to fetch.
|
|
516
|
+
* @returns An Observable that emits the requested IdentificationTypeOut. The Observable will error
|
|
517
|
+
* if the HTTP request fails (for example network issues or non-2xx responses).
|
|
518
|
+
*/
|
|
519
|
+
getIdentificationType(id) {
|
|
520
|
+
return this.http.get(`${this.url}/identification-types/${id}`)
|
|
521
|
+
.pipe(map(({ data }) => data));
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Sends a POST request to create a new identification type and returns the created resource.
|
|
525
|
+
*
|
|
526
|
+
* The request payload is sent as an object with a `body` property containing the provided
|
|
527
|
+
* IdentificationTypeIn value (i.e. { body: IdentificationTypeIn }). On success the HTTP response is expected
|
|
528
|
+
* to follow the ApiSuccess<T> shape; the operator maps that response to the inner `data`
|
|
529
|
+
* object and emits it as a IdentificationTypeOut.
|
|
530
|
+
*
|
|
531
|
+
* @param body - The identification type payload to create (IdentificationTypeIn).
|
|
532
|
+
* @returns Observable<IdentificationTypeOut> that emits the created identification type on success.
|
|
533
|
+
*/
|
|
534
|
+
postIdentificationtType(body) {
|
|
535
|
+
return this.http.post(`${this.url}/identification-types`, body)
|
|
536
|
+
.pipe(map(({ data }) => data));
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Update a identification type by its ID.
|
|
540
|
+
*
|
|
541
|
+
* Sends an HTTP PUT to `${this.url}/identification-types/${id}` with the provided payload.
|
|
542
|
+
* The request body is sent as an object with a `body` property containing the
|
|
543
|
+
* `IdentificationTypeIn` data. The server response is expected to be an `ApiSuccess<IdentificationTypeOut>`
|
|
544
|
+
* and this method returns an Observable that emits the unwrapped `IdentificationTypeOut`.
|
|
545
|
+
*
|
|
546
|
+
* @param id - The identifier of the identification type to update.
|
|
547
|
+
* @param body - The update payload for the identification type.
|
|
548
|
+
* @returns An Observable that emits the updated `IdentificationTypeOut` on success.
|
|
549
|
+
*/
|
|
550
|
+
putIdentificationType(id, body) {
|
|
551
|
+
return this.http.put(`${this.url}/identification-types/${id}`, body)
|
|
552
|
+
.pipe(map(({ data }) => data));
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Delete a identification type by its ID.
|
|
556
|
+
*
|
|
557
|
+
* Sends an HTTP DELETE request to the backend endpoint `/identification-types/{id}` and
|
|
558
|
+
* returns an Observable that emits the API response's `data` payload (typically an empty object).
|
|
559
|
+
*
|
|
560
|
+
* The implementation maps an ApiSuccess wrapper to its `data` property before emitting.
|
|
561
|
+
*
|
|
562
|
+
* @param id - The numeric identifier of the identification type to delete.
|
|
563
|
+
* @returns An Observable that emits the deleted resource payload ({} expected) on success.
|
|
564
|
+
* The Observable will emit an error if the HTTP request fails.
|
|
565
|
+
*/
|
|
566
|
+
deleteIdentificationType(id) {
|
|
567
|
+
return this.http.delete(`${this.url}/identification-types/${id}`)
|
|
568
|
+
.pipe(map(({ data }) => data));
|
|
569
|
+
}
|
|
509
570
|
/**
|
|
510
571
|
* Fetches the extra charges based on the provided query parameters.
|
|
511
572
|
*
|
|
@@ -3919,6 +3980,17 @@ class ApiShipmentsService {
|
|
|
3919
3980
|
cancellationReasonId: reasonId
|
|
3920
3981
|
}).pipe(map(({ data }) => data));
|
|
3921
3982
|
}
|
|
3983
|
+
/**
|
|
3984
|
+
* Fetches a list of export types based on the provided query parameters.
|
|
3985
|
+
*
|
|
3986
|
+
* @param {QueryParams} params - The query parameters to filter the export types.
|
|
3987
|
+
* @return {Observable<ExportTypesOut>} An observable containing the list of export types.
|
|
3988
|
+
*/
|
|
3989
|
+
getExportTypes(params) {
|
|
3990
|
+
return this.http.get(`${this.url}/export-types`, {
|
|
3991
|
+
params
|
|
3992
|
+
}).pipe(map(({ data }) => data));
|
|
3993
|
+
}
|
|
3922
3994
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiShipmentsService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3923
3995
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
|
|
3924
3996
|
}
|
|
@@ -4061,6 +4133,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4061
4133
|
args: ['env']
|
|
4062
4134
|
}] }, { type: i1.HttpClient }] });
|
|
4063
4135
|
|
|
4136
|
+
var ViewSectionOption;
|
|
4137
|
+
(function (ViewSectionOption) {
|
|
4138
|
+
ViewSectionOption["SHIPMENT"] = "shipment";
|
|
4139
|
+
ViewSectionOption["PICKUP"] = "pickup";
|
|
4140
|
+
ViewSectionOption["EMPLOYEE_DHL"] = "employee_dhl";
|
|
4141
|
+
ViewSectionOption["BILLING"] = "billing";
|
|
4142
|
+
ViewSectionOption["CUSTOMER_RESTRICTION"] = "customer_restriction";
|
|
4143
|
+
})(ViewSectionOption || (ViewSectionOption = {}));
|
|
4144
|
+
|
|
4064
4145
|
var OperationModuleStatus;
|
|
4065
4146
|
(function (OperationModuleStatus) {
|
|
4066
4147
|
OperationModuleStatus["CANCELED"] = "canceled";
|
|
@@ -4455,5 +4536,5 @@ const downloadBase64Pdf = (base64) => window.open(base64PdfToUrl(base64));
|
|
|
4455
4536
|
* Generated bundle index. Do not edit.
|
|
4456
4537
|
*/
|
|
4457
4538
|
|
|
4458
|
-
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
4539
|
+
export { AlphaNumeric, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalPickupsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, CryptoService, DefaultValueType, ENVIRONMENT_TOKEN, Event, NgxServicesModule, OperationModuleStatus, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, queryString, xmlHeaders };
|
|
4459
4540
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|