@energycap/energycapid-sdk-angular 1.2112.61-develop-20220124-1241 → 1.2112.65-develop-20220127-1512
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/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/organizationUserResponse.d.ts +48 -0
- package/model/organizationUserStatusEnum.d.ts +16 -0
- package/model/userOrganizationResponse.d.ts +18 -0
- package/package.json +1 -1
|
@@ -2378,12 +2378,16 @@ class OrganizationService {
|
|
|
2378
2378
|
}));
|
|
2379
2379
|
}
|
|
2380
2380
|
/**
|
|
2381
|
-
* Gets users linked to an organization
|
|
2381
|
+
* 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
|
|
2382
2382
|
*
|
|
2383
2383
|
* @param organizationId The organization identifier
|
|
2384
|
+
* @param orderBy
|
|
2385
|
+
* @param filter
|
|
2386
|
+
* @param pageSize The number of elements to return in a page (defaults to 50 elements)
|
|
2387
|
+
* @param pageNumber The current page number
|
|
2384
2388
|
*/
|
|
2385
|
-
getOrganizationUsers(organizationId, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
2386
|
-
return this.getOrganizationUsersWithHttpInfo(organizationId, extraHttpRequestParams, extraHttpRequestHeaders)
|
|
2389
|
+
getOrganizationUsers(organizationId, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
2390
|
+
return this.getOrganizationUsersWithHttpInfo(organizationId, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
|
|
2387
2391
|
.pipe(map((response) => {
|
|
2388
2392
|
if (response.status === 204) {
|
|
2389
2393
|
return undefined;
|
|
@@ -2708,11 +2712,15 @@ class OrganizationService {
|
|
|
2708
2712
|
return this.http.request(RequestMethod$2.Get, path, requestOptions);
|
|
2709
2713
|
}
|
|
2710
2714
|
/**
|
|
2711
|
-
* Gets users linked to an organization
|
|
2715
|
+
* 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
|
|
2712
2716
|
*
|
|
2713
2717
|
* @param organizationId The organization identifier
|
|
2718
|
+
* @param orderBy
|
|
2719
|
+
* @param filter
|
|
2720
|
+
* @param pageSize The number of elements to return in a page (defaults to 50 elements)
|
|
2721
|
+
* @param pageNumber The current page number
|
|
2714
2722
|
*/
|
|
2715
|
-
getOrganizationUsersWithHttpInfo(organizationId, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
2723
|
+
getOrganizationUsersWithHttpInfo(organizationId, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
2716
2724
|
const path = this.basePath + '/api/v202112/Organization/${organizationId}/user'
|
|
2717
2725
|
.replace('${' + 'organizationId' + '}', String(organizationId));
|
|
2718
2726
|
let queryParameters;
|
|
@@ -2740,6 +2748,18 @@ class OrganizationService {
|
|
|
2740
2748
|
if (organizationId === null || organizationId === undefined) {
|
|
2741
2749
|
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationUsers.');
|
|
2742
2750
|
}
|
|
2751
|
+
if (orderBy !== undefined) {
|
|
2752
|
+
queryParameters = queryParameters.set('orderBy', orderBy);
|
|
2753
|
+
}
|
|
2754
|
+
if (filter !== undefined) {
|
|
2755
|
+
queryParameters = queryParameters.set('filter', filter);
|
|
2756
|
+
}
|
|
2757
|
+
if (pageSize !== undefined) {
|
|
2758
|
+
queryParameters = queryParameters.set('pageSize', pageSize);
|
|
2759
|
+
}
|
|
2760
|
+
if (pageNumber !== undefined) {
|
|
2761
|
+
queryParameters = queryParameters.set('pageNumber', pageNumber);
|
|
2762
|
+
}
|
|
2743
2763
|
// to determine the Accept header
|
|
2744
2764
|
let produces = [
|
|
2745
2765
|
'application/json'
|
|
@@ -3247,10 +3267,14 @@ class UserService {
|
|
|
3247
3267
|
/**
|
|
3248
3268
|
* Return all organization a user has access to and you are an admin to
|
|
3249
3269
|
*
|
|
3250
|
-
* @param userId The user to get
|
|
3270
|
+
* @param userId The user to get organizations for
|
|
3271
|
+
* @param filter
|
|
3272
|
+
* @param orderBy
|
|
3273
|
+
* @param pageSize The number of elements to return in a page (defaults to 250 elements)
|
|
3274
|
+
* @param pageNumber The current page number
|
|
3251
3275
|
*/
|
|
3252
|
-
getUserOrganizations(userId, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
3253
|
-
return this.getUserOrganizationsWithHttpInfo(userId, extraHttpRequestParams, extraHttpRequestHeaders)
|
|
3276
|
+
getUserOrganizations(userId, filter, orderBy, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
3277
|
+
return this.getUserOrganizationsWithHttpInfo(userId, filter, orderBy, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
|
|
3254
3278
|
.pipe(map((response) => {
|
|
3255
3279
|
if (response.status === 204) {
|
|
3256
3280
|
return undefined;
|
|
@@ -3562,9 +3586,13 @@ class UserService {
|
|
|
3562
3586
|
/**
|
|
3563
3587
|
* Return all organization a user has access to and you are an admin to
|
|
3564
3588
|
*
|
|
3565
|
-
* @param userId The user to get
|
|
3589
|
+
* @param userId The user to get organizations for
|
|
3590
|
+
* @param filter
|
|
3591
|
+
* @param orderBy
|
|
3592
|
+
* @param pageSize The number of elements to return in a page (defaults to 250 elements)
|
|
3593
|
+
* @param pageNumber The current page number
|
|
3566
3594
|
*/
|
|
3567
|
-
getUserOrganizationsWithHttpInfo(userId, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
3595
|
+
getUserOrganizationsWithHttpInfo(userId, filter, orderBy, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
3568
3596
|
const path = this.basePath + '/api/v202112/User/${userId}/organization'
|
|
3569
3597
|
.replace('${' + 'userId' + '}', String(userId));
|
|
3570
3598
|
let queryParameters;
|
|
@@ -3592,6 +3620,18 @@ class UserService {
|
|
|
3592
3620
|
if (userId === null || userId === undefined) {
|
|
3593
3621
|
throw new Error('Required parameter userId was null or undefined when calling getUserOrganizations.');
|
|
3594
3622
|
}
|
|
3623
|
+
if (filter !== undefined) {
|
|
3624
|
+
queryParameters = queryParameters.set('filter', filter);
|
|
3625
|
+
}
|
|
3626
|
+
if (orderBy !== undefined) {
|
|
3627
|
+
queryParameters = queryParameters.set('orderBy', orderBy);
|
|
3628
|
+
}
|
|
3629
|
+
if (pageSize !== undefined) {
|
|
3630
|
+
queryParameters = queryParameters.set('pageSize', pageSize);
|
|
3631
|
+
}
|
|
3632
|
+
if (pageNumber !== undefined) {
|
|
3633
|
+
queryParameters = queryParameters.set('pageNumber', pageNumber);
|
|
3634
|
+
}
|
|
3595
3635
|
// to determine the Accept header
|
|
3596
3636
|
let produces = [
|
|
3597
3637
|
'application/json'
|
|
@@ -4506,6 +4546,24 @@ class OrganizationResponse {
|
|
|
4506
4546
|
class OrganizationUserResponse {
|
|
4507
4547
|
}
|
|
4508
4548
|
|
|
4549
|
+
/**
|
|
4550
|
+
* EnergyCAP ID SDK
|
|
4551
|
+
* Document used to generate the EnergyCAP ID SDK
|
|
4552
|
+
*
|
|
4553
|
+
* OpenAPI spec version: 1.2112
|
|
4554
|
+
* Contact: support@energycap.com
|
|
4555
|
+
*
|
|
4556
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
4557
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
4558
|
+
* Do not edit the class manually.
|
|
4559
|
+
*/
|
|
4560
|
+
var OrganizationUserStatusEnum;
|
|
4561
|
+
(function (OrganizationUserStatusEnum) {
|
|
4562
|
+
OrganizationUserStatusEnum[OrganizationUserStatusEnum["Active"] = 'Active'] = "Active";
|
|
4563
|
+
OrganizationUserStatusEnum[OrganizationUserStatusEnum["JoinRequestPending"] = 'JoinRequestPending'] = "JoinRequestPending";
|
|
4564
|
+
OrganizationUserStatusEnum[OrganizationUserStatusEnum["InvitePending"] = 'InvitePending'] = "InvitePending";
|
|
4565
|
+
})(OrganizationUserStatusEnum || (OrganizationUserStatusEnum = {}));
|
|
4566
|
+
|
|
4509
4567
|
/**
|
|
4510
4568
|
* EnergyCAP ID SDK
|
|
4511
4569
|
* Document used to generate the EnergyCAP ID SDK
|
|
@@ -4854,5 +4912,5 @@ EnergyCapSdkModule.decorators = [
|
|
|
4854
4912
|
* Generated bundle index. Do not edit.
|
|
4855
4913
|
*/
|
|
4856
4914
|
|
|
4857
|
-
export { APIFilter, APIOrderBy, APIS, AllUserPermissionsResponse, ApplicationInstanceDetailResponse, ApplicationInstanceRedirectResponse, ApplicationInstanceResponse, ApplicationInstanceService, ApplicationInstanceUserResponse, ApplicationResponse, ApplicationService, AuthService, BASE_PATH, COLLECTION_FORMATS, ChangePasswordRequest, Configuration, CreateOrganizationRequest, DataSourceResponse, DataSourceService, DataSourceUpdateRequest, DataType, DomainAccessControlResponse, DomainJoinTypeResponse, DomainJoinTypeService, EnergyCapSdkModule, EntityPermission, EnvironmentResponse, EnvironmentService, HierarchicalOrganizations, HierarchicalOrganizations2, InviteUserRequest, LinkDataSourceRequest, LoginResponse, LoginSourceResponse, MeService, NotificationBadgeResponse, NotificationCategory, NotificationResponse, NotificationService, NotificationSettingRequest, NotificationType, NotificationUpdateRequest, OrganizationAccessControlResponse, OrganizationApplicationResponse, OrganizationApplicationService, OrganizationAssignedCustomField, OrganizationDetailResponse, OrganizationGatherCustomField, OrganizationResponse, OrganizationService, OrganizationUserResponse, ResetPasswordRequest, RoleEnum, SelfCreateUserRequest, UpdateMeRequest, UpdateOrganizationAccessControlRequest, UpdateOrganizationDetailsRequest, UpdateResult, UserApplicationInstanceResponse, UserAuthResultEnum, UserChild, UserLoginRequest, UserOrganizationResponse, UserOrganizationStateEnum, UserPermissionRequest, UserPermissionResponse, UserResponse, UserService, UserStatusEnum, ValidatePasswordRequest, ValidatePasswordResponse };
|
|
4915
|
+
export { APIFilter, APIOrderBy, APIS, AllUserPermissionsResponse, ApplicationInstanceDetailResponse, ApplicationInstanceRedirectResponse, ApplicationInstanceResponse, ApplicationInstanceService, ApplicationInstanceUserResponse, ApplicationResponse, ApplicationService, AuthService, BASE_PATH, COLLECTION_FORMATS, ChangePasswordRequest, Configuration, CreateOrganizationRequest, DataSourceResponse, DataSourceService, DataSourceUpdateRequest, DataType, DomainAccessControlResponse, DomainJoinTypeResponse, DomainJoinTypeService, EnergyCapSdkModule, EntityPermission, EnvironmentResponse, EnvironmentService, HierarchicalOrganizations, HierarchicalOrganizations2, InviteUserRequest, LinkDataSourceRequest, LoginResponse, LoginSourceResponse, MeService, NotificationBadgeResponse, NotificationCategory, NotificationResponse, NotificationService, NotificationSettingRequest, NotificationType, NotificationUpdateRequest, OrganizationAccessControlResponse, OrganizationApplicationResponse, OrganizationApplicationService, OrganizationAssignedCustomField, OrganizationDetailResponse, OrganizationGatherCustomField, OrganizationResponse, OrganizationService, OrganizationUserResponse, OrganizationUserStatusEnum, ResetPasswordRequest, RoleEnum, SelfCreateUserRequest, UpdateMeRequest, UpdateOrganizationAccessControlRequest, UpdateOrganizationDetailsRequest, UpdateResult, UserApplicationInstanceResponse, UserAuthResultEnum, UserChild, UserLoginRequest, UserOrganizationResponse, UserOrganizationStateEnum, UserPermissionRequest, UserPermissionResponse, UserResponse, UserService, UserStatusEnum, ValidatePasswordRequest, ValidatePasswordResponse };
|
|
4858
4916
|
//# sourceMappingURL=energycap-energycapid-sdk-angular.js.map
|