@energycap/energycapid-sdk-angular 1.2112.77-develop-20220207-1120 → 1.2112.78-develop-20220207-1810

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,11 +12,11 @@
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';
19
18
  import { OrganizationJoinRequest } from '../model/organizationJoinRequest';
19
+ import { OrganizationRequest } from '../model/organizationRequest';
20
20
  import { OrganizationResponse } from '../model/organizationResponse';
21
21
  import { OrganizationUserResponse } from '../model/organizationUserResponse';
22
22
  import { UpdateOrganizationAccessControlRequest } from '../model/updateOrganizationAccessControlRequest';
@@ -42,12 +42,12 @@ export declare class OrganizationService {
42
42
  */
43
43
  private canConsumeForm;
44
44
  /**
45
- * Create a new organization
45
+ * Create a new child organization
46
46
  *
47
- * @param organizationId
48
- * @param body
47
+ * @param parentOrganizationId The parent of the new organization
48
+ * @param body Details about the new organization
49
49
  */
50
- createOrganization(organizationId: string, body?: CreateOrganizationRequest, extraHttpRequestParams?: {
50
+ createOrganization(parentOrganizationId: string, body?: OrganizationRequest, extraHttpRequestParams?: {
51
51
  search: string | {
52
52
  [param: string]: string | string[];
53
53
  };
@@ -199,12 +199,12 @@ export declare class OrganizationService {
199
199
  [header: string]: string | string[];
200
200
  }): Observable<any>;
201
201
  /**
202
- * Create a new organization
202
+ * Create a new child organization
203
203
  *
204
- * @param organizationId
205
- * @param body
204
+ * @param parentOrganizationId The parent of the new organization
205
+ * @param body Details about the new organization
206
206
  */
207
- createOrganizationWithHttpInfo(organizationId: string, body?: CreateOrganizationRequest, extraHttpRequestParams?: {
207
+ createOrganizationWithHttpInfo(parentOrganizationId: string, body?: OrganizationRequest, extraHttpRequestParams?: {
208
208
  search: string | {
209
209
  [param: string]: string | string[];
210
210
  };
@@ -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;
@@ -2880,15 +2880,15 @@
2880
2880
  }));
2881
2881
  };
2882
2882
  /**
2883
- * Create a new organization
2883
+ * Create a new child organization
2884
2884
  *
2885
- * @param organizationId
2886
- * @param body
2885
+ * @param parentOrganizationId The parent of the new organization
2886
+ * @param body Details about the new organization
2887
2887
  */
2888
- OrganizationService.prototype.createOrganizationWithHttpInfo = function (organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
2888
+ OrganizationService.prototype.createOrganizationWithHttpInfo = function (parentOrganizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
2889
2889
  var _this = this;
2890
- var path = this.basePath + '/api/v202112/Organization/${organizationId}'
2891
- .replace('${' + 'organizationId' + '}', String(organizationId));
2890
+ var path = this.basePath + '/api/v202112/Organization/${parentOrganizationId}'
2891
+ .replace('${' + 'parentOrganizationId' + '}', String(parentOrganizationId));
2892
2892
  var queryParameters;
2893
2893
  if (extraHttpRequestParams) {
2894
2894
  if (typeof extraHttpRequestParams.search === 'string') {
@@ -2911,9 +2911,9 @@
2911
2911
  headers = headers.set(key, value);
2912
2912
  });
2913
2913
  }
2914
- // verify required parameter 'organizationId' is not null or undefined
2915
- if (organizationId === null || organizationId === undefined) {
2916
- 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.');
2917
2917
  }
2918
2918
  // to determine the Accept header
2919
2919
  var produces = [
@@ -4737,23 +4737,6 @@
4737
4737
  return ChangePasswordRequest;
4738
4738
  }());
4739
4739
 
4740
- /**
4741
- * EnergyCAP ID SDK
4742
- * Document used to generate the EnergyCAP ID SDK
4743
- *
4744
- * OpenAPI spec version: 1.2112
4745
- * Contact: support@energycap.com
4746
- *
4747
- * NOTE: This class is auto generated by the swagger code generator program.
4748
- * https://github.com/swagger-api/swagger-codegen.git
4749
- * Do not edit the class manually.
4750
- */
4751
- var CreateOrganizationRequest = /** @class */ (function () {
4752
- function CreateOrganizationRequest() {
4753
- }
4754
- return CreateOrganizationRequest;
4755
- }());
4756
-
4757
4740
  /**
4758
4741
  * EnergyCAP ID SDK
4759
4742
  * Document used to generate the EnergyCAP ID SDK
@@ -5210,6 +5193,26 @@
5210
5193
  return OrganizationAssignedCustomField;
5211
5194
  }());
5212
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
+
5213
5216
  /**
5214
5217
  * EnergyCAP ID SDK
5215
5218
  * Document used to generate the EnergyCAP ID SDK
@@ -5270,6 +5273,26 @@
5270
5273
  return OrganizationJoinRequest;
5271
5274
  }());
5272
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
+
5273
5296
  /**
5274
5297
  * EnergyCAP ID SDK
5275
5298
  * Document used to generate the EnergyCAP ID SDK
@@ -5757,7 +5780,6 @@
5757
5780
  exports.COLLECTION_FORMATS = COLLECTION_FORMATS;
5758
5781
  exports.ChangePasswordRequest = ChangePasswordRequest;
5759
5782
  exports.Configuration = Configuration;
5760
- exports.CreateOrganizationRequest = CreateOrganizationRequest;
5761
5783
  exports.DataSourceResponse = DataSourceResponse;
5762
5784
  exports.DataSourceService = DataSourceService;
5763
5785
  exports.DataSourceUpdateRequest = DataSourceUpdateRequest;
@@ -5789,9 +5811,11 @@
5789
5811
  exports.OrganizationApplicationResponse = OrganizationApplicationResponse;
5790
5812
  exports.OrganizationApplicationService = OrganizationApplicationService;
5791
5813
  exports.OrganizationAssignedCustomField = OrganizationAssignedCustomField;
5814
+ exports.OrganizationCustomFieldRequest = OrganizationCustomFieldRequest;
5792
5815
  exports.OrganizationDetailResponse = OrganizationDetailResponse;
5793
5816
  exports.OrganizationGatherCustomField = OrganizationGatherCustomField;
5794
5817
  exports.OrganizationJoinRequest = OrganizationJoinRequest;
5818
+ exports.OrganizationRequest = OrganizationRequest;
5795
5819
  exports.OrganizationResponse = OrganizationResponse;
5796
5820
  exports.OrganizationService = OrganizationService;
5797
5821
  exports.OrganizationUserResponse = OrganizationUserResponse;