@tomei/sso 0.46.0 → 0.46.2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomei/sso",
3
- "version": "0.46.0",
3
+ "version": "0.46.2",
4
4
  "description": "Tomei SSO Package",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -7,7 +7,7 @@ import { ApplicationConfig } from '@tomei/config';
7
7
  import { ActionEnum, Activity } from '@tomei/activity-history';
8
8
  import GroupSystemAccessModel from '../../models/group-system-access.entity';
9
9
  import GroupModel from '../../models/group.entity';
10
- import SystemModel from 'models/system.entity';
10
+ import SystemModel from '../../models/system.entity';
11
11
 
12
12
  export class UserGroup extends ObjectBase {
13
13
  ObjectType = 'UserGroup';
@@ -308,8 +308,8 @@ export class UserGroup extends ObjectBase {
308
308
  {
309
309
  GroupCode: string;
310
310
  GroupName: string;
311
- InheritGroupPrivilegeYN: string;
312
- InheritedGroupSystemAccesses: {
311
+ InheritGroupSystemAccessYN: string;
312
+ Systems: {
313
313
  SystemCode: string;
314
314
  SystemName: string;
315
315
  AccessStatus: string;
@@ -383,8 +383,8 @@ export class UserGroup extends ObjectBase {
383
383
  const result: {
384
384
  GroupCode: string;
385
385
  GroupName: string;
386
- InheritGroupPrivilegeYN: string;
387
- InheritedGroupSystemAccesses: {
386
+ InheritGroupSystemAccessYN: string;
387
+ Systems: {
388
388
  SystemCode: string;
389
389
  SystemName: string;
390
390
  AccessStatus: string;
@@ -422,13 +422,13 @@ export class UserGroup extends ObjectBase {
422
422
  const groupData = {
423
423
  GroupCode: userGroup.GroupCode,
424
424
  GroupName: userGroup.Group.Name,
425
- InheritGroupPrivilegeYN: userGroup.InheritGroupPrivilegeYN,
426
- InheritedGroupSystemAccesses: [],
425
+ InheritGroupSystemAccessYN: userGroup.InheritGroupSystemAccessYN,
426
+ Systems: [],
427
427
  };
428
428
 
429
429
  if (userGroup.InheritGroupSystemAccessYN === 'Y') {
430
- groupData.InheritedGroupSystemAccesses =
431
- userGroup.Group.GroupSystemAccesses.map((groupSystemAccess) => {
430
+ groupData.Systems = userGroup.Group.GroupSystemAccesses.map(
431
+ (groupSystemAccess) => {
432
432
  return {
433
433
  SystemCode: groupSystemAccess.System.SystemCode,
434
434
  SystemName: groupSystemAccess.System.Name,
@@ -436,7 +436,8 @@ export class UserGroup extends ObjectBase {
436
436
  CreatedAt: groupSystemAccess.CreatedAt,
437
437
  UpdatedAt: groupSystemAccess.UpdatedAt,
438
438
  };
439
- });
439
+ },
440
+ );
440
441
  }
441
442
 
442
443
  result.push(groupData);