feat: initial n8n community node for billbee
This commit is contained in:
@@ -0,0 +1,201 @@
|
||||
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"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user