@energycap/energycapid-sdk-angular 1.2112.52-develop-20220104-1634 → 1.2112.56-develop-20220119-1331

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.
@@ -2378,13 +2378,11 @@ class OrganizationService {
2378
2378
  }));
2379
2379
  }
2380
2380
  /**
2381
- * Returns the entire oranizaion hiearchy If there are more than 100 organizations a 403 is returned.
2381
+ * Returns your entire organization hierarchy For performance returns a max page size of 100
2382
2382
  *
2383
- * @param pageSize The number of elements to return in a page (defaults to 100 elements)
2384
- * @param pageNumber The current page number
2385
2383
  */
2386
- getOrganizationHierarchy(pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2387
- return this.getOrganizationHierarchyWithHttpInfo(pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
2384
+ getOrganizationHierarchy(extraHttpRequestParams, extraHttpRequestHeaders) {
2385
+ return this.getOrganizationHierarchyWithHttpInfo(extraHttpRequestParams, extraHttpRequestHeaders)
2388
2386
  .pipe(map((response) => {
2389
2387
  if (response.status === 204) {
2390
2388
  return undefined;
@@ -2413,12 +2411,12 @@ class OrganizationService {
2413
2411
  /**
2414
2412
  * Gets the organizations to which the logged in user has access
2415
2413
  *
2416
- * @param onlyAdmin Defaults to false. If false, returns all organizations to which the current user has access. If set to true will only return results where the logged in user has admin access
2417
- * @param pageSize The number of elements to return in a page (defaults to 250 elements)
2414
+ * @param filter
2415
+ * @param pageSize The number of elements to return in a page (defaults to 50 elements)
2418
2416
  * @param pageNumber The current page number
2419
2417
  */
2420
- getOrganizations(onlyAdmin, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2421
- return this.getOrganizationsWithHttpInfo(onlyAdmin, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
2418
+ getOrganizations(filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2419
+ return this.getOrganizationsWithHttpInfo(filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
2422
2420
  .pipe(map((response) => {
2423
2421
  if (response.status === 204) {
2424
2422
  return undefined;
@@ -2682,12 +2680,10 @@ class OrganizationService {
2682
2680
  return this.http.request(RequestMethod$2.Get, path, requestOptions);
2683
2681
  }
2684
2682
  /**
2685
- * Returns the entire oranizaion hiearchy If there are more than 100 organizations a 403 is returned.
2683
+ * Returns your entire organization hierarchy For performance returns a max page size of 100
2686
2684
  *
2687
- * @param pageSize The number of elements to return in a page (defaults to 100 elements)
2688
- * @param pageNumber The current page number
2689
2685
  */
2690
- getOrganizationHierarchyWithHttpInfo(pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2686
+ getOrganizationHierarchyWithHttpInfo(extraHttpRequestParams, extraHttpRequestHeaders) {
2691
2687
  const path = this.basePath + '/api/v202112/Organization/hierarchy';
2692
2688
  let queryParameters;
2693
2689
  if (extraHttpRequestParams) {
@@ -2710,12 +2706,6 @@ class OrganizationService {
2710
2706
  headers = headers.set(key, value);
2711
2707
  });
2712
2708
  }
2713
- if (pageSize !== undefined) {
2714
- queryParameters = queryParameters.set('pageSize', pageSize);
2715
- }
2716
- if (pageNumber !== undefined) {
2717
- queryParameters = queryParameters.set('pageNumber', pageNumber);
2718
- }
2719
2709
  // to determine the Accept header
2720
2710
  let produces = [
2721
2711
  'application/json'
@@ -2784,11 +2774,11 @@ class OrganizationService {
2784
2774
  /**
2785
2775
  * Gets the organizations to which the logged in user has access
2786
2776
  *
2787
- * @param onlyAdmin Defaults to false. If false, returns all organizations to which the current user has access. If set to true will only return results where the logged in user has admin access
2788
- * @param pageSize The number of elements to return in a page (defaults to 250 elements)
2777
+ * @param filter
2778
+ * @param pageSize The number of elements to return in a page (defaults to 50 elements)
2789
2779
  * @param pageNumber The current page number
2790
2780
  */
2791
- getOrganizationsWithHttpInfo(onlyAdmin, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2781
+ getOrganizationsWithHttpInfo(filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2792
2782
  const path = this.basePath + '/api/v202108/Organization';
2793
2783
  let queryParameters;
2794
2784
  if (extraHttpRequestParams) {
@@ -2811,8 +2801,8 @@ class OrganizationService {
2811
2801
  headers = headers.set(key, value);
2812
2802
  });
2813
2803
  }
2814
- if (onlyAdmin !== undefined) {
2815
- queryParameters = queryParameters.set('onlyAdmin', onlyAdmin);
2804
+ if (filter !== undefined) {
2805
+ queryParameters = queryParameters.set('filter', filter);
2816
2806
  }
2817
2807
  if (pageSize !== undefined) {
2818
2808
  queryParameters = queryParameters.set('pageSize', pageSize);
@@ -4682,6 +4672,25 @@ class UserLoginRequest {
4682
4672
  class UserOrganizationResponse {
4683
4673
  }
4684
4674
 
4675
+ /**
4676
+ * EnergyCAP ID SDK
4677
+ * Document used to generate the EnergyCAP ID SDK
4678
+ *
4679
+ * OpenAPI spec version: 1.2112
4680
+ * Contact: support@energycap.com
4681
+ *
4682
+ * NOTE: This class is auto generated by the swagger code generator program.
4683
+ * https://github.com/swagger-api/swagger-codegen.git
4684
+ * Do not edit the class manually.
4685
+ */
4686
+ var UserOrganizationStateEnum;
4687
+ (function (UserOrganizationStateEnum) {
4688
+ UserOrganizationStateEnum[UserOrganizationStateEnum["Member"] = 'Member'] = "Member";
4689
+ UserOrganizationStateEnum[UserOrganizationStateEnum["JoinRequestPending"] = 'JoinRequestPending'] = "JoinRequestPending";
4690
+ UserOrganizationStateEnum[UserOrganizationStateEnum["CanRequestJoin"] = 'CanRequestJoin'] = "CanRequestJoin";
4691
+ UserOrganizationStateEnum[UserOrganizationStateEnum["AutoJoinable"] = 'AutoJoinable'] = "AutoJoinable";
4692
+ })(UserOrganizationStateEnum || (UserOrganizationStateEnum = {}));
4693
+
4685
4694
  /**
4686
4695
  * EnergyCAP ID SDK
4687
4696
  * Document used to generate the EnergyCAP ID SDK
@@ -4809,5 +4818,5 @@ EnergyCapSdkModule.decorators = [
4809
4818
  * Generated bundle index. Do not edit.
4810
4819
  */
4811
4820
 
4812
- export { APIFilter, APIOrderBy, APIS, AllUserPermissionsResponse, ApplicationInstanceDetailResponse, ApplicationInstanceRedirectResponse, ApplicationInstanceResponse, ApplicationInstanceService, ApplicationInstanceUserResponse, ApplicationResponse, ApplicationService, AuthService, BASE_PATH, COLLECTION_FORMATS, ChangePasswordRequest, Configuration, CreateOrganizationRequest, DataSourceResponse, DataSourceService, DataSourceUpdateRequest, DomainAccessControlResponse, DomainJoinTypeResponse, DomainJoinTypeService, EnergyCapSdkModule, EntityPermission, EnvironmentResponse, EnvironmentService, HierarchicalOrganizations, HierarchicalOrganizations2, InviteUserRequest, LinkDataSourceRequest, LoginResponse, LoginSourceResponse, MeService, NotificationBadgeResponse, NotificationCategory, NotificationResponse, NotificationService, NotificationSettingRequest, NotificationType, NotificationUpdateRequest, OrganizationAccessControlResponse, OrganizationApplicationResponse, OrganizationApplicationService, OrganizationDetailResponse, OrganizationResponse, OrganizationService, OrganizationUserResponse, ResetPasswordRequest, RoleEnum, SelfCreateUserRequest, UpdateMeRequest, UpdateOrganizationAccessControlRequest, UpdateOrganizationDetailsRequest, UpdateResult, UserApplicationInstanceResponse, UserAuthResultEnum, UserChild, UserLoginRequest, UserOrganizationResponse, UserPermissionRequest, UserPermissionResponse, UserResponse, UserService, UserStatusEnum, ValidatePasswordRequest, ValidatePasswordResponse };
4821
+ export { APIFilter, APIOrderBy, APIS, AllUserPermissionsResponse, ApplicationInstanceDetailResponse, ApplicationInstanceRedirectResponse, ApplicationInstanceResponse, ApplicationInstanceService, ApplicationInstanceUserResponse, ApplicationResponse, ApplicationService, AuthService, BASE_PATH, COLLECTION_FORMATS, ChangePasswordRequest, Configuration, CreateOrganizationRequest, DataSourceResponse, DataSourceService, DataSourceUpdateRequest, DomainAccessControlResponse, DomainJoinTypeResponse, DomainJoinTypeService, EnergyCapSdkModule, EntityPermission, EnvironmentResponse, EnvironmentService, HierarchicalOrganizations, HierarchicalOrganizations2, InviteUserRequest, LinkDataSourceRequest, LoginResponse, LoginSourceResponse, MeService, NotificationBadgeResponse, NotificationCategory, NotificationResponse, NotificationService, NotificationSettingRequest, NotificationType, NotificationUpdateRequest, OrganizationAccessControlResponse, OrganizationApplicationResponse, OrganizationApplicationService, OrganizationDetailResponse, OrganizationResponse, OrganizationService, OrganizationUserResponse, ResetPasswordRequest, RoleEnum, SelfCreateUserRequest, UpdateMeRequest, UpdateOrganizationAccessControlRequest, UpdateOrganizationDetailsRequest, UpdateResult, UserApplicationInstanceResponse, UserAuthResultEnum, UserChild, UserLoginRequest, UserOrganizationResponse, UserOrganizationStateEnum, UserPermissionRequest, UserPermissionResponse, UserResponse, UserService, UserStatusEnum, ValidatePasswordRequest, ValidatePasswordResponse };
4813
4822
  //# sourceMappingURL=energycap-energycapid-sdk-angular.js.map