@experteam-mx/ngx-services 20.7.0-dev2.1 → 20.7.0-dev3.1

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.
@@ -2538,6 +2538,16 @@ class ApiCompositionService {
2538
2538
  return this.http.get(`${this.url}/shipments/${id}`)
2539
2539
  .pipe(map(({ data }) => data));
2540
2540
  }
2541
+ /**
2542
+ * Retrieves shipments based on the provided query parameters.
2543
+ *
2544
+ * @param {QueryParams} params - The query parameters for the API request.
2545
+ * @returns {Observable<ShipmentsOut>} An observable that emits the shipments data.
2546
+ */
2547
+ getShipments(params) {
2548
+ return this.http.get(`${this.url}/shipments`, { params })
2549
+ .pipe(map(({ data }) => data));
2550
+ }
2541
2551
  /**
2542
2552
  * Fetches the country references data based on the provided query parameters.
2543
2553
  *
@@ -3400,56 +3410,6 @@ class ApiInventoriesService {
3400
3410
  return this.http.get(`${this.url}/stock-update/packages/${id}`)
3401
3411
  .pipe(map(({ data }) => data));
3402
3412
  }
3403
- /**
3404
- * Retrieves a list of courier routes based on query parameters.
3405
- *
3406
- * @param {QueryParams} params - Query parameters for filtering the courier routes.
3407
- * @returns {Observable<CourierRoutesOut>} An observable that emits the list of courier routes.
3408
- */
3409
- getCourierRoutes(params) {
3410
- return this.http.get(`${this.url}/courier-routes`, {
3411
- params
3412
- }).pipe(map(({ data }) => data));
3413
- }
3414
- /**
3415
- * Fetches the courier route details based on the provided courier route ID.
3416
- *
3417
- * @param {number} id - The courier route id
3418
- * @return {Observable<CourierRouteOut>} An observable that emits the courier route data.
3419
- */
3420
- getCourierRoute(id) {
3421
- return this.http.get(`${this.url}/courier-routes/${id}`)
3422
- .pipe(map(({ data }) => data));
3423
- }
3424
- /**
3425
- * Creates a new courier route.
3426
- *
3427
- * @param {CourierRouteIn} body - The data for the new courier route.
3428
- * @returns {Observable<CourierRouteOut>} An observable the created courier route detail.
3429
- */
3430
- postCourierRoute(body) {
3431
- return this.http.post(`${this.url}/courier-routes`, body).pipe(map(({ data }) => data));
3432
- }
3433
- /**
3434
- * Update an existing courier route.
3435
- *
3436
- * @param {number} id - The identifier of the courier route record to update.
3437
- * @param {CourierRouteIn} body - The courier route data to be updated.
3438
- * @returns {Observable<CourierRouteOut>} An observable detail of the updated courier route.
3439
- */
3440
- putCourierRoute(id, body) {
3441
- return this.http.put(`${this.url}/courier-routes/${id}`, body).pipe(map(({ data }) => data));
3442
- }
3443
- /**
3444
- * Delete an existing courier route.
3445
- *
3446
- * @param {number} id - The unique identifier of the courier route to be deleted.
3447
- * @returns {Observable<CourierRouteOut>} An observable that emits the result of the delete courier route.
3448
- */
3449
- deleteCourierRoute(id) {
3450
- return this.http.delete(`${this.url}/courier-routes/${id}`)
3451
- .pipe(map(({ data }) => data));
3452
- }
3453
3413
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3454
3414
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiInventoriesService, providedIn: 'root' });
3455
3415
  }
@@ -5389,6 +5349,14 @@ var DocumentStatusCode;
5389
5349
  DocumentStatusCode[DocumentStatusCode["WITH_ERRORS"] = 3] = "WITH_ERRORS";
5390
5350
  })(DocumentStatusCode || (DocumentStatusCode = {}));
5391
5351
 
5352
+ var CustomerRoleType;
5353
+ (function (CustomerRoleType) {
5354
+ CustomerRoleType["SHIPPER"] = "SP";
5355
+ CustomerRoleType["CONSIGNEE"] = "RV";
5356
+ CustomerRoleType["IMPORTER"] = "IP";
5357
+ CustomerRoleType["EXPORTER"] = "EP";
5358
+ })(CustomerRoleType || (CustomerRoleType = {}));
5359
+
5392
5360
  class WebSocketsService {
5393
5361
  pusher;
5394
5362
  environments = inject(ENVIRONMENT_TOKEN);
@@ -5755,5 +5723,5 @@ const xmlHeaders = (format = 'object') => {
5755
5723
  * Generated bundle index. Do not edit.
5756
5724
  */
5757
5725
 
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 };
5726
+ 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, CustomerRoleType, 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
5727
  //# sourceMappingURL=experteam-mx-ngx-services.mjs.map