@experteam-mx/ngx-services 20.8.0 → 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.
|
@@ -4838,41 +4838,63 @@ class ApiShipmentsService {
|
|
|
4838
4838
|
.pipe(map(({ data }) => data));
|
|
4839
4839
|
}
|
|
4840
4840
|
/**
|
|
4841
|
-
* Retrieves a paginated list of
|
|
4842
|
-
*
|
|
4843
|
-
* @
|
|
4841
|
+
* Retrieves a paginated list of document configurations.
|
|
4842
|
+
*
|
|
4843
|
+
* @param {QueryParams} params - Query parameters used for filtering, sorting, and pagination.
|
|
4844
|
+
* @returns {Observable<DocumentConfigurationsOut>} An observable containing the list of document configurations and pagination metadata.
|
|
4844
4845
|
*/
|
|
4845
|
-
|
|
4846
|
-
return this.http.get(`${this.url}/
|
|
4846
|
+
getDocumentConfigurations(params) {
|
|
4847
|
+
return this.http.get(`${this.url}/document-configurations`, {
|
|
4847
4848
|
params
|
|
4848
4849
|
}).pipe(map(({ data }) => data));
|
|
4849
4850
|
}
|
|
4850
4851
|
/**
|
|
4851
|
-
* Retrieves
|
|
4852
|
+
* Retrieves a document configuration by its identifier.
|
|
4853
|
+
*
|
|
4854
|
+
* @param {number} id - The unique identifier of the document configuration.
|
|
4855
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the document configuration details.
|
|
4856
|
+
*/
|
|
4857
|
+
getDocumentConfiguration(id) {
|
|
4858
|
+
return this.http.get(`${this.url}/document-configurations/${id}`).pipe(map(({ data }) => data));
|
|
4859
|
+
}
|
|
4860
|
+
/**
|
|
4861
|
+
* Creates a new document configuration.
|
|
4852
4862
|
*
|
|
4853
|
-
* @param {
|
|
4854
|
-
* @
|
|
4863
|
+
* @param {DocumentConfigurationIn} body - The document configuration data to create.
|
|
4864
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the newly created document configuration.
|
|
4855
4865
|
*/
|
|
4856
|
-
|
|
4857
|
-
return this.http.
|
|
4866
|
+
postDocumentConfiguration(body) {
|
|
4867
|
+
return this.http.post(`${this.url}/document-configurations`, body)
|
|
4868
|
+
.pipe(map(({ data }) => data));
|
|
4858
4869
|
}
|
|
4859
4870
|
/**
|
|
4860
|
-
*
|
|
4861
|
-
*
|
|
4862
|
-
* @
|
|
4871
|
+
* Updates an existing document configuration.
|
|
4872
|
+
*
|
|
4873
|
+
* @param {number} id - The unique identifier of the document configuration to update.
|
|
4874
|
+
* @param {DocumentConfigurationIn} body - The updated document configuration data.
|
|
4875
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the updated document configuration.
|
|
4863
4876
|
*/
|
|
4864
|
-
|
|
4865
|
-
return this.http.
|
|
4877
|
+
putDocumentConfiguration(id, body) {
|
|
4878
|
+
return this.http.put(`${this.url}/document-configurations/${id}`, body)
|
|
4866
4879
|
.pipe(map(({ data }) => data));
|
|
4867
4880
|
}
|
|
4868
4881
|
/**
|
|
4869
|
-
*
|
|
4870
|
-
*
|
|
4871
|
-
* @param {
|
|
4872
|
-
* @returns {Observable<
|
|
4882
|
+
* Generates a preview for a document configuration.
|
|
4883
|
+
*
|
|
4884
|
+
* @param {DocumentConfigurationsPreviewIn} body - The data used to generate the document preview.
|
|
4885
|
+
* @returns {Observable<DocumentConfigurationsPreviewOut>} An observable containing the generated document preview.
|
|
4873
4886
|
*/
|
|
4874
|
-
|
|
4875
|
-
return this.http.
|
|
4887
|
+
postDocumentConfigurationPreview(body) {
|
|
4888
|
+
return this.http.post(`${this.url}/document-configurations/preview`, body)
|
|
4889
|
+
.pipe(map(({ data }) => data));
|
|
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`)
|
|
4876
4898
|
.pipe(map(({ data }) => data));
|
|
4877
4899
|
}
|
|
4878
4900
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|