@ieeesa-npm/groups 0.11.9 → 0.12.0

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.
@@ -21,9 +21,6 @@ export interface AddOrEditIndividualRosterPayload extends AddOrEditUserRolePaylo
21
21
  orgId: string;
22
22
  orgName: string;
23
23
  };
24
- memberStatus: {
25
- memberStatusId: string;
26
- };
27
24
  }
28
25
  export interface AddOrEditUserPayload {
29
26
  payload: AddOrEditUserRolePayload;
@@ -0,0 +1,5 @@
1
+ export declare enum RoleType {
2
+ OFFICER = "Officer",
3
+ SYSTEM = "System",
4
+ MEMBER_LEVEL = "Member Level"
5
+ }
@@ -1,4 +1,6 @@
1
1
  export interface Role {
2
2
  roleId: string;
3
3
  roleName: string;
4
+ roleTypeName?: string;
5
+ roleType?: string;
4
6
  }
@@ -1,5 +1,4 @@
1
1
  import { Classification } from './classification.model';
2
- import { MemberType } from './member-type.model';
3
2
  import { Organization } from './organization.model';
4
3
  import { Role } from './role.model';
5
4
  export interface User {
@@ -27,7 +26,6 @@ export interface GetGroupUsersResponse {
27
26
  email: string;
28
27
  rolesList: Role[];
29
28
  classification: Classification | null;
30
- memberStatus: MemberType | null;
31
29
  organization: Organization | null;
32
30
  employer: Employer | null;
33
31
  canDelete?: boolean;
@@ -6,6 +6,7 @@ import { GetGroupResponse, GetGroupsPayload } from '../models/view-group.model';
6
6
  import { DeleteGroupPayload } from '../models/delete-group.model';
7
7
  import { GroupInfo } from '../models/group-info.model';
8
8
  import { SearchUsersPayload, FilterUsersPayload, GetGroupUsersResponse, User, LoggedInUserInfo } from '../models/user.model';
9
+ import { Role } from '../models/role.model';
9
10
  import { CheckboxOption } from '@ieeesa-npm/presentation';
10
11
  import { EditGroupPayload } from '../models/edit-group.model';
11
12
  import { GroupFunctionType } from '../models/group-function-type.model';
@@ -15,7 +16,6 @@ import { AddOrEditUserPayload, AddOrEditGroupUserDetailsResponse, AddOrEditUserI
15
16
  import { DeleteUserGroupPayload } from '../models/delete-user-group.model';
16
17
  import { GetUserDetailsPayload, SearchUserByEmailResponse } from '../models/add-new-user.model';
17
18
  import { OrganizationRequestPayload, OrganizationResponse } from '../models/organization.model';
18
- import { MemberTypeResponse } from '../models/member-type.model';
19
19
  import { ClassificationResponse } from '../models/classification.model';
20
20
  import { GroupRosterType } from '../models/roster-type.model';
21
21
  import { FormControlStatus } from '@angular/forms';
@@ -61,7 +61,11 @@ export declare class GroupsService {
61
61
  "1022": string;
62
62
  "1023": string;
63
63
  "1024": string;
64
- "1025": string;
64
+ "1025": string; /**
65
+ * Returns group function type.
66
+ * @return {GroupFunctionType} -group function type.
67
+ * @memberof GroupsService
68
+ */
65
69
  "1026": string;
66
70
  "1027": string;
67
71
  "1028": string;
@@ -80,12 +84,7 @@ export declare class GroupsService {
80
84
  "2002": string;
81
85
  "2010": string;
82
86
  "2011": string;
83
- "20l2": string; /**
84
- * Gets the group users based on the filtered roles.
85
- * @param {FilterUsersPayload} payload
86
- * @return {Observable<GetGroupUsersResponse>}
87
- * @memberof GroupsService
88
- */
87
+ "20l2": string;
89
88
  "2013": string;
90
89
  "2014": string;
91
90
  "2015": string;
@@ -114,6 +113,7 @@ export declare class GroupsService {
114
113
  groupTypes: GroupTypeConfiguration[];
115
114
  isParentGroupChanged: boolean;
116
115
  userInfo: LoggedInUserInfo;
116
+ memberTypes: Role[];
117
117
  constructor(httpService: HttpService, userPermissionsService: UserPermissionsService, groupPermissionsService: GroupPermissionsMapService, alertService: AlertsService);
118
118
  setAppConfig(apiBaseUrl: string, userPermission: any): void;
119
119
  /**
@@ -237,12 +237,6 @@ export declare class GroupsService {
237
237
  * @memberof GroupsService
238
238
  */
239
239
  getClassifications(): Observable<ClassificationResponse>;
240
- /**
241
- * Fetches the member types master data from configuration and returns.
242
- * @return {Observable<MemberTypeResponse>}
243
- * @memberof GroupsService
244
- */
245
- getMemberTypes(): Observable<MemberTypeResponse>;
246
240
  /**
247
241
  * Returns the true if logged in user is admin.
248
242
  * @return {boolean}
@@ -415,6 +409,18 @@ export declare class GroupsService {
415
409
  * @memberof GroupsService
416
410
  */
417
411
  getParentGroupChangeStatus(): boolean;
412
+ /**
413
+ * Sets the member types.
414
+ * @param {Role[]} memberTypes
415
+ * @memberof GroupsService
416
+ */
417
+ setMemberTypes(memberTypes: Role[]): void;
418
+ /**
419
+ * Returns the member types.
420
+ * @return {Role[]}
421
+ * @memberof GroupsService
422
+ */
423
+ getMemberTypes(): Role[];
418
424
  static ɵfac: i0.ɵɵFactoryDeclaration<GroupsService, never>;
419
425
  static ɵprov: i0.ɵɵInjectableDeclaration<GroupsService>;
420
426
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/groups",
3
- "version": "0.11.9",
3
+ "version": "0.12.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"
package/public-api.d.ts CHANGED
@@ -17,7 +17,7 @@ export * from './lib/models/roster-function-type.model';
17
17
  export * from './lib/models/classification.model';
18
18
  export * from './lib/models/filter-type.model';
19
19
  export * from './lib/models/organization.model';
20
- export * from './lib/models/member-type.model';
20
+ export * from './lib/models/role-type.model';
21
21
  export * from './lib/models/roster-type.model';
22
22
  export * from './lib/models/table-column-schema-user-group.model';
23
23
  export * from './lib/models/parent-groups-info.model';
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVtYmVyLXR5cGUubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9ncm91cHMvc3JjL2xpYi9tb2RlbHMvbWVtYmVyLXR5cGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgTWVtYmVyVHlwZSB7XHJcbiAgbWVtYmVyU3RhdHVzSWQ6IHN0cmluZztcclxuICBtZW1iZXJTdGF0dXNOYW1lOiBzdHJpbmc7XHJcbiAgbWVtYmVyU3RhdHVzRGVzYzogc3RyaW5nO1xyXG59XHJcbmV4cG9ydCBpbnRlcmZhY2UgTWVtYmVyVHlwZVJlc3BvbnNlIHtcclxuICBzdGF0dXM6IGJvb2xlYW47XHJcbiAgbWVzc2FnZTogc3RyaW5nO1xyXG4gIGJvZHk6IE1lbWJlclR5cGVbXTtcclxufVxyXG4iXX0=
@@ -1,10 +0,0 @@
1
- export interface MemberType {
2
- memberStatusId: string;
3
- memberStatusName: string;
4
- memberStatusDesc: string;
5
- }
6
- export interface MemberTypeResponse {
7
- status: boolean;
8
- message: string;
9
- body: MemberType[];
10
- }