@saritasa/renewaire-frontend-sdk 0.115.0 → 0.116.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
|
@@ -3602,13 +3602,16 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
3602
3602
|
if (isRsdDirect === null || isRsdDirect === undefined) {
|
|
3603
3603
|
throw new Error("Required parameter isRsdDirect was null or undefined when calling repTerritoriesCreateRepTerritory.");
|
|
3604
3604
|
}
|
|
3605
|
+
const salesContactIds = requestParameters?.salesContactIds;
|
|
3606
|
+
if (salesContactIds === null || salesContactIds === undefined) {
|
|
3607
|
+
throw new Error("Required parameter salesContactIds was null or undefined when calling repTerritoriesCreateRepTerritory.");
|
|
3608
|
+
}
|
|
3605
3609
|
const picture = requestParameters?.picture;
|
|
3606
3610
|
const addressAddress2 = requestParameters?.addressAddress2;
|
|
3607
3611
|
const addressCity = requestParameters?.addressCity;
|
|
3608
3612
|
const addressCounty = requestParameters?.addressCounty;
|
|
3609
3613
|
const addressApartmentNumber = requestParameters?.addressApartmentNumber;
|
|
3610
3614
|
const managerGroupId = requestParameters?.managerGroupId;
|
|
3611
|
-
const salesContactIds = requestParameters?.salesContactIds;
|
|
3612
3615
|
let localVarHeaders = this.defaultHeaders;
|
|
3613
3616
|
// authentication (Bearer) required
|
|
3614
3617
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -3865,6 +3868,56 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
3865
3868
|
reportProgress: reportProgress,
|
|
3866
3869
|
});
|
|
3867
3870
|
}
|
|
3871
|
+
repTerritoriesGetAccessibleRepUsers(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3872
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
3873
|
+
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
3874
|
+
throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesGetAccessibleRepUsers.");
|
|
3875
|
+
}
|
|
3876
|
+
const orderBy = requestParameters?.orderBy;
|
|
3877
|
+
const page = requestParameters?.page;
|
|
3878
|
+
const pageSize = requestParameters?.pageSize;
|
|
3879
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
3880
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repTerritoryId, "RepTerritoryId");
|
|
3881
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
|
|
3882
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
|
|
3883
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
|
|
3884
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3885
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
3886
|
+
this.configuration.selectHeaderAccept([
|
|
3887
|
+
"text/plain",
|
|
3888
|
+
"application/json",
|
|
3889
|
+
"text/json",
|
|
3890
|
+
]);
|
|
3891
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3892
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
3893
|
+
}
|
|
3894
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3895
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3896
|
+
let responseType_ = "json";
|
|
3897
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3898
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
3899
|
+
responseType_ = "text";
|
|
3900
|
+
}
|
|
3901
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3902
|
+
responseType_ = "json";
|
|
3903
|
+
}
|
|
3904
|
+
else {
|
|
3905
|
+
responseType_ = "blob";
|
|
3906
|
+
}
|
|
3907
|
+
}
|
|
3908
|
+
let localVarPath = `/api/rep-territories/rep-users`;
|
|
3909
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3910
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
3911
|
+
context: localVarHttpContext,
|
|
3912
|
+
params: localVarQueryParameters,
|
|
3913
|
+
responseType: responseType_,
|
|
3914
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3915
|
+
headers: localVarHeaders,
|
|
3916
|
+
observe: observe,
|
|
3917
|
+
transferCache: localVarTransferCache,
|
|
3918
|
+
reportProgress: reportProgress,
|
|
3919
|
+
});
|
|
3920
|
+
}
|
|
3868
3921
|
repTerritoriesGetRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3869
3922
|
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
3870
3923
|
if (repTerritoryId === null || repTerritoryId === undefined) {
|
|
@@ -4093,6 +4146,11 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
4093
4146
|
if (saveDtoIsRsdDirect === null || saveDtoIsRsdDirect === undefined) {
|
|
4094
4147
|
throw new Error("Required parameter saveDtoIsRsdDirect was null or undefined when calling repTerritoriesUpdateRepTerritory.");
|
|
4095
4148
|
}
|
|
4149
|
+
const saveDtoSalesContactIds = requestParameters?.saveDtoSalesContactIds;
|
|
4150
|
+
if (saveDtoSalesContactIds === null ||
|
|
4151
|
+
saveDtoSalesContactIds === undefined) {
|
|
4152
|
+
throw new Error("Required parameter saveDtoSalesContactIds was null or undefined when calling repTerritoriesUpdateRepTerritory.");
|
|
4153
|
+
}
|
|
4096
4154
|
const isActive = requestParameters?.isActive;
|
|
4097
4155
|
if (isActive === null || isActive === undefined) {
|
|
4098
4156
|
throw new Error("Required parameter isActive was null or undefined when calling repTerritoriesUpdateRepTerritory.");
|
|
@@ -4103,7 +4161,6 @@ class RepTerritoriesApiService extends BaseService {
|
|
|
4103
4161
|
const saveDtoAddressCounty = requestParameters?.saveDtoAddressCounty;
|
|
4104
4162
|
const saveDtoAddressApartmentNumber = requestParameters?.saveDtoAddressApartmentNumber;
|
|
4105
4163
|
const saveDtoManagerGroupId = requestParameters?.saveDtoManagerGroupId;
|
|
4106
|
-
const saveDtoSalesContactIds = requestParameters?.saveDtoSalesContactIds;
|
|
4107
4164
|
const repContacts = requestParameters?.repContacts;
|
|
4108
4165
|
let localVarHeaders = this.defaultHeaders;
|
|
4109
4166
|
// authentication (Bearer) required
|
|
@@ -8400,6 +8457,16 @@ var RegistrationStatus;
|
|
|
8400
8457
|
* Do not edit the class manually.
|
|
8401
8458
|
*/
|
|
8402
8459
|
|
|
8460
|
+
/**
|
|
8461
|
+
* RenewAire CORES API
|
|
8462
|
+
*
|
|
8463
|
+
* Contact: renewaire@saritasa.com
|
|
8464
|
+
*
|
|
8465
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8466
|
+
* https://openapi-generator.tech
|
|
8467
|
+
* Do not edit the class manually.
|
|
8468
|
+
*/
|
|
8469
|
+
|
|
8403
8470
|
/**
|
|
8404
8471
|
* RenewAire CORES API
|
|
8405
8472
|
*
|