@energycap/energycapid-sdk-angular 1.2112.76-develop-20220203-1706 → 1.2112.80-develop-20220208-0903

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.
@@ -12,14 +12,14 @@
12
12
  import { HttpClient, HttpHeaders } from '@angular/common/http';
13
13
  import { HttpResponse } from '@angular/common/http';
14
14
  import { Observable } from 'rxjs';
15
- import { CreateOrganizationRequest } from '../model/createOrganizationRequest';
16
15
  import { HierarchicalOrganizations } from '../model/hierarchicalOrganizations';
17
16
  import { OrganizationAccessControlResponse } from '../model/organizationAccessControlResponse';
18
17
  import { OrganizationDetailResponse } from '../model/organizationDetailResponse';
18
+ import { OrganizationJoinRequest } from '../model/organizationJoinRequest';
19
+ import { OrganizationRequest } from '../model/organizationRequest';
19
20
  import { OrganizationResponse } from '../model/organizationResponse';
20
21
  import { OrganizationUserResponse } from '../model/organizationUserResponse';
21
22
  import { UpdateOrganizationAccessControlRequest } from '../model/updateOrganizationAccessControlRequest';
22
- import { UpdateOrganizationDetailsRequest } from '../model/updateOrganizationDetailsRequest';
23
23
  import { UpdateOrganizationUserPermissionRequest } from '../model/updateOrganizationUserPermissionRequest';
24
24
  import { Configuration } from '../configuration';
