@experteam-mx/ngx-services 20.8.0 → 20.8.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.
|
@@ -4838,41 +4838,54 @@ 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.
|
|
4852
4853
|
*
|
|
4853
|
-
* @param {number} id - The identifier of the
|
|
4854
|
-
* @
|
|
4854
|
+
* @param {number} id - The unique identifier of the document configuration.
|
|
4855
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the document configuration details.
|
|
4855
4856
|
*/
|
|
4856
|
-
|
|
4857
|
-
return this.http.get(`${this.url}/
|
|
4857
|
+
getDocumentConfiguration(id) {
|
|
4858
|
+
return this.http.get(`${this.url}/document-configurations/${id}`).pipe(map(({ data }) => data));
|
|
4858
4859
|
}
|
|
4859
4860
|
/**
|
|
4860
|
-
* Creates a new
|
|
4861
|
-
*
|
|
4862
|
-
* @
|
|
4861
|
+
* Creates a new document configuration.
|
|
4862
|
+
*
|
|
4863
|
+
* @param {DocumentConfigurationIn} body - The document configuration data to create.
|
|
4864
|
+
* @returns {Observable<DocumentConfigurationOut>} An observable containing the newly created document configuration.
|
|
4863
4865
|
*/
|
|
4864
|
-
|
|
4865
|
-
return this.http.post(`${this.url}/
|
|
4866
|
+
postDocumentConfiguration(body) {
|
|
4867
|
+
return this.http.post(`${this.url}/document-configurations`, body)
|
|
4866
4868
|
.pipe(map(({ data }) => data));
|
|
4867
4869
|
}
|
|
4868
4870
|
/**
|
|
4869
|
-
* Updates an existing
|
|
4870
|
-
*
|
|
4871
|
-
* @param {
|
|
4872
|
-
* @
|
|
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.
|
|
4876
|
+
*/
|
|
4877
|
+
putDocumentConfiguration(id, body) {
|
|
4878
|
+
return this.http.put(`${this.url}/document-configurations/${id}`, body)
|
|
4879
|
+
.pipe(map(({ data }) => data));
|
|
4880
|
+
}
|
|
4881
|
+
/**
|
|
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)
|
|
4876
4889
|
.pipe(map(({ data }) => data));
|
|
4877
4890
|
}
|
|
4878
4891
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ApiShipmentsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|