@unified-api/typescript-sdk 2.78.0 → 2.78.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.
Files changed (84) hide show
  1. package/README.md +4 -0
  2. package/docs/sdks/accounting/README.md +158 -0
  3. package/docs/sdks/cashflow/README.md +165 -0
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/accountingGetAccountingCashflow.d.ts +15 -0
  6. package/funcs/accountingGetAccountingCashflow.d.ts.map +1 -0
  7. package/funcs/accountingGetAccountingCashflow.js +125 -0
  8. package/funcs/accountingGetAccountingCashflow.js.map +1 -0
  9. package/funcs/accountingListAccountingCashflows.d.ts +15 -0
  10. package/funcs/accountingListAccountingCashflows.d.ts.map +1 -0
  11. package/funcs/accountingListAccountingCashflows.js +133 -0
  12. package/funcs/accountingListAccountingCashflows.js.map +1 -0
  13. package/jsr.json +1 -1
  14. package/lib/config.d.ts +3 -3
  15. package/lib/config.js +3 -3
  16. package/package.json +1 -1
  17. package/sdk/accounting.d.ts +8 -0
  18. package/sdk/accounting.d.ts.map +1 -1
  19. package/sdk/accounting.js +14 -0
  20. package/sdk/accounting.js.map +1 -1
  21. package/sdk/cashflow.d.ts +14 -0
  22. package/sdk/cashflow.d.ts.map +1 -0
  23. package/sdk/cashflow.js +26 -0
  24. package/sdk/cashflow.js.map +1 -0
  25. package/sdk/models/operations/getaccountingcashflow.d.ts +47 -0
  26. package/sdk/models/operations/getaccountingcashflow.d.ts.map +1 -0
  27. package/sdk/models/operations/getaccountingcashflow.js +84 -0
  28. package/sdk/models/operations/getaccountingcashflow.js.map +1 -0
  29. package/sdk/models/operations/index.d.ts +2 -0
  30. package/sdk/models/operations/index.d.ts.map +1 -1
  31. package/sdk/models/operations/index.js +2 -0
  32. package/sdk/models/operations/index.js.map +1 -1
  33. package/sdk/models/operations/listaccountingcashflows.d.ts +85 -0
  34. package/sdk/models/operations/listaccountingcashflows.d.ts.map +1 -0
  35. package/sdk/models/operations/listaccountingcashflows.js +116 -0
  36. package/sdk/models/operations/listaccountingcashflows.js.map +1 -0
  37. package/sdk/models/shared/accountingcashflow.d.ts +67 -0
  38. package/sdk/models/shared/accountingcashflow.d.ts.map +1 -0
  39. package/sdk/models/shared/accountingcashflow.js +141 -0
  40. package/sdk/models/shared/accountingcashflow.js.map +1 -0
  41. package/sdk/models/shared/accountingcashflowitem.d.ts +41 -0
  42. package/sdk/models/shared/accountingcashflowitem.d.ts.map +1 -0
  43. package/sdk/models/shared/accountingcashflowitem.js +93 -0
  44. package/sdk/models/shared/accountingcashflowitem.js.map +1 -0
  45. package/sdk/models/shared/accountingcashflowsection.d.ts +34 -0
  46. package/sdk/models/shared/accountingcashflowsection.d.ts.map +1 -0
  47. package/sdk/models/shared/accountingcashflowsection.js +85 -0
  48. package/sdk/models/shared/accountingcashflowsection.js.map +1 -0
  49. package/sdk/models/shared/index.d.ts +4 -0
  50. package/sdk/models/shared/index.d.ts.map +1 -1
  51. package/sdk/models/shared/index.js +4 -0
  52. package/sdk/models/shared/index.js.map +1 -1
  53. package/sdk/models/shared/propertyaccountingcashflowitemsubitems.d.ts +25 -0
  54. package/sdk/models/shared/propertyaccountingcashflowitemsubitems.d.ts.map +1 -0
  55. package/sdk/models/shared/propertyaccountingcashflowitemsubitems.js +65 -0
  56. package/sdk/models/shared/propertyaccountingcashflowitemsubitems.js.map +1 -0
  57. package/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
  58. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  59. package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  60. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  61. package/sdk/models/shared/webhook.d.ts +1 -0
  62. package/sdk/models/shared/webhook.d.ts.map +1 -1
  63. package/sdk/models/shared/webhook.js +1 -0
  64. package/sdk/models/shared/webhook.js.map +1 -1
  65. package/sdk/sdk.d.ts +3 -0
  66. package/sdk/sdk.d.ts.map +1 -1
  67. package/sdk/sdk.js +4 -0
  68. package/sdk/sdk.js.map +1 -1
  69. package/src/funcs/accountingGetAccountingCashflow.ts +176 -0
  70. package/src/funcs/accountingListAccountingCashflows.ts +182 -0
  71. package/src/lib/config.ts +3 -3
  72. package/src/sdk/accounting.ts +30 -0
  73. package/src/sdk/cashflow.ts +40 -0
  74. package/src/sdk/models/operations/getaccountingcashflow.ts +101 -0
  75. package/src/sdk/models/operations/index.ts +2 -0
  76. package/src/sdk/models/operations/listaccountingcashflows.ts +171 -0
  77. package/src/sdk/models/shared/accountingcashflow.ts +176 -0
  78. package/src/sdk/models/shared/accountingcashflowitem.ts +108 -0
  79. package/src/sdk/models/shared/accountingcashflowsection.ts +91 -0
  80. package/src/sdk/models/shared/index.ts +4 -0
  81. package/src/sdk/models/shared/propertyaccountingcashflowitemsubitems.ts +64 -0
  82. package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
  83. package/src/sdk/models/shared/webhook.ts +1 -0
  84. package/src/sdk/sdk.ts +6 -0
