@gitbeaker/core 34.4.0 → 34.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +3365 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +3473 -0
- package/dist/index.js.map +1 -0
- package/dist/map.json +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/infrastructure/RequestHelper.d.ts +55 -0
- package/dist/types/infrastructure/Utils.d.ts +7 -0
- package/dist/types/infrastructure/index.d.ts +2 -0
- package/dist/types/resources/ApplicationSettings.d.ts +69 -0
- package/dist/types/resources/Branches.d.ts +20 -0
- package/dist/types/resources/BroadcastMessages.d.ts +21 -0
- package/dist/types/resources/CommitDiscussions.d.ts +17 -0
- package/dist/types/resources/Commits.d.ts +132 -0
- package/dist/types/resources/ContainerRegistry.d.ts +37 -0
- package/dist/types/resources/DeployKeys.d.ts +19 -0
- package/dist/types/resources/Deployments.d.ts +44 -0
- package/dist/types/resources/DockerfileTemplates.d.ts +5 -0
- package/dist/types/resources/Environments.d.ts +22 -0
- package/dist/types/resources/EpicDiscussions.d.ts +17 -0
- package/dist/types/resources/EpicIssues.d.ts +12 -0
- package/dist/types/resources/EpicNotes.d.ts +18 -0
- package/dist/types/resources/Epics.d.ts +47 -0
- package/dist/types/resources/Events.d.ts +29 -0
- package/dist/types/resources/FeatureFlags.d.ts +33 -0
- package/dist/types/resources/FreezePeriods.d.ts +17 -0
- package/dist/types/resources/GeoNodes.d.ts +143 -0
- package/dist/types/resources/GitLabCIYMLTemplates.d.ts +5 -0
- package/dist/types/resources/GitignoreTemplates.d.ts +5 -0
- package/dist/types/resources/Gitlab.d.ts +202 -0
- package/dist/types/resources/GroupAccessRequests.d.ts +15 -0
- package/dist/types/resources/GroupBadges.d.ts +18 -0
- package/dist/types/resources/GroupCustomAttributes.d.ts +13 -0
- package/dist/types/resources/GroupDeployTokens.d.ts +14 -0
- package/dist/types/resources/GroupIssueBoards.d.ts +23 -0
- package/dist/types/resources/GroupLabels.d.ts +15 -0
- package/dist/types/resources/GroupMembers.d.ts +14 -0
- package/dist/types/resources/GroupMilestones.d.ts +17 -0
- package/dist/types/resources/GroupRunners.d.ts +6 -0
- package/dist/types/resources/GroupVariables.d.ts +14 -0
- package/dist/types/resources/Groups.d.ts +67 -0
- package/dist/types/resources/IssueAwardEmojis.d.ts +13 -0
- package/dist/types/resources/IssueDiscussions.d.ts +17 -0
- package/dist/types/resources/IssueNoteAwardEmojis.d.ts +13 -0
- package/dist/types/resources/IssueNotes.d.ts +22 -0
- package/dist/types/resources/Issues.d.ts +109 -0
- package/dist/types/resources/IssuesStatistics.d.ts +17 -0
- package/dist/types/resources/Jobs.d.ts +84 -0
- package/dist/types/resources/Keys.d.ts +14 -0
- package/dist/types/resources/Labels.d.ts +15 -0
- package/dist/types/resources/License.d.ts +28 -0
- package/dist/types/resources/LicenseTemplates.d.ts +23 -0
- package/dist/types/resources/Lint.d.ts +10 -0
- package/dist/types/resources/Markdown.d.ts +11 -0
- package/dist/types/resources/MergeRequestApprovals.d.ts +98 -0
- package/dist/types/resources/MergeRequestAwardEmojis.d.ts +13 -0
- package/dist/types/resources/MergeRequestDiscussions.d.ts +19 -0
- package/dist/types/resources/MergeRequestNotes.d.ts +22 -0
- package/dist/types/resources/MergeRequests.d.ts +191 -0
- package/dist/types/resources/Namespaces.d.ts +22 -0
- package/dist/types/resources/NotificationSettings.d.ts +21 -0
- package/dist/types/resources/PackageRegistry.d.ts +14 -0
- package/dist/types/resources/Packages.d.ts +30 -0
- package/dist/types/resources/PagesDomains.d.ts +21 -0
- package/dist/types/resources/PipelineScheduleVariables.d.ts +10 -0
- package/dist/types/resources/PipelineSchedules.d.ts +29 -0
- package/dist/types/resources/Pipelines.d.ts +40 -0
- package/dist/types/resources/ProjectAccessRequests.d.ts +15 -0
- package/dist/types/resources/ProjectBadges.d.ts +18 -0
- package/dist/types/resources/ProjectCustomAttributes.d.ts +13 -0
- package/dist/types/resources/ProjectDeployTokens.d.ts +14 -0
- package/dist/types/resources/ProjectHooks.d.ts +29 -0
- package/dist/types/resources/ProjectImportExport.d.ts +54 -0
- package/dist/types/resources/ProjectIssueBoards.d.ts +23 -0
- package/dist/types/resources/ProjectMembers.d.ts +14 -0
- package/dist/types/resources/ProjectMilestones.d.ts +17 -0
- package/dist/types/resources/ProjectSnippetAwardEmojis.d.ts +13 -0
- package/dist/types/resources/ProjectSnippetDiscussions.d.ts +17 -0
- package/dist/types/resources/ProjectSnippetNotes.d.ts +18 -0
- package/dist/types/resources/ProjectSnippets.d.ts +29 -0
- package/dist/types/resources/ProjectVariables.d.ts +14 -0
- package/dist/types/resources/Projects.d.ts +161 -0
- package/dist/types/resources/ProtectedBranches.d.ts +24 -0
- package/dist/types/resources/ProtectedTags.d.ts +16 -0
- package/dist/types/resources/PushRules.d.ts +24 -0
- package/dist/types/resources/ReleaseLinks.d.ts +24 -0
- package/dist/types/resources/Releases.d.ts +48 -0
- package/dist/types/resources/Repositories.d.ts +37 -0
- package/dist/types/resources/RepositoryFiles.d.ts +31 -0
- package/dist/types/resources/RepositorySubmodules.d.ts +20 -0
- package/dist/types/resources/Runners.d.ts +38 -0
- package/dist/types/resources/Search.d.ts +26 -0
- package/dist/types/resources/Services.d.ts +29 -0
- package/dist/types/resources/SidekiqMetrics.d.ts +37 -0
- package/dist/types/resources/Snippets.d.ts +42 -0
- package/dist/types/resources/SystemHooks.d.ts +18 -0
- package/dist/types/resources/Tags.d.ts +18 -0
- package/dist/types/resources/Todos.d.ts +48 -0
- package/dist/types/resources/Triggers.d.ts +22 -0
- package/dist/types/resources/UserCustomAttributes.d.ts +13 -0
- package/dist/types/resources/UserEmails.d.ts +19 -0
- package/dist/types/resources/UserGPGKeys.d.ts +21 -0
- package/dist/types/resources/UserImpersonationTokens.d.ts +23 -0
- package/dist/types/resources/UserSSHKeys.d.ts +22 -0
- package/dist/types/resources/Users.d.ts +57 -0
- package/dist/types/resources/Version.d.ts +9 -0
- package/dist/types/resources/VulnerabilityFindings.d.ts +69 -0
- package/dist/types/resources/Wikis.d.ts +15 -0
- package/dist/types/resources/index.d.ts +98 -0
- package/dist/types/resources/types.d.ts +68 -0
- package/dist/types/templates/ResourceAccessRequests.d.ts +20 -0
- package/dist/types/templates/ResourceAwardEmojis.d.ts +21 -0
- package/dist/types/templates/ResourceBadges.d.ts +20 -0
- package/dist/types/templates/ResourceCustomAttributes.d.ts +13 -0
- package/dist/types/templates/ResourceDeployTokens.d.ts +20 -0
- package/dist/types/templates/ResourceDiscussions.d.ts +45 -0
- package/dist/types/templates/ResourceIssueBoards.d.ts +31 -0
- package/dist/types/templates/ResourceLabels.d.ts +25 -0
- package/dist/types/templates/ResourceMembers.d.ts +30 -0
- package/dist/types/templates/ResourceMilestones.d.ts +27 -0
- package/dist/types/templates/ResourceNoteAwardEmojis.d.ts +11 -0
- package/dist/types/templates/ResourceNotes.d.ts +20 -0
- package/dist/types/templates/ResourceTemplates.d.ts +11 -0
- package/dist/types/templates/ResourceVariables.d.ts +18 -0
- package/dist/types/templates/index.d.ts +14 -0
- package/dist/types/templates/types.d.ts +13 -0
- package/dist/types/types.d.ts +3 -0
- package/package.json +3 -3
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,3365 @@
|
|
|
1
|
+
import FormData from 'form-data';
|
|
2
|
+
import { parse } from 'li';
|
|
3
|
+
import { parseUrl } from 'query-string';
|
|
4
|
+
import { camelizeKeys } from 'xcase';
|
|
5
|
+
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
6
|
+
import { lookup } from 'mime-types';
|
|
7
|
+
|
|
8
|
+
/*! *****************************************************************************
|
|
9
|
+
Copyright (c) Microsoft Corporation.
|
|
10
|
+
|
|
11
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
12
|
+
purpose with or without fee is hereby granted.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
15
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
16
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
17
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
18
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
19
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
20
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
21
|
+
***************************************************************************** */
|
|
22
|
+
/* global Reflect, Promise */
|
|
23
|
+
|
|
24
|
+
var extendStatics = function(d, b) {
|
|
25
|
+
extendStatics = Object.setPrototypeOf ||
|
|
26
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
27
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
28
|
+
return extendStatics(d, b);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
function __extends(d, b) {
|
|
32
|
+
if (typeof b !== "function" && b !== null)
|
|
33
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
34
|
+
extendStatics(d, b);
|
|
35
|
+
function __() { this.constructor = d; }
|
|
36
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var __assign = function() {
|
|
40
|
+
__assign = Object.assign || function __assign(t) {
|
|
41
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
42
|
+
s = arguments[i];
|
|
43
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
return __assign.apply(this, arguments);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
function __rest(s, e) {
|
|
51
|
+
var t = {};
|
|
52
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
+
t[p] = s[p];
|
|
54
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
+
t[p[i]] = s[p[i]];
|
|
58
|
+
}
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
63
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
64
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
65
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
66
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
67
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
68
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
function __generator(thisArg, body) {
|
|
73
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
74
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
75
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
76
|
+
function step(op) {
|
|
77
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
78
|
+
while (_) try {
|
|
79
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
80
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
81
|
+
switch (op[0]) {
|
|
82
|
+
case 0: case 1: t = op; break;
|
|
83
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
84
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
85
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
86
|
+
default:
|
|
87
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
88
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
89
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
90
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
91
|
+
if (t[2]) _.ops.pop();
|
|
92
|
+
_.trys.pop(); continue;
|
|
93
|
+
}
|
|
94
|
+
op = body.call(thisArg, _);
|
|
95
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
96
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function __read(o, n) {
|
|
101
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
102
|
+
if (!m) return o;
|
|
103
|
+
var i = m.call(o), r, ar = [], e;
|
|
104
|
+
try {
|
|
105
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
106
|
+
}
|
|
107
|
+
catch (error) { e = { error: error }; }
|
|
108
|
+
finally {
|
|
109
|
+
try {
|
|
110
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
111
|
+
}
|
|
112
|
+
finally { if (e) throw e.error; }
|
|
113
|
+
}
|
|
114
|
+
return ar;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function __spreadArray(to, from) {
|
|
118
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
119
|
+
to[j] = from[i];
|
|
120
|
+
return to;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function appendFormFromObject(object) {
|
|
124
|
+
/* eslint @typescript-eslint/ban-ts-comment: 0 */
|
|
125
|
+
// @ts-ignore
|
|
126
|
+
var form = new FormData();
|
|
127
|
+
Object.entries(object).forEach(function (_a) {
|
|
128
|
+
var _b = __read(_a, 2), k = _b[0], v = _b[1];
|
|
129
|
+
if (Array.isArray(v))
|
|
130
|
+
form.append(k, v[0], v[1]);
|
|
131
|
+
else
|
|
132
|
+
form.append(k, v);
|
|
133
|
+
});
|
|
134
|
+
return form;
|
|
135
|
+
}
|
|
136
|
+
function getAPIMap() {
|
|
137
|
+
try {
|
|
138
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires, global-require, import/no-unresolved
|
|
139
|
+
return require('./map.json');
|
|
140
|
+
}
|
|
141
|
+
catch (e) {
|
|
142
|
+
throw new Error('This function is only available in the distributed code');
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function getHelper(service, endpoint, _a, acc) {
|
|
147
|
+
if (_a === void 0) { _a = {}; }
|
|
148
|
+
if (acc === void 0) { acc = []; }
|
|
149
|
+
var sudo = _a.sudo, showExpanded = _a.showExpanded, maxPages = _a.maxPages, query = __rest(_a, ["sudo", "showExpanded", "maxPages"]);
|
|
150
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
151
|
+
var response, headers, status, body, newAcc, next, _b, qs, withinBounds;
|
|
152
|
+
return __generator(this, function (_c) {
|
|
153
|
+
switch (_c.label) {
|
|
154
|
+
case 0: return [4 /*yield*/, service.requester.get(endpoint, { query: query, sudo: sudo })];
|
|
155
|
+
case 1:
|
|
156
|
+
response = _c.sent();
|
|
157
|
+
headers = response.headers, status = response.status;
|
|
158
|
+
body = response.body;
|
|
159
|
+
// Camelize response body if specified
|
|
160
|
+
if (service.camelize)
|
|
161
|
+
body = camelizeKeys(body);
|
|
162
|
+
// Handle object responses
|
|
163
|
+
if (!Array.isArray(body)) {
|
|
164
|
+
if (!showExpanded)
|
|
165
|
+
return [2 /*return*/, body];
|
|
166
|
+
return [2 /*return*/, {
|
|
167
|
+
data: body,
|
|
168
|
+
headers: headers,
|
|
169
|
+
status: status,
|
|
170
|
+
}];
|
|
171
|
+
}
|
|
172
|
+
newAcc = __spreadArray(__spreadArray([], __read(acc), false), __read(body));
|
|
173
|
+
next = parse(headers.link).next;
|
|
174
|
+
_b = (next ? parseUrl(next, { parseNumbers: true }) : {}).query, qs = _b === void 0 ? {} : _b;
|
|
175
|
+
withinBounds = maxPages
|
|
176
|
+
? newAcc.length / (qs.per_page || 20) < maxPages
|
|
177
|
+
: true;
|
|
178
|
+
// Recurse through pagination results
|
|
179
|
+
if (!(query.page && acc.length === 0) && next && withinBounds) {
|
|
180
|
+
return [2 /*return*/, getHelper(service, endpoint, __assign(__assign({}, qs), { maxPages: maxPages, sudo: sudo }), newAcc)];
|
|
181
|
+
}
|
|
182
|
+
if (!showExpanded || query.pagination === 'keyset')
|
|
183
|
+
return [2 /*return*/, newAcc];
|
|
184
|
+
return [2 /*return*/, {
|
|
185
|
+
data: newAcc,
|
|
186
|
+
paginationInfo: {
|
|
187
|
+
total: parseInt(headers['x-total'], 10),
|
|
188
|
+
next: parseInt(headers['x-next-page'], 10) || null,
|
|
189
|
+
current: parseInt(headers['x-page'], 10) || 1,
|
|
190
|
+
previous: parseInt(headers['x-prev-page'], 10) || null,
|
|
191
|
+
perPage: parseInt(headers['x-per-page'], 10),
|
|
192
|
+
totalPages: parseInt(headers['x-total-pages'], 10),
|
|
193
|
+
},
|
|
194
|
+
}];
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function get() {
|
|
200
|
+
return function (service, endpoint, options) { return getHelper(service, endpoint, options); };
|
|
201
|
+
}
|
|
202
|
+
function post() {
|
|
203
|
+
var _this = this;
|
|
204
|
+
return function (service, endpoint, _a) {
|
|
205
|
+
if (_a === void 0) { _a = {}; }
|
|
206
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
207
|
+
var body, r;
|
|
208
|
+
var query = _a.query, isForm = _a.isForm, sudo = _a.sudo, showExpanded = _a.showExpanded, options = __rest(_a, ["query", "isForm", "sudo", "showExpanded"]);
|
|
209
|
+
return __generator(this, function (_b) {
|
|
210
|
+
switch (_b.label) {
|
|
211
|
+
case 0:
|
|
212
|
+
body = isForm ? appendFormFromObject(options) : options;
|
|
213
|
+
return [4 /*yield*/, service.requester.post(endpoint, {
|
|
214
|
+
query: query,
|
|
215
|
+
body: body,
|
|
216
|
+
sudo: sudo,
|
|
217
|
+
})];
|
|
218
|
+
case 1:
|
|
219
|
+
r = _b.sent();
|
|
220
|
+
return [2 /*return*/, showExpanded
|
|
221
|
+
? {
|
|
222
|
+
data: r.body,
|
|
223
|
+
status: r.status,
|
|
224
|
+
headers: r.headers,
|
|
225
|
+
}
|
|
226
|
+
: r.body];
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
function put() {
|
|
233
|
+
var _this = this;
|
|
234
|
+
return function (service, endpoint, _a) {
|
|
235
|
+
if (_a === void 0) { _a = {}; }
|
|
236
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
237
|
+
var body, r;
|
|
238
|
+
var query = _a.query, isForm = _a.isForm, sudo = _a.sudo, showExpanded = _a.showExpanded, options = __rest(_a, ["query", "isForm", "sudo", "showExpanded"]);
|
|
239
|
+
return __generator(this, function (_b) {
|
|
240
|
+
switch (_b.label) {
|
|
241
|
+
case 0:
|
|
242
|
+
body = isForm ? appendFormFromObject(options) : options;
|
|
243
|
+
return [4 /*yield*/, service.requester.put(endpoint, {
|
|
244
|
+
body: body,
|
|
245
|
+
query: query,
|
|
246
|
+
sudo: sudo,
|
|
247
|
+
})];
|
|
248
|
+
case 1:
|
|
249
|
+
r = _b.sent();
|
|
250
|
+
return [2 /*return*/, showExpanded
|
|
251
|
+
? {
|
|
252
|
+
data: r.body,
|
|
253
|
+
status: r.status,
|
|
254
|
+
headers: r.headers,
|
|
255
|
+
}
|
|
256
|
+
: r.body];
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
function del() {
|
|
263
|
+
var _this = this;
|
|
264
|
+
return function (service, endpoint, _a) {
|
|
265
|
+
if (_a === void 0) { _a = {}; }
|
|
266
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
267
|
+
var r;
|
|
268
|
+
var sudo = _a.sudo, showExpanded = _a.showExpanded, query = __rest(_a, ["sudo", "showExpanded"]);
|
|
269
|
+
return __generator(this, function (_b) {
|
|
270
|
+
switch (_b.label) {
|
|
271
|
+
case 0: return [4 /*yield*/, service.requester.delete(endpoint, {
|
|
272
|
+
query: query,
|
|
273
|
+
sudo: sudo,
|
|
274
|
+
})];
|
|
275
|
+
case 1:
|
|
276
|
+
r = _b.sent();
|
|
277
|
+
return [2 /*return*/, showExpanded
|
|
278
|
+
? {
|
|
279
|
+
data: r.body,
|
|
280
|
+
status: r.status,
|
|
281
|
+
headers: r.headers,
|
|
282
|
+
}
|
|
283
|
+
: r.body];
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
function stream(service, endpoint, options) {
|
|
290
|
+
if (typeof service.requester.stream !== 'function') {
|
|
291
|
+
throw new Error('Stream method is not implementated in requester!');
|
|
292
|
+
}
|
|
293
|
+
return service.requester.stream(endpoint, {
|
|
294
|
+
query: options,
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
var RequestHelper = {
|
|
298
|
+
post: post,
|
|
299
|
+
put: put,
|
|
300
|
+
get: get,
|
|
301
|
+
del: del,
|
|
302
|
+
stream: stream,
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
var Groups = /** @class */ (function (_super) {
|
|
306
|
+
__extends(Groups, _super);
|
|
307
|
+
function Groups() {
|
|
308
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
309
|
+
}
|
|
310
|
+
Groups.prototype.all = function (options) {
|
|
311
|
+
return RequestHelper.get()(this, 'groups', options);
|
|
312
|
+
};
|
|
313
|
+
Groups.prototype.create = function (name, path, options) {
|
|
314
|
+
return RequestHelper.post()(this, 'groups', __assign({ name: name, path: path }, options));
|
|
315
|
+
};
|
|
316
|
+
Groups.prototype.createLDAPLink = function (groupId, cn, groupAccess, provider, options) {
|
|
317
|
+
var gId = encodeURIComponent(groupId);
|
|
318
|
+
return RequestHelper.post()(this, "groups/" + gId + "/ldap_group_links", __assign({ cn: cn, groupAccess: groupAccess, provider: provider }, options));
|
|
319
|
+
};
|
|
320
|
+
Groups.prototype.edit = function (groupId, options) {
|
|
321
|
+
var gId = encodeURIComponent(groupId);
|
|
322
|
+
return RequestHelper.put()(this, "groups/" + gId, options);
|
|
323
|
+
};
|
|
324
|
+
Groups.prototype.projects = function (groupId, options) {
|
|
325
|
+
var gId = encodeURIComponent(groupId);
|
|
326
|
+
return RequestHelper.get()(this, "groups/" + gId + "/projects", options);
|
|
327
|
+
};
|
|
328
|
+
Groups.prototype.remove = function (groupId, options) {
|
|
329
|
+
var gId = encodeURIComponent(groupId);
|
|
330
|
+
return RequestHelper.del()(this, "groups/" + gId, options);
|
|
331
|
+
};
|
|
332
|
+
Groups.prototype.removeLDAPLink = function (groupId, cn, _a) {
|
|
333
|
+
if (_a === void 0) { _a = {}; }
|
|
334
|
+
var provider = _a.provider, options = __rest(_a, ["provider"]);
|
|
335
|
+
var gId = encodeURIComponent(groupId);
|
|
336
|
+
var url = provider ? provider + "/" + cn : "" + cn;
|
|
337
|
+
return RequestHelper.del()(this, "groups/" + gId + "/ldap_group_links/" + url, options);
|
|
338
|
+
};
|
|
339
|
+
Groups.prototype.search = function (nameOrPath, options) {
|
|
340
|
+
return RequestHelper.get()(this, 'groups', __assign({ search: nameOrPath }, options));
|
|
341
|
+
};
|
|
342
|
+
Groups.prototype.show = function (groupId, options) {
|
|
343
|
+
var gId = encodeURIComponent(groupId);
|
|
344
|
+
return RequestHelper.get()(this, "groups/" + gId, options);
|
|
345
|
+
};
|
|
346
|
+
Groups.prototype.subgroups = function (groupId, options) {
|
|
347
|
+
var gId = encodeURIComponent(groupId);
|
|
348
|
+
return RequestHelper.get()(this, "groups/" + gId + "/subgroups", options);
|
|
349
|
+
};
|
|
350
|
+
Groups.prototype.syncLDAP = function (groupId, options) {
|
|
351
|
+
var gId = encodeURIComponent(groupId);
|
|
352
|
+
return RequestHelper.post()(this, "groups/" + gId + "/ldap_sync", options);
|
|
353
|
+
};
|
|
354
|
+
Groups.prototype.transferProject = function (groupId, projectId, options) {
|
|
355
|
+
var _a = __read([groupId, projectId].map(encodeURIComponent), 2), gId = _a[0], pId = _a[1];
|
|
356
|
+
return RequestHelper.post()(this, "groups/" + gId + "/projects/" + pId, options);
|
|
357
|
+
};
|
|
358
|
+
return Groups;
|
|
359
|
+
}(BaseResource));
|
|
360
|
+
|
|
361
|
+
var ResourceAccessRequests = /** @class */ (function (_super) {
|
|
362
|
+
__extends(ResourceAccessRequests, _super);
|
|
363
|
+
function ResourceAccessRequests(resourceType, options) {
|
|
364
|
+
return _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
365
|
+
}
|
|
366
|
+
ResourceAccessRequests.prototype.all = function (resourceId) {
|
|
367
|
+
var rId = encodeURIComponent(resourceId);
|
|
368
|
+
return RequestHelper.get()(this, rId + "/access_requests");
|
|
369
|
+
};
|
|
370
|
+
ResourceAccessRequests.prototype.request = function (resourceId) {
|
|
371
|
+
var rId = encodeURIComponent(resourceId);
|
|
372
|
+
return RequestHelper.post()(this, rId + "/access_requests");
|
|
373
|
+
};
|
|
374
|
+
ResourceAccessRequests.prototype.approve = function (resourceId, userId, options) {
|
|
375
|
+
var _a = __read([resourceId, userId].map(encodeURIComponent), 2), rId = _a[0], uId = _a[1];
|
|
376
|
+
return RequestHelper.post()(this, rId + "/access_requests/" + uId + "/approve", options);
|
|
377
|
+
};
|
|
378
|
+
ResourceAccessRequests.prototype.deny = function (resourceId, userId) {
|
|
379
|
+
var _a = __read([resourceId, userId].map(encodeURIComponent), 2), rId = _a[0], uId = _a[1];
|
|
380
|
+
return RequestHelper.del()(this, rId + "/access_requests/" + uId);
|
|
381
|
+
};
|
|
382
|
+
return ResourceAccessRequests;
|
|
383
|
+
}(BaseResource));
|
|
384
|
+
|
|
385
|
+
function url$4(projectId, resourceType, resourceId, awardId, noteId) {
|
|
386
|
+
var _a = __read([projectId, resourceId].map(encodeURIComponent), 2), pId = _a[0], rId = _a[1];
|
|
387
|
+
var output = [pId, resourceType, rId];
|
|
388
|
+
if (noteId)
|
|
389
|
+
output.push('notes', encodeURIComponent(noteId));
|
|
390
|
+
output.push('award_emoji');
|
|
391
|
+
if (awardId)
|
|
392
|
+
output.push(encodeURIComponent(awardId));
|
|
393
|
+
return output.join('/');
|
|
394
|
+
}
|
|
395
|
+
var ResourceAwardEmojis = /** @class */ (function (_super) {
|
|
396
|
+
__extends(ResourceAwardEmojis, _super);
|
|
397
|
+
function ResourceAwardEmojis(resourceType, options) {
|
|
398
|
+
var _this = _super.call(this, __assign({ prefixUrl: 'projects' }, options)) || this;
|
|
399
|
+
_this.resourceType = resourceType;
|
|
400
|
+
return _this;
|
|
401
|
+
}
|
|
402
|
+
ResourceAwardEmojis.prototype.all = function (projectId, resourceIId, options) {
|
|
403
|
+
return RequestHelper.get()(this, url$4(projectId, this.resourceType, resourceIId), options);
|
|
404
|
+
};
|
|
405
|
+
ResourceAwardEmojis.prototype.award = function (projectId, resourceIId, name, options) {
|
|
406
|
+
return RequestHelper.post()(this, url$4(projectId, this.resourceType, resourceIId), __assign({ name: name }, options));
|
|
407
|
+
};
|
|
408
|
+
ResourceAwardEmojis.prototype.remove = function (projectId, resourceIId, awardId, options) {
|
|
409
|
+
return RequestHelper.del()(this, url$4(projectId, this.resourceType, resourceIId, awardId), options);
|
|
410
|
+
};
|
|
411
|
+
ResourceAwardEmojis.prototype.show = function (projectId, resourceIId, awardId, options) {
|
|
412
|
+
return RequestHelper.get()(this, url$4(projectId, this.resourceType, resourceIId, awardId), options);
|
|
413
|
+
};
|
|
414
|
+
return ResourceAwardEmojis;
|
|
415
|
+
}(BaseResource));
|
|
416
|
+
|
|
417
|
+
var ResourceNoteAwardEmojis = /** @class */ (function (_super) {
|
|
418
|
+
__extends(ResourceNoteAwardEmojis, _super);
|
|
419
|
+
function ResourceNoteAwardEmojis(resourceType, options) {
|
|
420
|
+
var _this = _super.call(this, __assign({ prefixUrl: 'projects' }, options)) || this;
|
|
421
|
+
_this.resourceType = resourceType;
|
|
422
|
+
return _this;
|
|
423
|
+
}
|
|
424
|
+
ResourceNoteAwardEmojis.prototype.all = function (projectId, resourceIId, noteId, options) {
|
|
425
|
+
return RequestHelper.get()(this, url$4(projectId, this.resourceType, resourceIId, null, noteId), options);
|
|
426
|
+
};
|
|
427
|
+
ResourceNoteAwardEmojis.prototype.award = function (projectId, resourceIId, noteId, name, options) {
|
|
428
|
+
return RequestHelper.post()(this, url$4(projectId, this.resourceType, resourceIId, null, noteId), __assign({ name: name }, options));
|
|
429
|
+
};
|
|
430
|
+
ResourceNoteAwardEmojis.prototype.remove = function (projectId, resourceIId, noteId, awardId, options) {
|
|
431
|
+
return RequestHelper.del()(this, url$4(projectId, this.resourceType, resourceIId, awardId, noteId), options);
|
|
432
|
+
};
|
|
433
|
+
ResourceNoteAwardEmojis.prototype.show = function (projectId, resourceIId, noteId, awardId, options) {
|
|
434
|
+
return RequestHelper.get()(this, url$4(projectId, this.resourceType, resourceIId, awardId, noteId), options);
|
|
435
|
+
};
|
|
436
|
+
return ResourceNoteAwardEmojis;
|
|
437
|
+
}(BaseResource));
|
|
438
|
+
|
|
439
|
+
var ResourceBadges = /** @class */ (function (_super) {
|
|
440
|
+
__extends(ResourceBadges, _super);
|
|
441
|
+
function ResourceBadges(resourceType, options) {
|
|
442
|
+
return _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
443
|
+
}
|
|
444
|
+
ResourceBadges.prototype.add = function (resourceId, options) {
|
|
445
|
+
var rId = encodeURIComponent(resourceId);
|
|
446
|
+
return RequestHelper.post()(this, rId + "/badges", options);
|
|
447
|
+
};
|
|
448
|
+
ResourceBadges.prototype.all = function (resourceId, options) {
|
|
449
|
+
var rId = encodeURIComponent(resourceId);
|
|
450
|
+
return RequestHelper.get()(this, rId + "/badges", options);
|
|
451
|
+
};
|
|
452
|
+
ResourceBadges.prototype.edit = function (resourceId, badgeId, options) {
|
|
453
|
+
var _a = __read([resourceId, badgeId].map(encodeURIComponent), 2), rId = _a[0], bId = _a[1];
|
|
454
|
+
return RequestHelper.put()(this, rId + "/badges/" + bId, options);
|
|
455
|
+
};
|
|
456
|
+
ResourceBadges.prototype.preview = function (resourceId, linkUrl, imageUrl, options) {
|
|
457
|
+
var rId = encodeURIComponent(resourceId);
|
|
458
|
+
return RequestHelper.get()(this, rId + "/badges/render", __assign({ linkUrl: linkUrl, imageUrl: imageUrl }, options));
|
|
459
|
+
};
|
|
460
|
+
ResourceBadges.prototype.remove = function (resourceId, badgeId, options) {
|
|
461
|
+
var _a = __read([resourceId, badgeId].map(encodeURIComponent), 2), rId = _a[0], bId = _a[1];
|
|
462
|
+
return RequestHelper.del()(this, rId + "/badges/" + bId, options);
|
|
463
|
+
};
|
|
464
|
+
ResourceBadges.prototype.show = function (resourceId, badgeId, options) {
|
|
465
|
+
var _a = __read([resourceId, badgeId].map(encodeURIComponent), 2), rId = _a[0], bId = _a[1];
|
|
466
|
+
return RequestHelper.get()(this, rId + "/badges/" + bId, options);
|
|
467
|
+
};
|
|
468
|
+
return ResourceBadges;
|
|
469
|
+
}(BaseResource));
|
|
470
|
+
|
|
471
|
+
var ResourceCustomAttributes = /** @class */ (function (_super) {
|
|
472
|
+
__extends(ResourceCustomAttributes, _super);
|
|
473
|
+
function ResourceCustomAttributes(resourceType, options) {
|
|
474
|
+
return _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
475
|
+
}
|
|
476
|
+
ResourceCustomAttributes.prototype.all = function (resourceId, options) {
|
|
477
|
+
var rId = encodeURIComponent(resourceId);
|
|
478
|
+
return RequestHelper.get()(this, rId + "/custom_attributes", options);
|
|
479
|
+
};
|
|
480
|
+
ResourceCustomAttributes.prototype.set = function (resourceId, customAttributeId, value, options) {
|
|
481
|
+
var _a = __read([resourceId, customAttributeId].map(encodeURIComponent), 2), rId = _a[0], cId = _a[1];
|
|
482
|
+
return RequestHelper.put()(this, rId + "/custom_attributes/" + cId, __assign({ value: value }, options));
|
|
483
|
+
};
|
|
484
|
+
ResourceCustomAttributes.prototype.remove = function (resourceId, customAttributeId, options) {
|
|
485
|
+
var _a = __read([resourceId, customAttributeId].map(encodeURIComponent), 2), rId = _a[0], cId = _a[1];
|
|
486
|
+
return RequestHelper.del()(this, rId + "/custom_attributes/" + cId, options);
|
|
487
|
+
};
|
|
488
|
+
ResourceCustomAttributes.prototype.show = function (resourceId, customAttributeId, options) {
|
|
489
|
+
var _a = __read([resourceId, customAttributeId].map(encodeURIComponent), 2), rId = _a[0], cId = _a[1];
|
|
490
|
+
return RequestHelper.get()(this, rId + "/custom_attributes/" + cId, options);
|
|
491
|
+
};
|
|
492
|
+
return ResourceCustomAttributes;
|
|
493
|
+
}(BaseResource));
|
|
494
|
+
|
|
495
|
+
// https://docs.gitlab.com/ee/api/deploy_tokens.html
|
|
496
|
+
var ResourceDeployTokens = /** @class */ (function (_super) {
|
|
497
|
+
__extends(ResourceDeployTokens, _super);
|
|
498
|
+
function ResourceDeployTokens(resourceType, options) {
|
|
499
|
+
return _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
500
|
+
}
|
|
501
|
+
ResourceDeployTokens.prototype.add = function (resourceId, tokenName, tokenScopes, options) {
|
|
502
|
+
return RequestHelper.post()(this, encodeURIComponent(resourceId) + "/deploy_tokens", __assign({ name: tokenName, scopes: tokenScopes }, options));
|
|
503
|
+
};
|
|
504
|
+
ResourceDeployTokens.prototype.all = function (_a) {
|
|
505
|
+
if (_a === void 0) { _a = {}; }
|
|
506
|
+
var resourceId = _a.resourceId, projectId = _a.projectId, groupId = _a.groupId, options = __rest(_a, ["resourceId", "projectId", "groupId"]);
|
|
507
|
+
var prefix = resourceId || projectId || groupId
|
|
508
|
+
? encodeURIComponent((resourceId || projectId || groupId)) + "/"
|
|
509
|
+
: '';
|
|
510
|
+
return RequestHelper.get()(this, prefix + "deploy_tokens", options);
|
|
511
|
+
};
|
|
512
|
+
ResourceDeployTokens.prototype.remove = function (resourceId, tokenId, options) {
|
|
513
|
+
var _a = __read([resourceId, tokenId].map(encodeURIComponent), 2), rId = _a[0], tId = _a[1];
|
|
514
|
+
return RequestHelper.del()(this, rId + "/deploy_tokens/" + tId, options);
|
|
515
|
+
};
|
|
516
|
+
return ResourceDeployTokens;
|
|
517
|
+
}(BaseResource));
|
|
518
|
+
|
|
519
|
+
var ResourceDiscussions = /** @class */ (function (_super) {
|
|
520
|
+
__extends(ResourceDiscussions, _super);
|
|
521
|
+
function ResourceDiscussions(resourceType, resource2Type, options) {
|
|
522
|
+
var _this = _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
523
|
+
_this.resource2Type = resource2Type;
|
|
524
|
+
return _this;
|
|
525
|
+
}
|
|
526
|
+
ResourceDiscussions.prototype.addNote = function (resourceId, resource2Id, discussionId, noteId, body, options) {
|
|
527
|
+
var _a = __read([resourceId, resource2Id, discussionId, noteId].map(encodeURIComponent), 4), rId = _a[0], r2Id = _a[1], dId = _a[2], nId = _a[3];
|
|
528
|
+
return RequestHelper.post()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/discussions/" + dId + "/notes", __assign({ query: { body: body }, noteId: nId }, options));
|
|
529
|
+
};
|
|
530
|
+
ResourceDiscussions.prototype.all = function (resourceId, resource2Id, options) {
|
|
531
|
+
var _a = __read([resourceId, resource2Id].map(encodeURIComponent), 2), rId = _a[0], r2Id = _a[1];
|
|
532
|
+
return RequestHelper.get()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/discussions", options);
|
|
533
|
+
};
|
|
534
|
+
ResourceDiscussions.prototype.create = function (resourceId, resource2Id, body, options) {
|
|
535
|
+
var _a = __read([resourceId, resource2Id].map(encodeURIComponent), 2), rId = _a[0], r2Id = _a[1];
|
|
536
|
+
return RequestHelper.post()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/discussions", __assign({ query: { body: body } }, options));
|
|
537
|
+
};
|
|
538
|
+
ResourceDiscussions.prototype.editNote = function (resourceId, resource2Id, discussionId, noteId, _a) {
|
|
539
|
+
if (_a === void 0) { _a = {}; }
|
|
540
|
+
var body = _a.body, options = __rest(_a, ["body"]);
|
|
541
|
+
var _b = __read([resourceId, resource2Id, discussionId, noteId].map(encodeURIComponent), 4), rId = _b[0], r2Id = _b[1], dId = _b[2], nId = _b[3];
|
|
542
|
+
return RequestHelper.put()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/discussions/" + dId + "/notes/" + nId, __assign({ query: { body: body } }, options));
|
|
543
|
+
};
|
|
544
|
+
ResourceDiscussions.prototype.removeNote = function (resourceId, resource2Id, discussionId, noteId, options) {
|
|
545
|
+
var _a = __read([resourceId, resource2Id, discussionId, noteId].map(encodeURIComponent), 4), rId = _a[0], r2Id = _a[1], dId = _a[2], nId = _a[3];
|
|
546
|
+
return RequestHelper.del()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/discussions/" + dId + "/notes/" + nId, options);
|
|
547
|
+
};
|
|
548
|
+
ResourceDiscussions.prototype.show = function (resourceId, resource2Id, discussionId, options) {
|
|
549
|
+
var _a = __read([resourceId, resource2Id, discussionId].map(encodeURIComponent), 3), rId = _a[0], r2Id = _a[1], dId = _a[2];
|
|
550
|
+
return RequestHelper.get()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/discussions/" + dId, options);
|
|
551
|
+
};
|
|
552
|
+
return ResourceDiscussions;
|
|
553
|
+
}(BaseResource));
|
|
554
|
+
|
|
555
|
+
var ResourceIssueBoards = /** @class */ (function (_super) {
|
|
556
|
+
__extends(ResourceIssueBoards, _super);
|
|
557
|
+
function ResourceIssueBoards(resourceType, options) {
|
|
558
|
+
return _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
559
|
+
}
|
|
560
|
+
ResourceIssueBoards.prototype.all = function (resourceId, options) {
|
|
561
|
+
var rId = encodeURIComponent(resourceId);
|
|
562
|
+
return RequestHelper.get()(this, rId + "/boards", options);
|
|
563
|
+
};
|
|
564
|
+
ResourceIssueBoards.prototype.create = function (resourceId, name, options) {
|
|
565
|
+
var rId = encodeURIComponent(resourceId);
|
|
566
|
+
return RequestHelper.post()(this, rId + "/boards", __assign({ name: name }, options));
|
|
567
|
+
};
|
|
568
|
+
ResourceIssueBoards.prototype.createList = function (resourceId, boardId, labelId, options) {
|
|
569
|
+
var _a = __read([resourceId, boardId].map(encodeURIComponent), 2), rId = _a[0], bId = _a[1];
|
|
570
|
+
return RequestHelper.post()(this, rId + "/boards/" + bId + "/lists", __assign({ labelId: labelId }, options));
|
|
571
|
+
};
|
|
572
|
+
ResourceIssueBoards.prototype.edit = function (resourceId, boardId, options) {
|
|
573
|
+
var _a = __read([resourceId, boardId].map(encodeURIComponent), 2), rId = _a[0], bId = _a[1];
|
|
574
|
+
return RequestHelper.put()(this, rId + "/boards/" + bId, options);
|
|
575
|
+
};
|
|
576
|
+
ResourceIssueBoards.prototype.editList = function (resourceId, boardId, listId, position, options) {
|
|
577
|
+
var _a = __read([resourceId, boardId, listId].map(encodeURIComponent), 3), rId = _a[0], bId = _a[1], lId = _a[2];
|
|
578
|
+
return RequestHelper.put()(this, rId + "/boards/" + bId + "/lists/" + lId, __assign({ position: position }, options));
|
|
579
|
+
};
|
|
580
|
+
ResourceIssueBoards.prototype.lists = function (resourceId, boardId, options) {
|
|
581
|
+
var _a = __read([resourceId, boardId].map(encodeURIComponent), 2), rId = _a[0], bId = _a[1];
|
|
582
|
+
return RequestHelper.get()(this, rId + "/boards/" + bId + "/lists", options);
|
|
583
|
+
};
|
|
584
|
+
ResourceIssueBoards.prototype.remove = function (resourceId, boardId, options) {
|
|
585
|
+
var _a = __read([resourceId, boardId].map(encodeURIComponent), 2), rId = _a[0], bId = _a[1];
|
|
586
|
+
return RequestHelper.del()(this, rId + "/boards/" + bId, options);
|
|
587
|
+
};
|
|
588
|
+
ResourceIssueBoards.prototype.removeList = function (resourceId, boardId, listId, options) {
|
|
589
|
+
var _a = __read([resourceId, boardId, listId].map(encodeURIComponent), 3), rId = _a[0], bId = _a[1], lId = _a[2];
|
|
590
|
+
return RequestHelper.del()(this, rId + "/boards/" + bId + "/lists/" + lId, options);
|
|
591
|
+
};
|
|
592
|
+
ResourceIssueBoards.prototype.show = function (resourceId, boardId, options) {
|
|
593
|
+
var _a = __read([resourceId, boardId].map(encodeURIComponent), 2), rId = _a[0], bId = _a[1];
|
|
594
|
+
return RequestHelper.get()(this, rId + "/boards/" + bId, options);
|
|
595
|
+
};
|
|
596
|
+
ResourceIssueBoards.prototype.showList = function (resourceId, boardId, listId, options) {
|
|
597
|
+
var _a = __read([resourceId, boardId, listId].map(encodeURIComponent), 3), rId = _a[0], bId = _a[1], lId = _a[2];
|
|
598
|
+
return RequestHelper.get()(this, rId + "/boards/" + bId + "/lists/" + lId, options);
|
|
599
|
+
};
|
|
600
|
+
return ResourceIssueBoards;
|
|
601
|
+
}(BaseResource));
|
|
602
|
+
|
|
603
|
+
var ResourceLabels = /** @class */ (function (_super) {
|
|
604
|
+
__extends(ResourceLabels, _super);
|
|
605
|
+
function ResourceLabels(resourceType, options) {
|
|
606
|
+
return _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
607
|
+
}
|
|
608
|
+
ResourceLabels.prototype.all = function (resourceId, options) {
|
|
609
|
+
var rId = encodeURIComponent(resourceId);
|
|
610
|
+
return RequestHelper.get()(this, rId + "/labels", options);
|
|
611
|
+
};
|
|
612
|
+
ResourceLabels.prototype.create = function (resourceId, labelName, color, options) {
|
|
613
|
+
var rId = encodeURIComponent(resourceId);
|
|
614
|
+
return RequestHelper.post()(this, rId + "/labels", __assign({ name: labelName, color: color }, options));
|
|
615
|
+
};
|
|
616
|
+
ResourceLabels.prototype.edit = function (resourceId, labelId, options) {
|
|
617
|
+
var _a = __read([resourceId, labelId].map(encodeURIComponent), 2), rId = _a[0], lId = _a[1];
|
|
618
|
+
return RequestHelper.put()(this, rId + "/labels/" + lId, options);
|
|
619
|
+
};
|
|
620
|
+
ResourceLabels.prototype.remove = function (resourceId, labelId, options) {
|
|
621
|
+
var _a = __read([resourceId, labelId].map(encodeURIComponent), 2), rId = _a[0], lId = _a[1];
|
|
622
|
+
return RequestHelper.del()(this, rId + "/labels/" + lId, options);
|
|
623
|
+
};
|
|
624
|
+
ResourceLabels.prototype.subscribe = function (resourceId, labelId, options) {
|
|
625
|
+
var _a = __read([resourceId, labelId].map(encodeURIComponent), 2), rId = _a[0], lId = _a[1];
|
|
626
|
+
return RequestHelper.post()(this, rId + "/issues/" + lId + "/subscribe", options);
|
|
627
|
+
};
|
|
628
|
+
ResourceLabels.prototype.unsubscribe = function (resourceId, labelId, options) {
|
|
629
|
+
var _a = __read([resourceId, labelId].map(encodeURIComponent), 2), rId = _a[0], lId = _a[1];
|
|
630
|
+
return RequestHelper.post()(this, rId + "/issues/" + lId + "/unsubscribe", options);
|
|
631
|
+
};
|
|
632
|
+
return ResourceLabels;
|
|
633
|
+
}(BaseResource));
|
|
634
|
+
|
|
635
|
+
var ResourceMembers = /** @class */ (function (_super) {
|
|
636
|
+
__extends(ResourceMembers, _super);
|
|
637
|
+
function ResourceMembers(resourceType, options) {
|
|
638
|
+
return _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
639
|
+
}
|
|
640
|
+
ResourceMembers.prototype.add = function (resourceId, userId, accessLevel, options) {
|
|
641
|
+
var _a = __read([resourceId, userId].map(encodeURIComponent), 2), rId = _a[0], uId = _a[1];
|
|
642
|
+
return RequestHelper.post()(this, rId + "/members", __assign({ userId: uId, accessLevel: accessLevel }, options));
|
|
643
|
+
};
|
|
644
|
+
ResourceMembers.prototype.all = function (resourceId, _a) {
|
|
645
|
+
if (_a === void 0) { _a = {}; }
|
|
646
|
+
var includeInherited = _a.includeInherited, options = __rest(_a, ["includeInherited"]);
|
|
647
|
+
var rId = encodeURIComponent(resourceId);
|
|
648
|
+
var url = [rId, 'members'];
|
|
649
|
+
if (includeInherited)
|
|
650
|
+
url.push('all');
|
|
651
|
+
return RequestHelper.get()(this, url.join('/'), options);
|
|
652
|
+
};
|
|
653
|
+
ResourceMembers.prototype.edit = function (resourceId, userId, accessLevel, options) {
|
|
654
|
+
var _a = __read([resourceId, userId].map(encodeURIComponent), 2), rId = _a[0], uId = _a[1];
|
|
655
|
+
return RequestHelper.put()(this, rId + "/members/" + uId, __assign({ accessLevel: accessLevel }, options));
|
|
656
|
+
};
|
|
657
|
+
ResourceMembers.prototype.show = function (resourceId, userId, _a) {
|
|
658
|
+
if (_a === void 0) { _a = {}; }
|
|
659
|
+
var includeInherited = _a.includeInherited, options = __rest(_a, ["includeInherited"]);
|
|
660
|
+
var _b = __read([resourceId, userId].map(encodeURIComponent), 2), rId = _b[0], uId = _b[1];
|
|
661
|
+
var url = [rId, 'members'];
|
|
662
|
+
if (includeInherited)
|
|
663
|
+
url.push('all');
|
|
664
|
+
url.push(uId);
|
|
665
|
+
return RequestHelper.get()(this, url.join('/'), options);
|
|
666
|
+
};
|
|
667
|
+
ResourceMembers.prototype.remove = function (resourceId, userId, options) {
|
|
668
|
+
var _a = __read([resourceId, userId].map(encodeURIComponent), 2), rId = _a[0], uId = _a[1];
|
|
669
|
+
return RequestHelper.del()(this, rId + "/members/" + uId, options);
|
|
670
|
+
};
|
|
671
|
+
return ResourceMembers;
|
|
672
|
+
}(BaseResource));
|
|
673
|
+
|
|
674
|
+
var ResourceMilestones = /** @class */ (function (_super) {
|
|
675
|
+
__extends(ResourceMilestones, _super);
|
|
676
|
+
function ResourceMilestones(resourceType, options) {
|
|
677
|
+
return _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
678
|
+
}
|
|
679
|
+
ResourceMilestones.prototype.all = function (resourceId, options) {
|
|
680
|
+
var rId = encodeURIComponent(resourceId);
|
|
681
|
+
return RequestHelper.get()(this, rId + "/milestones", options);
|
|
682
|
+
};
|
|
683
|
+
ResourceMilestones.prototype.create = function (resourceId, title, options) {
|
|
684
|
+
var rId = encodeURIComponent(resourceId);
|
|
685
|
+
return RequestHelper.post()(this, rId + "/milestones", __assign({ title: title }, options));
|
|
686
|
+
};
|
|
687
|
+
ResourceMilestones.prototype.edit = function (resourceId, milestoneId, options) {
|
|
688
|
+
var _a = __read([resourceId, milestoneId].map(encodeURIComponent), 2), rId = _a[0], mId = _a[1];
|
|
689
|
+
return RequestHelper.put()(this, rId + "/milestones/" + mId, options);
|
|
690
|
+
};
|
|
691
|
+
ResourceMilestones.prototype.issues = function (resourceId, milestoneId, options) {
|
|
692
|
+
var _a = __read([resourceId, milestoneId].map(encodeURIComponent), 2), rId = _a[0], mId = _a[1];
|
|
693
|
+
return RequestHelper.get()(this, rId + "/milestones/" + mId + "/issues", options);
|
|
694
|
+
};
|
|
695
|
+
ResourceMilestones.prototype.mergeRequests = function (resourceId, milestoneId, options) {
|
|
696
|
+
var _a = __read([resourceId, milestoneId].map(encodeURIComponent), 2), rId = _a[0], mId = _a[1];
|
|
697
|
+
return RequestHelper.get()(this, rId + "/milestones/" + mId + "/merge_requests", options);
|
|
698
|
+
};
|
|
699
|
+
ResourceMilestones.prototype.show = function (resourceId, milestoneId, options) {
|
|
700
|
+
var _a = __read([resourceId, milestoneId].map(encodeURIComponent), 2), rId = _a[0], mId = _a[1];
|
|
701
|
+
return RequestHelper.get()(this, rId + "/milestones/" + mId, options);
|
|
702
|
+
};
|
|
703
|
+
return ResourceMilestones;
|
|
704
|
+
}(BaseResource));
|
|
705
|
+
|
|
706
|
+
var ResourceNotes = /** @class */ (function (_super) {
|
|
707
|
+
__extends(ResourceNotes, _super);
|
|
708
|
+
function ResourceNotes(resourceType, resource2Type, options) {
|
|
709
|
+
var _this = _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
710
|
+
_this.resource2Type = resource2Type;
|
|
711
|
+
return _this;
|
|
712
|
+
}
|
|
713
|
+
ResourceNotes.prototype.all = function (resourceId, resource2Id, options) {
|
|
714
|
+
var _a = __read([resourceId, resource2Id].map(encodeURIComponent), 2), rId = _a[0], r2Id = _a[1];
|
|
715
|
+
return RequestHelper.get()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/notes", options);
|
|
716
|
+
};
|
|
717
|
+
ResourceNotes.prototype.create = function (resourceId, resource2Id, body, options) {
|
|
718
|
+
var _a = __read([resourceId, resource2Id].map(encodeURIComponent), 2), rId = _a[0], r2Id = _a[1];
|
|
719
|
+
return RequestHelper.post()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/notes", __assign({ body: body }, options));
|
|
720
|
+
};
|
|
721
|
+
ResourceNotes.prototype.edit = function (resourceId, resource2Id, noteId, body, options) {
|
|
722
|
+
var _a = __read([resourceId, resource2Id, noteId].map(encodeURIComponent), 3), rId = _a[0], r2Id = _a[1], nId = _a[2];
|
|
723
|
+
return RequestHelper.put()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/notes/" + nId, __assign({ body: body }, options));
|
|
724
|
+
};
|
|
725
|
+
ResourceNotes.prototype.remove = function (resourceId, resource2Id, noteId, options) {
|
|
726
|
+
var _a = __read([resourceId, resource2Id, noteId].map(encodeURIComponent), 3), rId = _a[0], r2Id = _a[1], nId = _a[2];
|
|
727
|
+
return RequestHelper.del()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/notes/" + nId, options);
|
|
728
|
+
};
|
|
729
|
+
ResourceNotes.prototype.show = function (resourceId, resource2Id, noteId, options) {
|
|
730
|
+
var _a = __read([resourceId, resource2Id, noteId].map(encodeURIComponent), 3), rId = _a[0], r2Id = _a[1], nId = _a[2];
|
|
731
|
+
return RequestHelper.get()(this, rId + "/" + this.resource2Type + "/" + r2Id + "/notes/" + nId, options);
|
|
732
|
+
};
|
|
733
|
+
return ResourceNotes;
|
|
734
|
+
}(BaseResource));
|
|
735
|
+
|
|
736
|
+
var ResourceTemplates = /** @class */ (function (_super) {
|
|
737
|
+
__extends(ResourceTemplates, _super);
|
|
738
|
+
function ResourceTemplates(resourceType, options) {
|
|
739
|
+
return _super.call(this, __assign({ prefixUrl: ['templates', resourceType].join('/') }, options)) || this;
|
|
740
|
+
}
|
|
741
|
+
ResourceTemplates.prototype.all = function (options) {
|
|
742
|
+
return RequestHelper.get()(this, '', options);
|
|
743
|
+
};
|
|
744
|
+
ResourceTemplates.prototype.show = function (key, options) {
|
|
745
|
+
var rId = encodeURIComponent(key);
|
|
746
|
+
return RequestHelper.get()(this, "" + rId, options);
|
|
747
|
+
};
|
|
748
|
+
return ResourceTemplates;
|
|
749
|
+
}(BaseResource));
|
|
750
|
+
|
|
751
|
+
var ResourceVariables = /** @class */ (function (_super) {
|
|
752
|
+
__extends(ResourceVariables, _super);
|
|
753
|
+
function ResourceVariables(resourceType, options) {
|
|
754
|
+
return _super.call(this, __assign({ prefixUrl: resourceType }, options)) || this;
|
|
755
|
+
}
|
|
756
|
+
ResourceVariables.prototype.all = function (resourceId, options) {
|
|
757
|
+
var rId = encodeURIComponent(resourceId);
|
|
758
|
+
return RequestHelper.get()(this, rId + "/variables", options);
|
|
759
|
+
};
|
|
760
|
+
ResourceVariables.prototype.create = function (resourceId, options) {
|
|
761
|
+
var rId = encodeURIComponent(resourceId);
|
|
762
|
+
return RequestHelper.post()(this, rId + "/variables", options);
|
|
763
|
+
};
|
|
764
|
+
ResourceVariables.prototype.edit = function (resourceId, keyId, options) {
|
|
765
|
+
var _a = __read([resourceId, keyId].map(encodeURIComponent), 2), rId = _a[0], kId = _a[1];
|
|
766
|
+
return RequestHelper.put()(this, rId + "/variables/" + kId, options);
|
|
767
|
+
};
|
|
768
|
+
ResourceVariables.prototype.show = function (resourceId, keyId, options) {
|
|
769
|
+
var _a = __read([resourceId, keyId].map(encodeURIComponent), 2), rId = _a[0], kId = _a[1];
|
|
770
|
+
return RequestHelper.get()(this, rId + "/variables/" + kId, options);
|
|
771
|
+
};
|
|
772
|
+
ResourceVariables.prototype.remove = function (resourceId, keyId, options) {
|
|
773
|
+
var _a = __read([resourceId, keyId].map(encodeURIComponent), 2), rId = _a[0], kId = _a[1];
|
|
774
|
+
return RequestHelper.del()(this, rId + "/variables/" + kId, options);
|
|
775
|
+
};
|
|
776
|
+
return ResourceVariables;
|
|
777
|
+
}(BaseResource));
|
|
778
|
+
|
|
779
|
+
var GroupAccessRequests = /** @class */ (function (_super) {
|
|
780
|
+
__extends(GroupAccessRequests, _super);
|
|
781
|
+
function GroupAccessRequests(options) {
|
|
782
|
+
/* istanbul ignore next */
|
|
783
|
+
return _super.call(this, 'groups', options) || this;
|
|
784
|
+
}
|
|
785
|
+
return GroupAccessRequests;
|
|
786
|
+
}(ResourceAccessRequests));
|
|
787
|
+
|
|
788
|
+
var GroupBadges = /** @class */ (function (_super) {
|
|
789
|
+
__extends(GroupBadges, _super);
|
|
790
|
+
function GroupBadges(options) {
|
|
791
|
+
/* istanbul ignore next */
|
|
792
|
+
return _super.call(this, 'groups', options) || this;
|
|
793
|
+
}
|
|
794
|
+
return GroupBadges;
|
|
795
|
+
}(ResourceBadges));
|
|
796
|
+
|
|
797
|
+
var GroupCustomAttributes = /** @class */ (function (_super) {
|
|
798
|
+
__extends(GroupCustomAttributes, _super);
|
|
799
|
+
function GroupCustomAttributes(options) {
|
|
800
|
+
/* istanbul ignore next */
|
|
801
|
+
return _super.call(this, 'groups', options) || this;
|
|
802
|
+
}
|
|
803
|
+
return GroupCustomAttributes;
|
|
804
|
+
}(ResourceCustomAttributes));
|
|
805
|
+
|
|
806
|
+
var GroupIssueBoards = /** @class */ (function (_super) {
|
|
807
|
+
__extends(GroupIssueBoards, _super);
|
|
808
|
+
function GroupIssueBoards(options) {
|
|
809
|
+
/* istanbul ignore next */
|
|
810
|
+
return _super.call(this, 'groups', options) || this;
|
|
811
|
+
}
|
|
812
|
+
return GroupIssueBoards;
|
|
813
|
+
}(ResourceIssueBoards));
|
|
814
|
+
|
|
815
|
+
var GroupMembers = /** @class */ (function (_super) {
|
|
816
|
+
__extends(GroupMembers, _super);
|
|
817
|
+
function GroupMembers(options) {
|
|
818
|
+
/* istanbul ignore next */
|
|
819
|
+
return _super.call(this, 'groups', options) || this;
|
|
820
|
+
}
|
|
821
|
+
return GroupMembers;
|
|
822
|
+
}(ResourceMembers));
|
|
823
|
+
|
|
824
|
+
var GroupMilestones = /** @class */ (function (_super) {
|
|
825
|
+
__extends(GroupMilestones, _super);
|
|
826
|
+
function GroupMilestones(options) {
|
|
827
|
+
/* istanbul ignore next */
|
|
828
|
+
return _super.call(this, 'groups', options) || this;
|
|
829
|
+
}
|
|
830
|
+
return GroupMilestones;
|
|
831
|
+
}(ResourceMilestones));
|
|
832
|
+
|
|
833
|
+
var GroupRunners = /** @class */ (function (_super) {
|
|
834
|
+
__extends(GroupRunners, _super);
|
|
835
|
+
function GroupRunners() {
|
|
836
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
837
|
+
}
|
|
838
|
+
GroupRunners.prototype.all = function (groupId, options) {
|
|
839
|
+
var gId = encodeURIComponent(groupId);
|
|
840
|
+
return RequestHelper.get()(this, "groups/" + gId + "/runners", options);
|
|
841
|
+
};
|
|
842
|
+
return GroupRunners;
|
|
843
|
+
}(BaseResource));
|
|
844
|
+
|
|
845
|
+
var GroupVariables = /** @class */ (function (_super) {
|
|
846
|
+
__extends(GroupVariables, _super);
|
|
847
|
+
function GroupVariables(options) {
|
|
848
|
+
/* istanbul ignore next */
|
|
849
|
+
return _super.call(this, 'groups', options) || this;
|
|
850
|
+
}
|
|
851
|
+
return GroupVariables;
|
|
852
|
+
}(ResourceVariables));
|
|
853
|
+
|
|
854
|
+
var GroupLabels = /** @class */ (function (_super) {
|
|
855
|
+
__extends(GroupLabels, _super);
|
|
856
|
+
function GroupLabels(options) {
|
|
857
|
+
/* istanbul ignore next */
|
|
858
|
+
return _super.call(this, 'groups', options) || this;
|
|
859
|
+
}
|
|
860
|
+
return GroupLabels;
|
|
861
|
+
}(ResourceLabels));
|
|
862
|
+
|
|
863
|
+
var GroupDeployTokens = /** @class */ (function (_super) {
|
|
864
|
+
__extends(GroupDeployTokens, _super);
|
|
865
|
+
function GroupDeployTokens(options) {
|
|
866
|
+
/* istanbul ignore next */
|
|
867
|
+
return _super.call(this, 'groups', options) || this;
|
|
868
|
+
}
|
|
869
|
+
return GroupDeployTokens;
|
|
870
|
+
}(ResourceDeployTokens));
|
|
871
|
+
|
|
872
|
+
var Epics = /** @class */ (function (_super) {
|
|
873
|
+
__extends(Epics, _super);
|
|
874
|
+
function Epics() {
|
|
875
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
876
|
+
}
|
|
877
|
+
Epics.prototype.all = function (groupId, options) {
|
|
878
|
+
var gId = encodeURIComponent(groupId);
|
|
879
|
+
return RequestHelper.get()(this, "groups/" + gId + "/epics", options);
|
|
880
|
+
};
|
|
881
|
+
Epics.prototype.create = function (groupId, title, options) {
|
|
882
|
+
var gId = encodeURIComponent(groupId);
|
|
883
|
+
return RequestHelper.post()(this, "groups/" + gId + "/epics", __assign({ title: title }, options));
|
|
884
|
+
};
|
|
885
|
+
Epics.prototype.edit = function (groupId, epicId, options) {
|
|
886
|
+
var _a = __read([groupId, epicId].map(encodeURIComponent), 2), gId = _a[0], eId = _a[1];
|
|
887
|
+
return RequestHelper.put()(this, "groups/" + gId + "/epics/" + eId, options);
|
|
888
|
+
};
|
|
889
|
+
Epics.prototype.remove = function (groupId, epicId, options) {
|
|
890
|
+
var _a = __read([groupId, epicId].map(encodeURIComponent), 2), gId = _a[0], eId = _a[1];
|
|
891
|
+
return RequestHelper.del()(this, "groups/" + gId + "/epics/" + eId, options);
|
|
892
|
+
};
|
|
893
|
+
Epics.prototype.show = function (groupId, epicId, options) {
|
|
894
|
+
var _a = __read([groupId, epicId].map(encodeURIComponent), 2), gId = _a[0], eId = _a[1];
|
|
895
|
+
return RequestHelper.get()(this, "groups/" + gId + "/epics/" + eId, options);
|
|
896
|
+
};
|
|
897
|
+
return Epics;
|
|
898
|
+
}(BaseResource));
|
|
899
|
+
|
|
900
|
+
var EpicIssues = /** @class */ (function (_super) {
|
|
901
|
+
__extends(EpicIssues, _super);
|
|
902
|
+
function EpicIssues() {
|
|
903
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
904
|
+
}
|
|
905
|
+
EpicIssues.prototype.all = function (groupId, epicIId, options) {
|
|
906
|
+
var _a = __read([groupId, epicIId].map(encodeURIComponent), 2), gId = _a[0], eId = _a[1];
|
|
907
|
+
return RequestHelper.get()(this, "groups/" + gId + "/epics/" + eId + "/issues", options);
|
|
908
|
+
};
|
|
909
|
+
EpicIssues.prototype.assign = function (groupId, epicIId, epicIssueId, options) {
|
|
910
|
+
var _a = __read([groupId, epicIId, epicIssueId].map(encodeURIComponent), 3), gId = _a[0], eId = _a[1], iId = _a[2];
|
|
911
|
+
return RequestHelper.post()(this, "groups/" + gId + "/epics/" + eId + "/issues/" + iId, options);
|
|
912
|
+
};
|
|
913
|
+
EpicIssues.prototype.edit = function (groupId, epicIId, epicIssueId, options) {
|
|
914
|
+
var _a = __read([groupId, epicIId, epicIssueId].map(encodeURIComponent), 3), gId = _a[0], eId = _a[1], iId = _a[2];
|
|
915
|
+
return RequestHelper.put()(this, "groups/" + gId + "/epics/" + eId + "/issues/" + iId, options);
|
|
916
|
+
};
|
|
917
|
+
EpicIssues.prototype.remove = function (groupId, epicIId, epicIssueId, options) {
|
|
918
|
+
var _a = __read([groupId, epicIId, epicIssueId].map(encodeURIComponent), 3), gId = _a[0], eId = _a[1], iId = _a[2];
|
|
919
|
+
return RequestHelper.del()(this, "groups/" + gId + "/epics/" + eId + "/issues/" + iId, options);
|
|
920
|
+
};
|
|
921
|
+
return EpicIssues;
|
|
922
|
+
}(BaseResource));
|
|
923
|
+
|
|
924
|
+
var EpicNotes = /** @class */ (function (_super) {
|
|
925
|
+
__extends(EpicNotes, _super);
|
|
926
|
+
function EpicNotes(options) {
|
|
927
|
+
/* istanbul ignore next */
|
|
928
|
+
return _super.call(this, 'groups', 'epics', options) || this;
|
|
929
|
+
}
|
|
930
|
+
return EpicNotes;
|
|
931
|
+
}(ResourceNotes));
|
|
932
|
+
|
|
933
|
+
var EpicDiscussions = /** @class */ (function (_super) {
|
|
934
|
+
__extends(EpicDiscussions, _super);
|
|
935
|
+
function EpicDiscussions(options) {
|
|
936
|
+
/* istanbul ignore next */
|
|
937
|
+
return _super.call(this, 'groups', 'epics', options) || this;
|
|
938
|
+
}
|
|
939
|
+
return EpicDiscussions;
|
|
940
|
+
}(ResourceDiscussions));
|
|
941
|
+
|
|
942
|
+
var Users = /** @class */ (function (_super) {
|
|
943
|
+
__extends(Users, _super);
|
|
944
|
+
function Users() {
|
|
945
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
946
|
+
}
|
|
947
|
+
Users.prototype.all = function (options) {
|
|
948
|
+
return RequestHelper.get()(this, 'users', options);
|
|
949
|
+
};
|
|
950
|
+
Users.prototype.activities = function (options) {
|
|
951
|
+
return RequestHelper.get()(this, 'users/activities', options);
|
|
952
|
+
};
|
|
953
|
+
Users.prototype.projects = function (userId, options) {
|
|
954
|
+
var uId = encodeURIComponent(userId);
|
|
955
|
+
return RequestHelper.get()(this, "users/" + uId + "/projects", options);
|
|
956
|
+
};
|
|
957
|
+
Users.prototype.block = function (userId, options) {
|
|
958
|
+
var uId = encodeURIComponent(userId);
|
|
959
|
+
return RequestHelper.post()(this, "users/" + uId + "/block", options);
|
|
960
|
+
};
|
|
961
|
+
Users.prototype.create = function (options) {
|
|
962
|
+
return RequestHelper.post()(this, 'users', options);
|
|
963
|
+
};
|
|
964
|
+
Users.prototype.current = function (options) {
|
|
965
|
+
return RequestHelper.get()(this, 'user', options);
|
|
966
|
+
};
|
|
967
|
+
Users.prototype.edit = function (userId, options) {
|
|
968
|
+
var uId = encodeURIComponent(userId);
|
|
969
|
+
return RequestHelper.put()(this, "users/" + uId, options);
|
|
970
|
+
};
|
|
971
|
+
Users.prototype.events = function (userId, options) {
|
|
972
|
+
var uId = encodeURIComponent(userId);
|
|
973
|
+
return RequestHelper.get()(this, "users/" + uId + "/events", options);
|
|
974
|
+
};
|
|
975
|
+
Users.prototype.search = function (emailOrUsername, options) {
|
|
976
|
+
return RequestHelper.get()(this, 'users', __assign({ search: emailOrUsername }, options));
|
|
977
|
+
};
|
|
978
|
+
Users.prototype.show = function (userId, options) {
|
|
979
|
+
var uId = encodeURIComponent(userId);
|
|
980
|
+
return RequestHelper.get()(this, "users/" + uId, options);
|
|
981
|
+
};
|
|
982
|
+
Users.prototype.remove = function (userId, options) {
|
|
983
|
+
var uId = encodeURIComponent(userId);
|
|
984
|
+
return RequestHelper.del()(this, "users/" + uId, options);
|
|
985
|
+
};
|
|
986
|
+
Users.prototype.unblock = function (userId, options) {
|
|
987
|
+
var uId = encodeURIComponent(userId);
|
|
988
|
+
return RequestHelper.post()(this, "users/" + uId + "/unblock", options);
|
|
989
|
+
};
|
|
990
|
+
Users.prototype.username = function (username, options) {
|
|
991
|
+
return RequestHelper.get()(this, 'users', __assign({ username: username }, options));
|
|
992
|
+
};
|
|
993
|
+
return Users;
|
|
994
|
+
}(BaseResource));
|
|
995
|
+
|
|
996
|
+
var UserCustomAttributes = /** @class */ (function (_super) {
|
|
997
|
+
__extends(UserCustomAttributes, _super);
|
|
998
|
+
function UserCustomAttributes(options) {
|
|
999
|
+
/* istanbul ignore next */
|
|
1000
|
+
return _super.call(this, 'users', options) || this;
|
|
1001
|
+
}
|
|
1002
|
+
return UserCustomAttributes;
|
|
1003
|
+
}(ResourceCustomAttributes));
|
|
1004
|
+
|
|
1005
|
+
var url$3 = function (userId) {
|
|
1006
|
+
return userId ? "users/" + encodeURIComponent(userId) + "/emails" : 'user/emails';
|
|
1007
|
+
};
|
|
1008
|
+
var UserEmails = /** @class */ (function (_super) {
|
|
1009
|
+
__extends(UserEmails, _super);
|
|
1010
|
+
function UserEmails() {
|
|
1011
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1012
|
+
}
|
|
1013
|
+
UserEmails.prototype.all = function (_a) {
|
|
1014
|
+
if (_a === void 0) { _a = {}; }
|
|
1015
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1016
|
+
return RequestHelper.get()(this, url$3(userId), options);
|
|
1017
|
+
};
|
|
1018
|
+
UserEmails.prototype.add = function (email, _a) {
|
|
1019
|
+
if (_a === void 0) { _a = {}; }
|
|
1020
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1021
|
+
return RequestHelper.post()(this, url$3(userId), __assign({ email: email }, options));
|
|
1022
|
+
};
|
|
1023
|
+
UserEmails.prototype.show = function (emailId, options) {
|
|
1024
|
+
var eId = encodeURIComponent(emailId);
|
|
1025
|
+
return RequestHelper.get()(this, "user/emails/" + eId, options);
|
|
1026
|
+
};
|
|
1027
|
+
UserEmails.prototype.remove = function (emailId, _a) {
|
|
1028
|
+
if (_a === void 0) { _a = {}; }
|
|
1029
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1030
|
+
var eId = encodeURIComponent(emailId);
|
|
1031
|
+
return RequestHelper.del()(this, url$3(userId) + "/" + eId, options);
|
|
1032
|
+
};
|
|
1033
|
+
return UserEmails;
|
|
1034
|
+
}(BaseResource));
|
|
1035
|
+
|
|
1036
|
+
var UserImpersonationTokens = /** @class */ (function (_super) {
|
|
1037
|
+
__extends(UserImpersonationTokens, _super);
|
|
1038
|
+
function UserImpersonationTokens() {
|
|
1039
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1040
|
+
}
|
|
1041
|
+
UserImpersonationTokens.prototype.all = function (userId, options) {
|
|
1042
|
+
var uId = encodeURIComponent(userId);
|
|
1043
|
+
return RequestHelper.get()(this, "users/" + uId + "/impersonation_tokens", options);
|
|
1044
|
+
};
|
|
1045
|
+
// TODO: change required params
|
|
1046
|
+
UserImpersonationTokens.prototype.add = function (userId, name, scopes, expiresAt, options) {
|
|
1047
|
+
var uId = encodeURIComponent(userId);
|
|
1048
|
+
return RequestHelper.post()(this, "users/" + uId + "/impersonation_tokens", __assign({ name: name, expiresAt: expiresAt, scopes: scopes }, options));
|
|
1049
|
+
};
|
|
1050
|
+
UserImpersonationTokens.prototype.show = function (userId, tokenId, options) {
|
|
1051
|
+
var _a = __read([userId, tokenId].map(encodeURIComponent), 2), uId = _a[0], tId = _a[1];
|
|
1052
|
+
return RequestHelper.get()(this, "users/" + uId + "/impersonation_tokens/" + tId, options);
|
|
1053
|
+
};
|
|
1054
|
+
UserImpersonationTokens.prototype.revoke = function (userId, tokenId, options) {
|
|
1055
|
+
var _a = __read([userId, tokenId].map(encodeURIComponent), 2), uId = _a[0], tId = _a[1];
|
|
1056
|
+
return RequestHelper.del()(this, "users/" + uId + "/impersonation_tokens/" + tId, options);
|
|
1057
|
+
};
|
|
1058
|
+
return UserImpersonationTokens;
|
|
1059
|
+
}(BaseResource));
|
|
1060
|
+
|
|
1061
|
+
var url$2 = function (userId) {
|
|
1062
|
+
return userId ? "users/" + encodeURIComponent(userId) + "/keys" : 'user/keys';
|
|
1063
|
+
};
|
|
1064
|
+
var UserSSHKeys = /** @class */ (function (_super) {
|
|
1065
|
+
__extends(UserSSHKeys, _super);
|
|
1066
|
+
function UserSSHKeys() {
|
|
1067
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1068
|
+
}
|
|
1069
|
+
UserSSHKeys.prototype.all = function (_a) {
|
|
1070
|
+
if (_a === void 0) { _a = {}; }
|
|
1071
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1072
|
+
return RequestHelper.get()(this, url$2(userId), options);
|
|
1073
|
+
};
|
|
1074
|
+
UserSSHKeys.prototype.create = function (title, key, _a) {
|
|
1075
|
+
if (_a === void 0) { _a = {}; }
|
|
1076
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1077
|
+
return RequestHelper.post()(this, url$2(userId), __assign({ title: title, key: key }, options));
|
|
1078
|
+
};
|
|
1079
|
+
UserSSHKeys.prototype.show = function (keyId, _a) {
|
|
1080
|
+
if (_a === void 0) { _a = {}; }
|
|
1081
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1082
|
+
var kId = encodeURIComponent(keyId);
|
|
1083
|
+
return RequestHelper.get()(this, url$2(userId) + "/" + kId, options);
|
|
1084
|
+
};
|
|
1085
|
+
UserSSHKeys.prototype.remove = function (keyId, _a) {
|
|
1086
|
+
if (_a === void 0) { _a = {}; }
|
|
1087
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1088
|
+
var kId = encodeURIComponent(keyId);
|
|
1089
|
+
return RequestHelper.del()(this, url$2(userId) + "/" + kId, options);
|
|
1090
|
+
};
|
|
1091
|
+
return UserSSHKeys;
|
|
1092
|
+
}(BaseResource));
|
|
1093
|
+
|
|
1094
|
+
var url$1 = function (userId) {
|
|
1095
|
+
return userId ? "users/" + encodeURIComponent(userId) + "/gpg_keys" : 'user/gpg_keys';
|
|
1096
|
+
};
|
|
1097
|
+
var UserGPGKeys = /** @class */ (function (_super) {
|
|
1098
|
+
__extends(UserGPGKeys, _super);
|
|
1099
|
+
function UserGPGKeys() {
|
|
1100
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1101
|
+
}
|
|
1102
|
+
UserGPGKeys.prototype.all = function (_a) {
|
|
1103
|
+
if (_a === void 0) { _a = {}; }
|
|
1104
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1105
|
+
return RequestHelper.get()(this, url$1(userId), options);
|
|
1106
|
+
};
|
|
1107
|
+
UserGPGKeys.prototype.add = function (key, _a) {
|
|
1108
|
+
if (_a === void 0) { _a = {}; }
|
|
1109
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1110
|
+
return RequestHelper.post()(this, url$1(userId), __assign({ key: key }, options));
|
|
1111
|
+
};
|
|
1112
|
+
UserGPGKeys.prototype.show = function (keyId, _a) {
|
|
1113
|
+
if (_a === void 0) { _a = {}; }
|
|
1114
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1115
|
+
var kId = encodeURIComponent(keyId);
|
|
1116
|
+
return RequestHelper.get()(this, url$1(userId) + "/" + kId, options);
|
|
1117
|
+
};
|
|
1118
|
+
UserGPGKeys.prototype.remove = function (keyId, _a) {
|
|
1119
|
+
if (_a === void 0) { _a = {}; }
|
|
1120
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
1121
|
+
var kId = encodeURIComponent(keyId);
|
|
1122
|
+
return RequestHelper.del()(this, url$1(userId) + "/" + kId, options);
|
|
1123
|
+
};
|
|
1124
|
+
return UserGPGKeys;
|
|
1125
|
+
}(BaseResource));
|
|
1126
|
+
|
|
1127
|
+
var Branches = /** @class */ (function (_super) {
|
|
1128
|
+
__extends(Branches, _super);
|
|
1129
|
+
function Branches() {
|
|
1130
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1131
|
+
}
|
|
1132
|
+
Branches.prototype.all = function (projectId, options) {
|
|
1133
|
+
var pId = encodeURIComponent(projectId);
|
|
1134
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/branches", options);
|
|
1135
|
+
};
|
|
1136
|
+
Branches.prototype.create = function (projectId, branchName, ref, options) {
|
|
1137
|
+
var _a;
|
|
1138
|
+
var pId = encodeURIComponent(projectId);
|
|
1139
|
+
var branchKey = this.url.includes('v3') ? 'branchName' : 'branch';
|
|
1140
|
+
return RequestHelper.post()(this, "projects/" + pId + "/repository/branches", __assign((_a = {}, _a[branchKey] = branchName, _a.ref = ref, _a), options));
|
|
1141
|
+
};
|
|
1142
|
+
Branches.prototype.remove = function (projectId, branchName, options) {
|
|
1143
|
+
var _a = __read([projectId, branchName].map(encodeURIComponent), 2), pId = _a[0], bName = _a[1];
|
|
1144
|
+
return RequestHelper.del()(this, "projects/" + pId + "/repository/branches/" + bName, options);
|
|
1145
|
+
};
|
|
1146
|
+
Branches.prototype.show = function (projectId, branchName, options) {
|
|
1147
|
+
var _a = __read([projectId, branchName].map(encodeURIComponent), 2), pId = _a[0], bName = _a[1];
|
|
1148
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/branches/" + bName, options);
|
|
1149
|
+
};
|
|
1150
|
+
return Branches;
|
|
1151
|
+
}(BaseResource));
|
|
1152
|
+
|
|
1153
|
+
var Commits = /** @class */ (function (_super) {
|
|
1154
|
+
__extends(Commits, _super);
|
|
1155
|
+
function Commits() {
|
|
1156
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1157
|
+
}
|
|
1158
|
+
Commits.prototype.all = function (projectId, options) {
|
|
1159
|
+
var pId = encodeURIComponent(projectId);
|
|
1160
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/commits", options);
|
|
1161
|
+
};
|
|
1162
|
+
Commits.prototype.cherryPick = function (projectId, sha, branch, options) {
|
|
1163
|
+
var pId = encodeURIComponent(projectId);
|
|
1164
|
+
return RequestHelper.post()(this, "projects/" + pId + "/repository/commits/" + sha + "/cherry_pick", __assign({ branch: branch }, options));
|
|
1165
|
+
};
|
|
1166
|
+
Commits.prototype.comments = function (projectId, sha, options) {
|
|
1167
|
+
var pId = encodeURIComponent(projectId);
|
|
1168
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/commits/" + sha + "/comments", options);
|
|
1169
|
+
};
|
|
1170
|
+
Commits.prototype.create = function (projectId, branch, message, actions, options) {
|
|
1171
|
+
if (actions === void 0) { actions = []; }
|
|
1172
|
+
var pId = encodeURIComponent(projectId);
|
|
1173
|
+
return RequestHelper.post()(this, "projects/" + pId + "/repository/commits", __assign({ branch: branch, commitMessage: message, actions: actions }, options));
|
|
1174
|
+
};
|
|
1175
|
+
Commits.prototype.createComment = function (projectId, sha, note, options) {
|
|
1176
|
+
var pId = encodeURIComponent(projectId);
|
|
1177
|
+
return RequestHelper.post()(this, "projects/" + pId + "/repository/commits/" + sha + "/comments", __assign({ note: note }, options));
|
|
1178
|
+
};
|
|
1179
|
+
Commits.prototype.diff = function (projectId, sha, options) {
|
|
1180
|
+
var pId = encodeURIComponent(projectId);
|
|
1181
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/commits/" + sha + "/diff", options);
|
|
1182
|
+
};
|
|
1183
|
+
Commits.prototype.editStatus = function (projectId, sha, options) {
|
|
1184
|
+
var pId = encodeURIComponent(projectId);
|
|
1185
|
+
return RequestHelper.post()(this, "projects/" + pId + "/statuses/" + sha, options);
|
|
1186
|
+
};
|
|
1187
|
+
Commits.prototype.references = function (projectId, sha, options) {
|
|
1188
|
+
var pId = encodeURIComponent(projectId);
|
|
1189
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/commits/" + sha + "/refs", options);
|
|
1190
|
+
};
|
|
1191
|
+
Commits.prototype.revert = function (projectId, sha, options) {
|
|
1192
|
+
var pId = encodeURIComponent(projectId);
|
|
1193
|
+
return RequestHelper.post()(this, "projects/" + pId + "/repository/commits/" + sha + "/revert", options);
|
|
1194
|
+
};
|
|
1195
|
+
Commits.prototype.show = function (projectId, sha, options) {
|
|
1196
|
+
var pId = encodeURIComponent(projectId);
|
|
1197
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/commits/" + sha, options);
|
|
1198
|
+
};
|
|
1199
|
+
Commits.prototype.statuses = function (projectId, sha, options) {
|
|
1200
|
+
var pId = encodeURIComponent(projectId);
|
|
1201
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/commits/" + sha + "/statuses", options);
|
|
1202
|
+
};
|
|
1203
|
+
Commits.prototype.mergeRequests = function (projectId, sha, options) {
|
|
1204
|
+
var pId = encodeURIComponent(projectId);
|
|
1205
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/commits/" + sha + "/merge_requests", options);
|
|
1206
|
+
};
|
|
1207
|
+
Commits.prototype.signature = function (projectId, sha, options) {
|
|
1208
|
+
var pId = encodeURIComponent(projectId);
|
|
1209
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/commits/" + sha + "/signature", options);
|
|
1210
|
+
};
|
|
1211
|
+
return Commits;
|
|
1212
|
+
}(BaseResource));
|
|
1213
|
+
|
|
1214
|
+
var CommitDiscussions = /** @class */ (function (_super) {
|
|
1215
|
+
__extends(CommitDiscussions, _super);
|
|
1216
|
+
function CommitDiscussions(options) {
|
|
1217
|
+
/* istanbul ignore next */
|
|
1218
|
+
return _super.call(this, 'projects', 'repository/commits', options) || this;
|
|
1219
|
+
}
|
|
1220
|
+
return CommitDiscussions;
|
|
1221
|
+
}(ResourceDiscussions));
|
|
1222
|
+
|
|
1223
|
+
var ContainerRegistry = /** @class */ (function (_super) {
|
|
1224
|
+
__extends(ContainerRegistry, _super);
|
|
1225
|
+
function ContainerRegistry() {
|
|
1226
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1227
|
+
}
|
|
1228
|
+
ContainerRegistry.prototype.projectRepositories = function (projectId, options) {
|
|
1229
|
+
var pId = encodeURIComponent(projectId);
|
|
1230
|
+
return RequestHelper.get()(this, "projects/" + pId + "/registry/repositories", options);
|
|
1231
|
+
};
|
|
1232
|
+
ContainerRegistry.prototype.groupRepositories = function (projectId, options) {
|
|
1233
|
+
var pId = encodeURIComponent(projectId);
|
|
1234
|
+
return RequestHelper.get()(this, "groups/" + pId + "/registry/repositories", options);
|
|
1235
|
+
};
|
|
1236
|
+
ContainerRegistry.prototype.showRepository = function (projectId, repositoryId, options) {
|
|
1237
|
+
var _a = __read([projectId, repositoryId].map(encodeURIComponent), 2), pId = _a[0], rId = _a[1];
|
|
1238
|
+
return RequestHelper.get()(this, "projects/" + pId + "/registry/repositories/" + rId, options);
|
|
1239
|
+
};
|
|
1240
|
+
ContainerRegistry.prototype.tags = function (projectId, repositoryId, options) {
|
|
1241
|
+
var _a = __read([projectId, repositoryId].map(encodeURIComponent), 2), pId = _a[0], rId = _a[1];
|
|
1242
|
+
return RequestHelper.get()(this, "projects/" + pId + "/registry/repositories/" + rId + "/tags", options);
|
|
1243
|
+
};
|
|
1244
|
+
ContainerRegistry.prototype.removeRepository = function (projectId, repositoryId, options) {
|
|
1245
|
+
var _a = __read([projectId, repositoryId].map(encodeURIComponent), 2), pId = _a[0], rId = _a[1];
|
|
1246
|
+
return RequestHelper.del()(this, "projects/" + pId + "/registry/repositories/" + rId, options);
|
|
1247
|
+
};
|
|
1248
|
+
ContainerRegistry.prototype.removeTag = function (projectId, repositoryId, tagName, options) {
|
|
1249
|
+
var _a = __read([projectId, repositoryId, tagName].map(encodeURIComponent), 3), pId = _a[0], rId = _a[1], tId = _a[2];
|
|
1250
|
+
return RequestHelper.del()(this, "projects/" + pId + "/registry/repositories/" + rId + "/tags/" + tId, options);
|
|
1251
|
+
};
|
|
1252
|
+
ContainerRegistry.prototype.removeTags = function (projectId, repositoryId, nameRegexDelete, options) {
|
|
1253
|
+
var _a = __read([projectId, repositoryId].map(encodeURIComponent), 2), pId = _a[0], rId = _a[1];
|
|
1254
|
+
return RequestHelper.del()(this, "projects/" + pId + "/registry/repositories/" + rId + "/tags", __assign({ nameRegexDelete: nameRegexDelete }, options));
|
|
1255
|
+
};
|
|
1256
|
+
ContainerRegistry.prototype.showTag = function (projectId, repositoryId, tagName, options) {
|
|
1257
|
+
var _a = __read([projectId, repositoryId, tagName].map(encodeURIComponent), 3), pId = _a[0], rId = _a[1], tId = _a[2];
|
|
1258
|
+
return RequestHelper.get()(this, "projects/" + pId + "/registry/repositories/" + rId + "/tags/" + tId, options);
|
|
1259
|
+
};
|
|
1260
|
+
return ContainerRegistry;
|
|
1261
|
+
}(BaseResource));
|
|
1262
|
+
|
|
1263
|
+
var Deployments = /** @class */ (function (_super) {
|
|
1264
|
+
__extends(Deployments, _super);
|
|
1265
|
+
function Deployments() {
|
|
1266
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1267
|
+
}
|
|
1268
|
+
Deployments.prototype.all = function (projectId, options) {
|
|
1269
|
+
var pId = encodeURIComponent(projectId);
|
|
1270
|
+
return RequestHelper.get()(this, "projects/" + pId + "/deployments", options);
|
|
1271
|
+
};
|
|
1272
|
+
Deployments.prototype.create = function (projectId, environment, sha, ref, tag, status, options) {
|
|
1273
|
+
var _a = __read([projectId].map(encodeURIComponent), 1), pId = _a[0];
|
|
1274
|
+
return RequestHelper.post()(this, "projects/" + pId + "/deployments", __assign({ environment: environment, sha: sha, ref: ref, tag: tag, status: status }, options));
|
|
1275
|
+
};
|
|
1276
|
+
Deployments.prototype.edit = function (projectId, deploymentId, status, options) {
|
|
1277
|
+
var _a = __read([projectId, deploymentId].map(encodeURIComponent), 2), pId = _a[0], dId = _a[1];
|
|
1278
|
+
return RequestHelper.put()(this, "projects/" + pId + "/deployments/" + dId, __assign({ status: status }, options));
|
|
1279
|
+
};
|
|
1280
|
+
Deployments.prototype.show = function (projectId, deploymentId, options) {
|
|
1281
|
+
var _a = __read([projectId, deploymentId].map(encodeURIComponent), 2), pId = _a[0], dId = _a[1];
|
|
1282
|
+
return RequestHelper.get()(this, "projects/" + pId + "/deployments/" + dId, options);
|
|
1283
|
+
};
|
|
1284
|
+
Deployments.prototype.mergeRequests = function (projectId, deploymentId, options) {
|
|
1285
|
+
var _a = __read([projectId, deploymentId].map(encodeURIComponent), 2), pId = _a[0], dId = _a[1];
|
|
1286
|
+
return RequestHelper.get()(this, "projects/" + pId + "/deployments/" + dId + "/merge_requests", options);
|
|
1287
|
+
};
|
|
1288
|
+
return Deployments;
|
|
1289
|
+
}(BaseResource));
|
|
1290
|
+
|
|
1291
|
+
var DeployKeys = /** @class */ (function (_super) {
|
|
1292
|
+
__extends(DeployKeys, _super);
|
|
1293
|
+
function DeployKeys() {
|
|
1294
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1295
|
+
}
|
|
1296
|
+
DeployKeys.prototype.add = function (projectId, options) {
|
|
1297
|
+
var pId = encodeURIComponent(projectId);
|
|
1298
|
+
return RequestHelper.post()(this, "projects/" + pId + "/deploy_keys", options);
|
|
1299
|
+
};
|
|
1300
|
+
DeployKeys.prototype.all = function (_a) {
|
|
1301
|
+
if (_a === void 0) { _a = {}; }
|
|
1302
|
+
var projectId = _a.projectId, options = __rest(_a, ["projectId"]);
|
|
1303
|
+
var url;
|
|
1304
|
+
if (projectId) {
|
|
1305
|
+
url = "projects/" + encodeURIComponent(projectId) + "/deploy_keys";
|
|
1306
|
+
}
|
|
1307
|
+
else {
|
|
1308
|
+
url = 'deploy_keys';
|
|
1309
|
+
}
|
|
1310
|
+
return RequestHelper.get()(this, url, options);
|
|
1311
|
+
};
|
|
1312
|
+
DeployKeys.prototype.edit = function (projectId, keyId, options) {
|
|
1313
|
+
var _a = __read([projectId, keyId].map(encodeURIComponent), 2), pId = _a[0], kId = _a[1];
|
|
1314
|
+
return RequestHelper.put()(this, "projects/" + pId + "/deploy_keys/" + kId, options);
|
|
1315
|
+
};
|
|
1316
|
+
DeployKeys.prototype.enable = function (projectId, keyId, options) {
|
|
1317
|
+
var _a = __read([projectId, keyId].map(encodeURIComponent), 2), pId = _a[0], kId = _a[1];
|
|
1318
|
+
return RequestHelper.post()(this, "projects/" + pId + "/deploy_keys/" + kId + "/enable", options);
|
|
1319
|
+
};
|
|
1320
|
+
DeployKeys.prototype.remove = function (projectId, keyId, options) {
|
|
1321
|
+
var _a = __read([projectId, keyId].map(encodeURIComponent), 2), pId = _a[0], kId = _a[1];
|
|
1322
|
+
return RequestHelper.del()(this, "projects/" + pId + "/deploy_keys/" + kId, options);
|
|
1323
|
+
};
|
|
1324
|
+
DeployKeys.prototype.show = function (projectId, keyId, options) {
|
|
1325
|
+
var _a = __read([projectId, keyId].map(encodeURIComponent), 2), pId = _a[0], kId = _a[1];
|
|
1326
|
+
return RequestHelper.get()(this, "projects/" + pId + "/deploy_keys/" + kId, options);
|
|
1327
|
+
};
|
|
1328
|
+
return DeployKeys;
|
|
1329
|
+
}(BaseResource));
|
|
1330
|
+
|
|
1331
|
+
var Environments = /** @class */ (function (_super) {
|
|
1332
|
+
__extends(Environments, _super);
|
|
1333
|
+
function Environments() {
|
|
1334
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1335
|
+
}
|
|
1336
|
+
Environments.prototype.all = function (projectId, options) {
|
|
1337
|
+
var pId = encodeURIComponent(projectId);
|
|
1338
|
+
return RequestHelper.get()(this, "projects/" + pId + "/environments", options);
|
|
1339
|
+
};
|
|
1340
|
+
Environments.prototype.show = function (projectId, environmentId, options) {
|
|
1341
|
+
var _a = __read([projectId, environmentId].map(encodeURIComponent), 2), pId = _a[0], eId = _a[1];
|
|
1342
|
+
return RequestHelper.get()(this, "projects/" + pId + "/environments/" + eId, options);
|
|
1343
|
+
};
|
|
1344
|
+
Environments.prototype.create = function (projectId, options) {
|
|
1345
|
+
var pId = encodeURIComponent(projectId);
|
|
1346
|
+
return RequestHelper.post()(this, "projects/" + pId + "/environments", options);
|
|
1347
|
+
};
|
|
1348
|
+
Environments.prototype.edit = function (projectId, environmentId, options) {
|
|
1349
|
+
var _a = __read([projectId, environmentId].map(encodeURIComponent), 2), pId = _a[0], eId = _a[1];
|
|
1350
|
+
return RequestHelper.put()(this, "projects/" + pId + "/environments/" + eId, options);
|
|
1351
|
+
};
|
|
1352
|
+
Environments.prototype.remove = function (projectId, environmentId, options) {
|
|
1353
|
+
var _a = __read([projectId, environmentId].map(encodeURIComponent), 2), pId = _a[0], eId = _a[1];
|
|
1354
|
+
return RequestHelper.del()(this, "projects/" + pId + "/environments/" + eId, options);
|
|
1355
|
+
};
|
|
1356
|
+
Environments.prototype.stop = function (projectId, environmentId, options) {
|
|
1357
|
+
var _a = __read([projectId, environmentId].map(encodeURIComponent), 2), pId = _a[0], eId = _a[1];
|
|
1358
|
+
return RequestHelper.post()(this, "projects/" + pId + "/environments/" + eId + "/stop", options);
|
|
1359
|
+
};
|
|
1360
|
+
return Environments;
|
|
1361
|
+
}(BaseResource));
|
|
1362
|
+
|
|
1363
|
+
var FreezePeriods = /** @class */ (function (_super) {
|
|
1364
|
+
__extends(FreezePeriods, _super);
|
|
1365
|
+
function FreezePeriods() {
|
|
1366
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1367
|
+
}
|
|
1368
|
+
FreezePeriods.prototype.all = function (projectId, options) {
|
|
1369
|
+
var pId = encodeURIComponent(projectId);
|
|
1370
|
+
return RequestHelper.get()(this, "projects/" + pId + "/freeze_periods", options);
|
|
1371
|
+
};
|
|
1372
|
+
FreezePeriods.prototype.show = function (projectId, freezePeriodId, options) {
|
|
1373
|
+
var _a = __read([projectId, freezePeriodId].map(encodeURIComponent), 2), pId = _a[0], fId = _a[1];
|
|
1374
|
+
return RequestHelper.get()(this, "projects/" + pId + "/freeze_periods/" + fId, options);
|
|
1375
|
+
};
|
|
1376
|
+
FreezePeriods.prototype.create = function (projectId, freezeStart, freezeEnd, options) {
|
|
1377
|
+
var pId = encodeURIComponent(projectId);
|
|
1378
|
+
return RequestHelper.post()(this, "projects/" + pId + "/freeze_periods", __assign({ freezeStart: freezeStart, freezeEnd: freezeEnd }, options));
|
|
1379
|
+
};
|
|
1380
|
+
FreezePeriods.prototype.edit = function (projectId, freezePeriodId, options) {
|
|
1381
|
+
var _a = __read([projectId, freezePeriodId].map(encodeURIComponent), 2), pId = _a[0], fId = _a[1];
|
|
1382
|
+
return RequestHelper.put()(this, "projects/" + pId + "/freeze_periods/" + fId, options);
|
|
1383
|
+
};
|
|
1384
|
+
FreezePeriods.prototype.delete = function (projectId, freezePeriodId, options) {
|
|
1385
|
+
var _a = __read([projectId, freezePeriodId].map(encodeURIComponent), 2), pId = _a[0], fId = _a[1];
|
|
1386
|
+
return RequestHelper.del()(this, "projects/" + pId + "/freeze_periods/" + fId, options);
|
|
1387
|
+
};
|
|
1388
|
+
return FreezePeriods;
|
|
1389
|
+
}(BaseResource));
|
|
1390
|
+
|
|
1391
|
+
var Issues = /** @class */ (function (_super) {
|
|
1392
|
+
__extends(Issues, _super);
|
|
1393
|
+
function Issues() {
|
|
1394
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1395
|
+
}
|
|
1396
|
+
Issues.prototype.addSpentTime = function (projectId, issueIid, duration, options) {
|
|
1397
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1398
|
+
return RequestHelper.post()(this, "projects/" + pId + "/issues/" + iId + "/add_spent_time", __assign({ duration: duration }, options));
|
|
1399
|
+
};
|
|
1400
|
+
Issues.prototype.addTimeEstimate = function (projectId, issueIid, duration, options) {
|
|
1401
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1402
|
+
return RequestHelper.post()(this, "projects/" + pId + "/issues/" + iId + "/time_estimate", __assign({ duration: duration }, options));
|
|
1403
|
+
};
|
|
1404
|
+
Issues.prototype.all = function (_a) {
|
|
1405
|
+
if (_a === void 0) { _a = {}; }
|
|
1406
|
+
var projectId = _a.projectId, groupId = _a.groupId, options = __rest(_a, ["projectId", "groupId"]);
|
|
1407
|
+
var url;
|
|
1408
|
+
if (projectId) {
|
|
1409
|
+
url = "projects/" + encodeURIComponent(projectId) + "/issues";
|
|
1410
|
+
}
|
|
1411
|
+
else if (groupId) {
|
|
1412
|
+
url = "groups/" + encodeURIComponent(groupId) + "/issues";
|
|
1413
|
+
}
|
|
1414
|
+
else {
|
|
1415
|
+
url = 'issues';
|
|
1416
|
+
}
|
|
1417
|
+
return RequestHelper.get()(this, url, options);
|
|
1418
|
+
};
|
|
1419
|
+
Issues.prototype.create = function (projectId, options) {
|
|
1420
|
+
var pId = encodeURIComponent(projectId);
|
|
1421
|
+
return RequestHelper.post()(this, "projects/" + pId + "/issues", options);
|
|
1422
|
+
};
|
|
1423
|
+
Issues.prototype.closedBy = function (projectId, issueIid, options) {
|
|
1424
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1425
|
+
return RequestHelper.get()(this, "projects/" + pId + "/issues/" + iId + "/closed_by", options);
|
|
1426
|
+
};
|
|
1427
|
+
Issues.prototype.edit = function (projectId, issueIid, options) {
|
|
1428
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1429
|
+
return RequestHelper.put()(this, "projects/" + pId + "/issues/" + iId, options);
|
|
1430
|
+
};
|
|
1431
|
+
// TODO move
|
|
1432
|
+
Issues.prototype.link = function (projectId, issueIId, targetProjectId, targetIssueIId, options) {
|
|
1433
|
+
var _a = __read([projectId, issueIId].map(encodeURIComponent), 2), pId = _a[0], iIId = _a[1];
|
|
1434
|
+
var _b = __read([targetProjectId, targetIssueIId].map(encodeURIComponent), 2), targetPId = _b[0], targetIId = _b[1];
|
|
1435
|
+
return RequestHelper.post()(this, "projects/" + pId + "/issues/" + iIId + "/links", __assign({ targetProjectId: targetPId, targetIssueIid: targetIId }, options));
|
|
1436
|
+
};
|
|
1437
|
+
// TODO move
|
|
1438
|
+
Issues.prototype.links = function (projectId, issueIid) {
|
|
1439
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1440
|
+
return RequestHelper.get()(this, "projects/" + pId + "/issues/" + iId + "/links");
|
|
1441
|
+
};
|
|
1442
|
+
Issues.prototype.participants = function (projectId, issueIid, options) {
|
|
1443
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1444
|
+
return RequestHelper.get()(this, "projects/" + pId + "/issues/" + iId + "/participants", options);
|
|
1445
|
+
};
|
|
1446
|
+
Issues.prototype.relatedMergeRequests = function (projectId, issueIid, options) {
|
|
1447
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1448
|
+
return RequestHelper.get()(this, "projects/" + pId + "/issues/" + iId + "/related_merge_requests", options);
|
|
1449
|
+
};
|
|
1450
|
+
// TODO move
|
|
1451
|
+
Issues.prototype.removeLink = function (projectId, issueIid, issueLinkId, options) {
|
|
1452
|
+
var _a = __read([projectId, issueIid, issueLinkId].map(encodeURIComponent), 3), pId = _a[0], iId = _a[1], iLinkId = _a[2];
|
|
1453
|
+
return RequestHelper.del()(this, "projects/" + pId + "/issues/" + iId + "/links/" + iLinkId, __assign({}, options));
|
|
1454
|
+
};
|
|
1455
|
+
Issues.prototype.remove = function (projectId, issueIid, options) {
|
|
1456
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1457
|
+
return RequestHelper.del()(this, "projects/" + pId + "/issues/" + iId, options);
|
|
1458
|
+
};
|
|
1459
|
+
Issues.prototype.resetSpentTime = function (projectId, issueIid, options) {
|
|
1460
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1461
|
+
return RequestHelper.post()(this, "projects/" + pId + "/issues/" + iId + "/reset_spent_time", options);
|
|
1462
|
+
};
|
|
1463
|
+
Issues.prototype.resetTimeEstimate = function (projectId, issueIid, options) {
|
|
1464
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1465
|
+
return RequestHelper.post()(this, "projects/" + pId + "/issues/" + iId + "/reset_time_estimate", options);
|
|
1466
|
+
};
|
|
1467
|
+
Issues.prototype.show = function (projectId, issueIid, options) {
|
|
1468
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1469
|
+
return RequestHelper.get()(this, "projects/" + pId + "/issues/" + iId, options);
|
|
1470
|
+
};
|
|
1471
|
+
Issues.prototype.subscribe = function (projectId, issueIid, options) {
|
|
1472
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1473
|
+
return RequestHelper.post()(this, "projects/" + pId + "/issues/" + iId + "/subscribe", options);
|
|
1474
|
+
};
|
|
1475
|
+
Issues.prototype.timeStats = function (projectId, issueIid, options) {
|
|
1476
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1477
|
+
return RequestHelper.get()(this, "projects/" + pId + "/issues/" + iId + "/time_stats", options);
|
|
1478
|
+
};
|
|
1479
|
+
Issues.prototype.unsubscribe = function (projectId, issueIid, options) {
|
|
1480
|
+
var _a = __read([projectId, issueIid].map(encodeURIComponent), 2), pId = _a[0], iId = _a[1];
|
|
1481
|
+
return RequestHelper.post()(this, "projects/" + pId + "/issues/" + iId + "/unsubscribe", options);
|
|
1482
|
+
};
|
|
1483
|
+
return Issues;
|
|
1484
|
+
}(BaseResource));
|
|
1485
|
+
|
|
1486
|
+
var IssuesStatistics = /** @class */ (function (_super) {
|
|
1487
|
+
__extends(IssuesStatistics, _super);
|
|
1488
|
+
function IssuesStatistics() {
|
|
1489
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1490
|
+
}
|
|
1491
|
+
IssuesStatistics.prototype.all = function (_a) {
|
|
1492
|
+
if (_a === void 0) { _a = {}; }
|
|
1493
|
+
var projectId = _a.projectId, groupId = _a.groupId, options = __rest(_a, ["projectId", "groupId"]);
|
|
1494
|
+
var url;
|
|
1495
|
+
if (projectId) {
|
|
1496
|
+
url = "projects/" + encodeURIComponent(projectId) + "/issues_statistics";
|
|
1497
|
+
}
|
|
1498
|
+
else if (groupId) {
|
|
1499
|
+
url = "groups/" + encodeURIComponent(groupId) + "/issues_statistics";
|
|
1500
|
+
}
|
|
1501
|
+
else {
|
|
1502
|
+
url = 'issues_statistics';
|
|
1503
|
+
}
|
|
1504
|
+
return RequestHelper.get()(this, url, options);
|
|
1505
|
+
};
|
|
1506
|
+
return IssuesStatistics;
|
|
1507
|
+
}(BaseResource));
|
|
1508
|
+
|
|
1509
|
+
var IssueNotes = /** @class */ (function (_super) {
|
|
1510
|
+
__extends(IssueNotes, _super);
|
|
1511
|
+
function IssueNotes(options) {
|
|
1512
|
+
/* istanbul ignore next */
|
|
1513
|
+
return _super.call(this, 'projects', 'issues', options) || this;
|
|
1514
|
+
}
|
|
1515
|
+
return IssueNotes;
|
|
1516
|
+
}(ResourceNotes));
|
|
1517
|
+
|
|
1518
|
+
var IssueNoteAwardEmojis = /** @class */ (function (_super) {
|
|
1519
|
+
__extends(IssueNoteAwardEmojis, _super);
|
|
1520
|
+
function IssueNoteAwardEmojis(options) {
|
|
1521
|
+
/* istanbul ignore next */
|
|
1522
|
+
return _super.call(this, 'issues', options) || this;
|
|
1523
|
+
}
|
|
1524
|
+
return IssueNoteAwardEmojis;
|
|
1525
|
+
}(ResourceNoteAwardEmojis));
|
|
1526
|
+
|
|
1527
|
+
var IssueDiscussions = /** @class */ (function (_super) {
|
|
1528
|
+
__extends(IssueDiscussions, _super);
|
|
1529
|
+
function IssueDiscussions(options) {
|
|
1530
|
+
/* istanbul ignore next */
|
|
1531
|
+
return _super.call(this, 'projects', 'issues', options) || this;
|
|
1532
|
+
}
|
|
1533
|
+
return IssueDiscussions;
|
|
1534
|
+
}(ResourceDiscussions));
|
|
1535
|
+
|
|
1536
|
+
var IssueAwardEmojis = /** @class */ (function (_super) {
|
|
1537
|
+
__extends(IssueAwardEmojis, _super);
|
|
1538
|
+
function IssueAwardEmojis(options) {
|
|
1539
|
+
/* istanbul ignore next */
|
|
1540
|
+
return _super.call(this, 'issues', options) || this;
|
|
1541
|
+
}
|
|
1542
|
+
return IssueAwardEmojis;
|
|
1543
|
+
}(ResourceAwardEmojis));
|
|
1544
|
+
|
|
1545
|
+
var Jobs = /** @class */ (function (_super) {
|
|
1546
|
+
__extends(Jobs, _super);
|
|
1547
|
+
function Jobs() {
|
|
1548
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1549
|
+
}
|
|
1550
|
+
Jobs.prototype.all = function (projectId, options) {
|
|
1551
|
+
var pId = encodeURIComponent(projectId);
|
|
1552
|
+
return RequestHelper.get()(this, "projects/" + pId + "/jobs", options);
|
|
1553
|
+
};
|
|
1554
|
+
Jobs.prototype.cancel = function (projectId, jobId, options) {
|
|
1555
|
+
var _a = __read([projectId, jobId].map(encodeURIComponent), 2), pId = _a[0], jId = _a[1];
|
|
1556
|
+
return RequestHelper.post()(this, "projects/" + pId + "/jobs/" + jId + "/cancel", options);
|
|
1557
|
+
};
|
|
1558
|
+
// TODO move
|
|
1559
|
+
Jobs.prototype.downloadSingleArtifactFile = function (projectId, jobId, artifactPath, _a) {
|
|
1560
|
+
if (_a === void 0) { _a = {}; }
|
|
1561
|
+
var _b = _a.stream, stream = _b === void 0 ? false : _b, options = __rest(_a, ["stream"]);
|
|
1562
|
+
var _c = __read([projectId, jobId].map(encodeURIComponent), 2), pId = _c[0], jId = _c[1];
|
|
1563
|
+
if (stream) {
|
|
1564
|
+
return RequestHelper.stream(this, "projects/" + pId + "/jobs/" + jId + "/artifacts/" + artifactPath, options);
|
|
1565
|
+
}
|
|
1566
|
+
return RequestHelper.get()(this, "projects/" + pId + "/jobs/" + jId + "/artifacts/" + artifactPath, options);
|
|
1567
|
+
};
|
|
1568
|
+
// TODO move
|
|
1569
|
+
Jobs.prototype.downloadSingleArtifactFileFromRef = function (projectId, ref, artifactPath, jobName, _a) {
|
|
1570
|
+
if (_a === void 0) { _a = {}; }
|
|
1571
|
+
var _b = _a.stream, stream = _b === void 0 ? false : _b, options = __rest(_a, ["stream"]);
|
|
1572
|
+
var _c = __read([projectId, ref, jobName].map(encodeURIComponent), 3), pId = _c[0], rId = _c[1], name = _c[2];
|
|
1573
|
+
if (stream) {
|
|
1574
|
+
return RequestHelper.stream(this, "projects/" + pId + "/jobs/artifacts/" + rId + "/raw/" + artifactPath + "?job=" + name, options);
|
|
1575
|
+
}
|
|
1576
|
+
return RequestHelper.get()(this, "projects/" + pId + "/jobs/artifacts/" + rId + "/raw/" + artifactPath + "?job=" + name, options);
|
|
1577
|
+
};
|
|
1578
|
+
// TODO move
|
|
1579
|
+
Jobs.prototype.downloadLatestArtifactFile = function (projectId, ref, jobName, _a) {
|
|
1580
|
+
if (_a === void 0) { _a = {}; }
|
|
1581
|
+
var _b = _a.stream, stream = _b === void 0 ? false : _b, options = __rest(_a, ["stream"]);
|
|
1582
|
+
var _c = __read([projectId, ref, jobName].map(encodeURIComponent), 3), pId = _c[0], rId = _c[1], name = _c[2];
|
|
1583
|
+
if (stream) {
|
|
1584
|
+
return RequestHelper.stream(this, "projects/" + pId + "/jobs/artifacts/" + rId + "/download?job=" + name, options);
|
|
1585
|
+
}
|
|
1586
|
+
return RequestHelper.get()(this, "projects/" + pId + "/jobs/artifacts/" + rId + "/download?job=" + name, options);
|
|
1587
|
+
};
|
|
1588
|
+
Jobs.prototype.downloadTraceFile = function (projectId, jobId, options) {
|
|
1589
|
+
var _a = __read([projectId, jobId].map(encodeURIComponent), 2), pId = _a[0], jId = _a[1];
|
|
1590
|
+
return RequestHelper.get()(this, "projects/" + pId + "/jobs/" + jId + "/trace", options);
|
|
1591
|
+
};
|
|
1592
|
+
Jobs.prototype.erase = function (projectId, jobId, options) {
|
|
1593
|
+
var _a = __read([projectId, jobId].map(encodeURIComponent), 2), pId = _a[0], jId = _a[1];
|
|
1594
|
+
return RequestHelper.post()(this, "projects/" + pId + "/jobs/" + jId + "/erase", options);
|
|
1595
|
+
};
|
|
1596
|
+
// TODO move
|
|
1597
|
+
Jobs.prototype.eraseArtifacts = function (projectId, jobId, options) {
|
|
1598
|
+
var _a = __read([projectId, jobId].map(encodeURIComponent), 2), pId = _a[0], jId = _a[1];
|
|
1599
|
+
return RequestHelper.del()(this, "projects/" + pId + "/jobs/" + jId + "/artifacts", options);
|
|
1600
|
+
};
|
|
1601
|
+
// TODO move
|
|
1602
|
+
Jobs.prototype.keepArtifacts = function (projectId, jobId, options) {
|
|
1603
|
+
var _a = __read([projectId, jobId].map(encodeURIComponent), 2), pId = _a[0], jId = _a[1];
|
|
1604
|
+
return RequestHelper.post()(this, "projects/" + pId + "/jobs/" + jId + "/artifacts/keep", options);
|
|
1605
|
+
};
|
|
1606
|
+
Jobs.prototype.play = function (projectId, jobId, options) {
|
|
1607
|
+
var _a = __read([projectId, jobId].map(encodeURIComponent), 2), pId = _a[0], jId = _a[1];
|
|
1608
|
+
return RequestHelper.post()(this, "projects/" + pId + "/jobs/" + jId + "/play", options);
|
|
1609
|
+
};
|
|
1610
|
+
Jobs.prototype.retry = function (projectId, jobId, options) {
|
|
1611
|
+
var _a = __read([projectId, jobId].map(encodeURIComponent), 2), pId = _a[0], jId = _a[1];
|
|
1612
|
+
return RequestHelper.post()(this, "projects/" + pId + "/jobs/" + jId + "/retry", options);
|
|
1613
|
+
};
|
|
1614
|
+
Jobs.prototype.show = function (projectId, jobId, options) {
|
|
1615
|
+
var _a = __read([projectId, jobId].map(encodeURIComponent), 2), pId = _a[0], jId = _a[1];
|
|
1616
|
+
return RequestHelper.get()(this, "projects/" + pId + "/jobs/" + jId, options);
|
|
1617
|
+
};
|
|
1618
|
+
Jobs.prototype.showPipelineJobs = function (projectId, pipelineId, options) {
|
|
1619
|
+
var _a = __read([projectId, pipelineId].map(encodeURIComponent), 2), pId = _a[0], ppId = _a[1];
|
|
1620
|
+
return RequestHelper.get()(this, "projects/" + pId + "/pipelines/" + ppId + "/jobs", options);
|
|
1621
|
+
};
|
|
1622
|
+
Jobs.prototype.showPipelineBridges = function (projectId, pipelineId, options) {
|
|
1623
|
+
var _a = __read([projectId, pipelineId].map(encodeURIComponent), 2), pId = _a[0], ppId = _a[1];
|
|
1624
|
+
return RequestHelper.get()(this, "projects/" + pId + "/pipelines/" + ppId + "/bridges", options);
|
|
1625
|
+
};
|
|
1626
|
+
return Jobs;
|
|
1627
|
+
}(BaseResource));
|
|
1628
|
+
|
|
1629
|
+
var Labels = /** @class */ (function (_super) {
|
|
1630
|
+
__extends(Labels, _super);
|
|
1631
|
+
function Labels(options) {
|
|
1632
|
+
/* istanbul ignore next */
|
|
1633
|
+
return _super.call(this, 'projects', options) || this;
|
|
1634
|
+
}
|
|
1635
|
+
return Labels;
|
|
1636
|
+
}(ResourceLabels));
|
|
1637
|
+
|
|
1638
|
+
var MergeRequests = /** @class */ (function (_super) {
|
|
1639
|
+
__extends(MergeRequests, _super);
|
|
1640
|
+
function MergeRequests() {
|
|
1641
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1642
|
+
}
|
|
1643
|
+
MergeRequests.prototype.accept = function (projectId, mergerequestIid, options) {
|
|
1644
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1645
|
+
return RequestHelper.put()(this, "projects/" + pId + "/merge_requests/" + mIid + "/merge", options);
|
|
1646
|
+
};
|
|
1647
|
+
MergeRequests.prototype.addSpentTime = function (projectId, mergerequestIid, duration, options) {
|
|
1648
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1649
|
+
return RequestHelper.post()(this, "projects/" + pId + "/merge_requests/" + mIid + "/add_spent_time", __assign({ duration: duration }, options));
|
|
1650
|
+
};
|
|
1651
|
+
MergeRequests.prototype.addTimeEstimate = function (projectId, mergerequestIid, duration, options) {
|
|
1652
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1653
|
+
return RequestHelper.post()(this, "projects/" + pId + "/merge_requests/" + mIid + "/time_estimate", __assign({ duration: duration }, options));
|
|
1654
|
+
};
|
|
1655
|
+
MergeRequests.prototype.all = function (_a) {
|
|
1656
|
+
if (_a === void 0) { _a = {}; }
|
|
1657
|
+
var projectId = _a.projectId, groupId = _a.groupId, options = __rest(_a, ["projectId", "groupId"]);
|
|
1658
|
+
var url;
|
|
1659
|
+
if (projectId) {
|
|
1660
|
+
url = "projects/" + encodeURIComponent(projectId) + "/merge_requests";
|
|
1661
|
+
}
|
|
1662
|
+
else if (groupId) {
|
|
1663
|
+
url = "groups/" + encodeURIComponent(groupId) + "/merge_requests";
|
|
1664
|
+
}
|
|
1665
|
+
else {
|
|
1666
|
+
url = 'merge_requests';
|
|
1667
|
+
}
|
|
1668
|
+
return RequestHelper.get()(this, url, options);
|
|
1669
|
+
};
|
|
1670
|
+
MergeRequests.prototype.cancelOnPipelineSucess = function (projectId, mergerequestIid, options) {
|
|
1671
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1672
|
+
return RequestHelper.put()(this, "projects/" + pId + "/merge_requests/" + mIid + "/cancel_merge_when_pipeline_succeeds", options);
|
|
1673
|
+
};
|
|
1674
|
+
MergeRequests.prototype.changes = function (projectId, mergerequestIid, options) {
|
|
1675
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1676
|
+
return RequestHelper.get()(this, "projects/" + pId + "/merge_requests/" + mIid + "/changes", options);
|
|
1677
|
+
};
|
|
1678
|
+
MergeRequests.prototype.closesIssues = function (projectId, mergerequestIid, options) {
|
|
1679
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1680
|
+
return RequestHelper.get()(this, "projects/" + pId + "/merge_requests/" + mIid + "/closes_issues", options);
|
|
1681
|
+
};
|
|
1682
|
+
MergeRequests.prototype.commits = function (projectId, mergerequestIid, options) {
|
|
1683
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1684
|
+
return RequestHelper.get()(this, "projects/" + pId + "/merge_requests/" + mIid + "/commits", options);
|
|
1685
|
+
};
|
|
1686
|
+
MergeRequests.prototype.create = function (projectId, sourceBranch, targetBranch, title, options) {
|
|
1687
|
+
var pId = encodeURIComponent(projectId);
|
|
1688
|
+
return RequestHelper.post()(this, "projects/" + pId + "/merge_requests", __assign({ sourceBranch: sourceBranch, targetBranch: targetBranch, title: title }, options));
|
|
1689
|
+
};
|
|
1690
|
+
MergeRequests.prototype.edit = function (projectId, mergerequestIid, options) {
|
|
1691
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1692
|
+
return RequestHelper.put()(this, "projects/" + pId + "/merge_requests/" + mIid, options);
|
|
1693
|
+
};
|
|
1694
|
+
MergeRequests.prototype.participants = function (projectId, mergerequestIid, options) {
|
|
1695
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1696
|
+
return RequestHelper.get()(this, "projects/" + pId + "/merge_requests/" + mIid + "/participants", options);
|
|
1697
|
+
};
|
|
1698
|
+
MergeRequests.prototype.pipelines = function (projectId, mergerequestIid, options) {
|
|
1699
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1700
|
+
return RequestHelper.get()(this, "projects/" + pId + "/merge_requests/" + mIid + "/pipelines", options);
|
|
1701
|
+
};
|
|
1702
|
+
MergeRequests.prototype.rebase = function (projectId, mergerequestIid, options) {
|
|
1703
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1704
|
+
return RequestHelper.put()(this, "projects/" + pId + "/merge_requests/" + mIid + "/rebase", options);
|
|
1705
|
+
};
|
|
1706
|
+
MergeRequests.prototype.remove = function (projectId, mergerequestIid, options) {
|
|
1707
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1708
|
+
return RequestHelper.del()(this, "projects/" + pId + "/merge_requests/" + mIid, options);
|
|
1709
|
+
};
|
|
1710
|
+
MergeRequests.prototype.resetSpentTime = function (projectId, mergerequestIid, options) {
|
|
1711
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1712
|
+
return RequestHelper.post()(this, "projects/" + pId + "/merge_requests/" + mIid + "/reset_spent_time", options);
|
|
1713
|
+
};
|
|
1714
|
+
MergeRequests.prototype.resetTimeEstimate = function (projectId, mergerequestIid, options) {
|
|
1715
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1716
|
+
return RequestHelper.post()(this, "projects/" + pId + "/merge_requests/" + mIid + "/reset_time_estimate", options);
|
|
1717
|
+
};
|
|
1718
|
+
MergeRequests.prototype.show = function (projectId, mergerequestIid, options) {
|
|
1719
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1720
|
+
return RequestHelper.get()(this, "projects/" + pId + "/merge_requests/" + mIid, options);
|
|
1721
|
+
};
|
|
1722
|
+
MergeRequests.prototype.subscribe = function (projectId, mergerequestIid, options) {
|
|
1723
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1724
|
+
return RequestHelper.post()(this, "projects/" + pId + "/merge_requests/" + mIid + "/subscribe", options);
|
|
1725
|
+
};
|
|
1726
|
+
MergeRequests.prototype.timeStats = function (projectId, mergerequestIid, options) {
|
|
1727
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1728
|
+
return RequestHelper.get()(this, "projects/" + pId + "/merge_requests/" + mIid + "/time_stats", options);
|
|
1729
|
+
};
|
|
1730
|
+
MergeRequests.prototype.version = function (projectId, mergerequestIid, versionId, options) {
|
|
1731
|
+
var _a = __read([projectId, mergerequestIid, versionId].map(encodeURIComponent), 3), pId = _a[0], mIid = _a[1], vId = _a[2];
|
|
1732
|
+
return RequestHelper.get()(this, "projects/" + pId + "/merge_requests/" + mIid + "/versions/" + vId, options);
|
|
1733
|
+
};
|
|
1734
|
+
MergeRequests.prototype.versions = function (projectId, mergerequestIid, options) {
|
|
1735
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1736
|
+
return RequestHelper.get()(this, "projects/" + pId + "/merge_requests/" + mIid + "/versions", options);
|
|
1737
|
+
};
|
|
1738
|
+
MergeRequests.prototype.unsubscribe = function (projectId, mergerequestIid, options) {
|
|
1739
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1740
|
+
return RequestHelper.post()(this, "projects/" + pId + "/merge_requests/" + mIid + "/unsubscribe", options);
|
|
1741
|
+
};
|
|
1742
|
+
return MergeRequests;
|
|
1743
|
+
}(BaseResource));
|
|
1744
|
+
|
|
1745
|
+
var MergeRequestApprovals = /** @class */ (function (_super) {
|
|
1746
|
+
__extends(MergeRequestApprovals, _super);
|
|
1747
|
+
function MergeRequestApprovals() {
|
|
1748
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1749
|
+
}
|
|
1750
|
+
MergeRequestApprovals.prototype.configuration = function (projectId, _a) {
|
|
1751
|
+
if (_a === void 0) { _a = {}; }
|
|
1752
|
+
var mergerequestIid = _a.mergerequestIid, options = __rest(_a, ["mergerequestIid"]);
|
|
1753
|
+
var pId = encodeURIComponent(projectId);
|
|
1754
|
+
var url;
|
|
1755
|
+
if (mergerequestIid) {
|
|
1756
|
+
var mIid = encodeURIComponent(mergerequestIid);
|
|
1757
|
+
url = "projects/" + pId + "/merge_requests/" + mIid + "/approvals";
|
|
1758
|
+
}
|
|
1759
|
+
else {
|
|
1760
|
+
url = "projects/" + pId + "/approvals";
|
|
1761
|
+
}
|
|
1762
|
+
return RequestHelper.get()(this, url, options);
|
|
1763
|
+
};
|
|
1764
|
+
MergeRequestApprovals.prototype.editConfiguration = function (projectId, _a) {
|
|
1765
|
+
if (_a === void 0) { _a = {}; }
|
|
1766
|
+
var mergerequestIid = _a.mergerequestIid, options = __rest(_a, ["mergerequestIid"]);
|
|
1767
|
+
var pId = encodeURIComponent(projectId);
|
|
1768
|
+
var url;
|
|
1769
|
+
if (mergerequestIid) {
|
|
1770
|
+
var mIid = encodeURIComponent(mergerequestIid);
|
|
1771
|
+
url = "projects/" + pId + "/merge_requests/" + mIid + "/approvals";
|
|
1772
|
+
}
|
|
1773
|
+
else {
|
|
1774
|
+
url = "projects/" + pId + "/approvals";
|
|
1775
|
+
}
|
|
1776
|
+
return RequestHelper.post()(this, url, options);
|
|
1777
|
+
};
|
|
1778
|
+
MergeRequestApprovals.prototype.approvalRule = function (projectId, approvalRuleId, options) {
|
|
1779
|
+
var _a = __read([projectId, approvalRuleId].map(encodeURIComponent), 2), pId = _a[0], aId = _a[1];
|
|
1780
|
+
return RequestHelper.get()(this, "projects/" + pId + "/approval_rules/" + aId, options);
|
|
1781
|
+
};
|
|
1782
|
+
MergeRequestApprovals.prototype.approvalRules = function (projectId, _a) {
|
|
1783
|
+
if (_a === void 0) { _a = {}; }
|
|
1784
|
+
var mergerequestIid = _a.mergerequestIid, options = __rest(_a, ["mergerequestIid"]);
|
|
1785
|
+
var pId = encodeURIComponent(projectId);
|
|
1786
|
+
var url;
|
|
1787
|
+
if (mergerequestIid) {
|
|
1788
|
+
var mIid = encodeURIComponent(mergerequestIid);
|
|
1789
|
+
url = "projects/" + pId + "/merge_requests/" + mIid + "/approval_rules";
|
|
1790
|
+
}
|
|
1791
|
+
else {
|
|
1792
|
+
url = "projects/" + pId + "/approval_rules";
|
|
1793
|
+
}
|
|
1794
|
+
return RequestHelper.get()(this, url, options);
|
|
1795
|
+
};
|
|
1796
|
+
MergeRequestApprovals.prototype.addApprovalRule = function (projectId, name, approvalsRequired, _a) {
|
|
1797
|
+
if (_a === void 0) { _a = {}; }
|
|
1798
|
+
var mergerequestIid = _a.mergerequestIid, options = __rest(_a, ["mergerequestIid"]);
|
|
1799
|
+
var pId = encodeURIComponent(projectId);
|
|
1800
|
+
var url;
|
|
1801
|
+
if (mergerequestIid) {
|
|
1802
|
+
var mIid = encodeURIComponent(mergerequestIid);
|
|
1803
|
+
url = "projects/" + pId + "/merge_requests/" + mIid + "/approval_rules";
|
|
1804
|
+
}
|
|
1805
|
+
else {
|
|
1806
|
+
url = "projects/" + pId + "/approval_rules";
|
|
1807
|
+
}
|
|
1808
|
+
return RequestHelper.post()(this, url, __assign({ name: name, approvalsRequired: approvalsRequired }, options));
|
|
1809
|
+
};
|
|
1810
|
+
MergeRequestApprovals.prototype.approvalState = function (projectId, mergerequestIid, options) {
|
|
1811
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1812
|
+
return RequestHelper.get()(this, "projects/" + pId + "/merge_requests/" + mIid + "/approval_state", options);
|
|
1813
|
+
};
|
|
1814
|
+
MergeRequestApprovals.prototype.editApprovalRule = function (projectId, approvalRuleId, name, approvalsRequired, _a) {
|
|
1815
|
+
if (_a === void 0) { _a = {}; }
|
|
1816
|
+
var mergerequestIid = _a.mergerequestIid, options = __rest(_a, ["mergerequestIid"]);
|
|
1817
|
+
var _b = __read([projectId, approvalRuleId].map(encodeURIComponent), 2), pId = _b[0], aId = _b[1];
|
|
1818
|
+
var url;
|
|
1819
|
+
if (mergerequestIid) {
|
|
1820
|
+
var mIid = encodeURIComponent(mergerequestIid);
|
|
1821
|
+
url = "projects/" + pId + "/merge_requests/" + mIid + "/approval_rules/" + aId;
|
|
1822
|
+
}
|
|
1823
|
+
else {
|
|
1824
|
+
url = "projects/" + pId + "/approval_rules/" + aId;
|
|
1825
|
+
}
|
|
1826
|
+
return RequestHelper.put()(this, url, __assign({ name: name, approvalsRequired: approvalsRequired }, options));
|
|
1827
|
+
};
|
|
1828
|
+
MergeRequestApprovals.prototype.removeApprovalRule = function (projectId, approvalRuleId, _a) {
|
|
1829
|
+
var _b = _a === void 0 ? {} : _a, mergerequestIid = _b.mergerequestIid;
|
|
1830
|
+
var _c = __read([projectId, approvalRuleId].map(encodeURIComponent), 2), pId = _c[0], aId = _c[1];
|
|
1831
|
+
var url;
|
|
1832
|
+
if (mergerequestIid) {
|
|
1833
|
+
var mIid = encodeURIComponent(mergerequestIid);
|
|
1834
|
+
url = "projects/" + pId + "/merge_requests/" + mIid + "/approval_rules/" + aId;
|
|
1835
|
+
}
|
|
1836
|
+
else {
|
|
1837
|
+
url = "projects/" + pId + "/approval_rules/" + aId;
|
|
1838
|
+
}
|
|
1839
|
+
return RequestHelper.del()(this, url);
|
|
1840
|
+
};
|
|
1841
|
+
MergeRequestApprovals.prototype.approve = function (projectId, mergerequestIid, options) {
|
|
1842
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1843
|
+
return RequestHelper.post()(this, "projects/" + pId + "/merge_requests/" + mIid + "/approve", options);
|
|
1844
|
+
};
|
|
1845
|
+
MergeRequestApprovals.prototype.unapprove = function (projectId, mergerequestIid, options) {
|
|
1846
|
+
var _a = __read([projectId, mergerequestIid].map(encodeURIComponent), 2), pId = _a[0], mIid = _a[1];
|
|
1847
|
+
return RequestHelper.post()(this, "projects/" + pId + "/merge_requests/" + mIid + "/unapprove", options);
|
|
1848
|
+
};
|
|
1849
|
+
return MergeRequestApprovals;
|
|
1850
|
+
}(BaseResource));
|
|
1851
|
+
|
|
1852
|
+
var MergeRequestAwardEmojis = /** @class */ (function (_super) {
|
|
1853
|
+
__extends(MergeRequestAwardEmojis, _super);
|
|
1854
|
+
function MergeRequestAwardEmojis(options) {
|
|
1855
|
+
/* istanbul ignore next */
|
|
1856
|
+
return _super.call(this, 'merge_requests', options) || this;
|
|
1857
|
+
}
|
|
1858
|
+
return MergeRequestAwardEmojis;
|
|
1859
|
+
}(ResourceAwardEmojis));
|
|
1860
|
+
|
|
1861
|
+
var MergeRequestDiscussions = /** @class */ (function (_super) {
|
|
1862
|
+
__extends(MergeRequestDiscussions, _super);
|
|
1863
|
+
function MergeRequestDiscussions(options) {
|
|
1864
|
+
/* istanbul ignore next */
|
|
1865
|
+
return _super.call(this, 'projects', 'merge_requests', options) || this;
|
|
1866
|
+
}
|
|
1867
|
+
return MergeRequestDiscussions;
|
|
1868
|
+
}(ResourceDiscussions));
|
|
1869
|
+
|
|
1870
|
+
var MergeRequestNotes = /** @class */ (function (_super) {
|
|
1871
|
+
__extends(MergeRequestNotes, _super);
|
|
1872
|
+
function MergeRequestNotes(options) {
|
|
1873
|
+
/* istanbul ignore next */
|
|
1874
|
+
return _super.call(this, 'projects', 'merge_requests', options) || this;
|
|
1875
|
+
}
|
|
1876
|
+
return MergeRequestNotes;
|
|
1877
|
+
}(ResourceNotes));
|
|
1878
|
+
|
|
1879
|
+
var Packages = /** @class */ (function (_super) {
|
|
1880
|
+
__extends(Packages, _super);
|
|
1881
|
+
function Packages() {
|
|
1882
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1883
|
+
}
|
|
1884
|
+
Packages.prototype.all = function (_a) {
|
|
1885
|
+
if (_a === void 0) { _a = {}; }
|
|
1886
|
+
var projectId = _a.projectId, groupId = _a.groupId, options = __rest(_a, ["projectId", "groupId"]);
|
|
1887
|
+
var url;
|
|
1888
|
+
if (projectId) {
|
|
1889
|
+
url = "projects/" + encodeURIComponent(projectId) + "/packages";
|
|
1890
|
+
}
|
|
1891
|
+
else if (groupId) {
|
|
1892
|
+
url = "groups/" + encodeURIComponent(groupId) + "/packages";
|
|
1893
|
+
}
|
|
1894
|
+
else {
|
|
1895
|
+
throw new Error('projectId or groupId must be passed');
|
|
1896
|
+
}
|
|
1897
|
+
return RequestHelper.get()(this, url, options);
|
|
1898
|
+
};
|
|
1899
|
+
Packages.prototype.remove = function (projectId, packageId, options) {
|
|
1900
|
+
var _a = __read([projectId, packageId].map(encodeURIComponent), 2), pId = _a[0], pkgId = _a[1];
|
|
1901
|
+
return RequestHelper.del()(this, "projects/" + pId + "/packages/" + pkgId, options);
|
|
1902
|
+
};
|
|
1903
|
+
Packages.prototype.removeFile = function (projectId, packageId, projectFileId, options) {
|
|
1904
|
+
var _a = __read([projectId, packageId, projectFileId].map(encodeURIComponent), 3), pId = _a[0], pkgId = _a[1], pfId = _a[2];
|
|
1905
|
+
return RequestHelper.del()(this, "projects/" + pId + "/packages/" + pkgId + "/package_files/" + pfId, options);
|
|
1906
|
+
};
|
|
1907
|
+
Packages.prototype.show = function (projectId, packageId, options) {
|
|
1908
|
+
var _a = __read([projectId, packageId].map(encodeURIComponent), 2), pId = _a[0], pkgId = _a[1];
|
|
1909
|
+
return RequestHelper.get()(this, "projects/" + pId + "/packages/" + pkgId, options);
|
|
1910
|
+
};
|
|
1911
|
+
Packages.prototype.showFiles = function (projectId, packageId, options) {
|
|
1912
|
+
var _a = __read([projectId, packageId].map(encodeURIComponent), 2), pId = _a[0], pkgId = _a[1];
|
|
1913
|
+
return RequestHelper.get()(this, "projects/" + pId + "/packages/" + pkgId + "/package_files", options);
|
|
1914
|
+
};
|
|
1915
|
+
return Packages;
|
|
1916
|
+
}(BaseResource));
|
|
1917
|
+
|
|
1918
|
+
var PackageRegistry = /** @class */ (function (_super) {
|
|
1919
|
+
__extends(PackageRegistry, _super);
|
|
1920
|
+
function PackageRegistry() {
|
|
1921
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1922
|
+
}
|
|
1923
|
+
PackageRegistry.prototype.publish = function (projectId, packageName, packageVersion, filename, content, _a) {
|
|
1924
|
+
if (_a === void 0) { _a = {}; }
|
|
1925
|
+
var contentType = _a.contentType, options = __rest(_a, ["contentType"]);
|
|
1926
|
+
var pId = encodeURIComponent(projectId);
|
|
1927
|
+
var meta = { filename: filename, contentType: contentType };
|
|
1928
|
+
if (!meta.contentType)
|
|
1929
|
+
meta.contentType = lookup(meta.filename);
|
|
1930
|
+
return RequestHelper.put()(this, "projects/" + pId + "/packages/generic/" + packageName + "/" + packageVersion + "/" + filename, __assign({ isForm: true, file: [content, meta] }, options));
|
|
1931
|
+
};
|
|
1932
|
+
PackageRegistry.prototype.download = function (projectId, packageName, packageVersion, filename, options) {
|
|
1933
|
+
var pId = encodeURIComponent(projectId);
|
|
1934
|
+
return RequestHelper.get()(this, "projects/" + pId + "/packages/generic/" + packageName + "/" + packageVersion + "/" + filename, options);
|
|
1935
|
+
};
|
|
1936
|
+
return PackageRegistry;
|
|
1937
|
+
}(BaseResource));
|
|
1938
|
+
|
|
1939
|
+
// TODO: Add missing function
|
|
1940
|
+
var Pipelines = /** @class */ (function (_super) {
|
|
1941
|
+
__extends(Pipelines, _super);
|
|
1942
|
+
function Pipelines() {
|
|
1943
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1944
|
+
}
|
|
1945
|
+
Pipelines.prototype.all = function (projectId, options) {
|
|
1946
|
+
var pId = encodeURIComponent(projectId);
|
|
1947
|
+
return RequestHelper.get()(this, "projects/" + pId + "/pipelines", options);
|
|
1948
|
+
};
|
|
1949
|
+
Pipelines.prototype.create = function (projectId, ref, options) {
|
|
1950
|
+
var pId = encodeURIComponent(projectId);
|
|
1951
|
+
return RequestHelper.post()(this, "projects/" + pId + "/pipeline", __assign({ ref: ref }, options));
|
|
1952
|
+
};
|
|
1953
|
+
Pipelines.prototype.delete = function (projectId, pipelineId, options) {
|
|
1954
|
+
var pId = encodeURIComponent(projectId);
|
|
1955
|
+
return RequestHelper.del()(this, "projects/" + pId + "/pipelines/" + pipelineId, options);
|
|
1956
|
+
};
|
|
1957
|
+
Pipelines.prototype.show = function (projectId, pipelineId, options) {
|
|
1958
|
+
var pId = encodeURIComponent(projectId);
|
|
1959
|
+
return RequestHelper.get()(this, "projects/" + pId + "/pipelines/" + pipelineId, options);
|
|
1960
|
+
};
|
|
1961
|
+
Pipelines.prototype.retry = function (projectId, pipelineId, options) {
|
|
1962
|
+
var pId = encodeURIComponent(projectId);
|
|
1963
|
+
return RequestHelper.post()(this, "projects/" + pId + "/pipelines/" + pipelineId + "/retry", options);
|
|
1964
|
+
};
|
|
1965
|
+
Pipelines.prototype.cancel = function (projectId, pipelineId, options) {
|
|
1966
|
+
var pId = encodeURIComponent(projectId);
|
|
1967
|
+
return RequestHelper.post()(this, "projects/" + pId + "/pipelines/" + pipelineId + "/cancel", options);
|
|
1968
|
+
};
|
|
1969
|
+
Pipelines.prototype.allVariables = function (projectId, pipelineId, options) {
|
|
1970
|
+
var _a = __read([projectId, pipelineId].map(encodeURIComponent), 2), pId = _a[0], pipeId = _a[1];
|
|
1971
|
+
return RequestHelper.get()(this, "projects/" + pId + "/pipelines/" + pipeId + "/variables", options);
|
|
1972
|
+
};
|
|
1973
|
+
return Pipelines;
|
|
1974
|
+
}(BaseResource));
|
|
1975
|
+
|
|
1976
|
+
var PipelineSchedules = /** @class */ (function (_super) {
|
|
1977
|
+
__extends(PipelineSchedules, _super);
|
|
1978
|
+
function PipelineSchedules() {
|
|
1979
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1980
|
+
}
|
|
1981
|
+
PipelineSchedules.prototype.all = function (projectId, options) {
|
|
1982
|
+
var pId = encodeURIComponent(projectId);
|
|
1983
|
+
return RequestHelper.get()(this, "projects/" + pId + "/pipeline_schedules", options);
|
|
1984
|
+
};
|
|
1985
|
+
PipelineSchedules.prototype.create = function (projectId, description, ref, cron, options) {
|
|
1986
|
+
var pId = encodeURIComponent(projectId);
|
|
1987
|
+
return RequestHelper.post()(this, "projects/" + pId + "/pipeline_schedules", __assign({ description: description, ref: ref, cron: cron }, options));
|
|
1988
|
+
};
|
|
1989
|
+
PipelineSchedules.prototype.edit = function (projectId, scheduleId, options) {
|
|
1990
|
+
var _a = __read([projectId, scheduleId].map(encodeURIComponent), 2), pId = _a[0], sId = _a[1];
|
|
1991
|
+
return RequestHelper.put()(this, "projects/" + pId + "/pipeline_schedules/" + sId, options);
|
|
1992
|
+
};
|
|
1993
|
+
PipelineSchedules.prototype.remove = function (projectId, scheduleId, options) {
|
|
1994
|
+
var _a = __read([projectId, scheduleId].map(encodeURIComponent), 2), pId = _a[0], sId = _a[1];
|
|
1995
|
+
return RequestHelper.del()(this, "projects/" + pId + "/pipeline_schedules/" + sId, options);
|
|
1996
|
+
};
|
|
1997
|
+
PipelineSchedules.prototype.show = function (projectId, scheduleId, options) {
|
|
1998
|
+
var _a = __read([projectId, scheduleId].map(encodeURIComponent), 2), pId = _a[0], sId = _a[1];
|
|
1999
|
+
return RequestHelper.get()(this, "projects/" + pId + "/pipeline_schedules/" + sId, options);
|
|
2000
|
+
};
|
|
2001
|
+
PipelineSchedules.prototype.takeOwnership = function (projectId, scheduleId, options) {
|
|
2002
|
+
var _a = __read([projectId, scheduleId].map(encodeURIComponent), 2), pId = _a[0], sId = _a[1];
|
|
2003
|
+
return RequestHelper.post()(this, "projects/" + pId + "/pipeline_schedules/" + sId + "/take_ownership", options);
|
|
2004
|
+
};
|
|
2005
|
+
return PipelineSchedules;
|
|
2006
|
+
}(BaseResource));
|
|
2007
|
+
|
|
2008
|
+
var PipelineScheduleVariables = /** @class */ (function (_super) {
|
|
2009
|
+
__extends(PipelineScheduleVariables, _super);
|
|
2010
|
+
function PipelineScheduleVariables() {
|
|
2011
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2012
|
+
}
|
|
2013
|
+
PipelineScheduleVariables.prototype.all = function (projectId, pipelineScheduleId, options) {
|
|
2014
|
+
var _a = __read([projectId, pipelineScheduleId].map(encodeURIComponent), 2), pId = _a[0], psId = _a[1];
|
|
2015
|
+
return RequestHelper.get()(this, "projects/" + pId + "/pipeline_schedules/" + psId + "/variables", options);
|
|
2016
|
+
};
|
|
2017
|
+
PipelineScheduleVariables.prototype.create = function (projectId, pipelineScheduleId, options) {
|
|
2018
|
+
var _a = __read([projectId, pipelineScheduleId].map(encodeURIComponent), 2), pId = _a[0], psId = _a[1];
|
|
2019
|
+
return RequestHelper.post()(this, "projects/" + pId + "/pipeline_schedules/" + psId + "/variables", options);
|
|
2020
|
+
};
|
|
2021
|
+
PipelineScheduleVariables.prototype.edit = function (projectId, pipelineScheduleId, keyId, options) {
|
|
2022
|
+
var _a = __read([projectId, pipelineScheduleId, keyId].map(encodeURIComponent), 3), pId = _a[0], psId = _a[1], kId = _a[2];
|
|
2023
|
+
return RequestHelper.put()(this, "projects/" + pId + "/pipeline_schedules/" + psId + "/variables/" + kId, options);
|
|
2024
|
+
};
|
|
2025
|
+
PipelineScheduleVariables.prototype.show = function (projectId, pipelineScheduleId, keyId, options) {
|
|
2026
|
+
var _a = __read([projectId, pipelineScheduleId, keyId].map(encodeURIComponent), 3), pId = _a[0], psId = _a[1], kId = _a[2];
|
|
2027
|
+
return RequestHelper.get()(this, "projects/" + pId + "/pipeline_schedules/" + psId + "/variables/" + kId, options);
|
|
2028
|
+
};
|
|
2029
|
+
PipelineScheduleVariables.prototype.remove = function (projectId, pipelineScheduleId, keyId, options) {
|
|
2030
|
+
var _a = __read([projectId, pipelineScheduleId, keyId].map(encodeURIComponent), 3), pId = _a[0], psId = _a[1], kId = _a[2];
|
|
2031
|
+
return RequestHelper.del()(this, "projects/" + pId + "/pipeline_schedules/" + psId + "/variables/" + kId, options);
|
|
2032
|
+
};
|
|
2033
|
+
return PipelineScheduleVariables;
|
|
2034
|
+
}(BaseResource));
|
|
2035
|
+
|
|
2036
|
+
var defaultMetadata = {
|
|
2037
|
+
filename: Date.now().toString() + ".tar.gz",
|
|
2038
|
+
};
|
|
2039
|
+
var ProjectImportExport = /** @class */ (function (_super) {
|
|
2040
|
+
__extends(ProjectImportExport, _super);
|
|
2041
|
+
function ProjectImportExport() {
|
|
2042
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2043
|
+
}
|
|
2044
|
+
ProjectImportExport.prototype.download = function (projectId, options) {
|
|
2045
|
+
var pId = encodeURIComponent(projectId);
|
|
2046
|
+
return RequestHelper.get()(this, "projects/" + pId + "/export/download", options);
|
|
2047
|
+
};
|
|
2048
|
+
ProjectImportExport.prototype.exportStatus = function (projectId, options) {
|
|
2049
|
+
var pId = encodeURIComponent(projectId);
|
|
2050
|
+
return RequestHelper.get()(this, "projects/" + pId + "/export", options);
|
|
2051
|
+
};
|
|
2052
|
+
ProjectImportExport.prototype.import = function (content, path, _a) {
|
|
2053
|
+
if (_a === void 0) { _a = {}; }
|
|
2054
|
+
var metadata = _a.metadata, options = __rest(_a, ["metadata"]);
|
|
2055
|
+
var meta = __assign(__assign({}, defaultMetadata), metadata);
|
|
2056
|
+
if (!meta.contentType)
|
|
2057
|
+
meta.contentType = lookup(meta.filename);
|
|
2058
|
+
return RequestHelper.post()(this, 'projects/import', __assign(__assign({ isForm: true }, options), { file: [content, meta], path: path }));
|
|
2059
|
+
};
|
|
2060
|
+
ProjectImportExport.prototype.importStatus = function (projectId, options) {
|
|
2061
|
+
var pId = encodeURIComponent(projectId);
|
|
2062
|
+
return RequestHelper.get()(this, "projects/" + pId + "/import", options);
|
|
2063
|
+
};
|
|
2064
|
+
ProjectImportExport.prototype.schedule = function (projectId, options) {
|
|
2065
|
+
var pId = encodeURIComponent(projectId);
|
|
2066
|
+
return RequestHelper.post()(this, "projects/" + pId + "/export", options);
|
|
2067
|
+
};
|
|
2068
|
+
return ProjectImportExport;
|
|
2069
|
+
}(BaseResource));
|
|
2070
|
+
|
|
2071
|
+
var Projects = /** @class */ (function (_super) {
|
|
2072
|
+
__extends(Projects, _super);
|
|
2073
|
+
function Projects() {
|
|
2074
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2075
|
+
}
|
|
2076
|
+
Projects.prototype.all = function (options) {
|
|
2077
|
+
return RequestHelper.get()(this, 'projects', options);
|
|
2078
|
+
};
|
|
2079
|
+
Projects.prototype.archive = function (projectId, options) {
|
|
2080
|
+
var pId = encodeURIComponent(projectId);
|
|
2081
|
+
return RequestHelper.post()(this, "projects/" + pId + "/archive", options);
|
|
2082
|
+
};
|
|
2083
|
+
Projects.prototype.create = function (_a) {
|
|
2084
|
+
var userId = _a.userId, options = __rest(_a, ["userId"]);
|
|
2085
|
+
var url = userId ? "projects/user/" + encodeURIComponent(userId) : 'projects';
|
|
2086
|
+
return RequestHelper.post()(this, url, options);
|
|
2087
|
+
};
|
|
2088
|
+
Projects.prototype.edit = function (projectId, options) {
|
|
2089
|
+
var pId = encodeURIComponent(projectId);
|
|
2090
|
+
return RequestHelper.put()(this, "projects/" + pId, options);
|
|
2091
|
+
};
|
|
2092
|
+
Projects.prototype.fork = function (projectId, _a) {
|
|
2093
|
+
if (_a === void 0) { _a = {}; }
|
|
2094
|
+
var forkedFromId = _a.forkedFromId, options = __rest(_a, ["forkedFromId"]);
|
|
2095
|
+
var pId = encodeURIComponent(projectId);
|
|
2096
|
+
var url = "projects/" + pId + "/fork";
|
|
2097
|
+
if (forkedFromId)
|
|
2098
|
+
url += "/" + encodeURIComponent(forkedFromId);
|
|
2099
|
+
return RequestHelper.post()(this, url, options);
|
|
2100
|
+
};
|
|
2101
|
+
Projects.prototype.forks = function (projectId, options) {
|
|
2102
|
+
var pId = encodeURIComponent(projectId);
|
|
2103
|
+
return RequestHelper.get()(this, "projects/" + pId + "/forks", options);
|
|
2104
|
+
};
|
|
2105
|
+
Projects.prototype.languages = function (projectId, options) {
|
|
2106
|
+
var pId = encodeURIComponent(projectId);
|
|
2107
|
+
return RequestHelper.get()(this, "projects/" + pId + "/languages", options);
|
|
2108
|
+
};
|
|
2109
|
+
Projects.prototype.mirrorPull = function (projectId, options) {
|
|
2110
|
+
var pId = encodeURIComponent(projectId);
|
|
2111
|
+
return RequestHelper.post()(this, "projects/" + pId + "/mirror/pull", options);
|
|
2112
|
+
};
|
|
2113
|
+
Projects.prototype.remove = function (projectId, options) {
|
|
2114
|
+
var pId = encodeURIComponent(projectId);
|
|
2115
|
+
return RequestHelper.del()(this, "projects/" + pId, options);
|
|
2116
|
+
};
|
|
2117
|
+
Projects.prototype.removeFork = function (projectId, options) {
|
|
2118
|
+
var pId = encodeURIComponent(projectId);
|
|
2119
|
+
return RequestHelper.del()(this, "projects/" + pId + "/fork", options);
|
|
2120
|
+
};
|
|
2121
|
+
Projects.prototype.search = function (projectName, options) {
|
|
2122
|
+
return RequestHelper.get()(this, 'projects', __assign({ search: projectName }, options));
|
|
2123
|
+
};
|
|
2124
|
+
Projects.prototype.share = function (projectId, groupId, groupAccess, options) {
|
|
2125
|
+
var pId = encodeURIComponent(projectId);
|
|
2126
|
+
return RequestHelper.post()(this, "projects/" + pId + "/share", __assign({ groupId: groupId, groupAccess: groupAccess }, options));
|
|
2127
|
+
};
|
|
2128
|
+
Projects.prototype.show = function (projectId, options) {
|
|
2129
|
+
var pId = encodeURIComponent(projectId);
|
|
2130
|
+
return RequestHelper.get()(this, "projects/" + pId, options);
|
|
2131
|
+
};
|
|
2132
|
+
Projects.prototype.star = function (projectId, options) {
|
|
2133
|
+
var pId = encodeURIComponent(projectId);
|
|
2134
|
+
return RequestHelper.post()(this, "projects/" + pId + "/star", options);
|
|
2135
|
+
};
|
|
2136
|
+
Projects.prototype.transfer = function (projectId, namespaceId) {
|
|
2137
|
+
var pId = encodeURIComponent(projectId);
|
|
2138
|
+
return RequestHelper.put()(this, "projects/" + pId + "/transfer", {
|
|
2139
|
+
namespace: namespaceId,
|
|
2140
|
+
});
|
|
2141
|
+
};
|
|
2142
|
+
Projects.prototype.unarchive = function (projectId, options) {
|
|
2143
|
+
var pId = encodeURIComponent(projectId);
|
|
2144
|
+
return RequestHelper.post()(this, "projects/" + pId + "/unarchive", options);
|
|
2145
|
+
};
|
|
2146
|
+
Projects.prototype.unshare = function (projectId, groupId, options) {
|
|
2147
|
+
var _a = __read([projectId, groupId].map(encodeURIComponent), 2), pId = _a[0], gId = _a[1];
|
|
2148
|
+
return RequestHelper.del()(this, "projects/" + pId + "/share/" + gId, options);
|
|
2149
|
+
};
|
|
2150
|
+
Projects.prototype.unstar = function (projectId, options) {
|
|
2151
|
+
var pId = encodeURIComponent(projectId);
|
|
2152
|
+
return RequestHelper.post()(this, "projects/" + pId + "/unstar", options);
|
|
2153
|
+
};
|
|
2154
|
+
Projects.prototype.upload = function (projectId, content, _a) {
|
|
2155
|
+
if (_a === void 0) { _a = {}; }
|
|
2156
|
+
var metadata = _a.metadata, options = __rest(_a, ["metadata"]);
|
|
2157
|
+
var pId = encodeURIComponent(projectId);
|
|
2158
|
+
var meta = __assign(__assign({}, defaultMetadata), metadata);
|
|
2159
|
+
if (!meta.contentType)
|
|
2160
|
+
meta.contentType = lookup(meta.filename);
|
|
2161
|
+
return RequestHelper.post()(this, "projects/" + pId + "/uploads", __assign({ isForm: true, file: [content, meta] }, options));
|
|
2162
|
+
};
|
|
2163
|
+
return Projects;
|
|
2164
|
+
}(BaseResource));
|
|
2165
|
+
|
|
2166
|
+
var ProjectAccessRequests = /** @class */ (function (_super) {
|
|
2167
|
+
__extends(ProjectAccessRequests, _super);
|
|
2168
|
+
function ProjectAccessRequests(options) {
|
|
2169
|
+
/* istanbul ignore next */
|
|
2170
|
+
return _super.call(this, 'projects', options) || this;
|
|
2171
|
+
}
|
|
2172
|
+
return ProjectAccessRequests;
|
|
2173
|
+
}(ResourceAccessRequests));
|
|
2174
|
+
|
|
2175
|
+
var ProjectBadges = /** @class */ (function (_super) {
|
|
2176
|
+
__extends(ProjectBadges, _super);
|
|
2177
|
+
function ProjectBadges(options) {
|
|
2178
|
+
/* istanbul ignore next */
|
|
2179
|
+
return _super.call(this, 'projects', options) || this;
|
|
2180
|
+
}
|
|
2181
|
+
return ProjectBadges;
|
|
2182
|
+
}(ResourceBadges));
|
|
2183
|
+
|
|
2184
|
+
var ProjectCustomAttributes = /** @class */ (function (_super) {
|
|
2185
|
+
__extends(ProjectCustomAttributes, _super);
|
|
2186
|
+
function ProjectCustomAttributes(options) {
|
|
2187
|
+
/* istanbul ignore next */
|
|
2188
|
+
return _super.call(this, 'projects', options) || this;
|
|
2189
|
+
}
|
|
2190
|
+
return ProjectCustomAttributes;
|
|
2191
|
+
}(ResourceCustomAttributes));
|
|
2192
|
+
|
|
2193
|
+
var ProjectIssueBoards = /** @class */ (function (_super) {
|
|
2194
|
+
__extends(ProjectIssueBoards, _super);
|
|
2195
|
+
function ProjectIssueBoards(options) {
|
|
2196
|
+
/* istanbul ignore next */
|
|
2197
|
+
return _super.call(this, 'projects', options) || this;
|
|
2198
|
+
}
|
|
2199
|
+
return ProjectIssueBoards;
|
|
2200
|
+
}(ResourceIssueBoards));
|
|
2201
|
+
|
|
2202
|
+
var ProjectHooks = /** @class */ (function (_super) {
|
|
2203
|
+
__extends(ProjectHooks, _super);
|
|
2204
|
+
function ProjectHooks() {
|
|
2205
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2206
|
+
}
|
|
2207
|
+
ProjectHooks.prototype.all = function (projectId, options) {
|
|
2208
|
+
var pId = encodeURIComponent(projectId);
|
|
2209
|
+
return RequestHelper.get()(this, "projects/" + pId + "/hooks", options);
|
|
2210
|
+
};
|
|
2211
|
+
ProjectHooks.prototype.show = function (projectId, hookId, options) {
|
|
2212
|
+
var _a = __read([projectId, hookId].map(encodeURIComponent), 2), pId = _a[0], hId = _a[1];
|
|
2213
|
+
return RequestHelper.get()(this, "projects/" + pId + "/hooks/" + hId, options);
|
|
2214
|
+
};
|
|
2215
|
+
ProjectHooks.prototype.add = function (projectId, url, options) {
|
|
2216
|
+
var pId = encodeURIComponent(projectId);
|
|
2217
|
+
return RequestHelper.post()(this, "projects/" + pId + "/hooks", __assign({ url: url }, options));
|
|
2218
|
+
};
|
|
2219
|
+
ProjectHooks.prototype.edit = function (projectId, hookId, url, options) {
|
|
2220
|
+
var _a = __read([projectId, hookId].map(encodeURIComponent), 2), pId = _a[0], hId = _a[1];
|
|
2221
|
+
return RequestHelper.put()(this, "projects/" + pId + "/hooks/" + hId, __assign({ url: url }, options));
|
|
2222
|
+
};
|
|
2223
|
+
ProjectHooks.prototype.remove = function (projectId, hookId, options) {
|
|
2224
|
+
var _a = __read([projectId, hookId].map(encodeURIComponent), 2), pId = _a[0], hId = _a[1];
|
|
2225
|
+
return RequestHelper.del()(this, "projects/" + pId + "/hooks/" + hId, options);
|
|
2226
|
+
};
|
|
2227
|
+
return ProjectHooks;
|
|
2228
|
+
}(BaseResource));
|
|
2229
|
+
|
|
2230
|
+
var ProjectMembers = /** @class */ (function (_super) {
|
|
2231
|
+
__extends(ProjectMembers, _super);
|
|
2232
|
+
function ProjectMembers(options) {
|
|
2233
|
+
/* istanbul ignore next */
|
|
2234
|
+
return _super.call(this, 'projects', options) || this;
|
|
2235
|
+
}
|
|
2236
|
+
return ProjectMembers;
|
|
2237
|
+
}(ResourceMembers));
|
|
2238
|
+
|
|
2239
|
+
var ProjectMilestones = /** @class */ (function (_super) {
|
|
2240
|
+
__extends(ProjectMilestones, _super);
|
|
2241
|
+
function ProjectMilestones(options) {
|
|
2242
|
+
/* istanbul ignore next */
|
|
2243
|
+
return _super.call(this, 'projects', options) || this;
|
|
2244
|
+
}
|
|
2245
|
+
return ProjectMilestones;
|
|
2246
|
+
}(ResourceMilestones));
|
|
2247
|
+
|
|
2248
|
+
var ProjectSnippets = /** @class */ (function (_super) {
|
|
2249
|
+
__extends(ProjectSnippets, _super);
|
|
2250
|
+
function ProjectSnippets() {
|
|
2251
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2252
|
+
}
|
|
2253
|
+
ProjectSnippets.prototype.all = function (projectId, options) {
|
|
2254
|
+
var pId = encodeURIComponent(projectId);
|
|
2255
|
+
return RequestHelper.get()(this, "projects/" + pId + "/snippets", options);
|
|
2256
|
+
};
|
|
2257
|
+
ProjectSnippets.prototype.content = function (projectId, snippetId, options) {
|
|
2258
|
+
var _a = __read([projectId, snippetId].map(encodeURIComponent), 2), pId = _a[0], sId = _a[1];
|
|
2259
|
+
return RequestHelper.get()(this, "projects/" + pId + "/snippets/" + sId + "/raw", options);
|
|
2260
|
+
};
|
|
2261
|
+
ProjectSnippets.prototype.create = function (projectId, title, fileName, code, visibility, options) {
|
|
2262
|
+
var pId = encodeURIComponent(projectId);
|
|
2263
|
+
return RequestHelper.post()(this, "projects/" + pId + "/snippets", __assign({ title: title, fileName: fileName, code: code, visibility: visibility }, options));
|
|
2264
|
+
};
|
|
2265
|
+
ProjectSnippets.prototype.edit = function (projectId, snippetId, options) {
|
|
2266
|
+
var _a = __read([projectId, snippetId].map(encodeURIComponent), 2), pId = _a[0], sId = _a[1];
|
|
2267
|
+
return RequestHelper.put()(this, "projects/" + pId + "/snippets/" + sId, options);
|
|
2268
|
+
};
|
|
2269
|
+
ProjectSnippets.prototype.remove = function (projectId, snippetId, options) {
|
|
2270
|
+
var _a = __read([projectId, snippetId].map(encodeURIComponent), 2), pId = _a[0], sId = _a[1];
|
|
2271
|
+
return RequestHelper.del()(this, "projects/" + pId + "/snippets/" + sId, options);
|
|
2272
|
+
};
|
|
2273
|
+
ProjectSnippets.prototype.show = function (projectId, snippetId, options) {
|
|
2274
|
+
var _a = __read([projectId, snippetId].map(encodeURIComponent), 2), pId = _a[0], sId = _a[1];
|
|
2275
|
+
return RequestHelper.get()(this, "projects/" + pId + "/snippets/" + sId, options);
|
|
2276
|
+
};
|
|
2277
|
+
ProjectSnippets.prototype.userAgentDetails = function (projectId, snippetId, options) {
|
|
2278
|
+
var _a = __read([projectId, snippetId].map(encodeURIComponent), 2), pId = _a[0], sId = _a[1];
|
|
2279
|
+
return RequestHelper.get()(this, "projects/" + pId + "/snippets/" + sId + "/user_agent_detail", options);
|
|
2280
|
+
};
|
|
2281
|
+
return ProjectSnippets;
|
|
2282
|
+
}(BaseResource));
|
|
2283
|
+
|
|
2284
|
+
var ProjectSnippetNotes = /** @class */ (function (_super) {
|
|
2285
|
+
__extends(ProjectSnippetNotes, _super);
|
|
2286
|
+
function ProjectSnippetNotes(options) {
|
|
2287
|
+
/* istanbul ignore next */
|
|
2288
|
+
return _super.call(this, 'projects', 'snippets', options) || this;
|
|
2289
|
+
}
|
|
2290
|
+
return ProjectSnippetNotes;
|
|
2291
|
+
}(ResourceNotes));
|
|
2292
|
+
|
|
2293
|
+
var ProjectSnippetDiscussions = /** @class */ (function (_super) {
|
|
2294
|
+
__extends(ProjectSnippetDiscussions, _super);
|
|
2295
|
+
function ProjectSnippetDiscussions(options) {
|
|
2296
|
+
/* istanbul ignore next */
|
|
2297
|
+
return _super.call(this, 'projects', 'snippets', options) || this;
|
|
2298
|
+
}
|
|
2299
|
+
return ProjectSnippetDiscussions;
|
|
2300
|
+
}(ResourceDiscussions));
|
|
2301
|
+
|
|
2302
|
+
var ProjectSnippetAwardEmojis = /** @class */ (function (_super) {
|
|
2303
|
+
__extends(ProjectSnippetAwardEmojis, _super);
|
|
2304
|
+
function ProjectSnippetAwardEmojis(options) {
|
|
2305
|
+
/* istanbul ignore next */
|
|
2306
|
+
return _super.call(this, 'snippets', options) || this;
|
|
2307
|
+
}
|
|
2308
|
+
return ProjectSnippetAwardEmojis;
|
|
2309
|
+
}(ResourceAwardEmojis));
|
|
2310
|
+
|
|
2311
|
+
var ProtectedBranches = /** @class */ (function (_super) {
|
|
2312
|
+
__extends(ProtectedBranches, _super);
|
|
2313
|
+
function ProtectedBranches() {
|
|
2314
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2315
|
+
}
|
|
2316
|
+
ProtectedBranches.prototype.all = function (projectId, options) {
|
|
2317
|
+
if (options === void 0) { options = {}; }
|
|
2318
|
+
var pId = encodeURIComponent(projectId);
|
|
2319
|
+
return RequestHelper.get()(this, "projects/" + pId + "/protected_branches", options);
|
|
2320
|
+
};
|
|
2321
|
+
ProtectedBranches.prototype.protect = function (projectId, branchName, options) {
|
|
2322
|
+
var pId = encodeURIComponent(projectId);
|
|
2323
|
+
return RequestHelper.post()(this, "projects/" + pId + "/protected_branches", {
|
|
2324
|
+
query: __assign({ name: branchName }, options),
|
|
2325
|
+
});
|
|
2326
|
+
};
|
|
2327
|
+
ProtectedBranches.prototype.show = function (projectId, branchName, options) {
|
|
2328
|
+
var _a = __read([projectId, branchName].map(encodeURIComponent), 2), pId = _a[0], bName = _a[1];
|
|
2329
|
+
return RequestHelper.get()(this, "projects/" + pId + "/protected_branches/" + bName, options);
|
|
2330
|
+
};
|
|
2331
|
+
ProtectedBranches.prototype.unprotect = function (projectId, branchName, options) {
|
|
2332
|
+
var _a = __read([projectId, branchName].map(encodeURIComponent), 2), pId = _a[0], bName = _a[1];
|
|
2333
|
+
return RequestHelper.del()(this, "projects/" + pId + "/protected_branches/" + bName, options);
|
|
2334
|
+
};
|
|
2335
|
+
return ProtectedBranches;
|
|
2336
|
+
}(BaseResource));
|
|
2337
|
+
|
|
2338
|
+
var ProtectedTags = /** @class */ (function (_super) {
|
|
2339
|
+
__extends(ProtectedTags, _super);
|
|
2340
|
+
function ProtectedTags() {
|
|
2341
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2342
|
+
}
|
|
2343
|
+
ProtectedTags.prototype.all = function (projectId, options) {
|
|
2344
|
+
var pId = encodeURIComponent(projectId);
|
|
2345
|
+
return RequestHelper.get()(this, "projects/" + pId + "/protected_tags", options);
|
|
2346
|
+
};
|
|
2347
|
+
ProtectedTags.prototype.protect = function (projectId, tagName, options) {
|
|
2348
|
+
var pId = encodeURIComponent(projectId);
|
|
2349
|
+
return RequestHelper.post()(this, "projects/" + pId + "/protected_tags", __assign({ name: tagName }, options));
|
|
2350
|
+
};
|
|
2351
|
+
ProtectedTags.prototype.show = function (projectId, tagName, options) {
|
|
2352
|
+
var _a = __read([projectId, tagName].map(encodeURIComponent), 2), pId = _a[0], tName = _a[1];
|
|
2353
|
+
return RequestHelper.get()(this, "projects/" + pId + "/protected_tags/" + tName, options);
|
|
2354
|
+
};
|
|
2355
|
+
ProtectedTags.prototype.unprotect = function (projectId, tagName, options) {
|
|
2356
|
+
var _a = __read([projectId, tagName].map(encodeURIComponent), 2), pId = _a[0], tName = _a[1];
|
|
2357
|
+
return RequestHelper.del()(this, "projects/" + pId + "/protected_tags/" + tName, options);
|
|
2358
|
+
};
|
|
2359
|
+
return ProtectedTags;
|
|
2360
|
+
}(BaseResource));
|
|
2361
|
+
|
|
2362
|
+
var ProjectVariables = /** @class */ (function (_super) {
|
|
2363
|
+
__extends(ProjectVariables, _super);
|
|
2364
|
+
function ProjectVariables(options) {
|
|
2365
|
+
/* istanbul ignore next */
|
|
2366
|
+
return _super.call(this, 'projects', options) || this;
|
|
2367
|
+
}
|
|
2368
|
+
return ProjectVariables;
|
|
2369
|
+
}(ResourceVariables));
|
|
2370
|
+
|
|
2371
|
+
var ProjectDeployTokens = /** @class */ (function (_super) {
|
|
2372
|
+
__extends(ProjectDeployTokens, _super);
|
|
2373
|
+
function ProjectDeployTokens(options) {
|
|
2374
|
+
/* istanbul ignore next */
|
|
2375
|
+
return _super.call(this, 'projects', options) || this;
|
|
2376
|
+
}
|
|
2377
|
+
return ProjectDeployTokens;
|
|
2378
|
+
}(ResourceDeployTokens));
|
|
2379
|
+
|
|
2380
|
+
var PushRules = /** @class */ (function (_super) {
|
|
2381
|
+
__extends(PushRules, _super);
|
|
2382
|
+
function PushRules() {
|
|
2383
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2384
|
+
}
|
|
2385
|
+
PushRules.prototype.create = function (projectId, options) {
|
|
2386
|
+
var pId = encodeURIComponent(projectId);
|
|
2387
|
+
return RequestHelper.post()(this, "projects/" + pId + "/push_rule", options);
|
|
2388
|
+
};
|
|
2389
|
+
PushRules.prototype.edit = function (projectId, options) {
|
|
2390
|
+
var pId = encodeURIComponent(projectId);
|
|
2391
|
+
return RequestHelper.put()(this, "projects/" + pId + "/push_rule", options);
|
|
2392
|
+
};
|
|
2393
|
+
PushRules.prototype.remove = function (projectId, options) {
|
|
2394
|
+
var pId = encodeURIComponent(projectId);
|
|
2395
|
+
return RequestHelper.del()(this, "projects/" + pId + "/push_rule", options);
|
|
2396
|
+
};
|
|
2397
|
+
PushRules.prototype.show = function (projectId, options) {
|
|
2398
|
+
var pId = encodeURIComponent(projectId);
|
|
2399
|
+
return RequestHelper.get()(this, "projects/" + pId + "/push_rule", options);
|
|
2400
|
+
};
|
|
2401
|
+
return PushRules;
|
|
2402
|
+
}(BaseResource));
|
|
2403
|
+
|
|
2404
|
+
// TODO: Add missing functions
|
|
2405
|
+
var Releases = /** @class */ (function (_super) {
|
|
2406
|
+
__extends(Releases, _super);
|
|
2407
|
+
function Releases() {
|
|
2408
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2409
|
+
}
|
|
2410
|
+
Releases.prototype.all = function (projectId, options) {
|
|
2411
|
+
var pId = encodeURIComponent(projectId);
|
|
2412
|
+
return RequestHelper.get()(this, "projects/" + pId + "/releases", options);
|
|
2413
|
+
};
|
|
2414
|
+
Releases.prototype.create = function (projectId, options) {
|
|
2415
|
+
var pId = encodeURIComponent(projectId);
|
|
2416
|
+
return RequestHelper.post()(this, "projects/" + pId + "/releases", options);
|
|
2417
|
+
};
|
|
2418
|
+
Releases.prototype.edit = function (projectId, tagName, options) {
|
|
2419
|
+
var _a = __read([projectId, tagName].map(encodeURIComponent), 2), pId = _a[0], tId = _a[1];
|
|
2420
|
+
return RequestHelper.put()(this, "projects/" + pId + "/releases/" + tId, options);
|
|
2421
|
+
};
|
|
2422
|
+
Releases.prototype.remove = function (projectId, tagName, options) {
|
|
2423
|
+
var _a = __read([projectId, tagName].map(encodeURIComponent), 2), pId = _a[0], tId = _a[1];
|
|
2424
|
+
return RequestHelper.del()(this, "projects/" + pId + "/releases/" + tId, options);
|
|
2425
|
+
};
|
|
2426
|
+
Releases.prototype.show = function (projectId, tagName, options) {
|
|
2427
|
+
var _a = __read([projectId, tagName].map(encodeURIComponent), 2), pId = _a[0], tId = _a[1];
|
|
2428
|
+
return RequestHelper.get()(this, "projects/" + pId + "/releases/" + tId, options);
|
|
2429
|
+
};
|
|
2430
|
+
return Releases;
|
|
2431
|
+
}(BaseResource));
|
|
2432
|
+
|
|
2433
|
+
var ReleaseLinks = /** @class */ (function (_super) {
|
|
2434
|
+
__extends(ReleaseLinks, _super);
|
|
2435
|
+
function ReleaseLinks() {
|
|
2436
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2437
|
+
}
|
|
2438
|
+
ReleaseLinks.prototype.all = function (projectId, tagName, options) {
|
|
2439
|
+
var _a = __read([projectId, tagName].map(encodeURIComponent), 2), pId = _a[0], tId = _a[1];
|
|
2440
|
+
return RequestHelper.get()(this, "projects/" + pId + "/releases/" + tId + "/assets/links", options);
|
|
2441
|
+
};
|
|
2442
|
+
ReleaseLinks.prototype.create = function (projectId, tagName, name, url, options) {
|
|
2443
|
+
var _a = __read([projectId, tagName].map(encodeURIComponent), 2), pId = _a[0], tId = _a[1];
|
|
2444
|
+
return RequestHelper.post()(this, "projects/" + pId + "/releases/" + tId + "/assets/links", __assign({ name: name, url: url }, options));
|
|
2445
|
+
};
|
|
2446
|
+
ReleaseLinks.prototype.edit = function (projectId, tagName, linkId, options) {
|
|
2447
|
+
var _a = __read([projectId, tagName, linkId].map(encodeURIComponent), 3), pId = _a[0], tId = _a[1], lId = _a[2];
|
|
2448
|
+
return RequestHelper.put()(this, "projects/" + pId + "/releases/" + tId + "/assets/links/" + lId, options);
|
|
2449
|
+
};
|
|
2450
|
+
ReleaseLinks.prototype.remove = function (projectId, tagName, linkId, options) {
|
|
2451
|
+
var _a = __read([projectId, tagName, linkId].map(encodeURIComponent), 3), pId = _a[0], tId = _a[1], lId = _a[2];
|
|
2452
|
+
return RequestHelper.del()(this, "projects/" + pId + "/releases/" + tId + "/assets/links/" + lId, options);
|
|
2453
|
+
};
|
|
2454
|
+
ReleaseLinks.prototype.show = function (projectId, tagName, linkId, options) {
|
|
2455
|
+
var _a = __read([projectId, tagName, linkId].map(encodeURIComponent), 3), pId = _a[0], tId = _a[1], lId = _a[2];
|
|
2456
|
+
return RequestHelper.get()(this, "projects/" + pId + "/releases/" + tId + "/assets/links/" + lId, options);
|
|
2457
|
+
};
|
|
2458
|
+
return ReleaseLinks;
|
|
2459
|
+
}(BaseResource));
|
|
2460
|
+
|
|
2461
|
+
var Repositories = /** @class */ (function (_super) {
|
|
2462
|
+
__extends(Repositories, _super);
|
|
2463
|
+
function Repositories() {
|
|
2464
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2465
|
+
}
|
|
2466
|
+
Repositories.prototype.compare = function (projectId, from, to, options) {
|
|
2467
|
+
var pId = encodeURIComponent(projectId);
|
|
2468
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/compare", __assign({ from: from, to: to }, options));
|
|
2469
|
+
};
|
|
2470
|
+
Repositories.prototype.contributors = function (projectId, options) {
|
|
2471
|
+
var pId = encodeURIComponent(projectId);
|
|
2472
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/contributors", options);
|
|
2473
|
+
};
|
|
2474
|
+
Repositories.prototype.mergeBase = function (projectId, refs, options) {
|
|
2475
|
+
var pId = encodeURIComponent(projectId);
|
|
2476
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/merge_base", __assign({ refs: refs }, options));
|
|
2477
|
+
};
|
|
2478
|
+
Repositories.prototype.showArchive = function (projectId, _a) {
|
|
2479
|
+
if (_a === void 0) { _a = {}; }
|
|
2480
|
+
var _b = _a.fileType, fileType = _b === void 0 ? 'tar.gz' : _b, options = __rest(_a, ["fileType"]);
|
|
2481
|
+
var pId = encodeURIComponent(projectId);
|
|
2482
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/archive." + fileType, options);
|
|
2483
|
+
};
|
|
2484
|
+
Repositories.prototype.showBlob = function (projectId, sha, options) {
|
|
2485
|
+
var pId = encodeURIComponent(projectId);
|
|
2486
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/blobs/" + sha, options);
|
|
2487
|
+
};
|
|
2488
|
+
Repositories.prototype.showBlobRaw = function (projectId, sha, options) {
|
|
2489
|
+
var pId = encodeURIComponent(projectId);
|
|
2490
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/blobs/" + sha + "/raw", options);
|
|
2491
|
+
};
|
|
2492
|
+
Repositories.prototype.tree = function (projectId, options) {
|
|
2493
|
+
var pId = encodeURIComponent(projectId);
|
|
2494
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/tree", options);
|
|
2495
|
+
};
|
|
2496
|
+
return Repositories;
|
|
2497
|
+
}(BaseResource));
|
|
2498
|
+
|
|
2499
|
+
var RepositoryFiles = /** @class */ (function (_super) {
|
|
2500
|
+
__extends(RepositoryFiles, _super);
|
|
2501
|
+
function RepositoryFiles() {
|
|
2502
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2503
|
+
}
|
|
2504
|
+
RepositoryFiles.prototype.create = function (projectId, filePath, branch, content, commitMessage, options) {
|
|
2505
|
+
var _a = __read([projectId, filePath].map(encodeURIComponent), 2), pId = _a[0], path = _a[1];
|
|
2506
|
+
return RequestHelper.post()(this, "projects/" + pId + "/repository/files/" + path, __assign({ branch: branch, content: content, commitMessage: commitMessage }, options));
|
|
2507
|
+
};
|
|
2508
|
+
RepositoryFiles.prototype.edit = function (projectId, filePath, branch, content, commitMessage, options) {
|
|
2509
|
+
var _a = __read([projectId, filePath].map(encodeURIComponent), 2), pId = _a[0], path = _a[1];
|
|
2510
|
+
return RequestHelper.put()(this, "projects/" + pId + "/repository/files/" + path, __assign({ branch: branch, content: content, commitMessage: commitMessage }, options));
|
|
2511
|
+
};
|
|
2512
|
+
RepositoryFiles.prototype.remove = function (projectId, filePath, branch, commitMessage, options) {
|
|
2513
|
+
var _a = __read([projectId, filePath].map(encodeURIComponent), 2), pId = _a[0], path = _a[1];
|
|
2514
|
+
return RequestHelper.del()(this, "projects/" + pId + "/repository/files/" + path, __assign({ branch: branch, commitMessage: commitMessage }, options));
|
|
2515
|
+
};
|
|
2516
|
+
RepositoryFiles.prototype.show = function (projectId, filePath, ref, options) {
|
|
2517
|
+
var _a = __read([projectId, filePath].map(encodeURIComponent), 2), pId = _a[0], path = _a[1];
|
|
2518
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/files/" + path, __assign({ ref: ref }, options));
|
|
2519
|
+
};
|
|
2520
|
+
RepositoryFiles.prototype.showBlame = function (projectId, filePath, options) {
|
|
2521
|
+
var _a = __read([projectId, filePath].map(encodeURIComponent), 2), pId = _a[0], path = _a[1];
|
|
2522
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/files/" + path + "/blame", options);
|
|
2523
|
+
};
|
|
2524
|
+
RepositoryFiles.prototype.showRaw = function (projectId, filePath, options) {
|
|
2525
|
+
var _a = __read([projectId, filePath].map(encodeURIComponent), 2), pId = _a[0], path = _a[1];
|
|
2526
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/files/" + path + "/raw", options);
|
|
2527
|
+
};
|
|
2528
|
+
return RepositoryFiles;
|
|
2529
|
+
}(BaseResource));
|
|
2530
|
+
|
|
2531
|
+
var RepositorySubmodules = /** @class */ (function (_super) {
|
|
2532
|
+
__extends(RepositorySubmodules, _super);
|
|
2533
|
+
function RepositorySubmodules() {
|
|
2534
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2535
|
+
}
|
|
2536
|
+
RepositorySubmodules.prototype.edit = function (projectId, submodule, branch, commit_sha, options) {
|
|
2537
|
+
var _a = __read([projectId, submodule].map(encodeURIComponent), 2), pId = _a[0], sm = _a[1];
|
|
2538
|
+
return RequestHelper.put()(this, "projects/" + pId + "/repository/submodules/" + sm, __assign({ branch: branch, commit_sha: commit_sha }, options));
|
|
2539
|
+
};
|
|
2540
|
+
return RepositorySubmodules;
|
|
2541
|
+
}(BaseResource));
|
|
2542
|
+
|
|
2543
|
+
var Runners = /** @class */ (function (_super) {
|
|
2544
|
+
__extends(Runners, _super);
|
|
2545
|
+
function Runners() {
|
|
2546
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2547
|
+
}
|
|
2548
|
+
Runners.prototype.all = function (_a) {
|
|
2549
|
+
if (_a === void 0) { _a = {}; }
|
|
2550
|
+
var projectId = _a.projectId, options = __rest(_a, ["projectId"]);
|
|
2551
|
+
var url = projectId ? "projects/" + encodeURIComponent(projectId) + "/runners" : 'runners/all';
|
|
2552
|
+
return RequestHelper.get()(this, url, options);
|
|
2553
|
+
};
|
|
2554
|
+
Runners.prototype.allOwned = function (options) {
|
|
2555
|
+
return RequestHelper.get()(this, 'runners', options);
|
|
2556
|
+
};
|
|
2557
|
+
Runners.prototype.edit = function (runnerId, options) {
|
|
2558
|
+
var rId = encodeURIComponent(runnerId);
|
|
2559
|
+
return RequestHelper.put()(this, "runners/" + rId, options);
|
|
2560
|
+
};
|
|
2561
|
+
Runners.prototype.enable = function (projectId, runnerId, options) {
|
|
2562
|
+
var _a = __read([projectId, runnerId].map(encodeURIComponent), 2), pId = _a[0], rId = _a[1];
|
|
2563
|
+
return RequestHelper.post()(this, "projects/" + pId + "/runners", __assign({ runnerId: rId }, options));
|
|
2564
|
+
};
|
|
2565
|
+
Runners.prototype.disable = function (projectId, runnerId, options) {
|
|
2566
|
+
var _a = __read([projectId, runnerId].map(encodeURIComponent), 2), pId = _a[0], rId = _a[1];
|
|
2567
|
+
return RequestHelper.del()(this, "projects/" + pId + "/runners/" + rId, options);
|
|
2568
|
+
};
|
|
2569
|
+
Runners.prototype.jobs = function (runnerId, options) {
|
|
2570
|
+
var rId = encodeURIComponent(runnerId);
|
|
2571
|
+
return RequestHelper.get()(this, "runners/" + rId + "/jobs", options);
|
|
2572
|
+
};
|
|
2573
|
+
Runners.prototype.remove = function (runnerId, options) {
|
|
2574
|
+
var rId = encodeURIComponent(runnerId);
|
|
2575
|
+
return RequestHelper.del()(this, "runners/" + rId, options);
|
|
2576
|
+
};
|
|
2577
|
+
Runners.prototype.show = function (runnerId, options) {
|
|
2578
|
+
var rId = encodeURIComponent(runnerId);
|
|
2579
|
+
return RequestHelper.get()(this, "runners/" + rId, options);
|
|
2580
|
+
};
|
|
2581
|
+
return Runners;
|
|
2582
|
+
}(BaseResource));
|
|
2583
|
+
|
|
2584
|
+
var Services = /** @class */ (function (_super) {
|
|
2585
|
+
__extends(Services, _super);
|
|
2586
|
+
function Services() {
|
|
2587
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2588
|
+
}
|
|
2589
|
+
Services.prototype.all = function (projectId, options) {
|
|
2590
|
+
var pId = encodeURIComponent(projectId);
|
|
2591
|
+
return RequestHelper.get()(this, "projects/" + pId + "/services", options);
|
|
2592
|
+
};
|
|
2593
|
+
Services.prototype.edit = function (projectId, serviceName, options) {
|
|
2594
|
+
var pId = encodeURIComponent(projectId);
|
|
2595
|
+
return RequestHelper.put()(this, "projects/" + pId + "/services/" + serviceName, options);
|
|
2596
|
+
};
|
|
2597
|
+
Services.prototype.remove = function (projectId, serviceName, options) {
|
|
2598
|
+
var pId = encodeURIComponent(projectId);
|
|
2599
|
+
return RequestHelper.del()(this, "projects/" + pId + "/services/" + serviceName, options);
|
|
2600
|
+
};
|
|
2601
|
+
Services.prototype.show = function (projectId, serviceName, options) {
|
|
2602
|
+
var pId = encodeURIComponent(projectId);
|
|
2603
|
+
return RequestHelper.get()(this, "projects/" + pId + "/services/" + serviceName, options);
|
|
2604
|
+
};
|
|
2605
|
+
return Services;
|
|
2606
|
+
}(BaseResource));
|
|
2607
|
+
|
|
2608
|
+
var Tags = /** @class */ (function (_super) {
|
|
2609
|
+
__extends(Tags, _super);
|
|
2610
|
+
function Tags() {
|
|
2611
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2612
|
+
}
|
|
2613
|
+
Tags.prototype.all = function (projectId, options) {
|
|
2614
|
+
var pId = encodeURIComponent(projectId);
|
|
2615
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/tags", options);
|
|
2616
|
+
};
|
|
2617
|
+
Tags.prototype.create = function (projectId, options) {
|
|
2618
|
+
var pId = encodeURIComponent(projectId);
|
|
2619
|
+
return RequestHelper.post()(this, "projects/" + pId + "/repository/tags", options);
|
|
2620
|
+
};
|
|
2621
|
+
Tags.prototype.remove = function (projectId, tagName, options) {
|
|
2622
|
+
var _a = __read([projectId, tagName].map(encodeURIComponent), 2), pId = _a[0], tId = _a[1];
|
|
2623
|
+
return RequestHelper.del()(this, "projects/" + pId + "/repository/tags/" + tId, options);
|
|
2624
|
+
};
|
|
2625
|
+
Tags.prototype.show = function (projectId, tagName, options) {
|
|
2626
|
+
var _a = __read([projectId, tagName].map(encodeURIComponent), 2), pId = _a[0], tId = _a[1];
|
|
2627
|
+
return RequestHelper.get()(this, "projects/" + pId + "/repository/tags/" + tId, options);
|
|
2628
|
+
};
|
|
2629
|
+
return Tags;
|
|
2630
|
+
}(BaseResource));
|
|
2631
|
+
|
|
2632
|
+
var Todos = /** @class */ (function (_super) {
|
|
2633
|
+
__extends(Todos, _super);
|
|
2634
|
+
function Todos() {
|
|
2635
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2636
|
+
}
|
|
2637
|
+
Todos.prototype.all = function (options) {
|
|
2638
|
+
return RequestHelper.get()(this, 'todos', options);
|
|
2639
|
+
};
|
|
2640
|
+
Todos.prototype.create = function (projectId, resourceId, resourceName, options) {
|
|
2641
|
+
var resourceAPI = resourceName === 'issue' ? 'issues' : 'merge_requests';
|
|
2642
|
+
return RequestHelper.post()(this, "projects/" + projectId + "/" + resourceAPI + "/" + resourceId + "/todo", options);
|
|
2643
|
+
};
|
|
2644
|
+
Todos.prototype.done = function (_a) {
|
|
2645
|
+
if (_a === void 0) { _a = {}; }
|
|
2646
|
+
var todoId = _a.todoId, options = __rest(_a, ["todoId"]);
|
|
2647
|
+
var url = ['todos'];
|
|
2648
|
+
if (todoId)
|
|
2649
|
+
url.push(todoId.toString());
|
|
2650
|
+
url.push('mark_as_done');
|
|
2651
|
+
// Fixme: Rewrite this to make better use of proper typing
|
|
2652
|
+
if (todoId) {
|
|
2653
|
+
return RequestHelper.post()(this, url.join('/'), options);
|
|
2654
|
+
}
|
|
2655
|
+
return RequestHelper.post()(this, url.join('/'), options);
|
|
2656
|
+
};
|
|
2657
|
+
return Todos;
|
|
2658
|
+
}(BaseResource));
|
|
2659
|
+
|
|
2660
|
+
// TODO: Rename PipelineTriggers
|
|
2661
|
+
var Triggers = /** @class */ (function (_super) {
|
|
2662
|
+
__extends(Triggers, _super);
|
|
2663
|
+
function Triggers() {
|
|
2664
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2665
|
+
}
|
|
2666
|
+
Triggers.prototype.add = function (projectId, options) {
|
|
2667
|
+
var pId = encodeURIComponent(projectId);
|
|
2668
|
+
return RequestHelper.post()(this, "projects/" + pId + "/triggers", options);
|
|
2669
|
+
};
|
|
2670
|
+
Triggers.prototype.all = function (projectId, options) {
|
|
2671
|
+
var pId = encodeURIComponent(projectId);
|
|
2672
|
+
return RequestHelper.get()(this, "projects/" + pId + "/triggers", options);
|
|
2673
|
+
};
|
|
2674
|
+
Triggers.prototype.edit = function (projectId, triggerId, options) {
|
|
2675
|
+
var _a = __read([projectId, triggerId].map(encodeURIComponent), 2), pId = _a[0], tId = _a[1];
|
|
2676
|
+
return RequestHelper.put()(this, "projects/" + pId + "/triggers/" + tId, options);
|
|
2677
|
+
};
|
|
2678
|
+
Triggers.prototype.pipeline = function (projectId, ref, token, _a) {
|
|
2679
|
+
var _b = _a === void 0 ? {} : _a, variables = _b.variables;
|
|
2680
|
+
var pId = encodeURIComponent(projectId);
|
|
2681
|
+
var hapiVariables = {};
|
|
2682
|
+
if (variables) {
|
|
2683
|
+
Object.entries(variables).forEach(function (_a) {
|
|
2684
|
+
var _b = __read(_a, 2), k = _b[0], v = _b[1];
|
|
2685
|
+
hapiVariables["variables[" + k + "]"] = v;
|
|
2686
|
+
});
|
|
2687
|
+
}
|
|
2688
|
+
return RequestHelper.post()(this, "projects/" + pId + "/trigger/pipeline", __assign({ isForm: true, ref: ref, token: token }, hapiVariables));
|
|
2689
|
+
};
|
|
2690
|
+
Triggers.prototype.remove = function (projectId, triggerId, options) {
|
|
2691
|
+
var _a = __read([projectId, triggerId].map(encodeURIComponent), 2), pId = _a[0], tId = _a[1];
|
|
2692
|
+
return RequestHelper.del()(this, "projects/" + pId + "/triggers/" + tId, options);
|
|
2693
|
+
};
|
|
2694
|
+
Triggers.prototype.show = function (projectId, triggerId, options) {
|
|
2695
|
+
var _a = __read([projectId, triggerId].map(encodeURIComponent), 2), pId = _a[0], tId = _a[1];
|
|
2696
|
+
return RequestHelper.get()(this, "projects/" + pId + "/triggers/" + tId, options);
|
|
2697
|
+
};
|
|
2698
|
+
return Triggers;
|
|
2699
|
+
}(BaseResource));
|
|
2700
|
+
|
|
2701
|
+
var VulnerabilityFindings = /** @class */ (function (_super) {
|
|
2702
|
+
__extends(VulnerabilityFindings, _super);
|
|
2703
|
+
function VulnerabilityFindings() {
|
|
2704
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2705
|
+
}
|
|
2706
|
+
VulnerabilityFindings.prototype.all = function (projectId, options) {
|
|
2707
|
+
var pId = encodeURIComponent(projectId);
|
|
2708
|
+
return RequestHelper.get()(this, "projects/" + pId + "/vulnerability_findings", options);
|
|
2709
|
+
};
|
|
2710
|
+
return VulnerabilityFindings;
|
|
2711
|
+
}(BaseResource));
|
|
2712
|
+
|
|
2713
|
+
var ApplicationSettings = /** @class */ (function (_super) {
|
|
2714
|
+
__extends(ApplicationSettings, _super);
|
|
2715
|
+
function ApplicationSettings() {
|
|
2716
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2717
|
+
}
|
|
2718
|
+
ApplicationSettings.prototype.all = function (options) {
|
|
2719
|
+
return RequestHelper.get()(this, 'application/settings', options);
|
|
2720
|
+
};
|
|
2721
|
+
ApplicationSettings.prototype.edit = function (options) {
|
|
2722
|
+
return RequestHelper.put()(this, 'application/settings', options);
|
|
2723
|
+
};
|
|
2724
|
+
return ApplicationSettings;
|
|
2725
|
+
}(BaseResource));
|
|
2726
|
+
|
|
2727
|
+
var BroadcastMessages = /** @class */ (function (_super) {
|
|
2728
|
+
__extends(BroadcastMessages, _super);
|
|
2729
|
+
function BroadcastMessages() {
|
|
2730
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2731
|
+
}
|
|
2732
|
+
BroadcastMessages.prototype.all = function (options) {
|
|
2733
|
+
return RequestHelper.get()(this, 'broadcast_messages', options);
|
|
2734
|
+
};
|
|
2735
|
+
BroadcastMessages.prototype.create = function (options) {
|
|
2736
|
+
return RequestHelper.post()(this, 'broadcast_messages', options);
|
|
2737
|
+
};
|
|
2738
|
+
BroadcastMessages.prototype.edit = function (broadcastMessageId, options) {
|
|
2739
|
+
var bId = encodeURIComponent(broadcastMessageId);
|
|
2740
|
+
return RequestHelper.put()(this, "broadcast_messages/" + bId, options);
|
|
2741
|
+
};
|
|
2742
|
+
BroadcastMessages.prototype.remove = function (broadcastMessageId, options) {
|
|
2743
|
+
var bId = encodeURIComponent(broadcastMessageId);
|
|
2744
|
+
return RequestHelper.del()(this, "broadcast_messages/" + bId, options);
|
|
2745
|
+
};
|
|
2746
|
+
BroadcastMessages.prototype.show = function (broadcastMessageId, options) {
|
|
2747
|
+
var bId = encodeURIComponent(broadcastMessageId);
|
|
2748
|
+
return RequestHelper.get()(this, "broadcast_messages/" + bId, options);
|
|
2749
|
+
};
|
|
2750
|
+
return BroadcastMessages;
|
|
2751
|
+
}(BaseResource));
|
|
2752
|
+
|
|
2753
|
+
var Events = /** @class */ (function (_super) {
|
|
2754
|
+
__extends(Events, _super);
|
|
2755
|
+
function Events() {
|
|
2756
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2757
|
+
}
|
|
2758
|
+
Events.prototype.all = function (_a) {
|
|
2759
|
+
if (_a === void 0) { _a = {}; }
|
|
2760
|
+
var projectId = _a.projectId, options = __rest(_a, ["projectId"]);
|
|
2761
|
+
var url;
|
|
2762
|
+
if (projectId) {
|
|
2763
|
+
var pId = encodeURIComponent(projectId);
|
|
2764
|
+
url = "projects/" + pId + "/events";
|
|
2765
|
+
}
|
|
2766
|
+
else {
|
|
2767
|
+
url = 'events';
|
|
2768
|
+
}
|
|
2769
|
+
return RequestHelper.get()(this, url, options);
|
|
2770
|
+
};
|
|
2771
|
+
return Events;
|
|
2772
|
+
}(BaseResource));
|
|
2773
|
+
|
|
2774
|
+
var FeatureFlags = /** @class */ (function (_super) {
|
|
2775
|
+
__extends(FeatureFlags, _super);
|
|
2776
|
+
function FeatureFlags() {
|
|
2777
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2778
|
+
}
|
|
2779
|
+
FeatureFlags.prototype.all = function (projectId, options) {
|
|
2780
|
+
if (options === void 0) { options = {}; }
|
|
2781
|
+
var pId = encodeURIComponent(projectId);
|
|
2782
|
+
return RequestHelper.get()(this, "projects/" + pId + "/features_flags", options);
|
|
2783
|
+
};
|
|
2784
|
+
FeatureFlags.prototype.create = function (projectId, flagName, version, options) {
|
|
2785
|
+
var _a = __read([projectId, flagName, version].map(encodeURIComponent), 3), pId = _a[0], fName = _a[1], ver = _a[2];
|
|
2786
|
+
return RequestHelper.post()(this, "projects/" + pId + "/features_flags", __assign({ version: ver, name: fName }, options));
|
|
2787
|
+
};
|
|
2788
|
+
FeatureFlags.prototype.edit = function (projectId, flagName, options) {
|
|
2789
|
+
var _a = __read([projectId, flagName].map(encodeURIComponent), 2), pId = _a[0], fName = _a[1];
|
|
2790
|
+
return RequestHelper.put()(this, "projects/" + pId + "/features_flags/" + fName, options);
|
|
2791
|
+
};
|
|
2792
|
+
FeatureFlags.prototype.remove = function (projectId, flagName, options) {
|
|
2793
|
+
var _a = __read([projectId, flagName].map(encodeURIComponent), 2), pId = _a[0], fName = _a[1];
|
|
2794
|
+
return RequestHelper.del()(this, "projects/" + pId + "/features_flags/" + fName, options);
|
|
2795
|
+
};
|
|
2796
|
+
FeatureFlags.prototype.show = function (projectId, flagName, options) {
|
|
2797
|
+
var _a = __read([projectId, flagName].map(encodeURIComponent), 2), pId = _a[0], fName = _a[1];
|
|
2798
|
+
return RequestHelper.get()(this, "projects/" + pId + "/features_flags/" + fName, options);
|
|
2799
|
+
};
|
|
2800
|
+
return FeatureFlags;
|
|
2801
|
+
}(BaseResource));
|
|
2802
|
+
|
|
2803
|
+
var GeoNodes = /** @class */ (function (_super) {
|
|
2804
|
+
__extends(GeoNodes, _super);
|
|
2805
|
+
function GeoNodes() {
|
|
2806
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2807
|
+
}
|
|
2808
|
+
GeoNodes.prototype.all = function (options) {
|
|
2809
|
+
return RequestHelper.get()(this, 'geo_nodes', options);
|
|
2810
|
+
};
|
|
2811
|
+
GeoNodes.prototype.create = function (geonodeId, options) {
|
|
2812
|
+
var gId = encodeURIComponent(geonodeId);
|
|
2813
|
+
return RequestHelper.post()(this, "geo_nodes/" + gId, options);
|
|
2814
|
+
};
|
|
2815
|
+
GeoNodes.prototype.edit = function (geonodeId, options) {
|
|
2816
|
+
var gId = encodeURIComponent(geonodeId);
|
|
2817
|
+
return RequestHelper.put()(this, "geo_nodes/" + gId, options);
|
|
2818
|
+
};
|
|
2819
|
+
GeoNodes.prototype.failures = function (options) {
|
|
2820
|
+
return RequestHelper.get()(this, 'geo_nodes/current/failures', options);
|
|
2821
|
+
};
|
|
2822
|
+
GeoNodes.prototype.repair = function (geonodeId, options) {
|
|
2823
|
+
var gId = encodeURIComponent(geonodeId);
|
|
2824
|
+
return RequestHelper.post()(this, "geo_nodes/" + gId + "/repair", options);
|
|
2825
|
+
};
|
|
2826
|
+
GeoNodes.prototype.remove = function (geonodeId, options) {
|
|
2827
|
+
var gId = encodeURIComponent(geonodeId);
|
|
2828
|
+
return RequestHelper.del()(this, "geo_nodes/" + gId, options);
|
|
2829
|
+
};
|
|
2830
|
+
GeoNodes.prototype.show = function (geonodeId, options) {
|
|
2831
|
+
var gId = encodeURIComponent(geonodeId);
|
|
2832
|
+
return RequestHelper.get()(this, "geo_nodes/" + gId, options);
|
|
2833
|
+
};
|
|
2834
|
+
GeoNodes.prototype.status = function (geonodeId, options) {
|
|
2835
|
+
var gId = encodeURIComponent(geonodeId);
|
|
2836
|
+
return RequestHelper.get()(this, "geo_nodes/" + gId + "/status", options);
|
|
2837
|
+
};
|
|
2838
|
+
GeoNodes.prototype.statuses = function (options) {
|
|
2839
|
+
return RequestHelper.get()(this, 'geo_nodes/statuses', options);
|
|
2840
|
+
};
|
|
2841
|
+
return GeoNodes;
|
|
2842
|
+
}(BaseResource));
|
|
2843
|
+
|
|
2844
|
+
var GitignoreTemplates = /** @class */ (function (_super) {
|
|
2845
|
+
__extends(GitignoreTemplates, _super);
|
|
2846
|
+
function GitignoreTemplates(options) {
|
|
2847
|
+
/* istanbul ignore next */
|
|
2848
|
+
return _super.call(this, 'gitignores', options) || this;
|
|
2849
|
+
}
|
|
2850
|
+
return GitignoreTemplates;
|
|
2851
|
+
}(ResourceTemplates));
|
|
2852
|
+
|
|
2853
|
+
var GitLabCIYMLTemplates = /** @class */ (function (_super) {
|
|
2854
|
+
__extends(GitLabCIYMLTemplates, _super);
|
|
2855
|
+
function GitLabCIYMLTemplates(options) {
|
|
2856
|
+
/* istanbul ignore next */
|
|
2857
|
+
return _super.call(this, 'gitlab_ci_ymls', options) || this;
|
|
2858
|
+
}
|
|
2859
|
+
return GitLabCIYMLTemplates;
|
|
2860
|
+
}(ResourceTemplates));
|
|
2861
|
+
|
|
2862
|
+
var Keys = /** @class */ (function (_super) {
|
|
2863
|
+
__extends(Keys, _super);
|
|
2864
|
+
function Keys() {
|
|
2865
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2866
|
+
}
|
|
2867
|
+
Keys.prototype.show = function (keyId, options) {
|
|
2868
|
+
var kId = encodeURIComponent(keyId);
|
|
2869
|
+
return RequestHelper.get()(this, "keys/" + kId, options);
|
|
2870
|
+
};
|
|
2871
|
+
return Keys;
|
|
2872
|
+
}(BaseResource));
|
|
2873
|
+
|
|
2874
|
+
var License = /** @class */ (function (_super) {
|
|
2875
|
+
__extends(License, _super);
|
|
2876
|
+
function License() {
|
|
2877
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2878
|
+
}
|
|
2879
|
+
License.prototype.add = function (license, options) {
|
|
2880
|
+
return RequestHelper.post()(this, 'license', __assign({ license: license }, options));
|
|
2881
|
+
};
|
|
2882
|
+
License.prototype.all = function (options) {
|
|
2883
|
+
return RequestHelper.get()(this, 'licenses', options);
|
|
2884
|
+
};
|
|
2885
|
+
License.prototype.show = function (options) {
|
|
2886
|
+
return RequestHelper.get()(this, 'license', options);
|
|
2887
|
+
};
|
|
2888
|
+
License.prototype.remove = function (licenceId, options) {
|
|
2889
|
+
var lId = encodeURIComponent(licenceId);
|
|
2890
|
+
return RequestHelper.del()(this, "license/" + lId, options);
|
|
2891
|
+
};
|
|
2892
|
+
return License;
|
|
2893
|
+
}(BaseResource));
|
|
2894
|
+
|
|
2895
|
+
var LicenseTemplates = /** @class */ (function (_super) {
|
|
2896
|
+
__extends(LicenseTemplates, _super);
|
|
2897
|
+
function LicenseTemplates(options) {
|
|
2898
|
+
/* istanbul ignore next */
|
|
2899
|
+
return _super.call(this, 'Licenses', options) || this;
|
|
2900
|
+
}
|
|
2901
|
+
return LicenseTemplates;
|
|
2902
|
+
}(ResourceTemplates));
|
|
2903
|
+
|
|
2904
|
+
var Lint = /** @class */ (function (_super) {
|
|
2905
|
+
__extends(Lint, _super);
|
|
2906
|
+
function Lint() {
|
|
2907
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2908
|
+
}
|
|
2909
|
+
Lint.prototype.lint = function (content, options) {
|
|
2910
|
+
return RequestHelper.post()(this, 'ci/lint', __assign({ content: content }, options));
|
|
2911
|
+
};
|
|
2912
|
+
return Lint;
|
|
2913
|
+
}(BaseResource));
|
|
2914
|
+
|
|
2915
|
+
// TODO: Add missing functions
|
|
2916
|
+
var Namespaces = /** @class */ (function (_super) {
|
|
2917
|
+
__extends(Namespaces, _super);
|
|
2918
|
+
function Namespaces() {
|
|
2919
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2920
|
+
}
|
|
2921
|
+
Namespaces.prototype.all = function (options) {
|
|
2922
|
+
return RequestHelper.get()(this, 'namespaces', options);
|
|
2923
|
+
};
|
|
2924
|
+
Namespaces.prototype.show = function (namespaceId, options) {
|
|
2925
|
+
var nId = encodeURIComponent(namespaceId);
|
|
2926
|
+
return RequestHelper.get()(this, "namespaces/" + nId, options);
|
|
2927
|
+
};
|
|
2928
|
+
return Namespaces;
|
|
2929
|
+
}(BaseResource));
|
|
2930
|
+
|
|
2931
|
+
function url(_a) {
|
|
2932
|
+
var projectId = _a.projectId, groupId = _a.groupId;
|
|
2933
|
+
var uri = '';
|
|
2934
|
+
if (projectId) {
|
|
2935
|
+
uri += "projects/" + encodeURIComponent(projectId) + "/";
|
|
2936
|
+
}
|
|
2937
|
+
else if (groupId) {
|
|
2938
|
+
uri += "groups/" + encodeURIComponent(groupId) + "/";
|
|
2939
|
+
}
|
|
2940
|
+
return uri + "notification_settings";
|
|
2941
|
+
}
|
|
2942
|
+
var NotificationSettings = /** @class */ (function (_super) {
|
|
2943
|
+
__extends(NotificationSettings, _super);
|
|
2944
|
+
function NotificationSettings() {
|
|
2945
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2946
|
+
}
|
|
2947
|
+
NotificationSettings.prototype.all = function (_a) {
|
|
2948
|
+
if (_a === void 0) { _a = {}; }
|
|
2949
|
+
var projectId = _a.projectId, groupId = _a.groupId, options = __rest(_a, ["projectId", "groupId"]);
|
|
2950
|
+
return RequestHelper.get()(this, url({ groupId: groupId, projectId: projectId }), options);
|
|
2951
|
+
};
|
|
2952
|
+
NotificationSettings.prototype.edit = function (_a) {
|
|
2953
|
+
if (_a === void 0) { _a = {}; }
|
|
2954
|
+
var projectId = _a.projectId, groupId = _a.groupId, options = __rest(_a, ["projectId", "groupId"]);
|
|
2955
|
+
return RequestHelper.put()(this, url({ groupId: groupId, projectId: projectId }), options);
|
|
2956
|
+
};
|
|
2957
|
+
return NotificationSettings;
|
|
2958
|
+
}(BaseResource));
|
|
2959
|
+
|
|
2960
|
+
var Markdown = /** @class */ (function (_super) {
|
|
2961
|
+
__extends(Markdown, _super);
|
|
2962
|
+
function Markdown() {
|
|
2963
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2964
|
+
}
|
|
2965
|
+
Markdown.prototype.render = function (text, options) {
|
|
2966
|
+
return RequestHelper.post()(this, 'markdown', __assign({ text: text }, options));
|
|
2967
|
+
};
|
|
2968
|
+
return Markdown;
|
|
2969
|
+
}(BaseResource));
|
|
2970
|
+
|
|
2971
|
+
// TODO: Add missing functions
|
|
2972
|
+
var PagesDomains = /** @class */ (function (_super) {
|
|
2973
|
+
__extends(PagesDomains, _super);
|
|
2974
|
+
function PagesDomains() {
|
|
2975
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2976
|
+
}
|
|
2977
|
+
PagesDomains.prototype.all = function (_a) {
|
|
2978
|
+
if (_a === void 0) { _a = {}; }
|
|
2979
|
+
var projectId = _a.projectId, options = __rest(_a, ["projectId"]);
|
|
2980
|
+
var url = projectId ? "projects/" + encodeURIComponent(projectId) + "/" : '';
|
|
2981
|
+
return RequestHelper.get()(this, url + "pages/domains", options);
|
|
2982
|
+
};
|
|
2983
|
+
PagesDomains.prototype.create = function (projectId, domain, options) {
|
|
2984
|
+
var pId = encodeURIComponent(projectId);
|
|
2985
|
+
return RequestHelper.post()(this, "projects/" + pId + "/pages/domains", __assign({ domain: domain }, options));
|
|
2986
|
+
};
|
|
2987
|
+
PagesDomains.prototype.edit = function (projectId, domain, options) {
|
|
2988
|
+
var pId = encodeURIComponent(projectId);
|
|
2989
|
+
return RequestHelper.put()(this, "projects/" + pId + "/pages/domains/" + domain, options);
|
|
2990
|
+
};
|
|
2991
|
+
PagesDomains.prototype.show = function (projectId, domain, options) {
|
|
2992
|
+
var pId = encodeURIComponent(projectId);
|
|
2993
|
+
return RequestHelper.get()(this, "projects/" + pId + "/pages/domains/" + domain, options);
|
|
2994
|
+
};
|
|
2995
|
+
PagesDomains.prototype.remove = function (projectId, domain, options) {
|
|
2996
|
+
var pId = encodeURIComponent(projectId);
|
|
2997
|
+
return RequestHelper.del()(this, "projects/" + pId + "/pages/domains/" + domain, options);
|
|
2998
|
+
};
|
|
2999
|
+
return PagesDomains;
|
|
3000
|
+
}(BaseResource));
|
|
3001
|
+
|
|
3002
|
+
var Search = /** @class */ (function (_super) {
|
|
3003
|
+
__extends(Search, _super);
|
|
3004
|
+
function Search() {
|
|
3005
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3006
|
+
}
|
|
3007
|
+
Search.prototype.all = function (scope, search, _a) {
|
|
3008
|
+
if (_a === void 0) { _a = {}; }
|
|
3009
|
+
var projectId = _a.projectId, groupId = _a.groupId, options = __rest(_a, ["projectId", "groupId"]);
|
|
3010
|
+
var url = '';
|
|
3011
|
+
if (projectId) {
|
|
3012
|
+
url += "projects/" + encodeURIComponent(projectId) + "/";
|
|
3013
|
+
}
|
|
3014
|
+
else if (groupId) {
|
|
3015
|
+
url += "groups/" + encodeURIComponent(groupId) + "/";
|
|
3016
|
+
}
|
|
3017
|
+
return RequestHelper.get()(this, url + "search", __assign({ scope: scope, search: search }, options));
|
|
3018
|
+
};
|
|
3019
|
+
return Search;
|
|
3020
|
+
}(BaseResource));
|
|
3021
|
+
|
|
3022
|
+
var SidekiqMetrics = /** @class */ (function (_super) {
|
|
3023
|
+
__extends(SidekiqMetrics, _super);
|
|
3024
|
+
function SidekiqMetrics() {
|
|
3025
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3026
|
+
}
|
|
3027
|
+
SidekiqMetrics.prototype.queueMetrics = function () {
|
|
3028
|
+
return RequestHelper.get()(this, 'sidekiq/queue_metrics');
|
|
3029
|
+
};
|
|
3030
|
+
SidekiqMetrics.prototype.processMetrics = function () {
|
|
3031
|
+
return RequestHelper.get()(this, 'sidekiq/process_metrics');
|
|
3032
|
+
};
|
|
3033
|
+
SidekiqMetrics.prototype.jobStats = function () {
|
|
3034
|
+
return RequestHelper.get()(this, 'sidekiq/job_stats');
|
|
3035
|
+
};
|
|
3036
|
+
SidekiqMetrics.prototype.compoundMetrics = function () {
|
|
3037
|
+
return RequestHelper.get()(this, 'sidekiq/compound_metrics');
|
|
3038
|
+
};
|
|
3039
|
+
return SidekiqMetrics;
|
|
3040
|
+
}(BaseResource));
|
|
3041
|
+
|
|
3042
|
+
var Snippets = /** @class */ (function (_super) {
|
|
3043
|
+
__extends(Snippets, _super);
|
|
3044
|
+
function Snippets() {
|
|
3045
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3046
|
+
}
|
|
3047
|
+
Snippets.prototype.all = function (_a) {
|
|
3048
|
+
if (_a === void 0) { _a = {}; }
|
|
3049
|
+
var p = _a.public, options = __rest(_a, ["public"]);
|
|
3050
|
+
var url = p ? 'snippets/public' : 'snippets';
|
|
3051
|
+
return RequestHelper.get()(this, url, options);
|
|
3052
|
+
};
|
|
3053
|
+
Snippets.prototype.content = function (snippetId, options) {
|
|
3054
|
+
var sId = encodeURIComponent(snippetId);
|
|
3055
|
+
return RequestHelper.get()(this, "snippets/" + sId + "/raw", options);
|
|
3056
|
+
};
|
|
3057
|
+
Snippets.prototype.create = function (title, fileName, content, visibility, options) {
|
|
3058
|
+
return RequestHelper.post()(this, 'snippets', __assign({ title: title, fileName: fileName, content: content, visibility: visibility }, options));
|
|
3059
|
+
};
|
|
3060
|
+
Snippets.prototype.edit = function (snippetId, options) {
|
|
3061
|
+
var sId = encodeURIComponent(snippetId);
|
|
3062
|
+
return RequestHelper.put()(this, "snippets/" + sId, options);
|
|
3063
|
+
};
|
|
3064
|
+
Snippets.prototype.remove = function (snippetId, options) {
|
|
3065
|
+
var sId = encodeURIComponent(snippetId);
|
|
3066
|
+
return RequestHelper.del()(this, "snippets/" + sId, options);
|
|
3067
|
+
};
|
|
3068
|
+
Snippets.prototype.show = function (snippetId, options) {
|
|
3069
|
+
var sId = encodeURIComponent(snippetId);
|
|
3070
|
+
return RequestHelper.get()(this, "snippets/" + sId, options);
|
|
3071
|
+
};
|
|
3072
|
+
Snippets.prototype.userAgentDetails = function (snippetId, options) {
|
|
3073
|
+
var sId = encodeURIComponent(snippetId);
|
|
3074
|
+
return RequestHelper.get()(this, "snippets/" + sId + "/user_agent_detail", options);
|
|
3075
|
+
};
|
|
3076
|
+
return Snippets;
|
|
3077
|
+
}(BaseResource));
|
|
3078
|
+
|
|
3079
|
+
var SystemHooks = /** @class */ (function (_super) {
|
|
3080
|
+
__extends(SystemHooks, _super);
|
|
3081
|
+
function SystemHooks() {
|
|
3082
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3083
|
+
}
|
|
3084
|
+
SystemHooks.prototype.add = function (url, options) {
|
|
3085
|
+
return RequestHelper.post()(this, 'hooks', __assign({ url: url }, options));
|
|
3086
|
+
};
|
|
3087
|
+
SystemHooks.prototype.all = function (options) {
|
|
3088
|
+
return RequestHelper.get()(this, 'hooks', options);
|
|
3089
|
+
};
|
|
3090
|
+
SystemHooks.prototype.edit = function (hookId, url, options) {
|
|
3091
|
+
var hId = encodeURIComponent(hookId);
|
|
3092
|
+
return RequestHelper.put()(this, "hooks/" + hId, __assign({ url: url }, options));
|
|
3093
|
+
};
|
|
3094
|
+
SystemHooks.prototype.remove = function (hookId, options) {
|
|
3095
|
+
var hId = encodeURIComponent(hookId);
|
|
3096
|
+
return RequestHelper.del()(this, "hooks/" + hId, options);
|
|
3097
|
+
};
|
|
3098
|
+
return SystemHooks;
|
|
3099
|
+
}(BaseResource));
|
|
3100
|
+
|
|
3101
|
+
var Version = /** @class */ (function (_super) {
|
|
3102
|
+
__extends(Version, _super);
|
|
3103
|
+
function Version() {
|
|
3104
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3105
|
+
}
|
|
3106
|
+
Version.prototype.show = function (options) {
|
|
3107
|
+
return RequestHelper.get()(this, 'version', options);
|
|
3108
|
+
};
|
|
3109
|
+
return Version;
|
|
3110
|
+
}(BaseResource));
|
|
3111
|
+
|
|
3112
|
+
var Wikis = /** @class */ (function (_super) {
|
|
3113
|
+
__extends(Wikis, _super);
|
|
3114
|
+
function Wikis() {
|
|
3115
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3116
|
+
}
|
|
3117
|
+
Wikis.prototype.all = function (projectId, options) {
|
|
3118
|
+
var pId = encodeURIComponent(projectId);
|
|
3119
|
+
return RequestHelper.get()(this, "projects/" + pId + "/wikis", options);
|
|
3120
|
+
};
|
|
3121
|
+
Wikis.prototype.create = function (projectId, options) {
|
|
3122
|
+
var pId = encodeURIComponent(projectId);
|
|
3123
|
+
return RequestHelper.post()(this, "projects/" + pId + "/wikis", options);
|
|
3124
|
+
};
|
|
3125
|
+
Wikis.prototype.edit = function (projectId, slug, options) {
|
|
3126
|
+
var _a = __read([projectId, slug].map(encodeURIComponent), 2), pId = _a[0], s = _a[1];
|
|
3127
|
+
return RequestHelper.put()(this, "projects/" + pId + "/wikis/" + s, options);
|
|
3128
|
+
};
|
|
3129
|
+
Wikis.prototype.show = function (projectId, slug, options) {
|
|
3130
|
+
var _a = __read([projectId, slug].map(encodeURIComponent), 2), pId = _a[0], s = _a[1];
|
|
3131
|
+
return RequestHelper.get()(this, "projects/" + pId + "/wikis/" + s, options);
|
|
3132
|
+
};
|
|
3133
|
+
Wikis.prototype.remove = function (projectId, slug, options) {
|
|
3134
|
+
var _a = __read([projectId, slug].map(encodeURIComponent), 2), pId = _a[0], s = _a[1];
|
|
3135
|
+
return RequestHelper.del()(this, "projects/" + pId + "/wikis/" + s, options);
|
|
3136
|
+
};
|
|
3137
|
+
return Wikis;
|
|
3138
|
+
}(BaseResource));
|
|
3139
|
+
|
|
3140
|
+
/* eslint-disable max-classes-per-file */
|
|
3141
|
+
var resources = {
|
|
3142
|
+
Groups: Groups,
|
|
3143
|
+
GroupAccessRequests: GroupAccessRequests,
|
|
3144
|
+
GroupBadges: GroupBadges,
|
|
3145
|
+
GroupCustomAttributes: GroupCustomAttributes,
|
|
3146
|
+
GroupIssueBoards: GroupIssueBoards,
|
|
3147
|
+
GroupMembers: GroupMembers,
|
|
3148
|
+
GroupMilestones: GroupMilestones,
|
|
3149
|
+
GroupRunners: GroupRunners,
|
|
3150
|
+
GroupVariables: GroupVariables,
|
|
3151
|
+
GroupLabels: GroupLabels,
|
|
3152
|
+
GroupDeployTokens: GroupDeployTokens,
|
|
3153
|
+
Epics: Epics,
|
|
3154
|
+
EpicIssues: EpicIssues,
|
|
3155
|
+
EpicNotes: EpicNotes,
|
|
3156
|
+
EpicDiscussions: EpicDiscussions,
|
|
3157
|
+
Users: Users,
|
|
3158
|
+
UserCustomAttributes: UserCustomAttributes,
|
|
3159
|
+
UserEmails: UserEmails,
|
|
3160
|
+
UserImpersonationTokens: UserImpersonationTokens,
|
|
3161
|
+
UserSSHKeys: UserSSHKeys,
|
|
3162
|
+
UserGPGKeys: UserGPGKeys,
|
|
3163
|
+
Branches: Branches,
|
|
3164
|
+
Commits: Commits,
|
|
3165
|
+
CommitDiscussions: CommitDiscussions,
|
|
3166
|
+
ContainerRegistry: ContainerRegistry,
|
|
3167
|
+
Deployments: Deployments,
|
|
3168
|
+
DeployKeys: DeployKeys,
|
|
3169
|
+
Environments: Environments,
|
|
3170
|
+
FreezePeriods: FreezePeriods,
|
|
3171
|
+
Issues: Issues,
|
|
3172
|
+
IssuesStatistics: IssuesStatistics,
|
|
3173
|
+
IssueNotes: IssueNotes,
|
|
3174
|
+
IssueNoteAwardEmojis: IssueNoteAwardEmojis,
|
|
3175
|
+
IssueDiscussions: IssueDiscussions,
|
|
3176
|
+
IssueAwardEmojis: IssueAwardEmojis,
|
|
3177
|
+
Jobs: Jobs,
|
|
3178
|
+
Labels: Labels,
|
|
3179
|
+
MergeRequests: MergeRequests,
|
|
3180
|
+
MergeRequestApprovals: MergeRequestApprovals,
|
|
3181
|
+
MergeRequestAwardEmojis: MergeRequestAwardEmojis,
|
|
3182
|
+
MergeRequestDiscussions: MergeRequestDiscussions,
|
|
3183
|
+
MergeRequestNotes: MergeRequestNotes,
|
|
3184
|
+
Packages: Packages,
|
|
3185
|
+
PackageRegistry: PackageRegistry,
|
|
3186
|
+
Pipelines: Pipelines,
|
|
3187
|
+
PipelineSchedules: PipelineSchedules,
|
|
3188
|
+
PipelineScheduleVariables: PipelineScheduleVariables,
|
|
3189
|
+
Projects: Projects,
|
|
3190
|
+
ProjectAccessRequests: ProjectAccessRequests,
|
|
3191
|
+
ProjectBadges: ProjectBadges,
|
|
3192
|
+
ProjectCustomAttributes: ProjectCustomAttributes,
|
|
3193
|
+
ProjectImportExport: ProjectImportExport,
|
|
3194
|
+
ProjectIssueBoards: ProjectIssueBoards,
|
|
3195
|
+
ProjectHooks: ProjectHooks,
|
|
3196
|
+
ProjectMembers: ProjectMembers,
|
|
3197
|
+
ProjectMilestones: ProjectMilestones,
|
|
3198
|
+
ProjectSnippets: ProjectSnippets,
|
|
3199
|
+
ProjectSnippetNotes: ProjectSnippetNotes,
|
|
3200
|
+
ProjectSnippetDiscussions: ProjectSnippetDiscussions,
|
|
3201
|
+
ProjectSnippetAwardEmojis: ProjectSnippetAwardEmojis,
|
|
3202
|
+
ProtectedBranches: ProtectedBranches,
|
|
3203
|
+
ProtectedTags: ProtectedTags,
|
|
3204
|
+
ProjectVariables: ProjectVariables,
|
|
3205
|
+
ProjectDeployTokens: ProjectDeployTokens,
|
|
3206
|
+
PushRules: PushRules,
|
|
3207
|
+
Releases: Releases,
|
|
3208
|
+
ReleaseLinks: ReleaseLinks,
|
|
3209
|
+
Repositories: Repositories,
|
|
3210
|
+
RepositoryFiles: RepositoryFiles,
|
|
3211
|
+
RepositorySubmodules: RepositorySubmodules,
|
|
3212
|
+
Runners: Runners,
|
|
3213
|
+
Services: Services,
|
|
3214
|
+
Tags: Tags,
|
|
3215
|
+
Todos: Todos,
|
|
3216
|
+
Triggers: Triggers,
|
|
3217
|
+
VulnerabilityFindings: VulnerabilityFindings,
|
|
3218
|
+
ApplicationSettings: ApplicationSettings,
|
|
3219
|
+
BroadcastMessages: BroadcastMessages,
|
|
3220
|
+
Events: Events,
|
|
3221
|
+
FeatureFlags: FeatureFlags,
|
|
3222
|
+
GeoNodes: GeoNodes,
|
|
3223
|
+
GitignoreTemplates: GitignoreTemplates,
|
|
3224
|
+
GitLabCIYMLTemplates: GitLabCIYMLTemplates,
|
|
3225
|
+
Keys: Keys,
|
|
3226
|
+
License: License,
|
|
3227
|
+
LicenseTemplates: LicenseTemplates,
|
|
3228
|
+
Lint: Lint,
|
|
3229
|
+
Namespaces: Namespaces,
|
|
3230
|
+
NotificationSettings: NotificationSettings,
|
|
3231
|
+
Markdown: Markdown,
|
|
3232
|
+
PagesDomains: PagesDomains,
|
|
3233
|
+
Search: Search,
|
|
3234
|
+
SidekiqMetrics: SidekiqMetrics,
|
|
3235
|
+
Snippets: Snippets,
|
|
3236
|
+
SystemHooks: SystemHooks,
|
|
3237
|
+
Version: Version,
|
|
3238
|
+
Wikis: Wikis,
|
|
3239
|
+
};
|
|
3240
|
+
var Gitlab = /** @class */ (function (_super) {
|
|
3241
|
+
__extends(Gitlab, _super);
|
|
3242
|
+
function Gitlab(options) {
|
|
3243
|
+
var _this = _super.call(this) || this;
|
|
3244
|
+
Object.keys(resources).forEach(function (s) {
|
|
3245
|
+
_this[s] = new resources[s](options);
|
|
3246
|
+
});
|
|
3247
|
+
return _this;
|
|
3248
|
+
}
|
|
3249
|
+
return Gitlab;
|
|
3250
|
+
}(/** @class */ (function () {
|
|
3251
|
+
function class_1() {
|
|
3252
|
+
}
|
|
3253
|
+
return class_1;
|
|
3254
|
+
}())));
|
|
3255
|
+
|
|
3256
|
+
// Groups
|
|
3257
|
+
|
|
3258
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
3259
|
+
__proto__: null,
|
|
3260
|
+
Groups: Groups,
|
|
3261
|
+
GroupAccessRequests: GroupAccessRequests,
|
|
3262
|
+
GroupBadges: GroupBadges,
|
|
3263
|
+
GroupCustomAttributes: GroupCustomAttributes,
|
|
3264
|
+
GroupIssueBoards: GroupIssueBoards,
|
|
3265
|
+
GroupMembers: GroupMembers,
|
|
3266
|
+
GroupMilestones: GroupMilestones,
|
|
3267
|
+
GroupRunners: GroupRunners,
|
|
3268
|
+
GroupVariables: GroupVariables,
|
|
3269
|
+
GroupLabels: GroupLabels,
|
|
3270
|
+
GroupDeployTokens: GroupDeployTokens,
|
|
3271
|
+
Epics: Epics,
|
|
3272
|
+
EpicIssues: EpicIssues,
|
|
3273
|
+
EpicNotes: EpicNotes,
|
|
3274
|
+
EpicDiscussions: EpicDiscussions,
|
|
3275
|
+
Users: Users,
|
|
3276
|
+
UserCustomAttributes: UserCustomAttributes,
|
|
3277
|
+
UserEmails: UserEmails,
|
|
3278
|
+
UserImpersonationTokens: UserImpersonationTokens,
|
|
3279
|
+
UserSSHKeys: UserSSHKeys,
|
|
3280
|
+
UserGPGKeys: UserGPGKeys,
|
|
3281
|
+
Branches: Branches,
|
|
3282
|
+
Commits: Commits,
|
|
3283
|
+
CommitDiscussions: CommitDiscussions,
|
|
3284
|
+
ContainerRegistry: ContainerRegistry,
|
|
3285
|
+
Deployments: Deployments,
|
|
3286
|
+
DeployKeys: DeployKeys,
|
|
3287
|
+
Environments: Environments,
|
|
3288
|
+
FreezePeriods: FreezePeriods,
|
|
3289
|
+
Issues: Issues,
|
|
3290
|
+
IssuesStatistics: IssuesStatistics,
|
|
3291
|
+
IssueNotes: IssueNotes,
|
|
3292
|
+
IssueNoteAwardEmojis: IssueNoteAwardEmojis,
|
|
3293
|
+
IssueDiscussions: IssueDiscussions,
|
|
3294
|
+
IssueAwardEmojis: IssueAwardEmojis,
|
|
3295
|
+
Jobs: Jobs,
|
|
3296
|
+
Labels: Labels,
|
|
3297
|
+
MergeRequests: MergeRequests,
|
|
3298
|
+
MergeRequestApprovals: MergeRequestApprovals,
|
|
3299
|
+
MergeRequestAwardEmojis: MergeRequestAwardEmojis,
|
|
3300
|
+
MergeRequestDiscussions: MergeRequestDiscussions,
|
|
3301
|
+
MergeRequestNotes: MergeRequestNotes,
|
|
3302
|
+
Packages: Packages,
|
|
3303
|
+
PackageRegistry: PackageRegistry,
|
|
3304
|
+
Pipelines: Pipelines,
|
|
3305
|
+
PipelineSchedules: PipelineSchedules,
|
|
3306
|
+
PipelineScheduleVariables: PipelineScheduleVariables,
|
|
3307
|
+
Projects: Projects,
|
|
3308
|
+
ProjectAccessRequests: ProjectAccessRequests,
|
|
3309
|
+
ProjectBadges: ProjectBadges,
|
|
3310
|
+
ProjectCustomAttributes: ProjectCustomAttributes,
|
|
3311
|
+
ProjectImportExport: ProjectImportExport,
|
|
3312
|
+
ProjectIssueBoards: ProjectIssueBoards,
|
|
3313
|
+
ProjectHooks: ProjectHooks,
|
|
3314
|
+
ProjectMembers: ProjectMembers,
|
|
3315
|
+
ProjectMilestones: ProjectMilestones,
|
|
3316
|
+
ProjectSnippets: ProjectSnippets,
|
|
3317
|
+
ProjectSnippetNotes: ProjectSnippetNotes,
|
|
3318
|
+
ProjectSnippetDiscussions: ProjectSnippetDiscussions,
|
|
3319
|
+
ProjectSnippetAwardEmojis: ProjectSnippetAwardEmojis,
|
|
3320
|
+
ProtectedBranches: ProtectedBranches,
|
|
3321
|
+
ProtectedTags: ProtectedTags,
|
|
3322
|
+
ProjectVariables: ProjectVariables,
|
|
3323
|
+
ProjectDeployTokens: ProjectDeployTokens,
|
|
3324
|
+
PushRules: PushRules,
|
|
3325
|
+
Releases: Releases,
|
|
3326
|
+
ReleaseLinks: ReleaseLinks,
|
|
3327
|
+
Repositories: Repositories,
|
|
3328
|
+
RepositoryFiles: RepositoryFiles,
|
|
3329
|
+
RepositorySubmodules: RepositorySubmodules,
|
|
3330
|
+
Runners: Runners,
|
|
3331
|
+
Services: Services,
|
|
3332
|
+
Tags: Tags,
|
|
3333
|
+
Todos: Todos,
|
|
3334
|
+
Triggers: Triggers,
|
|
3335
|
+
VulnerabilityFindings: VulnerabilityFindings,
|
|
3336
|
+
ApplicationSettings: ApplicationSettings,
|
|
3337
|
+
BroadcastMessages: BroadcastMessages,
|
|
3338
|
+
Events: Events,
|
|
3339
|
+
FeatureFlags: FeatureFlags,
|
|
3340
|
+
GeoNodes: GeoNodes,
|
|
3341
|
+
GitignoreTemplates: GitignoreTemplates,
|
|
3342
|
+
GitLabCIYMLTemplates: GitLabCIYMLTemplates,
|
|
3343
|
+
Keys: Keys,
|
|
3344
|
+
License: License,
|
|
3345
|
+
LicenseTemplates: LicenseTemplates,
|
|
3346
|
+
Lint: Lint,
|
|
3347
|
+
Namespaces: Namespaces,
|
|
3348
|
+
NotificationSettings: NotificationSettings,
|
|
3349
|
+
Markdown: Markdown,
|
|
3350
|
+
PagesDomains: PagesDomains,
|
|
3351
|
+
Search: Search,
|
|
3352
|
+
SidekiqMetrics: SidekiqMetrics,
|
|
3353
|
+
Snippets: Snippets,
|
|
3354
|
+
SystemHooks: SystemHooks,
|
|
3355
|
+
Version: Version,
|
|
3356
|
+
Wikis: Wikis,
|
|
3357
|
+
Gitlab: Gitlab
|
|
3358
|
+
});
|
|
3359
|
+
|
|
3360
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
3361
|
+
__proto__: null
|
|
3362
|
+
});
|
|
3363
|
+
|
|
3364
|
+
export { ApplicationSettings, Branches, BroadcastMessages, CommitDiscussions, Commits, ContainerRegistry, DeployKeys, Deployments, Environments, EpicDiscussions, EpicIssues, EpicNotes, Epics, Events, FeatureFlags, FreezePeriods, GeoNodes, GitLabCIYMLTemplates, GitignoreTemplates, Gitlab, GroupAccessRequests, GroupBadges, GroupCustomAttributes, GroupDeployTokens, GroupIssueBoards, GroupLabels, GroupMembers, GroupMilestones, GroupRunners, GroupVariables, Groups, IssueAwardEmojis, IssueDiscussions, IssueNoteAwardEmojis, IssueNotes, Issues, IssuesStatistics, Jobs, Keys, Labels, License, LicenseTemplates, Lint, Markdown, MergeRequestApprovals, MergeRequestAwardEmojis, MergeRequestDiscussions, MergeRequestNotes, MergeRequests, Namespaces, NotificationSettings, PackageRegistry, Packages, PagesDomains, PipelineScheduleVariables, PipelineSchedules, Pipelines, ProjectAccessRequests, ProjectBadges, ProjectCustomAttributes, ProjectDeployTokens, ProjectHooks, ProjectImportExport, ProjectIssueBoards, ProjectMembers, ProjectMilestones, ProjectSnippetAwardEmojis, ProjectSnippetDiscussions, ProjectSnippetNotes, ProjectSnippets, ProjectVariables, Projects, ProtectedBranches, ProtectedTags, PushRules, ReleaseLinks, Releases, Repositories, RepositoryFiles, RepositorySubmodules, index as Resources, Runners, Search, Services, SidekiqMetrics, Snippets, SystemHooks, Tags, Todos, Triggers, types as Types, UserCustomAttributes, UserEmails, UserGPGKeys, UserImpersonationTokens, UserSSHKeys, Users, Version, VulnerabilityFindings, Wikis, getAPIMap };
|
|
3365
|
+
//# sourceMappingURL=index.es.js.map
|