cloudflare
Version:
The official TypeScript library for the Cloudflare API
32 lines • 1.39 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Changelog = exports.BaseChangelog = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../../core/resource.js");
const pagination_1 = require("../../../../core/pagination.js");
const path_1 = require("../../../../internal/utils/path.js");
var BaseChangelog = /* @__PURE__ */ (() => {
class BaseChangelog extends resource_1.APIResource {
/**
* Returns the audit history for a flag, newest first. Each entry includes the
* event type and full flag state after the change; `update` entries include a
* field-level diff. Capped at 200 entries per flag.
*/
list(flagKey, params, options) {
const { account_id, app_id, ...query } = params;
return this._client.getAPIList((0, path_1.path) `/accounts/${account_id}/flagship/apps/${app_id}/flags/${flagKey}/changelog`, (pagination_1.CursorPaginationAfter), { query, ...options });
}
}
BaseChangelog._key = Object.freeze([
'flagship',
'apps',
'flags',
'changelog',
]);
return BaseChangelog;
})();
exports.BaseChangelog = BaseChangelog;
class Changelog extends BaseChangelog {
}
exports.Changelog = Changelog;
//# sourceMappingURL=changelog.js.map