@saritasa/renewaire-frontend-sdk 0.42.0 → 0.43.0

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # @@saritasa/renewaire-frontend-sdk@0.42.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.43.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.42.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.43.0 --save
5
5
  ```
@@ -1552,6 +1552,61 @@ class ProjectsApiService extends BaseService {
1552
1552
  super(basePath, configuration);
1553
1553
  this.httpClient = httpClient;
1554
1554
  }
1555
+ projectsCancelQuoteRequest(requestParameters, observe = "body", reportProgress = false, options) {
1556
+ const projectId = requestParameters?.projectId;
1557
+ if (projectId === null || projectId === undefined) {
1558
+ throw new Error("Required parameter projectId was null or undefined when calling projectsCancelQuoteRequest.");
1559
+ }
1560
+ const cancelQuoteRequestCommand = requestParameters?.cancelQuoteRequestCommand;
1561
+ let localVarHeaders = this.defaultHeaders;
1562
+ // authentication (Bearer) required
1563
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1564
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1565
+ this.configuration.selectHeaderAccept([
1566
+ "text/plain",
1567
+ "application/json",
1568
+ "text/json",
1569
+ ]);
1570
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1571
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1572
+ }
1573
+ const localVarHttpContext = options?.context ?? new HttpContext();
1574
+ const localVarTransferCache = options?.transferCache ?? true;
1575
+ // to determine the Content-Type header
1576
+ const consumes = [
1577
+ "application/json",
1578
+ "text/json",
1579
+ "application/*+json",
1580
+ ];
1581
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1582
+ if (httpContentTypeSelected !== undefined) {
1583
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1584
+ }
1585
+ let responseType_ = "json";
1586
+ if (localVarHttpHeaderAcceptSelected) {
1587
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1588
+ responseType_ = "text";
1589
+ }
1590
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1591
+ responseType_ = "json";
1592
+ }
1593
+ else {
1594
+ responseType_ = "blob";
1595
+ }
1596
+ }
1597
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/cancel-quote-request`;
1598
+ const { basePath, withCredentials } = this.configuration;
1599
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1600
+ context: localVarHttpContext,
1601
+ body: cancelQuoteRequestCommand,
1602
+ responseType: responseType_,
1603
+ ...(withCredentials ? { withCredentials } : {}),
1604
+ headers: localVarHeaders,
1605
+ observe: observe,
1606
+ transferCache: localVarTransferCache,
1607
+ reportProgress: reportProgress,
1608
+ });
1609
+ }
1555
1610
  projectsCreateProject(requestParameters, observe = "body", reportProgress = false, options) {
1556
1611
  const body = requestParameters?.body;
1557
1612
  let localVarHeaders = this.defaultHeaders;
@@ -1603,6 +1658,61 @@ class ProjectsApiService extends BaseService {
1603
1658
  reportProgress: reportProgress,
1604
1659
  });
1605
1660
  }
