@energycap/energycapid-sdk-angular 1.2112.73-develop-20220202-1024 → 1.2112.77-develop-20220207-1120

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.
@@ -16,10 +16,12 @@ import { CreateOrganizationRequest } from '../model/createOrganizationRequest';
16
16
  import { HierarchicalOrganizations } from '../model/hierarchicalOrganizations';
17
17
  import { OrganizationAccessControlResponse } from '../model/organizationAccessControlResponse';
18
18
  import { OrganizationDetailResponse } from '../model/organizationDetailResponse';
19
+ import { OrganizationJoinRequest } from '../model/organizationJoinRequest';
19
20
  import { OrganizationResponse } from '../model/organizationResponse';
20
21
  import { OrganizationUserResponse } from '../model/organizationUserResponse';
21
22
  import { UpdateOrganizationAccessControlRequest } from '../model/updateOrganizationAccessControlRequest';
22
23
  import { UpdateOrganizationDetailsRequest } from '../model/updateOrganizationDetailsRequest';
24
+ import { UpdateOrganizationUserPermissionRequest } from '../model/updateOrganizationUserPermissionRequest';
23
25
  import { Configuration } from '../configuration';
24
26
  export declare class OrganizationService {
25
27
  protected http: HttpClient;
@@ -129,6 +131,19 @@ export declare class OrganizationService {
129
131
  }, extraHttpRequestHeaders?: {
130
132
  [header: string]: string | string[];
131
133
  }): Observable<Array<OrganizationResponse>>;
134
+ /**
135
+ * Process an organization join request
136
+ *
137
+ * @param organizationId The organization identifier
138
+ * @param body
139
+ */
140
+ processOrganizationJoinRequest(organizationId: string, body?: OrganizationJoinRequest, extraHttpRequestParams?: {
141
+ search: string | {
142
+ [param: string]: string | string[];
143
+ };
144
+ }, extraHttpRequestHeaders?: {
145
+ [header: string]: string | string[];
146
+ }): Observable<any>;
132
147
  /**
133
148
  *
134
149
  *
@@ -169,6 +184,20 @@ export declare class OrganizationService {
169
184
  }, extraHttpRequestHeaders?: {
170
185
  [header: string]: string | string[];
171
186
  }): Observable<OrganizationDetailResponse>;
187
+ /**
188
+ * Update organization user permission data You must be an admin to the organization to update this information
189
+ *
190
+ * @param organizationId The organization identifier
191
+ * @param userId The user identifier
192
+ * @param body
193
+ */
194
+ updateOrganizationUserPermission(organizationId: string, userId: string, body?: UpdateOrganizationUserPermissionRequest, extraHttpRequestParams?: {
195
+ search: string | {
196
+ [param: string]: string | string[];
197
+ };
198
+ }, extraHttpRequestHeaders?: {
199
+ [header: string]: string | string[];
200
+ }): Observable<any>;
172
201
  /**
173
202
  * Create a new organization
174
203
  *
@@ -259,6 +288,19 @@ export declare class OrganizationService {
259
288
  }, extraHttpRequestHeaders?: {
260
289
  [header: string]: string | string[];
261
290
  }): Observable<HttpResponse<Array<OrganizationResponse>>>;
291
+ /**
292
+ * Process an organization join request
293
+ *
294
+ * @param organizationId The organization identifier
295
+ * @param body
296
+ */
297
+ processOrganizationJoinRequestWithHttpInfo(organizationId: string, body?: OrganizationJoinRequest, extraHttpRequestParams?: {
298
+ search: string | {
299
+ [param: string]: string | string[];
300
+ };
301
+ }, extraHttpRequestHeaders?: {
302
+ [header: string]: string | string[];
303
+ }): Observable<HttpResponse<any>>;
262
304
  /**
263
305
  *
264
306
  *
@@ -299,4 +341,18 @@ export declare class OrganizationService {
299
341
  }, extraHttpRequestHeaders?: {
300
342
  [header: string]: string | string[];
301
343
  }): Observable<HttpResponse<OrganizationDetailResponse>>;
344
+ /**
345
+ * Update organization user permission data You must be an admin to the organization to update this information
346
+ *
347
+ * @param organizationId The organization identifier
348
+ * @param userId The user identifier
349
+ * @param body
350
+ */
351
+ updateOrganizationUserPermissionWithHttpInfo(organizationId: string, userId: string, body?: UpdateOrganizationUserPermissionRequest, extraHttpRequestParams?: {
352
+ search: string | {
353
+ [param: string]: string | string[];
354
+ };
355
+ }, extraHttpRequestHeaders?: {
356
+ [header: string]: string | string[];
357
+ }): Observable<HttpResponse<any>>;
302
358
  }
