@saritasa/renewaire-frontend-sdk 0.120.0 → 0.122.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.120.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.122.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.120.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.122.0 --save
5
5
  ```
@@ -4040,20 +4040,14 @@ class RepTerritoriesApiService extends BaseService {
4040
4040
  reportProgress: reportProgress,
4041
4041
  });
4042
4042
  }
4043
- repTerritoriesGetAccessibleRepUsers(requestParameters, observe = "body", reportProgress = false, options) {
4043
+ repTerritoriesGetRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
4044
4044
  const repTerritoryId = requestParameters?.repTerritoryId;
4045
4045
  if (repTerritoryId === null || repTerritoryId === undefined) {
4046
- throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesGetAccessibleRepUsers.");
4046
+ throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesGetRepTerritory.");
4047
4047
  }
4048
- const orderBy = requestParameters?.orderBy;
4049
- const page = requestParameters?.page;
4050
- const pageSize = requestParameters?.pageSize;
4051
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
4052
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repTerritoryId, "RepTerritoryId");
4053
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
4054
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
4055
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
4056
4048
  let localVarHeaders = this.defaultHeaders;
4049
+ // authentication (Bearer) required
4050
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4057
4051
  const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4058
4052
  this.configuration.selectHeaderAccept([
4059
4053
  "text/plain",
@@ -4077,11 +4071,10 @@ class RepTerritoriesApiService extends BaseService {
4077
4071
  responseType_ = "blob";
4078
4072
  }
4079
4073
  }
4080
- let localVarPath = `/api/rep-territories/rep-users`;
4074
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
4081
4075
  const { basePath, withCredentials } = this.configuration;
4082
4076
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4083
4077
  context: localVarHttpContext,
4084
- params: localVarQueryParameters,
4085
4078
  responseType: responseType_,
4086
4079
  ...(withCredentials ? { withCredentials } : {}),
4087
4080
  headers: localVarHeaders,
@@ -4090,20 +4083,15 @@ class RepTerritoriesApiService extends BaseService {
4090
4083
  reportProgress: reportProgress,
4091
4084
  });
4092
4085
  }
4093
- repTerritoriesGetRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
4086
+ repTerritoriesRemoveRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
4094
4087
  const repTerritoryId = requestParameters?.repTerritoryId;
4095
4088
  if (repTerritoryId === null || repTerritoryId === undefined) {
4096
- throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesGetRepTerritory.");
4089
+ throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesRemoveRepTerritory.");
4097
4090
  }
4098
4091
  let localVarHeaders = this.defaultHeaders;
4099
4092
  // authentication (Bearer) required
4100
4093
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4101
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4102
- this.configuration.selectHeaderAccept([
4103
- "text/plain",
4104
- "application/json",
4105
- "text/json",
4106
- ]);
4094
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4107
4095
  if (localVarHttpHeaderAcceptSelected !== undefined) {
4108
4096
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4109
4097
  }
@@ -4123,7 +4111,7 @@ class RepTerritoriesApiService extends BaseService {
4123
4111
  }
4124
4112
  let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
4125
4113
  const { basePath, withCredentials } = this.configuration;
4126
- return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4114
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
4127
4115
  context: localVarHttpContext,
4128
4116
  responseType: responseType_,
4129
4117
  ...(withCredentials ? { withCredentials } : {}),
@@ -4133,15 +4121,30 @@ class RepTerritoriesApiService extends BaseService {
4133
4121
  reportProgress: reportProgress,
4134
4122
  });
4135
4123
  }
4136
- repTerritoriesRemoveRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
4124
+ repTerritoriesSearchAccessibleRepUsers(requestParameters, observe = "body", reportProgress = false, options) {
4137
4125
  const repTerritoryId = requestParameters?.repTerritoryId;
4138
4126
  if (repTerritoryId === null || repTerritoryId === undefined) {
4139
- throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesRemoveRepTerritory.");
4127
+ throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesSearchAccessibleRepUsers.");
4140
4128
  }
4129
+ const name = requestParameters?.name;
4130
+ const isDefaultSalesContact = requestParameters?.isDefaultSalesContact;
4131
+ const orderBy = requestParameters?.orderBy;
4132
+ const page = requestParameters?.page;
4133
+ const pageSize = requestParameters?.pageSize;
4134
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
4135
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repTerritoryId, "RepTerritoryId");
4136
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
4137
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isDefaultSalesContact, "IsDefaultSalesContact");
4138
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
4139
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
4140
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
4141
4141
  let localVarHeaders = this.defaultHeaders;
4142
- // authentication (Bearer) required
4143
- localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4144
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4142
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4143
+ this.configuration.selectHeaderAccept([
4144
+ "text/plain",
4145
+ "application/json",
4146
+ "text/json",
4147
+ ]);
4145
4148
  if (localVarHttpHeaderAcceptSelected !== undefined) {
4146
4149
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4147
4150
  }
@@ -4159,10 +4162,11 @@ class RepTerritoriesApiService extends BaseService {
4159
4162
  responseType_ = "blob";
4160
4163
  }
4161
4164
  }
4162
- let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
4165
+ let localVarPath = `/api/rep-territories/rep-users`;
4163
4166
  const { basePath, withCredentials } = this.configuration;
4164
- return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
4167
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4165
4168
  context: localVarHttpContext,
4169
+ params: localVarQueryParameters,
4166
4170
  responseType: responseType_,
4167
4171
  ...(withCredentials ? { withCredentials } : {}),
4168
4172
  headers: localVarHeaders,