@energycap/energycapid-sdk-angular 1.2112.64-develop-20220126-1136 → 1.2112.68-develop-20220128-0943
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.
- package/api/organization.service.d.ts +12 -4
- package/api/user.service.d.ts +14 -6
- package/bundles/energycap-energycapid-sdk-angular.umd.js +68 -10
- package/bundles/energycap-energycapid-sdk-angular.umd.js.map +1 -1
- package/bundles/energycap-energycapid-sdk-angular.umd.min.js +1 -1
- package/bundles/energycap-energycapid-sdk-angular.umd.min.js.map +1 -1
- package/energycap-energycapid-sdk-angular.metadata.json +1 -1
- package/esm2015/api/organization.service.js +26 -6
- package/esm2015/api/user.service.js +26 -6
- package/esm2015/model/models.js +2 -1
- package/esm2015/model/organizationDetailResponse.js +1 -1
- package/esm2015/model/organizationResponse.js +1 -1
- package/esm2015/model/organizationUserResponse.js +1 -1
- package/esm2015/model/organizationUserStatusEnum.js +18 -0
- package/esm2015/model/userOrganizationResponse.js +1 -1
- package/fesm2015/energycap-energycapid-sdk-angular.js +69 -11
- package/fesm2015/energycap-energycapid-sdk-angular.js.map +1 -1
- package/model/models.d.ts +1 -0
- package/model/organizationDetailResponse.d.ts +16 -0
- package/model/organizationResponse.d.ts +0 -24
- package/model/organizationUserResponse.d.ts +48 -0
- package/model/organizationUserStatusEnum.d.ts +16 -0
- package/model/userOrganizationResponse.d.ts +18 -0
- package/package.json +1 -1
|
@@ -100,11 +100,15 @@ export declare class OrganizationService {
|
|
|
100
100
|
[header: string]: string | string[];
|
|
101
101
|
}): Observable<Array<HierarchicalOrganizations>>;
|
|
102
102
|
/**
|
|
103
|
-
* Gets users linked to an organization
|
|
103
|
+
* Gets users linked to an organization The query is always initially ordered by Active, then by JoinRequestPending, and finally InvitePending Any additional order by clauses are then appended to order within these categories
|
|
104
104
|
*
|
|
105
105
|
* @param organizationId The organization identifier
|
|
106
|
+
* @param orderBy
|
|
107
|
+
* @param filter
|
|
108
|
+
* @param pageSize The number of elements to return in a page (defaults to 50 elements)
|
|
109
|
+
* @param pageNumber The current page number
|
|
106
110
|
*/
|
|
107
|
-
getOrganizationUsers(organizationId: string, extraHttpRequestParams?: {
|
|
111
|
+
getOrganizationUsers(organizationId: string, orderBy?: string, filter?: string, pageSize?: number, pageNumber?: number, extraHttpRequestParams?: {
|
|
108
112
|
search: string | {
|
|
109
113
|
[param: string]: string | string[];
|
|
110
114
|
};
|
|
@@ -226,11 +230,15 @@ export declare class OrganizationService {
|
|
|
226
230
|
[header: string]: string | string[];
|
|
227
231
|
}): Observable<HttpResponse<Array<HierarchicalOrganizations>>>;
|
|
228
232
|
/**
|
|
229
|
-
* Gets users linked to an organization
|
|
233
|
+
* Gets users linked to an organization The query is always initially ordered by Active, then by JoinRequestPending, and finally InvitePending Any additional order by clauses are then appended to order within these categories
|
|
230
234
|
*
|
|
231
235
|
* @param organizationId The organization identifier
|
|
236
|
+
* @param orderBy
|
|
237
|
+
* @param filter
|
|
238
|
+
* @param pageSize The number of elements to return in a page (defaults to 50 elements)
|
|
239
|
+
* @param pageNumber The current page number
|
|
232
240
|
*/
|
|
233
|
-
getOrganizationUsersWithHttpInfo(organizationId: string, extraHttpRequestParams?: {
|
|
241
|
+
getOrganizationUsersWithHttpInfo(organizationId: string, orderBy?: string, filter?: string, pageSize?: number, pageNumber?: number, extraHttpRequestParams?: {
|
|
234
242
|
search: string | {
|
|
235
243
|
[param: string]: string | string[];
|
|
236
244
|
};
|
package/api/user.service.d.ts
CHANGED
|
@@ -92,15 +92,19 @@ export declare class UserService {
|
|
|
92
92
|
/**
|
|
93
93
|
* Return all organization a user has access to and you are an admin to
|
|
94
94
|
*
|
|
95
|
-
* @param userId The user to get
|
|
95
|
+
* @param userId The user to get organizations for
|
|
96
|
+
* @param filter
|
|
97
|
+
* @param orderBy
|
|
98
|
+
* @param pageSize The number of elements to return in a page (defaults to 250 elements)
|
|
99
|
+
* @param pageNumber The current page number
|
|
96
100
|
*/
|
|
97
|
-
getUserOrganizations(userId: string, extraHttpRequestParams?: {
|
|
101
|
+
getUserOrganizations(userId: string, filter?: string, orderBy?: string, pageSize?: number, pageNumber?: number, extraHttpRequestParams?: {
|
|
98
102
|
search: string | {
|
|
99
103
|
[param: string]: string | string[];
|
|
100
104
|
};
|
|
101
105
|
}, extraHttpRequestHeaders?: {
|
|
102
106
|
[header: string]: string | string[];
|
|
103
|
-
}): Observable<UserOrganizationResponse
|
|
107
|
+
}): Observable<Array<UserOrganizationResponse>>;
|
|
104
108
|
/**
|
|
105
109
|
* Gets information regarding the specified entity to which the specified user has access. Only if the logged in user is in administrator will information be available. If the user does not have access, no entry will be returned.
|
|
106
110
|
*
|
|
@@ -229,15 +233,19 @@ export declare class UserService {
|
|
|
229
233
|
/**
|
|
230
234
|
* Return all organization a user has access to and you are an admin to
|
|
231
235
|
*
|
|
232
|
-
* @param userId The user to get
|
|
236
|
+
* @param userId The user to get organizations for
|
|
237
|
+
* @param filter
|
|
238
|
+
* @param orderBy
|
|
239
|
+
* @param pageSize The number of elements to return in a page (defaults to 250 elements)
|
|
240
|
+
* @param pageNumber The current page number
|
|
233
241
|
*/
|
|
234
|
-
getUserOrganizationsWithHttpInfo(userId: string, extraHttpRequestParams?: {
|
|
242
|
+
getUserOrganizationsWithHttpInfo(userId: string, filter?: string, orderBy?: string, pageSize?: number, pageNumber?: number, extraHttpRequestParams?: {
|
|
235
243
|
search: string | {
|
|
236
244
|
[param: string]: string | string[];
|
|
237
245
|
};
|
|
238
246
|
}, extraHttpRequestHeaders?: {
|
|
239
247
|
[header: string]: string | string[];
|
|
240
|
-
}): Observable<HttpResponse<UserOrganizationResponse
|
|
248
|
+
}): Observable<HttpResponse<Array<UserOrganizationResponse>>>;
|
|
241
249
|
/**
|
|
242
250
|
* Gets information regarding the specified entity to which the specified user has access. Only if the logged in user is in administrator will information be available. If the user does not have access, no entry will be returned.
|
|
243
251
|
*
|
|
@@ -2757,12 +2757,16 @@
|
|
|
2757
2757
|
}));
|
|
2758
2758
|
};
|
|
2759
2759
|
/**
|
|
2760
|
-
* Gets users linked to an organization
|
|
2760
|
+
* Gets users linked to an organization The query is always initially ordered by Active, then by JoinRequestPending, and finally InvitePending Any additional order by clauses are then appended to order within these categories
|
|
2761
2761
|
*
|
|
2762
2762
|
* @param organizationId The organization identifier
|
|
2763
|
+
* @param orderBy
|
|
2764
|
+
* @param filter
|
|
2765
|
+
* @param pageSize The number of elements to return in a page (defaults to 50 elements)
|
|
2766
|
+
* @param pageNumber The current page number
|
|
2763
2767
|
*/
|
|
2764
|
-
OrganizationService.prototype.getOrganizationUsers = function (organizationId, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
2765
|
-
return this.getOrganizationUsersWithHttpInfo(organizationId, extraHttpRequestParams, extraHttpRequestHeaders)
|
|
2768
|
+
OrganizationService.prototype.getOrganizationUsers = function (organizationId, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
2769
|
+
return this.getOrganizationUsersWithHttpInfo(organizationId, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
|
|
2766
2770
|
.pipe(operators.map(function (response) {
|
|
2767
2771
|
if (response.status === 204) {
|
|
2768
2772
|
return undefined;
|
|
@@ -3097,11 +3101,15 @@
|
|
|
3097
3101
|
return this.http.request(RequestMethod$2.Get, path, requestOptions);
|
|
3098
3102
|
};
|
|
3099
3103
|
/**
|
|
3100
|
-
* Gets users linked to an organization
|
|
3104
|
+
* Gets users linked to an organization The query is always initially ordered by Active, then by JoinRequestPending, and finally InvitePending Any additional order by clauses are then appended to order within these categories
|
|
3101
3105
|
*
|
|
3102
3106
|
* @param organizationId The organization identifier
|
|
3107
|
+
* @param orderBy
|
|
3108
|
+
* @param filter
|
|
3109
|
+
* @param pageSize The number of elements to return in a page (defaults to 50 elements)
|
|
3110
|
+
* @param pageNumber The current page number
|
|
3103
3111
|
*/
|
|
3104
|
-
OrganizationService.prototype.getOrganizationUsersWithHttpInfo = function (organizationId, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
3112
|
+
OrganizationService.prototype.getOrganizationUsersWithHttpInfo = function (organizationId, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
3105
3113
|
var _this = this;
|
|
3106
3114
|
var path = this.basePath + '/api/v202112/Organization/${organizationId}/user'
|
|
3107
3115
|
.replace('${' + 'organizationId' + '}', String(organizationId));
|
|
@@ -3131,6 +3139,18 @@
|
|
|
3131
3139
|
if (organizationId === null || organizationId === undefined) {
|
|
3132
3140
|
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationUsers.');
|
|
3133
3141
|
}
|
|
3142
|
+
if (orderBy !== undefined) {
|
|
3143
|
+
queryParameters = queryParameters.set('orderBy', orderBy);
|
|
3144
|
+
}
|
|
3145
|
+
if (filter !== undefined) {
|
|
3146
|
+
queryParameters = queryParameters.set('filter', filter);
|
|
3147
|
+
}
|
|
3148
|
+
if (pageSize !== undefined) {
|
|
3149
|
+
queryParameters = queryParameters.set('pageSize', pageSize);
|
|
3150
|
+
}
|
|
3151
|
+
if (pageNumber !== undefined) {
|
|
3152
|
+
queryParameters = queryParameters.set('pageNumber', pageNumber);
|
|
3153
|
+
}
|
|
3134
3154
|
// to determine the Accept header
|
|
3135
3155
|
var produces = [
|
|
3136
3156
|
'application/json'
|
|
@@ -3650,10 +3670,14 @@
|
|
|
3650
3670
|
/**
|
|
3651
3671
|
* Return all organization a user has access to and you are an admin to
|
|
3652
3672
|
*
|
|
3653
|
-
* @param userId The user to get
|
|
3673
|
+
* @param userId The user to get organizations for
|
|
3674
|
+
* @param filter
|
|
3675
|
+
* @param orderBy
|
|
3676
|
+
* @param pageSize The number of elements to return in a page (defaults to 250 elements)
|
|
3677
|
+
* @param pageNumber The current page number
|
|
3654
3678
|
*/
|
|
3655
|
-
UserService.prototype.getUserOrganizations = function (userId, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
3656
|
-
return this.getUserOrganizationsWithHttpInfo(userId, extraHttpRequestParams, extraHttpRequestHeaders)
|
|
3679
|
+
UserService.prototype.getUserOrganizations = function (userId, filter, orderBy, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
3680
|
+
return this.getUserOrganizationsWithHttpInfo(userId, filter, orderBy, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
|
|
3657
3681
|
.pipe(operators.map(function (response) {
|
|
3658
3682
|
if (response.status === 204) {
|
|
3659
3683
|
return undefined;
|
|
@@ -3973,9 +3997,13 @@
|
|
|
3973
3997
|
/**
|
|
3974
3998
|
* Return all organization a user has access to and you are an admin to
|
|
3975
3999
|
*
|
|
3976
|
-
* @param userId The user to get
|
|
4000
|
+
* @param userId The user to get organizations for
|
|
4001
|
+
* @param filter
|
|
4002
|
+
* @param orderBy
|
|
4003
|
+
* @param pageSize The number of elements to return in a page (defaults to 250 elements)
|
|
4004
|
+
* @param pageNumber The current page number
|
|
3977
4005
|
*/
|
|
3978
|
-
UserService.prototype.getUserOrganizationsWithHttpInfo = function (userId, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
4006
|
+
UserService.prototype.getUserOrganizationsWithHttpInfo = function (userId, filter, orderBy, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
3979
4007
|
var _this = this;
|
|
3980
4008
|
var path = this.basePath + '/api/v202112/User/${userId}/organization'
|
|
3981
4009
|
.replace('${' + 'userId' + '}', String(userId));
|
|
@@ -4005,6 +4033,18 @@
|
|
|
4005
4033
|
if (userId === null || userId === undefined) {
|
|
4006
4034
|
throw new Error('Required parameter userId was null or undefined when calling getUserOrganizations.');
|
|
4007
4035
|
}
|
|
4036
|
+
if (filter !== undefined) {
|
|
4037
|
+
queryParameters = queryParameters.set('filter', filter);
|
|
4038
|
+
}
|
|
4039
|
+
if (orderBy !== undefined) {
|
|
4040
|
+
queryParameters = queryParameters.set('orderBy', orderBy);
|
|
4041
|
+
}
|
|
4042
|
+
if (pageSize !== undefined) {
|
|
4043
|
+
queryParameters = queryParameters.set('pageSize', pageSize);
|
|
4044
|
+
}
|
|
4045
|
+
if (pageNumber !== undefined) {
|
|
4046
|
+
queryParameters = queryParameters.set('pageNumber', pageNumber);
|
|
4047
|
+
}
|
|
4008
4048
|
// to determine the Accept header
|
|
4009
4049
|
var produces = [
|
|
4010
4050
|
'application/json'
|
|
@@ -5040,6 +5080,24 @@
|
|
|
5040
5080
|
return OrganizationUserResponse;
|
|
5041
5081
|
}());
|
|
5042
5082
|
|
|
5083
|
+
/**
|
|
5084
|
+
* EnergyCAP ID SDK
|
|
5085
|
+
* Document used to generate the EnergyCAP ID SDK
|
|
5086
|
+
*
|
|
5087
|
+
* OpenAPI spec version: 1.2112
|
|
5088
|
+
* Contact: support@energycap.com
|
|
5089
|
+
*
|
|
5090
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
5091
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
5092
|
+
* Do not edit the class manually.
|
|
5093
|
+
*/
|
|
5094
|
+
exports.OrganizationUserStatusEnum = void 0;
|
|
5095
|
+
(function (OrganizationUserStatusEnum) {
|
|
5096
|
+
OrganizationUserStatusEnum[OrganizationUserStatusEnum["Active"] = 'Active'] = "Active";
|
|
5097
|
+
OrganizationUserStatusEnum[OrganizationUserStatusEnum["JoinRequestPending"] = 'JoinRequestPending'] = "JoinRequestPending";
|
|
5098
|
+
OrganizationUserStatusEnum[OrganizationUserStatusEnum["InvitePending"] = 'InvitePending'] = "InvitePending";
|
|
5099
|
+
})(exports.OrganizationUserStatusEnum || (exports.OrganizationUserStatusEnum = {}));
|
|
5100
|
+
|
|
5043
5101
|
/**
|
|
5044
5102
|
* EnergyCAP ID SDK
|
|
5045
5103
|
* Document used to generate the EnergyCAP ID SDK
|