@saritasa/renewaire-frontend-sdk 0.414.0 → 0.415.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.414.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.415.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.414.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.415.0 --save
5
5
  ```
@@ -13831,6 +13831,45 @@ class UsersApiService extends BaseService {
13831
13831
  reportProgress: reportProgress,
13832
13832
  });
13833
13833
  }
13834
+ usersGetMySalesChannelContacts(observe = "body", reportProgress = false, options) {
13835
+ let localVarHeaders = this.defaultHeaders;
13836
+ // authentication (Bearer) required
13837
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
13838
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
13839
+ this.configuration.selectHeaderAccept([
13840
+ "text/plain",
13841
+ "application/json",
13842
+ "text/json",
13843
+ ]);
13844
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
13845
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
13846
+ }
13847
+ const localVarHttpContext = options?.context ?? new HttpContext();
13848
+ const localVarTransferCache = options?.transferCache ?? true;
13849
+ let responseType_ = "json";
13850
+ if (localVarHttpHeaderAcceptSelected) {
13851
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
13852
+ responseType_ = "text";
13853
+ }
13854
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
13855
+ responseType_ = "json";
13856
+ }
13857
+ else {
13858
+ responseType_ = "blob";
13859
+ }
13860
+ }
13861
+ let localVarPath = `/api/users/me/sales-channel-contacts`;
13862
+ const { basePath, withCredentials } = this.configuration;
13863
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
13864
+ context: localVarHttpContext,
13865
+ responseType: responseType_,
13866
+ ...(withCredentials ? { withCredentials } : {}),
13867
+ headers: localVarHeaders,
13868
+ observe: observe,
13869
+ transferCache: localVarTransferCache,
13870
+ reportProgress: reportProgress,
13871
+ });
13872
+ }
13834
13873
  usersGetRepContacts(requestParameters, observe = "body", reportProgress = false, options) {
13835
13874
  const userId = requestParameters?.userId;
13836
13875
  if (userId === null || userId === undefined) {
@@ -13874,6 +13913,49 @@ class UsersApiService extends BaseService {
13874
13913
  reportProgress: reportProgress,
13875
13914
  });
13876
13915
  }
13916
+ usersGetSalesChannelContacts(requestParameters, observe = "body", reportProgress = false, options) {
13917
+ const userId = requestParameters?.userId;
13918
+ if (userId === null || userId === undefined) {
13919
+ throw new Error("Required parameter userId was null or undefined when calling usersGetSalesChannelContacts.");
13920
+ }
13921
+ let localVarHeaders = this.defaultHeaders;
13922
+ // authentication (Bearer) required
13923
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
13924
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
13925
+ this.configuration.selectHeaderAccept([
13926
+ "text/plain",
13927
+ "application/json",
13928
+ "text/json",
13929
+ ]);
13930
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
13931
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
13932
+ }
13933
+ const localVarHttpContext = options?.context ?? new HttpContext();
13934
+ const localVarTransferCache = options?.transferCache ?? true;
13935
+ let responseType_ = "json";
13936
+ if (localVarHttpHeaderAcceptSelected) {
13937
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
13938
+ responseType_ = "text";
13939
+ }
13940
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
13941
+ responseType_ = "json";
13942
+ }
13943
+ else {
13944
+ responseType_ = "blob";
13945
+ }
13946
+ }
13947
+ let localVarPath = `/api/users/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/sales-channel-contacts`;
13948
+ const { basePath, withCredentials } = this.configuration;
13949
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
13950
+ context: localVarHttpContext,
13951
+ responseType: responseType_,
13952
+ ...(withCredentials ? { withCredentials } : {}),
13953
+ headers: localVarHeaders,
13954
+ observe: observe,
13955
+ transferCache: localVarTransferCache,
13956
+ reportProgress: reportProgress,
13957
+ });
13958
+ }
13877
13959
  usersGetUserPermissions(requestParameters, observe = "body", reportProgress = false, options) {
13878
13960
  const userId = requestParameters?.userId;
13879
13961
  if (userId === null || userId === undefined) {
@@ -18188,6 +18270,16 @@ var RepDataSource;
18188
18270
  * Do not edit the class manually.
18189
18271
  */
18190
18272
 
18273
+ /**
18274
+ * RenewAire CORES API
18275
+ *
18276
+ * Contact: renewaire@saritasa.com
18277
+ *
18278
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
18279
+ * https://openapi-generator.tech
18280
+ * Do not edit the class manually.
18281
+ */
18282
+
18191
18283
  /**
18192
18284
  * RenewAire CORES API
18193
18285
  *