From 301c9912ec59bc418ad5d5cc96beb005784eb6eb Mon Sep 17 00:00:00 2001 From: Ricardo Fierro Date: Mon, 25 Sep 2023 13:35:25 -0600 Subject: [PATCH 1/6] [sdk] Add hierarchy attribute to entitlement schema --- lib/commands/command.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/command.ts b/lib/commands/command.ts index 51ba126..b9ba030 100644 --- a/lib/commands/command.ts +++ b/lib/commands/command.ts @@ -157,5 +157,6 @@ export type AccountSchema = Schema & { * Entitlement schema */ export type EntitlementSchema = Schema & { - type: string + type: string, + hierarchyAttribute?: string } From eedb01a8596b83df92289cdb91eea16795b7590a Mon Sep 17 00:00:00 2001 From: Ricardo Fierro Date: Thu, 12 Oct 2023 11:01:13 -0600 Subject: [PATCH 2/6] Implement changes to support Direct permission config in connector spec that will show up in UI --- lib/commands/command.ts | 4 ++-- lib/commands/std-entitlement-list.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/commands/command.ts b/lib/commands/command.ts index 6414bec..4c0cc57 100644 --- a/lib/commands/command.ts +++ b/lib/commands/command.ts @@ -33,10 +33,10 @@ export enum StandardCommand { * - string[] or integer[] for multi-valued attributes */ export type Attributes = { - [attribute: string]: boolean | string | string[] | number | number[] | null | Permission + [attribute: string]: boolean | string | string[] | number | number[] | null | EntPermission[] } -export type Permission = { +export type EntPermission = { target: string rights: string annotation?: string diff --git a/lib/commands/std-entitlement-list.ts b/lib/commands/std-entitlement-list.ts index 348e19d..9cd506c 100644 --- a/lib/commands/std-entitlement-list.ts +++ b/lib/commands/std-entitlement-list.ts @@ -1,6 +1,6 @@ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */ -import { Attributes, CommandState, EntitlementSchema, ObjectOutput } from './command' +import { Attributes, CommandState, EntitlementSchema, ObjectOutput, EntPermission } from './command' /** * Input object of `std:entitlement:list` command @@ -19,5 +19,5 @@ export type StdEntitlementListOutput = ObjectOutput & { type: string deleted?: boolean attributes: Attributes - permissions?: Permissions + permissions?: EntPermission[] } From d101697cc5975ad1d9b8107cd17ed4ecfc28c637 Mon Sep 17 00:00:00 2001 From: Ricardo Fierro Date: Fri, 13 Oct 2023 12:22:57 -0600 Subject: [PATCH 3/6] Implement changes to support Direct permission config in connector spec that will show up in UI --- lib/commands/std-entitlement-list.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/commands/std-entitlement-list.ts b/lib/commands/std-entitlement-list.ts index 9cd506c..7e612eb 100644 --- a/lib/commands/std-entitlement-list.ts +++ b/lib/commands/std-entitlement-list.ts @@ -19,5 +19,4 @@ export type StdEntitlementListOutput = ObjectOutput & { type: string deleted?: boolean attributes: Attributes - permissions?: EntPermission[] } From f66645e57b9132aaa315abbfbfc9ff419d9ceb29 Mon Sep 17 00:00:00 2001 From: Ricardo Fierro Date: Fri, 13 Oct 2023 12:24:41 -0600 Subject: [PATCH 4/6] Implement changes to support Direct permission config in connector spec that will show up in UI --- lib/commands/command.ts | 3 +-- lib/commands/std-entitlement-list.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/commands/command.ts b/lib/commands/command.ts index 4c0cc57..9ad2f8f 100644 --- a/lib/commands/command.ts +++ b/lib/commands/command.ts @@ -163,6 +163,5 @@ export type AccountSchema = Schema & { * Entitlement schema */ export type EntitlementSchema = Schema & { - type: string, - hierarchyAttribute?: string + type: string } diff --git a/lib/commands/std-entitlement-list.ts b/lib/commands/std-entitlement-list.ts index 7e612eb..fa92831 100644 --- a/lib/commands/std-entitlement-list.ts +++ b/lib/commands/std-entitlement-list.ts @@ -1,6 +1,6 @@ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */ -import { Attributes, CommandState, EntitlementSchema, ObjectOutput, EntPermission } from './command' +import { Attributes, CommandState, EntitlementSchema, ObjectOutput } from './command' /** * Input object of `std:entitlement:list` command From 5f1b06591ed3f83f72e003e0f469fec7f2e47521 Mon Sep 17 00:00:00 2001 From: Ricardo Fierro Date: Fri, 13 Oct 2023 12:39:18 -0600 Subject: [PATCH 5/6] Implement changes to support Direct permission config in connector spec that will show up in UI --- lib/commands/command.ts | 6 +++--- lib/commands/std-entitlement-list.ts | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/commands/command.ts b/lib/commands/command.ts index 9ad2f8f..a239c1c 100644 --- a/lib/commands/command.ts +++ b/lib/commands/command.ts @@ -33,10 +33,10 @@ export enum StandardCommand { * - string[] or integer[] for multi-valued attributes */ export type Attributes = { - [attribute: string]: boolean | string | string[] | number | number[] | null | EntPermission[] + [attribute: string]: boolean | string | string[] | number | number[] | null } -export type EntPermission = { +export type Permission = { target: string rights: string annotation?: string @@ -163,5 +163,5 @@ export type AccountSchema = Schema & { * Entitlement schema */ export type EntitlementSchema = Schema & { - type: string + type: string, } diff --git a/lib/commands/std-entitlement-list.ts b/lib/commands/std-entitlement-list.ts index fa92831..a494625 100644 --- a/lib/commands/std-entitlement-list.ts +++ b/lib/commands/std-entitlement-list.ts @@ -1,6 +1,6 @@ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */ -import { Attributes, CommandState, EntitlementSchema, ObjectOutput } from './command' +import { Attributes, CommandState, EntitlementSchema, ObjectOutput , Permission} from './command' /** * Input object of `std:entitlement:list` command @@ -18,5 +18,6 @@ export type StdEntitlementListInput = { export type StdEntitlementListOutput = ObjectOutput & { type: string deleted?: boolean - attributes: Attributes + attributes: Attributes, + permissions: Permission[] } From c4e680820698891e636df84678a4c8fd2b201abf Mon Sep 17 00:00:00 2001 From: Ricardo Fierro Date: Wed, 18 Oct 2023 14:52:18 -0600 Subject: [PATCH 6/6] [sdk] Implement changes to support Direct permission config in connector spec that will show up in UI --- lib/commands/command.ts | 5 +++-- lib/commands/std-entitlement-list.ts | 2 +- lib/commands/std-entitlement-read.ts | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/commands/command.ts b/lib/commands/command.ts index a239c1c..c9a5982 100644 --- a/lib/commands/command.ts +++ b/lib/commands/command.ts @@ -33,7 +33,7 @@ export enum StandardCommand { * - string[] or integer[] for multi-valued attributes */ export type Attributes = { - [attribute: string]: boolean | string | string[] | number | number[] | null + [attribute: string]: boolean | string | string[] | number | number[] | null } export type Permission = { @@ -163,5 +163,6 @@ export type AccountSchema = Schema & { * Entitlement schema */ export type EntitlementSchema = Schema & { - type: string, + type: string, + includePermissions?: boolean } diff --git a/lib/commands/std-entitlement-list.ts b/lib/commands/std-entitlement-list.ts index a494625..3d51347 100644 --- a/lib/commands/std-entitlement-list.ts +++ b/lib/commands/std-entitlement-list.ts @@ -19,5 +19,5 @@ export type StdEntitlementListOutput = ObjectOutput & { type: string deleted?: boolean attributes: Attributes, - permissions: Permission[] + permissions?: Permission[] } diff --git a/lib/commands/std-entitlement-read.ts b/lib/commands/std-entitlement-read.ts index 1a47543..dc2f087 100644 --- a/lib/commands/std-entitlement-read.ts +++ b/lib/commands/std-entitlement-read.ts @@ -1,6 +1,6 @@ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */ -import { Attributes, EntitlementSchema, ObjectInput, ObjectOutput } from './command' +import { Attributes, EntitlementSchema, ObjectInput, ObjectOutput, Permission } from './command' /** * Input object of `std:entitlement:read` command @@ -16,4 +16,5 @@ export type StdEntitlementReadInput = ObjectInput & { export type StdEntitlementReadOutput = ObjectOutput & { type: string attributes: Attributes + permissions?: Permission[] }