@experteam-mx/ngx-services 20.7.1 → 20.7.2
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.
|
@@ -1440,6 +1440,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
1440
1440
|
}]
|
|
1441
1441
|
}] });
|
|
1442
1442
|
|
|
1443
|
+
class ApiCheckpointsService {
|
|
1444
|
+
environments = inject(ENVIRONMENT_TOKEN);
|
|
1445
|
+
http = inject(HttpClient);
|
|
1446
|
+
/**
|
|
1447
|
+
* Retrieves the API checkpoints URL from the environment configuration.
|
|
1448
|
+
*
|
|
1449
|
+
* @returns {string} The API checkpoints URL.
|
|
1450
|
+
*/
|
|
1451
|
+
get url() {
|
|
1452
|
+
return this.environments.apiCheckpointsUrl ?? '';
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Retrieves event registers from the checkpoints API.
|
|
1456
|
+
*
|
|
1457
|
+
* @param {QueryParams} params - Query parameters for filtering and pagination.
|
|
1458
|
+
* @returns {Observable<EventRegistersOut>} An observable containing the event registers data.
|
|
1459
|
+
*/
|
|
1460
|
+
getEventRegisters(params) {
|
|
1461
|
+
return this.http.get(`${this.url}/event-registers`, { params })
|
|
1462
|
+
.pipe(map(({ data }) => data));
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Retrieves checkpoints from the checkpoints API.
|
|
1466
|
+
*
|
|
1467
|
+
* @param {QueryParams} params - Query parameters for filtering and pagination.
|
|
1468
|
+
* @returns {Observable<CheckpointsInventoryOut>} An observable containing the checkpoints data.
|
|
1469
|
+
*/
|
|
1470
|
+
getCheckpoints(params) {
|
|
1471
|
+
return this.http.get(`${this.url}/checkpoints`, { params })
|
|
1472
|
+
.pipe(map(({ data }) => data));
|
|
1473
|
+
}
|
|
1474
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCheckpointsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1475
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCheckpointsService, providedIn: 'root' });
|
|
1476
|
+
}
|
|
1477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiCheckpointsService, decorators: [{
|
|
1478
|
+
type: Injectable,
|
|
1479
|
+
args: [{
|
|
1480
|
+
providedIn: 'root'
|
|
1481
|
+
}]
|
|
1482
|
+
}] });
|
|
1483
|
+
|
|
1443
1484
|
class ApiCompaniesService {
|
|
1444
1485
|
environments = inject(ENVIRONMENT_TOKEN);
|
|
1445
1486
|
http = inject(HttpClient);
|
|
@@ -3155,7 +3196,7 @@ class ApiInventoriesService {
|
|
|
3155
3196
|
* Retrieves a list of checkpoints based on query parameters.
|
|
3156
3197
|
*
|
|
3157
3198
|
* @param {QueryParams} params - Query parameters for filtering the checkpoints.
|
|
3158
|
-
* @returns {Observable<
|
|
3199
|
+
* @returns {Observable<CheckpointsInventoryOut>} The list of checkpoints.
|
|
3159
3200
|
*/
|
|
3160
3201
|
getCheckpoints(params) {
|
|
3161
3202
|
return this.http.get(`${this.url}/checkpoints`, {
|
|
@@ -5755,5 +5796,5 @@ const xmlHeaders = (format = 'object') => {
|
|
|
5755
5796
|
* Generated bundle index. Do not edit.
|
|
5756
5797
|
*/
|
|
5757
5798
|
|
|
5758
|
-
export { AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, DepositTypeCode, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, PrintMode, PrintableFormat, PrintersService, PrintersType, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5799
|
+
export { AlphaNumeric, ApiBillingCOService, ApiBillingDOService, ApiBillingGtService, ApiBillingMxService, ApiBillingPaService, ApiBillingSvService, ApiCashOperationsService, ApiCatalogsService, ApiCheckpointsService, ApiCompaniesService, ApiCompositionService, ApiCustomsService, ApiDiscountsService, ApiEToolsAutoBillingService, ApiEventsService, ApiExternalOperationsService, ApiInventoriesService, ApiInvoicesService, ApiNotificationsService, ApiOpenItemsService, ApiQuoteService, ApiReportsService, ApiSecurityService, ApiServicesService, ApiShipmentsService, ApiSuppliesService, ApiSurveysService, CryptoService, DefaultValueType, DepositTypeCode, DocumentStatusCode, ENVIRONMENT_TOKEN, Event, Group, NgxServicesModule, OpeningStatusCode, OperationModuleStatus, PaymentTypeCode, PrintMode, PrintableFormat, PrintersService, PrintersType, ShipmentIncomeTypeCode, TransferenceTypeCode, ViewSectionOption, WebSocketsService, apiHeadersInterceptor, apiTokenInterceptor, base64PdfToUrl, downloadBase64Pdf, httpCachingInterceptor, httpParams, pdfHeaders, provideNgxServices, queryString, xmlHeaders };
|
|
5759
5800
|
//# sourceMappingURL=experteam-mx-ngx-services.mjs.map
|