@energycap/energycap-billcapture-sdk-angular 1.0.248-develop-20260312-1851 → 1.0.258-develop-20260319-1650

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.
@@ -1649,6 +1649,24 @@ class ProblemFileService {
1649
1649
  }
1650
1650
  }));
1651
1651
  }
1652
+ /**
1653
+ * Upload a replacement file for a problem file. The file must be a whitelisted image type. The file will be zipped and placed in the front door folder for processing. Max file size is 500MB.
1654
+ *
1655
+ * @param problemFileId The problem file identifier
1656
+ * @param fileName File name to be used when saving the upload
1657
+ * @param body
1658
+ */
1659
+ apiV202603ProblemFileProblemFileIdUploadPost(problemFileId, fileName, body, extraHttpRequestParams, extraHttpRequestHeaders) {
1660
+ return this.apiV202603ProblemFileProblemFileIdUploadPostWithHttpInfo(problemFileId, fileName, body, extraHttpRequestParams, extraHttpRequestHeaders)
1661
+ .pipe(map((response) => {
1662
+ if (response.status === 204) {
1663
+ return undefined;
1664
+ }
1665
+ else {
1666
+ return response.body;
1667
+ }
1668
+ }));
1669
+ }
1652
1670
  /**
1653
1671
  * Perform an action on one or many problem files
1654
1672
  *
@@ -1781,6 +1799,66 @@ class ProblemFileService {
1781
1799
  };
1782
1800
  return this.http.request(RequestMethod$4.Get, path, requestOptions);
1783
1801
  }
1802
+ /**
1803
+ * Upload a replacement file for a problem file. The file must be a whitelisted image type. The file will be zipped and placed in the front door folder for processing. Max file size is 500MB.
1804
+ *
1805
+ * @param problemFileId The problem file identifier
1806
+ * @param fileName File name to be used when saving the upload
1807
+ * @param body
1808
+ */
1809
+ apiV202603ProblemFileProblemFileIdUploadPostWithHttpInfo(problemFileId, fileName, body, extraHttpRequestParams, extraHttpRequestHeaders) {
1810
+ const path = this.basePath + '/api/v202603/ProblemFile/${problemFileId}/upload'
1811
+ .replace('${' + 'problemFileId' + '}', String(problemFileId));
1812
+ let queryParameters;
1813
+ if (extraHttpRequestParams) {
1814
+ if (typeof extraHttpRequestParams.search === 'string') {
1815
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
1816
+ }
1817
+ else {
1818
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
1819
+ }
1820
+ }
1821
+ else {
1822
+ queryParameters = new HttpParams();
1823
+ }
1824
+ let headers = new HttpHeaders();
1825
+ this.defaultHeaders.keys().forEach(key => {
1826
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
1827
+ });
1828
+ if (extraHttpRequestHeaders) {
1829
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
1830
+ headers = headers.set(key, value);
1831
+ });
1832
+ }
1833
+ // verify required parameter 'problemFileId' is not null or undefined
1834
+ if (problemFileId === null || problemFileId === undefined) {
1835
+ throw new Error('Required parameter problemFileId was null or undefined when calling apiV202603ProblemFileProblemFileIdUploadPost.');
1836
+ }
1837
+ if (fileName !== undefined) {
1838
+ queryParameters = queryParameters.set('fileName', fileName);
1839
+ }
1840
+ // to determine the Accept header
1841
+ let produces = [];
1842
+ if (this.configuration.apiKeys["Authorization"]) {
1843
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
1844
+ }
1845
+ if (this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]) {
1846
+ headers = headers.set('ECI-PUBLIC-DASHBOARD-KEY', this.configuration.apiKeys["ECI-PUBLIC-DASHBOARD-KEY"]);
1847
+ }
1848
+ const consumes = [
1849
+ 'application/octet-stream',
1850
+ 'application/json'
1851
+ ];
1852
+ headers = headers.set('Content-Type', consumes[0]);
1853
+ let requestOptions = {
1854
+ headers: headers,
1855
+ body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body), // https://github.com/angular/angular/issues/10612
1856
+ params: queryParameters,
1857
+ withCredentials: this.configuration.withCredentials,
1858
+ observe: 'response'
1859
+ };
1860
+ return this.http.request(RequestMethod$4.Post, path, requestOptions);
1861
+ }
1784
1862
  /**
1785
1863
  * Perform an action on one or many problem files
1786
1864
  *