@experteam-mx/ngx-services 20.8.1 → 20.8.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.
@@ -4888,6 +4888,15 @@ class ApiShipmentsService {
4888
4888
  return this.http.post(`${this.url}/document-configurations/preview`, body)
4889
4889
  .pipe(map(({ data }) => data));
4890
4890
  }
4891
+ /**
4892
+ * Retrieves the shipment documents associated with a document configuration
4893
+ * @param {number} id - The unique identifier of the document configuration
4894
+ * @returns {Observable<ShipmentDocumentsOut>} observable containing the shipment documents
4895
+ * */
4896
+ getDocuments(id) {
4897
+ return this.http.get(`${this.url}/shipments/${id}/documents`)
4898
+ .pipe(map(({ data }) => data));
4899
+ }
4891
4900
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4892
4901
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, providedIn: 'root' });
4893
4902
  }