@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
|
@@ -1,513 +0,0 @@
|
|
|
1
|
-
# Connection
|
|
2
|
-
(*connection*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [createUnifiedConnection](#createunifiedconnection) - Create connection
|
|
9
|
-
* [getUnifiedConnection](#getunifiedconnection) - Retrieve connection
|
|
10
|
-
* [listUnifiedConnections](#listunifiedconnections) - List all connections
|
|
11
|
-
* [patchUnifiedConnection](#patchunifiedconnection) - Update connection
|
|
12
|
-
* [removeUnifiedConnection](#removeunifiedconnection) - Remove connection
|
|
13
|
-
* [updateUnifiedConnection](#updateunifiedconnection) - Update connection
|
|
14
|
-
|
|
15
|
-
## createUnifiedConnection
|
|
16
|
-
|
|
17
|
-
Used only to import existing customer credentials; use "Authorize new connection" instead
|
|
18
|
-
|
|
19
|
-
### Example Usage
|
|
20
|
-
|
|
21
|
-
<!-- UsageSnippet language="typescript" operationID="createUnifiedConnection" method="post" path="/unified/connection" -->
|
|
22
|
-
```typescript
|
|
23
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
24
|
-
|
|
25
|
-
const unifiedTo = new UnifiedTo({
|
|
26
|
-
security: {
|
|
27
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
async function run() {
|
|
32
|
-
const result = await unifiedTo.connection.createUnifiedConnection({
|
|
33
|
-
categories: [],
|
|
34
|
-
integrationType: "<value>",
|
|
35
|
-
permissions: [
|
|
36
|
-
"enrich_company_read",
|
|
37
|
-
],
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
console.log(result);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
run();
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Standalone function
|
|
47
|
-
|
|
48
|
-
The standalone function version of this method:
|
|
49
|
-
|
|
50
|
-
```typescript
|
|
51
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
52
|
-
import { unifiedCreateUnifiedConnection } from "@unified-api/typescript-sdk/funcs/unifiedCreateUnifiedConnection.js";
|
|
53
|
-
|
|
54
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
55
|
-
// You can create one instance of it to use across an application.
|
|
56
|
-
const unifiedTo = new UnifiedToCore({
|
|
57
|
-
security: {
|
|
58
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
async function run() {
|
|
63
|
-
const res = await unifiedCreateUnifiedConnection(unifiedTo, {
|
|
64
|
-
categories: [],
|
|
65
|
-
integrationType: "<value>",
|
|
66
|
-
permissions: [
|
|
67
|
-
"enrich_company_read",
|
|
68
|
-
],
|
|
69
|
-
});
|
|
70
|
-
if (res.ok) {
|
|
71
|
-
const { value: result } = res;
|
|
72
|
-
console.log(result);
|
|
73
|
-
} else {
|
|
74
|
-
console.log("unifiedCreateUnifiedConnection failed:", res.error);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
run();
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Parameters
|
|
82
|
-
|
|
83
|
-
| Parameter | Type | Required | Description |
|
|
84
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
85
|
-
| `request` | [shared.Connection](../../sdk/models/shared/connection.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
86
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
87
|
-
| `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. |
|
|
88
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
89
|
-
|
|
90
|
-
### Response
|
|
91
|
-
|
|
92
|
-
**Promise\<[shared.Connection](../../sdk/models/shared/connection.md)\>**
|
|
93
|
-
|
|
94
|
-
### Errors
|
|
95
|
-
|
|
96
|
-
| Error Type | Status Code | Content Type |
|
|
97
|
-
| --------------- | --------------- | --------------- |
|
|
98
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
99
|
-
|
|
100
|
-
## getUnifiedConnection
|
|
101
|
-
|
|
102
|
-
Retrieve connection
|
|
103
|
-
|
|
104
|
-
### Example Usage
|
|
105
|
-
|
|
106
|
-
<!-- UsageSnippet language="typescript" operationID="getUnifiedConnection" method="get" path="/unified/connection/{id}" -->
|
|
107
|
-
```typescript
|
|
108
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
109
|
-
|
|
110
|
-
const unifiedTo = new UnifiedTo({
|
|
111
|
-
security: {
|
|
112
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
113
|
-
},
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
async function run() {
|
|
117
|
-
const result = await unifiedTo.connection.getUnifiedConnection({
|
|
118
|
-
id: "<id>",
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
console.log(result);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
run();
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### Standalone function
|
|
128
|
-
|
|
129
|
-
The standalone function version of this method:
|
|
130
|
-
|
|
131
|
-
```typescript
|
|
132
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
133
|
-
import { unifiedGetUnifiedConnection } from "@unified-api/typescript-sdk/funcs/unifiedGetUnifiedConnection.js";
|
|
134
|
-
|
|
135
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
136
|
-
// You can create one instance of it to use across an application.
|
|
137
|
-
const unifiedTo = new UnifiedToCore({
|
|
138
|
-
security: {
|
|
139
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
140
|
-
},
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
async function run() {
|
|
144
|
-
const res = await unifiedGetUnifiedConnection(unifiedTo, {
|
|
145
|
-
id: "<id>",
|
|
146
|
-
});
|
|
147
|
-
if (res.ok) {
|
|
148
|
-
const { value: result } = res;
|
|
149
|
-
console.log(result);
|
|
150
|
-
} else {
|
|
151
|
-
console.log("unifiedGetUnifiedConnection failed:", res.error);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
run();
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
### Parameters
|
|
159
|
-
|
|
160
|
-
| Parameter | Type | Required | Description |
|
|
161
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
162
|
-
| `request` | [operations.GetUnifiedConnectionRequest](../../sdk/models/operations/getunifiedconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
163
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
164
|
-
| `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. |
|
|
165
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
166
|
-
|
|
167
|
-
### Response
|
|
168
|
-
|
|
169
|
-
**Promise\<[shared.Connection](../../sdk/models/shared/connection.md)\>**
|
|
170
|
-
|
|
171
|
-
### Errors
|
|
172
|
-
|
|
173
|
-
| Error Type | Status Code | Content Type |
|
|
174
|
-
| --------------- | --------------- | --------------- |
|
|
175
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
176
|
-
|
|
177
|
-
## listUnifiedConnections
|
|
178
|
-
|
|
179
|
-
List all connections
|
|
180
|
-
|
|
181
|
-
### Example Usage
|
|
182
|
-
|
|
183
|
-
<!-- UsageSnippet language="typescript" operationID="listUnifiedConnections" method="get" path="/unified/connection" -->
|
|
184
|
-
```typescript
|
|
185
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
186
|
-
|
|
187
|
-
const unifiedTo = new UnifiedTo({
|
|
188
|
-
security: {
|
|
189
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
190
|
-
},
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
async function run() {
|
|
194
|
-
const result = await unifiedTo.connection.listUnifiedConnections({});
|
|
195
|
-
|
|
196
|
-
console.log(result);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
run();
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
### Standalone function
|
|
203
|
-
|
|
204
|
-
The standalone function version of this method:
|
|
205
|
-
|
|
206
|
-
```typescript
|
|
207
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
208
|
-
import { unifiedListUnifiedConnections } from "@unified-api/typescript-sdk/funcs/unifiedListUnifiedConnections.js";
|
|
209
|
-
|
|
210
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
211
|
-
// You can create one instance of it to use across an application.
|
|
212
|
-
const unifiedTo = new UnifiedToCore({
|
|
213
|
-
security: {
|
|
214
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
215
|
-
},
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
async function run() {
|
|
219
|
-
const res = await unifiedListUnifiedConnections(unifiedTo, {});
|
|
220
|
-
if (res.ok) {
|
|
221
|
-
const { value: result } = res;
|
|
222
|
-
console.log(result);
|
|
223
|
-
} else {
|
|
224
|
-
console.log("unifiedListUnifiedConnections failed:", res.error);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
run();
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
### Parameters
|
|
232
|
-
|
|
233
|
-
| Parameter | Type | Required | Description |
|
|
234
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
235
|
-
| `request` | [operations.ListUnifiedConnectionsRequest](../../sdk/models/operations/listunifiedconnectionsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
236
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
237
|
-
| `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. |
|
|
238
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
239
|
-
|
|
240
|
-
### Response
|
|
241
|
-
|
|
242
|
-
**Promise\<[shared.Connection[]](../../models/.md)\>**
|
|
243
|
-
|
|
244
|
-
### Errors
|
|
245
|
-
|
|
246
|
-
| Error Type | Status Code | Content Type |
|
|
247
|
-
| --------------- | --------------- | --------------- |
|
|
248
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
249
|
-
|
|
250
|
-
## patchUnifiedConnection
|
|
251
|
-
|
|
252
|
-
Update connection
|
|
253
|
-
|
|
254
|
-
### Example Usage
|
|
255
|
-
|
|
256
|
-
<!-- UsageSnippet language="typescript" operationID="patchUnifiedConnection" method="patch" path="/unified/connection/{id}" -->
|
|
257
|
-
```typescript
|
|
258
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
259
|
-
|
|
260
|
-
const unifiedTo = new UnifiedTo({
|
|
261
|
-
security: {
|
|
262
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
263
|
-
},
|
|
264
|
-
});
|
|
265
|
-
|
|
266
|
-
async function run() {
|
|
267
|
-
const result = await unifiedTo.connection.patchUnifiedConnection({
|
|
268
|
-
connection: {
|
|
269
|
-
categories: [
|
|
270
|
-
"storage",
|
|
271
|
-
],
|
|
272
|
-
integrationType: "<value>",
|
|
273
|
-
permissions: [
|
|
274
|
-
"uc_contact_write",
|
|
275
|
-
],
|
|
276
|
-
},
|
|
277
|
-
id: "<id>",
|
|
278
|
-
});
|
|
279
|
-
|
|
280
|
-
console.log(result);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
run();
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
### Standalone function
|
|
287
|
-
|
|
288
|
-
The standalone function version of this method:
|
|
289
|
-
|
|
290
|
-
```typescript
|
|
291
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
292
|
-
import { unifiedPatchUnifiedConnection } from "@unified-api/typescript-sdk/funcs/unifiedPatchUnifiedConnection.js";
|
|
293
|
-
|
|
294
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
295
|
-
// You can create one instance of it to use across an application.
|
|
296
|
-
const unifiedTo = new UnifiedToCore({
|
|
297
|
-
security: {
|
|
298
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
299
|
-
},
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
async function run() {
|
|
303
|
-
const res = await unifiedPatchUnifiedConnection(unifiedTo, {
|
|
304
|
-
connection: {
|
|
305
|
-
categories: [
|
|
306
|
-
"storage",
|
|
307
|
-
],
|
|
308
|
-
integrationType: "<value>",
|
|
309
|
-
permissions: [
|
|
310
|
-
"uc_contact_write",
|
|
311
|
-
],
|
|
312
|
-
},
|
|
313
|
-
id: "<id>",
|
|
314
|
-
});
|
|
315
|
-
if (res.ok) {
|
|
316
|
-
const { value: result } = res;
|
|
317
|
-
console.log(result);
|
|
318
|
-
} else {
|
|
319
|
-
console.log("unifiedPatchUnifiedConnection failed:", res.error);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
run();
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
### Parameters
|
|
327
|
-
|
|
328
|
-
| Parameter | Type | Required | Description |
|
|
329
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
330
|
-
| `request` | [operations.PatchUnifiedConnectionRequest](../../sdk/models/operations/patchunifiedconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
331
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
332
|
-
| `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. |
|
|
333
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
334
|
-
|
|
335
|
-
### Response
|
|
336
|
-
|
|
337
|
-
**Promise\<[shared.Connection](../../sdk/models/shared/connection.md)\>**
|
|
338
|
-
|
|
339
|
-
### Errors
|
|
340
|
-
|
|
341
|
-
| Error Type | Status Code | Content Type |
|
|
342
|
-
| --------------- | --------------- | --------------- |
|
|
343
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
344
|
-
|
|
345
|
-
## removeUnifiedConnection
|
|
346
|
-
|
|
347
|
-
Remove connection
|
|
348
|
-
|
|
349
|
-
### Example Usage
|
|
350
|
-
|
|
351
|
-
<!-- UsageSnippet language="typescript" operationID="removeUnifiedConnection" method="delete" path="/unified/connection/{id}" -->
|
|
352
|
-
```typescript
|
|
353
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
354
|
-
|
|
355
|
-
const unifiedTo = new UnifiedTo({
|
|
356
|
-
security: {
|
|
357
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
358
|
-
},
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
async function run() {
|
|
362
|
-
const result = await unifiedTo.connection.removeUnifiedConnection({
|
|
363
|
-
id: "<id>",
|
|
364
|
-
});
|
|
365
|
-
|
|
366
|
-
console.log(result);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
run();
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
### Standalone function
|
|
373
|
-
|
|
374
|
-
The standalone function version of this method:
|
|
375
|
-
|
|
376
|
-
```typescript
|
|
377
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
378
|
-
import { unifiedRemoveUnifiedConnection } from "@unified-api/typescript-sdk/funcs/unifiedRemoveUnifiedConnection.js";
|
|
379
|
-
|
|
380
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
381
|
-
// You can create one instance of it to use across an application.
|
|
382
|
-
const unifiedTo = new UnifiedToCore({
|
|
383
|
-
security: {
|
|
384
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
385
|
-
},
|
|
386
|
-
});
|
|
387
|
-
|
|
388
|
-
async function run() {
|
|
389
|
-
const res = await unifiedRemoveUnifiedConnection(unifiedTo, {
|
|
390
|
-
id: "<id>",
|
|
391
|
-
});
|
|
392
|
-
if (res.ok) {
|
|
393
|
-
const { value: result } = res;
|
|
394
|
-
console.log(result);
|
|
395
|
-
} else {
|
|
396
|
-
console.log("unifiedRemoveUnifiedConnection failed:", res.error);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
run();
|
|
401
|
-
```
|
|
402
|
-
|
|
403
|
-
### Parameters
|
|
404
|
-
|
|
405
|
-
| Parameter | Type | Required | Description |
|
|
406
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
407
|
-
| `request` | [operations.RemoveUnifiedConnectionRequest](../../sdk/models/operations/removeunifiedconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
408
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
409
|
-
| `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. |
|
|
410
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
411
|
-
|
|
412
|
-
### Response
|
|
413
|
-
|
|
414
|
-
**Promise\<[operations.RemoveUnifiedConnectionResponse](../../sdk/models/operations/removeunifiedconnectionresponse.md)\>**
|
|
415
|
-
|
|
416
|
-
### Errors
|
|
417
|
-
|
|
418
|
-
| Error Type | Status Code | Content Type |
|
|
419
|
-
| --------------- | --------------- | --------------- |
|
|
420
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
421
|
-
|
|
422
|
-
## updateUnifiedConnection
|
|
423
|
-
|
|
424
|
-
Update connection
|
|
425
|
-
|
|
426
|
-
### Example Usage
|
|
427
|
-
|
|
428
|
-
<!-- UsageSnippet language="typescript" operationID="updateUnifiedConnection" method="put" path="/unified/connection/{id}" -->
|
|
429
|
-
```typescript
|
|
430
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
431
|
-
|
|
432
|
-
const unifiedTo = new UnifiedTo({
|
|
433
|
-
security: {
|
|
434
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
435
|
-
},
|
|
436
|
-
});
|
|
437
|
-
|
|
438
|
-
async function run() {
|
|
439
|
-
const result = await unifiedTo.connection.updateUnifiedConnection({
|
|
440
|
-
connection: {
|
|
441
|
-
categories: [],
|
|
442
|
-
integrationType: "<value>",
|
|
443
|
-
permissions: [
|
|
444
|
-
"commerce_review_read",
|
|
445
|
-
"calendar_calendar_read",
|
|
446
|
-
],
|
|
447
|
-
},
|
|
448
|
-
id: "<id>",
|
|
449
|
-
});
|
|
450
|
-
|
|
451
|
-
console.log(result);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
run();
|
|
455
|
-
```
|
|
456
|
-
|
|
457
|
-
### Standalone function
|
|
458
|
-
|
|
459
|
-
The standalone function version of this method:
|
|
460
|
-
|
|
461
|
-
```typescript
|
|
462
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
463
|
-
import { unifiedUpdateUnifiedConnection } from "@unified-api/typescript-sdk/funcs/unifiedUpdateUnifiedConnection.js";
|
|
464
|
-
|
|
465
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
466
|
-
// You can create one instance of it to use across an application.
|
|
467
|
-
const unifiedTo = new UnifiedToCore({
|
|
468
|
-
security: {
|
|
469
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
470
|
-
},
|
|
471
|
-
});
|
|
472
|
-
|
|
473
|
-
async function run() {
|
|
474
|
-
const res = await unifiedUpdateUnifiedConnection(unifiedTo, {
|
|
475
|
-
connection: {
|
|
476
|
-
categories: [],
|
|
477
|
-
integrationType: "<value>",
|
|
478
|
-
permissions: [
|
|
479
|
-
"commerce_review_read",
|
|
480
|
-
"calendar_calendar_read",
|
|
481
|
-
],
|
|
482
|
-
},
|
|
483
|
-
id: "<id>",
|
|
484
|
-
});
|
|
485
|
-
if (res.ok) {
|
|
486
|
-
const { value: result } = res;
|
|
487
|
-
console.log(result);
|
|
488
|
-
} else {
|
|
489
|
-
console.log("unifiedUpdateUnifiedConnection failed:", res.error);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
run();
|
|
494
|
-
```
|
|
495
|
-
|
|
496
|
-
### Parameters
|
|
497
|
-
|
|
498
|
-
| Parameter | Type | Required | Description |
|
|
499
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
500
|
-
| `request` | [operations.UpdateUnifiedConnectionRequest](../../sdk/models/operations/updateunifiedconnectionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
501
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
502
|
-
| `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. |
|
|
503
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
504
|
-
|
|
505
|
-
### Response
|
|
506
|
-
|
|
507
|
-
**Promise\<[shared.Connection](../../sdk/models/shared/connection.md)\>**
|
|
508
|
-
|
|
509
|
-
### Errors
|
|
510
|
-
|
|
511
|
-
| Error Type | Status Code | Content Type |
|
|
512
|
-
| --------------- | --------------- | --------------- |
|
|
513
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|