@@ -2792,6 +2792,23 @@
2792
2792
  }
2793
2793
  }));
2794
2794
  };
2795
+ /**
2796
+ * Process an organization join request
2797
+ *
2798
+ * @param organizationId The organization identifier
2799
+ * @param body
2800
+ */
2801
+ OrganizationService.prototype.processOrganizationJoinRequest = function (organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
2802
+ return this.processOrganizationJoinRequestWithHttpInfo(organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders)
2803
+ .pipe(operators.map(function (response) {
2804
+ if (response.status === 204) {
2805
+ return undefined;
2806
+ }
2807
+ else {
2808
+ return response.body;
2809
+ }
2810
+ }));
2811
+ };
2795
2812
  /**
2796
2813
  *
2797
2814
  *
@@ -2844,6 +2861,24 @@
2844
2861
  }
2845
2862
  }));
2846
2863
  };
2864
+ /**
2865
+ * Update organization user permission data You must be an admin to the organization to update this information
2866
+ *
2867
+ * @param organizationId The organization identifier
2868
+ * @param userId The user identifier
2869
+ * @param body
2870
+ */
2871
+ OrganizationService.prototype.updateOrganizationUserPermission = function (organizationId, userId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
2872
+ return this.updateOrganizationUserPermissionWithHttpInfo(organizationId, userId, body, extraHttpRequestParams, extraHttpRequestHeaders)
2873
+ .pipe(operators.map(function (response) {
2874
+ if (response.status === 204) {
2875
+ return undefined;
2876
+ }
2877
+ else {
2878
+ return response.body;
2879
+ }
2880
+ }));
2881
+ };
2847
2882
  /**
2848
2883
  * Create a new organization
2849
2884
  *
@@ -3222,6 +3257,60 @@
3222
3257
  };
3223
3258
  return this.http.request(RequestMethod$2.Get, path, requestOptions);
3224
3259
  };
3260
+ /**
3261
+ * Process an organization join request
3262
+ *
3263
+ * @param organizationId The organization identifier
3264
+ * @param body
3265
+ */
3266
+ OrganizationService.prototype.processOrganizationJoinRequestWithHttpInfo = function (organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
3267
+ var _this = this;
3268
+ var path = this.basePath + '/api/v202112/Organization/${organizationId}/join'
3269
+ .replace('${' + 'organizationId' + '}', String(organizationId));
3270
+ var queryParameters;
3271
+ if (extraHttpRequestParams) {
3272
+ if (typeof extraHttpRequestParams.search === 'string') {
3273
+ queryParameters = new http.HttpParams({ fromString: extraHttpRequestParams.search });
3274
+ }
3275
+ else {
3276
+ queryParameters = new http.HttpParams({ fromObject: extraHttpRequestParams.search });
3277
+ }
3278
+ }
3279
+ else {
3280
+ queryParameters = new http.HttpParams();
3281
+ }
3282
+ var headers = new http.HttpHeaders();
3283
+ this.defaultHeaders.keys().forEach(function (key) {
3284
+ headers = headers.set(key, _this.defaultHeaders.getAll(key));
3285
+ });
3286
+ if (extraHttpRequestHeaders) {
3287
+ Object.entries(extraHttpRequestHeaders).forEach(function (_a) {
3288
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
3289
+ headers = headers.set(key, value);
3290
+ });
3291
+ }
3292
+ // verify required parameter 'organizationId' is not null or undefined
3293
+ if (organizationId === null || organizationId === undefined) {
3294
+ throw new Error('Required parameter organizationId was null or undefined when calling processOrganizationJoinRequest.');
3295
+ }
3296
+ // to determine the Accept header
3297
+ var produces = [];
3298
+ if (this.configuration.apiKeys["Authorization"]) {
3299
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
3300
+ }
3301
+ var consumes = [
3302
+ 'application/json'
3303
+ ];
3304
+ headers = headers.set('Content-Type', consumes[0]);
3305
+ var requestOptions = {
3306
+ headers: headers,
3307
+ body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body),
3308
+ params: queryParameters,
3309
+ withCredentials: this.configuration.withCredentials,
3310
+ observe: 'response'
3311
+ };
3312
+ return this.http.request(RequestMethod$2.Post, path, requestOptions);
3313
+ };
3225
3314
  /**
3226
3315
  *
3227
3316
  *
@@ -3391,6 +3480,66 @@
3391
3480
  };
3392
3481
  return this.http.request(RequestMethod$2.Put, path, requestOptions);
3393
3482
  };
3483
+ /**
3484
+ * Update organization user permission data You must be an admin to the organization to update this information
3485
+ *
3486
+ * @param organizationId The organization identifier
3487
+ * @param userId The user identifier
3488
+ * @param body
3489
+ */
3490
+ OrganizationService.prototype.updateOrganizationUserPermissionWithHttpInfo = function (organizationId, userId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
3491
+ var _this = this;
3492
+ var path = this.basePath + '/api/v202112/Organization/${organizationId}/user/${userId}'
3493
+ .replace('${' + 'organizationId' + '}', String(organizationId))
3494
+ .replace('${' + 'userId' + '}', String(userId));
3495
+ var queryParameters;
3496
+ if (extraHttpRequestParams) {
3497
+ if (typeof extraHttpRequestParams.search === 'string') {
3498
+ queryParameters = new http.HttpParams({ fromString: extraHttpRequestParams.search });
3499
+ }
3500
+ else {
3501
+ queryParameters = new http.HttpParams({ fromObject: extraHttpRequestParams.search });
3502
+ }
3503
+ }
3504
+ else {
3505
+ queryParameters = new http.HttpParams();
3506
+ }
3507
+ var headers = new http.HttpHeaders();
3508
+ this.defaultHeaders.keys().forEach(function (key) {
3509
+ headers = headers.set(key, _this.defaultHeaders.getAll(key));
3510
+ });
3511
+ if (extraHttpRequestHeaders) {
3512
+ Object.entries(extraHttpRequestHeaders).forEach(function (_a) {
3513
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
3514
+ headers = headers.set(key, value);
3515
+ });
3516
+ }
3517
+ // verify required parameter 'organizationId' is not null or undefined
3518
+ if (organizationId === null || organizationId === undefined) {
3519
+ throw new Error('Required parameter organizationId was null or undefined when calling updateOrganizationUserPermission.');
3520
+ }
3521
+ // verify required parameter 'userId' is not null or undefined
3522
+ if (userId === null || userId === undefined) {
3523
+ throw new Error('Required parameter userId was null or undefined when calling updateOrganizationUserPermission.');
3524
+ }
3525
+ // to determine the Accept header
3526
+ var produces = [];
3527
+ if (this.configuration.apiKeys["Authorization"]) {
3528
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
3529
+ }
3530
+ var consumes = [
3531
+ 'application/json'
3532
+ ];
3533
+ headers = headers.set('Content-Type', consumes[0]);
3534
+ var requestOptions = {
3535
+ headers: headers,
3536
+ body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body),
3537
+ params: queryParameters,
3538
+ withCredentials: this.configuration.withCredentials,
3539
+ observe: 'response'
3540
+ };
3541
+ return this.http.request(RequestMethod$2.Put, path, requestOptions);
3542
+ };
3394
3543
  return OrganizationService;
