ts / dist / esm / domains.js
254 words
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
import * as http from './http.js';
/** GET /domains/check — Check domain availability. Anonymous allowed. */
export const check = (client, domain) => http.get(client, '/domains/check', { query: { domain } });
/** GET /domains/info — Domain information utilities. */
export const info = (client, domain, query) => http.get(client, '/domains/info', { query: { ...query, domain } });
/** GET /domains/preflight — Route a domain to the right inbound operation. */
export const preflight = (client, domain) => http.get(client, '/domains/preflight', { query: { domain } });
/** GET /domains/dns-snapshot — Faithful copy of a domain's live DNS. */
export const dnsSnapshot = (client, domain, query) => http.get(client, '/domains/dns-snapshot', { query: { ...query, domain } });
/** GET /domains/search — Suggest available domain names. */
export const search = (client, q, query) => http.get(client, '/domains/search', { query: { ...query, q } });
/** POST /domains/search — Suggest available domain names from a long description. */
export const searchDescriptions = (client, body) => http.post(client, '/domains/search', { body });
/** GET /domains/example — Example .ro domain. Anonymous allowed. */
export const example = (client) => http.get(client, '/domains/example');
/** GET /domains/directory — Browse the .ro web directory (cursor-paginated). */
export const directory = (client, query) => http.get(client, '/domains/directory', { query });
/** Every directory entry matching the filters, following cursor pagination. */
export const directoryAll = (client, query) => http.paginate(client, '/domains/directory', 'entries', { query });
/** GET /domains/directory/{domain} — Directory entry for a domain. */
export const directoryEntry = (client, domain) => http.get(client, '/domains/directory/{domain}', { params: { domain } });

static mirror of HEAD · about · clone: git clone https://ird.cod-sursa.ro/ts.git