UNPKG

@broadcom/endevor-bridge-for-git-rest-api

Version:

Endevor Bridge for Git Rest client

17 lines (16 loc) 678 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DownloadLogFile = void 0; const LogAction_1 = require("./LogAction"); const AbstractRequest_1 = require("../AbstractRequest"); class DownloadLogFile extends LogAction_1.LogAction { constructor(payload, nodeId) { super(); this.customPath = "/download"; this.method = AbstractRequest_1.RequestMethod.POST; this.payload = payload; this.params = { nodeId }; this.defaultRequestConfig = Object.assign(Object.assign({}, this.defaultRequestConfig), { responseType: 'blob', observe: 'response' }); } } exports.DownloadLogFile = DownloadLogFile;