1661
+ projectsRequestOrder(requestParameters, observe = "body", reportProgress = false, options) {
1662
+ const projectId = requestParameters?.projectId;
1663
+ if (projectId === null || projectId === undefined) {
1664
+ throw new Error("Required parameter projectId was null or undefined when calling projectsRequestOrder.");
1665
+ }
1666
+ const requestOrderCommand = requestParameters?.requestOrderCommand;
1667
+ let localVarHeaders = this.defaultHeaders;
1668
+ // authentication (Bearer) required
1669
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1670
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1671
+ this.configuration.selectHeaderAccept([
1672
+ "text/plain",
1673
+ "application/json",
1674
+ "text/json",
1675
+ ]);
1676
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1677
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1678
+ }
1679
+ const localVarHttpContext = options?.context ?? new HttpContext();
1680
+ const localVarTransferCache = options?.transferCache ?? true;
1681
+ // to determine the Content-Type header
1682
+ const consumes = [
1683
+ "application/json",
1684
+ "text/json",
1685
+ "application/*+json",
1686
+ ];
1687
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1688
+ if (httpContentTypeSelected !== undefined) {
1689
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1690
+ }
1691
+ let responseType_ = "json";
1692
+ if (localVarHttpHeaderAcceptSelected) {
1693
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1694
+ responseType_ = "text";
1695
+ }
1696
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1697
+ responseType_ = "json";
1698
+ }
1699
+ else {
1700
+ responseType_ = "blob";
1701
+ }
1702
+ }
1703
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/request-order`;
1704
+ const { basePath, withCredentials } = this.configuration;
1705
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1706
+ context: localVarHttpContext,
1707
+ body: requestOrderCommand,
1708
+ responseType: responseType_,
1709
+ ...(withCredentials ? { withCredentials } : {}),
1710
+ headers: localVarHeaders,
1711
+ observe: observe,
1712
+ transferCache: localVarTransferCache,
1713
+ reportProgress: reportProgress,
1714
+ });
1715
+ }
1606
1716
  projectsRequestQuote(requestParameters, observe = "body", reportProgress = false, options) {
1607
1717
  const projectId = requestParameters?.projectId;
1608
1718
  if (projectId === null || projectId === undefined) {
@@ -1658,6 +1768,171 @@ class ProjectsApiService extends BaseService {
1658
1768
  reportProgress: reportProgress,
1659
1769
  });
1660
1770
  }
1771
+ projectsRequestQuote_1(requestParameters, observe = "body", reportProgress = false, options) {
1772
+ const projectId = requestParameters?.projectId;
1773
+ if (projectId === null || projectId === undefined) {
1774
+ throw new Error("Required parameter projectId was null or undefined when calling projectsRequestQuote_1.");
1775
+ }
1776
+ const rejectQuoteCommand = requestParameters?.rejectQuoteCommand;
1777
+ let localVarHeaders = this.defaultHeaders;
1778
+ // authentication (Bearer) required
1779
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1780
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1781
+ this.configuration.selectHeaderAccept([
1782
+ "text/plain",
1783
+ "application/json",
1784
+ "text/json",
1785
+ ]);
1786
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1787
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1788
+ }
1789
+ const localVarHttpContext = options?.context ?? new HttpContext();
1790
+ const localVarTransferCache = options?.transferCache ?? true;
1791
+ // to determine the Content-Type header
1792
+ const consumes = [
1793
+ "application/json",
1794
+ "text/json",
1795
+ "application/*+json",
1796
+ ];
1797
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1798
+ if (httpContentTypeSelected !== undefined) {
1799
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1800
+ }
1801
+ let responseType_ = "json";
1802
+ if (localVarHttpHeaderAcceptSelected) {
1803
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1804
+ responseType_ = "text";
1805
+ }
1806
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1807
+ responseType_ = "json";
1808
+ }
1809
+ else {
1810
+ responseType_ = "blob";
1811
+ }
1812
+ }
1813
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/reject-quote`;
1814
+ const { basePath, withCredentials } = this.configuration;
1815
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1816
+ context: localVarHttpContext,
1817
+ body: rejectQuoteCommand,
1818
+ responseType: responseType_,
1819
+ ...(withCredentials ? { withCredentials } : {}),
1820
+ headers: localVarHeaders,
1821
+ observe: observe,
1822
+ transferCache: localVarTransferCache,
1823
+ reportProgress: reportProgress,
1824
+ });
1825
+ }
1826
+ projectsSubmitQuote(requestParameters, observe = "body", reportProgress = false, options) {
1827
+ const projectId = requestParameters?.projectId;
1828
+ if (projectId === null || projectId === undefined) {
1829
+ throw new Error("Required parameter projectId was null or undefined when calling projectsSubmitQuote.");
1830
+ }
1831
+ const submitQuoteCommand = requestParameters?.submitQuoteCommand;
1832
+ let localVarHeaders = this.defaultHeaders;
1833
+ // authentication (Bearer) required
1834
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1835
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1836
+ this.configuration.selectHeaderAccept([
1837
+ "text/plain",
1838
+ "application/json",
1839
+ "text/json",
1840
+ ]);
1841
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1842
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1843
+ }
1844
+ const localVarHttpContext = options?.context ?? new HttpContext();
1845
+ const localVarTransferCache = options?.transferCache ?? true;
1846
+ // to determine the Content-Type header
1847
+ const consumes = [
1848
+ "application/json",
1849
+ "text/json",
1850
+ "application/*+json",
1851
+ ];
1852
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1853
+ if (httpContentTypeSelected !== undefined) {
1854
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1855
+ }
1856
+ let responseType_ = "json";
1857
+ if (localVarHttpHeaderAcceptSelected) {
1858
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1859
+ responseType_ = "text";
1860
+ }
1861
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1862
+ responseType_ = "json";
1863
+ }
1864
+ else {
1865
+ responseType_ = "blob";
1866
+ }
1867
+ }
1868
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/submit-quote`;
1869
+ const { basePath, withCredentials } = this.configuration;
1870
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1871
+ context: localVarHttpContext,
1872
+ body: submitQuoteCommand,
1873
+ responseType: responseType_,
1874
+ ...(withCredentials ? { withCredentials } : {}),
1875
+ headers: localVarHeaders,
1876
+ observe: observe,
1877
+ transferCache: localVarTransferCache,
1878
+ reportProgress: reportProgress,
1879
+ });
1880
+ }
1881
+ projectsSubmitToRenewAire(requestParameters, observe = "body", reportProgress = false, options) {
1882
+ const projectId = requestParameters?.projectId;
1883
+ if (projectId === null || projectId === undefined) {
1884
+ throw new Error("Required parameter projectId was null or undefined when calling projectsSubmitToRenewAire.");
1885
+ }
1886
+ const submitToRenewAireCommand = requestParameters?.submitToRenewAireCommand;
1887
+ let localVarHeaders = this.defaultHeaders;
1888
+ // authentication (Bearer) required
1889
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1890
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1891
+ this.configuration.selectHeaderAccept([
1892
+ "text/plain",
1893
+ "application/json",
1894
+ "text/json",
1895
+ ]);
1896
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1897
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1898
+ }
1899
+ const localVarHttpContext = options?.context ?? new HttpContext();
1900
+ const localVarTransferCache = options?.transferCache ?? true;
1901
+ // to determine the Content-Type header
1902
+ const consumes = [
1903
+ "application/json",
1904
+ "text/json",
1905
+ "application/*+json",
1906
+ ];
1907
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1908
+ if (httpContentTypeSelected !== undefined) {
1909
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1910
+ }
1911
+ let responseType_ = "json";
1912
+ if (localVarHttpHeaderAcceptSelected) {
1913
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1914
+ responseType_ = "text";
1915
+ }
1916
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1917
+ responseType_ = "json";
1918
+ }
1919
+ else {
1920
+ responseType_ = "blob";
1921
+ }
1922
+ }
1923
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int64" })}/submit-to-renewaire`;
1924
+ const { basePath, withCredentials } = this.configuration;
1925
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1926
+ context: localVarHttpContext,
1927
+ body: submitToRenewAireCommand,
1928
+ responseType: responseType_,
1929
+ ...(withCredentials ? { withCredentials } : {}),
1930
+ headers: localVarHeaders,
1931
+ observe: observe,
1932
+ transferCache: localVarTransferCache,
1933
+ reportProgress: reportProgress,
1934
+ });
1935
+ }
1661
1936
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ProjectsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1662
1937
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: ProjectsApiService, providedIn: "root" });
1663
1938
  }
