@unified-api/typescript-sdk 2.73.10 → 2.73.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/bin/mcp-server.js +4418 -3450
- package/bin/mcp-server.js.map +28 -9
- package/docs/sdks/account/README.md +6 -0
- package/docs/sdks/accounting/README.md +558 -0
- package/docs/sdks/activity/README.md +6 -0
- package/docs/sdks/apicall/README.md +2 -0
- package/docs/sdks/application/README.md +6 -0
- package/docs/sdks/applicationstatus/README.md +1 -0
- package/docs/sdks/ats/README.md +49 -0
- package/docs/sdks/auth/README.md +2 -0
- package/docs/sdks/balancesheet/README.md +2 -0
- package/docs/sdks/bill/README.md +6 -0
- package/docs/sdks/branch/README.md +6 -0
- package/docs/sdks/busy/README.md +1 -0
- package/docs/sdks/calendar/README.md +21 -0
- package/docs/sdks/call/README.md +1 -0
- package/docs/sdks/candidate/README.md +6 -0
- package/docs/sdks/category/README.md +489 -0
- package/docs/sdks/channel/README.md +2 -0
- package/docs/sdks/class/README.md +6 -0
- package/docs/sdks/collection/README.md +6 -0
- package/docs/sdks/comment/README.md +18 -0
- package/docs/sdks/commerce/README.md +30 -0
- package/docs/sdks/commit/README.md +6 -0
- package/docs/sdks/company/README.md +19 -0
- package/docs/sdks/connection/README.md +6 -0
- package/docs/sdks/contact/README.md +18 -0
- package/docs/sdks/course/README.md +6 -0
- package/docs/sdks/creditmemo/README.md +6 -0
- package/docs/sdks/crm/README.md +36 -0
- package/docs/sdks/customer/README.md +6 -0
- package/docs/sdks/deal/README.md +6 -0
- package/docs/sdks/device/README.md +6 -0
- package/docs/sdks/document/README.md +6 -0
- package/docs/sdks/employee/README.md +6 -0
- package/docs/sdks/enrich/README.md +2 -0
- package/docs/sdks/event/README.md +12 -0
- package/docs/sdks/file/README.md +6 -0
- package/docs/sdks/genai/README.md +2 -0
- package/docs/sdks/group/README.md +12 -0
- package/docs/sdks/hris/README.md +40 -0
- package/docs/sdks/instructor/README.md +6 -0
- package/docs/sdks/integration/README.md +3 -0
- package/docs/sdks/interview/README.md +6 -0
- package/docs/sdks/inventory/README.md +6 -0
- package/docs/sdks/invoice/README.md +6 -0
- package/docs/sdks/issue/README.md +1 -0
- package/docs/sdks/item/README.md +6 -0
- package/docs/sdks/job/README.md +6 -0
- package/docs/sdks/journal/README.md +6 -0
- package/docs/sdks/kms/README.md +18 -0
- package/docs/sdks/lead/README.md +6 -0
- package/docs/sdks/link/README.md +12 -0
- package/docs/sdks/list/README.md +6 -0
- package/docs/sdks/lms/README.md +24 -0
- package/docs/sdks/location/README.md +12 -0
- package/docs/sdks/login/README.md +1 -0
- package/docs/sdks/martech/README.md +12 -0
- package/docs/sdks/member/README.md +6 -0
- package/docs/sdks/message/README.md +6 -0
- package/docs/sdks/messaging/README.md +8 -0
- package/docs/sdks/metadata/README.md +6 -0
- package/docs/sdks/model/README.md +1 -0
- package/docs/sdks/note/README.md +6 -0
- package/docs/sdks/order/README.md +6 -0
- package/docs/sdks/organization/README.md +8 -0
- package/docs/sdks/page/README.md +6 -0
- package/docs/sdks/passthrough/README.md +8 -0
- package/docs/sdks/payment/README.md +22 -0
- package/docs/sdks/payout/README.md +2 -0
- package/docs/sdks/payslip/README.md +2 -0
- package/docs/sdks/person/README.md +1 -0
- package/docs/sdks/pipeline/README.md +6 -0
- package/docs/sdks/profitloss/README.md +2 -0
- package/docs/sdks/project/README.md +6 -0
- package/docs/sdks/prompt/README.md +1 -0
- package/docs/sdks/pullrequest/README.md +6 -0
- package/docs/sdks/purchaseorder/README.md +6 -0
- package/docs/sdks/recording/README.md +8 -0
- package/docs/sdks/refund/README.md +2 -0
- package/docs/sdks/repo/README.md +30 -0
- package/docs/sdks/report/README.md +2 -0
- package/docs/sdks/repository/README.md +6 -0
- package/docs/sdks/review/README.md +6 -0
- package/docs/sdks/salesorder/README.md +6 -0
- package/docs/sdks/scim/README.md +12 -0
- package/docs/sdks/scorecard/README.md +6 -0
- package/docs/sdks/space/README.md +6 -0
- package/docs/sdks/storage/README.md +6 -0
- package/docs/sdks/student/README.md +6 -0
- package/docs/sdks/subscription/README.md +6 -0
- package/docs/sdks/task/README.md +18 -0
- package/docs/sdks/taxrate/README.md +6 -0
- package/docs/sdks/ticket/README.md +6 -0
- package/docs/sdks/ticketing/README.md +18 -0
- package/docs/sdks/timeoff/README.md +2 -0
- package/docs/sdks/timeshift/README.md +6 -0
- package/docs/sdks/transaction/README.md +6 -0
- package/docs/sdks/trialbalance/README.md +2 -0
- package/docs/sdks/uc/README.md +19 -0
- package/docs/sdks/unified/README.md +20 -0
- package/docs/sdks/user/README.md +6 -0
- package/docs/sdks/webhook/README.md +8 -0
- package/examples/README.md +5 -0
- package/examples/accountingCreateAccountingAccount.example.ts +2 -0
- package/examples/package-lock.json +6 -5
- package/funcs/accountingCreateAccountingCategory.d.ts +15 -0
- package/funcs/accountingCreateAccountingCategory.d.ts.map +1 -0
- package/funcs/accountingCreateAccountingCategory.js +114 -0
- package/funcs/accountingCreateAccountingCategory.js.map +1 -0
- package/funcs/accountingGetAccountingCategory.d.ts +15 -0
- package/funcs/accountingGetAccountingCategory.d.ts.map +1 -0
- package/funcs/accountingGetAccountingCategory.js +115 -0
- package/funcs/accountingGetAccountingCategory.js.map +1 -0
- package/funcs/accountingListAccountingCategories.d.ts +15 -0
- package/funcs/accountingListAccountingCategories.d.ts.map +1 -0
- package/funcs/accountingListAccountingCategories.js +119 -0
- package/funcs/accountingListAccountingCategories.js.map +1 -0
- package/funcs/accountingPatchAccountingCategory.d.ts +15 -0
- package/funcs/accountingPatchAccountingCategory.d.ts.map +1 -0
- package/funcs/accountingPatchAccountingCategory.js +118 -0
- package/funcs/accountingPatchAccountingCategory.js.map +1 -0
- package/funcs/accountingRemoveAccountingCategory.d.ts +14 -0
- package/funcs/accountingRemoveAccountingCategory.d.ts.map +1 -0
- package/funcs/accountingRemoveAccountingCategory.js +112 -0
- package/funcs/accountingRemoveAccountingCategory.js.map +1 -0
- package/funcs/accountingUpdateAccountingCategory.d.ts +15 -0
- package/funcs/accountingUpdateAccountingCategory.d.ts.map +1 -0
- package/funcs/accountingUpdateAccountingCategory.js +118 -0
- package/funcs/accountingUpdateAccountingCategory.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +13 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountingCreateAccountingCategory.d.ts +8 -0
- package/mcp-server/tools/accountingCreateAccountingCategory.d.ts.map +1 -0
- package/mcp-server/tools/accountingCreateAccountingCategory.js +52 -0
- package/mcp-server/tools/accountingCreateAccountingCategory.js.map +1 -0
- package/mcp-server/tools/accountingGetAccountingCategory.d.ts +8 -0
- package/mcp-server/tools/accountingGetAccountingCategory.d.ts.map +1 -0
- package/mcp-server/tools/accountingGetAccountingCategory.js +52 -0
- package/mcp-server/tools/accountingGetAccountingCategory.js.map +1 -0
- package/mcp-server/tools/accountingListAccountingCategories.d.ts +8 -0
- package/mcp-server/tools/accountingListAccountingCategories.d.ts.map +1 -0
- package/mcp-server/tools/accountingListAccountingCategories.js +52 -0
- package/mcp-server/tools/accountingListAccountingCategories.js.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingCategory.d.ts +8 -0
- package/mcp-server/tools/accountingPatchAccountingCategory.d.ts.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingCategory.js +52 -0
- package/mcp-server/tools/accountingPatchAccountingCategory.js.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingCategory.d.ts +8 -0
- package/mcp-server/tools/accountingRemoveAccountingCategory.d.ts.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingCategory.js +51 -0
- package/mcp-server/tools/accountingRemoveAccountingCategory.js.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingCategory.d.ts +8 -0
- package/mcp-server/tools/accountingUpdateAccountingCategory.d.ts.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingCategory.js +52 -0
- package/mcp-server/tools/accountingUpdateAccountingCategory.js.map +1 -0
- package/package.json +4 -6
- package/sdk/accounting.d.ts +24 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +42 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/category.d.ts +30 -0
- package/sdk/category.d.ts.map +1 -0
- package/sdk/category.js +54 -0
- package/sdk/category.js.map +1 -0
- package/sdk/models/operations/createaccountingcategory.d.ts +45 -0
- package/sdk/models/operations/createaccountingcategory.d.ts.map +1 -0
- package/sdk/models/operations/createaccountingcategory.js +77 -0
- package/sdk/models/operations/createaccountingcategory.js.map +1 -0
- package/sdk/models/operations/getaccountingcategory.d.ts +47 -0
- package/sdk/models/operations/getaccountingcategory.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingcategory.js +74 -0
- package/sdk/models/operations/getaccountingcategory.js.map +1 -0
- package/sdk/models/operations/index.d.ts +6 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listaccountingcategories.d.ts +65 -0
- package/sdk/models/operations/listaccountingcategories.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingcategories.js +90 -0
- package/sdk/models/operations/listaccountingcategories.js.map +1 -0
- package/sdk/models/operations/patchaccountingcategory.d.ts +50 -0
- package/sdk/models/operations/patchaccountingcategory.d.ts.map +1 -0
- package/sdk/models/operations/patchaccountingcategory.js +79 -0
- package/sdk/models/operations/patchaccountingcategory.js.map +1 -0
- package/sdk/models/operations/removeaccountingcategory.d.ts +66 -0
- package/sdk/models/operations/removeaccountingcategory.d.ts.map +1 -0
- package/sdk/models/operations/removeaccountingcategory.js +105 -0
- package/sdk/models/operations/removeaccountingcategory.js.map +1 -0
- package/sdk/models/operations/updateaccountingcategory.d.ts +50 -0
- package/sdk/models/operations/updateaccountingcategory.d.ts.map +1 -0
- package/sdk/models/operations/updateaccountingcategory.js +79 -0
- package/sdk/models/operations/updateaccountingcategory.js.map +1 -0
- package/sdk/models/shared/accountingcategory.d.ts +47 -0
- package/sdk/models/shared/accountingcategory.d.ts.map +1 -0
- package/sdk/models/shared/accountingcategory.js +90 -0
- package/sdk/models/shared/accountingcategory.js.map +1 -0
- package/sdk/models/shared/accountinglineitem.d.ts +2 -0
- package/sdk/models/shared/accountinglineitem.d.ts.map +1 -1
- package/sdk/models/shared/accountinglineitem.js +4 -0
- package/sdk/models/shared/accountinglineitem.js.map +1 -1
- package/sdk/models/shared/index.d.ts +1 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +1 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountingCreateAccountingCategory.ts +173 -0
- package/src/funcs/accountingGetAccountingCategory.ts +176 -0
- package/src/funcs/accountingListAccountingCategories.ts +178 -0
- package/src/funcs/accountingPatchAccountingCategory.ts +179 -0
- package/src/funcs/accountingRemoveAccountingCategory.ts +181 -0
- package/src/funcs/accountingUpdateAccountingCategory.ts +179 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/accountingCreateAccountingCategory.ts +37 -0
- package/src/mcp-server/tools/accountingGetAccountingCategory.ts +36 -0
- package/src/mcp-server/tools/accountingListAccountingCategories.ts +37 -0
- package/src/mcp-server/tools/accountingPatchAccountingCategory.ts +37 -0
- package/src/mcp-server/tools/accountingRemoveAccountingCategory.ts +35 -0
- package/src/mcp-server/tools/accountingUpdateAccountingCategory.ts +37 -0
- package/src/sdk/accounting.ts +90 -0
- package/src/sdk/category.ts +100 -0
- package/src/sdk/models/operations/createaccountingcategory.ts +101 -0
- package/src/sdk/models/operations/getaccountingcategory.ts +101 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listaccountingcategories.ts +135 -0
- package/src/sdk/models/operations/patchaccountingcategory.ts +108 -0
- package/src/sdk/models/operations/removeaccountingcategory.ts +155 -0
- package/src/sdk/models/operations/updateaccountingcategory.ts +108 -0
- package/src/sdk/models/shared/accountingcategory.ts +111 -0
- package/src/sdk/models/shared/accountinglineitem.ts +6 -0
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/sdk.ts +6 -0
package/docs/sdks/uc/README.md
CHANGED
|
@@ -31,6 +31,7 @@ Create a comment
|
|
|
31
31
|
|
|
32
32
|
### Example Usage
|
|
33
33
|
|
|
34
|
+
<!-- UsageSnippet language="typescript" operationID="createUcComment" method="post" path="/uc/{connection_id}/comment" -->
|
|
34
35
|
```typescript
|
|
35
36
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
36
37
|
|
|
@@ -113,6 +114,7 @@ Create a contact
|
|
|
113
114
|
|
|
114
115
|
### Example Usage
|
|
115
116
|
|
|
117
|
+
<!-- UsageSnippet language="typescript" operationID="createUcContact" method="post" path="/uc/{connection_id}/contact" -->
|
|
116
118
|
```typescript
|
|
117
119
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
118
120
|
|
|
@@ -191,6 +193,7 @@ Create a recording
|
|
|
191
193
|
|
|
192
194
|
### Example Usage
|
|
193
195
|
|
|
196
|
+
<!-- UsageSnippet language="typescript" operationID="createUcRecording" method="post" path="/uc/{connection_id}/recording" -->
|
|
194
197
|
```typescript
|
|
195
198
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
196
199
|
|
|
@@ -269,6 +272,7 @@ Retrieve a comment
|
|
|
269
272
|
|
|
270
273
|
### Example Usage
|
|
271
274
|
|
|
275
|
+
<!-- UsageSnippet language="typescript" operationID="getUcComment" method="get" path="/uc/{connection_id}/comment/{id}" -->
|
|
272
276
|
```typescript
|
|
273
277
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
274
278
|
|
|
@@ -347,6 +351,7 @@ Retrieve a contact
|
|
|
347
351
|
|
|
348
352
|
### Example Usage
|
|
349
353
|
|
|
354
|
+
<!-- UsageSnippet language="typescript" operationID="getUcContact" method="get" path="/uc/{connection_id}/contact/{id}" -->
|
|
350
355
|
```typescript
|
|
351
356
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
352
357
|
|
|
@@ -425,6 +430,7 @@ Retrieve a recording
|
|
|
425
430
|
|
|
426
431
|
### Example Usage
|
|
427
432
|
|
|
433
|
+
<!-- UsageSnippet language="typescript" operationID="getUcRecording" method="get" path="/uc/{connection_id}/recording/{id}" -->
|
|
428
434
|
```typescript
|
|
429
435
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
430
436
|
|
|
@@ -503,6 +509,7 @@ List all calls
|
|
|
503
509
|
|
|
504
510
|
### Example Usage
|
|
505
511
|
|
|
512
|
+
<!-- UsageSnippet language="typescript" operationID="listUcCalls" method="get" path="/uc/{connection_id}/call" -->
|
|
506
513
|
```typescript
|
|
507
514
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
508
515
|
|
|
@@ -579,6 +586,7 @@ List all comments
|
|
|
579
586
|
|
|
580
587
|
### Example Usage
|
|
581
588
|
|
|
589
|
+
<!-- UsageSnippet language="typescript" operationID="listUcComments" method="get" path="/uc/{connection_id}/comment" -->
|
|
582
590
|
```typescript
|
|
583
591
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
584
592
|
|
|
@@ -655,6 +663,7 @@ List all contacts
|
|
|
655
663
|
|
|
656
664
|
### Example Usage
|
|
657
665
|
|
|
666
|
+
<!-- UsageSnippet language="typescript" operationID="listUcContacts" method="get" path="/uc/{connection_id}/contact" -->
|
|
658
667
|
```typescript
|
|
659
668
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
660
669
|
|
|
@@ -731,6 +740,7 @@ List all recordings
|
|
|
731
740
|
|
|
732
741
|
### Example Usage
|
|
733
742
|
|
|
743
|
+
<!-- UsageSnippet language="typescript" operationID="listUcRecordings" method="get" path="/uc/{connection_id}/recording" -->
|
|
734
744
|
```typescript
|
|
735
745
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
736
746
|
|
|
@@ -807,6 +817,7 @@ Update a comment
|
|
|
807
817
|
|
|
808
818
|
### Example Usage
|
|
809
819
|
|
|
820
|
+
<!-- UsageSnippet language="typescript" operationID="patchUcComment" method="patch" path="/uc/{connection_id}/comment/{id}" -->
|
|
810
821
|
```typescript
|
|
811
822
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
812
823
|
|
|
@@ -891,6 +902,7 @@ Update a contact
|
|
|
891
902
|
|
|
892
903
|
### Example Usage
|
|
893
904
|
|
|
905
|
+
<!-- UsageSnippet language="typescript" operationID="patchUcContact" method="patch" path="/uc/{connection_id}/contact/{id}" -->
|
|
894
906
|
```typescript
|
|
895
907
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
896
908
|
|
|
@@ -971,6 +983,7 @@ Update a recording
|
|
|
971
983
|
|
|
972
984
|
### Example Usage
|
|
973
985
|
|
|
986
|
+
<!-- UsageSnippet language="typescript" operationID="patchUcRecording" method="patch" path="/uc/{connection_id}/recording/{id}" -->
|
|
974
987
|
```typescript
|
|
975
988
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
976
989
|
|
|
@@ -1051,6 +1064,7 @@ Remove a comment
|
|
|
1051
1064
|
|
|
1052
1065
|
### Example Usage
|
|
1053
1066
|
|
|
1067
|
+
<!-- UsageSnippet language="typescript" operationID="removeUcComment" method="delete" path="/uc/{connection_id}/comment/{id}" -->
|
|
1054
1068
|
```typescript
|
|
1055
1069
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1056
1070
|
|
|
@@ -1129,6 +1143,7 @@ Remove a contact
|
|
|
1129
1143
|
|
|
1130
1144
|
### Example Usage
|
|
1131
1145
|
|
|
1146
|
+
<!-- UsageSnippet language="typescript" operationID="removeUcContact" method="delete" path="/uc/{connection_id}/contact/{id}" -->
|
|
1132
1147
|
```typescript
|
|
1133
1148
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1134
1149
|
|
|
@@ -1207,6 +1222,7 @@ Remove a recording
|
|
|
1207
1222
|
|
|
1208
1223
|
### Example Usage
|
|
1209
1224
|
|
|
1225
|
+
<!-- UsageSnippet language="typescript" operationID="removeUcRecording" method="delete" path="/uc/{connection_id}/recording/{id}" -->
|
|
1210
1226
|
```typescript
|
|
1211
1227
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1212
1228
|
|
|
@@ -1285,6 +1301,7 @@ Update a comment
|
|
|
1285
1301
|
|
|
1286
1302
|
### Example Usage
|
|
1287
1303
|
|
|
1304
|
+
<!-- UsageSnippet language="typescript" operationID="updateUcComment" method="put" path="/uc/{connection_id}/comment/{id}" -->
|
|
1288
1305
|
```typescript
|
|
1289
1306
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1290
1307
|
|
|
@@ -1369,6 +1386,7 @@ Update a contact
|
|
|
1369
1386
|
|
|
1370
1387
|
### Example Usage
|
|
1371
1388
|
|
|
1389
|
+
<!-- UsageSnippet language="typescript" operationID="updateUcContact" method="put" path="/uc/{connection_id}/contact/{id}" -->
|
|
1372
1390
|
```typescript
|
|
1373
1391
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1374
1392
|
|
|
@@ -1449,6 +1467,7 @@ Update a recording
|
|
|
1449
1467
|
|
|
1450
1468
|
### Example Usage
|
|
1451
1469
|
|
|
1470
|
+
<!-- UsageSnippet language="typescript" operationID="updateUcRecording" method="put" path="/uc/{connection_id}/recording/{id}" -->
|
|
1452
1471
|
```typescript
|
|
1453
1472
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1454
1473
|
|
|
@@ -32,6 +32,7 @@ Used only to import existing customer credentials; use "Authorize new connection
|
|
|
32
32
|
|
|
33
33
|
### Example Usage
|
|
34
34
|
|
|
35
|
+
<!-- UsageSnippet language="typescript" operationID="createUnifiedConnection" method="post" path="/unified/connection" -->
|
|
35
36
|
```typescript
|
|
36
37
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
37
38
|
|
|
@@ -116,6 +117,7 @@ The data payload received by your server is described at https://docs.unified.to
|
|
|
116
117
|
|
|
117
118
|
### Example Usage
|
|
118
119
|
|
|
120
|
+
<!-- UsageSnippet language="typescript" operationID="createUnifiedWebhook" method="post" path="/unified/webhook" -->
|
|
119
121
|
```typescript
|
|
120
122
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
121
123
|
|
|
@@ -200,6 +202,7 @@ Retrieve specific API Call by its ID
|
|
|
200
202
|
|
|
201
203
|
### Example Usage
|
|
202
204
|
|
|
205
|
+
<!-- UsageSnippet language="typescript" operationID="getUnifiedApicall" method="get" path="/unified/apicall/{id}" -->
|
|
203
206
|
```typescript
|
|
204
207
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
205
208
|
|
|
@@ -276,6 +279,7 @@ Retrieve connection
|
|
|
276
279
|
|
|
277
280
|
### Example Usage
|
|
278
281
|
|
|
282
|
+
<!-- UsageSnippet language="typescript" operationID="getUnifiedConnection" method="get" path="/unified/connection/{id}" -->
|
|
279
283
|
```typescript
|
|
280
284
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
281
285
|
|
|
@@ -352,6 +356,7 @@ Returns an authorization URL for the specified integration. Once a successful a
|
|
|
352
356
|
|
|
353
357
|
### Example Usage
|
|
354
358
|
|
|
359
|
+
<!-- UsageSnippet language="typescript" operationID="getUnifiedIntegrationAuth" method="get" path="/unified/integration/auth/{workspace_id}/{integration_type}" -->
|
|
355
360
|
```typescript
|
|
356
361
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
357
362
|
|
|
@@ -430,6 +435,7 @@ Retrieve webhook by its ID
|
|
|
430
435
|
|
|
431
436
|
### Example Usage
|
|
432
437
|
|
|
438
|
+
<!-- UsageSnippet language="typescript" operationID="getUnifiedWebhook" method="get" path="/unified/webhook/{id}" -->
|
|
433
439
|
```typescript
|
|
434
440
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
435
441
|
|
|
@@ -506,6 +512,7 @@ Returns API Calls
|
|
|
506
512
|
|
|
507
513
|
### Example Usage
|
|
508
514
|
|
|
515
|
+
<!-- UsageSnippet language="typescript" operationID="listUnifiedApicalls" method="get" path="/unified/apicall" -->
|
|
509
516
|
```typescript
|
|
510
517
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
511
518
|
|
|
@@ -578,6 +585,7 @@ List all connections
|
|
|
578
585
|
|
|
579
586
|
### Example Usage
|
|
580
587
|
|
|
588
|
+
<!-- UsageSnippet language="typescript" operationID="listUnifiedConnections" method="get" path="/unified/connection" -->
|
|
581
589
|
```typescript
|
|
582
590
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
583
591
|
|
|
@@ -650,6 +658,7 @@ No authentication required as this is to be used by front-end interface
|
|
|
650
658
|
|
|
651
659
|
### Example Usage
|
|
652
660
|
|
|
661
|
+
<!-- UsageSnippet language="typescript" operationID="listUnifiedIntegrationWorkspaces" method="get" path="/unified/integration/workspace/{workspace_id}" -->
|
|
653
662
|
```typescript
|
|
654
663
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
655
664
|
|
|
@@ -726,6 +735,7 @@ Returns all integrations
|
|
|
726
735
|
|
|
727
736
|
### Example Usage
|
|
728
737
|
|
|
738
|
+
<!-- UsageSnippet language="typescript" operationID="listUnifiedIntegrations" method="get" path="/unified/integration" -->
|
|
729
739
|
```typescript
|
|
730
740
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
731
741
|
|
|
@@ -798,6 +808,7 @@ List support issues
|
|
|
798
808
|
|
|
799
809
|
### Example Usage
|
|
800
810
|
|
|
811
|
+
<!-- UsageSnippet language="typescript" operationID="listUnifiedIssues" method="get" path="/unified/issue" -->
|
|
801
812
|
```typescript
|
|
802
813
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
803
814
|
|
|
@@ -870,6 +881,7 @@ Returns all registered webhooks
|
|
|
870
881
|
|
|
871
882
|
### Example Usage
|
|
872
883
|
|
|
884
|
+
<!-- UsageSnippet language="typescript" operationID="listUnifiedWebhooks" method="get" path="/unified/webhook" -->
|
|
873
885
|
```typescript
|
|
874
886
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
875
887
|
|
|
@@ -942,6 +954,7 @@ Update connection
|
|
|
942
954
|
|
|
943
955
|
### Example Usage
|
|
944
956
|
|
|
957
|
+
<!-- UsageSnippet language="typescript" operationID="patchUnifiedConnection" method="patch" path="/unified/connection/{id}" -->
|
|
945
958
|
```typescript
|
|
946
959
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
947
960
|
|
|
@@ -1036,6 +1049,7 @@ Update webhook subscription
|
|
|
1036
1049
|
|
|
1037
1050
|
### Example Usage
|
|
1038
1051
|
|
|
1052
|
+
<!-- UsageSnippet language="typescript" operationID="patchUnifiedWebhook" method="patch" path="/unified/webhook/{id}" -->
|
|
1039
1053
|
```typescript
|
|
1040
1054
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1041
1055
|
|
|
@@ -1122,6 +1136,7 @@ Trigger webhook
|
|
|
1122
1136
|
|
|
1123
1137
|
### Example Usage
|
|
1124
1138
|
|
|
1139
|
+
<!-- UsageSnippet language="typescript" operationID="patchUnifiedWebhookTrigger" method="patch" path="/unified/webhook/{id}/trigger" -->
|
|
1125
1140
|
```typescript
|
|
1126
1141
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1127
1142
|
|
|
@@ -1198,6 +1213,7 @@ Remove connection
|
|
|
1198
1213
|
|
|
1199
1214
|
### Example Usage
|
|
1200
1215
|
|
|
1216
|
+
<!-- UsageSnippet language="typescript" operationID="removeUnifiedConnection" method="delete" path="/unified/connection/{id}" -->
|
|
1201
1217
|
```typescript
|
|
1202
1218
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1203
1219
|
|
|
@@ -1274,6 +1290,7 @@ Remove webhook subscription
|
|
|
1274
1290
|
|
|
1275
1291
|
### Example Usage
|
|
1276
1292
|
|
|
1293
|
+
<!-- UsageSnippet language="typescript" operationID="removeUnifiedWebhook" method="delete" path="/unified/webhook/{id}" -->
|
|
1277
1294
|
```typescript
|
|
1278
1295
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1279
1296
|
|
|
@@ -1350,6 +1367,7 @@ Update connection
|
|
|
1350
1367
|
|
|
1351
1368
|
### Example Usage
|
|
1352
1369
|
|
|
1370
|
+
<!-- UsageSnippet language="typescript" operationID="updateUnifiedConnection" method="put" path="/unified/connection/{id}" -->
|
|
1353
1371
|
```typescript
|
|
1354
1372
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1355
1373
|
|
|
@@ -1442,6 +1460,7 @@ Update webhook subscription
|
|
|
1442
1460
|
|
|
1443
1461
|
### Example Usage
|
|
1444
1462
|
|
|
1463
|
+
<!-- UsageSnippet language="typescript" operationID="updateUnifiedWebhook" method="put" path="/unified/webhook/{id}" -->
|
|
1445
1464
|
```typescript
|
|
1446
1465
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1447
1466
|
|
|
@@ -1528,6 +1547,7 @@ Trigger webhook
|
|
|
1528
1547
|
|
|
1529
1548
|
### Example Usage
|
|
1530
1549
|
|
|
1550
|
+
<!-- UsageSnippet language="typescript" operationID="updateUnifiedWebhookTrigger" method="put" path="/unified/webhook/{id}/trigger" -->
|
|
1531
1551
|
```typescript
|
|
1532
1552
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1533
1553
|
|
package/docs/sdks/user/README.md
CHANGED
|
@@ -18,6 +18,7 @@ Create user
|
|
|
18
18
|
|
|
19
19
|
### Example Usage
|
|
20
20
|
|
|
21
|
+
<!-- UsageSnippet language="typescript" operationID="createScimUsers" method="post" path="/scim/{connection_id}/users" -->
|
|
21
22
|
```typescript
|
|
22
23
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
23
24
|
|
|
@@ -96,6 +97,7 @@ Get user
|
|
|
96
97
|
|
|
97
98
|
### Example Usage
|
|
98
99
|
|
|
100
|
+
<!-- UsageSnippet language="typescript" operationID="getScimUsers" method="get" path="/scim/{connection_id}/users/{id}" -->
|
|
99
101
|
```typescript
|
|
100
102
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
101
103
|
|
|
@@ -174,6 +176,7 @@ List users
|
|
|
174
176
|
|
|
175
177
|
### Example Usage
|
|
176
178
|
|
|
179
|
+
<!-- UsageSnippet language="typescript" operationID="listScimUsers" method="get" path="/scim/{connection_id}/users" -->
|
|
177
180
|
```typescript
|
|
178
181
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
179
182
|
|
|
@@ -250,6 +253,7 @@ Update user
|
|
|
250
253
|
|
|
251
254
|
### Example Usage
|
|
252
255
|
|
|
256
|
+
<!-- UsageSnippet language="typescript" operationID="patchScimUsers" method="patch" path="/scim/{connection_id}/users/{id}" -->
|
|
253
257
|
```typescript
|
|
254
258
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
255
259
|
|
|
@@ -330,6 +334,7 @@ Delete user
|
|
|
330
334
|
|
|
331
335
|
### Example Usage
|
|
332
336
|
|
|
337
|
+
<!-- UsageSnippet language="typescript" operationID="removeScimUsers" method="delete" path="/scim/{connection_id}/users/{id}" -->
|
|
333
338
|
```typescript
|
|
334
339
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
335
340
|
|
|
@@ -408,6 +413,7 @@ Update user
|
|
|
408
413
|
|
|
409
414
|
### Example Usage
|
|
410
415
|
|
|
416
|
+
<!-- UsageSnippet language="typescript" operationID="updateScimUsers" method="put" path="/scim/{connection_id}/users/{id}" -->
|
|
411
417
|
```typescript
|
|
412
418
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
413
419
|
|
|
@@ -20,6 +20,7 @@ The data payload received by your server is described at https://docs.unified.to
|
|
|
20
20
|
|
|
21
21
|
### Example Usage
|
|
22
22
|
|
|
23
|
+
<!-- UsageSnippet language="typescript" operationID="createUnifiedWebhook" method="post" path="/unified/webhook" -->
|
|
23
24
|
```typescript
|
|
24
25
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
25
26
|
|
|
@@ -104,6 +105,7 @@ Retrieve webhook by its ID
|
|
|
104
105
|
|
|
105
106
|
### Example Usage
|
|
106
107
|
|
|
108
|
+
<!-- UsageSnippet language="typescript" operationID="getUnifiedWebhook" method="get" path="/unified/webhook/{id}" -->
|
|
107
109
|
```typescript
|
|
108
110
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
109
111
|
|
|
@@ -180,6 +182,7 @@ Returns all registered webhooks
|
|
|
180
182
|
|
|
181
183
|
### Example Usage
|
|
182
184
|
|
|
185
|
+
<!-- UsageSnippet language="typescript" operationID="listUnifiedWebhooks" method="get" path="/unified/webhook" -->
|
|
183
186
|
```typescript
|
|
184
187
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
185
188
|
|
|
@@ -252,6 +255,7 @@ Update webhook subscription
|
|
|
252
255
|
|
|
253
256
|
### Example Usage
|
|
254
257
|
|
|
258
|
+
<!-- UsageSnippet language="typescript" operationID="patchUnifiedWebhook" method="patch" path="/unified/webhook/{id}" -->
|
|
255
259
|
```typescript
|
|
256
260
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
257
261
|
|
|
@@ -338,6 +342,7 @@ Trigger webhook
|
|
|
338
342
|
|
|
339
343
|
### Example Usage
|
|
340
344
|
|
|
345
|
+
<!-- UsageSnippet language="typescript" operationID="patchUnifiedWebhookTrigger" method="patch" path="/unified/webhook/{id}/trigger" -->
|
|
341
346
|
```typescript
|
|
342
347
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
343
348
|
|
|
@@ -414,6 +419,7 @@ Remove webhook subscription
|
|
|
414
419
|
|
|
415
420
|
### Example Usage
|
|
416
421
|
|
|
422
|
+
<!-- UsageSnippet language="typescript" operationID="removeUnifiedWebhook" method="delete" path="/unified/webhook/{id}" -->
|
|
417
423
|
```typescript
|
|
418
424
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
419
425
|
|
|
@@ -490,6 +496,7 @@ Update webhook subscription
|
|
|
490
496
|
|
|
491
497
|
### Example Usage
|
|
492
498
|
|
|
499
|
+
<!-- UsageSnippet language="typescript" operationID="updateUnifiedWebhook" method="put" path="/unified/webhook/{id}" -->
|
|
493
500
|
```typescript
|
|
494
501
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
495
502
|
|
|
@@ -576,6 +583,7 @@ Trigger webhook
|
|
|
576
583
|
|
|
577
584
|
### Example Usage
|
|
578
585
|
|
|
586
|
+
<!-- UsageSnippet language="typescript" operationID="updateUnifiedWebhookTrigger" method="put" path="/unified/webhook/{id}/trigger" -->
|
|
579
587
|
```typescript
|
|
580
588
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
581
589
|
|
package/examples/README.md
CHANGED
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"..": {
|
|
20
20
|
"name": "@unified-api/typescript-sdk",
|
|
21
|
-
"version": "2.73.
|
|
21
|
+
"version": "2.73.11",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"zod": "^3.20.0"
|
|
24
|
+
},
|
|
22
25
|
"bin": {
|
|
23
26
|
"mcp": "bin/mcp-server.js"
|
|
24
27
|
},
|
|
@@ -33,12 +36,10 @@
|
|
|
33
36
|
"express": "^4.21.2",
|
|
34
37
|
"globals": "^15.14.0",
|
|
35
38
|
"typescript": "^5.4.5",
|
|
36
|
-
"typescript-eslint": "^8.22.0"
|
|
37
|
-
"zod": "^3.25.17"
|
|
39
|
+
"typescript-eslint": "^8.22.0"
|
|
38
40
|
},
|
|
39
41
|
"peerDependencies": {
|
|
40
|
-
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0"
|
|
41
|
-
"zod": "^3"
|
|
42
|
+
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0"
|
|
42
43
|
},
|
|
43
44
|
"peerDependenciesMeta": {
|
|
44
45
|
"@modelcontextprotocol/sdk": {
|
|
@@ -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
|
+
* Create a category
|
|
13
|
+
*/
|
|
14
|
+
export declare function accountingCreateAccountingCategory(client: UnifiedToCore, request: operations.CreateAccountingCategoryRequest, options?: RequestOptions): APIPromise<Result<shared.AccountingCategory, UnifiedToError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
15
|
+
//# sourceMappingURL=accountingCreateAccountingCategory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingCreateAccountingCategory.d.ts","sourceRoot":"","sources":["../src/funcs/accountingCreateAccountingCategory.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,kCAAkC,CAChD,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,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,114 @@
|
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.accountingCreateAccountingCategory = accountingCreateAccountingCategory;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const operations = __importStar(require("../sdk/models/operations/index.js"));
|
|
37
|
+
const shared = __importStar(require("../sdk/models/shared/index.js"));
|
|
38
|
+
const async_js_1 = require("../sdk/types/async.js");
|
|
39
|
+
/**
|
|
40
|
+
* Create a category
|
|
41
|
+
*/
|
|
42
|
+
function accountingCreateAccountingCategory(client, request, options) {
|
|
43
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
44
|
+
}
|
|
45
|
+
async function $do(client, request, options) {
|
|
46
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreateAccountingCategoryRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47
|
+
if (!parsed.ok) {
|
|
48
|
+
return [parsed, { status: "invalid" }];
|
|
49
|
+
}
|
|
50
|
+
const payload = parsed.value;
|
|
51
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.AccountingCategory, {
|
|
52
|
+
explode: true,
|
|
53
|
+
});
|
|
54
|
+
const pathParams = {
|
|
55
|
+
connection_id: (0, encodings_js_1.encodeSimple)("connection_id", payload.connection_id, {
|
|
56
|
+
explode: false,
|
|
57
|
+
charEncoding: "percent",
|
|
58
|
+
}),
|
|
59
|
+
};
|
|
60
|
+
const path = (0, url_js_1.pathToFunc)("/accounting/{connection_id}/category")(pathParams);
|
|
61
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
62
|
+
"fields": payload.fields,
|
|
63
|
+
"raw": payload.raw,
|
|
64
|
+
});
|
|
65
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
66
|
+
"Content-Type": "application/json",
|
|
67
|
+
Accept: "application/json",
|
|
68
|
+
}));
|
|
69
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
70
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
71
|
+
const context = {
|
|
72
|
+
options: client._options,
|
|
73
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
74
|
+
operationID: "createAccountingCategory",
|
|
75
|
+
oAuth2Scopes: [],
|
|
76
|
+
resolvedSecurity: requestSecurity,
|
|
77
|
+
securitySource: client._options.security,
|
|
78
|
+
retryConfig: options?.retries
|
|
79
|
+
|| client._options.retryConfig
|
|
80
|
+
|| { strategy: "none" },
|
|
81
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
82
|
+
};
|
|
83
|
+
const requestRes = client._createRequest(context, {
|
|
84
|
+
security: requestSecurity,
|
|
85
|
+
method: "POST",
|
|
86
|
+
baseURL: options?.serverURL,
|
|
87
|
+
path: path,
|
|
88
|
+
headers: headers,
|
|
89
|
+
query: query,
|
|
90
|
+
body: body,
|
|
91
|
+
userAgent: client._options.userAgent,
|
|
92
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
93
|
+
}, options);
|
|
94
|
+
if (!requestRes.ok) {
|
|
95
|
+
return [requestRes, { status: "invalid" }];
|
|
96
|
+
}
|
|
97
|
+
const req = requestRes.value;
|
|
98
|
+
const doResult = await client._do(req, {
|
|
99
|
+
context,
|
|
100
|
+
errorCodes: ["4XX", "5XX"],
|
|
101
|
+
retryConfig: context.retryConfig,
|
|
102
|
+
retryCodes: context.retryCodes,
|
|
103
|
+
});
|
|
104
|
+
if (!doResult.ok) {
|
|
105
|
+
return [doResult, { status: "request-error", request: req }];
|
|
106
|
+
}
|
|
107
|
+
const response = doResult.value;
|
|
108
|
+
const [result] = await M.match(M.json(200, shared.AccountingCategory$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
109
|
+
if (!result.ok) {
|
|
110
|
+
return [result, { status: "complete", request: req, response }];
|
|
111
|
+
}
|
|
112
|
+
return [result, { status: "complete", request: req, response }];
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=accountingCreateAccountingCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingCreateAccountingCategory.js","sourceRoot":"","sources":["../src/funcs/accountingCreateAccountingCategory.ts"],"names":[],"mappings":"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"}
|
|
@@ -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 category
|
|
13
|
+
*/
|
|
14
|
+
export declare function accountingGetAccountingCategory(client: UnifiedToCore, request: operations.GetAccountingCategoryRequest, options?: RequestOptions): APIPromise<Result<shared.AccountingCategory, UnifiedToError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
15
|
+
//# sourceMappingURL=accountingGetAccountingCategory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingGetAccountingCategory.d.ts","sourceRoot":"","sources":["../src/funcs/accountingGetAccountingCategory.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"}
|