@experteam-mx/ngx-services 20.7.0 → 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<CheckpointsOut>} The list of checkpoints.
3199
+ * @returns {Observable<CheckpointsInventoryOut>} The list of checkpoints.
3159
3200
  */
3160
3201
  getCheckpoints(params) {
3161
3202
  return this.http.get(`${this.url}/checkpoints`, {
@@ -3400,6 +3441,56 @@ class ApiInventoriesService {
3400
3441
  return this.http.get(`${this.url}/stock-update/packages/${id}`)
3401
3442
  .pipe(map(({ data }) => data));
3402
3443
  }
3444
+ /**
3445
+ * Retrieves a list of courier routes based on query parameters.
3446
+ *
3447
+ * @param {QueryParams} params - Query parameters for filtering the courier routes.
3448
+ * @returns {Observable<CourierRoutesOut>} An observable that emits the list of courier routes.
3449
+ */
3450
+ getCourierRoutes(params) {
3451
+ return this.http.get(`${this.url}/courier-routes`, {
3452
+ params
3453
+ }).pipe(map(({ data }) => data));
3454
+ }
3455
+ /**
3456
+ * Fetches the courier route details based on the provided courier route ID.
3457
+ *
3458
+ * @param {number} id - The courier route id
3459
+ * @return {Observable<CourierRouteOut>} An observable that emits the courier route data.
3460
+ */
3461
+ getCourierRoute(id) {
3462
+ return this.http.get(`${this.url}/courier-routes/${id}`)
3463
+ .pipe(map(({ data }) => data));
3464
+ }
3465
+ /**
3466
+ * Creates a new courier route.
3467
+ *
3468
+ * @param {CourierRouteIn} body - The data for the new courier route.
3469
+ * @returns {Observable<CourierRouteOut>} An observable the created courier route detail.
3470
+ */
3471
+ postCourierRoute(body) {
3472
+ return this.http.post(`${this.url}/courier-routes`, body).pipe(map(({ data }) => data));
3473
+ }
3474
+ /**
3475
+ * Update an existing courier route.
3476
+ *
3477
+ * @param {number} id - The identifier of the courier route record to update.
3478
+ * @param {CourierRouteIn} body - The courier route data to be updated.
3479
+ * @returns {Observable<CourierRouteOut>} An observable detail of the updated courier route.
3480
+ */
3481
+ putCourierRoute(id, body) {
3482
+ return this.http.put(`${this.url}/courier-routes/${id}`, body).pipe(map(({ data }) => data));
3483
+ }
3484
+ /**
3485
+ * Delete an existing courier route.
3486
+ *
3487
+ * @param {number} id - The unique identifier of the courier route to be deleted.
3488
+ * @returns {Observable<CourierRouteOut>} An observable that emits the result of the delete courier route.
3489
+ */
3490
+ deleteCourierRoute(id) {
3491
+ return this.http.delete(`${this.url}/courier-routes/${id}`)
3492
+ .pipe(map(({ data }) => data));
3493
+ }
3403
3494
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3404
3495
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3405
3496
  }
@@ -5705,5 +5796,5 @@ const xmlHeaders = (format = 'object') => {
5705
5796
  * Generated bundle index. Do not edit.
5706
5797
  */
5707
5798
 
5708
- 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 };
5709
5800
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map