@saritasa/renewaire-frontend-sdk 0.22.0 → 0.24.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
|
@@ -455,11 +455,7 @@ class AuthApiService extends BaseService {
|
|
|
455
455
|
reportProgress: reportProgress,
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
|
-
authRefreshToken(
|
|
459
|
-
const refreshTokenCommand = requestParameters?.refreshTokenCommand;
|
|
460
|
-
if (refreshTokenCommand === null || refreshTokenCommand === undefined) {
|
|
461
|
-
throw new Error("Required parameter refreshTokenCommand was null or undefined when calling authRefreshToken.");
|
|
462
|
-
}
|
|
458
|
+
authRefreshToken(observe = "body", reportProgress = false, options) {
|
|
463
459
|
let localVarHeaders = this.defaultHeaders;
|
|
464
460
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
465
461
|
this.configuration.selectHeaderAccept([
|
|
@@ -472,16 +468,6 @@ class AuthApiService extends BaseService {
|
|
|
472
468
|
}
|
|
473
469
|
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
474
470
|
const localVarTransferCache = options?.transferCache ?? true;
|
|
475
|
-
// to determine the Content-Type header
|
|
476
|
-
const consumes = [
|
|
477
|
-
"application/json",
|
|
478
|
-
"text/json",
|
|
479
|
-
"application/*+json",
|
|
480
|
-
];
|
|
481
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
482
|
-
if (httpContentTypeSelected !== undefined) {
|
|
483
|
-
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
484
|
-
}
|
|
485
471
|
let responseType_ = "json";
|
|
486
472
|
if (localVarHttpHeaderAcceptSelected) {
|
|
487
473
|
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
@@ -498,7 +484,6 @@ class AuthApiService extends BaseService {
|
|
|
498
484
|
const { basePath, withCredentials } = this.configuration;
|
|
499
485
|
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
500
486
|
context: localVarHttpContext,
|
|
501
|
-
body: refreshTokenCommand,
|
|
502
487
|
responseType: responseType_,
|
|
503
488
|
...(withCredentials ? { withCredentials } : {}),
|
|
504
489
|
headers: localVarHeaders,
|
|
@@ -1690,6 +1675,70 @@ class RepContactsApiService extends BaseService {
|
|
|
1690
1675
|
reportProgress: reportProgress,
|
|
1691
1676
|
});
|
|
1692
1677
|
}
|
|
1678
|
+
repContactsSearchRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1679
|
+
const fields = requestParameters?.fields;
|
|
1680
|
+
if (fields === null || fields === undefined) {
|
|
1681
|
+
throw new Error("Required parameter fields was null or undefined when calling repContactsSearchRepTerritoryRepContact.");
|
|
1682
|
+
}
|
|
1683
|
+
const name = requestParameters?.name;
|
|
1684
|
+
const phone = requestParameters?.phone;
|
|
1685
|
+
const email = requestParameters?.email;
|
|
1686
|
+
const repName = requestParameters?.repName;
|
|
1687
|
+
const orderBy = requestParameters?.orderBy;
|
|
1688
|
+
const page = requestParameters?.page;
|
|
1689
|
+
const pageSize = requestParameters?.pageSize;
|
|
1690
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1691
|
+
if (fields) {
|
|
1692
|
+
fields.forEach((element) => {
|
|
1693
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, "Fields");
|
|
1694
|
+
});
|
|
1695
|
+
}
|
|
1696
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
|
|
1697
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, phone, "Phone");
|
|
1698
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, email, "Email");
|
|
1699
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repName, "RepName");
|
|
1700
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
1701
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
1702
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
1703
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1704
|
+
// authentication (Bearer) required
|
|
1705
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
1706
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
1707
|
+
this.configuration.selectHeaderAccept([
|
|
1708
|
+
"text/plain",
|
|
1709
|
+
"application/json",
|
|
1710
|
+
"text/json",
|
|
1711
|
+
]);
|
|
1712
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1713
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
1714
|
+
}
|
|
1715
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1716
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1717
|
+
let responseType_ = "json";
|
|
1718
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1719
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
1720
|
+
responseType_ = "text";
|
|
1721
|
+
}
|
|
1722
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1723
|
+
responseType_ = "json";
|
|
1724
|
+
}
|
|
1725
|
+
else {
|
|
1726
|
+
responseType_ = "blob";
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
let localVarPath = `/api/rep-contacts`;
|
|
1730
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1731
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
1732
|
+
context: localVarHttpContext,
|
|
1733
|
+
params: localVarQueryParameters,
|
|
1734
|
+
responseType: responseType_,
|
|
1735
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1736
|
+
headers: localVarHeaders,
|
|
1737
|
+
observe: observe,
|
|
1738
|
+
transferCache: localVarTransferCache,
|
|
1739
|
+
reportProgress: reportProgress,
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1693
1742
|
repContactsUpdateRepTerritoryRepContact(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1694
1743
|
const repTerritoryRepContactId = requestParameters?.repTerritoryRepContactId;
|
|
1695
1744
|
if (repTerritoryRepContactId === null ||
|
|
@@ -5029,16 +5078,6 @@ var Permission;
|
|
|
5029
5078
|
* Do not edit the class manually.
|
|
5030
5079
|
*/
|
|
5031
5080
|
|
|
5032
|
-
/**
|
|
5033
|
-
* RenewAire CORES API
|
|
5034
|
-
*
|
|
5035
|
-
* Contact: renewaire@saritasa.com
|
|
5036
|
-
*
|
|
5037
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5038
|
-
* https://openapi-generator.tech
|
|
5039
|
-
* Do not edit the class manually.
|
|
5040
|
-
*/
|
|
5041
|
-
|
|
5042
5081
|
/**
|
|
5043
5082
|
* RenewAire CORES API
|
|
5044
5083
|
*
|