UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

58 lines • 2.49 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../core/resource.mjs"; import * as LogoMatchesAPI from "./logo-matches.mjs"; import { BaseLogoMatches, LogoMatches, } from "./logo-matches.mjs"; import * as LogosAPI from "./logos.mjs"; import { BaseLogos, Logos } from "./logos.mjs"; import * as MatchesAPI from "./matches.mjs"; import { BaseMatches, Matches, } from "./matches.mjs"; import * as QueriesAPI from "./queries.mjs"; import { BaseQueries, Queries } from "./queries.mjs"; import * as V2API from "./v2/v2.mjs"; import { BaseV2, V2 } from "./v2/v2.mjs"; import { SinglePage } from "../../core/pagination.mjs"; import { path } from "../../internal/utils/path.mjs"; export var BaseBrandProtection = /* @__PURE__ */ (() => { class BaseBrandProtection extends APIResource { /** * Return new URL submissions */ submit(params, options) { const { account_id } = params; return this._client.post(path `/accounts/${account_id}/brand-protection/submit`, options); } /** * Return submitted URLs based on ID */ urlInfo(params, options) { const { account_id } = params; return this._client.getAPIList(path `/accounts/${account_id}/brand-protection/url-info`, (SinglePage), options); } } BaseBrandProtection._key = Object.freeze(['brandProtection']); return BaseBrandProtection; })(); export var BrandProtection = /* @__PURE__ */ (() => { class BrandProtection extends BaseBrandProtection { constructor() { super(...arguments); this.queries = new QueriesAPI.Queries(this._client); this.matches = new MatchesAPI.Matches(this._client); this.logos = new LogosAPI.Logos(this._client); this.logoMatches = new LogoMatchesAPI.LogoMatches(this._client); this.v2 = new V2API.V2(this._client); } } BrandProtection.Queries = Queries; BrandProtection.BaseQueries = BaseQueries; BrandProtection.Matches = Matches; BrandProtection.BaseMatches = BaseMatches; BrandProtection.Logos = Logos; BrandProtection.BaseLogos = BaseLogos; BrandProtection.LogoMatches = LogoMatches; BrandProtection.BaseLogoMatches = BaseLogoMatches; BrandProtection.V2 = V2; BrandProtection.BaseV2 = BaseV2; return BrandProtection; })(); //# sourceMappingURL=brand-protection.mjs.map