package/README.md CHANGED
@@ -474,6 +474,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
474
474
  - [`accountingGetAccountingBalancesheet`](docs/sdks/balancesheet/README.md#getaccountingbalancesheet) - Retrieve a balancesheet
475
475
  - [`accountingGetAccountingBill`](docs/sdks/accounting/README.md#getaccountingbill) - Retrieve a bill
476
476
  - [`accountingGetAccountingBill`](docs/sdks/bill/README.md#getaccountingbill) - Retrieve a bill
477
+ - [`accountingGetAccountingCashflow`](docs/sdks/accounting/README.md#getaccountingcashflow) - Retrieve a cashflow
478
+ - [`accountingGetAccountingCashflow`](docs/sdks/cashflow/README.md#getaccountingcashflow) - Retrieve a cashflow
477
479
  - [`accountingGetAccountingCategory`](docs/sdks/accounting/README.md#getaccountingcategory) - Retrieve a category
478
480
  - [`accountingGetAccountingCategory`](docs/sdks/category/README.md#getaccountingcategory) - Retrieve a category
479
481
  - [`accountingGetAccountingContact`](docs/sdks/accounting/README.md#getaccountingcontact) - Retrieve a contact
@@ -510,6 +512,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
510
512
  - [`accountingListAccountingBalancesheets`](docs/sdks/balancesheet/README.md#listaccountingbalancesheets) - List all balancesheets
511
513
  - [`accountingListAccountingBills`](docs/sdks/accounting/README.md#listaccountingbills) - List all bills
512
514
  - [`accountingListAccountingBills`](docs/sdks/bill/README.md#listaccountingbills) - List all bills
515
+ - [`accountingListAccountingCashflows`](docs/sdks/accounting/README.md#listaccountingcashflows) - List all cashflows
516
+ - [`accountingListAccountingCashflows`](docs/sdks/cashflow/README.md#listaccountingcashflows) - List all cashflows
513
517
  - [`accountingListAccountingCategories`](docs/sdks/accounting/README.md#listaccountingcategories) - List all categories
514
518
  - [`accountingListAccountingCategories`](docs/sdks/category/README.md#listaccountingcategories) - List all categories
515
519
  - [`accountingListAccountingContacts`](docs/sdks/accounting/README.md#listaccountingcontacts) - List all contacts
@@ -21,6 +21,7 @@
21
21
  * [getAccountingAccount](#getaccountingaccount) - Retrieve an account
22
22
  * [getAccountingBalancesheet](#getaccountingbalancesheet) - Retrieve a balancesheet
23
23
  * [getAccountingBill](#getaccountingbill) - Retrieve a bill
24
+ * [getAccountingCashflow](#getaccountingcashflow) - Retrieve a cashflow
24
25
  * [getAccountingCategory](#getaccountingcategory) - Retrieve a category
25
26
  * [getAccountingContact](#getaccountingcontact) - Retrieve a contact
26
27
  * [getAccountingCreditmemo](#getaccountingcreditmemo) - Retrieve a creditmemo
@@ -39,6 +40,7 @@
39
40
  * [listAccountingAccounts](#listaccountingaccounts) - List all accounts
40
41
  * [listAccountingBalancesheets](#listaccountingbalancesheets) - List all balancesheets
41
42
  * [listAccountingBills](#listaccountingbills) - List all bills
43
+ * [listAccountingCashflows](#listaccountingcashflows) - List all cashflows
42
44
  * [listAccountingCategories](#listaccountingcategories) - List all categories
43
45
  * [listAccountingContacts](#listaccountingcontacts) - List all contacts
44
46
  * [listAccountingCreditmemoes](#listaccountingcreditmemoes) - List all creditmemoes
@@ -1358,6 +1360,85 @@ run();
1358
1360
  | --------------- | --------------- | --------------- |
1359
1361
  | errors.SDKError | 4XX, 5XX | \*/\* |
1360
1362
 
1363
+ ## getAccountingCashflow
1364
+
1365
+ Retrieve a cashflow
1366
+
1367
+ ### Example Usage
1368
+
1369
+ <!-- UsageSnippet language="typescript" operationID="getAccountingCashflow" method="get" path="/accounting/{connection_id}/cashflow/{id}" -->
1370
+ ```typescript
1371
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
1372
+
1373
+ const unifiedTo = new UnifiedTo({
1374
+ security: {
1375
+ jwt: "<YOUR_API_KEY_HERE>",
1376
+ },
1377
+ });
1378
+
1379
+ async function run() {
1380
+ const result = await unifiedTo.accounting.getAccountingCashflow({
1381
+ connectionId: "<id>",
1382
+ id: "<id>",
1383
+ });
1384
+
1385
+ console.log(result);
1386
+ }
1387
+
1388
+ run();
1389
+ ```
1390
+
1391
+ ### Standalone function
1392
+
1393
+ The standalone function version of this method:
1394
+
1395
+ ```typescript
1396
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
1397
+ import { accountingGetAccountingCashflow } from "@unified-api/typescript-sdk/funcs/accountingGetAccountingCashflow.js";
1398
+
1399
+ // Use `UnifiedToCore` for best tree-shaking performance.
1400
+ // You can create one instance of it to use across an application.
1401
+ const unifiedTo = new UnifiedToCore({
1402
+ security: {
1403
+ jwt: "<YOUR_API_KEY_HERE>",
1404
+ },
1405
+ });
1406
+
1407
+ async function run() {
1408
+ const res = await accountingGetAccountingCashflow(unifiedTo, {
1409
+ connectionId: "<id>",
1410
+ id: "<id>",
1411
+ });
1412
+ if (res.ok) {
1413
+ const { value: result } = res;
1414
+ console.log(result);
1415
+ } else {
1416
+ console.log("accountingGetAccountingCashflow failed:", res.error);
1417
+ }
1418
+ }
1419
+
1420
+ run();
1421
+ ```
1422
+
1423
+ ### Parameters
1424
+
1425
+ | Parameter | Type | Required | Description |
1426
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1427
+ | `request` | [operations.GetAccountingCashflowRequest](../../sdk/models/operations/getaccountingcashflowrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1428
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
1429
+ | `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. |
1430
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
1431
+
1432
+ ### Response
1433
+
1434
+ **Promise\<[shared.AccountingCashflow](../../sdk/models/shared/accountingcashflow.md)\>**
1435
+
1436
+ ### Errors
1437
+
1438
+ | Error Type | Status Code | Content Type |
1439
+ | --------------- | --------------- | --------------- |
1440
+ | errors.SDKError | 4XX, 5XX | \*/\* |
1441
+
1361
1442
  ## getAccountingCategory
1362
1443
 
1363
1444
  Retrieve a category
@@ -2774,6 +2855,83 @@ run();
2774
2855
  | --------------- | --------------- | --------------- |
2775
2856
  | errors.SDKError | 4XX, 5XX | \*/\* |
2776
2857
 
2858
+ ## listAccountingCashflows
2859
+
2860
+ List all cashflows
2861
+
2862
+ ### Example Usage
2863
+
2864
+ <!-- UsageSnippet language="typescript" operationID="listAccountingCashflows" method="get" path="/accounting/{connection_id}/cashflow" -->
2865
+ ```typescript
2866
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
2867
+
2868
+ const unifiedTo = new UnifiedTo({
2869
+ security: {
2870
+ jwt: "<YOUR_API_KEY_HERE>",
2871
+ },
2872
+ });
2873
+
2874
+ async function run() {
2875
+ const result = await unifiedTo.accounting.listAccountingCashflows({
2876
+ connectionId: "<id>",
2877
+ });
2878
+
2879
+ console.log(result);
2880
+ }
2881
+
2882
+ run();
2883
+ ```
2884
+
2885
+ ### Standalone function
2886
+
2887
+ The standalone function version of this method:
2888
+
2889
+ ```typescript
2890
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
2891
+ import { accountingListAccountingCashflows } from "@unified-api/typescript-sdk/funcs/accountingListAccountingCashflows.js";
2892
+
2893
+ // Use `UnifiedToCore` for best tree-shaking performance.
2894
+ // You can create one instance of it to use across an application.
2895
+ const unifiedTo = new UnifiedToCore({
2896
+ security: {
2897
+ jwt: "<YOUR_API_KEY_HERE>",
2898
+ },
2899
+ });
2900
+
2901
+ async function run() {
2902
+ const res = await accountingListAccountingCashflows(unifiedTo, {
2903
+ connectionId: "<id>",
2904
+ });
2905
+ if (res.ok) {
2906
+ const { value: result } = res;
2907
+ console.log(result);
2908
+ } else {
2909
+ console.log("accountingListAccountingCashflows failed:", res.error);
2910
+ }
2911
+ }
2912
+
2913
+ run();
2914
+ ```
2915
+
2916
+ ### Parameters
2917
+
2918
+ | Parameter | Type | Required | Description |
2919
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
2920
+ | `request` | [operations.ListAccountingCashflowsRequest](../../sdk/models/operations/listaccountingcashflowsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
2921
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
2922
+ | `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. |
2923
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
2924
+
2925
+ ### Response
2926
+
2927
+ **Promise\<[shared.AccountingCashflow[]](../../models/.md)\>**
2928
+
2929
+ ### Errors
2930
+
2931
+ | Error Type | Status Code | Content Type |
2932
+ | --------------- | --------------- | --------------- |
2933
+ | errors.SDKError | 4XX, 5XX | \*/\* |
2934
+
2777
2935
  ## listAccountingCategories
2778
2936
 
2779
2937
  List all categories
@@ -0,0 +1,165 @@
1
+ # Cashflow
2
+ (*cashflow*)
3
+
4
+ ## Overview
5
+
6
+ ### Available Operations
7
+
8
+ * [getAccountingCashflow](#getaccountingcashflow) - Retrieve a cashflow
9
+ * [listAccountingCashflows](#listaccountingcashflows) - List all cashflows
10
+
11
+ ## getAccountingCashflow
12
+
13
+ Retrieve a cashflow
14
+
15
+ ### Example Usage
16
+
17
+ <!-- UsageSnippet language="typescript" operationID="getAccountingCashflow" method="get" path="/accounting/{connection_id}/cashflow/{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.cashflow.getAccountingCashflow({
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 { accountingGetAccountingCashflow } from "@unified-api/typescript-sdk/funcs/accountingGetAccountingCashflow.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 accountingGetAccountingCashflow(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("accountingGetAccountingCashflow failed:", res.error);
65
+ }
66
+ }
67
+
68
+ run();
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+ | Parameter | Type | Required | Description |
74
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
75
+ | `request` | [operations.GetAccountingCashflowRequest](../../sdk/models/operations/getaccountingcashflowrequest.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.AccountingCashflow](../../sdk/models/shared/accountingcashflow.md)\>**
83
+
84
+ ### Errors
85
+
86
+ | Error Type | Status Code | Content Type |
87
+ | --------------- | --------------- | --------------- |
88
+ | errors.SDKError | 4XX, 5XX | \*/\* |
89
+
90
+ ## listAccountingCashflows
91
+
92
+ List all cashflows
93
+
94
+ ### Example Usage
95
+
96
+ <!-- UsageSnippet language="typescript" operationID="listAccountingCashflows" method="get" path="/accounting/{connection_id}/cashflow" -->
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.cashflow.listAccountingCashflows({
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 { accountingListAccountingCashflows } from "@unified-api/typescript-sdk/funcs/accountingListAccountingCashflows.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 accountingListAccountingCashflows(unifiedTo, {
135
+ connectionId: "<id>",
136
+ });
137
+ if (res.ok) {
138
+ const { value: result } = res;
139
+ console.log(result);
140
+ } else {
141
+ console.log("accountingListAccountingCashflows failed:", res.error);
142
+ }
143
+ }
144
+
145
+ run();
146
+ ```
147
+
148
+ ### Parameters
149
+
150
+ | Parameter | Type | Required | Description |
151
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
152
+ | `request` | [operations.ListAccountingCashflowsRequest](../../sdk/models/operations/listaccountingcashflowsrequest.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.AccountingCashflow[]](../../models/.md)\>**
160
+
161
+ ### Errors
162
+
163
+ | Error Type | Status Code | Content Type |
164
+ | --------------- | --------------- | --------------- |
165
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@unified-api/typescript-sdk",
21
- "version": "2.78.0",
21
+ "version": "2.78.1",
22
22
  "dependencies": {
23
23
  "zod": "^3.25.0 || ^4.0.0"
24
24
  },
@@ -0,0 +1,15 @@
1
+ import { UnifiedToCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
4
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
5
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
6
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
7
+ import * as operations from "../sdk/models/operations/index.js";
8
+ import * as shared from "../sdk/models/shared/index.js";
9
+ import { APIPromise } from "../sdk/types/async.js";
10
+ import { Result } from "../sdk/types/fp.js";
11
+ /**
12
+ * Retrieve a cashflow
13
+ */
14
+ export declare function accountingGetAccountingCashflow(client: UnifiedToCore, request: operations.GetAccountingCashflowRequest, options?: RequestOptions): APIPromise<Result<shared.AccountingCashflow, UnifiedToError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
15
+ //# sourceMappingURL=accountingGetAccountingCashflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountingGetAccountingCashflow.d.ts","sourceRoot":"","sources":["../src/funcs/accountingGetAccountingCashflow.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAW,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,kBAAkB,EACvB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.accountingGetAccountingCashflow = accountingGetAccountingCashflow;
40
+ const encodings_js_1 = require("../lib/encodings.js");
41
+ const M = __importStar(require("../lib/matchers.js"));
42
+ const primitives_js_1 = require("../lib/primitives.js");
43
+ const schemas_js_1 = require("../lib/schemas.js");
44
+ const security_js_1 = require("../lib/security.js");
45
+ const url_js_1 = require("../lib/url.js");
46
+ const operations = __importStar(require("../sdk/models/operations/index.js"));
47
+ const shared = __importStar(require("../sdk/models/shared/index.js"));
48
+ const async_js_1 = require("../sdk/types/async.js");
49
+ /**
50
+ * Retrieve a cashflow
51
+ */
52
+ function accountingGetAccountingCashflow(client, request, options) {
53
+ return new async_js_1.APIPromise($do(client, request, options));
54
+ }
55
+ async function $do(client, request, options) {
56
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetAccountingCashflowRequest$outboundSchema.parse(value), "Input validation failed");
57
+ if (!parsed.ok) {
58
+ return [parsed, { status: "invalid" }];
59
+ }
60
+ const payload = parsed.value;
61
+ const body = null;
62
+ const pathParams = {
63
+ connection_id: (0, encodings_js_1.encodeSimple)("connection_id", payload.connection_id, {
64
+ explode: false,
65
+ charEncoding: "percent",
66
+ }),
67
+ id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
68
+ explode: false,
69
+ charEncoding: "percent",
70
+ }),
71
+ };
72
+ const path = (0, url_js_1.pathToFunc)("/accounting/{connection_id}/cashflow/{id}")(pathParams);
73
+ const query = (0, encodings_js_1.encodeFormQuery)({
74
+ "fields": payload.fields,
75
+ "raw": payload.raw,
76
+ });
77
+ const headers = new Headers((0, primitives_js_1.compactMap)({
78
+ Accept: "application/json",
79
+ }));
80
+ const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
81
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
82
+ const context = {
83
+ options: client._options,
84
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
85
+ operationID: "getAccountingCashflow",
86
+ oAuth2Scopes: null,
87
+ resolvedSecurity: requestSecurity,
88
+ securitySource: client._options.security,
89
+ retryConfig: options?.retries
90
+ || client._options.retryConfig
91
+ || { strategy: "none" },
92
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
93
+ };
94
+ const requestRes = client._createRequest(context, {
95
+ security: requestSecurity,
96
+ method: "GET",
97
+ baseURL: options?.serverURL,
98
+ path: path,
99
+ headers: headers,
100
+ query: query,
101
+ body: body,
102
+ userAgent: client._options.userAgent,
103
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
104
+ }, options);
105
+ if (!requestRes.ok) {
106
+ return [requestRes, { status: "invalid" }];
107
+ }
108
+ const req = requestRes.value;
109
+ const doResult = await client._do(req, {
110
+ context,
111
+ errorCodes: ["4XX", "5XX"],
112
+ retryConfig: context.retryConfig,
113
+ retryCodes: context.retryCodes,
114
+ });
115
+ if (!doResult.ok) {
116
+ return [doResult, { status: "request-error", request: req }];
117
+ }
118
+ const response = doResult.value;
119
+ const [result] = await M.match(M.json(200, shared.AccountingCashflow$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
120
+ if (!result.ok) {
121
+ return [result, { status: "complete", request: req, response }];
122
+ }
123
+ return [result, { status: "complete", request: req, response }];
124
+ }
125
+ //# sourceMappingURL=accountingGetAccountingCashflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountingGetAccountingCashflow.js","sourceRoot":"","sources":["../src/funcs/accountingGetAccountingCashflow.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,0EAsBC;AA/CD,sDAAoE;AACpE,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAW3C,8EAAgE;AAChE,sEAAwD;AACxD,oDAA4D;AAG5D;;GAEG;AACH,SAAgB,+BAA+B,CAC7C,MAAqB,EACrB,OAAgD,EAChD,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAqB,EACrB,OAAgD,EAChD,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,2CAA2C,CAAC,KAAK,CAAC,KAAK,CAAC,EACrE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,aAAa,EAAE,IAAA,2BAAY,EAAC,eAAe,EAAE,OAAO,CAAC,aAAa,EAAE;YAClE,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;QACF,EAAE,EAAE,IAAA,2BAAY,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE;YACjC,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB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AM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { UnifiedToCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
4
+ import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
5
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
6
+ import { UnifiedToError } from "../sdk/models/errors/unifiedtoerror.js";
7
+ import * as operations from "../sdk/models/operations/index.js";
8
+ import * as shared from "../sdk/models/shared/index.js";
9
+ import { APIPromise } from "../sdk/types/async.js";
10
+ import { Result } from "../sdk/types/fp.js";
11
+ /**
12
+ * List all cashflows
13
+ */
14
+ export declare function accountingListAccountingCashflows(client: UnifiedToCore, request: operations.ListAccountingCashflowsRequest, options?: RequestOptions): APIPromise<Result<Array<shared.AccountingCashflow>, UnifiedToError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
15
+ //# sourceMappingURL=accountingListAccountingCashflows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountingListAccountingCashflows.d.ts","sourceRoot":"","sources":["../src/funcs/accountingListAccountingCashflows.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAW,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAC9B,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}