3395
3544
  }());
3396
3545
  OrganizationService.decorators = [
@@ -5101,6 +5250,26 @@
5101
5250
  return OrganizationGatherCustomField;
5102
5251
  }());
5103
5252
 
5253
+ /**
5254
+ * EnergyCAP ID SDK
5255
+ * Document used to generate the EnergyCAP ID SDK
5256
+ *
5257
+ * OpenAPI spec version: 1.2112
5258
+ * Contact: support@energycap.com
5259
+ *
5260
+ * NOTE: This class is auto generated by the swagger code generator program.
5261
+ * https://github.com/swagger-api/swagger-codegen.git
5262
+ * Do not edit the class manually.
5263
+ */
5264
+ /**
5265
+ * Request for joining an organization
5266
+ */
5267
+ var OrganizationJoinRequest = /** @class */ (function () {
5268
+ function OrganizationJoinRequest() {
5269
+ }
5270
+ return OrganizationJoinRequest;
5271
+ }());
5272
+
5104
5273
  /**
5105
5274
  * EnergyCAP ID SDK
5106
5275
  * Document used to generate the EnergyCAP ID SDK
@@ -5268,6 +5437,26 @@
5268
5437
  return UpdateOrganizationDetailsRequest;
5269
5438
  }());
5270
5439
 
5440
+ /**
5441
+ * EnergyCAP ID SDK
5442
+ * Document used to generate the EnergyCAP ID SDK
5443
+ *
5444
+ * OpenAPI spec version: 1.2112
5445
+ * Contact: support@energycap.com
5446
+ *
5447
+ * NOTE: This class is auto generated by the swagger code generator program.
5448
+ * https://github.com/swagger-api/swagger-codegen.git
5449
+ * Do not edit the class manually.
5450
+ */
5451
+ /**
5452
+ * Request for updating organization user permission data
5453
+ */
5454
+ var UpdateOrganizationUserPermissionRequest = /** @class */ (function () {
5455
+ function UpdateOrganizationUserPermissionRequest() {
5456
+ }
5457
+ return UpdateOrganizationUserPermissionRequest;
5458
+ }());
5459
+
5271
5460
  /**
5272
5461
  * EnergyCAP ID SDK
5273
5462
  * Document used to generate the EnergyCAP ID SDK
@@ -5602,6 +5791,7 @@
5602
5791
  exports.OrganizationAssignedCustomField = OrganizationAssignedCustomField;
5603
5792
  exports.OrganizationDetailResponse = OrganizationDetailResponse;
5604
5793
  exports.OrganizationGatherCustomField = OrganizationGatherCustomField;
5794
+ exports.OrganizationJoinRequest = OrganizationJoinRequest;
5605
5795
  exports.OrganizationResponse = OrganizationResponse;
5606
5796
  exports.OrganizationService = OrganizationService;
5607
5797
  exports.OrganizationUserResponse = OrganizationUserResponse;
@@ -5610,6 +5800,7 @@
5610
5800
  exports.UpdateMeRequest = UpdateMeRequest;
5611
5801
  exports.UpdateOrganizationAccessControlRequest = UpdateOrganizationAccessControlRequest;
5612
5802
  exports.UpdateOrganizationDetailsRequest = UpdateOrganizationDetailsRequest;
5803
+ exports.UpdateOrganizationUserPermissionRequest = UpdateOrganizationUserPermissionRequest;
5613
5804
  exports.UpdateResult = UpdateResult;
5614
5805
  exports.UserApplicationInstanceResponse = UserApplicationInstanceResponse;
5615
5806
  exports.UserChild = UserChild;