Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLTCONN-3883: Implement changes to support Direct permission config in connector spec that will show up in UI #41

Merged
merged 7 commits into from
Oct 19, 2023
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[]
}
Loading