@superdurable/connector-atlassian-bitbucket 0.1.0 → 0.2.0
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/README.md +4 -4
- package/dex-connector.json +1367 -4
- package/dist/chunk-4VFVRU2P.js +1020 -0
- package/dist/connection-DtDaG9sh.d.ts +641 -0
- package/dist/index.d.ts +1335 -10
- package/dist/index.js +1821 -35
- package/dist/mock.d.ts +388 -7
- package/dist/mock.js +968 -13
- package/package.json +6 -4
- package/dist/chunk-WKSBYF2I.js +0 -151
- package/dist/connection-DbC0QPe8.d.ts +0 -147
package/dist/mock.js
CHANGED
|
@@ -1,20 +1,160 @@
|
|
|
1
1
|
import {
|
|
2
|
+
BranchPageSchema,
|
|
3
|
+
BranchRefInputSchema,
|
|
4
|
+
BranchSchema,
|
|
5
|
+
BranchTargetSchema,
|
|
6
|
+
CreateBranchDefinition,
|
|
7
|
+
CreateBranchInputSchema,
|
|
8
|
+
CreatePullRequestCommentDefinition,
|
|
9
|
+
CreatePullRequestCommentInputSchema,
|
|
10
|
+
CreatePullRequestDefinition,
|
|
11
|
+
CreatePullRequestInputSchema,
|
|
12
|
+
CreateRepositoryDefinition,
|
|
13
|
+
CreateRepositoryInputSchema,
|
|
14
|
+
DeclinePullRequestDefinition,
|
|
15
|
+
DeleteBranchDefinition,
|
|
16
|
+
DeletePullRequestCommentDefinition,
|
|
17
|
+
DeleteRepositoryDefinition,
|
|
18
|
+
DeleteRepositoryInputSchema,
|
|
19
|
+
DeletedBranchSchema,
|
|
20
|
+
DeletedPullRequestCommentSchema,
|
|
21
|
+
DeletedRepositorySchema,
|
|
22
|
+
GetBranchDefinition,
|
|
23
|
+
GetPullRequestCommentDefinition,
|
|
24
|
+
GetPullRequestDefinition,
|
|
25
|
+
GetPullRequestInputSchema,
|
|
26
|
+
GetRepositoryDefinition,
|
|
27
|
+
GetRepositoryInputSchema,
|
|
28
|
+
ListBranchesDefinition,
|
|
29
|
+
ListBranchesInputSchema,
|
|
30
|
+
ListPullRequestCommentsDefinition,
|
|
2
31
|
ListPullRequestsDefinition,
|
|
3
32
|
ListPullRequestsInputSchema,
|
|
4
33
|
ListRepositoriesDefinition,
|
|
5
34
|
ListRepositoriesInputSchema,
|
|
35
|
+
MergePullRequestDefinition,
|
|
6
36
|
ProviderID,
|
|
37
|
+
PullRequestActionInputSchema,
|
|
38
|
+
PullRequestCommentContentSchema,
|
|
39
|
+
PullRequestCommentIDInputSchema,
|
|
40
|
+
PullRequestCommentPageSchema,
|
|
41
|
+
PullRequestCommentResolutionSchema,
|
|
42
|
+
PullRequestCommentSchema,
|
|
7
43
|
PullRequestPageSchema,
|
|
8
44
|
PullRequestSchema,
|
|
9
45
|
RepositoryPageSchema,
|
|
10
46
|
RepositorySchema,
|
|
11
|
-
|
|
12
|
-
|
|
47
|
+
ResolvePullRequestCommentDefinition,
|
|
48
|
+
UnresolvePullRequestCommentDefinition,
|
|
49
|
+
UpdatePullRequestCommentDefinition,
|
|
50
|
+
UpdatePullRequestCommentInputSchema,
|
|
51
|
+
UpdatePullRequestTitleDefinition,
|
|
52
|
+
UpdatePullRequestTitleInputSchema,
|
|
53
|
+
UpdateRepositoryDefinition,
|
|
54
|
+
UpdateRepositoryInputSchema,
|
|
55
|
+
newConnectionWithOperations,
|
|
56
|
+
parseExactIntegerJSON
|
|
57
|
+
} from "./chunk-4VFVRU2P.js";
|
|
13
58
|
|
|
14
59
|
// src/generated/mock.ts
|
|
15
|
-
import { branchCase, retryCase, newQuery } from "@superdurable/connectors-sdk/connectormock";
|
|
16
|
-
var
|
|
17
|
-
"workspace": ""
|
|
60
|
+
import { branchCase, retryCase, uncertainCase, newMutation, newQuery } from "@superdurable/connectors-sdk/connectormock";
|
|
61
|
+
var emptyListBranchesInput = ListBranchesInputSchema.parse({
|
|
62
|
+
"workspace": "",
|
|
63
|
+
"repository": ""
|
|
64
|
+
});
|
|
65
|
+
var emptyBranchTarget = BranchTargetSchema.parse({
|
|
66
|
+
"hash": ""
|
|
67
|
+
});
|
|
68
|
+
var emptyBranch = BranchSchema.parse({
|
|
69
|
+
"name": "",
|
|
70
|
+
"target": emptyBranchTarget
|
|
71
|
+
});
|
|
72
|
+
var emptyBranchPage = BranchPageSchema.parse({
|
|
73
|
+
"values": [],
|
|
74
|
+
"next": "",
|
|
75
|
+
"page": 0,
|
|
76
|
+
"pagelen": 0
|
|
77
|
+
});
|
|
78
|
+
var emptyBranchRefInput = BranchRefInputSchema.parse({
|
|
79
|
+
"workspace": "",
|
|
80
|
+
"repository": "",
|
|
81
|
+
"name": ""
|
|
82
|
+
});
|
|
83
|
+
var emptyCreateBranchInput = CreateBranchInputSchema.parse({
|
|
84
|
+
"workspace": "",
|
|
85
|
+
"repository": "",
|
|
86
|
+
"name": "",
|
|
87
|
+
"targetHash": ""
|
|
88
|
+
});
|
|
89
|
+
var emptyDeletedBranch = DeletedBranchSchema.parse({
|
|
90
|
+
"workspace": "",
|
|
91
|
+
"repository": "",
|
|
92
|
+
"name": ""
|
|
93
|
+
});
|
|
94
|
+
var emptyPullRequestActionInput = PullRequestActionInputSchema.parse({
|
|
95
|
+
"workspace": "",
|
|
96
|
+
"repository": "",
|
|
97
|
+
"pullRequestId": 0
|
|
98
|
+
});
|
|
99
|
+
var emptyPullRequestCommentContent = PullRequestCommentContentSchema.parse({
|
|
100
|
+
"raw": ""
|
|
101
|
+
});
|
|
102
|
+
var emptyPullRequestCommentResolution = PullRequestCommentResolutionSchema.parse({
|
|
103
|
+
"created_on": ""
|
|
104
|
+
});
|
|
105
|
+
var emptyPullRequestComment = PullRequestCommentSchema.parse({
|
|
106
|
+
"id": 0,
|
|
107
|
+
"content": emptyPullRequestCommentContent,
|
|
108
|
+
"deleted": false
|
|
109
|
+
});
|
|
110
|
+
var emptyPullRequestCommentPage = PullRequestCommentPageSchema.parse({
|
|
111
|
+
"values": [],
|
|
112
|
+
"next": "",
|
|
113
|
+
"page": 0,
|
|
114
|
+
"pagelen": 0
|
|
115
|
+
});
|
|
116
|
+
var emptyPullRequestCommentIDInput = PullRequestCommentIDInputSchema.parse({
|
|
117
|
+
"workspace": "",
|
|
118
|
+
"repository": "",
|
|
119
|
+
"pullRequestId": 0,
|
|
120
|
+
"commentId": 0
|
|
121
|
+
});
|
|
122
|
+
var emptyCreatePullRequestCommentInput = CreatePullRequestCommentInputSchema.parse({
|
|
123
|
+
"workspace": "",
|
|
124
|
+
"repository": "",
|
|
125
|
+
"pullRequestId": 0,
|
|
126
|
+
"raw": ""
|
|
127
|
+
});
|
|
128
|
+
var emptyUpdatePullRequestCommentInput = UpdatePullRequestCommentInputSchema.parse({
|
|
129
|
+
"workspace": "",
|
|
130
|
+
"repository": "",
|
|
131
|
+
"pullRequestId": 0,
|
|
132
|
+
"commentId": 0,
|
|
133
|
+
"raw": ""
|
|
134
|
+
});
|
|
135
|
+
var emptyDeletedPullRequestComment = DeletedPullRequestCommentSchema.parse({
|
|
136
|
+
"workspace": "",
|
|
137
|
+
"repository": "",
|
|
138
|
+
"pullRequestId": 0,
|
|
139
|
+
"commentId": 0
|
|
140
|
+
});
|
|
141
|
+
var emptyCreatePullRequestInput = CreatePullRequestInputSchema.parse({
|
|
142
|
+
"workspace": "",
|
|
143
|
+
"repository": "",
|
|
144
|
+
"title": "",
|
|
145
|
+
"sourceBranch": "",
|
|
146
|
+
"destinationBranch": ""
|
|
147
|
+
});
|
|
148
|
+
var emptyPullRequest = PullRequestSchema.parse({
|
|
149
|
+
"id": 0,
|
|
150
|
+
"title": "",
|
|
151
|
+
"state": ""
|
|
152
|
+
});
|
|
153
|
+
var emptyCreateRepositoryInput = CreateRepositoryInputSchema.parse({
|
|
154
|
+
"workspace": "",
|
|
155
|
+
"repository": "",
|
|
156
|
+
"name": "",
|
|
157
|
+
"is_private": null
|
|
18
158
|
});
|
|
19
159
|
var emptyRepository = RepositorySchema.parse({
|
|
20
160
|
"uuid": "",
|
|
@@ -22,6 +162,38 @@ var emptyRepository = RepositorySchema.parse({
|
|
|
22
162
|
"full_name": "",
|
|
23
163
|
"is_private": false
|
|
24
164
|
});
|
|
165
|
+
var emptyUpdateRepositoryInput = UpdateRepositoryInputSchema.parse({
|
|
166
|
+
"workspace": "",
|
|
167
|
+
"repository": "",
|
|
168
|
+
"name": "",
|
|
169
|
+
"is_private": null
|
|
170
|
+
});
|
|
171
|
+
var emptyDeleteRepositoryInput = DeleteRepositoryInputSchema.parse({
|
|
172
|
+
"workspace": "",
|
|
173
|
+
"repository": ""
|
|
174
|
+
});
|
|
175
|
+
var emptyDeletedRepository = DeletedRepositorySchema.parse({
|
|
176
|
+
"workspace": "",
|
|
177
|
+
"repository": ""
|
|
178
|
+
});
|
|
179
|
+
var emptyGetRepositoryInput = GetRepositoryInputSchema.parse({
|
|
180
|
+
"workspace": "",
|
|
181
|
+
"repository": ""
|
|
182
|
+
});
|
|
183
|
+
var emptyGetPullRequestInput = GetPullRequestInputSchema.parse({
|
|
184
|
+
"workspace": "",
|
|
185
|
+
"repository": "",
|
|
186
|
+
"pullRequestId": 0
|
|
187
|
+
});
|
|
188
|
+
var emptyUpdatePullRequestTitleInput = UpdatePullRequestTitleInputSchema.parse({
|
|
189
|
+
"workspace": "",
|
|
190
|
+
"repository": "",
|
|
191
|
+
"pullRequestId": 0,
|
|
192
|
+
"title": ""
|
|
193
|
+
});
|
|
194
|
+
var emptyListRepositoriesInput = ListRepositoriesInputSchema.parse({
|
|
195
|
+
"workspace": ""
|
|
196
|
+
});
|
|
25
197
|
var emptyRepositoryPage = RepositoryPageSchema.parse({
|
|
26
198
|
"values": [],
|
|
27
199
|
"next": "",
|
|
@@ -32,17 +204,500 @@ var emptyListPullRequestsInput = ListPullRequestsInputSchema.parse({
|
|
|
32
204
|
"workspace": "",
|
|
33
205
|
"repository": ""
|
|
34
206
|
});
|
|
35
|
-
var emptyPullRequest = PullRequestSchema.parse({
|
|
36
|
-
"id": 0,
|
|
37
|
-
"title": "",
|
|
38
|
-
"state": ""
|
|
39
|
-
});
|
|
40
207
|
var emptyPullRequestPage = PullRequestPageSchema.parse({
|
|
41
208
|
"values": [],
|
|
42
209
|
"next": "",
|
|
43
210
|
"page": 0,
|
|
44
211
|
"pagelen": 0
|
|
45
212
|
});
|
|
213
|
+
function listBranchesListed(value, failure) {
|
|
214
|
+
return branchCase("listed", value, failure);
|
|
215
|
+
}
|
|
216
|
+
function listBranchesNotFound(value, failure) {
|
|
217
|
+
return branchCase("notFound", value, failure);
|
|
218
|
+
}
|
|
219
|
+
function listBranchesProviderRejected(value, failure) {
|
|
220
|
+
return branchCase("providerRejected", value, failure);
|
|
221
|
+
}
|
|
222
|
+
function listBranchesInvalidResponse(value, failure) {
|
|
223
|
+
return branchCase("invalidResponse", value, failure);
|
|
224
|
+
}
|
|
225
|
+
function listBranchesDefect(value, failure) {
|
|
226
|
+
return branchCase("defect", value, failure);
|
|
227
|
+
}
|
|
228
|
+
function listBranchesRetry(failure, retryAfterMs = 0) {
|
|
229
|
+
return retryCase(failure, retryAfterMs);
|
|
230
|
+
}
|
|
231
|
+
function listBranchesListedDefault() {
|
|
232
|
+
const value = BranchPageSchema.parse(parseExactIntegerJSON('{"next":"","page":1,"pagelen":10,"values":[{"name":"feature/tests","target":{"hash":"0123456789abcdef0123456789abcdef01234567"}}]}'));
|
|
233
|
+
return branchCase("listed", value);
|
|
234
|
+
}
|
|
235
|
+
function listBranchesDefault() {
|
|
236
|
+
return listBranchesListedDefault();
|
|
237
|
+
}
|
|
238
|
+
function getBranchFound(value, failure) {
|
|
239
|
+
return branchCase("found", value, failure);
|
|
240
|
+
}
|
|
241
|
+
function getBranchNotFound(value, failure) {
|
|
242
|
+
return branchCase("notFound", value, failure);
|
|
243
|
+
}
|
|
244
|
+
function getBranchProviderRejected(value, failure) {
|
|
245
|
+
return branchCase("providerRejected", value, failure);
|
|
246
|
+
}
|
|
247
|
+
function getBranchInvalidResponse(value, failure) {
|
|
248
|
+
return branchCase("invalidResponse", value, failure);
|
|
249
|
+
}
|
|
250
|
+
function getBranchDefect(value, failure) {
|
|
251
|
+
return branchCase("defect", value, failure);
|
|
252
|
+
}
|
|
253
|
+
function getBranchRetry(failure, retryAfterMs = 0) {
|
|
254
|
+
return retryCase(failure, retryAfterMs);
|
|
255
|
+
}
|
|
256
|
+
function getBranchFoundDefault() {
|
|
257
|
+
const value = BranchSchema.parse(parseExactIntegerJSON('{"name":"feature/tests","target":{"hash":"0123456789abcdef0123456789abcdef01234567"}}'));
|
|
258
|
+
return branchCase("found", value);
|
|
259
|
+
}
|
|
260
|
+
function getBranchDefault() {
|
|
261
|
+
return getBranchFoundDefault();
|
|
262
|
+
}
|
|
263
|
+
function createBranchCreated(value, failure) {
|
|
264
|
+
return branchCase("created", value, failure);
|
|
265
|
+
}
|
|
266
|
+
function createBranchNotFound(value, failure) {
|
|
267
|
+
return branchCase("notFound", value, failure);
|
|
268
|
+
}
|
|
269
|
+
function createBranchProviderRejected(value, failure) {
|
|
270
|
+
return branchCase("providerRejected", value, failure);
|
|
271
|
+
}
|
|
272
|
+
function createBranchInvalidResponse(value, failure) {
|
|
273
|
+
return branchCase("invalidResponse", value, failure);
|
|
274
|
+
}
|
|
275
|
+
function createBranchDefect(value, failure) {
|
|
276
|
+
return branchCase("defect", value, failure);
|
|
277
|
+
}
|
|
278
|
+
function createBranchRetry(failure, retryAfterMs = 0) {
|
|
279
|
+
return retryCase(failure, retryAfterMs);
|
|
280
|
+
}
|
|
281
|
+
function createBranchCreatedDefault() {
|
|
282
|
+
const value = BranchSchema.parse(parseExactIntegerJSON('{"name":"feature/tests","target":{"hash":"0123456789abcdef0123456789abcdef01234567"}}'));
|
|
283
|
+
return branchCase("created", value);
|
|
284
|
+
}
|
|
285
|
+
function createBranchDefault() {
|
|
286
|
+
return createBranchCreatedDefault();
|
|
287
|
+
}
|
|
288
|
+
function deleteBranchDeleted(value, failure) {
|
|
289
|
+
return branchCase("deleted", value, failure);
|
|
290
|
+
}
|
|
291
|
+
function deleteBranchNotFound(value, failure) {
|
|
292
|
+
return branchCase("notFound", value, failure);
|
|
293
|
+
}
|
|
294
|
+
function deleteBranchProviderRejected(value, failure) {
|
|
295
|
+
return branchCase("providerRejected", value, failure);
|
|
296
|
+
}
|
|
297
|
+
function deleteBranchDefect(value, failure) {
|
|
298
|
+
return branchCase("defect", value, failure);
|
|
299
|
+
}
|
|
300
|
+
function deleteBranchRetry(failure, retryAfterMs = 0) {
|
|
301
|
+
return retryCase(failure, retryAfterMs);
|
|
302
|
+
}
|
|
303
|
+
function deleteBranchDeletedDefault() {
|
|
304
|
+
const value = DeletedBranchSchema.parse(parseExactIntegerJSON('{"name":"feature/tests","repository":"api","workspace":"meridian"}'));
|
|
305
|
+
return branchCase("deleted", value);
|
|
306
|
+
}
|
|
307
|
+
function deleteBranchDefault() {
|
|
308
|
+
return deleteBranchDeletedDefault();
|
|
309
|
+
}
|
|
310
|
+
function listPullRequestCommentsListed(value, failure) {
|
|
311
|
+
return branchCase("listed", value, failure);
|
|
312
|
+
}
|
|
313
|
+
function listPullRequestCommentsNotFound(value, failure) {
|
|
314
|
+
return branchCase("notFound", value, failure);
|
|
315
|
+
}
|
|
316
|
+
function listPullRequestCommentsProviderRejected(value, failure) {
|
|
317
|
+
return branchCase("providerRejected", value, failure);
|
|
318
|
+
}
|
|
319
|
+
function listPullRequestCommentsInvalidResponse(value, failure) {
|
|
320
|
+
return branchCase("invalidResponse", value, failure);
|
|
321
|
+
}
|
|
322
|
+
function listPullRequestCommentsDefect(value, failure) {
|
|
323
|
+
return branchCase("defect", value, failure);
|
|
324
|
+
}
|
|
325
|
+
function listPullRequestCommentsRetry(failure, retryAfterMs = 0) {
|
|
326
|
+
return retryCase(failure, retryAfterMs);
|
|
327
|
+
}
|
|
328
|
+
function listPullRequestCommentsListedDefault() {
|
|
329
|
+
const value = PullRequestCommentPageSchema.parse(parseExactIntegerJSON('{"next":"","page":1,"pagelen":10,"values":[{"content":{"raw":"Looks good"},"deleted":false,"id":3}]}'));
|
|
330
|
+
return branchCase("listed", value);
|
|
331
|
+
}
|
|
332
|
+
function listPullRequestCommentsDefault() {
|
|
333
|
+
return listPullRequestCommentsListedDefault();
|
|
334
|
+
}
|
|
335
|
+
function getPullRequestCommentFound(value, failure) {
|
|
336
|
+
return branchCase("found", value, failure);
|
|
337
|
+
}
|
|
338
|
+
function getPullRequestCommentNotFound(value, failure) {
|
|
339
|
+
return branchCase("notFound", value, failure);
|
|
340
|
+
}
|
|
341
|
+
function getPullRequestCommentProviderRejected(value, failure) {
|
|
342
|
+
return branchCase("providerRejected", value, failure);
|
|
343
|
+
}
|
|
344
|
+
function getPullRequestCommentInvalidResponse(value, failure) {
|
|
345
|
+
return branchCase("invalidResponse", value, failure);
|
|
346
|
+
}
|
|
347
|
+
function getPullRequestCommentDefect(value, failure) {
|
|
348
|
+
return branchCase("defect", value, failure);
|
|
349
|
+
}
|
|
350
|
+
function getPullRequestCommentRetry(failure, retryAfterMs = 0) {
|
|
351
|
+
return retryCase(failure, retryAfterMs);
|
|
352
|
+
}
|
|
353
|
+
function getPullRequestCommentFoundDefault() {
|
|
354
|
+
const value = PullRequestCommentSchema.parse(parseExactIntegerJSON('{"content":{"raw":"Looks good"},"deleted":false,"id":3}'));
|
|
355
|
+
return branchCase("found", value);
|
|
356
|
+
}
|
|
357
|
+
function getPullRequestCommentDefault() {
|
|
358
|
+
return getPullRequestCommentFoundDefault();
|
|
359
|
+
}
|
|
360
|
+
function createPullRequestCommentCreated(value, failure) {
|
|
361
|
+
return branchCase("created", value, failure);
|
|
362
|
+
}
|
|
363
|
+
function createPullRequestCommentProviderRejected(value, failure) {
|
|
364
|
+
return branchCase("providerRejected", value, failure);
|
|
365
|
+
}
|
|
366
|
+
function createPullRequestCommentDefect(value, failure) {
|
|
367
|
+
return branchCase("defect", value, failure);
|
|
368
|
+
}
|
|
369
|
+
function createPullRequestCommentRetry(failure, retryAfterMs = 0) {
|
|
370
|
+
return retryCase(failure, retryAfterMs);
|
|
371
|
+
}
|
|
372
|
+
function createPullRequestCommentUncertain(value, failure) {
|
|
373
|
+
return uncertainCase(value, failure);
|
|
374
|
+
}
|
|
375
|
+
function createPullRequestCommentCreatedDefault() {
|
|
376
|
+
const value = PullRequestCommentSchema.parse(parseExactIntegerJSON('{"content":{"raw":"Looks good"},"deleted":false,"id":3}'));
|
|
377
|
+
return branchCase("created", value);
|
|
378
|
+
}
|
|
379
|
+
function createPullRequestCommentDefault() {
|
|
380
|
+
return createPullRequestCommentCreatedDefault();
|
|
381
|
+
}
|
|
382
|
+
function updatePullRequestCommentUpdated(value, failure) {
|
|
383
|
+
return branchCase("updated", value, failure);
|
|
384
|
+
}
|
|
385
|
+
function updatePullRequestCommentNotFound(value, failure) {
|
|
386
|
+
return branchCase("notFound", value, failure);
|
|
387
|
+
}
|
|
388
|
+
function updatePullRequestCommentProviderRejected(value, failure) {
|
|
389
|
+
return branchCase("providerRejected", value, failure);
|
|
390
|
+
}
|
|
391
|
+
function updatePullRequestCommentInvalidResponse(value, failure) {
|
|
392
|
+
return branchCase("invalidResponse", value, failure);
|
|
393
|
+
}
|
|
394
|
+
function updatePullRequestCommentDefect(value, failure) {
|
|
395
|
+
return branchCase("defect", value, failure);
|
|
396
|
+
}
|
|
397
|
+
function updatePullRequestCommentRetry(failure, retryAfterMs = 0) {
|
|
398
|
+
return retryCase(failure, retryAfterMs);
|
|
399
|
+
}
|
|
400
|
+
function updatePullRequestCommentUpdatedDefault() {
|
|
401
|
+
const value = PullRequestCommentSchema.parse(parseExactIntegerJSON('{"content":{"raw":"Looks good"},"deleted":false,"id":3}'));
|
|
402
|
+
return branchCase("updated", value);
|
|
403
|
+
}
|
|
404
|
+
function updatePullRequestCommentDefault() {
|
|
405
|
+
return updatePullRequestCommentUpdatedDefault();
|
|
406
|
+
}
|
|
407
|
+
function deletePullRequestCommentDeleted(value, failure) {
|
|
408
|
+
return branchCase("deleted", value, failure);
|
|
409
|
+
}
|
|
410
|
+
function deletePullRequestCommentNotFound(value, failure) {
|
|
411
|
+
return branchCase("notFound", value, failure);
|
|
412
|
+
}
|
|
413
|
+
function deletePullRequestCommentProviderRejected(value, failure) {
|
|
414
|
+
return branchCase("providerRejected", value, failure);
|
|
415
|
+
}
|
|
416
|
+
function deletePullRequestCommentDefect(value, failure) {
|
|
417
|
+
return branchCase("defect", value, failure);
|
|
418
|
+
}
|
|
419
|
+
function deletePullRequestCommentRetry(failure, retryAfterMs = 0) {
|
|
420
|
+
return retryCase(failure, retryAfterMs);
|
|
421
|
+
}
|
|
422
|
+
function deletePullRequestCommentDeletedDefault() {
|
|
423
|
+
const value = DeletedPullRequestCommentSchema.parse(parseExactIntegerJSON('{"commentId":3,"pullRequestId":7,"repository":"api","workspace":"meridian"}'));
|
|
424
|
+
return branchCase("deleted", value);
|
|
425
|
+
}
|
|
426
|
+
function deletePullRequestCommentDefault() {
|
|
427
|
+
return deletePullRequestCommentDeletedDefault();
|
|
428
|
+
}
|
|
429
|
+
function resolvePullRequestCommentResolved(value, failure) {
|
|
430
|
+
return branchCase("resolved", value, failure);
|
|
431
|
+
}
|
|
432
|
+
function resolvePullRequestCommentNotFound(value, failure) {
|
|
433
|
+
return branchCase("notFound", value, failure);
|
|
434
|
+
}
|
|
435
|
+
function resolvePullRequestCommentProviderRejected(value, failure) {
|
|
436
|
+
return branchCase("providerRejected", value, failure);
|
|
437
|
+
}
|
|
438
|
+
function resolvePullRequestCommentInvalidResponse(value, failure) {
|
|
439
|
+
return branchCase("invalidResponse", value, failure);
|
|
440
|
+
}
|
|
441
|
+
function resolvePullRequestCommentDefect(value, failure) {
|
|
442
|
+
return branchCase("defect", value, failure);
|
|
443
|
+
}
|
|
444
|
+
function resolvePullRequestCommentRetry(failure, retryAfterMs = 0) {
|
|
445
|
+
return retryCase(failure, retryAfterMs);
|
|
446
|
+
}
|
|
447
|
+
function resolvePullRequestCommentResolvedDefault() {
|
|
448
|
+
const value = PullRequestCommentSchema.parse(parseExactIntegerJSON('{"content":{"raw":"Looks good"},"deleted":false,"id":3,"resolution":{"created_on":"2026-01-01T00:00:00Z"}}'));
|
|
449
|
+
return branchCase("resolved", value);
|
|
450
|
+
}
|
|
451
|
+
function resolvePullRequestCommentDefault() {
|
|
452
|
+
return resolvePullRequestCommentResolvedDefault();
|
|
453
|
+
}
|
|
454
|
+
function unresolvePullRequestCommentUnresolved(value, failure) {
|
|
455
|
+
return branchCase("unresolved", value, failure);
|
|
456
|
+
}
|
|
457
|
+
function unresolvePullRequestCommentNotFound(value, failure) {
|
|
458
|
+
return branchCase("notFound", value, failure);
|
|
459
|
+
}
|
|
460
|
+
function unresolvePullRequestCommentProviderRejected(value, failure) {
|
|
461
|
+
return branchCase("providerRejected", value, failure);
|
|
462
|
+
}
|
|
463
|
+
function unresolvePullRequestCommentInvalidResponse(value, failure) {
|
|
464
|
+
return branchCase("invalidResponse", value, failure);
|
|
465
|
+
}
|
|
466
|
+
function unresolvePullRequestCommentDefect(value, failure) {
|
|
467
|
+
return branchCase("defect", value, failure);
|
|
468
|
+
}
|
|
469
|
+
function unresolvePullRequestCommentRetry(failure, retryAfterMs = 0) {
|
|
470
|
+
return retryCase(failure, retryAfterMs);
|
|
471
|
+
}
|
|
472
|
+
function unresolvePullRequestCommentUnresolvedDefault() {
|
|
473
|
+
const value = PullRequestCommentSchema.parse(parseExactIntegerJSON('{"content":{"raw":"Looks good"},"deleted":false,"id":3}'));
|
|
474
|
+
return branchCase("unresolved", value);
|
|
475
|
+
}
|
|
476
|
+
function unresolvePullRequestCommentDefault() {
|
|
477
|
+
return unresolvePullRequestCommentUnresolvedDefault();
|
|
478
|
+
}
|
|
479
|
+
function createPullRequestCreated(value, failure) {
|
|
480
|
+
return branchCase("created", value, failure);
|
|
481
|
+
}
|
|
482
|
+
function createPullRequestProviderRejected(value, failure) {
|
|
483
|
+
return branchCase("providerRejected", value, failure);
|
|
484
|
+
}
|
|
485
|
+
function createPullRequestDefect(value, failure) {
|
|
486
|
+
return branchCase("defect", value, failure);
|
|
487
|
+
}
|
|
488
|
+
function createPullRequestRetry(failure, retryAfterMs = 0) {
|
|
489
|
+
return retryCase(failure, retryAfterMs);
|
|
490
|
+
}
|
|
491
|
+
function createPullRequestUncertain(value, failure) {
|
|
492
|
+
return uncertainCase(value, failure);
|
|
493
|
+
}
|
|
494
|
+
function createPullRequestCreatedDefault() {
|
|
495
|
+
const value = PullRequestSchema.parse(parseExactIntegerJSON('{"id":8,"state":"OPEN","title":"Add client tests"}'));
|
|
496
|
+
return branchCase("created", value);
|
|
497
|
+
}
|
|
498
|
+
function createPullRequestDefault() {
|
|
499
|
+
return createPullRequestCreatedDefault();
|
|
500
|
+
}
|
|
501
|
+
function mergePullRequestMerged(value, failure) {
|
|
502
|
+
return branchCase("merged", value, failure);
|
|
503
|
+
}
|
|
504
|
+
function mergePullRequestNotFound(value, failure) {
|
|
505
|
+
return branchCase("notFound", value, failure);
|
|
506
|
+
}
|
|
507
|
+
function mergePullRequestProviderRejected(value, failure) {
|
|
508
|
+
return branchCase("providerRejected", value, failure);
|
|
509
|
+
}
|
|
510
|
+
function mergePullRequestInvalidResponse(value, failure) {
|
|
511
|
+
return branchCase("invalidResponse", value, failure);
|
|
512
|
+
}
|
|
513
|
+
function mergePullRequestDefect(value, failure) {
|
|
514
|
+
return branchCase("defect", value, failure);
|
|
515
|
+
}
|
|
516
|
+
function mergePullRequestRetry(failure, retryAfterMs = 0) {
|
|
517
|
+
return retryCase(failure, retryAfterMs);
|
|
518
|
+
}
|
|
519
|
+
function mergePullRequestMergedDefault() {
|
|
520
|
+
const value = PullRequestSchema.parse(parseExactIntegerJSON('{"id":7,"state":"MERGED","title":"Add client tests"}'));
|
|
521
|
+
return branchCase("merged", value);
|
|
522
|
+
}
|
|
523
|
+
function mergePullRequestDefault() {
|
|
524
|
+
return mergePullRequestMergedDefault();
|
|
525
|
+
}
|
|
526
|
+
function declinePullRequestDeclined(value, failure) {
|
|
527
|
+
return branchCase("declined", value, failure);
|
|
528
|
+
}
|
|
529
|
+
function declinePullRequestNotFound(value, failure) {
|
|
530
|
+
return branchCase("notFound", value, failure);
|
|
531
|
+
}
|
|
532
|
+
function declinePullRequestProviderRejected(value, failure) {
|
|
533
|
+
return branchCase("providerRejected", value, failure);
|
|
534
|
+
}
|
|
535
|
+
function declinePullRequestInvalidResponse(value, failure) {
|
|
536
|
+
return branchCase("invalidResponse", value, failure);
|
|
537
|
+
}
|
|
538
|
+
function declinePullRequestDefect(value, failure) {
|
|
539
|
+
return branchCase("defect", value, failure);
|
|
540
|
+
}
|
|
541
|
+
function declinePullRequestRetry(failure, retryAfterMs = 0) {
|
|
542
|
+
return retryCase(failure, retryAfterMs);
|
|
543
|
+
}
|
|
544
|
+
function declinePullRequestDeclinedDefault() {
|
|
545
|
+
const value = PullRequestSchema.parse(parseExactIntegerJSON('{"id":7,"state":"DECLINED","title":"Add client tests"}'));
|
|
546
|
+
return branchCase("declined", value);
|
|
547
|
+
}
|
|
548
|
+
function declinePullRequestDefault() {
|
|
549
|
+
return declinePullRequestDeclinedDefault();
|
|
550
|
+
}
|
|
551
|
+
function createRepositoryCreated(value, failure) {
|
|
552
|
+
return branchCase("created", value, failure);
|
|
553
|
+
}
|
|
554
|
+
function createRepositoryNotFound(value, failure) {
|
|
555
|
+
return branchCase("notFound", value, failure);
|
|
556
|
+
}
|
|
557
|
+
function createRepositoryProviderRejected(value, failure) {
|
|
558
|
+
return branchCase("providerRejected", value, failure);
|
|
559
|
+
}
|
|
560
|
+
function createRepositoryInvalidResponse(value, failure) {
|
|
561
|
+
return branchCase("invalidResponse", value, failure);
|
|
562
|
+
}
|
|
563
|
+
function createRepositoryDefect(value, failure) {
|
|
564
|
+
return branchCase("defect", value, failure);
|
|
565
|
+
}
|
|
566
|
+
function createRepositoryRetry(failure, retryAfterMs = 0) {
|
|
567
|
+
return retryCase(failure, retryAfterMs);
|
|
568
|
+
}
|
|
569
|
+
function createRepositoryCreatedDefault() {
|
|
570
|
+
const value = RepositorySchema.parse(parseExactIntegerJSON('{"full_name":"meridian/api","is_private":true,"name":"Meridian API","uuid":"{a1b2c3d4-1234-4567-89ab-1234567890ab}"}'));
|
|
571
|
+
return branchCase("created", value);
|
|
572
|
+
}
|
|
573
|
+
function createRepositoryDefault() {
|
|
574
|
+
return createRepositoryCreatedDefault();
|
|
575
|
+
}
|
|
576
|
+
function updateRepositoryUpdated(value, failure) {
|
|
577
|
+
return branchCase("updated", value, failure);
|
|
578
|
+
}
|
|
579
|
+
function updateRepositoryNotFound(value, failure) {
|
|
580
|
+
return branchCase("notFound", value, failure);
|
|
581
|
+
}
|
|
582
|
+
function updateRepositoryProviderRejected(value, failure) {
|
|
583
|
+
return branchCase("providerRejected", value, failure);
|
|
584
|
+
}
|
|
585
|
+
function updateRepositoryInvalidResponse(value, failure) {
|
|
586
|
+
return branchCase("invalidResponse", value, failure);
|
|
587
|
+
}
|
|
588
|
+
function updateRepositoryDefect(value, failure) {
|
|
589
|
+
return branchCase("defect", value, failure);
|
|
590
|
+
}
|
|
591
|
+
function updateRepositoryRetry(failure, retryAfterMs = 0) {
|
|
592
|
+
return retryCase(failure, retryAfterMs);
|
|
593
|
+
}
|
|
594
|
+
function updateRepositoryUpdatedDefault() {
|
|
595
|
+
const value = RepositorySchema.parse(parseExactIntegerJSON('{"full_name":"meridian/api","is_private":true,"name":"Meridian API","uuid":"{a1b2c3d4-1234-4567-89ab-1234567890ab}"}'));
|
|
596
|
+
return branchCase("updated", value);
|
|
597
|
+
}
|
|
598
|
+
function updateRepositoryDefault() {
|
|
599
|
+
return updateRepositoryUpdatedDefault();
|
|
600
|
+
}
|
|
601
|
+
function deleteRepositoryDeleted(value, failure) {
|
|
602
|
+
return branchCase("deleted", value, failure);
|
|
603
|
+
}
|
|
604
|
+
function deleteRepositoryNotFound(value, failure) {
|
|
605
|
+
return branchCase("notFound", value, failure);
|
|
606
|
+
}
|
|
607
|
+
function deleteRepositoryProviderRejected(value, failure) {
|
|
608
|
+
return branchCase("providerRejected", value, failure);
|
|
609
|
+
}
|
|
610
|
+
function deleteRepositoryInvalidResponse(value, failure) {
|
|
611
|
+
return branchCase("invalidResponse", value, failure);
|
|
612
|
+
}
|
|
613
|
+
function deleteRepositoryDefect(value, failure) {
|
|
614
|
+
return branchCase("defect", value, failure);
|
|
615
|
+
}
|
|
616
|
+
function deleteRepositoryRetry(failure, retryAfterMs = 0) {
|
|
617
|
+
return retryCase(failure, retryAfterMs);
|
|
618
|
+
}
|
|
619
|
+
function deleteRepositoryDeletedDefault() {
|
|
620
|
+
const value = DeletedRepositorySchema.parse(parseExactIntegerJSON('{"repository":"api","workspace":"meridian"}'));
|
|
621
|
+
return branchCase("deleted", value);
|
|
622
|
+
}
|
|
623
|
+
function deleteRepositoryDefault() {
|
|
624
|
+
return deleteRepositoryDeletedDefault();
|
|
625
|
+
}
|
|
626
|
+
function getRepositoryFound(value, failure) {
|
|
627
|
+
return branchCase("found", value, failure);
|
|
628
|
+
}
|
|
629
|
+
function getRepositoryNotFound(value, failure) {
|
|
630
|
+
return branchCase("notFound", value, failure);
|
|
631
|
+
}
|
|
632
|
+
function getRepositoryProviderRejected(value, failure) {
|
|
633
|
+
return branchCase("providerRejected", value, failure);
|
|
634
|
+
}
|
|
635
|
+
function getRepositoryInvalidResponse(value, failure) {
|
|
636
|
+
return branchCase("invalidResponse", value, failure);
|
|
637
|
+
}
|
|
638
|
+
function getRepositoryDefect(value, failure) {
|
|
639
|
+
return branchCase("defect", value, failure);
|
|
640
|
+
}
|
|
641
|
+
function getRepositoryRetry(failure, retryAfterMs = 0) {
|
|
642
|
+
return retryCase(failure, retryAfterMs);
|
|
643
|
+
}
|
|
644
|
+
function getRepositoryFoundDefault() {
|
|
645
|
+
const value = RepositorySchema.parse(parseExactIntegerJSON('{"full_name":"meridian/api","is_private":true,"name":"Meridian API","uuid":"{a1b2c3d4-1234-4567-89ab-1234567890ab}"}'));
|
|
646
|
+
return branchCase("found", value);
|
|
647
|
+
}
|
|
648
|
+
function getRepositoryDefault() {
|
|
649
|
+
return getRepositoryFoundDefault();
|
|
650
|
+
}
|
|
651
|
+
function getPullRequestFound(value, failure) {
|
|
652
|
+
return branchCase("found", value, failure);
|
|
653
|
+
}
|
|
654
|
+
function getPullRequestNotFound(value, failure) {
|
|
655
|
+
return branchCase("notFound", value, failure);
|
|
656
|
+
}
|
|
657
|
+
function getPullRequestProviderRejected(value, failure) {
|
|
658
|
+
return branchCase("providerRejected", value, failure);
|
|
659
|
+
}
|
|
660
|
+
function getPullRequestInvalidResponse(value, failure) {
|
|
661
|
+
return branchCase("invalidResponse", value, failure);
|
|
662
|
+
}
|
|
663
|
+
function getPullRequestDefect(value, failure) {
|
|
664
|
+
return branchCase("defect", value, failure);
|
|
665
|
+
}
|
|
666
|
+
function getPullRequestRetry(failure, retryAfterMs = 0) {
|
|
667
|
+
return retryCase(failure, retryAfterMs);
|
|
668
|
+
}
|
|
669
|
+
function getPullRequestFoundDefault() {
|
|
670
|
+
const value = PullRequestSchema.parse(parseExactIntegerJSON('{"id":7,"state":"OPEN","title":"Add client tests"}'));
|
|
671
|
+
return branchCase("found", value);
|
|
672
|
+
}
|
|
673
|
+
function getPullRequestDefault() {
|
|
674
|
+
return getPullRequestFoundDefault();
|
|
675
|
+
}
|
|
676
|
+
function updatePullRequestTitleUpdated(value, failure) {
|
|
677
|
+
return branchCase("updated", value, failure);
|
|
678
|
+
}
|
|
679
|
+
function updatePullRequestTitleNotFound(value, failure) {
|
|
680
|
+
return branchCase("notFound", value, failure);
|
|
681
|
+
}
|
|
682
|
+
function updatePullRequestTitleProviderRejected(value, failure) {
|
|
683
|
+
return branchCase("providerRejected", value, failure);
|
|
684
|
+
}
|
|
685
|
+
function updatePullRequestTitleInvalidResponse(value, failure) {
|
|
686
|
+
return branchCase("invalidResponse", value, failure);
|
|
687
|
+
}
|
|
688
|
+
function updatePullRequestTitleDefect(value, failure) {
|
|
689
|
+
return branchCase("defect", value, failure);
|
|
690
|
+
}
|
|
691
|
+
function updatePullRequestTitleRetry(failure, retryAfterMs = 0) {
|
|
692
|
+
return retryCase(failure, retryAfterMs);
|
|
693
|
+
}
|
|
694
|
+
function updatePullRequestTitleUpdatedDefault() {
|
|
695
|
+
const value = PullRequestSchema.parse(parseExactIntegerJSON('{"id":7,"state":"OPEN","title":"Add client and contract tests"}'));
|
|
696
|
+
return branchCase("updated", value);
|
|
697
|
+
}
|
|
698
|
+
function updatePullRequestTitleDefault() {
|
|
699
|
+
return updatePullRequestTitleUpdatedDefault();
|
|
700
|
+
}
|
|
46
701
|
function listRepositoriesListed(value, failure) {
|
|
47
702
|
return branchCase("listed", value, failure);
|
|
48
703
|
}
|
|
@@ -62,7 +717,7 @@ function listRepositoriesRetry(failure, retryAfterMs = 0) {
|
|
|
62
717
|
return retryCase(failure, retryAfterMs);
|
|
63
718
|
}
|
|
64
719
|
function listRepositoriesDefaultAnswer() {
|
|
65
|
-
const value = RepositoryPageSchema.parse({
|
|
720
|
+
const value = RepositoryPageSchema.parse(parseExactIntegerJSON('{"next":"","page":1,"pagelen":10,"values":[{"full_name":"meridian/api","is_private":true,"name":"Meridian API","uuid":"{a1b2c3d4-1234-4567-89ab-1234567890ab}"}]}'));
|
|
66
721
|
return branchCase("listed", value);
|
|
67
722
|
}
|
|
68
723
|
function listRepositoriesDefault() {
|
|
@@ -87,17 +742,57 @@ function listPullRequestsRetry(failure, retryAfterMs = 0) {
|
|
|
87
742
|
return retryCase(failure, retryAfterMs);
|
|
88
743
|
}
|
|
89
744
|
function listPullRequestsDefaultAnswer() {
|
|
90
|
-
const value = PullRequestPageSchema.parse({
|
|
745
|
+
const value = PullRequestPageSchema.parse(parseExactIntegerJSON('{"next":"","page":1,"pagelen":10,"values":[{"id":7,"state":"OPEN","title":"Add client tests"}]}'));
|
|
91
746
|
return branchCase("listed", value);
|
|
92
747
|
}
|
|
93
748
|
function listPullRequestsDefault() {
|
|
94
749
|
return listPullRequestsDefaultAnswer();
|
|
95
750
|
}
|
|
96
751
|
var GeneratedMock = class {
|
|
752
|
+
#listBranches;
|
|
753
|
+
#getBranch;
|
|
754
|
+
#createBranch;
|
|
755
|
+
#deleteBranch;
|
|
756
|
+
#listPullRequestComments;
|
|
757
|
+
#getPullRequestComment;
|
|
758
|
+
#createPullRequestComment;
|
|
759
|
+
#updatePullRequestComment;
|
|
760
|
+
#deletePullRequestComment;
|
|
761
|
+
#resolvePullRequestComment;
|
|
762
|
+
#unresolvePullRequestComment;
|
|
763
|
+
#createPullRequest;
|
|
764
|
+
#mergePullRequest;
|
|
765
|
+
#declinePullRequest;
|
|
766
|
+
#createRepository;
|
|
767
|
+
#updateRepository;
|
|
768
|
+
#deleteRepository;
|
|
769
|
+
#getRepository;
|
|
770
|
+
#getPullRequest;
|
|
771
|
+
#updatePullRequestTitle;
|
|
97
772
|
#listRepositories;
|
|
98
773
|
#listPullRequests;
|
|
99
774
|
#connection;
|
|
100
775
|
constructor(connectionName) {
|
|
776
|
+
this.#listBranches = newQuery(ListBranchesDefinition).default(listBranchesDefault());
|
|
777
|
+
this.#getBranch = newQuery(GetBranchDefinition).default(getBranchDefault());
|
|
778
|
+
this.#createBranch = newMutation(CreateBranchDefinition).default(createBranchDefault());
|
|
779
|
+
this.#deleteBranch = newMutation(DeleteBranchDefinition).default(deleteBranchDefault());
|
|
780
|
+
this.#listPullRequestComments = newQuery(ListPullRequestCommentsDefinition).default(listPullRequestCommentsDefault());
|
|
781
|
+
this.#getPullRequestComment = newQuery(GetPullRequestCommentDefinition).default(getPullRequestCommentDefault());
|
|
782
|
+
this.#createPullRequestComment = newMutation(CreatePullRequestCommentDefinition).default(createPullRequestCommentDefault());
|
|
783
|
+
this.#updatePullRequestComment = newMutation(UpdatePullRequestCommentDefinition).default(updatePullRequestCommentDefault());
|
|
784
|
+
this.#deletePullRequestComment = newMutation(DeletePullRequestCommentDefinition).default(deletePullRequestCommentDefault());
|
|
785
|
+
this.#resolvePullRequestComment = newMutation(ResolvePullRequestCommentDefinition).default(resolvePullRequestCommentDefault());
|
|
786
|
+
this.#unresolvePullRequestComment = newMutation(UnresolvePullRequestCommentDefinition).default(unresolvePullRequestCommentDefault());
|
|
787
|
+
this.#createPullRequest = newMutation(CreatePullRequestDefinition).default(createPullRequestDefault());
|
|
788
|
+
this.#mergePullRequest = newMutation(MergePullRequestDefinition).default(mergePullRequestDefault());
|
|
789
|
+
this.#declinePullRequest = newMutation(DeclinePullRequestDefinition).default(declinePullRequestDefault());
|
|
790
|
+
this.#createRepository = newMutation(CreateRepositoryDefinition).default(createRepositoryDefault());
|
|
791
|
+
this.#updateRepository = newMutation(UpdateRepositoryDefinition).default(updateRepositoryDefault());
|
|
792
|
+
this.#deleteRepository = newMutation(DeleteRepositoryDefinition).default(deleteRepositoryDefault());
|
|
793
|
+
this.#getRepository = newQuery(GetRepositoryDefinition).default(getRepositoryDefault());
|
|
794
|
+
this.#getPullRequest = newQuery(GetPullRequestDefinition).default(getPullRequestDefault());
|
|
795
|
+
this.#updatePullRequestTitle = newMutation(UpdatePullRequestTitleDefinition).default(updatePullRequestTitleDefault());
|
|
101
796
|
this.#listRepositories = newQuery(ListRepositoriesDefinition).default(listRepositoriesDefault());
|
|
102
797
|
this.#listPullRequests = newQuery(ListPullRequestsDefinition).default(listPullRequestsDefault());
|
|
103
798
|
this.#connection = newConnectionWithOperations(this, { provider: ProviderID, name: connectionName });
|
|
@@ -105,6 +800,66 @@ var GeneratedMock = class {
|
|
|
105
800
|
connection() {
|
|
106
801
|
return this.#connection;
|
|
107
802
|
}
|
|
803
|
+
listBranches() {
|
|
804
|
+
return this.#listBranches;
|
|
805
|
+
}
|
|
806
|
+
getBranch() {
|
|
807
|
+
return this.#getBranch;
|
|
808
|
+
}
|
|
809
|
+
createBranch() {
|
|
810
|
+
return this.#createBranch;
|
|
811
|
+
}
|
|
812
|
+
deleteBranch() {
|
|
813
|
+
return this.#deleteBranch;
|
|
814
|
+
}
|
|
815
|
+
listPullRequestComments() {
|
|
816
|
+
return this.#listPullRequestComments;
|
|
817
|
+
}
|
|
818
|
+
getPullRequestComment() {
|
|
819
|
+
return this.#getPullRequestComment;
|
|
820
|
+
}
|
|
821
|
+
createPullRequestComment() {
|
|
822
|
+
return this.#createPullRequestComment;
|
|
823
|
+
}
|
|
824
|
+
updatePullRequestComment() {
|
|
825
|
+
return this.#updatePullRequestComment;
|
|
826
|
+
}
|
|
827
|
+
deletePullRequestComment() {
|
|
828
|
+
return this.#deletePullRequestComment;
|
|
829
|
+
}
|
|
830
|
+
resolvePullRequestComment() {
|
|
831
|
+
return this.#resolvePullRequestComment;
|
|
832
|
+
}
|
|
833
|
+
unresolvePullRequestComment() {
|
|
834
|
+
return this.#unresolvePullRequestComment;
|
|
835
|
+
}
|
|
836
|
+
createPullRequest() {
|
|
837
|
+
return this.#createPullRequest;
|
|
838
|
+
}
|
|
839
|
+
mergePullRequest() {
|
|
840
|
+
return this.#mergePullRequest;
|
|
841
|
+
}
|
|
842
|
+
declinePullRequest() {
|
|
843
|
+
return this.#declinePullRequest;
|
|
844
|
+
}
|
|
845
|
+
createRepository() {
|
|
846
|
+
return this.#createRepository;
|
|
847
|
+
}
|
|
848
|
+
updateRepository() {
|
|
849
|
+
return this.#updateRepository;
|
|
850
|
+
}
|
|
851
|
+
deleteRepository() {
|
|
852
|
+
return this.#deleteRepository;
|
|
853
|
+
}
|
|
854
|
+
getRepository() {
|
|
855
|
+
return this.#getRepository;
|
|
856
|
+
}
|
|
857
|
+
getPullRequest() {
|
|
858
|
+
return this.#getPullRequest;
|
|
859
|
+
}
|
|
860
|
+
updatePullRequestTitle() {
|
|
861
|
+
return this.#updatePullRequestTitle;
|
|
862
|
+
}
|
|
108
863
|
listRepositories() {
|
|
109
864
|
return this.#listRepositories;
|
|
110
865
|
}
|
|
@@ -112,18 +867,170 @@ var GeneratedMock = class {
|
|
|
112
867
|
return this.#listPullRequests;
|
|
113
868
|
}
|
|
114
869
|
assertNoFailures() {
|
|
870
|
+
this.#listBranches.assertNoFailures();
|
|
871
|
+
this.#getBranch.assertNoFailures();
|
|
872
|
+
this.#createBranch.assertNoFailures();
|
|
873
|
+
this.#deleteBranch.assertNoFailures();
|
|
874
|
+
this.#listPullRequestComments.assertNoFailures();
|
|
875
|
+
this.#getPullRequestComment.assertNoFailures();
|
|
876
|
+
this.#createPullRequestComment.assertNoFailures();
|
|
877
|
+
this.#updatePullRequestComment.assertNoFailures();
|
|
878
|
+
this.#deletePullRequestComment.assertNoFailures();
|
|
879
|
+
this.#resolvePullRequestComment.assertNoFailures();
|
|
880
|
+
this.#unresolvePullRequestComment.assertNoFailures();
|
|
881
|
+
this.#createPullRequest.assertNoFailures();
|
|
882
|
+
this.#mergePullRequest.assertNoFailures();
|
|
883
|
+
this.#declinePullRequest.assertNoFailures();
|
|
884
|
+
this.#createRepository.assertNoFailures();
|
|
885
|
+
this.#updateRepository.assertNoFailures();
|
|
886
|
+
this.#deleteRepository.assertNoFailures();
|
|
887
|
+
this.#getRepository.assertNoFailures();
|
|
888
|
+
this.#getPullRequest.assertNoFailures();
|
|
889
|
+
this.#updatePullRequestTitle.assertNoFailures();
|
|
115
890
|
this.#listRepositories.assertNoFailures();
|
|
116
891
|
this.#listPullRequests.assertNoFailures();
|
|
117
892
|
}
|
|
118
893
|
};
|
|
119
894
|
export {
|
|
120
895
|
GeneratedMock,
|
|
896
|
+
createBranchCreated,
|
|
897
|
+
createBranchCreatedDefault,
|
|
898
|
+
createBranchDefault,
|
|
899
|
+
createBranchDefect,
|
|
900
|
+
createBranchInvalidResponse,
|
|
901
|
+
createBranchNotFound,
|
|
902
|
+
createBranchProviderRejected,
|
|
903
|
+
createBranchRetry,
|
|
904
|
+
createPullRequestCommentCreated,
|
|
905
|
+
createPullRequestCommentCreatedDefault,
|
|
906
|
+
createPullRequestCommentDefault,
|
|
907
|
+
createPullRequestCommentDefect,
|
|
908
|
+
createPullRequestCommentProviderRejected,
|
|
909
|
+
createPullRequestCommentRetry,
|
|
910
|
+
createPullRequestCommentUncertain,
|
|
911
|
+
createPullRequestCreated,
|
|
912
|
+
createPullRequestCreatedDefault,
|
|
913
|
+
createPullRequestDefault,
|
|
914
|
+
createPullRequestDefect,
|
|
915
|
+
createPullRequestProviderRejected,
|
|
916
|
+
createPullRequestRetry,
|
|
917
|
+
createPullRequestUncertain,
|
|
918
|
+
createRepositoryCreated,
|
|
919
|
+
createRepositoryCreatedDefault,
|
|
920
|
+
createRepositoryDefault,
|
|
921
|
+
createRepositoryDefect,
|
|
922
|
+
createRepositoryInvalidResponse,
|
|
923
|
+
createRepositoryNotFound,
|
|
924
|
+
createRepositoryProviderRejected,
|
|
925
|
+
createRepositoryRetry,
|
|
926
|
+
declinePullRequestDeclined,
|
|
927
|
+
declinePullRequestDeclinedDefault,
|
|
928
|
+
declinePullRequestDefault,
|
|
929
|
+
declinePullRequestDefect,
|
|
930
|
+
declinePullRequestInvalidResponse,
|
|
931
|
+
declinePullRequestNotFound,
|
|
932
|
+
declinePullRequestProviderRejected,
|
|
933
|
+
declinePullRequestRetry,
|
|
934
|
+
deleteBranchDefault,
|
|
935
|
+
deleteBranchDefect,
|
|
936
|
+
deleteBranchDeleted,
|
|
937
|
+
deleteBranchDeletedDefault,
|
|
938
|
+
deleteBranchNotFound,
|
|
939
|
+
deleteBranchProviderRejected,
|
|
940
|
+
deleteBranchRetry,
|
|
941
|
+
deletePullRequestCommentDefault,
|
|
942
|
+
deletePullRequestCommentDefect,
|
|
943
|
+
deletePullRequestCommentDeleted,
|
|
944
|
+
deletePullRequestCommentDeletedDefault,
|
|
945
|
+
deletePullRequestCommentNotFound,
|
|
946
|
+
deletePullRequestCommentProviderRejected,
|
|
947
|
+
deletePullRequestCommentRetry,
|
|
948
|
+
deleteRepositoryDefault,
|
|
949
|
+
deleteRepositoryDefect,
|
|
950
|
+
deleteRepositoryDeleted,
|
|
951
|
+
deleteRepositoryDeletedDefault,
|
|
952
|
+
deleteRepositoryInvalidResponse,
|
|
953
|
+
deleteRepositoryNotFound,
|
|
954
|
+
deleteRepositoryProviderRejected,
|
|
955
|
+
deleteRepositoryRetry,
|
|
956
|
+
emptyBranch,
|
|
957
|
+
emptyBranchPage,
|
|
958
|
+
emptyBranchRefInput,
|
|
959
|
+
emptyBranchTarget,
|
|
960
|
+
emptyCreateBranchInput,
|
|
961
|
+
emptyCreatePullRequestCommentInput,
|
|
962
|
+
emptyCreatePullRequestInput,
|
|
963
|
+
emptyCreateRepositoryInput,
|
|
964
|
+
emptyDeleteRepositoryInput,
|
|
965
|
+
emptyDeletedBranch,
|
|
966
|
+
emptyDeletedPullRequestComment,
|
|
967
|
+
emptyDeletedRepository,
|
|
968
|
+
emptyGetPullRequestInput,
|
|
969
|
+
emptyGetRepositoryInput,
|
|
970
|
+
emptyListBranchesInput,
|
|
121
971
|
emptyListPullRequestsInput,
|
|
122
972
|
emptyListRepositoriesInput,
|
|
123
973
|
emptyPullRequest,
|
|
974
|
+
emptyPullRequestActionInput,
|
|
975
|
+
emptyPullRequestComment,
|
|
976
|
+
emptyPullRequestCommentContent,
|
|
977
|
+
emptyPullRequestCommentIDInput,
|
|
978
|
+
emptyPullRequestCommentPage,
|
|
979
|
+
emptyPullRequestCommentResolution,
|
|
124
980
|
emptyPullRequestPage,
|
|
125
981
|
emptyRepository,
|
|
126
982
|
emptyRepositoryPage,
|
|
983
|
+
emptyUpdatePullRequestCommentInput,
|
|
984
|
+
emptyUpdatePullRequestTitleInput,
|
|
985
|
+
emptyUpdateRepositoryInput,
|
|
986
|
+
getBranchDefault,
|
|
987
|
+
getBranchDefect,
|
|
988
|
+
getBranchFound,
|
|
989
|
+
getBranchFoundDefault,
|
|
990
|
+
getBranchInvalidResponse,
|
|
991
|
+
getBranchNotFound,
|
|
992
|
+
getBranchProviderRejected,
|
|
993
|
+
getBranchRetry,
|
|
994
|
+
getPullRequestCommentDefault,
|
|
995
|
+
getPullRequestCommentDefect,
|
|
996
|
+
getPullRequestCommentFound,
|
|
997
|
+
getPullRequestCommentFoundDefault,
|
|
998
|
+
getPullRequestCommentInvalidResponse,
|
|
999
|
+
getPullRequestCommentNotFound,
|
|
1000
|
+
getPullRequestCommentProviderRejected,
|
|
1001
|
+
getPullRequestCommentRetry,
|
|
1002
|
+
getPullRequestDefault,
|
|
1003
|
+
getPullRequestDefect,
|
|
1004
|
+
getPullRequestFound,
|
|
1005
|
+
getPullRequestFoundDefault,
|
|
1006
|
+
getPullRequestInvalidResponse,
|
|
1007
|
+
getPullRequestNotFound,
|
|
1008
|
+
getPullRequestProviderRejected,
|
|
1009
|
+
getPullRequestRetry,
|
|
1010
|
+
getRepositoryDefault,
|
|
1011
|
+
getRepositoryDefect,
|
|
1012
|
+
getRepositoryFound,
|
|
1013
|
+
getRepositoryFoundDefault,
|
|
1014
|
+
getRepositoryInvalidResponse,
|
|
1015
|
+
getRepositoryNotFound,
|
|
1016
|
+
getRepositoryProviderRejected,
|
|
1017
|
+
getRepositoryRetry,
|
|
1018
|
+
listBranchesDefault,
|
|
1019
|
+
listBranchesDefect,
|
|
1020
|
+
listBranchesInvalidResponse,
|
|
1021
|
+
listBranchesListed,
|
|
1022
|
+
listBranchesListedDefault,
|
|
1023
|
+
listBranchesNotFound,
|
|
1024
|
+
listBranchesProviderRejected,
|
|
1025
|
+
listBranchesRetry,
|
|
1026
|
+
listPullRequestCommentsDefault,
|
|
1027
|
+
listPullRequestCommentsDefect,
|
|
1028
|
+
listPullRequestCommentsInvalidResponse,
|
|
1029
|
+
listPullRequestCommentsListed,
|
|
1030
|
+
listPullRequestCommentsListedDefault,
|
|
1031
|
+
listPullRequestCommentsNotFound,
|
|
1032
|
+
listPullRequestCommentsProviderRejected,
|
|
1033
|
+
listPullRequestCommentsRetry,
|
|
127
1034
|
listPullRequestsDefault,
|
|
128
1035
|
listPullRequestsDefaultAnswer,
|
|
129
1036
|
listPullRequestsDefect,
|
|
@@ -139,5 +1046,53 @@ export {
|
|
|
139
1046
|
listRepositoriesListed,
|
|
140
1047
|
listRepositoriesNotFound,
|
|
141
1048
|
listRepositoriesProviderRejected,
|
|
142
|
-
listRepositoriesRetry
|
|
1049
|
+
listRepositoriesRetry,
|
|
1050
|
+
mergePullRequestDefault,
|
|
1051
|
+
mergePullRequestDefect,
|
|
1052
|
+
mergePullRequestInvalidResponse,
|
|
1053
|
+
mergePullRequestMerged,
|
|
1054
|
+
mergePullRequestMergedDefault,
|
|
1055
|
+
mergePullRequestNotFound,
|
|
1056
|
+
mergePullRequestProviderRejected,
|
|
1057
|
+
mergePullRequestRetry,
|
|
1058
|
+
resolvePullRequestCommentDefault,
|
|
1059
|
+
resolvePullRequestCommentDefect,
|
|
1060
|
+
resolvePullRequestCommentInvalidResponse,
|
|
1061
|
+
resolvePullRequestCommentNotFound,
|
|
1062
|
+
resolvePullRequestCommentProviderRejected,
|
|
1063
|
+
resolvePullRequestCommentResolved,
|
|
1064
|
+
resolvePullRequestCommentResolvedDefault,
|
|
1065
|
+
resolvePullRequestCommentRetry,
|
|
1066
|
+
unresolvePullRequestCommentDefault,
|
|
1067
|
+
unresolvePullRequestCommentDefect,
|
|
1068
|
+
unresolvePullRequestCommentInvalidResponse,
|
|
1069
|
+
unresolvePullRequestCommentNotFound,
|
|
1070
|
+
unresolvePullRequestCommentProviderRejected,
|
|
1071
|
+
unresolvePullRequestCommentRetry,
|
|
1072
|
+
unresolvePullRequestCommentUnresolved,
|
|
1073
|
+
unresolvePullRequestCommentUnresolvedDefault,
|
|
1074
|
+
updatePullRequestCommentDefault,
|
|
1075
|
+
updatePullRequestCommentDefect,
|
|
1076
|
+
updatePullRequestCommentInvalidResponse,
|
|
1077
|
+
updatePullRequestCommentNotFound,
|
|
1078
|
+
updatePullRequestCommentProviderRejected,
|
|
1079
|
+
updatePullRequestCommentRetry,
|
|
1080
|
+
updatePullRequestCommentUpdated,
|
|
1081
|
+
updatePullRequestCommentUpdatedDefault,
|
|
1082
|
+
updatePullRequestTitleDefault,
|
|
1083
|
+
updatePullRequestTitleDefect,
|
|
1084
|
+
updatePullRequestTitleInvalidResponse,
|
|
1085
|
+
updatePullRequestTitleNotFound,
|
|
1086
|
+
updatePullRequestTitleProviderRejected,
|
|
1087
|
+
updatePullRequestTitleRetry,
|
|
1088
|
+
updatePullRequestTitleUpdated,
|
|
1089
|
+
updatePullRequestTitleUpdatedDefault,
|
|
1090
|
+
updateRepositoryDefault,
|
|
1091
|
+
updateRepositoryDefect,
|
|
1092
|
+
updateRepositoryInvalidResponse,
|
|
1093
|
+
updateRepositoryNotFound,
|
|
1094
|
+
updateRepositoryProviderRejected,
|
|
1095
|
+
updateRepositoryRetry,
|
|
1096
|
+
updateRepositoryUpdated,
|
|
1097
|
+
updateRepositoryUpdatedDefault
|
|
143
1098
|
};
|