@saritasa/renewaire-frontend-sdk 0.142.0 → 0.144.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.142.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.144.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.142.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.144.0 --save
5
5
  ```
@@ -4085,6 +4085,49 @@ class ProjectsApiService extends BaseService {
4085
4085
  reportProgress: reportProgress,
4086
4086
  });
4087
4087
  }
4088
+ projectsGetProjectEditMode(requestParameters, observe = "body", reportProgress = false, options) {
4089
+ const projectId = requestParameters?.projectId;
4090
+ if (projectId === null || projectId === undefined) {
4091
+ throw new Error("Required parameter projectId was null or undefined when calling projectsGetProjectEditMode.");
4092
+ }
4093
+ let localVarHeaders = this.defaultHeaders;
4094
+ // authentication (Bearer) required
4095
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4096
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4097
+ this.configuration.selectHeaderAccept([
4098
+ "text/plain",
4099
+ "application/json",
4100
+ "text/json",
4101
+ ]);
4102
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4103
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4104
+ }
4105
+ const localVarHttpContext = options?.context ?? new HttpContext();
4106
+ const localVarTransferCache = options?.transferCache ?? true;
4107
+ let responseType_ = "json";
4108
+ if (localVarHttpHeaderAcceptSelected) {
4109
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4110
+ responseType_ = "text";
4111
+ }
4112
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4113
+ responseType_ = "json";
4114
+ }
4115
+ else {
4116
+ responseType_ = "blob";
4117
+ }
4118
+ }
4119
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/edit`;
4120
+ const { basePath, withCredentials } = this.configuration;
4121
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4122
+ context: localVarHttpContext,
4123
+ responseType: responseType_,
4124
+ ...(withCredentials ? { withCredentials } : {}),
4125
+ headers: localVarHeaders,
4126
+ observe: observe,
4127
+ transferCache: localVarTransferCache,
4128
+ reportProgress: reportProgress,
4129
+ });
4130
+ }
4088
4131
  projectsSearchProjects(requestParameters, observe = "body", reportProgress = false, options) {
4089
4132
  const fields = requestParameters?.fields;
4090
4133
  if (fields === null || fields === undefined) {
@@ -8321,16 +8364,13 @@ class UsersManagementApiService extends BaseService {
8321
8364
  if (addressPostalCode === null || addressPostalCode === undefined) {
8322
8365
  throw new Error("Required parameter addressPostalCode was null or undefined when calling usersManagementCreateUser.");
8323
8366
  }
8324
- const occupation = requestParameters?.occupation;
8325
- if (occupation === null || occupation === undefined) {
8326
- throw new Error("Required parameter occupation was null or undefined when calling usersManagementCreateUser.");
8327
- }
8328
8367
  const contactInformationWorkPhoneNumberExt = requestParameters?.contactInformationWorkPhoneNumberExt;
8329
8368
  const contactInformationMobilePhoneNumber = requestParameters?.contactInformationMobilePhoneNumber;
8330
8369
  const addressAddress2 = requestParameters?.addressAddress2;
8331
8370
  const addressCity = requestParameters?.addressCity;
8332
8371
  const addressCounty = requestParameters?.addressCounty;
8333
8372
  const addressApartmentNumber = requestParameters?.addressApartmentNumber;
8373
+ const occupation = requestParameters?.occupation;
8334
8374
  const companyLogo = requestParameters?.companyLogo;
8335
8375
  const groupId = requestParameters?.groupId;
8336
8376
  const repTerritoryId = requestParameters?.repTerritoryId;
@@ -8684,16 +8724,13 @@ class UsersManagementApiService extends BaseService {
8684
8724
  if (addressPostalCode === null || addressPostalCode === undefined) {
8685
8725
  throw new Error("Required parameter addressPostalCode was null or undefined when calling usersManagementUpdateUser.");
8686
8726
  }
8687
- const occupation = requestParameters?.occupation;
8688
- if (occupation === null || occupation === undefined) {
8689
- throw new Error("Required parameter occupation was null or undefined when calling usersManagementUpdateUser.");
8690
- }
8691
8727
  const contactInformationWorkPhoneNumberExt = requestParameters?.contactInformationWorkPhoneNumberExt;
8692
8728
  const contactInformationMobilePhoneNumber = requestParameters?.contactInformationMobilePhoneNumber;
8693
8729
  const addressAddress2 = requestParameters?.addressAddress2;
8694
8730
  const addressCity = requestParameters?.addressCity;
8695
8731
  const addressCounty = requestParameters?.addressCounty;
8696
8732
  const addressApartmentNumber = requestParameters?.addressApartmentNumber;
8733
+ const occupation = requestParameters?.occupation;
8697
8734
  const companyLogo = requestParameters?.companyLogo;
8698
8735
  const shouldRemoveCompanyLogo = requestParameters?.shouldRemoveCompanyLogo;
8699
8736
  const groupId = requestParameters?.groupId;