25
25
  export declare class OrganizationService {
@@ -41,12 +41,12 @@ export declare class OrganizationService {
41
41
  */
42
42
  private canConsumeForm;
43
43
  /**
44
- * Create a new organization
44
+ * Create a new child organization
45
45
  *
46
- * @param organizationId
47
- * @param body
46
+ * @param parentOrganizationId The parent of the new organization
47
+ * @param body Details about the new organization
48
48
  */
49
- createOrganization(organizationId: string, body?: CreateOrganizationRequest, extraHttpRequestParams?: {
49
+ createOrganization(parentOrganizationId: string, body?: OrganizationRequest, extraHttpRequestParams?: {
50
50
  search: string | {
51
51
  [param: string]: string | string[];
52
52
  };
@@ -130,6 +130,19 @@ export declare class OrganizationService {
130
130
  }, extraHttpRequestHeaders?: {
131
131
  [header: string]: string | string[];
132
132
  }): Observable<Array<OrganizationResponse>>;
133
+ /**
134
+ * Process an organization join request
135
+ *
136
+ * @param organizationId The organization identifier
137
+ * @param body
138
+ */
139
+ processOrganizationJoinRequest(organizationId: string, body?: OrganizationJoinRequest, extraHttpRequestParams?: {
140
+ search: string | {
141
+ [param: string]: string | string[];
142
+ };
143
+ }, extraHttpRequestHeaders?: {
144
+ [header: string]: string | string[];
145
+ }): Observable<any>;
133
146
  /**
134
147
  *
135
148
  *
@@ -161,9 +174,9 @@ export declare class OrganizationService {
161
174
  * Update organization details You must be an admin to the organization to get this information
162
175
  *
163
176
  * @param organizationId The organization identifier
164
- * @param body
177
+ * @param body The organization details to update
165
178
  */
166
- updateOrganizationDetails(organizationId: string, body?: UpdateOrganizationDetailsRequest, extraHttpRequestParams?: {
179
+ updateOrganizationDetails(organizationId: string, body?: OrganizationRequest, extraHttpRequestParams?: {
167
180
  search: string | {
168
181
  [param: string]: string | string[];
169
182
  };
@@ -185,12 +198,12 @@ export declare class OrganizationService {
185
198
  [header: string]: string | string[];
186
199
  }): Observable<any>;
187
200
  /**
188
- * Create a new organization
201
+ * Create a new child organization
189
202
  *
190
- * @param organizationId
191
- * @param body
203
+ * @param parentOrganizationId The parent of the new organization
204
+ * @param body Details about the new organization
192
205
  */
193
- createOrganizationWithHttpInfo(organizationId: string, body?: CreateOrganizationRequest, extraHttpRequestParams?: {
206
+ createOrganizationWithHttpInfo(parentOrganizationId: string, body?: OrganizationRequest, extraHttpRequestParams?: {
194
207
  search: string | {
195
208
  [param: string]: string | string[];
196
209
  };
@@ -274,6 +287,19 @@ export declare class OrganizationService {
274
287
  }, extraHttpRequestHeaders?: {
275
288
  [header: string]: string | string[];
276
289
  }): Observable<HttpResponse<Array<OrganizationResponse>>>;
290
+ /**
291
+ * Process an organization join request
292
+ *
293
+ * @param organizationId The organization identifier
294
+ * @param body
295
+ */
296
+ processOrganizationJoinRequestWithHttpInfo(organizationId: string, body?: OrganizationJoinRequest, extraHttpRequestParams?: {
297
+ search: string | {
298
+ [param: string]: string | string[];
299
+ };
300
+ }, extraHttpRequestHeaders?: {
301
+ [header: string]: string | string[];
302
+ }): Observable<HttpResponse<any>>;
277
303
  /**
278
304
  *
279
305
  *
@@ -305,9 +331,9 @@ export declare class OrganizationService {
305
331
  * Update organization details You must be an admin to the organization to get this information
306
332
  *
307
333
  * @param organizationId The organization identifier
308
- * @param body
334
+ * @param body The organization details to update
309
335
  */
310
- updateOrganizationDetailsWithHttpInfo(organizationId: string, body?: UpdateOrganizationDetailsRequest, extraHttpRequestParams?: {
336
+ updateOrganizationDetailsWithHttpInfo(organizationId: string, body?: OrganizationRequest, extraHttpRequestParams?: {
311
337
  search: string | {
312
338
  [param: string]: string | string[];
313
339
  };
@@ -2675,13 +2675,13 @@
2675
2675
  return false;
2676
2676
  };
2677
2677
  /**
2678
- * Create a new organization
2678
+ * Create a new child organization
2679
2679
  *
2680
- * @param organizationId
2681
- * @param body
2680
+ * @param parentOrganizationId The parent of the new organization
2681
+ * @param body Details about the new organization
2682
2682
  */
2683
- OrganizationService.prototype.createOrganization = function (organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
2684
- return this.createOrganizationWithHttpInfo(organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders)
2683
+ OrganizationService.prototype.createOrganization = function (parentOrganizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
2684
+ return this.createOrganizationWithHttpInfo(parentOrganizationId, body, extraHttpRequestParams, extraHttpRequestHeaders)
2685
2685
  .pipe(operators.map(function (response) {
2686
2686
  if (response.status === 204) {
2687
2687
  return undefined;
@@ -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
  *
@@ -2831,7 +2848,7 @@
2831
2848
  * Update organization details You must be an admin to the organization to get this information
2832
2849
  *
2833
2850
  * @param organizationId The organization identifier
2834
- * @param body
2851
+ * @param body The organization details to update
2835
2852
  */
2836
2853
  OrganizationService.prototype.updateOrganizationDetails = function (organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
2837
2854
  return this.updateOrganizationDetailsWithHttpInfo(organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders)
@@ -2863,15 +2880,15 @@
2863
2880
  }));
2864
2881
  };
2865
2882
  /**
2866
- * Create a new organization
2883
+ * Create a new child organization
2867
2884
  *
2868
- * @param organizationId
2869
- * @param body
2885
+ * @param parentOrganizationId The parent of the new organization
2886
+ * @param body Details about the new organization
2870
2887
  */
2871
- OrganizationService.prototype.createOrganizationWithHttpInfo = function (organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
2888
+ OrganizationService.prototype.createOrganizationWithHttpInfo = function (parentOrganizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
2872
2889
  var _this = this;
2873
- var path = this.basePath + '/api/v202112/Organization/${organizationId}'
2874
- .replace('${' + 'organizationId' + '}', String(organizationId));
2890
+ var path = this.basePath + '/api/v202112/Organization/${parentOrganizationId}'
2891
+ .replace('${' + 'parentOrganizationId' + '}', String(parentOrganizationId));
2875
2892
  var queryParameters;
2876
2893
  if (extraHttpRequestParams) {
2877
2894
  if (typeof extraHttpRequestParams.search === 'string') {
@@ -2894,9 +2911,9 @@
2894
2911
  headers = headers.set(key, value);
2895
2912
  });
2896
2913
  }
2897
- // verify required parameter 'organizationId' is not null or undefined
2898
- if (organizationId === null || organizationId === undefined) {
2899
- throw new Error('Required parameter organizationId was null or undefined when calling createOrganization.');
2914
+ // verify required parameter 'parentOrganizationId' is not null or undefined
2915
+ if (parentOrganizationId === null || parentOrganizationId === undefined) {
2916
+ throw new Error('Required parameter parentOrganizationId was null or undefined when calling createOrganization.');
2900
2917
  }
2901
2918
  // to determine the Accept header
2902
2919
  var produces = [
@@ -3240,6 +3257,60 @@
3240
3257
  };
3241
3258
  return this.http.request(RequestMethod$2.Get, path, requestOptions);
3242
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
+ };
3243
3314
  /**
3244
3315
  *
3245
3316
  *
@@ -3357,7 +3428,7 @@
3357
3428
  * Update organization details You must be an admin to the organization to get this information
3358
3429
  *
3359
3430
  * @param organizationId The organization identifier
3360
- * @param body
3431
+ * @param body The organization details to update
3361
3432
  */
3362
3433
  OrganizationService.prototype.updateOrganizationDetailsWithHttpInfo = function (organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
3363
3434
  var _this = this;
@@ -4666,23 +4737,6 @@
4666
4737
  return ChangePasswordRequest;
4667
4738
  }());
4668
4739
 
4669
- /**
4670
- * EnergyCAP ID SDK
4671
- * Document used to generate the EnergyCAP ID SDK
4672
- *
4673
- * OpenAPI spec version: 1.2112
4674
- * Contact: support@energycap.com
4675
- *
4676
- * NOTE: This class is auto generated by the swagger code generator program.
4677
- * https://github.com/swagger-api/swagger-codegen.git
4678
- * Do not edit the class manually.
4679
- */
4680
- var CreateOrganizationRequest = /** @class */ (function () {
4681
- function CreateOrganizationRequest() {
4682
- }
4683
- return CreateOrganizationRequest;
4684
- }());
4685
-
4686
4740
  /**
4687
4741
  * EnergyCAP ID SDK
4688
4742
  * Document used to generate the EnergyCAP ID SDK
@@ -5139,6 +5193,26 @@
5139
5193
  return OrganizationAssignedCustomField;
5140
5194
  }());
5141
5195
 
5196
+ /**
5197
+ * EnergyCAP ID SDK
5198
+ * Document used to generate the EnergyCAP ID SDK
5199
+ *
5200
+ * OpenAPI spec version: 1.2112
5201
+ * Contact: support@energycap.com
5202
+ *
5203
+ * NOTE: This class is auto generated by the swagger code generator program.
5204
+ * https://github.com/swagger-api/swagger-codegen.git
5205
+ * Do not edit the class manually.
5206
+ */
5207
+ /**
5208
+ * Use this model to create or update a custom field on an Organization
5209
+ */
5210
+ var OrganizationCustomFieldRequest = /** @class */ (function () {
5211
+ function OrganizationCustomFieldRequest() {
5212
+ }
5213
+ return OrganizationCustomFieldRequest;
5214
+ }());
5215
+
5142
5216
  /**
5143
5217
  * EnergyCAP ID SDK
5144
5218
  * Document used to generate the EnergyCAP ID SDK
@@ -5179,6 +5253,46 @@
5179
5253
  return OrganizationGatherCustomField;
5180
5254
  }());
5181
5255
 
5256
+ /**
5257
+ * EnergyCAP ID SDK
5258
+ * Document used to generate the EnergyCAP ID SDK
5259
+ *
5260
+ * OpenAPI spec version: 1.2112
5261
+ * Contact: support@energycap.com
5262
+ *
5263
+ * NOTE: This class is auto generated by the swagger code generator program.
5264
+ * https://github.com/swagger-api/swagger-codegen.git
5265
+ * Do not edit the class manually.
5266
+ */
5267
+ /**
5268
+ * Request for joining an organization
5269
+ */
5270
+ var OrganizationJoinRequest = /** @class */ (function () {
5271
+ function OrganizationJoinRequest() {
5272
+ }
5273
+ return OrganizationJoinRequest;
5274
+ }());
5275
+
5276
+ /**
5277
+ * EnergyCAP ID SDK
5278
+ * Document used to generate the EnergyCAP ID SDK
5279
+ *
5280
+ * OpenAPI spec version: 1.2112
5281
+ * Contact: support@energycap.com
5282
+ *
5283
+ * NOTE: This class is auto generated by the swagger code generator program.
5284
+ * https://github.com/swagger-api/swagger-codegen.git
5285
+ * Do not edit the class manually.
5286
+ */
5287
+ /**
5288
+ * Use this model to create an organization
5289
+ */
5290
+ var OrganizationRequest = /** @class */ (function () {
5291
+ function OrganizationRequest() {
5292
+ }
5293
+ return OrganizationRequest;
5294
+ }());
5295
+
5182
5296
  /**
5183
5297
  * EnergyCAP ID SDK
5184
5298
  * Document used to generate the EnergyCAP ID SDK
@@ -5329,23 +5443,6 @@
5329
5443
  return UpdateOrganizationAccessControlRequest;
5330
5444
  }());
5331
5445
 
5332
- /**
5333
- * EnergyCAP ID SDK
5334
- * Document used to generate the EnergyCAP ID SDK
5335
- *
5336
- * OpenAPI spec version: 1.2112
5337
- * Contact: support@energycap.com
5338
- *
5339
- * NOTE: This class is auto generated by the swagger code generator program.
5340
- * https://github.com/swagger-api/swagger-codegen.git
5341
- * Do not edit the class manually.
5342
- */
5343
- var UpdateOrganizationDetailsRequest = /** @class */ (function () {
5344
- function UpdateOrganizationDetailsRequest() {
5345
- }
5346
- return UpdateOrganizationDetailsRequest;
5347
- }());
5348
-
5349
5446
  /**
5350
5447
  * EnergyCAP ID SDK
5351
5448
  * Document used to generate the EnergyCAP ID SDK
@@ -5666,7 +5763,6 @@
5666
5763
  exports.COLLECTION_FORMATS = COLLECTION_FORMATS;
5667
5764
  exports.ChangePasswordRequest = ChangePasswordRequest;
5668
5765
  exports.Configuration = Configuration;
5669
- exports.CreateOrganizationRequest = CreateOrganizationRequest;
5670
5766
  exports.DataSourceResponse = DataSourceResponse;
5671
5767
  exports.DataSourceService = DataSourceService;
5672
5768
  exports.DataSourceUpdateRequest = DataSourceUpdateRequest;
@@ -5698,8 +5794,11 @@
5698
5794
  exports.OrganizationApplicationResponse = OrganizationApplicationResponse;
5699
5795
  exports.OrganizationApplicationService = OrganizationApplicationService;
5700
5796
  exports.OrganizationAssignedCustomField = OrganizationAssignedCustomField;
5797
+ exports.OrganizationCustomFieldRequest = OrganizationCustomFieldRequest;
5701
5798
  exports.OrganizationDetailResponse = OrganizationDetailResponse;
5702
5799
  exports.OrganizationGatherCustomField = OrganizationGatherCustomField;
5800
+ exports.OrganizationJoinRequest = OrganizationJoinRequest;
5801
+ exports.OrganizationRequest = OrganizationRequest;
5703
5802
  exports.OrganizationResponse = OrganizationResponse;
5704
5803
  exports.OrganizationService = OrganizationService;
5705
5804
  exports.OrganizationUserResponse = OrganizationUserResponse;
@@ -5707,7 +5806,6 @@
5707
5806
  exports.SelfCreateUserRequest = SelfCreateUserRequest;
5708
5807
  exports.UpdateMeRequest = UpdateMeRequest;
5709
5808
  exports.UpdateOrganizationAccessControlRequest = UpdateOrganizationAccessControlRequest;
5710
- exports.UpdateOrganizationDetailsRequest = UpdateOrganizationDetailsRequest;
5711
5809
  exports.UpdateOrganizationUserPermissionRequest = UpdateOrganizationUserPermissionRequest;
5712
5810
  exports.UpdateResult = UpdateResult;
5713
5811
  exports.UserApplicationInstanceResponse = UserApplicationInstanceResponse;