Add scope source operation to access review n8n node
Campaigns cannot be started without at least one scope source, but the n8n node had no way to attach sources after creation. Expose the addAccessReviewCampaignSource mutation as an Add Source operation so workflows can configure sources before starting. Return INVALID instead of INTERNAL when start fails due to missing sources or invalid status, so n8n surfaces the real error message. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
// SOFTWARE.
|
||||
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
import * as addSourceOp from './addSource.operation';
|
||||
import * as createOp from './create.operation';
|
||||
import * as deleteOp from './delete.operation';
|
||||
import * as getOp from './get.operation';
|
||||
@@ -40,6 +41,12 @@ export const description: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Add Source',
|
||||
value: 'addSource',
|
||||
description: 'Add a scope source to an access review campaign',
|
||||
action: 'Add a scope source to an access review campaign',
|
||||
},
|
||||
{
|
||||
name: 'Cancel',
|
||||
value: 'cancel',
|
||||
@@ -91,6 +98,7 @@ export const description: INodeProperties[] = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
...addSourceOp.description,
|
||||
...createOp.description,
|
||||
...deleteOp.description,
|
||||
...getOp.description,
|
||||
@@ -102,6 +110,7 @@ export const description: INodeProperties[] = [
|
||||
];
|
||||
|
||||
export {
|
||||
addSourceOp as addSource,
|
||||
createOp as create,
|
||||
deleteOp as delete,
|
||||
getOp as get,
|
||||
|
||||
Reference in New Issue
Block a user