329 lines
7.9 KiB
TypeScript
329 lines
7.9 KiB
TypeScript
// Generated from the OpenAPI specification. Do not edit by hand: regenerate.
|
|
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const catalogOperations: INodeProperties[] = [{
|
|
"displayName": "Operation",
|
|
"name": "operation",
|
|
"type": "options",
|
|
"noDataExpression": true,
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"catalog"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"name": "List the products",
|
|
"value": "productsList",
|
|
"description": "Needs `catalog:read`. Only what is on sale, with the prices of each billing cycle. `kind` says what the product is and `purchasable` whether it can be bought with POST /v1/services/purchase. The...",
|
|
"action": "List the products",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/catalog/products"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List the domain extensions",
|
|
"value": "tldsList",
|
|
"description": "Needs `catalog:read`. Register, renew and transfer prices per number of years. A number of years that is missing is not available. With a group discount (Reseller Program or another client group),...",
|
|
"action": "List the domain extensions",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/catalog/tlds"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List the currencies",
|
|
"value": "currenciesList",
|
|
"description": "Needs `catalog:read`. The currencies accepted on the `currency` parameter.",
|
|
"action": "List the currencies",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/catalog/currencies"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "List the billing cycles",
|
|
"value": "billingCyclesList",
|
|
"description": "Needs `catalog:read`. The names used on prices and services.",
|
|
"action": "List the billing cycles",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/catalog/billing-cycles"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Get a product",
|
|
"value": "productsGet",
|
|
"description": "Needs `catalog:read`. The product with its billing cycles (only those with a price), the options the customer chooses and the price of each choice per cycle. With `currency`, prices come in that...",
|
|
"action": "Get a product",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/catalog/products/{{encodeURIComponent(String($parameter[\"id\"]))}}"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"default": "productsList"
|
|
}];
|
|
|
|
export const catalogFields: INodeProperties[] = [
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"catalog"
|
|
],
|
|
"operation": [
|
|
"productsList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Currency",
|
|
"name": "currency",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Currency code. The default is the currency of the account.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "currency"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Group ID",
|
|
"name": "group_id",
|
|
"type": "number",
|
|
"default": 0,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Only the products of this group.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "group_id"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"catalog"
|
|
],
|
|
"operation": [
|
|
"tldsList"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Currency",
|
|
"name": "currency",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Currency code. The default is the currency of the account.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "currency"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Extension",
|
|
"name": "extension",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Only this extension, with or without the dot.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "extension"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Page",
|
|
"name": "page",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "The page number. The first is 1.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "page"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Per Page",
|
|
"name": "per_page",
|
|
"type": "number",
|
|
"default": 10,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Results per page, from 1 to 100. The default is 10.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "per_page"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "ID",
|
|
"name": "id",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The product `id` from the catalog.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"catalog"
|
|
],
|
|
"operation": [
|
|
"productsGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"catalog"
|
|
],
|
|
"operation": [
|
|
"productsGet"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Currency",
|
|
"name": "currency",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional currency code, such as `USD`.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "currency"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
];
|