"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomPagesCommand = void 0;
const shared_1 = require("../shared");
class CustomPagesCommand extends shared_1.AbstractCommand {
    getInstanceHomepage(options = {}) {
        const path = '/api/v1/custom-pages/homepage/instance';
        return this.getRequestBody(Object.assign(Object.assign({}, options), { path, implicitToken: false, defaultExpectedStatus: 200 }));
    }
    updateInstanceHomepage(options) {
        const { content } = options;
        const path = '/api/v1/custom-pages/homepage/instance';
        return this.putBodyRequest(Object.assign(Object.assign({}, options), { path, fields: { content }, implicitToken: true, defaultExpectedStatus: 204 }));
    }
}
exports.CustomPagesCommand = CustomPagesCommand;
//# sourceMappingURL=custom-pages-command.js.map