cloudflare
Version:
The official TypeScript library for the Cloudflare API
26 lines • 923 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
import { path } from "../../../internal/utils/path.mjs";
export var BaseQueries = /* @__PURE__ */ (() => {
class BaseQueries extends APIResource {
/**
* Get all saved brand protection queries for an account
*/
get(params, options) {
const { account_id, ...query } = params;
return this._client.get(path `/accounts/${account_id}/cloudforce-one/v2/brand-protection/domain/queries`, {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
BaseQueries._key = Object.freeze([
'brandProtection',
'v2',
'queries',
]);
return BaseQueries;
})();
export class Queries extends BaseQueries {
}
//# sourceMappingURL=queries.mjs.map