cloudflare
Version:
The official TypeScript library for the Cloudflare API
37 lines • 1.36 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Matches = exports.BaseMatches = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../core/resource.js");
const path_1 = require("../../internal/utils/path.js");
var BaseMatches = /* @__PURE__ */ (() => {
class BaseMatches extends resource_1.APIResource {
/**
* Return matches as CSV for string queries based on ID
*/
download(params, options) {
const { account_id, ...query } = params;
return this._client.get((0, path_1.path) `/accounts/${account_id}/brand-protection/matches/download`, {
query,
...options,
});
}
/**
* Return matches for string queries based on ID
*/
get(params, options) {
const { account_id, ...query } = params;
return this._client.get((0, path_1.path) `/accounts/${account_id}/brand-protection/matches`, { query, ...options });
}
}
BaseMatches._key = Object.freeze([
'brandProtection',
'matches',
]);
return BaseMatches;
})();
exports.BaseMatches = BaseMatches;
class Matches extends BaseMatches {
}
exports.Matches = Matches;
//# sourceMappingURL=matches.js.map