12345678910111213141516171819202122 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.rollbackTemplate = void 0;
- const api_1 = require("../api");
- const apiv2_1 = require("../apiv2");
- const apiClient = new apiv2_1.Client({
- urlPrefix: api_1.remoteConfigApiOrigin,
- apiVersion: "v1",
- });
- const TIMEOUT = 30000;
- async function rollbackTemplate(projectId, versionNumber) {
- const params = new URLSearchParams();
- params.set("versionNumber", `${versionNumber}`);
- const res = await apiClient.request({
- method: "POST",
- path: `/projects/${projectId}/remoteConfig:rollback`,
- queryParams: params,
- timeout: TIMEOUT,
- });
- return res.body;
- }
- exports.rollbackTemplate = rollbackTemplate;
|