@unified-api/typescript-sdk 2.79.0 → 2.80.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/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/package.json +1 -1
- package/sdk/models/shared/calendareventrecurrence.d.ts +2 -5
- package/sdk/models/shared/calendareventrecurrence.d.ts.map +1 -1
- package/sdk/models/shared/calendareventrecurrence.js +2 -2
- package/sdk/models/shared/calendareventrecurrence.js.map +1 -1
- package/sdk/models/shared/index.d.ts +5 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +5 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/integration.d.ts +3 -2
- package/sdk/models/shared/integration.d.ts.map +1 -1
- package/sdk/models/shared/integration.js +3 -2
- package/sdk/models/shared/integration.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +2410 -0
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -0
- package/sdk/models/shared/integrationsupport.js +3440 -0
- package/sdk/models/shared/integrationsupport.js.map +1 -0
- package/sdk/models/shared/kmspage.d.ts +2 -0
- package/sdk/models/shared/kmspage.d.ts.map +1 -1
- package/sdk/models/shared/kmspage.js +4 -0
- package/sdk/models/shared/kmspage.js.map +1 -1
- package/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts +36 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts.map +1 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookevents.js +79 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookevents.js.map +1 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.d.ts +22 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.d.ts.map +1 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.js +68 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.js.map +1 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.d.ts +22 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.d.ts.map +1 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.js +68 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.js.map +1 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.d.ts +22 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.d.ts.map +1 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.js +68 -0
- package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.js.map +1 -0
- package/sdk/models/shared/webhook.d.ts +2 -2
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +2 -2
- package/sdk/models/shared/webhook.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/shared/calendareventrecurrence.ts +4 -7
- package/src/sdk/models/shared/index.ts +5 -0
- package/src/sdk/models/shared/integration.ts +10 -4
- package/src/sdk/models/shared/integrationsupport.ts +4969 -0
- package/src/sdk/models/shared/kmspage.ts +6 -0
- package/src/sdk/models/shared/propertyintegrationsupportwebhookevents.ts +109 -0
- package/src/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.ts +54 -0
- package/src/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.ts +54 -0
- package/src/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.ts +54 -0
- package/src/sdk/models/shared/webhook.ts +4 -4
- package/docs/sdks/account/README.md +0 -489
- package/docs/sdks/accounting/README.md +0 -7221
- package/docs/sdks/activity/README.md +0 -489
- package/docs/sdks/apicall/README.md +0 -159
- package/docs/sdks/application/README.md +0 -489
- package/docs/sdks/applicationstatus/README.md +0 -85
- package/docs/sdks/ats/README.md +0 -3953
- package/docs/sdks/auth/README.md +0 -167
- package/docs/sdks/balancesheet/README.md +0 -165
- package/docs/sdks/bill/README.md +0 -489
- package/docs/sdks/branch/README.md +0 -507
- package/docs/sdks/busy/README.md +0 -85
- package/docs/sdks/calendar/README.md +0 -1713
- package/docs/sdks/call/README.md +0 -85
- package/docs/sdks/candidate/README.md +0 -489
- package/docs/sdks/cashflow/README.md +0 -165
- package/docs/sdks/category/README.md +0 -971
- package/docs/sdks/change/README.md +0 -165
- package/docs/sdks/channel/README.md +0 -165
- package/docs/sdks/class/README.md +0 -507
- package/docs/sdks/collection/README.md +0 -501
- package/docs/sdks/comment/README.md +0 -1495
- package/docs/sdks/commerce/README.md +0 -2465
- package/docs/sdks/commit/README.md +0 -501
- package/docs/sdks/company/README.md +0 -1543
- package/docs/sdks/connection/README.md +0 -513
- package/docs/sdks/contact/README.md +0 -1453
- package/docs/sdks/course/README.md +0 -501
- package/docs/sdks/creditmemo/README.md +0 -489
- package/docs/sdks/crm/README.md +0 -2899
- package/docs/sdks/customer/README.md +0 -489
- package/docs/sdks/deal/README.md +0 -489
- package/docs/sdks/device/README.md +0 -501
- package/docs/sdks/document/README.md +0 -489
- package/docs/sdks/embedding/README.md +0 -87
- package/docs/sdks/employee/README.md +0 -489
- package/docs/sdks/enrich/README.md +0 -163
- package/docs/sdks/event/README.md +0 -971
- package/docs/sdks/expense/README.md +0 -489
- package/docs/sdks/file/README.md +0 -489
- package/docs/sdks/genai/README.md +0 -325
- package/docs/sdks/group/README.md +0 -983
- package/docs/sdks/hris/README.md +0 -3251
- package/docs/sdks/instructor/README.md +0 -489
- package/docs/sdks/integration/README.md +0 -239
- package/docs/sdks/interview/README.md +0 -489
- package/docs/sdks/inventory/README.md +0 -501
- package/docs/sdks/invoice/README.md +0 -489
- package/docs/sdks/issue/README.md +0 -159
- package/docs/sdks/item/README.md +0 -489
- package/docs/sdks/job/README.md +0 -489
- package/docs/sdks/journal/README.md +0 -489
- package/docs/sdks/kms/README.md +0 -1495
- package/docs/sdks/lead/README.md +0 -489
- package/docs/sdks/link/README.md +0 -983
- package/docs/sdks/list/README.md +0 -489
- package/docs/sdks/lms/README.md +0 -1965
- package/docs/sdks/location/README.md +0 -983
- package/docs/sdks/login/README.md +0 -87
- package/docs/sdks/martech/README.md +0 -971
- package/docs/sdks/member/README.md +0 -489
- package/docs/sdks/message/README.md +0 -489
- package/docs/sdks/messaging/README.md +0 -647
- package/docs/sdks/metadata/README.md +0 -507
- package/docs/sdks/model/README.md +0 -165
- package/docs/sdks/note/README.md +0 -489
- package/docs/sdks/order/README.md +0 -489
- package/docs/sdks/organization/README.md +0 -647
- package/docs/sdks/package/README.md +0 -165
- package/docs/sdks/page/README.md +0 -507
- package/docs/sdks/passthrough/README.md +0 -647
- package/docs/sdks/payment/README.md +0 -1769
- package/docs/sdks/payout/README.md +0 -165
- package/docs/sdks/payslip/README.md +0 -165
- package/docs/sdks/person/README.md +0 -85
- package/docs/sdks/pipeline/README.md +0 -489
- package/docs/sdks/profitloss/README.md +0 -165
- package/docs/sdks/project/README.md +0 -489
- package/docs/sdks/prompt/README.md +0 -87
- package/docs/sdks/pullrequest/README.md +0 -489
- package/docs/sdks/purchaseorder/README.md +0 -489
- package/docs/sdks/recording/README.md +0 -647
- package/docs/sdks/refund/README.md +0 -165
- package/docs/sdks/repo/README.md +0 -2459
- package/docs/sdks/report/README.md +0 -165
- package/docs/sdks/repository/README.md +0 -501
- package/docs/sdks/request/README.md +0 -489
- package/docs/sdks/review/README.md +0 -501
- package/docs/sdks/salesorder/README.md +0 -489
- package/docs/sdks/scim/README.md +0 -983
- package/docs/sdks/scorecard/README.md +0 -489
- package/docs/sdks/space/README.md +0 -501
- package/docs/sdks/storage/README.md +0 -489
- package/docs/sdks/student/README.md +0 -489
- package/docs/sdks/subscription/README.md +0 -489
- package/docs/sdks/task/README.md +0 -1629
- package/docs/sdks/taxrate/README.md +0 -489
- package/docs/sdks/ticket/README.md +0 -489
- package/docs/sdks/ticketing/README.md +0 -1935
- package/docs/sdks/timeoff/README.md +0 -165
- package/docs/sdks/timeshift/README.md +0 -513
- package/docs/sdks/transaction/README.md +0 -489
- package/docs/sdks/trialbalance/README.md +0 -165
- package/docs/sdks/uc/README.md +0 -1543
- package/docs/sdks/unified/README.md +0 -1697
- package/docs/sdks/user/README.md +0 -489
- package/docs/sdks/verification/README.md +0 -647
- package/docs/sdks/webhook/README.md +0 -655
- package/examples/README.md +0 -31
package/docs/sdks/repo/README.md
DELETED
|
@@ -1,2459 +0,0 @@
|
|
|
1
|
-
# Repo
|
|
2
|
-
(*repo*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [createRepoBranch](#createrepobranch) - Create a branch
|
|
9
|
-
* [createRepoCommit](#createrepocommit) - Create a commit
|
|
10
|
-
* [createRepoOrganization](#createrepoorganization) - Create an organization
|
|
11
|
-
* [createRepoPullrequest](#createrepopullrequest) - Create a pullrequest
|
|
12
|
-
* [createRepoRepository](#createreporepository) - Create a repository
|
|
13
|
-
* [getRepoBranch](#getrepobranch) - Retrieve a branch
|
|
14
|
-
* [getRepoCommit](#getrepocommit) - Retrieve a commit
|
|
15
|
-
* [getRepoOrganization](#getrepoorganization) - Retrieve an organization
|
|
16
|
-
* [getRepoPullrequest](#getrepopullrequest) - Retrieve a pullrequest
|
|
17
|
-
* [getRepoRepository](#getreporepository) - Retrieve a repository
|
|
18
|
-
* [listRepoBranches](#listrepobranches) - List all branches
|
|
19
|
-
* [listRepoCommits](#listrepocommits) - List all commits
|
|
20
|
-
* [listRepoOrganizations](#listrepoorganizations) - List all organizations
|
|
21
|
-
* [listRepoPullrequests](#listrepopullrequests) - List all pullrequests
|
|
22
|
-
* [listRepoRepositories](#listreporepositories) - List all repositories
|
|
23
|
-
* [patchRepoBranch](#patchrepobranch) - Update a branch
|
|
24
|
-
* [patchRepoCommit](#patchrepocommit) - Update a commit
|
|
25
|
-
* [patchRepoOrganization](#patchrepoorganization) - Update an organization
|
|
26
|
-
* [patchRepoPullrequest](#patchrepopullrequest) - Update a pullrequest
|
|
27
|
-
* [patchRepoRepository](#patchreporepository) - Update a repository
|
|
28
|
-
* [removeRepoBranch](#removerepobranch) - Remove a branch
|
|
29
|
-
* [removeRepoCommit](#removerepocommit) - Remove a commit
|
|
30
|
-
* [removeRepoOrganization](#removerepoorganization) - Remove an organization
|
|
31
|
-
* [removeRepoPullrequest](#removerepopullrequest) - Remove a pullrequest
|
|
32
|
-
* [removeRepoRepository](#removereporepository) - Remove a repository
|
|
33
|
-
* [updateRepoBranch](#updaterepobranch) - Update a branch
|
|
34
|
-
* [updateRepoCommit](#updaterepocommit) - Update a commit
|
|
35
|
-
* [updateRepoOrganization](#updaterepoorganization) - Update an organization
|
|
36
|
-
* [updateRepoPullrequest](#updaterepopullrequest) - Update a pullrequest
|
|
37
|
-
* [updateRepoRepository](#updatereporepository) - Update a repository
|
|
38
|
-
|
|
39
|
-
## createRepoBranch
|
|
40
|
-
|
|
41
|
-
Create a branch
|
|
42
|
-
|
|
43
|
-
### Example Usage
|
|
44
|
-
|
|
45
|
-
<!-- UsageSnippet language="typescript" operationID="createRepoBranch" method="post" path="/repo/{connection_id}/branch" -->
|
|
46
|
-
```typescript
|
|
47
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
48
|
-
|
|
49
|
-
const unifiedTo = new UnifiedTo({
|
|
50
|
-
security: {
|
|
51
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
async function run() {
|
|
56
|
-
const result = await unifiedTo.repo.createRepoBranch({
|
|
57
|
-
repoBranch: {
|
|
58
|
-
name: "<value>",
|
|
59
|
-
repoId: "<id>",
|
|
60
|
-
},
|
|
61
|
-
connectionId: "<id>",
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
console.log(result);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
run();
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Standalone function
|
|
71
|
-
|
|
72
|
-
The standalone function version of this method:
|
|
73
|
-
|
|
74
|
-
```typescript
|
|
75
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
76
|
-
import { repoCreateRepoBranch } from "@unified-api/typescript-sdk/funcs/repoCreateRepoBranch.js";
|
|
77
|
-
|
|
78
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
79
|
-
// You can create one instance of it to use across an application.
|
|
80
|
-
const unifiedTo = new UnifiedToCore({
|
|
81
|
-
security: {
|
|
82
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
83
|
-
},
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
async function run() {
|
|
87
|
-
const res = await repoCreateRepoBranch(unifiedTo, {
|
|
88
|
-
repoBranch: {
|
|
89
|
-
name: "<value>",
|
|
90
|
-
repoId: "<id>",
|
|
91
|
-
},
|
|
92
|
-
connectionId: "<id>",
|
|
93
|
-
});
|
|
94
|
-
if (res.ok) {
|
|
95
|
-
const { value: result } = res;
|
|
96
|
-
console.log(result);
|
|
97
|
-
} else {
|
|
98
|
-
console.log("repoCreateRepoBranch failed:", res.error);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
run();
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### Parameters
|
|
106
|
-
|
|
107
|
-
| Parameter | Type | Required | Description |
|
|
108
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
109
|
-
| `request` | [operations.CreateRepoBranchRequest](../../sdk/models/operations/createrepobranchrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
110
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
111
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
112
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
113
|
-
|
|
114
|
-
### Response
|
|
115
|
-
|
|
116
|
-
**Promise\<[shared.RepoBranch](../../sdk/models/shared/repobranch.md)\>**
|
|
117
|
-
|
|
118
|
-
### Errors
|
|
119
|
-
|
|
120
|
-
| Error Type | Status Code | Content Type |
|
|
121
|
-
| --------------- | --------------- | --------------- |
|
|
122
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
123
|
-
|
|
124
|
-
## createRepoCommit
|
|
125
|
-
|
|
126
|
-
Create a commit
|
|
127
|
-
|
|
128
|
-
### Example Usage
|
|
129
|
-
|
|
130
|
-
<!-- UsageSnippet language="typescript" operationID="createRepoCommit" method="post" path="/repo/{connection_id}/commit" -->
|
|
131
|
-
```typescript
|
|
132
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
133
|
-
|
|
134
|
-
const unifiedTo = new UnifiedTo({
|
|
135
|
-
security: {
|
|
136
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
137
|
-
},
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
async function run() {
|
|
141
|
-
const result = await unifiedTo.repo.createRepoCommit({
|
|
142
|
-
repoCommit: {
|
|
143
|
-
repoId: "<id>",
|
|
144
|
-
},
|
|
145
|
-
connectionId: "<id>",
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
console.log(result);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
run();
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
### Standalone function
|
|
155
|
-
|
|
156
|
-
The standalone function version of this method:
|
|
157
|
-
|
|
158
|
-
```typescript
|
|
159
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
160
|
-
import { repoCreateRepoCommit } from "@unified-api/typescript-sdk/funcs/repoCreateRepoCommit.js";
|
|
161
|
-
|
|
162
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
163
|
-
// You can create one instance of it to use across an application.
|
|
164
|
-
const unifiedTo = new UnifiedToCore({
|
|
165
|
-
security: {
|
|
166
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
167
|
-
},
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
async function run() {
|
|
171
|
-
const res = await repoCreateRepoCommit(unifiedTo, {
|
|
172
|
-
repoCommit: {
|
|
173
|
-
repoId: "<id>",
|
|
174
|
-
},
|
|
175
|
-
connectionId: "<id>",
|
|
176
|
-
});
|
|
177
|
-
if (res.ok) {
|
|
178
|
-
const { value: result } = res;
|
|
179
|
-
console.log(result);
|
|
180
|
-
} else {
|
|
181
|
-
console.log("repoCreateRepoCommit failed:", res.error);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
run();
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
### Parameters
|
|
189
|
-
|
|
190
|
-
| Parameter | Type | Required | Description |
|
|
191
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
192
|
-
| `request` | [operations.CreateRepoCommitRequest](../../sdk/models/operations/createrepocommitrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
193
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
194
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
195
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
196
|
-
|
|
197
|
-
### Response
|
|
198
|
-
|
|
199
|
-
**Promise\<[shared.RepoCommit](../../sdk/models/shared/repocommit.md)\>**
|
|
200
|
-
|
|
201
|
-
### Errors
|
|
202
|
-
|
|
203
|
-
| Error Type | Status Code | Content Type |
|
|
204
|
-
| --------------- | --------------- | --------------- |
|
|
205
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
206
|
-
|
|
207
|
-
## createRepoOrganization
|
|
208
|
-
|
|
209
|
-
Create an organization
|
|
210
|
-
|
|
211
|
-
### Example Usage
|
|
212
|
-
|
|
213
|
-
<!-- UsageSnippet language="typescript" operationID="createRepoOrganization" method="post" path="/repo/{connection_id}/organization" -->
|
|
214
|
-
```typescript
|
|
215
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
216
|
-
|
|
217
|
-
const unifiedTo = new UnifiedTo({
|
|
218
|
-
security: {
|
|
219
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
220
|
-
},
|
|
221
|
-
});
|
|
222
|
-
|
|
223
|
-
async function run() {
|
|
224
|
-
const result = await unifiedTo.repo.createRepoOrganization({
|
|
225
|
-
repoOrganization: {},
|
|
226
|
-
connectionId: "<id>",
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
console.log(result);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
run();
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
### Standalone function
|
|
236
|
-
|
|
237
|
-
The standalone function version of this method:
|
|
238
|
-
|
|
239
|
-
```typescript
|
|
240
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
241
|
-
import { organizationCreateRepoOrganization } from "@unified-api/typescript-sdk/funcs/organizationCreateRepoOrganization.js";
|
|
242
|
-
|
|
243
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
244
|
-
// You can create one instance of it to use across an application.
|
|
245
|
-
const unifiedTo = new UnifiedToCore({
|
|
246
|
-
security: {
|
|
247
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
248
|
-
},
|
|
249
|
-
});
|
|
250
|
-
|
|
251
|
-
async function run() {
|
|
252
|
-
const res = await organizationCreateRepoOrganization(unifiedTo, {
|
|
253
|
-
repoOrganization: {},
|
|
254
|
-
connectionId: "<id>",
|
|
255
|
-
});
|
|
256
|
-
if (res.ok) {
|
|
257
|
-
const { value: result } = res;
|
|
258
|
-
console.log(result);
|
|
259
|
-
} else {
|
|
260
|
-
console.log("organizationCreateRepoOrganization failed:", res.error);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
run();
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
### Parameters
|
|
268
|
-
|
|
269
|
-
| Parameter | Type | Required | Description |
|
|
270
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
271
|
-
| `request` | [operations.CreateRepoOrganizationRequest](../../sdk/models/operations/createrepoorganizationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
272
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
273
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
274
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
275
|
-
|
|
276
|
-
### Response
|
|
277
|
-
|
|
278
|
-
**Promise\<[shared.RepoOrganization](../../sdk/models/shared/repoorganization.md)\>**
|
|
279
|
-
|
|
280
|
-
### Errors
|
|
281
|
-
|
|
282
|
-
| Error Type | Status Code | Content Type |
|
|
283
|
-
| --------------- | --------------- | --------------- |
|
|
284
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
285
|
-
|
|
286
|
-
## createRepoPullrequest
|
|
287
|
-
|
|
288
|
-
Create a pullrequest
|
|
289
|
-
|
|
290
|
-
### Example Usage
|
|
291
|
-
|
|
292
|
-
<!-- UsageSnippet language="typescript" operationID="createRepoPullrequest" method="post" path="/repo/{connection_id}/pullrequest" -->
|
|
293
|
-
```typescript
|
|
294
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
295
|
-
|
|
296
|
-
const unifiedTo = new UnifiedTo({
|
|
297
|
-
security: {
|
|
298
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
299
|
-
},
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
async function run() {
|
|
303
|
-
const result = await unifiedTo.repo.createRepoPullrequest({
|
|
304
|
-
repoPullrequest: {},
|
|
305
|
-
connectionId: "<id>",
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
console.log(result);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
run();
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
### Standalone function
|
|
315
|
-
|
|
316
|
-
The standalone function version of this method:
|
|
317
|
-
|
|
318
|
-
```typescript
|
|
319
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
320
|
-
import { repoCreateRepoPullrequest } from "@unified-api/typescript-sdk/funcs/repoCreateRepoPullrequest.js";
|
|
321
|
-
|
|
322
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
323
|
-
// You can create one instance of it to use across an application.
|
|
324
|
-
const unifiedTo = new UnifiedToCore({
|
|
325
|
-
security: {
|
|
326
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
327
|
-
},
|
|
328
|
-
});
|
|
329
|
-
|
|
330
|
-
async function run() {
|
|
331
|
-
const res = await repoCreateRepoPullrequest(unifiedTo, {
|
|
332
|
-
repoPullrequest: {},
|
|
333
|
-
connectionId: "<id>",
|
|
334
|
-
});
|
|
335
|
-
if (res.ok) {
|
|
336
|
-
const { value: result } = res;
|
|
337
|
-
console.log(result);
|
|
338
|
-
} else {
|
|
339
|
-
console.log("repoCreateRepoPullrequest failed:", res.error);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
run();
|
|
344
|
-
```
|
|
345
|
-
|
|
346
|
-
### Parameters
|
|
347
|
-
|
|
348
|
-
| Parameter | Type | Required | Description |
|
|
349
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
350
|
-
| `request` | [operations.CreateRepoPullrequestRequest](../../sdk/models/operations/createrepopullrequestrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
351
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
352
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
353
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
354
|
-
|
|
355
|
-
### Response
|
|
356
|
-
|
|
357
|
-
**Promise\<[shared.RepoPullrequest](../../sdk/models/shared/repopullrequest.md)\>**
|
|
358
|
-
|
|
359
|
-
### Errors
|
|
360
|
-
|
|
361
|
-
| Error Type | Status Code | Content Type |
|
|
362
|
-
| --------------- | --------------- | --------------- |
|
|
363
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
364
|
-
|
|
365
|
-
## createRepoRepository
|
|
366
|
-
|
|
367
|
-
Create a repository
|
|
368
|
-
|
|
369
|
-
### Example Usage
|
|
370
|
-
|
|
371
|
-
<!-- UsageSnippet language="typescript" operationID="createRepoRepository" method="post" path="/repo/{connection_id}/repository" -->
|
|
372
|
-
```typescript
|
|
373
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
374
|
-
|
|
375
|
-
const unifiedTo = new UnifiedTo({
|
|
376
|
-
security: {
|
|
377
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
378
|
-
},
|
|
379
|
-
});
|
|
380
|
-
|
|
381
|
-
async function run() {
|
|
382
|
-
const result = await unifiedTo.repo.createRepoRepository({
|
|
383
|
-
repoRepository: {
|
|
384
|
-
name: "<value>",
|
|
385
|
-
},
|
|
386
|
-
connectionId: "<id>",
|
|
387
|
-
});
|
|
388
|
-
|
|
389
|
-
console.log(result);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
run();
|
|
393
|
-
```
|
|
394
|
-
|
|
395
|
-
### Standalone function
|
|
396
|
-
|
|
397
|
-
The standalone function version of this method:
|
|
398
|
-
|
|
399
|
-
```typescript
|
|
400
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
401
|
-
import { repoCreateRepoRepository } from "@unified-api/typescript-sdk/funcs/repoCreateRepoRepository.js";
|
|
402
|
-
|
|
403
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
404
|
-
// You can create one instance of it to use across an application.
|
|
405
|
-
const unifiedTo = new UnifiedToCore({
|
|
406
|
-
security: {
|
|
407
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
408
|
-
},
|
|
409
|
-
});
|
|
410
|
-
|
|
411
|
-
async function run() {
|
|
412
|
-
const res = await repoCreateRepoRepository(unifiedTo, {
|
|
413
|
-
repoRepository: {
|
|
414
|
-
name: "<value>",
|
|
415
|
-
},
|
|
416
|
-
connectionId: "<id>",
|
|
417
|
-
});
|
|
418
|
-
if (res.ok) {
|
|
419
|
-
const { value: result } = res;
|
|
420
|
-
console.log(result);
|
|
421
|
-
} else {
|
|
422
|
-
console.log("repoCreateRepoRepository failed:", res.error);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
run();
|
|
427
|
-
```
|
|
428
|
-
|
|
429
|
-
### Parameters
|
|
430
|
-
|
|
431
|
-
| Parameter | Type | Required | Description |
|
|
432
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
433
|
-
| `request` | [operations.CreateRepoRepositoryRequest](../../sdk/models/operations/createreporepositoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
434
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
435
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
436
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
437
|
-
|
|
438
|
-
### Response
|
|
439
|
-
|
|
440
|
-
**Promise\<[shared.RepoRepository](../../sdk/models/shared/reporepository.md)\>**
|
|
441
|
-
|
|
442
|
-
### Errors
|
|
443
|
-
|
|
444
|
-
| Error Type | Status Code | Content Type |
|
|
445
|
-
| --------------- | --------------- | --------------- |
|
|
446
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
447
|
-
|
|
448
|
-
## getRepoBranch
|
|
449
|
-
|
|
450
|
-
Retrieve a branch
|
|
451
|
-
|
|
452
|
-
### Example Usage
|
|
453
|
-
|
|
454
|
-
<!-- UsageSnippet language="typescript" operationID="getRepoBranch" method="get" path="/repo/{connection_id}/branch/{id}" -->
|
|
455
|
-
```typescript
|
|
456
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
457
|
-
|
|
458
|
-
const unifiedTo = new UnifiedTo({
|
|
459
|
-
security: {
|
|
460
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
461
|
-
},
|
|
462
|
-
});
|
|
463
|
-
|
|
464
|
-
async function run() {
|
|
465
|
-
const result = await unifiedTo.repo.getRepoBranch({
|
|
466
|
-
connectionId: "<id>",
|
|
467
|
-
id: "<id>",
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
console.log(result);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
run();
|
|
474
|
-
```
|
|
475
|
-
|
|
476
|
-
### Standalone function
|
|
477
|
-
|
|
478
|
-
The standalone function version of this method:
|
|
479
|
-
|
|
480
|
-
```typescript
|
|
481
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
482
|
-
import { repoGetRepoBranch } from "@unified-api/typescript-sdk/funcs/repoGetRepoBranch.js";
|
|
483
|
-
|
|
484
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
485
|
-
// You can create one instance of it to use across an application.
|
|
486
|
-
const unifiedTo = new UnifiedToCore({
|
|
487
|
-
security: {
|
|
488
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
489
|
-
},
|
|
490
|
-
});
|
|
491
|
-
|
|
492
|
-
async function run() {
|
|
493
|
-
const res = await repoGetRepoBranch(unifiedTo, {
|
|
494
|
-
connectionId: "<id>",
|
|
495
|
-
id: "<id>",
|
|
496
|
-
});
|
|
497
|
-
if (res.ok) {
|
|
498
|
-
const { value: result } = res;
|
|
499
|
-
console.log(result);
|
|
500
|
-
} else {
|
|
501
|
-
console.log("repoGetRepoBranch failed:", res.error);
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
run();
|
|
506
|
-
```
|
|
507
|
-
|
|
508
|
-
### Parameters
|
|
509
|
-
|
|
510
|
-
| Parameter | Type | Required | Description |
|
|
511
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
512
|
-
| `request` | [operations.GetRepoBranchRequest](../../sdk/models/operations/getrepobranchrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
513
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
514
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
515
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
516
|
-
|
|
517
|
-
### Response
|
|
518
|
-
|
|
519
|
-
**Promise\<[shared.RepoBranch](../../sdk/models/shared/repobranch.md)\>**
|
|
520
|
-
|
|
521
|
-
### Errors
|
|
522
|
-
|
|
523
|
-
| Error Type | Status Code | Content Type |
|
|
524
|
-
| --------------- | --------------- | --------------- |
|
|
525
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
526
|
-
|
|
527
|
-
## getRepoCommit
|
|
528
|
-
|
|
529
|
-
Retrieve a commit
|
|
530
|
-
|
|
531
|
-
### Example Usage
|
|
532
|
-
|
|
533
|
-
<!-- UsageSnippet language="typescript" operationID="getRepoCommit" method="get" path="/repo/{connection_id}/commit/{id}" -->
|
|
534
|
-
```typescript
|
|
535
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
536
|
-
|
|
537
|
-
const unifiedTo = new UnifiedTo({
|
|
538
|
-
security: {
|
|
539
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
540
|
-
},
|
|
541
|
-
});
|
|
542
|
-
|
|
543
|
-
async function run() {
|
|
544
|
-
const result = await unifiedTo.repo.getRepoCommit({
|
|
545
|
-
connectionId: "<id>",
|
|
546
|
-
id: "<id>",
|
|
547
|
-
});
|
|
548
|
-
|
|
549
|
-
console.log(result);
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
run();
|
|
553
|
-
```
|
|
554
|
-
|
|
555
|
-
### Standalone function
|
|
556
|
-
|
|
557
|
-
The standalone function version of this method:
|
|
558
|
-
|
|
559
|
-
```typescript
|
|
560
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
561
|
-
import { repoGetRepoCommit } from "@unified-api/typescript-sdk/funcs/repoGetRepoCommit.js";
|
|
562
|
-
|
|
563
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
564
|
-
// You can create one instance of it to use across an application.
|
|
565
|
-
const unifiedTo = new UnifiedToCore({
|
|
566
|
-
security: {
|
|
567
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
568
|
-
},
|
|
569
|
-
});
|
|
570
|
-
|
|
571
|
-
async function run() {
|
|
572
|
-
const res = await repoGetRepoCommit(unifiedTo, {
|
|
573
|
-
connectionId: "<id>",
|
|
574
|
-
id: "<id>",
|
|
575
|
-
});
|
|
576
|
-
if (res.ok) {
|
|
577
|
-
const { value: result } = res;
|
|
578
|
-
console.log(result);
|
|
579
|
-
} else {
|
|
580
|
-
console.log("repoGetRepoCommit failed:", res.error);
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
run();
|
|
585
|
-
```
|
|
586
|
-
|
|
587
|
-
### Parameters
|
|
588
|
-
|
|
589
|
-
| Parameter | Type | Required | Description |
|
|
590
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
591
|
-
| `request` | [operations.GetRepoCommitRequest](../../sdk/models/operations/getrepocommitrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
592
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
593
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
594
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
595
|
-
|
|
596
|
-
### Response
|
|
597
|
-
|
|
598
|
-
**Promise\<[shared.RepoCommit](../../sdk/models/shared/repocommit.md)\>**
|
|
599
|
-
|
|
600
|
-
### Errors
|
|
601
|
-
|
|
602
|
-
| Error Type | Status Code | Content Type |
|
|
603
|
-
| --------------- | --------------- | --------------- |
|
|
604
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
605
|
-
|
|
606
|
-
## getRepoOrganization
|
|
607
|
-
|
|
608
|
-
Retrieve an organization
|
|
609
|
-
|
|
610
|
-
### Example Usage
|
|
611
|
-
|
|
612
|
-
<!-- UsageSnippet language="typescript" operationID="getRepoOrganization" method="get" path="/repo/{connection_id}/organization/{id}" -->
|
|
613
|
-
```typescript
|
|
614
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
615
|
-
|
|
616
|
-
const unifiedTo = new UnifiedTo({
|
|
617
|
-
security: {
|
|
618
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
619
|
-
},
|
|
620
|
-
});
|
|
621
|
-
|
|
622
|
-
async function run() {
|
|
623
|
-
const result = await unifiedTo.repo.getRepoOrganization({
|
|
624
|
-
connectionId: "<id>",
|
|
625
|
-
id: "<id>",
|
|
626
|
-
});
|
|
627
|
-
|
|
628
|
-
console.log(result);
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
run();
|
|
632
|
-
```
|
|
633
|
-
|
|
634
|
-
### Standalone function
|
|
635
|
-
|
|
636
|
-
The standalone function version of this method:
|
|
637
|
-
|
|
638
|
-
```typescript
|
|
639
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
640
|
-
import { organizationGetRepoOrganization } from "@unified-api/typescript-sdk/funcs/organizationGetRepoOrganization.js";
|
|
641
|
-
|
|
642
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
643
|
-
// You can create one instance of it to use across an application.
|
|
644
|
-
const unifiedTo = new UnifiedToCore({
|
|
645
|
-
security: {
|
|
646
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
647
|
-
},
|
|
648
|
-
});
|
|
649
|
-
|
|
650
|
-
async function run() {
|
|
651
|
-
const res = await organizationGetRepoOrganization(unifiedTo, {
|
|
652
|
-
connectionId: "<id>",
|
|
653
|
-
id: "<id>",
|
|
654
|
-
});
|
|
655
|
-
if (res.ok) {
|
|
656
|
-
const { value: result } = res;
|
|
657
|
-
console.log(result);
|
|
658
|
-
} else {
|
|
659
|
-
console.log("organizationGetRepoOrganization failed:", res.error);
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
run();
|
|
664
|
-
```
|
|
665
|
-
|
|
666
|
-
### Parameters
|
|
667
|
-
|
|
668
|
-
| Parameter | Type | Required | Description |
|
|
669
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
670
|
-
| `request` | [operations.GetRepoOrganizationRequest](../../sdk/models/operations/getrepoorganizationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
671
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
672
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
673
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
674
|
-
|
|
675
|
-
### Response
|
|
676
|
-
|
|
677
|
-
**Promise\<[shared.RepoOrganization](../../sdk/models/shared/repoorganization.md)\>**
|
|
678
|
-
|
|
679
|
-
### Errors
|
|
680
|
-
|
|
681
|
-
| Error Type | Status Code | Content Type |
|
|
682
|
-
| --------------- | --------------- | --------------- |
|
|
683
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
684
|
-
|
|
685
|
-
## getRepoPullrequest
|
|
686
|
-
|
|
687
|
-
Retrieve a pullrequest
|
|
688
|
-
|
|
689
|
-
### Example Usage
|
|
690
|
-
|
|
691
|
-
<!-- UsageSnippet language="typescript" operationID="getRepoPullrequest" method="get" path="/repo/{connection_id}/pullrequest/{id}" -->
|
|
692
|
-
```typescript
|
|
693
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
694
|
-
|
|
695
|
-
const unifiedTo = new UnifiedTo({
|
|
696
|
-
security: {
|
|
697
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
698
|
-
},
|
|
699
|
-
});
|
|
700
|
-
|
|
701
|
-
async function run() {
|
|
702
|
-
const result = await unifiedTo.repo.getRepoPullrequest({
|
|
703
|
-
connectionId: "<id>",
|
|
704
|
-
id: "<id>",
|
|
705
|
-
});
|
|
706
|
-
|
|
707
|
-
console.log(result);
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
run();
|
|
711
|
-
```
|
|
712
|
-
|
|
713
|
-
### Standalone function
|
|
714
|
-
|
|
715
|
-
The standalone function version of this method:
|
|
716
|
-
|
|
717
|
-
```typescript
|
|
718
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
719
|
-
import { repoGetRepoPullrequest } from "@unified-api/typescript-sdk/funcs/repoGetRepoPullrequest.js";
|
|
720
|
-
|
|
721
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
722
|
-
// You can create one instance of it to use across an application.
|
|
723
|
-
const unifiedTo = new UnifiedToCore({
|
|
724
|
-
security: {
|
|
725
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
726
|
-
},
|
|
727
|
-
});
|
|
728
|
-
|
|
729
|
-
async function run() {
|
|
730
|
-
const res = await repoGetRepoPullrequest(unifiedTo, {
|
|
731
|
-
connectionId: "<id>",
|
|
732
|
-
id: "<id>",
|
|
733
|
-
});
|
|
734
|
-
if (res.ok) {
|
|
735
|
-
const { value: result } = res;
|
|
736
|
-
console.log(result);
|
|
737
|
-
} else {
|
|
738
|
-
console.log("repoGetRepoPullrequest failed:", res.error);
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
run();
|
|
743
|
-
```
|
|
744
|
-
|
|
745
|
-
### Parameters
|
|
746
|
-
|
|
747
|
-
| Parameter | Type | Required | Description |
|
|
748
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
749
|
-
| `request` | [operations.GetRepoPullrequestRequest](../../sdk/models/operations/getrepopullrequestrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
750
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
751
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
752
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
753
|
-
|
|
754
|
-
### Response
|
|
755
|
-
|
|
756
|
-
**Promise\<[shared.RepoPullrequest](../../sdk/models/shared/repopullrequest.md)\>**
|
|
757
|
-
|
|
758
|
-
### Errors
|
|
759
|
-
|
|
760
|
-
| Error Type | Status Code | Content Type |
|
|
761
|
-
| --------------- | --------------- | --------------- |
|
|
762
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
763
|
-
|
|
764
|
-
## getRepoRepository
|
|
765
|
-
|
|
766
|
-
Retrieve a repository
|
|
767
|
-
|
|
768
|
-
### Example Usage
|
|
769
|
-
|
|
770
|
-
<!-- UsageSnippet language="typescript" operationID="getRepoRepository" method="get" path="/repo/{connection_id}/repository/{id}" -->
|
|
771
|
-
```typescript
|
|
772
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
773
|
-
|
|
774
|
-
const unifiedTo = new UnifiedTo({
|
|
775
|
-
security: {
|
|
776
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
777
|
-
},
|
|
778
|
-
});
|
|
779
|
-
|
|
780
|
-
async function run() {
|
|
781
|
-
const result = await unifiedTo.repo.getRepoRepository({
|
|
782
|
-
connectionId: "<id>",
|
|
783
|
-
id: "<id>",
|
|
784
|
-
});
|
|
785
|
-
|
|
786
|
-
console.log(result);
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
run();
|
|
790
|
-
```
|
|
791
|
-
|
|
792
|
-
### Standalone function
|
|
793
|
-
|
|
794
|
-
The standalone function version of this method:
|
|
795
|
-
|
|
796
|
-
```typescript
|
|
797
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
798
|
-
import { repoGetRepoRepository } from "@unified-api/typescript-sdk/funcs/repoGetRepoRepository.js";
|
|
799
|
-
|
|
800
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
801
|
-
// You can create one instance of it to use across an application.
|
|
802
|
-
const unifiedTo = new UnifiedToCore({
|
|
803
|
-
security: {
|
|
804
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
805
|
-
},
|
|
806
|
-
});
|
|
807
|
-
|
|
808
|
-
async function run() {
|
|
809
|
-
const res = await repoGetRepoRepository(unifiedTo, {
|
|
810
|
-
connectionId: "<id>",
|
|
811
|
-
id: "<id>",
|
|
812
|
-
});
|
|
813
|
-
if (res.ok) {
|
|
814
|
-
const { value: result } = res;
|
|
815
|
-
console.log(result);
|
|
816
|
-
} else {
|
|
817
|
-
console.log("repoGetRepoRepository failed:", res.error);
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
run();
|
|
822
|
-
```
|
|
823
|
-
|
|
824
|
-
### Parameters
|
|
825
|
-
|
|
826
|
-
| Parameter | Type | Required | Description |
|
|
827
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
828
|
-
| `request` | [operations.GetRepoRepositoryRequest](../../sdk/models/operations/getreporepositoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
829
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
830
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
831
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
832
|
-
|
|
833
|
-
### Response
|
|
834
|
-
|
|
835
|
-
**Promise\<[shared.RepoRepository](../../sdk/models/shared/reporepository.md)\>**
|
|
836
|
-
|
|
837
|
-
### Errors
|
|
838
|
-
|
|
839
|
-
| Error Type | Status Code | Content Type |
|
|
840
|
-
| --------------- | --------------- | --------------- |
|
|
841
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
842
|
-
|
|
843
|
-
## listRepoBranches
|
|
844
|
-
|
|
845
|
-
List all branches
|
|
846
|
-
|
|
847
|
-
### Example Usage
|
|
848
|
-
|
|
849
|
-
<!-- UsageSnippet language="typescript" operationID="listRepoBranches" method="get" path="/repo/{connection_id}/branch" -->
|
|
850
|
-
```typescript
|
|
851
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
852
|
-
|
|
853
|
-
const unifiedTo = new UnifiedTo({
|
|
854
|
-
security: {
|
|
855
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
856
|
-
},
|
|
857
|
-
});
|
|
858
|
-
|
|
859
|
-
async function run() {
|
|
860
|
-
const result = await unifiedTo.repo.listRepoBranches({
|
|
861
|
-
connectionId: "<id>",
|
|
862
|
-
});
|
|
863
|
-
|
|
864
|
-
console.log(result);
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
run();
|
|
868
|
-
```
|
|
869
|
-
|
|
870
|
-
### Standalone function
|
|
871
|
-
|
|
872
|
-
The standalone function version of this method:
|
|
873
|
-
|
|
874
|
-
```typescript
|
|
875
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
876
|
-
import { repoListRepoBranches } from "@unified-api/typescript-sdk/funcs/repoListRepoBranches.js";
|
|
877
|
-
|
|
878
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
879
|
-
// You can create one instance of it to use across an application.
|
|
880
|
-
const unifiedTo = new UnifiedToCore({
|
|
881
|
-
security: {
|
|
882
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
883
|
-
},
|
|
884
|
-
});
|
|
885
|
-
|
|
886
|
-
async function run() {
|
|
887
|
-
const res = await repoListRepoBranches(unifiedTo, {
|
|
888
|
-
connectionId: "<id>",
|
|
889
|
-
});
|
|
890
|
-
if (res.ok) {
|
|
891
|
-
const { value: result } = res;
|
|
892
|
-
console.log(result);
|
|
893
|
-
} else {
|
|
894
|
-
console.log("repoListRepoBranches failed:", res.error);
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
run();
|
|
899
|
-
```
|
|
900
|
-
|
|
901
|
-
### Parameters
|
|
902
|
-
|
|
903
|
-
| Parameter | Type | Required | Description |
|
|
904
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
905
|
-
| `request` | [operations.ListRepoBranchesRequest](../../sdk/models/operations/listrepobranchesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
906
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
907
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
908
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
909
|
-
|
|
910
|
-
### Response
|
|
911
|
-
|
|
912
|
-
**Promise\<[shared.RepoBranch[]](../../models/.md)\>**
|
|
913
|
-
|
|
914
|
-
### Errors
|
|
915
|
-
|
|
916
|
-
| Error Type | Status Code | Content Type |
|
|
917
|
-
| --------------- | --------------- | --------------- |
|
|
918
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
919
|
-
|
|
920
|
-
## listRepoCommits
|
|
921
|
-
|
|
922
|
-
List all commits
|
|
923
|
-
|
|
924
|
-
### Example Usage
|
|
925
|
-
|
|
926
|
-
<!-- UsageSnippet language="typescript" operationID="listRepoCommits" method="get" path="/repo/{connection_id}/commit" -->
|
|
927
|
-
```typescript
|
|
928
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
929
|
-
|
|
930
|
-
const unifiedTo = new UnifiedTo({
|
|
931
|
-
security: {
|
|
932
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
933
|
-
},
|
|
934
|
-
});
|
|
935
|
-
|
|
936
|
-
async function run() {
|
|
937
|
-
const result = await unifiedTo.repo.listRepoCommits({
|
|
938
|
-
connectionId: "<id>",
|
|
939
|
-
});
|
|
940
|
-
|
|
941
|
-
console.log(result);
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
run();
|
|
945
|
-
```
|
|
946
|
-
|
|
947
|
-
### Standalone function
|
|
948
|
-
|
|
949
|
-
The standalone function version of this method:
|
|
950
|
-
|
|
951
|
-
```typescript
|
|
952
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
953
|
-
import { repoListRepoCommits } from "@unified-api/typescript-sdk/funcs/repoListRepoCommits.js";
|
|
954
|
-
|
|
955
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
956
|
-
// You can create one instance of it to use across an application.
|
|
957
|
-
const unifiedTo = new UnifiedToCore({
|
|
958
|
-
security: {
|
|
959
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
960
|
-
},
|
|
961
|
-
});
|
|
962
|
-
|
|
963
|
-
async function run() {
|
|
964
|
-
const res = await repoListRepoCommits(unifiedTo, {
|
|
965
|
-
connectionId: "<id>",
|
|
966
|
-
});
|
|
967
|
-
if (res.ok) {
|
|
968
|
-
const { value: result } = res;
|
|
969
|
-
console.log(result);
|
|
970
|
-
} else {
|
|
971
|
-
console.log("repoListRepoCommits failed:", res.error);
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
run();
|
|
976
|
-
```
|
|
977
|
-
|
|
978
|
-
### Parameters
|
|
979
|
-
|
|
980
|
-
| Parameter | Type | Required | Description |
|
|
981
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
982
|
-
| `request` | [operations.ListRepoCommitsRequest](../../sdk/models/operations/listrepocommitsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
983
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
984
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
985
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
986
|
-
|
|
987
|
-
### Response
|
|
988
|
-
|
|
989
|
-
**Promise\<[shared.RepoCommit[]](../../models/.md)\>**
|
|
990
|
-
|
|
991
|
-
### Errors
|
|
992
|
-
|
|
993
|
-
| Error Type | Status Code | Content Type |
|
|
994
|
-
| --------------- | --------------- | --------------- |
|
|
995
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
996
|
-
|
|
997
|
-
## listRepoOrganizations
|
|
998
|
-
|
|
999
|
-
List all organizations
|
|
1000
|
-
|
|
1001
|
-
### Example Usage
|
|
1002
|
-
|
|
1003
|
-
<!-- UsageSnippet language="typescript" operationID="listRepoOrganizations" method="get" path="/repo/{connection_id}/organization" -->
|
|
1004
|
-
```typescript
|
|
1005
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1006
|
-
|
|
1007
|
-
const unifiedTo = new UnifiedTo({
|
|
1008
|
-
security: {
|
|
1009
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1010
|
-
},
|
|
1011
|
-
});
|
|
1012
|
-
|
|
1013
|
-
async function run() {
|
|
1014
|
-
const result = await unifiedTo.repo.listRepoOrganizations({
|
|
1015
|
-
connectionId: "<id>",
|
|
1016
|
-
});
|
|
1017
|
-
|
|
1018
|
-
console.log(result);
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
run();
|
|
1022
|
-
```
|
|
1023
|
-
|
|
1024
|
-
### Standalone function
|
|
1025
|
-
|
|
1026
|
-
The standalone function version of this method:
|
|
1027
|
-
|
|
1028
|
-
```typescript
|
|
1029
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1030
|
-
import { organizationListRepoOrganizations } from "@unified-api/typescript-sdk/funcs/organizationListRepoOrganizations.js";
|
|
1031
|
-
|
|
1032
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1033
|
-
// You can create one instance of it to use across an application.
|
|
1034
|
-
const unifiedTo = new UnifiedToCore({
|
|
1035
|
-
security: {
|
|
1036
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1037
|
-
},
|
|
1038
|
-
});
|
|
1039
|
-
|
|
1040
|
-
async function run() {
|
|
1041
|
-
const res = await organizationListRepoOrganizations(unifiedTo, {
|
|
1042
|
-
connectionId: "<id>",
|
|
1043
|
-
});
|
|
1044
|
-
if (res.ok) {
|
|
1045
|
-
const { value: result } = res;
|
|
1046
|
-
console.log(result);
|
|
1047
|
-
} else {
|
|
1048
|
-
console.log("organizationListRepoOrganizations failed:", res.error);
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
run();
|
|
1053
|
-
```
|
|
1054
|
-
|
|
1055
|
-
### Parameters
|
|
1056
|
-
|
|
1057
|
-
| Parameter | Type | Required | Description |
|
|
1058
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1059
|
-
| `request` | [operations.ListRepoOrganizationsRequest](../../sdk/models/operations/listrepoorganizationsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1060
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1061
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1062
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1063
|
-
|
|
1064
|
-
### Response
|
|
1065
|
-
|
|
1066
|
-
**Promise\<[shared.RepoOrganization[]](../../models/.md)\>**
|
|
1067
|
-
|
|
1068
|
-
### Errors
|
|
1069
|
-
|
|
1070
|
-
| Error Type | Status Code | Content Type |
|
|
1071
|
-
| --------------- | --------------- | --------------- |
|
|
1072
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1073
|
-
|
|
1074
|
-
## listRepoPullrequests
|
|
1075
|
-
|
|
1076
|
-
List all pullrequests
|
|
1077
|
-
|
|
1078
|
-
### Example Usage
|
|
1079
|
-
|
|
1080
|
-
<!-- UsageSnippet language="typescript" operationID="listRepoPullrequests" method="get" path="/repo/{connection_id}/pullrequest" -->
|
|
1081
|
-
```typescript
|
|
1082
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1083
|
-
|
|
1084
|
-
const unifiedTo = new UnifiedTo({
|
|
1085
|
-
security: {
|
|
1086
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1087
|
-
},
|
|
1088
|
-
});
|
|
1089
|
-
|
|
1090
|
-
async function run() {
|
|
1091
|
-
const result = await unifiedTo.repo.listRepoPullrequests({
|
|
1092
|
-
connectionId: "<id>",
|
|
1093
|
-
});
|
|
1094
|
-
|
|
1095
|
-
console.log(result);
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
run();
|
|
1099
|
-
```
|
|
1100
|
-
|
|
1101
|
-
### Standalone function
|
|
1102
|
-
|
|
1103
|
-
The standalone function version of this method:
|
|
1104
|
-
|
|
1105
|
-
```typescript
|
|
1106
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1107
|
-
import { repoListRepoPullrequests } from "@unified-api/typescript-sdk/funcs/repoListRepoPullrequests.js";
|
|
1108
|
-
|
|
1109
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1110
|
-
// You can create one instance of it to use across an application.
|
|
1111
|
-
const unifiedTo = new UnifiedToCore({
|
|
1112
|
-
security: {
|
|
1113
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1114
|
-
},
|
|
1115
|
-
});
|
|
1116
|
-
|
|
1117
|
-
async function run() {
|
|
1118
|
-
const res = await repoListRepoPullrequests(unifiedTo, {
|
|
1119
|
-
connectionId: "<id>",
|
|
1120
|
-
});
|
|
1121
|
-
if (res.ok) {
|
|
1122
|
-
const { value: result } = res;
|
|
1123
|
-
console.log(result);
|
|
1124
|
-
} else {
|
|
1125
|
-
console.log("repoListRepoPullrequests failed:", res.error);
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
run();
|
|
1130
|
-
```
|
|
1131
|
-
|
|
1132
|
-
### Parameters
|
|
1133
|
-
|
|
1134
|
-
| Parameter | Type | Required | Description |
|
|
1135
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1136
|
-
| `request` | [operations.ListRepoPullrequestsRequest](../../sdk/models/operations/listrepopullrequestsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1137
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1138
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1139
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1140
|
-
|
|
1141
|
-
### Response
|
|
1142
|
-
|
|
1143
|
-
**Promise\<[shared.RepoPullrequest[]](../../models/.md)\>**
|
|
1144
|
-
|
|
1145
|
-
### Errors
|
|
1146
|
-
|
|
1147
|
-
| Error Type | Status Code | Content Type |
|
|
1148
|
-
| --------------- | --------------- | --------------- |
|
|
1149
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1150
|
-
|
|
1151
|
-
## listRepoRepositories
|
|
1152
|
-
|
|
1153
|
-
List all repositories
|
|
1154
|
-
|
|
1155
|
-
### Example Usage
|
|
1156
|
-
|
|
1157
|
-
<!-- UsageSnippet language="typescript" operationID="listRepoRepositories" method="get" path="/repo/{connection_id}/repository" -->
|
|
1158
|
-
```typescript
|
|
1159
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1160
|
-
|
|
1161
|
-
const unifiedTo = new UnifiedTo({
|
|
1162
|
-
security: {
|
|
1163
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1164
|
-
},
|
|
1165
|
-
});
|
|
1166
|
-
|
|
1167
|
-
async function run() {
|
|
1168
|
-
const result = await unifiedTo.repo.listRepoRepositories({
|
|
1169
|
-
connectionId: "<id>",
|
|
1170
|
-
});
|
|
1171
|
-
|
|
1172
|
-
console.log(result);
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
run();
|
|
1176
|
-
```
|
|
1177
|
-
|
|
1178
|
-
### Standalone function
|
|
1179
|
-
|
|
1180
|
-
The standalone function version of this method:
|
|
1181
|
-
|
|
1182
|
-
```typescript
|
|
1183
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1184
|
-
import { repoListRepoRepositories } from "@unified-api/typescript-sdk/funcs/repoListRepoRepositories.js";
|
|
1185
|
-
|
|
1186
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1187
|
-
// You can create one instance of it to use across an application.
|
|
1188
|
-
const unifiedTo = new UnifiedToCore({
|
|
1189
|
-
security: {
|
|
1190
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1191
|
-
},
|
|
1192
|
-
});
|
|
1193
|
-
|
|
1194
|
-
async function run() {
|
|
1195
|
-
const res = await repoListRepoRepositories(unifiedTo, {
|
|
1196
|
-
connectionId: "<id>",
|
|
1197
|
-
});
|
|
1198
|
-
if (res.ok) {
|
|
1199
|
-
const { value: result } = res;
|
|
1200
|
-
console.log(result);
|
|
1201
|
-
} else {
|
|
1202
|
-
console.log("repoListRepoRepositories failed:", res.error);
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
run();
|
|
1207
|
-
```
|
|
1208
|
-
|
|
1209
|
-
### Parameters
|
|
1210
|
-
|
|
1211
|
-
| Parameter | Type | Required | Description |
|
|
1212
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1213
|
-
| `request` | [operations.ListRepoRepositoriesRequest](../../sdk/models/operations/listreporepositoriesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1214
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1215
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1216
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1217
|
-
|
|
1218
|
-
### Response
|
|
1219
|
-
|
|
1220
|
-
**Promise\<[shared.RepoRepository[]](../../models/.md)\>**
|
|
1221
|
-
|
|
1222
|
-
### Errors
|
|
1223
|
-
|
|
1224
|
-
| Error Type | Status Code | Content Type |
|
|
1225
|
-
| --------------- | --------------- | --------------- |
|
|
1226
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1227
|
-
|
|
1228
|
-
## patchRepoBranch
|
|
1229
|
-
|
|
1230
|
-
Update a branch
|
|
1231
|
-
|
|
1232
|
-
### Example Usage
|
|
1233
|
-
|
|
1234
|
-
<!-- UsageSnippet language="typescript" operationID="patchRepoBranch" method="patch" path="/repo/{connection_id}/branch/{id}" -->
|
|
1235
|
-
```typescript
|
|
1236
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1237
|
-
|
|
1238
|
-
const unifiedTo = new UnifiedTo({
|
|
1239
|
-
security: {
|
|
1240
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1241
|
-
},
|
|
1242
|
-
});
|
|
1243
|
-
|
|
1244
|
-
async function run() {
|
|
1245
|
-
const result = await unifiedTo.repo.patchRepoBranch({
|
|
1246
|
-
repoBranch: {
|
|
1247
|
-
name: "<value>",
|
|
1248
|
-
repoId: "<id>",
|
|
1249
|
-
},
|
|
1250
|
-
connectionId: "<id>",
|
|
1251
|
-
id: "<id>",
|
|
1252
|
-
});
|
|
1253
|
-
|
|
1254
|
-
console.log(result);
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
run();
|
|
1258
|
-
```
|
|
1259
|
-
|
|
1260
|
-
### Standalone function
|
|
1261
|
-
|
|
1262
|
-
The standalone function version of this method:
|
|
1263
|
-
|
|
1264
|
-
```typescript
|
|
1265
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1266
|
-
import { repoPatchRepoBranch } from "@unified-api/typescript-sdk/funcs/repoPatchRepoBranch.js";
|
|
1267
|
-
|
|
1268
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1269
|
-
// You can create one instance of it to use across an application.
|
|
1270
|
-
const unifiedTo = new UnifiedToCore({
|
|
1271
|
-
security: {
|
|
1272
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1273
|
-
},
|
|
1274
|
-
});
|
|
1275
|
-
|
|
1276
|
-
async function run() {
|
|
1277
|
-
const res = await repoPatchRepoBranch(unifiedTo, {
|
|
1278
|
-
repoBranch: {
|
|
1279
|
-
name: "<value>",
|
|
1280
|
-
repoId: "<id>",
|
|
1281
|
-
},
|
|
1282
|
-
connectionId: "<id>",
|
|
1283
|
-
id: "<id>",
|
|
1284
|
-
});
|
|
1285
|
-
if (res.ok) {
|
|
1286
|
-
const { value: result } = res;
|
|
1287
|
-
console.log(result);
|
|
1288
|
-
} else {
|
|
1289
|
-
console.log("repoPatchRepoBranch failed:", res.error);
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
run();
|
|
1294
|
-
```
|
|
1295
|
-
|
|
1296
|
-
### Parameters
|
|
1297
|
-
|
|
1298
|
-
| Parameter | Type | Required | Description |
|
|
1299
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1300
|
-
| `request` | [operations.PatchRepoBranchRequest](../../sdk/models/operations/patchrepobranchrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1301
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1302
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1303
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1304
|
-
|
|
1305
|
-
### Response
|
|
1306
|
-
|
|
1307
|
-
**Promise\<[shared.RepoBranch](../../sdk/models/shared/repobranch.md)\>**
|
|
1308
|
-
|
|
1309
|
-
### Errors
|
|
1310
|
-
|
|
1311
|
-
| Error Type | Status Code | Content Type |
|
|
1312
|
-
| --------------- | --------------- | --------------- |
|
|
1313
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1314
|
-
|
|
1315
|
-
## patchRepoCommit
|
|
1316
|
-
|
|
1317
|
-
Update a commit
|
|
1318
|
-
|
|
1319
|
-
### Example Usage
|
|
1320
|
-
|
|
1321
|
-
<!-- UsageSnippet language="typescript" operationID="patchRepoCommit" method="patch" path="/repo/{connection_id}/commit/{id}" -->
|
|
1322
|
-
```typescript
|
|
1323
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1324
|
-
|
|
1325
|
-
const unifiedTo = new UnifiedTo({
|
|
1326
|
-
security: {
|
|
1327
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1328
|
-
},
|
|
1329
|
-
});
|
|
1330
|
-
|
|
1331
|
-
async function run() {
|
|
1332
|
-
const result = await unifiedTo.repo.patchRepoCommit({
|
|
1333
|
-
repoCommit: {
|
|
1334
|
-
repoId: "<id>",
|
|
1335
|
-
},
|
|
1336
|
-
connectionId: "<id>",
|
|
1337
|
-
id: "<id>",
|
|
1338
|
-
});
|
|
1339
|
-
|
|
1340
|
-
console.log(result);
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
run();
|
|
1344
|
-
```
|
|
1345
|
-
|
|
1346
|
-
### Standalone function
|
|
1347
|
-
|
|
1348
|
-
The standalone function version of this method:
|
|
1349
|
-
|
|
1350
|
-
```typescript
|
|
1351
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1352
|
-
import { repoPatchRepoCommit } from "@unified-api/typescript-sdk/funcs/repoPatchRepoCommit.js";
|
|
1353
|
-
|
|
1354
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1355
|
-
// You can create one instance of it to use across an application.
|
|
1356
|
-
const unifiedTo = new UnifiedToCore({
|
|
1357
|
-
security: {
|
|
1358
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1359
|
-
},
|
|
1360
|
-
});
|
|
1361
|
-
|
|
1362
|
-
async function run() {
|
|
1363
|
-
const res = await repoPatchRepoCommit(unifiedTo, {
|
|
1364
|
-
repoCommit: {
|
|
1365
|
-
repoId: "<id>",
|
|
1366
|
-
},
|
|
1367
|
-
connectionId: "<id>",
|
|
1368
|
-
id: "<id>",
|
|
1369
|
-
});
|
|
1370
|
-
if (res.ok) {
|
|
1371
|
-
const { value: result } = res;
|
|
1372
|
-
console.log(result);
|
|
1373
|
-
} else {
|
|
1374
|
-
console.log("repoPatchRepoCommit failed:", res.error);
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
run();
|
|
1379
|
-
```
|
|
1380
|
-
|
|
1381
|
-
### Parameters
|
|
1382
|
-
|
|
1383
|
-
| Parameter | Type | Required | Description |
|
|
1384
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1385
|
-
| `request` | [operations.PatchRepoCommitRequest](../../sdk/models/operations/patchrepocommitrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1386
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1387
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1388
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1389
|
-
|
|
1390
|
-
### Response
|
|
1391
|
-
|
|
1392
|
-
**Promise\<[shared.RepoCommit](../../sdk/models/shared/repocommit.md)\>**
|
|
1393
|
-
|
|
1394
|
-
### Errors
|
|
1395
|
-
|
|
1396
|
-
| Error Type | Status Code | Content Type |
|
|
1397
|
-
| --------------- | --------------- | --------------- |
|
|
1398
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1399
|
-
|
|
1400
|
-
## patchRepoOrganization
|
|
1401
|
-
|
|
1402
|
-
Update an organization
|
|
1403
|
-
|
|
1404
|
-
### Example Usage
|
|
1405
|
-
|
|
1406
|
-
<!-- UsageSnippet language="typescript" operationID="patchRepoOrganization" method="patch" path="/repo/{connection_id}/organization/{id}" -->
|
|
1407
|
-
```typescript
|
|
1408
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1409
|
-
|
|
1410
|
-
const unifiedTo = new UnifiedTo({
|
|
1411
|
-
security: {
|
|
1412
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1413
|
-
},
|
|
1414
|
-
});
|
|
1415
|
-
|
|
1416
|
-
async function run() {
|
|
1417
|
-
const result = await unifiedTo.repo.patchRepoOrganization({
|
|
1418
|
-
repoOrganization: {},
|
|
1419
|
-
connectionId: "<id>",
|
|
1420
|
-
id: "<id>",
|
|
1421
|
-
});
|
|
1422
|
-
|
|
1423
|
-
console.log(result);
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
run();
|
|
1427
|
-
```
|
|
1428
|
-
|
|
1429
|
-
### Standalone function
|
|
1430
|
-
|
|
1431
|
-
The standalone function version of this method:
|
|
1432
|
-
|
|
1433
|
-
```typescript
|
|
1434
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1435
|
-
import { organizationPatchRepoOrganization } from "@unified-api/typescript-sdk/funcs/organizationPatchRepoOrganization.js";
|
|
1436
|
-
|
|
1437
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1438
|
-
// You can create one instance of it to use across an application.
|
|
1439
|
-
const unifiedTo = new UnifiedToCore({
|
|
1440
|
-
security: {
|
|
1441
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1442
|
-
},
|
|
1443
|
-
});
|
|
1444
|
-
|
|
1445
|
-
async function run() {
|
|
1446
|
-
const res = await organizationPatchRepoOrganization(unifiedTo, {
|
|
1447
|
-
repoOrganization: {},
|
|
1448
|
-
connectionId: "<id>",
|
|
1449
|
-
id: "<id>",
|
|
1450
|
-
});
|
|
1451
|
-
if (res.ok) {
|
|
1452
|
-
const { value: result } = res;
|
|
1453
|
-
console.log(result);
|
|
1454
|
-
} else {
|
|
1455
|
-
console.log("organizationPatchRepoOrganization failed:", res.error);
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
run();
|
|
1460
|
-
```
|
|
1461
|
-
|
|
1462
|
-
### Parameters
|
|
1463
|
-
|
|
1464
|
-
| Parameter | Type | Required | Description |
|
|
1465
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1466
|
-
| `request` | [operations.PatchRepoOrganizationRequest](../../sdk/models/operations/patchrepoorganizationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1467
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1468
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1469
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1470
|
-
|
|
1471
|
-
### Response
|
|
1472
|
-
|
|
1473
|
-
**Promise\<[shared.RepoOrganization](../../sdk/models/shared/repoorganization.md)\>**
|
|
1474
|
-
|
|
1475
|
-
### Errors
|
|
1476
|
-
|
|
1477
|
-
| Error Type | Status Code | Content Type |
|
|
1478
|
-
| --------------- | --------------- | --------------- |
|
|
1479
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1480
|
-
|
|
1481
|
-
## patchRepoPullrequest
|
|
1482
|
-
|
|
1483
|
-
Update a pullrequest
|
|
1484
|
-
|
|
1485
|
-
### Example Usage
|
|
1486
|
-
|
|
1487
|
-
<!-- UsageSnippet language="typescript" operationID="patchRepoPullrequest" method="patch" path="/repo/{connection_id}/pullrequest/{id}" -->
|
|
1488
|
-
```typescript
|
|
1489
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1490
|
-
|
|
1491
|
-
const unifiedTo = new UnifiedTo({
|
|
1492
|
-
security: {
|
|
1493
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1494
|
-
},
|
|
1495
|
-
});
|
|
1496
|
-
|
|
1497
|
-
async function run() {
|
|
1498
|
-
const result = await unifiedTo.repo.patchRepoPullrequest({
|
|
1499
|
-
repoPullrequest: {},
|
|
1500
|
-
connectionId: "<id>",
|
|
1501
|
-
id: "<id>",
|
|
1502
|
-
});
|
|
1503
|
-
|
|
1504
|
-
console.log(result);
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
run();
|
|
1508
|
-
```
|
|
1509
|
-
|
|
1510
|
-
### Standalone function
|
|
1511
|
-
|
|
1512
|
-
The standalone function version of this method:
|
|
1513
|
-
|
|
1514
|
-
```typescript
|
|
1515
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1516
|
-
import { repoPatchRepoPullrequest } from "@unified-api/typescript-sdk/funcs/repoPatchRepoPullrequest.js";
|
|
1517
|
-
|
|
1518
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1519
|
-
// You can create one instance of it to use across an application.
|
|
1520
|
-
const unifiedTo = new UnifiedToCore({
|
|
1521
|
-
security: {
|
|
1522
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1523
|
-
},
|
|
1524
|
-
});
|
|
1525
|
-
|
|
1526
|
-
async function run() {
|
|
1527
|
-
const res = await repoPatchRepoPullrequest(unifiedTo, {
|
|
1528
|
-
repoPullrequest: {},
|
|
1529
|
-
connectionId: "<id>",
|
|
1530
|
-
id: "<id>",
|
|
1531
|
-
});
|
|
1532
|
-
if (res.ok) {
|
|
1533
|
-
const { value: result } = res;
|
|
1534
|
-
console.log(result);
|
|
1535
|
-
} else {
|
|
1536
|
-
console.log("repoPatchRepoPullrequest failed:", res.error);
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
|
-
run();
|
|
1541
|
-
```
|
|
1542
|
-
|
|
1543
|
-
### Parameters
|
|
1544
|
-
|
|
1545
|
-
| Parameter | Type | Required | Description |
|
|
1546
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1547
|
-
| `request` | [operations.PatchRepoPullrequestRequest](../../sdk/models/operations/patchrepopullrequestrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1548
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1549
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1550
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1551
|
-
|
|
1552
|
-
### Response
|
|
1553
|
-
|
|
1554
|
-
**Promise\<[shared.RepoPullrequest](../../sdk/models/shared/repopullrequest.md)\>**
|
|
1555
|
-
|
|
1556
|
-
### Errors
|
|
1557
|
-
|
|
1558
|
-
| Error Type | Status Code | Content Type |
|
|
1559
|
-
| --------------- | --------------- | --------------- |
|
|
1560
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1561
|
-
|
|
1562
|
-
## patchRepoRepository
|
|
1563
|
-
|
|
1564
|
-
Update a repository
|
|
1565
|
-
|
|
1566
|
-
### Example Usage
|
|
1567
|
-
|
|
1568
|
-
<!-- UsageSnippet language="typescript" operationID="patchRepoRepository" method="patch" path="/repo/{connection_id}/repository/{id}" -->
|
|
1569
|
-
```typescript
|
|
1570
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1571
|
-
|
|
1572
|
-
const unifiedTo = new UnifiedTo({
|
|
1573
|
-
security: {
|
|
1574
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1575
|
-
},
|
|
1576
|
-
});
|
|
1577
|
-
|
|
1578
|
-
async function run() {
|
|
1579
|
-
const result = await unifiedTo.repo.patchRepoRepository({
|
|
1580
|
-
repoRepository: {
|
|
1581
|
-
name: "<value>",
|
|
1582
|
-
},
|
|
1583
|
-
connectionId: "<id>",
|
|
1584
|
-
id: "<id>",
|
|
1585
|
-
});
|
|
1586
|
-
|
|
1587
|
-
console.log(result);
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
run();
|
|
1591
|
-
```
|
|
1592
|
-
|
|
1593
|
-
### Standalone function
|
|
1594
|
-
|
|
1595
|
-
The standalone function version of this method:
|
|
1596
|
-
|
|
1597
|
-
```typescript
|
|
1598
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1599
|
-
import { repoPatchRepoRepository } from "@unified-api/typescript-sdk/funcs/repoPatchRepoRepository.js";
|
|
1600
|
-
|
|
1601
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1602
|
-
// You can create one instance of it to use across an application.
|
|
1603
|
-
const unifiedTo = new UnifiedToCore({
|
|
1604
|
-
security: {
|
|
1605
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1606
|
-
},
|
|
1607
|
-
});
|
|
1608
|
-
|
|
1609
|
-
async function run() {
|
|
1610
|
-
const res = await repoPatchRepoRepository(unifiedTo, {
|
|
1611
|
-
repoRepository: {
|
|
1612
|
-
name: "<value>",
|
|
1613
|
-
},
|
|
1614
|
-
connectionId: "<id>",
|
|
1615
|
-
id: "<id>",
|
|
1616
|
-
});
|
|
1617
|
-
if (res.ok) {
|
|
1618
|
-
const { value: result } = res;
|
|
1619
|
-
console.log(result);
|
|
1620
|
-
} else {
|
|
1621
|
-
console.log("repoPatchRepoRepository failed:", res.error);
|
|
1622
|
-
}
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
run();
|
|
1626
|
-
```
|
|
1627
|
-
|
|
1628
|
-
### Parameters
|
|
1629
|
-
|
|
1630
|
-
| Parameter | Type | Required | Description |
|
|
1631
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1632
|
-
| `request` | [operations.PatchRepoRepositoryRequest](../../sdk/models/operations/patchreporepositoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1633
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1634
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1635
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1636
|
-
|
|
1637
|
-
### Response
|
|
1638
|
-
|
|
1639
|
-
**Promise\<[shared.RepoRepository](../../sdk/models/shared/reporepository.md)\>**
|
|
1640
|
-
|
|
1641
|
-
### Errors
|
|
1642
|
-
|
|
1643
|
-
| Error Type | Status Code | Content Type |
|
|
1644
|
-
| --------------- | --------------- | --------------- |
|
|
1645
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1646
|
-
|
|
1647
|
-
## removeRepoBranch
|
|
1648
|
-
|
|
1649
|
-
Remove a branch
|
|
1650
|
-
|
|
1651
|
-
### Example Usage
|
|
1652
|
-
|
|
1653
|
-
<!-- UsageSnippet language="typescript" operationID="removeRepoBranch" method="delete" path="/repo/{connection_id}/branch/{id}" -->
|
|
1654
|
-
```typescript
|
|
1655
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1656
|
-
|
|
1657
|
-
const unifiedTo = new UnifiedTo({
|
|
1658
|
-
security: {
|
|
1659
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1660
|
-
},
|
|
1661
|
-
});
|
|
1662
|
-
|
|
1663
|
-
async function run() {
|
|
1664
|
-
const result = await unifiedTo.repo.removeRepoBranch({
|
|
1665
|
-
connectionId: "<id>",
|
|
1666
|
-
id: "<id>",
|
|
1667
|
-
});
|
|
1668
|
-
|
|
1669
|
-
console.log(result);
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
run();
|
|
1673
|
-
```
|
|
1674
|
-
|
|
1675
|
-
### Standalone function
|
|
1676
|
-
|
|
1677
|
-
The standalone function version of this method:
|
|
1678
|
-
|
|
1679
|
-
```typescript
|
|
1680
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1681
|
-
import { repoRemoveRepoBranch } from "@unified-api/typescript-sdk/funcs/repoRemoveRepoBranch.js";
|
|
1682
|
-
|
|
1683
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1684
|
-
// You can create one instance of it to use across an application.
|
|
1685
|
-
const unifiedTo = new UnifiedToCore({
|
|
1686
|
-
security: {
|
|
1687
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1688
|
-
},
|
|
1689
|
-
});
|
|
1690
|
-
|
|
1691
|
-
async function run() {
|
|
1692
|
-
const res = await repoRemoveRepoBranch(unifiedTo, {
|
|
1693
|
-
connectionId: "<id>",
|
|
1694
|
-
id: "<id>",
|
|
1695
|
-
});
|
|
1696
|
-
if (res.ok) {
|
|
1697
|
-
const { value: result } = res;
|
|
1698
|
-
console.log(result);
|
|
1699
|
-
} else {
|
|
1700
|
-
console.log("repoRemoveRepoBranch failed:", res.error);
|
|
1701
|
-
}
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
run();
|
|
1705
|
-
```
|
|
1706
|
-
|
|
1707
|
-
### Parameters
|
|
1708
|
-
|
|
1709
|
-
| Parameter | Type | Required | Description |
|
|
1710
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1711
|
-
| `request` | [operations.RemoveRepoBranchRequest](../../sdk/models/operations/removerepobranchrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1712
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1713
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1714
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1715
|
-
|
|
1716
|
-
### Response
|
|
1717
|
-
|
|
1718
|
-
**Promise\<[operations.RemoveRepoBranchResponse](../../sdk/models/operations/removerepobranchresponse.md)\>**
|
|
1719
|
-
|
|
1720
|
-
### Errors
|
|
1721
|
-
|
|
1722
|
-
| Error Type | Status Code | Content Type |
|
|
1723
|
-
| --------------- | --------------- | --------------- |
|
|
1724
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1725
|
-
|
|
1726
|
-
## removeRepoCommit
|
|
1727
|
-
|
|
1728
|
-
Remove a commit
|
|
1729
|
-
|
|
1730
|
-
### Example Usage
|
|
1731
|
-
|
|
1732
|
-
<!-- UsageSnippet language="typescript" operationID="removeRepoCommit" method="delete" path="/repo/{connection_id}/commit/{id}" -->
|
|
1733
|
-
```typescript
|
|
1734
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1735
|
-
|
|
1736
|
-
const unifiedTo = new UnifiedTo({
|
|
1737
|
-
security: {
|
|
1738
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1739
|
-
},
|
|
1740
|
-
});
|
|
1741
|
-
|
|
1742
|
-
async function run() {
|
|
1743
|
-
const result = await unifiedTo.repo.removeRepoCommit({
|
|
1744
|
-
connectionId: "<id>",
|
|
1745
|
-
id: "<id>",
|
|
1746
|
-
});
|
|
1747
|
-
|
|
1748
|
-
console.log(result);
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
run();
|
|
1752
|
-
```
|
|
1753
|
-
|
|
1754
|
-
### Standalone function
|
|
1755
|
-
|
|
1756
|
-
The standalone function version of this method:
|
|
1757
|
-
|
|
1758
|
-
```typescript
|
|
1759
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1760
|
-
import { repoRemoveRepoCommit } from "@unified-api/typescript-sdk/funcs/repoRemoveRepoCommit.js";
|
|
1761
|
-
|
|
1762
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1763
|
-
// You can create one instance of it to use across an application.
|
|
1764
|
-
const unifiedTo = new UnifiedToCore({
|
|
1765
|
-
security: {
|
|
1766
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1767
|
-
},
|
|
1768
|
-
});
|
|
1769
|
-
|
|
1770
|
-
async function run() {
|
|
1771
|
-
const res = await repoRemoveRepoCommit(unifiedTo, {
|
|
1772
|
-
connectionId: "<id>",
|
|
1773
|
-
id: "<id>",
|
|
1774
|
-
});
|
|
1775
|
-
if (res.ok) {
|
|
1776
|
-
const { value: result } = res;
|
|
1777
|
-
console.log(result);
|
|
1778
|
-
} else {
|
|
1779
|
-
console.log("repoRemoveRepoCommit failed:", res.error);
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
1782
|
-
|
|
1783
|
-
run();
|
|
1784
|
-
```
|
|
1785
|
-
|
|
1786
|
-
### Parameters
|
|
1787
|
-
|
|
1788
|
-
| Parameter | Type | Required | Description |
|
|
1789
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1790
|
-
| `request` | [operations.RemoveRepoCommitRequest](../../sdk/models/operations/removerepocommitrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1791
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1792
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1793
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1794
|
-
|
|
1795
|
-
### Response
|
|
1796
|
-
|
|
1797
|
-
**Promise\<[operations.RemoveRepoCommitResponse](../../sdk/models/operations/removerepocommitresponse.md)\>**
|
|
1798
|
-
|
|
1799
|
-
### Errors
|
|
1800
|
-
|
|
1801
|
-
| Error Type | Status Code | Content Type |
|
|
1802
|
-
| --------------- | --------------- | --------------- |
|
|
1803
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1804
|
-
|
|
1805
|
-
## removeRepoOrganization
|
|
1806
|
-
|
|
1807
|
-
Remove an organization
|
|
1808
|
-
|
|
1809
|
-
### Example Usage
|
|
1810
|
-
|
|
1811
|
-
<!-- UsageSnippet language="typescript" operationID="removeRepoOrganization" method="delete" path="/repo/{connection_id}/organization/{id}" -->
|
|
1812
|
-
```typescript
|
|
1813
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1814
|
-
|
|
1815
|
-
const unifiedTo = new UnifiedTo({
|
|
1816
|
-
security: {
|
|
1817
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1818
|
-
},
|
|
1819
|
-
});
|
|
1820
|
-
|
|
1821
|
-
async function run() {
|
|
1822
|
-
const result = await unifiedTo.repo.removeRepoOrganization({
|
|
1823
|
-
connectionId: "<id>",
|
|
1824
|
-
id: "<id>",
|
|
1825
|
-
});
|
|
1826
|
-
|
|
1827
|
-
console.log(result);
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
|
-
run();
|
|
1831
|
-
```
|
|
1832
|
-
|
|
1833
|
-
### Standalone function
|
|
1834
|
-
|
|
1835
|
-
The standalone function version of this method:
|
|
1836
|
-
|
|
1837
|
-
```typescript
|
|
1838
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1839
|
-
import { organizationRemoveRepoOrganization } from "@unified-api/typescript-sdk/funcs/organizationRemoveRepoOrganization.js";
|
|
1840
|
-
|
|
1841
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1842
|
-
// You can create one instance of it to use across an application.
|
|
1843
|
-
const unifiedTo = new UnifiedToCore({
|
|
1844
|
-
security: {
|
|
1845
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1846
|
-
},
|
|
1847
|
-
});
|
|
1848
|
-
|
|
1849
|
-
async function run() {
|
|
1850
|
-
const res = await organizationRemoveRepoOrganization(unifiedTo, {
|
|
1851
|
-
connectionId: "<id>",
|
|
1852
|
-
id: "<id>",
|
|
1853
|
-
});
|
|
1854
|
-
if (res.ok) {
|
|
1855
|
-
const { value: result } = res;
|
|
1856
|
-
console.log(result);
|
|
1857
|
-
} else {
|
|
1858
|
-
console.log("organizationRemoveRepoOrganization failed:", res.error);
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
run();
|
|
1863
|
-
```
|
|
1864
|
-
|
|
1865
|
-
### Parameters
|
|
1866
|
-
|
|
1867
|
-
| Parameter | Type | Required | Description |
|
|
1868
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1869
|
-
| `request` | [operations.RemoveRepoOrganizationRequest](../../sdk/models/operations/removerepoorganizationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1870
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1871
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1872
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1873
|
-
|
|
1874
|
-
### Response
|
|
1875
|
-
|
|
1876
|
-
**Promise\<[operations.RemoveRepoOrganizationResponse](../../sdk/models/operations/removerepoorganizationresponse.md)\>**
|
|
1877
|
-
|
|
1878
|
-
### Errors
|
|
1879
|
-
|
|
1880
|
-
| Error Type | Status Code | Content Type |
|
|
1881
|
-
| --------------- | --------------- | --------------- |
|
|
1882
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1883
|
-
|
|
1884
|
-
## removeRepoPullrequest
|
|
1885
|
-
|
|
1886
|
-
Remove a pullrequest
|
|
1887
|
-
|
|
1888
|
-
### Example Usage
|
|
1889
|
-
|
|
1890
|
-
<!-- UsageSnippet language="typescript" operationID="removeRepoPullrequest" method="delete" path="/repo/{connection_id}/pullrequest/{id}" -->
|
|
1891
|
-
```typescript
|
|
1892
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1893
|
-
|
|
1894
|
-
const unifiedTo = new UnifiedTo({
|
|
1895
|
-
security: {
|
|
1896
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1897
|
-
},
|
|
1898
|
-
});
|
|
1899
|
-
|
|
1900
|
-
async function run() {
|
|
1901
|
-
const result = await unifiedTo.repo.removeRepoPullrequest({
|
|
1902
|
-
connectionId: "<id>",
|
|
1903
|
-
id: "<id>",
|
|
1904
|
-
});
|
|
1905
|
-
|
|
1906
|
-
console.log(result);
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
run();
|
|
1910
|
-
```
|
|
1911
|
-
|
|
1912
|
-
### Standalone function
|
|
1913
|
-
|
|
1914
|
-
The standalone function version of this method:
|
|
1915
|
-
|
|
1916
|
-
```typescript
|
|
1917
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1918
|
-
import { repoRemoveRepoPullrequest } from "@unified-api/typescript-sdk/funcs/repoRemoveRepoPullrequest.js";
|
|
1919
|
-
|
|
1920
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1921
|
-
// You can create one instance of it to use across an application.
|
|
1922
|
-
const unifiedTo = new UnifiedToCore({
|
|
1923
|
-
security: {
|
|
1924
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1925
|
-
},
|
|
1926
|
-
});
|
|
1927
|
-
|
|
1928
|
-
async function run() {
|
|
1929
|
-
const res = await repoRemoveRepoPullrequest(unifiedTo, {
|
|
1930
|
-
connectionId: "<id>",
|
|
1931
|
-
id: "<id>",
|
|
1932
|
-
});
|
|
1933
|
-
if (res.ok) {
|
|
1934
|
-
const { value: result } = res;
|
|
1935
|
-
console.log(result);
|
|
1936
|
-
} else {
|
|
1937
|
-
console.log("repoRemoveRepoPullrequest failed:", res.error);
|
|
1938
|
-
}
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
run();
|
|
1942
|
-
```
|
|
1943
|
-
|
|
1944
|
-
### Parameters
|
|
1945
|
-
|
|
1946
|
-
| Parameter | Type | Required | Description |
|
|
1947
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1948
|
-
| `request` | [operations.RemoveRepoPullrequestRequest](../../sdk/models/operations/removerepopullrequestrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1949
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1950
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1951
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1952
|
-
|
|
1953
|
-
### Response
|
|
1954
|
-
|
|
1955
|
-
**Promise\<[operations.RemoveRepoPullrequestResponse](../../sdk/models/operations/removerepopullrequestresponse.md)\>**
|
|
1956
|
-
|
|
1957
|
-
### Errors
|
|
1958
|
-
|
|
1959
|
-
| Error Type | Status Code | Content Type |
|
|
1960
|
-
| --------------- | --------------- | --------------- |
|
|
1961
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1962
|
-
|
|
1963
|
-
## removeRepoRepository
|
|
1964
|
-
|
|
1965
|
-
Remove a repository
|
|
1966
|
-
|
|
1967
|
-
### Example Usage
|
|
1968
|
-
|
|
1969
|
-
<!-- UsageSnippet language="typescript" operationID="removeRepoRepository" method="delete" path="/repo/{connection_id}/repository/{id}" -->
|
|
1970
|
-
```typescript
|
|
1971
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1972
|
-
|
|
1973
|
-
const unifiedTo = new UnifiedTo({
|
|
1974
|
-
security: {
|
|
1975
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
1976
|
-
},
|
|
1977
|
-
});
|
|
1978
|
-
|
|
1979
|
-
async function run() {
|
|
1980
|
-
const result = await unifiedTo.repo.removeRepoRepository({
|
|
1981
|
-
connectionId: "<id>",
|
|
1982
|
-
id: "<id>",
|
|
1983
|
-
});
|
|
1984
|
-
|
|
1985
|
-
console.log(result);
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
run();
|
|
1989
|
-
```
|
|
1990
|
-
|
|
1991
|
-
### Standalone function
|
|
1992
|
-
|
|
1993
|
-
The standalone function version of this method:
|
|
1994
|
-
|
|
1995
|
-
```typescript
|
|
1996
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1997
|
-
import { repoRemoveRepoRepository } from "@unified-api/typescript-sdk/funcs/repoRemoveRepoRepository.js";
|
|
1998
|
-
|
|
1999
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
2000
|
-
// You can create one instance of it to use across an application.
|
|
2001
|
-
const unifiedTo = new UnifiedToCore({
|
|
2002
|
-
security: {
|
|
2003
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2004
|
-
},
|
|
2005
|
-
});
|
|
2006
|
-
|
|
2007
|
-
async function run() {
|
|
2008
|
-
const res = await repoRemoveRepoRepository(unifiedTo, {
|
|
2009
|
-
connectionId: "<id>",
|
|
2010
|
-
id: "<id>",
|
|
2011
|
-
});
|
|
2012
|
-
if (res.ok) {
|
|
2013
|
-
const { value: result } = res;
|
|
2014
|
-
console.log(result);
|
|
2015
|
-
} else {
|
|
2016
|
-
console.log("repoRemoveRepoRepository failed:", res.error);
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
run();
|
|
2021
|
-
```
|
|
2022
|
-
|
|
2023
|
-
### Parameters
|
|
2024
|
-
|
|
2025
|
-
| Parameter | Type | Required | Description |
|
|
2026
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2027
|
-
| `request` | [operations.RemoveRepoRepositoryRequest](../../sdk/models/operations/removereporepositoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
2028
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2029
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2030
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2031
|
-
|
|
2032
|
-
### Response
|
|
2033
|
-
|
|
2034
|
-
**Promise\<[operations.RemoveRepoRepositoryResponse](../../sdk/models/operations/removereporepositoryresponse.md)\>**
|
|
2035
|
-
|
|
2036
|
-
### Errors
|
|
2037
|
-
|
|
2038
|
-
| Error Type | Status Code | Content Type |
|
|
2039
|
-
| --------------- | --------------- | --------------- |
|
|
2040
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
2041
|
-
|
|
2042
|
-
## updateRepoBranch
|
|
2043
|
-
|
|
2044
|
-
Update a branch
|
|
2045
|
-
|
|
2046
|
-
### Example Usage
|
|
2047
|
-
|
|
2048
|
-
<!-- UsageSnippet language="typescript" operationID="updateRepoBranch" method="put" path="/repo/{connection_id}/branch/{id}" -->
|
|
2049
|
-
```typescript
|
|
2050
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
2051
|
-
|
|
2052
|
-
const unifiedTo = new UnifiedTo({
|
|
2053
|
-
security: {
|
|
2054
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2055
|
-
},
|
|
2056
|
-
});
|
|
2057
|
-
|
|
2058
|
-
async function run() {
|
|
2059
|
-
const result = await unifiedTo.repo.updateRepoBranch({
|
|
2060
|
-
repoBranch: {
|
|
2061
|
-
name: "<value>",
|
|
2062
|
-
repoId: "<id>",
|
|
2063
|
-
},
|
|
2064
|
-
connectionId: "<id>",
|
|
2065
|
-
id: "<id>",
|
|
2066
|
-
});
|
|
2067
|
-
|
|
2068
|
-
console.log(result);
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
run();
|
|
2072
|
-
```
|
|
2073
|
-
|
|
2074
|
-
### Standalone function
|
|
2075
|
-
|
|
2076
|
-
The standalone function version of this method:
|
|
2077
|
-
|
|
2078
|
-
```typescript
|
|
2079
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
2080
|
-
import { repoUpdateRepoBranch } from "@unified-api/typescript-sdk/funcs/repoUpdateRepoBranch.js";
|
|
2081
|
-
|
|
2082
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
2083
|
-
// You can create one instance of it to use across an application.
|
|
2084
|
-
const unifiedTo = new UnifiedToCore({
|
|
2085
|
-
security: {
|
|
2086
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2087
|
-
},
|
|
2088
|
-
});
|
|
2089
|
-
|
|
2090
|
-
async function run() {
|
|
2091
|
-
const res = await repoUpdateRepoBranch(unifiedTo, {
|
|
2092
|
-
repoBranch: {
|
|
2093
|
-
name: "<value>",
|
|
2094
|
-
repoId: "<id>",
|
|
2095
|
-
},
|
|
2096
|
-
connectionId: "<id>",
|
|
2097
|
-
id: "<id>",
|
|
2098
|
-
});
|
|
2099
|
-
if (res.ok) {
|
|
2100
|
-
const { value: result } = res;
|
|
2101
|
-
console.log(result);
|
|
2102
|
-
} else {
|
|
2103
|
-
console.log("repoUpdateRepoBranch failed:", res.error);
|
|
2104
|
-
}
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
run();
|
|
2108
|
-
```
|
|
2109
|
-
|
|
2110
|
-
### Parameters
|
|
2111
|
-
|
|
2112
|
-
| Parameter | Type | Required | Description |
|
|
2113
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2114
|
-
| `request` | [operations.UpdateRepoBranchRequest](../../sdk/models/operations/updaterepobranchrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
2115
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2116
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2117
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2118
|
-
|
|
2119
|
-
### Response
|
|
2120
|
-
|
|
2121
|
-
**Promise\<[shared.RepoBranch](../../sdk/models/shared/repobranch.md)\>**
|
|
2122
|
-
|
|
2123
|
-
### Errors
|
|
2124
|
-
|
|
2125
|
-
| Error Type | Status Code | Content Type |
|
|
2126
|
-
| --------------- | --------------- | --------------- |
|
|
2127
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
2128
|
-
|
|
2129
|
-
## updateRepoCommit
|
|
2130
|
-
|
|
2131
|
-
Update a commit
|
|
2132
|
-
|
|
2133
|
-
### Example Usage
|
|
2134
|
-
|
|
2135
|
-
<!-- UsageSnippet language="typescript" operationID="updateRepoCommit" method="put" path="/repo/{connection_id}/commit/{id}" -->
|
|
2136
|
-
```typescript
|
|
2137
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
2138
|
-
|
|
2139
|
-
const unifiedTo = new UnifiedTo({
|
|
2140
|
-
security: {
|
|
2141
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2142
|
-
},
|
|
2143
|
-
});
|
|
2144
|
-
|
|
2145
|
-
async function run() {
|
|
2146
|
-
const result = await unifiedTo.repo.updateRepoCommit({
|
|
2147
|
-
repoCommit: {
|
|
2148
|
-
repoId: "<id>",
|
|
2149
|
-
},
|
|
2150
|
-
connectionId: "<id>",
|
|
2151
|
-
id: "<id>",
|
|
2152
|
-
});
|
|
2153
|
-
|
|
2154
|
-
console.log(result);
|
|
2155
|
-
}
|
|
2156
|
-
|
|
2157
|
-
run();
|
|
2158
|
-
```
|
|
2159
|
-
|
|
2160
|
-
### Standalone function
|
|
2161
|
-
|
|
2162
|
-
The standalone function version of this method:
|
|
2163
|
-
|
|
2164
|
-
```typescript
|
|
2165
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
2166
|
-
import { repoUpdateRepoCommit } from "@unified-api/typescript-sdk/funcs/repoUpdateRepoCommit.js";
|
|
2167
|
-
|
|
2168
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
2169
|
-
// You can create one instance of it to use across an application.
|
|
2170
|
-
const unifiedTo = new UnifiedToCore({
|
|
2171
|
-
security: {
|
|
2172
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2173
|
-
},
|
|
2174
|
-
});
|
|
2175
|
-
|
|
2176
|
-
async function run() {
|
|
2177
|
-
const res = await repoUpdateRepoCommit(unifiedTo, {
|
|
2178
|
-
repoCommit: {
|
|
2179
|
-
repoId: "<id>",
|
|
2180
|
-
},
|
|
2181
|
-
connectionId: "<id>",
|
|
2182
|
-
id: "<id>",
|
|
2183
|
-
});
|
|
2184
|
-
if (res.ok) {
|
|
2185
|
-
const { value: result } = res;
|
|
2186
|
-
console.log(result);
|
|
2187
|
-
} else {
|
|
2188
|
-
console.log("repoUpdateRepoCommit failed:", res.error);
|
|
2189
|
-
}
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
run();
|
|
2193
|
-
```
|
|
2194
|
-
|
|
2195
|
-
### Parameters
|
|
2196
|
-
|
|
2197
|
-
| Parameter | Type | Required | Description |
|
|
2198
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2199
|
-
| `request` | [operations.UpdateRepoCommitRequest](../../sdk/models/operations/updaterepocommitrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
2200
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2201
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2202
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2203
|
-
|
|
2204
|
-
### Response
|
|
2205
|
-
|
|
2206
|
-
**Promise\<[shared.RepoCommit](../../sdk/models/shared/repocommit.md)\>**
|
|
2207
|
-
|
|
2208
|
-
### Errors
|
|
2209
|
-
|
|
2210
|
-
| Error Type | Status Code | Content Type |
|
|
2211
|
-
| --------------- | --------------- | --------------- |
|
|
2212
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
2213
|
-
|
|
2214
|
-
## updateRepoOrganization
|
|
2215
|
-
|
|
2216
|
-
Update an organization
|
|
2217
|
-
|
|
2218
|
-
### Example Usage
|
|
2219
|
-
|
|
2220
|
-
<!-- UsageSnippet language="typescript" operationID="updateRepoOrganization" method="put" path="/repo/{connection_id}/organization/{id}" -->
|
|
2221
|
-
```typescript
|
|
2222
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
2223
|
-
|
|
2224
|
-
const unifiedTo = new UnifiedTo({
|
|
2225
|
-
security: {
|
|
2226
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2227
|
-
},
|
|
2228
|
-
});
|
|
2229
|
-
|
|
2230
|
-
async function run() {
|
|
2231
|
-
const result = await unifiedTo.repo.updateRepoOrganization({
|
|
2232
|
-
repoOrganization: {},
|
|
2233
|
-
connectionId: "<id>",
|
|
2234
|
-
id: "<id>",
|
|
2235
|
-
});
|
|
2236
|
-
|
|
2237
|
-
console.log(result);
|
|
2238
|
-
}
|
|
2239
|
-
|
|
2240
|
-
run();
|
|
2241
|
-
```
|
|
2242
|
-
|
|
2243
|
-
### Standalone function
|
|
2244
|
-
|
|
2245
|
-
The standalone function version of this method:
|
|
2246
|
-
|
|
2247
|
-
```typescript
|
|
2248
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
2249
|
-
import { organizationUpdateRepoOrganization } from "@unified-api/typescript-sdk/funcs/organizationUpdateRepoOrganization.js";
|
|
2250
|
-
|
|
2251
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
2252
|
-
// You can create one instance of it to use across an application.
|
|
2253
|
-
const unifiedTo = new UnifiedToCore({
|
|
2254
|
-
security: {
|
|
2255
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2256
|
-
},
|
|
2257
|
-
});
|
|
2258
|
-
|
|
2259
|
-
async function run() {
|
|
2260
|
-
const res = await organizationUpdateRepoOrganization(unifiedTo, {
|
|
2261
|
-
repoOrganization: {},
|
|
2262
|
-
connectionId: "<id>",
|
|
2263
|
-
id: "<id>",
|
|
2264
|
-
});
|
|
2265
|
-
if (res.ok) {
|
|
2266
|
-
const { value: result } = res;
|
|
2267
|
-
console.log(result);
|
|
2268
|
-
} else {
|
|
2269
|
-
console.log("organizationUpdateRepoOrganization failed:", res.error);
|
|
2270
|
-
}
|
|
2271
|
-
}
|
|
2272
|
-
|
|
2273
|
-
run();
|
|
2274
|
-
```
|
|
2275
|
-
|
|
2276
|
-
### Parameters
|
|
2277
|
-
|
|
2278
|
-
| Parameter | Type | Required | Description |
|
|
2279
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2280
|
-
| `request` | [operations.UpdateRepoOrganizationRequest](../../sdk/models/operations/updaterepoorganizationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
2281
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2282
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2283
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2284
|
-
|
|
2285
|
-
### Response
|
|
2286
|
-
|
|
2287
|
-
**Promise\<[shared.RepoOrganization](../../sdk/models/shared/repoorganization.md)\>**
|
|
2288
|
-
|
|
2289
|
-
### Errors
|
|
2290
|
-
|
|
2291
|
-
| Error Type | Status Code | Content Type |
|
|
2292
|
-
| --------------- | --------------- | --------------- |
|
|
2293
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
2294
|
-
|
|
2295
|
-
## updateRepoPullrequest
|
|
2296
|
-
|
|
2297
|
-
Update a pullrequest
|
|
2298
|
-
|
|
2299
|
-
### Example Usage
|
|
2300
|
-
|
|
2301
|
-
<!-- UsageSnippet language="typescript" operationID="updateRepoPullrequest" method="put" path="/repo/{connection_id}/pullrequest/{id}" -->
|
|
2302
|
-
```typescript
|
|
2303
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
2304
|
-
|
|
2305
|
-
const unifiedTo = new UnifiedTo({
|
|
2306
|
-
security: {
|
|
2307
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2308
|
-
},
|
|
2309
|
-
});
|
|
2310
|
-
|
|
2311
|
-
async function run() {
|
|
2312
|
-
const result = await unifiedTo.repo.updateRepoPullrequest({
|
|
2313
|
-
repoPullrequest: {},
|
|
2314
|
-
connectionId: "<id>",
|
|
2315
|
-
id: "<id>",
|
|
2316
|
-
});
|
|
2317
|
-
|
|
2318
|
-
console.log(result);
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
run();
|
|
2322
|
-
```
|
|
2323
|
-
|
|
2324
|
-
### Standalone function
|
|
2325
|
-
|
|
2326
|
-
The standalone function version of this method:
|
|
2327
|
-
|
|
2328
|
-
```typescript
|
|
2329
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
2330
|
-
import { repoUpdateRepoPullrequest } from "@unified-api/typescript-sdk/funcs/repoUpdateRepoPullrequest.js";
|
|
2331
|
-
|
|
2332
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
2333
|
-
// You can create one instance of it to use across an application.
|
|
2334
|
-
const unifiedTo = new UnifiedToCore({
|
|
2335
|
-
security: {
|
|
2336
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2337
|
-
},
|
|
2338
|
-
});
|
|
2339
|
-
|
|
2340
|
-
async function run() {
|
|
2341
|
-
const res = await repoUpdateRepoPullrequest(unifiedTo, {
|
|
2342
|
-
repoPullrequest: {},
|
|
2343
|
-
connectionId: "<id>",
|
|
2344
|
-
id: "<id>",
|
|
2345
|
-
});
|
|
2346
|
-
if (res.ok) {
|
|
2347
|
-
const { value: result } = res;
|
|
2348
|
-
console.log(result);
|
|
2349
|
-
} else {
|
|
2350
|
-
console.log("repoUpdateRepoPullrequest failed:", res.error);
|
|
2351
|
-
}
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
run();
|
|
2355
|
-
```
|
|
2356
|
-
|
|
2357
|
-
### Parameters
|
|
2358
|
-
|
|
2359
|
-
| Parameter | Type | Required | Description |
|
|
2360
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2361
|
-
| `request` | [operations.UpdateRepoPullrequestRequest](../../sdk/models/operations/updaterepopullrequestrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
2362
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2363
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2364
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2365
|
-
|
|
2366
|
-
### Response
|
|
2367
|
-
|
|
2368
|
-
**Promise\<[shared.RepoPullrequest](../../sdk/models/shared/repopullrequest.md)\>**
|
|
2369
|
-
|
|
2370
|
-
### Errors
|
|
2371
|
-
|
|
2372
|
-
| Error Type | Status Code | Content Type |
|
|
2373
|
-
| --------------- | --------------- | --------------- |
|
|
2374
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
2375
|
-
|
|
2376
|
-
## updateRepoRepository
|
|
2377
|
-
|
|
2378
|
-
Update a repository
|
|
2379
|
-
|
|
2380
|
-
### Example Usage
|
|
2381
|
-
|
|
2382
|
-
<!-- UsageSnippet language="typescript" operationID="updateRepoRepository" method="put" path="/repo/{connection_id}/repository/{id}" -->
|
|
2383
|
-
```typescript
|
|
2384
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
2385
|
-
|
|
2386
|
-
const unifiedTo = new UnifiedTo({
|
|
2387
|
-
security: {
|
|
2388
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2389
|
-
},
|
|
2390
|
-
});
|
|
2391
|
-
|
|
2392
|
-
async function run() {
|
|
2393
|
-
const result = await unifiedTo.repo.updateRepoRepository({
|
|
2394
|
-
repoRepository: {
|
|
2395
|
-
name: "<value>",
|
|
2396
|
-
},
|
|
2397
|
-
connectionId: "<id>",
|
|
2398
|
-
id: "<id>",
|
|
2399
|
-
});
|
|
2400
|
-
|
|
2401
|
-
console.log(result);
|
|
2402
|
-
}
|
|
2403
|
-
|
|
2404
|
-
run();
|
|
2405
|
-
```
|
|
2406
|
-
|
|
2407
|
-
### Standalone function
|
|
2408
|
-
|
|
2409
|
-
The standalone function version of this method:
|
|
2410
|
-
|
|
2411
|
-
```typescript
|
|
2412
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
2413
|
-
import { repoUpdateRepoRepository } from "@unified-api/typescript-sdk/funcs/repoUpdateRepoRepository.js";
|
|
2414
|
-
|
|
2415
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
2416
|
-
// You can create one instance of it to use across an application.
|
|
2417
|
-
const unifiedTo = new UnifiedToCore({
|
|
2418
|
-
security: {
|
|
2419
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
2420
|
-
},
|
|
2421
|
-
});
|
|
2422
|
-
|
|
2423
|
-
async function run() {
|
|
2424
|
-
const res = await repoUpdateRepoRepository(unifiedTo, {
|
|
2425
|
-
repoRepository: {
|
|
2426
|
-
name: "<value>",
|
|
2427
|
-
},
|
|
2428
|
-
connectionId: "<id>",
|
|
2429
|
-
id: "<id>",
|
|
2430
|
-
});
|
|
2431
|
-
if (res.ok) {
|
|
2432
|
-
const { value: result } = res;
|
|
2433
|
-
console.log(result);
|
|
2434
|
-
} else {
|
|
2435
|
-
console.log("repoUpdateRepoRepository failed:", res.error);
|
|
2436
|
-
}
|
|
2437
|
-
}
|
|
2438
|
-
|
|
2439
|
-
run();
|
|
2440
|
-
```
|
|
2441
|
-
|
|
2442
|
-
### Parameters
|
|
2443
|
-
|
|
2444
|
-
| Parameter | Type | Required | Description |
|
|
2445
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2446
|
-
| `request` | [operations.UpdateRepoRepositoryRequest](../../sdk/models/operations/updatereporepositoryrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
2447
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2448
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2449
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2450
|
-
|
|
2451
|
-
### Response
|
|
2452
|
-
|
|
2453
|
-
**Promise\<[shared.RepoRepository](../../sdk/models/shared/reporepository.md)\>**
|
|
2454
|
-
|
|
2455
|
-
### Errors
|
|
2456
|
-
|
|
2457
|
-
| Error Type | Status Code | Content Type |
|
|
2458
|
-
| --------------- | --------------- | --------------- |
|
|
2459
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|