@energycap/energycapid-sdk-angular 1.2112.73-develop-20220202-1024 → 1.2112.74-develop-20220202-1329

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.
@@ -20,6 +20,7 @@ import { OrganizationResponse } from '../model/organizationResponse';
20
20
  import { OrganizationUserResponse } from '../model/organizationUserResponse';
21
21
  import { UpdateOrganizationAccessControlRequest } from '../model/updateOrganizationAccessControlRequest';
22
22
  import { UpdateOrganizationDetailsRequest } from '../model/updateOrganizationDetailsRequest';
23
+ import { UpdateOrganizationUserPermissionRequest } from '../model/updateOrganizationUserPermissionRequest';
23
24
  import { Configuration } from '../configuration';
24
25
  export declare class OrganizationService {
25
26
  protected http: HttpClient;
@@ -169,6 +170,20 @@ export declare class OrganizationService {
169
170
  }, extraHttpRequestHeaders?: {
170
171
  [header: string]: string | string[];
171
172
  }): Observable<OrganizationDetailResponse>;
173
+ /**
174
+ * Update organization user permission data You must be an admin to the organization to update this information
175
+ *
176
+ * @param organizationId The organization identifier
177
+ * @param userId The user identifier
178
+ * @param body
179
+ */
180
+ updateOrganizationUserPermission(organizationId: string, userId: string, body?: UpdateOrganizationUserPermissionRequest, extraHttpRequestParams?: {
181
+ search: string | {
182
+ [param: string]: string | string[];
183
+ };
184
+ }, extraHttpRequestHeaders?: {
185
+ [header: string]: string | string[];
186
+ }): Observable<any>;
172
187
  /**
173
188
  * Create a new organization
174
189
  *
@@ -299,4 +314,18 @@ export declare class OrganizationService {
299
314
  }, extraHttpRequestHeaders?: {
300
315
  [header: string]: string | string[];
301
316
  }): Observable<HttpResponse<OrganizationDetailResponse>>;
317
+ /**
318
+ * Update organization user permission data You must be an admin to the organization to update this information
319
+ *
320
+ * @param organizationId The organization identifier
321
+ * @param userId The user identifier
322
+ * @param body
323
+ */
324
+ updateOrganizationUserPermissionWithHttpInfo(organizationId: string, userId: string, body?: UpdateOrganizationUserPermissionRequest, extraHttpRequestParams?: {
325
+ search: string | {
326
+ [param: string]: string | string[];
327
+ };
328
+ }, extraHttpRequestHeaders?: {
329
+ [header: string]: string | string[];
330
+ }): Observable<HttpResponse<any>>;
302
331
  }
@@ -2844,6 +2844,24 @@
2844
2844
  }
2845
2845
  }));
2846
2846
  };
