@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 signature page settings
4842
- * @param {QueryParams} params - Query parameters for filtering and pagination
4843
- * @returns {Observable<SignaturePageSettingsOut>} Observable containing the list of signature page settings and pagination metadata
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
- getSignaturePageSettings(params) {
4846
- return this.http.get(`${this.url}/signature-page-settings`, {
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 the details of a signature page setting based on its ID.
4852
+ * Retrieves a document configuration by its identifier.
4852
4853
  *
4853
- * @param {number} id - The identifier of the signature page setting to fetch.
4854
- * @return {Observable<SignaturePageSettingOut>} An observable that emits the signature page setting data.
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
- getSignaturePageSetting(id) {
4857
- return this.http.get(`${this.url}/signature-page-settings/${id}`).pipe(map(({ data }) => data));
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 signature page setting
4861
- * @param {SignaturePageSettingIn} body - The signature page setting data to create
4862
- * @returns {Observable<SignaturePageSettingOut>} Observable containing the created signature page setting with its assigned ID
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
- postSignaturePageSetting(body) {
4865
- return this.http.post(`${this.url}/signature-page-settings`, body)
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 signature page setting
4870
- * @param {number} id - The unique identifier of the signature page setting to update
4871
- * @param {SignaturePageSettingIn} body - The updated signature page setting data
4872
- * @returns {Observable<SignaturePageSettingOut>} Observable containing the updated signature page setting
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
- putSignaturePageSetting(id, body) {
4875
- return this.http.put(`${this.url}/signature-page-settings/${id}`, body)
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 });