@@ -5853,6 +6128,26 @@ var AuditEntity;
5853
6128
  * Do not edit the class manually.
5854
6129
  */
5855
6130
 
6131
+ /**
6132
+ * RenewAire CORES API
6133
+ *
6134
+ * Contact: renewaire@saritasa.com
6135
+ *
6136
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6137
+ * https://openapi-generator.tech
6138
+ * Do not edit the class manually.
6139
+ */
6140
+
6141
+ /**
6142
+ * RenewAire CORES API
6143
+ *
6144
+ * Contact: renewaire@saritasa.com
6145
+ *
6146
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6147
+ * https://openapi-generator.tech
6148
+ * Do not edit the class manually.
6149
+ */
6150
+
5856
6151
  /**
5857
6152
  * RenewAire CORES API
5858
6153
  *
@@ -6059,16 +6354,6 @@ var GroupType;
6059
6354
  * Do not edit the class manually.
6060
6355
  */
6061
6356
 
6062
- /**
6063
- * RenewAire CORES API
6064
- *
6065
- * Contact: renewaire@saritasa.com
6066
- *
6067
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6068
- * https://openapi-generator.tech
6069
- * Do not edit the class manually.
6070
- */
6071
-
6072
6357
  /**
6073
6358
  * RenewAire CORES API
6074
6359
  *
@@ -6128,12 +6413,14 @@ var Language;
6128
6413
  * Do not edit the class manually.
6129
6414
  */
