195 linhas
7,4 KiB
TypeScript
195 linhas
7,4 KiB
TypeScript
// Generated from the OpenAPI specification. Do not edit by hand: regenerate.
|
|
import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
import { NodeConnectionTypes } from 'n8n-workflow';
|
|
|
|
import { domainsOperations, domainsFields } from './descriptions/DomainsDescription';
|
|
import { dnsOperations, dnsFields } from './descriptions/DnsDescription';
|
|
import { smsOperations, smsFields } from './descriptions/SmsDescription';
|
|
import { emailCenterOperations, emailCenterFields } from './descriptions/EmailCenterDescription';
|
|
import { aiOperations, aiFields } from './descriptions/AiDescription';
|
|
import { billingOperations, billingFields } from './descriptions/BillingDescription';
|
|
import { supportOperations, supportFields } from './descriptions/SupportDescription';
|
|
import { servicesOperations, servicesFields } from './descriptions/ServicesDescription';
|
|
import { hostingOperations, hostingFields } from './descriptions/HostingDescription';
|
|
import { emailOperations, emailFields } from './descriptions/EmailDescription';
|
|
import { serversOperations, serversFields } from './descriptions/ServersDescription';
|
|
import { extrasOperations, extrasFields } from './descriptions/ExtrasDescription';
|
|
import { resellerOperations, resellerFields } from './descriptions/ResellerDescription';
|
|
import { catalogOperations, catalogFields } from './descriptions/CatalogDescription';
|
|
import { accountOperations, accountFields } from './descriptions/AccountDescription';
|
|
import { whoisOperations, whoisFields } from './descriptions/WhoisDescription';
|
|
import { tokenOperations, tokenFields } from './descriptions/TokenDescription';
|
|
import { actionsOperations, actionsFields } from './descriptions/ActionsDescription';
|
|
import { statusOperations, statusFields } from './descriptions/StatusDescription';
|
|
import { specificationOperations, specificationFields } from './descriptions/SpecificationDescription';
|
|
|
|
export class MozOutMz implements INodeType {
|
|
description: INodeTypeDescription = {
|
|
displayName: 'MozOut Mozambique',
|
|
name: 'mozOutMz',
|
|
icon: 'file:mozout-mz.svg',
|
|
group: ['transform'],
|
|
version: 1,
|
|
subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
|
|
description: 'The whole MozOut Mozambique API: domains, DNS, SMS, E-mail Center, AI, billing, hosting, servers and more (256 operations)',
|
|
defaults: { name: 'MozOut Mozambique' },
|
|
inputs: [NodeConnectionTypes.Main],
|
|
outputs: [NodeConnectionTypes.Main],
|
|
credentials: [{ name: 'mozOutMzApi', required: true }],
|
|
requestDefaults: {
|
|
baseURL: '={{String($credentials.baseUrl || "https://api.mozout.co.mz").replace(new RegExp("/+$"), "")}}',
|
|
headers: { Accept: 'application/json', 'Content-Type': 'application/json' },
|
|
},
|
|
properties: [
|
|
{
|
|
displayName: 'Resource',
|
|
name: 'resource',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
options: [
|
|
{
|
|
"name": "Domain",
|
|
"value": "domain",
|
|
"description": "The domains of the account."
|
|
},
|
|
{
|
|
"name": "DNS",
|
|
"value": "dns",
|
|
"description": "The DNS zone of each domain."
|
|
},
|
|
{
|
|
"name": "SMS",
|
|
"value": "sms",
|
|
"description": "Send SMS and check balance and senders. Only for accounts with SMS active."
|
|
},
|
|
{
|
|
"name": "E-mail Center",
|
|
"value": "emailCenter",
|
|
"description": "Transactional email: sender domains, sending, templates, suppressions, statistics and webhooks. Only for accounts with E-mail Center active."
|
|
},
|
|
{
|
|
"name": "AI",
|
|
"value": "ai",
|
|
"description": "Artificial intelligence: text, image, video and voice models, paid with credits. Chat is compatible with the OpenAI SDKs."
|
|
},
|
|
{
|
|
"name": "Billing (Invoices, Orders and Quotes)",
|
|
"value": "billing",
|
|
"description": "Invoices, credit and transactions."
|
|
},
|
|
{
|
|
"name": "Support (Tickets, KB and Announcements)",
|
|
"value": "support",
|
|
"description": "Tickets and departments."
|
|
},
|
|
{
|
|
"name": "Service",
|
|
"value": "service",
|
|
"description": "The services of the account: hosting, servers and others."
|
|
},
|
|
{
|
|
"name": "Hosting",
|
|
"value": "hosting",
|
|
"description": "Usage, panel login, domains, databases, cron, SSL, PHP, backups and FTP of a hosting service."
|
|
},
|
|
{
|
|
"name": "Hosting E-mail (Mailboxes)",
|
|
"value": "hostingEmail",
|
|
"description": "Mailboxes, forwarders, autoresponders, default address and authentication of a hosting service."
|
|
},
|
|
{
|
|
"name": "Server (VPS)",
|
|
"value": "server",
|
|
"description": "VPS servers: state, power, password, backups, reverse DNS and reinstall."
|
|
},
|
|
{
|
|
"name": "Extra",
|
|
"value": "extra",
|
|
"description": "Certificates, SiteLock, radio and other extras of the account."
|
|
},
|
|
{
|
|
"name": "Reseller Program",
|
|
"value": "reseller",
|
|
"description": "The reseller programs and accounts of this account."
|
|
},
|
|
{
|
|
"name": "Catalog",
|
|
"value": "catalog",
|
|
"description": "What is for sale, with prices."
|
|
},
|
|
{
|
|
"name": "Account",
|
|
"value": "account",
|
|
"description": "Details of the account, its contacts and users."
|
|
},
|
|
{
|
|
"name": "WHOIS",
|
|
"value": "whois",
|
|
"description": "Free WHOIS lookup of a domain name."
|
|
},
|
|
{
|
|
"name": "API Key and Limits",
|
|
"value": "token",
|
|
"description": "The key in use and its limits."
|
|
},
|
|
{
|
|
"name": "Action",
|
|
"value": "action",
|
|
"description": "Long-running operations."
|
|
},
|
|
{
|
|
"name": "Status",
|
|
"value": "status",
|
|
"description": "Service status."
|
|
},
|
|
{
|
|
"name": "Specification",
|
|
"value": "specification",
|
|
"description": "This API described in OpenAPI."
|
|
}
|
|
],
|
|
default: 'domain',
|
|
},
|
|
...domainsOperations,
|
|
...domainsFields,
|
|
...dnsOperations,
|
|
...dnsFields,
|
|
...smsOperations,
|
|
...smsFields,
|
|
...emailCenterOperations,
|
|
...emailCenterFields,
|
|
...aiOperations,
|
|
...aiFields,
|
|
...billingOperations,
|
|
...billingFields,
|
|
...supportOperations,
|
|
...supportFields,
|
|
...servicesOperations,
|
|
...servicesFields,
|
|
...hostingOperations,
|
|
...hostingFields,
|
|
...emailOperations,
|
|
...emailFields,
|
|
...serversOperations,
|
|
...serversFields,
|
|
...extrasOperations,
|
|
...extrasFields,
|
|
...resellerOperations,
|
|
...resellerFields,
|
|
...catalogOperations,
|
|
...catalogFields,
|
|
...accountOperations,
|
|
...accountFields,
|
|
...whoisOperations,
|
|
...whoisFields,
|
|
...tokenOperations,
|
|
...tokenFields,
|
|
...actionsOperations,
|
|
...actionsFields,
|
|
...statusOperations,
|
|
...statusFields,
|
|
...specificationOperations,
|
|
...specificationFields,
|
|
],
|
|
};
|
|
}
|