UNPKG

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

Version:

Endevor Bridge for Git Rest client

22 lines (21 loc) 838 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetWebhooks = void 0; const MappingAction_1 = require("../action/MappingAction"); const AbstractRequest_1 = require("../../AbstractRequest"); class GetWebhooks extends MappingAction_1.MappingAction { constructor(id, context, repository) { super(context, repository); this.customPath = "/webhook"; this.method = AbstractRequest_1.RequestMethod.GET; this.id = id; this.params = (id !== undefined) ? ((context !== undefined && repository !== undefined) ? { id, context, repository } : { id }) : ((context !== undefined && repository !== undefined) ? { context, repository } : {}); } } exports.GetWebhooks = GetWebhooks;