Vigiar
1
0
Derivar
Você já tinha feito uma derivação do repositório api-n8n-node, anteriormente
0
api-n8n-node/nodes/MozOutMz/descriptions/ExtrasDescription.ts
2026-11-28 15:28:09 +02:00

476 linhas
11 KiB
TypeScript

// Generated from the OpenAPI specification. Do not edit by hand: regenerate.
import type { INodeProperties } from 'n8n-workflow';
export const extrasOperations: INodeProperties[] = [{
"displayName": "Operation",
"name": "operation",
"type": "options",
"noDataExpression": true,
"displayOptions": {
"show": {
"resource": [
"extra"
]
}
},
"options": [
{
"name": "List extras for sale",
"value": "catalogList",
"description": "Needs `extras:read`. Prices in the currency of the account. `purchasable` says if it can be bought through the API; if not, use `portal_url`. SiteLock has no 3 or 6 month periods. Extra IP and disk...",
"action": "List extras for sale",
"routing": {
"request": {
"method": "GET",
"url": "=/v1/extras/catalog"
},
"output": {
"postReceive": [
{
"type": "rootProperty",
"properties": {
"property": "data"
}
}
]
}
}
},
{
"name": "List the extras of the account",
"value": "list",
"description": "Needs `extras:read`. The extras of this account. The `id` starts with `s` for a service, `a` for an add-on and `v` for an extra IP or disk of a server, which also has `quantity` and `invoice_id`....",
"action": "List the extras of the account",
"routing": {
"request": {
"method": "GET",
"url": "=/v1/extras"
},
"output": {
"postReceive": [
{
"type": "rootProperty",
"properties": {
"property": "data"
}
}
]
}
}
},
{
"name": "See an extra",
"value": "get",
"description": "Needs `extras:read`. One extra of this account, with the `id` from the list.",
"action": "See an extra",
"routing": {
"request": {
"method": "GET",
"url": "=/v1/extras/{{encodeURIComponent(String($parameter[\"id\"]))}}"
}
}
},
{
"name": "Buy an extra",
"value": "purchase",
"description": "Needs `billing:purchase`. Also needs `extras:write` and the `Idempotency-Key` header. Paid with credit only, within the spending limit of the key. Only for products with `purchasable`. SiteLock needs...",
"action": "Buy an extra",
"routing": {
"request": {
"method": "POST",
"url": "=/v1/extras/purchase",
"headers": {
"Idempotency-Key": "={{ \"n8n-\" + Date.now().toString(36) + \"-\" + Math.random().toString(36).slice(2, 12) }}"
}
}
}
}
],
"default": "catalogList"
}];
export const extrasFields: INodeProperties[] = [
{
"displayName": "Query Parameters",
"name": "queryParameters",
"type": "collection",
"placeholder": "Add Parameter",
"default": {},
"displayOptions": {
"show": {
"resource": [
"extra"
],
"operation": [
"catalogList"
]
}
},
"options": [
{
"displayName": "Kind",
"name": "kind",
"type": "options",
"options": [
{
"name": "ssl",
"value": "ssl"
},
{
"name": "sitelock",
"value": "sitelock"
},
{
"name": "website_builder",
"value": "website_builder"
},
{
"name": "backup",
"value": "backup"
},
{
"name": "email_filter",
"value": "email_filter"
},
{
"name": "email",
"value": "email"
},
{
"name": "seo",
"value": "seo"
},
{
"name": "monitoring",
"value": "monitoring"
},
{
"name": "vpn",
"value": "vpn"
},
{
"name": "social",
"value": "social"
},
{
"name": "radio",
"value": "radio"
},
{
"name": "radio_addon",
"value": "radio_addon"
},
{
"name": "vps_ip",
"value": "vps_ip"
},
{
"name": "vps_disk",
"value": "vps_disk"
},
{
"name": "other",
"value": "other"
}
],
"default": "ssl",
"description": "Only this kind.",
"routing": {
"send": {
"type": "query",
"property": "kind"
}
}
},
{
"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": [
"extra"
],
"operation": [
"list"
]
}
},
"options": [
{
"displayName": "Kind",
"name": "kind",
"type": "options",
"options": [
{
"name": "ssl",
"value": "ssl"
},
{
"name": "sitelock",
"value": "sitelock"
},
{
"name": "website_builder",
"value": "website_builder"
},
{
"name": "backup",
"value": "backup"
},
{
"name": "email_filter",
"value": "email_filter"
},
{
"name": "email",
"value": "email"
},
{
"name": "seo",
"value": "seo"
},
{
"name": "monitoring",
"value": "monitoring"
},
{
"name": "vpn",
"value": "vpn"
},
{
"name": "social",
"value": "social"
},
{
"name": "radio",
"value": "radio"
},
{
"name": "radio_addon",
"value": "radio_addon"
},
{
"name": "vps_ip",
"value": "vps_ip"
},
{
"name": "vps_disk",
"value": "vps_disk"
},
{
"name": "other",
"value": "other"
}
],
"default": "ssl",
"description": "Only this kind.",
"routing": {
"send": {
"type": "query",
"property": "kind"
}
}
},
{
"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 `id` from the list, such as `s812`.",
"displayOptions": {
"show": {
"resource": [
"extra"
],
"operation": [
"get"
]
}
}
},
{
"displayName": "Product ID",
"name": "product_id",
"type": "number",
"default": 0,
"typeOptions": {
"numberPrecision": 0
},
"required": true,
"description": "The `id` from the catalog.",
"routing": {
"send": {
"type": "body",
"property": "product_id"
}
},
"displayOptions": {
"show": {
"resource": [
"extra"
],
"operation": [
"purchase"
]
}
}
},
{
"displayName": "Billing Cycle",
"name": "billing_cycle",
"type": "options",
"options": [
{
"name": "monthly",
"value": "monthly"
},
{
"name": "annually",
"value": "annually"
},
{
"name": "biennially",
"value": "biennially"
},
{
"name": "triennially",
"value": "triennially"
}
],
"default": "monthly",
"required": true,
"routing": {
"send": {
"type": "body",
"property": "billing_cycle"
}
},
"displayOptions": {
"show": {
"resource": [
"extra"
],
"operation": [
"purchase"
]
}
}
},
{
"displayName": "Additional Fields",
"name": "additionalFields",
"type": "collection",
"placeholder": "Add Field",
"default": {},
"displayOptions": {
"show": {
"resource": [
"extra"
],
"operation": [
"purchase"
]
}
},
"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": "Site",
"name": "site",
"type": "string",
"default": "",
"description": "The domain of the site. Only for SiteLock.",
"routing": {
"send": {
"type": "body",
"property": "site"
}
}
}
]
}
];