UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

64 lines • 2.96 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BrandProtection = exports.BaseBrandProtection = void 0; const tslib_1 = require("../../internal/tslib.js"); // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../core/resource.js"); const LogoMatchesAPI = tslib_1.__importStar(require("./logo-matches.js")); const logo_matches_1 = require("./logo-matches.js"); const LogosAPI = tslib_1.__importStar(require("./logos.js")); const logos_1 = require("./logos.js"); const MatchesAPI = tslib_1.__importStar(require("./matches.js")); const matches_1 = require("./matches.js"); const QueriesAPI = tslib_1.__importStar(require("./queries.js")); const queries_1 = require("./queries.js"); const V2API = tslib_1.__importStar(require("./v2/v2.js")); const v2_1 = require("./v2/v2.js"); const pagination_1 = require("../../core/pagination.js"); const path_1 = require("../../internal/utils/path.js"); var BaseBrandProtection = /* @__PURE__ */ (() => { class BaseBrandProtection extends resource_1.APIResource { /** * Return new URL submissions */ submit(params, options) { const { account_id } = params; return this._client.post((0, path_1.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((0, path_1.path) `/accounts/${account_id}/brand-protection/url-info`, (pagination_1.SinglePage), options); } } BaseBrandProtection._key = Object.freeze(['brandProtection']); return BaseBrandProtection; })(); exports.BaseBrandProtection = BaseBrandProtection; 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_1.Queries; BrandProtection.BaseQueries = queries_1.BaseQueries; BrandProtection.Matches = matches_1.Matches; BrandProtection.BaseMatches = matches_1.BaseMatches; BrandProtection.Logos = logos_1.Logos; BrandProtection.BaseLogos = logos_1.BaseLogos; BrandProtection.LogoMatches = logo_matches_1.LogoMatches; BrandProtection.BaseLogoMatches = logo_matches_1.BaseLogoMatches; BrandProtection.V2 = v2_1.V2; BrandProtection.BaseV2 = v2_1.BaseV2; return BrandProtection; })(); exports.BrandProtection = BrandProtection; //# sourceMappingURL=brand-protection.js.map