@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/auth/README.md
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
# Auth
|
|
2
|
-
(*auth*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [getUnifiedIntegrationAuth](#getunifiedintegrationauth) - Authorize new connection
|
|
9
|
-
* [getUnifiedIntegrationLogin](#getunifiedintegrationlogin) - Sign in a user
|
|
10
|
-
|
|
11
|
-
## getUnifiedIntegrationAuth
|
|
12
|
-
|
|
13
|
-
Returns an authorization URL for the specified integration. Once a successful authorization occurs, a new connection is created.
|
|
14
|
-
|
|
15
|
-
### Example Usage
|
|
16
|
-
|
|
17
|
-
<!-- UsageSnippet language="typescript" operationID="getUnifiedIntegrationAuth" method="get" path="/unified/integration/auth/{workspace_id}/{integration_type}" -->
|
|
18
|
-
```typescript
|
|
19
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
20
|
-
|
|
21
|
-
const unifiedTo = new UnifiedTo({
|
|
22
|
-
security: {
|
|
23
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
async function run() {
|
|
28
|
-
const result = await unifiedTo.auth.getUnifiedIntegrationAuth({
|
|
29
|
-
integrationType: "<value>",
|
|
30
|
-
workspaceId: "<id>",
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
console.log(result);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
run();
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Standalone function
|
|
40
|
-
|
|
41
|
-
The standalone function version of this method:
|
|
42
|
-
|
|
43
|
-
```typescript
|
|
44
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
45
|
-
import { unifiedGetUnifiedIntegrationAuth } from "@unified-api/typescript-sdk/funcs/unifiedGetUnifiedIntegrationAuth.js";
|
|
46
|
-
|
|
47
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
48
|
-
// You can create one instance of it to use across an application.
|
|
49
|
-
const unifiedTo = new UnifiedToCore({
|
|
50
|
-
security: {
|
|
51
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
async function run() {
|
|
56
|
-
const res = await unifiedGetUnifiedIntegrationAuth(unifiedTo, {
|
|
57
|
-
integrationType: "<value>",
|
|
58
|
-
workspaceId: "<id>",
|
|
59
|
-
});
|
|
60
|
-
if (res.ok) {
|
|
61
|
-
const { value: result } = res;
|
|
62
|
-
console.log(result);
|
|
63
|
-
} else {
|
|
64
|
-
console.log("unifiedGetUnifiedIntegrationAuth failed:", res.error);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
run();
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Parameters
|
|
72
|
-
|
|
73
|
-
| Parameter | Type | Required | Description |
|
|
74
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
75
|
-
| `request` | [operations.GetUnifiedIntegrationAuthRequest](../../sdk/models/operations/getunifiedintegrationauthrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
76
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
77
|
-
| `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. |
|
|
78
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
79
|
-
|
|
80
|
-
### Response
|
|
81
|
-
|
|
82
|
-
**Promise\<[string](../../models/.md)\>**
|
|
83
|
-
|
|
84
|
-
### Errors
|
|
85
|
-
|
|
86
|
-
| Error Type | Status Code | Content Type |
|
|
87
|
-
| --------------- | --------------- | --------------- |
|
|
88
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
89
|
-
|
|
90
|
-
## getUnifiedIntegrationLogin
|
|
91
|
-
|
|
92
|
-
Returns an authentication URL for the specified integration. Once a successful authentication occurs, the name and email are returned inside a jwt parameter, which is a JSON web token that is base-64 encoded.
|
|
93
|
-
|
|
94
|
-
### Example Usage
|
|
95
|
-
|
|
96
|
-
<!-- UsageSnippet language="typescript" operationID="getUnifiedIntegrationLogin" method="get" path="/unified/integration/login/{workspace_id}/{integration_type}" -->
|
|
97
|
-
```typescript
|
|
98
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
99
|
-
|
|
100
|
-
const unifiedTo = new UnifiedTo({
|
|
101
|
-
security: {
|
|
102
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
async function run() {
|
|
107
|
-
const result = await unifiedTo.auth.getUnifiedIntegrationLogin({
|
|
108
|
-
integrationType: "<value>",
|
|
109
|
-
workspaceId: "<id>",
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
console.log(result);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
run();
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### Standalone function
|
|
119
|
-
|
|
120
|
-
The standalone function version of this method:
|
|
121
|
-
|
|
122
|
-
```typescript
|
|
123
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
124
|
-
import { authGetUnifiedIntegrationLogin } from "@unified-api/typescript-sdk/funcs/authGetUnifiedIntegrationLogin.js";
|
|
125
|
-
|
|
126
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
127
|
-
// You can create one instance of it to use across an application.
|
|
128
|
-
const unifiedTo = new UnifiedToCore({
|
|
129
|
-
security: {
|
|
130
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
131
|
-
},
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
async function run() {
|
|
135
|
-
const res = await authGetUnifiedIntegrationLogin(unifiedTo, {
|
|
136
|
-
integrationType: "<value>",
|
|
137
|
-
workspaceId: "<id>",
|
|
138
|
-
});
|
|
139
|
-
if (res.ok) {
|
|
140
|
-
const { value: result } = res;
|
|
141
|
-
console.log(result);
|
|
142
|
-
} else {
|
|
143
|
-
console.log("authGetUnifiedIntegrationLogin failed:", res.error);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
run();
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Parameters
|
|
151
|
-
|
|
152
|
-
| Parameter | Type | Required | Description |
|
|
153
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
154
|
-
| `request` | [operations.GetUnifiedIntegrationLoginRequest](../../sdk/models/operations/getunifiedintegrationloginrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
155
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
156
|
-
| `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. |
|
|
157
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
158
|
-
|
|
159
|
-
### Response
|
|
160
|
-
|
|
161
|
-
**Promise\<[string](../../models/.md)\>**
|
|
162
|
-
|
|
163
|
-
### Errors
|
|
164
|
-
|
|
165
|
-
| Error Type | Status Code | Content Type |
|
|
166
|
-
| --------------- | --------------- | --------------- |
|
|
167
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
# Balancesheet
|
|
2
|
-
(*balancesheet*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [getAccountingBalancesheet](#getaccountingbalancesheet) - Retrieve a balancesheet
|
|
9
|
-
* [listAccountingBalancesheets](#listaccountingbalancesheets) - List all balancesheets
|
|
10
|
-
|
|
11
|
-
## getAccountingBalancesheet
|
|
12
|
-
|
|
13
|
-
Retrieve a balancesheet
|
|
14
|
-
|
|
15
|
-
### Example Usage
|
|
16
|
-
|
|
17
|
-
<!-- UsageSnippet language="typescript" operationID="getAccountingBalancesheet" method="get" path="/accounting/{connection_id}/balancesheet/{id}" -->
|
|
18
|
-
```typescript
|
|
19
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
20
|
-
|
|
21
|
-
const unifiedTo = new UnifiedTo({
|
|
22
|
-
security: {
|
|
23
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
async function run() {
|
|
28
|
-
const result = await unifiedTo.balancesheet.getAccountingBalancesheet({
|
|
29
|
-
connectionId: "<id>",
|
|
30
|
-
id: "<id>",
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
console.log(result);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
run();
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Standalone function
|
|
40
|
-
|
|
41
|
-
The standalone function version of this method:
|
|
42
|
-
|
|
43
|
-
```typescript
|
|
44
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
45
|
-
import { accountingGetAccountingBalancesheet } from "@unified-api/typescript-sdk/funcs/accountingGetAccountingBalancesheet.js";
|
|
46
|
-
|
|
47
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
48
|
-
// You can create one instance of it to use across an application.
|
|
49
|
-
const unifiedTo = new UnifiedToCore({
|
|
50
|
-
security: {
|
|
51
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
async function run() {
|
|
56
|
-
const res = await accountingGetAccountingBalancesheet(unifiedTo, {
|
|
57
|
-
connectionId: "<id>",
|
|
58
|
-
id: "<id>",
|
|
59
|
-
});
|
|
60
|
-
if (res.ok) {
|
|
61
|
-
const { value: result } = res;
|
|
62
|
-
console.log(result);
|
|
63
|
-
} else {
|
|
64
|
-
console.log("accountingGetAccountingBalancesheet failed:", res.error);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
run();
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Parameters
|
|
72
|
-
|
|
73
|
-
| Parameter | Type | Required | Description |
|
|
74
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
75
|
-
| `request` | [operations.GetAccountingBalancesheetRequest](../../sdk/models/operations/getaccountingbalancesheetrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
76
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
77
|
-
| `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. |
|
|
78
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
79
|
-
|
|
80
|
-
### Response
|
|
81
|
-
|
|
82
|
-
**Promise\<[shared.AccountingBalancesheet](../../sdk/models/shared/accountingbalancesheet.md)\>**
|
|
83
|
-
|
|
84
|
-
### Errors
|
|
85
|
-
|
|
86
|
-
| Error Type | Status Code | Content Type |
|
|
87
|
-
| --------------- | --------------- | --------------- |
|
|
88
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
89
|
-
|
|
90
|
-
## listAccountingBalancesheets
|
|
91
|
-
|
|
92
|
-
List all balancesheets
|
|
93
|
-
|
|
94
|
-
### Example Usage
|
|
95
|
-
|
|
96
|
-
<!-- UsageSnippet language="typescript" operationID="listAccountingBalancesheets" method="get" path="/accounting/{connection_id}/balancesheet" -->
|
|
97
|
-
```typescript
|
|
98
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
99
|
-
|
|
100
|
-
const unifiedTo = new UnifiedTo({
|
|
101
|
-
security: {
|
|
102
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
async function run() {
|
|
107
|
-
const result = await unifiedTo.balancesheet.listAccountingBalancesheets({
|
|
108
|
-
connectionId: "<id>",
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
console.log(result);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
run();
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
### Standalone function
|
|
118
|
-
|
|
119
|
-
The standalone function version of this method:
|
|
120
|
-
|
|
121
|
-
```typescript
|
|
122
|
-
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
123
|
-
import { accountingListAccountingBalancesheets } from "@unified-api/typescript-sdk/funcs/accountingListAccountingBalancesheets.js";
|
|
124
|
-
|
|
125
|
-
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
126
|
-
// You can create one instance of it to use across an application.
|
|
127
|
-
const unifiedTo = new UnifiedToCore({
|
|
128
|
-
security: {
|
|
129
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
130
|
-
},
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
async function run() {
|
|
134
|
-
const res = await accountingListAccountingBalancesheets(unifiedTo, {
|
|
135
|
-
connectionId: "<id>",
|
|
136
|
-
});
|
|
137
|
-
if (res.ok) {
|
|
138
|
-
const { value: result } = res;
|
|
139
|
-
console.log(result);
|
|
140
|
-
} else {
|
|
141
|
-
console.log("accountingListAccountingBalancesheets failed:", res.error);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
run();
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
### Parameters
|
|
149
|
-
|
|
150
|
-
| Parameter | Type | Required | Description |
|
|
151
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
152
|
-
| `request` | [operations.ListAccountingBalancesheetsRequest](../../sdk/models/operations/listaccountingbalancesheetsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
153
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
154
|
-
| `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. |
|
|
155
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
156
|
-
|
|
157
|
-
### Response
|
|
158
|
-
|
|
159
|
-
**Promise\<[shared.AccountingBalancesheet[]](../../models/.md)\>**
|
|
160
|
-
|
|
161
|
-
### Errors
|
|
162
|
-
|
|
163
|
-
| Error Type | Status Code | Content Type |
|
|
164
|
-
| --------------- | --------------- | --------------- |
|
|
165
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|