@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.
@@ -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
  };
@@ -2757,13 +2757,11 @@
2757
2757
  }));
2758
2758
  };
2759
2759
  /**
2760
- * Returns the entire oranizaion hiearchy If there are more than 100 organizations a 403 is returned.
2760
+ * Returns your entire organization hierarchy For performance returns a max page size of 100
2761
2761
  *
2762
- * @param pageSize The number of elements to return in a page (defaults to 100 elements)
2763
- * @param pageNumber The current page number
2764
2762
  */
2765
- OrganizationService.prototype.getOrganizationHierarchy = function (pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2766
- return this.getOrganizationHierarchyWithHttpInfo(pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
2763
+ OrganizationService.prototype.getOrganizationHierarchy = function (extraHttpRequestParams, extraHttpRequestHeaders) {
2764
+ return this.getOrganizationHierarchyWithHttpInfo(extraHttpRequestParams, extraHttpRequestHeaders)
2767
2765
  .pipe(operators.map(function (response) {
2768
2766
  if (response.status === 204) {
2769
2767
  return undefined;
@@ -2792,12 +2790,12 @@
2792
2790
  /**
2793
2791
  * Gets the organizations to which the logged in user has access
2794
2792
  *
2795
- * @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
2796
- * @param pageSize The number of elements to return in a page (defaults to 250 elements)
2793
+ * @param filter
2794
+ * @param pageSize The number of elements to return in a page (defaults to 50 elements)
2797
2795
  * @param pageNumber The current page number
2798
2796
  */
2799
- OrganizationService.prototype.getOrganizations = function (onlyAdmin, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2800
- return this.getOrganizationsWithHttpInfo(onlyAdmin, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
2797
+ OrganizationService.prototype.getOrganizations = function (filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
2798
+ return this.getOrganizationsWithHttpInfo(filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
2801
2799
  .pipe(operators.map(function (response) {
2802
2800
  if (response.status === 204) {
2803
2801
  return undefined;
@@ -3069,12 +3067,10 @@
3069
3067
  return this.http.request(RequestMethod$2.Get, path, requestOptions);
3070
3068
  };
3071
3069
  /**
3072
- * Returns the entire oranizaion hiearchy If there are more than 100 organizations a 403 is returned.
3070
+ * Returns your entire organization hierarchy For performance returns a max page size of 100
3073
3071
  *
3074
- * @param pageSize The number of elements to return in a page (defaults to 100 elements)
3075
- * @param pageNumber The current page number
3076
3072
  */
3077
- OrganizationService.prototype.getOrganizationHierarchyWithHttpInfo = function (pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
3073
+ OrganizationService.prototype.getOrganizationHierarchyWithHttpInfo = function (extraHttpRequestParams, extraHttpRequestHeaders) {
3078
3074
  var _this = this;
3079
3075
  var path = this.basePath + '/api/v202112/Organization/hierarchy';
3080
3076
  var queryParameters;
@@ -3099,12 +3095,6 @@
3099
3095
  headers = headers.set(key, value);
3100
3096
  });
3101
3097
  }
3102
- if (pageSize !== undefined) {
3103
- queryParameters = queryParameters.set('pageSize', pageSize);
3104
- }
3105
- if (pageNumber !== undefined) {
3106
- queryParameters = queryParameters.set('pageNumber', pageNumber);
3107
- }
3108
3098
  // to determine the Accept header
3109
3099
  var produces = [
3110
3100
  'application/json'
@@ -3175,11 +3165,11 @@
3175
3165
  /**
3176
3166
  * Gets the organizations to which the logged in user has access
3177
3167
  *
3178
- * @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
3179
- * @param pageSize The number of elements to return in a page (defaults to 250 elements)
3168
+ * @param filter
3169
+ * @param pageSize The number of elements to return in a page (defaults to 50 elements)
3180
3170
  * @param pageNumber The current page number
3181
3171
  */
3182
- OrganizationService.prototype.getOrganizationsWithHttpInfo = function (onlyAdmin, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
3172
+ OrganizationService.prototype.getOrganizationsWithHttpInfo = function (filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
3183
3173
  var _this = this;
3184
3174
  var path = this.basePath + '/api/v202108/Organization';
3185
3175
  var queryParameters;
@@ -3204,8 +3194,8 @@
3204
3194
  headers = headers.set(key, value);
3205
3195
  });
3206
3196
  }
3207
- if (onlyAdmin !== undefined) {
3208
- queryParameters = queryParameters.set('onlyAdmin', onlyAdmin);
3197
+ if (filter !== undefined) {
3198
+ queryParameters = queryParameters.set('filter', filter);
3209
3199
  }
3210
3200
  if (pageSize !== undefined) {
3211
3201
  queryParameters = queryParameters.set('pageSize', pageSize);
@@ -5237,6 +5227,25 @@
5237
5227
  return UserOrganizationResponse;
5238
5228
  }());
5239
5229
 
5230
+ /**
5231
+ * EnergyCAP ID SDK
5232
+ * Document used to generate the EnergyCAP ID SDK
5233
+ *
5234
+ * OpenAPI spec version: 1.2112
5235
+ * Contact: support@energycap.com
5236
+ *
5237
+ * NOTE: This class is auto generated by the swagger code generator program.
5238
+ * https://github.com/swagger-api/swagger-codegen.git
5239
+ * Do not edit the class manually.
5240
+ */
5241
+ exports.UserOrganizationStateEnum = void 0;
5242
+ (function (UserOrganizationStateEnum) {
5243
+ UserOrganizationStateEnum[UserOrganizationStateEnum["Member"] = 'Member'] = "Member";
5244
+ UserOrganizationStateEnum[UserOrganizationStateEnum["JoinRequestPending"] = 'JoinRequestPending'] = "JoinRequestPending";
5245
+ UserOrganizationStateEnum[UserOrganizationStateEnum["CanRequestJoin"] = 'CanRequestJoin'] = "CanRequestJoin";
5246
+ UserOrganizationStateEnum[UserOrganizationStateEnum["AutoJoinable"] = 'AutoJoinable'] = "AutoJoinable";
5247
+ })(exports.UserOrganizationStateEnum || (exports.UserOrganizationStateEnum = {}));
5248
+
5240
5249
  /**
5241
5250
  * EnergyCAP ID SDK
5242
5251
  * Document used to generate the EnergyCAP ID SDK