@energycap/energycapid-sdk-angular 1.2112.53-ECAPID-356-ApplicationInstance-Get-API-20220106-1621 → 1.2112.57-develop-20220119-1725

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.
@@ -89,12 +89,10 @@ export declare class OrganizationService {
89
89
  [header: string]: string | string[];
90
90
  }): Observable<OrganizationDetailResponse>;
91
91
  /**
92
- * Returns the entire oranizaion hiearchy If there are more than 100 organizations a 403 is returned.
92
+ * Returns your entire organization hierarchy For performance returns a max page size of 100
93
93
  *
94
- * @param pageSize The number of elements to return in a page (defaults to 100 elements)
95
- * @param pageNumber The current page number
96
94
  */
97
- getOrganizationHierarchy(pageSize?: number, pageNumber?: number, extraHttpRequestParams?: {
95
+ getOrganizationHierarchy(extraHttpRequestParams?: {
98
96
  search: string | {
99
97
  [param: string]: string | string[];
100
98
  };
@@ -116,11 +114,11 @@ export declare class OrganizationService {
116
114
  /**
117
115
  * Gets the organizations to which the logged in user has access
118
116
  *
119
- * @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
120
- * @param pageSize The number of elements to return in a page (defaults to 250 elements)
117
+ * @param filter
118
+ * @param pageSize The number of elements to return in a page (defaults to 50 elements)
121
119
  * @param pageNumber The current page number
122
120
  */
123
- getOrganizations(onlyAdmin?: boolean, pageSize?: number, pageNumber?: number, extraHttpRequestParams?: {
121
+ getOrganizations(filter?: string, pageSize?: number, pageNumber?: number, extraHttpRequestParams?: {
124
122
  search: string | {
125
123
  [param: string]: string | string[];
126
124
  };
@@ -217,12 +215,10 @@ export declare class OrganizationService {
217
215
  [header: string]: string | string[];
218
216
  }): Observable<HttpResponse<OrganizationDetailResponse>>;
219
217
  /**
220
- * Returns the entire oranizaion hiearchy If there are more than 100 organizations a 403 is returned.
218
+ * Returns your entire organization hierarchy For performance returns a max page size of 100
221
219
  *
222
- * @param pageSize The number of elements to return in a page (defaults to 100 elements)
223
- * @param pageNumber The current page number
224
220
  */
225
- getOrganizationHierarchyWithHttpInfo(pageSize?: number, pageNumber?: number, extraHttpRequestParams?: {
221
+ getOrganizationHierarchyWithHttpInfo(extraHttpRequestParams?: {
226
222
  search: string | {
227
223
  [param: string]: string | string[];
228
224
  };
@@ -244,11 +240,11 @@ export declare class OrganizationService {
244
240
  /**
245
241
  * Gets the organizations to which the logged in user has access
246
242
  *
247
- * @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
248
- * @param pageSize The number of elements to return in a page (defaults to 250 elements)
243
+ * @param filter
244
+ * @param pageSize The number of elements to return in a page (defaults to 50 elements)
249
245
  * @param pageNumber The current page number
250
246
  */
251
- getOrganizationsWithHttpInfo(onlyAdmin?: boolean, pageSize?: number, pageNumber?: number, extraHttpRequestParams?: {
247
+ getOrganizationsWithHttpInfo(filter?: string, pageSize?: number, pageNumber?: number, extraHttpRequestParams?: {
252
248
  search: string | {
253
249
  [param: string]: string | string[];
254
250
  };
@@ -2742,13 +2742,11 @@
2742
2742
  }));
2743
2743
  };
2744
2744
  /**
2745
- * Returns the entire oranizaion hiearchy If there are more than 100 organizations a 403 is returned.
2745
+ * Returns your entire organization hierarchy For performance returns a max page size of 100
2746
2746
  *
2747
- * @param pageSize The number of elements to return in a page (defaults to 100 elements)
2748
- * @param pageNumber The current page number
2749
2747
  */
2750
- OrganizationService.prototype.getOrganizationHierarchy = function (pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2751
- return this.getOrganizationHierarchyWithHttpInfo(pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
2748
+ OrganizationService.prototype.getOrganizationHierarchy = function (extraHttpRequestParams, extraHttpRequestHeaders) {
2749
+ return this.getOrganizationHierarchyWithHttpInfo(extraHttpRequestParams, extraHttpRequestHeaders)
2752
2750
  .pipe(operators.map(function (response) {
2753
2751
  if (response.status === 204) {
2754
2752
  return undefined;
@@ -2777,12 +2775,12 @@
2777
2775
  /**
2778
2776
  * Gets the organizations to which the logged in user has access
2779
2777
  *
2780
- * @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
2781
- * @param pageSize The number of elements to return in a page (defaults to 250 elements)
2778
+ * @param filter
2779
+ * @param pageSize The number of elements to return in a page (defaults to 50 elements)
2782
2780
  * @param pageNumber The current page number
2783
2781
  */
2784
- OrganizationService.prototype.getOrganizations = function (onlyAdmin, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2785
- return this.getOrganizationsWithHttpInfo(onlyAdmin, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
2782
+ OrganizationService.prototype.getOrganizations = function (filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2783
+ return this.getOrganizationsWithHttpInfo(filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
2786
2784
  .pipe(operators.map(function (response) {
2787
2785
  if (response.status === 204) {
2788
2786
  return undefined;
@@ -3054,12 +3052,10 @@
3054
3052
  return this.http.request(RequestMethod$2.Get, path, requestOptions);
3055
3053
  };
3056
3054
  /**
3057
- * Returns the entire oranizaion hiearchy If there are more than 100 organizations a 403 is returned.
3055
+ * Returns your entire organization hierarchy For performance returns a max page size of 100
3058
3056
  *
3059
- * @param pageSize The number of elements to return in a page (defaults to 100 elements)
3060
- * @param pageNumber The current page number
3061
3057
  */
3062
- OrganizationService.prototype.getOrganizationHierarchyWithHttpInfo = function (pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
3058
+ OrganizationService.prototype.getOrganizationHierarchyWithHttpInfo = function (extraHttpRequestParams, extraHttpRequestHeaders) {
3063
3059
  var _this = this;
3064
3060
  var path = this.basePath + '/api/v202112/Organization/hierarchy';
3065
3061
  var queryParameters;
@@ -3084,12 +3080,6 @@
3084
3080
  headers = headers.set(key, value);
3085
3081
  });
3086
3082
  }
3087
- if (pageSize !== undefined) {
3088
- queryParameters = queryParameters.set('pageSize', pageSize);
3089
- }
3090
- if (pageNumber !== undefined) {
3091
- queryParameters = queryParameters.set('pageNumber', pageNumber);
3092
- }
3093
3083
  // to determine the Accept header
3094
3084
  var produces = [
3095
3085
  'application/json'
@@ -3160,11 +3150,11 @@
3160
3150
  /**
3161
3151
  * Gets the organizations to which the logged in user has access
3162
3152
  *
3163
- * @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
3164
- * @param pageSize The number of elements to return in a page (defaults to 250 elements)
3153
+ * @param filter
3154
+ * @param pageSize The number of elements to return in a page (defaults to 50 elements)
3165
3155
  * @param pageNumber The current page number
3166
3156
  */
3167
- OrganizationService.prototype.getOrganizationsWithHttpInfo = function (onlyAdmin, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
3157
+ OrganizationService.prototype.getOrganizationsWithHttpInfo = function (filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
3168
3158
  var _this = this;
3169
3159
  var path = this.basePath + '/api/v202108/Organization';
3170
3160
  var queryParameters;
@@ -3189,8 +3179,8 @@
3189
3179
  headers = headers.set(key, value);
3190
3180
  });
3191
3181
  }
3192
- if (onlyAdmin !== undefined) {
3193
- queryParameters = queryParameters.set('onlyAdmin', onlyAdmin);
3182
+ if (filter !== undefined) {
3183
+ queryParameters = queryParameters.set('filter', filter);
3194
3184
  }
3195
3185
  if (pageSize !== undefined) {
3196
3186
  queryParameters = queryParameters.set('pageSize', pageSize);
@@ -5222,6 +5212,25 @@
5222
5212
  return UserOrganizationResponse;
5223
5213
  }());
5224
5214
 
5215
+ /**
5216
+ * EnergyCAP ID SDK
5217
+ * Document used to generate the EnergyCAP ID SDK
5218
+ *
5219
+ * OpenAPI spec version: 1.2112
5220
+ * Contact: support@energycap.com
5221
+ *
5222
+ * NOTE: This class is auto generated by the swagger code generator program.
5223
+ * https://github.com/swagger-api/swagger-codegen.git
5224
+ * Do not edit the class manually.
5225
+ */
5226
+ exports.UserOrganizationStateEnum = void 0;
5227
+ (function (UserOrganizationStateEnum) {
5228
+ UserOrganizationStateEnum[UserOrganizationStateEnum["Member"] = 'Member'] = "Member";
5229
+ UserOrganizationStateEnum[UserOrganizationStateEnum["JoinRequestPending"] = 'JoinRequestPending'] = "JoinRequestPending";
5230
+ UserOrganizationStateEnum[UserOrganizationStateEnum["CanRequestJoin"] = 'CanRequestJoin'] = "CanRequestJoin";
5231
+ UserOrganizationStateEnum[UserOrganizationStateEnum["AutoJoinable"] = 'AutoJoinable'] = "AutoJoinable";
5232
+ })(exports.UserOrganizationStateEnum || (exports.UserOrganizationStateEnum = {}));
5233
+
5225
5234
  /**
5226
5235
  * EnergyCAP ID SDK
5227
5236
  * Document used to generate the EnergyCAP ID SDK