Skip to content

Commit

Permalink
Merge pull request #41 from sailpoint-oss/ricardofierro/PLTCONN-3883
Browse files Browse the repository at this point in the history
PLTCONN-3883: Implement changes to support Direct permission config in connector spec that will show up in UI
  • Loading branch information
ricardo-fierro-sp committed Oct 19, 2023
2 parents a12c821 + c4e6808 commit 9df61e7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 8 additions & 1 deletion lib/commands/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export type Attributes = {
[attribute: string]: boolean | string | string[] | number | number[] | null
}

export type Permission = {
target: string
rights: string
annotation?: string
}

/**
* SchemaAttribute defines an attribute for schema
*/
Expand Down Expand Up @@ -157,5 +163,6 @@ export type AccountSchema = Schema & {
* Entitlement schema
*/
export type EntitlementSchema = Schema & {
type: string
type: string,
includePermissions?: boolean
}
5 changes: 3 additions & 2 deletions lib/commands/std-entitlement-list.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -18,5 +18,6 @@ export type StdEntitlementListInput = {
export type StdEntitlementListOutput = ObjectOutput & {
type: string
deleted?: boolean
attributes: Attributes
attributes: Attributes,
permissions?: Permission[]
}
3 changes: 2 additions & 1 deletion lib/commands/std-entitlement-read.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -16,4 +16,5 @@ export type StdEntitlementReadInput = ObjectInput & {
export type StdEntitlementReadOutput = ObjectOutput & {
type: string
attributes: Attributes
permissions?: Permission[]
}

0 comments on commit 9df61e7

Please sign in to comment.