2847
+ /**
2848
+ * Update organization user permission data You must be an admin to the organization to update this information
2849
+ *
2850
+ * @param organizationId The organization identifier
2851
+ * @param userId The user identifier
2852
+ * @param body
2853
+ */
2854
+ OrganizationService.prototype.updateOrganizationUserPermission = function (organizationId, userId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
2855
+ return this.updateOrganizationUserPermissionWithHttpInfo(organizationId, userId, body, extraHttpRequestParams, extraHttpRequestHeaders)
2856
+ .pipe(operators.map(function (response) {
2857
+ if (response.status === 204) {
2858
+ return undefined;
2859
+ }
2860
+ else {
2861
+ return response.body;
2862
+ }
2863
+ }));
2864
+ };
2847
2865
  /**
2848
2866
  * Create a new organization
2849
2867
  *
@@ -3391,6 +3409,66 @@
3391
3409
  };
3392
3410
  return this.http.request(RequestMethod$2.Put, path, requestOptions);
3393
3411
  };
3412
+ /**
3413
+ * Update organization user permission data You must be an admin to the organization to update this information
3414
+ *
3415
+ * @param organizationId The organization identifier
3416
+ * @param userId The user identifier
3417
+ * @param body
3418
+ */
3419
+ OrganizationService.prototype.updateOrganizationUserPermissionWithHttpInfo = function (organizationId, userId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
3420
+ var _this = this;
3421
+ var path = this.basePath + '/api/v202112/Organization/${organizationId}/user/${userId}'
3422
+ .replace('${' + 'organizationId' + '}', String(organizationId))
3423
+ .replace('${' + 'userId' + '}', String(userId));
3424
+ var queryParameters;
3425
+ if (extraHttpRequestParams) {
3426
+ if (typeof extraHttpRequestParams.search === 'string') {
3427
+ queryParameters = new http.HttpParams({ fromString: extraHttpRequestParams.search });
3428
+ }
3429
+ else {
3430
+ queryParameters = new http.HttpParams({ fromObject: extraHttpRequestParams.search });
3431
+ }
3432
+ }
3433
+ else {
3434
+ queryParameters = new http.HttpParams();
3435
+ }
3436
+ var headers = new http.HttpHeaders();
3437
+ this.defaultHeaders.keys().forEach(function (key) {
3438
+ headers = headers.set(key, _this.defaultHeaders.getAll(key));
3439
+ });
3440
+ if (extraHttpRequestHeaders) {
3441
+ Object.entries(extraHttpRequestHeaders).forEach(function (_a) {
3442
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
3443
+ headers = headers.set(key, value);
3444
+ });
3445
+ }
3446
+ // verify required parameter 'organizationId' is not null or undefined
3447
+ if (organizationId === null || organizationId === undefined) {
3448
+ throw new Error('Required parameter organizationId was null or undefined when calling updateOrganizationUserPermission.');
3449
+ }
3450
+ // verify required parameter 'userId' is not null or undefined
3451
+ if (userId === null || userId === undefined) {
3452
+ throw new Error('Required parameter userId was null or undefined when calling updateOrganizationUserPermission.');
3453
+ }
3454
+ // to determine the Accept header
3455
+ var produces = [];
3456
+ if (this.configuration.apiKeys["Authorization"]) {
3457
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
3458
+ }
3459
+ var consumes = [
3460
+ 'application/json'
3461
+ ];
3462
+ headers = headers.set('Content-Type', consumes[0]);
3463
+ var requestOptions = {
3464
+ headers: headers,
3465
+ body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body),
3466
+ params: queryParameters,
3467
+ withCredentials: this.configuration.withCredentials,
3468
+ observe: 'response'
3469
+ };
3470
+ return this.http.request(RequestMethod$2.Put, path, requestOptions);
3471
+ };
3394
3472
  return OrganizationService;
3395
3473
  }());
3396
3474
  OrganizationService.decorators = [
@@ -5268,6 +5346,26 @@
5268
5346
  return UpdateOrganizationDetailsRequest;
5269
5347
  }());
5270
5348
 
5349
+ /**
5350
+ * EnergyCAP ID SDK
5351
+ * Document used to generate the EnergyCAP ID SDK
5352
+ *
5353
+ * OpenAPI spec version: 1.2112
5354
+ * Contact: support@energycap.com
5355
+ *
5356
+ * NOTE: This class is auto generated by the swagger code generator program.
5357
+ * https://github.com/swagger-api/swagger-codegen.git
5358
+ * Do not edit the class manually.
5359
+ */
5360
+ /**
5361
+ * Request for updating organization user permission data
5362
+ */
5363
+ var UpdateOrganizationUserPermissionRequest = /** @class */ (function () {
5364
+ function UpdateOrganizationUserPermissionRequest() {
5365
+ }
5366
+ return UpdateOrganizationUserPermissionRequest;
5367
+ }());
5368
+
5271
5369
  /**
5272
5370
  * EnergyCAP ID SDK
5273
5371
  * Document used to generate the EnergyCAP ID SDK
@@ -5610,6 +5708,7 @@
5610
5708
  exports.UpdateMeRequest = UpdateMeRequest;
5611
5709
  exports.UpdateOrganizationAccessControlRequest = UpdateOrganizationAccessControlRequest;
5612
5710
  exports.UpdateOrganizationDetailsRequest = UpdateOrganizationDetailsRequest;
5711
+ exports.UpdateOrganizationUserPermissionRequest = UpdateOrganizationUserPermissionRequest;
5613
5712
  exports.UpdateResult = UpdateResult;
5614
5713
  exports.UserApplicationInstanceResponse = UserApplicationInstanceResponse;
5615
5714
  exports.UserChild = UserChild;