810 lines
20 KiB
TypeScript
810 lines
20 KiB
TypeScript
// Generated from the OpenAPI specification. Do not edit by hand: regenerate.
|
|
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const domainsOperations: INodeProperties[] = [{
|
|
"displayName": "Operation",
|
|
"name": "operation",
|
|
"type": "options",
|
|
"noDataExpression": true,
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"name": "List the domains",
|
|
"value": "list",
|
|
"description": "Needs `domains:read`. The domains of the account, the next to expire first.",
|
|
"action": "List the domains",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/domains"
|
|
},
|
|
"output": {
|
|
"postReceive": [
|
|
{
|
|
"type": "rootProperty",
|
|
"properties": {
|
|
"property": "data"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See a domain",
|
|
"value": "get",
|
|
"description": "Needs `domains:read`. By name or by `id`.",
|
|
"action": "See a domain",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Check a domain name",
|
|
"value": "availability",
|
|
"description": "Needs `domains:read`. Limited to 30 per minute. `unknown` means the answer could not be confirmed. `portal_only` means this name is handled in the account dashboard. `prices` lists the register and...",
|
|
"action": "Check a domain name",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/domains/availability"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Register a domain",
|
|
"value": "register",
|
|
"description": "Needs `billing:purchase`. Also needs `domains:write` and the `Idempotency-Key` header. Paid with credit only, within the spending limit of the key. Answers `202`: follow it with `GET...",
|
|
"action": "Register a domain",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/domains/register",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Transfer a domain to us",
|
|
"value": "transfer",
|
|
"description": "Needs `billing:purchase`. Also needs `domains:write` and the `Idempotency-Key` header. Paid with credit only, within the spending limit of the key. Answers `202`: follow it with `GET...",
|
|
"action": "Transfer a domain to us",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/domains/transfer",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Renew a domain",
|
|
"value": "renew",
|
|
"description": "Needs `billing:purchase`. Also needs `domains:write` and the `Idempotency-Key` header. Paid with credit only, within the spending limit of the key. Answers `202`: follow it with `GET...",
|
|
"action": "Renew a domain",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/renew",
|
|
"headers": {
|
|
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See the nameservers",
|
|
"value": "nameserversGet",
|
|
"description": "Needs `domains:read`. Reads them from the registry. Limit: 30 per minute, per account. The answer can come from a copy up to 60 seconds old, which does not count towards the limit.",
|
|
"action": "See the nameservers",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/nameservers"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Change the nameservers",
|
|
"value": "nameserversUpdate",
|
|
"description": "Needs `domains:write`. From 2 to 5. Limited to 20 changes per minute. On the domain of the account email, or of the email of a user of the account, it answers `409` with the code...",
|
|
"action": "Change the nameservers",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PUT",
|
|
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/nameservers"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See the transfer lock",
|
|
"value": "lockGet",
|
|
"description": "Needs `domains:read`. `null` means the registry does not say. Limit: 30 per minute, per account. The answer can come from a copy up to 60 seconds old, which does not count towards the limit.",
|
|
"action": "See the transfer lock",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/lock"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Change the transfer lock",
|
|
"value": "lockUpdate",
|
|
"description": "Needs `domains:write`. Turns the lock on or off.",
|
|
"action": "Change the transfer lock",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PUT",
|
|
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/lock"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Change auto-renewal",
|
|
"value": "autoRenewUpdate",
|
|
"description": "Needs `domains:write`. Turns the renewal invoices of the domain on or off.",
|
|
"action": "Change auto-renewal",
|
|
"routing": {
|
|
"request": {
|
|
"method": "PUT",
|
|
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/auto-renew"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See the domain contacts",
|
|
"value": "contactsGet",
|
|
"description": "Needs `domains:read`. As the registry has them. The fields depend on the extension. Limit: 30 per minute, per account. Always read live.",
|
|
"action": "See the domain contacts",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/contacts"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Request the transfer code",
|
|
"value": "transferCodeRequest",
|
|
"description": "Needs `domains:transfer_code`. The code never comes in the response: it goes to the email of the account or of the domain owner. Limited to 3 per hour.",
|
|
"action": "Request the transfer code",
|
|
"routing": {
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "=/v1/domains/{{encodeURIComponent(String($parameter[\"domain\"]))}}/transfer-code"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"default": "list"
|
|
}];
|
|
|
|
export const domainsFields: INodeProperties[] = [
|
|
{
|
|
"displayName": "Query Parameters",
|
|
"name": "queryParameters",
|
|
"type": "collection",
|
|
"placeholder": "Add Parameter",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"list"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"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": "Status",
|
|
"name": "status",
|
|
"type": "options",
|
|
"options": [
|
|
{
|
|
"name": "pending",
|
|
"value": "pending"
|
|
},
|
|
{
|
|
"name": "pending_registration",
|
|
"value": "pending_registration"
|
|
},
|
|
{
|
|
"name": "pending_transfer",
|
|
"value": "pending_transfer"
|
|
},
|
|
{
|
|
"name": "active",
|
|
"value": "active"
|
|
},
|
|
{
|
|
"name": "grace",
|
|
"value": "grace"
|
|
},
|
|
{
|
|
"name": "redemption",
|
|
"value": "redemption"
|
|
},
|
|
{
|
|
"name": "expired",
|
|
"value": "expired"
|
|
},
|
|
{
|
|
"name": "transferred_away",
|
|
"value": "transferred_away"
|
|
},
|
|
{
|
|
"name": "cancelled",
|
|
"value": "cancelled"
|
|
},
|
|
{
|
|
"name": "fraud",
|
|
"value": "fraud"
|
|
}
|
|
],
|
|
"default": "pending",
|
|
"description": "Only results in this status.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "status"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"get"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "The domain name.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "query",
|
|
"property": "domain"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"availability"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "domain"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"register"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"register"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Locked",
|
|
"name": "locked",
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Transfer lock at the registry. Without it, it stays on (true). Send false to register it unlocked.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "locked"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Nameservers",
|
|
"name": "nameservers",
|
|
"type": "string",
|
|
"default": "",
|
|
"placeholder": "value1, value2",
|
|
"description": "Optional, 2 to 5. Without them, the domain gets our nameservers. Comma-separated.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "nameservers",
|
|
"value": "={{ Array.isArray($value) ? $value : String($value).split(\",\").map(s => s.trim()).filter(s => s !== \"\") }}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Promo Code",
|
|
"name": "promo_code",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional promo code. If it does not apply to this purchase, it answers `422` with `promo_not_applicable` and nothing is charged; if it does not exist, `promo_code_invalid`. In Sandbox the code is only checked to exist.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "promo_code"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Years",
|
|
"name": "years",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Number of years, from 1 to 10. Without it, 1 year. Also accepted in quotes (\"2\"). If the extension has no price for that many years, it answers `422` with `period_not_available`.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "years"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "domain"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"transfer"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Transfer Code",
|
|
"name": "transfer_code",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "transfer_code"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"transfer"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"transfer"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Promo Code",
|
|
"name": "promo_code",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional promo code. If it does not apply to this purchase, it answers `422` with `promo_not_applicable` and nothing is charged; if it does not exist, `promo_code_invalid`. In Sandbox the code is only checked to exist.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "promo_code"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"renew"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Additional Fields",
|
|
"name": "additionalFields",
|
|
"type": "collection",
|
|
"placeholder": "Add Field",
|
|
"default": {},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"renew"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"displayName": "Promo Code",
|
|
"name": "promo_code",
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Optional promo code. If it does not apply to this purchase, it answers `422` with `promo_not_applicable` and nothing is charged; if it does not exist, `promo_code_invalid`. In Sandbox the code is only checked to exist.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "promo_code"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Years",
|
|
"name": "years",
|
|
"type": "number",
|
|
"default": 1,
|
|
"typeOptions": {
|
|
"numberPrecision": 0
|
|
},
|
|
"description": "Number of years, from 1 to 10. Without it, 1 year. Also accepted in quotes (\"2\"). If the extension has no price for that many years, it answers `422` with `period_not_available`. The domain cannot be valid for more than 10 years.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "years"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"nameserversGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"nameserversUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Nameservers",
|
|
"name": "nameservers",
|
|
"type": "string",
|
|
"default": "",
|
|
"placeholder": "value1, value2",
|
|
"required": true,
|
|
"description": "Comma-separated.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "nameservers",
|
|
"value": "={{ Array.isArray($value) ? $value : String($value).split(\",\").map(s => s.trim()).filter(s => s !== \"\") }}"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"nameserversUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"lockGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"lockUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Locked",
|
|
"name": "locked",
|
|
"type": "boolean",
|
|
"default": false,
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "locked"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"lockUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"autoRenewUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Auto Renew",
|
|
"name": "auto_renew",
|
|
"type": "boolean",
|
|
"default": false,
|
|
"required": true,
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "auto_renew"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"autoRenewUpdate"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"contactsGet"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Domain",
|
|
"name": "domain",
|
|
"type": "string",
|
|
"required": true,
|
|
"default": "",
|
|
"description": "The domain name or its `id`.",
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"transferCodeRequest"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"displayName": "Confirm",
|
|
"name": "confirm",
|
|
"type": "string",
|
|
"default": "",
|
|
"required": true,
|
|
"description": "The domain name, to confirm.",
|
|
"routing": {
|
|
"send": {
|
|
"type": "body",
|
|
"property": "confirm"
|
|
}
|
|
},
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"domain"
|
|
],
|
|
"operation": [
|
|
"transferCodeRequest"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
];
|