6130
6415
  /**
6131
- * Permission<br />0 = SystemAdmin<br />1 = UserAdministration
6416
+ * Permission<br />0 = SystemAdmin<br />1 = UserAdministration<br />100 = SubmitOrder<br />101 = CanImportOrdersToErp
6132
6417
  */
6133
6418
  var Permission;
6134
6419
  (function (Permission) {
6135
6420
  Permission["SystemAdmin"] = "SystemAdmin";
6136
6421
  Permission["UserAdministration"] = "UserAdministration";
6422
+ Permission["SubmitOrder"] = "SubmitOrder";
6423
+ Permission["CanImportOrdersToErp"] = "CanImportOrdersToErp";
6137
6424
  })(Permission || (Permission = {}));
6138
6425
 
6139
6426
  /**
@@ -6156,6 +6443,16 @@ var Permission;
6156
6443
  * Do not edit the class manually.
6157
6444
  */
6158
6445
 
6446
+ /**
6447
+ * RenewAire CORES API
6448
+ *
6449
+ * Contact: renewaire@saritasa.com
6450
+ *
6451
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6452
+ * https://openapi-generator.tech
6453
+ * Do not edit the class manually.
6454
+ */
6455
+
6159
6456
  /**
6160
6457
  * RenewAire CORES API
6161
6458
  *
@@ -6267,6 +6564,26 @@ var RegistrationStatus;
6267
6564
  * Do not edit the class manually.
6268
6565
  */
6269
6566
 
6567
+ /**
6568
+ * RenewAire CORES API
6569
+ *
6570
+ * Contact: renewaire@saritasa.com
6571
+ *
6572
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6573
+ * https://openapi-generator.tech
6574
+ * Do not edit the class manually.
6575
+ */
6576
+
6577
+ /**
6578
+ * RenewAire CORES API
6579
+ *
6580
+ * Contact: renewaire@saritasa.com
6581
+ *
6582
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6583
+ * https://openapi-generator.tech
6584
+ * Do not edit the class manually.
6585
+ */
6586
+
6270
6587
  var SaveGroupDtoTypeEnum;
6271
6588
  (function (SaveGroupDtoTypeEnum) {
6272
6589
  SaveGroupDtoTypeEnum["None"] = "None";
@@ -6412,6 +6729,26 @@ var SetPreferredLanguageCommandPreferredLanguageEnum;
6412
6729
  * Do not edit the class manually.
6413
6730
  */
6414
6731
 
6732
+ /**
6733
+ * RenewAire CORES API
6734
+ *
6735
+ * Contact: renewaire@saritasa.com
6736
+ *
6737
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6738
+ * https://openapi-generator.tech
6739
+ * Do not edit the class manually.
6740
+ */
6741
+
6742
+ /**
6743
+ * RenewAire CORES API
6744
+ *
6745
+ * Contact: renewaire@saritasa.com
6746
+ *
6747
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6748
+ * https://openapi-generator.tech
6749
+ * Do not edit the class manually.
6750
+ */
6751
+
6415
6752
  /**
6416
6753
  * RenewAire CORES API
6417
6754
  *
@@ -6466,6 +6803,8 @@ var UserPermissionDtoPermissionEnum;
6466
6803
  (function (UserPermissionDtoPermissionEnum) {
6467
6804
  UserPermissionDtoPermissionEnum["SystemAdmin"] = "SystemAdmin";
6468
6805
  UserPermissionDtoPermissionEnum["UserAdministration"] = "UserAdministration";
6806
+ UserPermissionDtoPermissionEnum["SubmitOrder"] = "SubmitOrder";
6807
+ UserPermissionDtoPermissionEnum["CanImportOrdersToErp"] = "CanImportOrdersToErp";
6469
6808
  })(UserPermissionDtoPermissionEnum || (UserPermissionDtoPermissionEnum = {}));
6470
6809
 
6471
6810
  /**