52 linhas
1,3 KiB
TypeScript
52 linhas
1,3 KiB
TypeScript
// Generated from the OpenAPI specification. Do not edit by hand: regenerate.
|
|
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const actionsOperations: INodeProperties[] = [{
|
|
"displayName": "Operation",
|
|
"name": "operation",
|
|
"type": "options",
|
|
"noDataExpression": true,
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"action"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"name": "Follow a long-running operation",
|
|
"value": "get",
|
|
"description": "Long operations answer `202` with an `action_id`. Use this operation to follow the result instead of repeating the request. Only actions of your own account can be seen.",
|
|
"action": "Follow a long-running operation",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/actions/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"default": "get"
|
|
}];
|
|
|
|
export const actionsFields: INodeProperties[] = [
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The action_id received in the 202 answer.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"action"
|
|
],
|
|
"operation": [
|
|
"get"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
];
|