202 lines
3.8 KiB
TypeScript
202 lines
3.8 KiB
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const eventsDescription: INodeProperties[] = [
|
|
{
|
|
"displayName": "Operation",
|
|
"name": "operation",
|
|
"type": "options",
|
|
"noDataExpression": true,
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Events"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"name": "Event API Get List",
|
|
"value": "Event API Get List",
|
|
"action": "Get a list of all events optionally filtered by date. This request is extra throttled to 2 calls per page per hour.",
|
|
"description": "Get a list of all events optionally filtered by date. This request is extra throttled to 2 calls per page per hour.",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/api/v1/events"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"default": ""
|
|
},
|
|
{
|
|
"displayName": "GET /api/v1/events",
|
|
"name": "operation",
|
|
"type": "notice",
|
|
"typeOptions": {
|
|
"theme": "info"
|
|
},
|
|
"default": "",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Events"
|
|
],
|
|
"operation": [
|
|
"Event API Get List"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Min Date",
|
|
"name": "minDate",
|
|
"description": "Specifies the oldest date to include in the response",
|
|
"default": "",
|
|
"type": "string",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "minDate",
|
|
"value": "={{ $value }}",
|
|
"propertyInDotNotation": false
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Events"
|
|
],
|
|
"operation": [
|
|
"Event API Get List"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Max Date",
|
|
"name": "maxDate",
|
|
"description": "Specifies the newest date to include in the response",
|
|
"default": "",
|
|
"type": "string",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "maxDate",
|
|
"value": "={{ $value }}",
|
|
"propertyInDotNotation": false
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Events"
|
|
],
|
|
"operation": [
|
|
"Event API Get List"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"description": "Specifies the page to request",
|
|
"default": 0,
|
|
"type": "number",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page",
|
|
"value": "={{ $value }}",
|
|
"propertyInDotNotation": false
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Events"
|
|
],
|
|
"operation": [
|
|
"Event API Get List"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Page Size",
|
|
"name": "pageSize",
|
|
"description": "Specifies the pagesize. Defaults to 50, max value is 250",
|
|
"default": 0,
|
|
"type": "number",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "pageSize",
|
|
"value": "={{ $value }}",
|
|
"propertyInDotNotation": false
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Events"
|
|
],
|
|
"operation": [
|
|
"Event API Get List"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Type ID",
|
|
"name": "typeId",
|
|
"description": "Filter for specific event types",
|
|
"default": "[\n null\n]",
|
|
"type": "json",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "typeId",
|
|
"value": "={{ $value }}",
|
|
"propertyInDotNotation": false
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Events"
|
|
],
|
|
"operation": [
|
|
"Event API Get List"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Order ID",
|
|
"name": "orderId",
|
|
"description": "Filter for specific order id",
|
|
"default": 0,
|
|
"type": "number",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "orderId",
|
|
"value": "={{ $value }}",
|
|
"propertyInDotNotation": false
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"Events"
|
|
],
|
|
"operation": [
|
|
"Event API Get List"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
];
|