Skip to content

Commit 49eeac0

Browse files
SDK regeneration
1 parent 62cb9b2 commit 49eeac0

173 files changed

Lines changed: 837 additions & 1405 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fern/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"testFramework": "jest",
2121
"enableForwardCompatibleEnums": true
2222
},
23-
"sdkVersion": "3.0.2"
23+
"sdkVersion": "4.0.0-alpha.1"
2424
}

reference.md

Lines changed: 24 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -10472,7 +10472,7 @@ await client.accounting.expenses.retrieve("id", {
1047210472
</dl>
1047310473
</details>
1047410474

10475-
<details><summary><code>client.accounting.expenses.<a href="/src/api/resources/accounting/resources/expenses/client/Client.ts">asyncBulkCreate</a>({ ...params }) -> Merge.AsyncBulkCreateResponse</code></summary>
10475+
<details><summary><code>client.accounting.expenses.<a href="/src/api/resources/accounting/resources/expenses/client/Client.ts">bulkCreate</a>({ ...params }) -> Merge.AsyncBulkCreateResponse</code></summary>
1047610476
<dl>
1047710477
<dd>
1047810478

@@ -10484,7 +10484,7 @@ await client.accounting.expenses.retrieve("id", {
1048410484
<dl>
1048510485
<dd>
1048610486

10487-
Creates an `Expense` object with the given values.
10487+
Creates multiple `Expense` objects with the given values.
1048810488
</dd>
1048910489
</dl>
1049010490
</dd>
@@ -10499,9 +10499,7 @@ Creates an `Expense` object with the given values.
1049910499
<dd>
1050010500

1050110501
```typescript
10502-
await client.accounting.expenses.asyncBulkCreate({
10503-
isDebugMode: true,
10504-
runAsync: true,
10502+
await client.accounting.expenses.bulkCreate({
1050510503
batchItems: [{
1050610504
itemId: "item_id",
1050710505
payload: {}
@@ -10542,7 +10540,7 @@ await client.accounting.expenses.asyncBulkCreate({
1054210540
</dl>
1054310541
</details>
1054410542

10545-
<details><summary><code>client.accounting.expenses.<a href="/src/api/resources/accounting/resources/expenses/client/Client.ts">batchObjectsList</a>(batch_id, { ...params }) -> Merge.BatchObjectsResponse</code></summary>
10543+
<details><summary><code>client.accounting.expenses.<a href="/src/api/resources/accounting/resources/expenses/client/Client.ts">bulkRetrieve</a>(batch_id) -> Merge.BatchObjectsResponse</code></summary>
1054610544
<dl>
1054710545
<dd>
1054810546

@@ -10554,7 +10552,7 @@ await client.accounting.expenses.asyncBulkCreate({
1055410552
<dl>
1055510553
<dd>
1055610554

10557-
Returns a list of `Expense` objects.
10555+
Returns the status and results of an `Expense` bulk create batch.
1055810556
</dd>
1055910557
</dl>
1056010558
</dd>
@@ -10569,22 +10567,7 @@ Returns a list of `Expense` objects.
1056910567
<dd>
1057010568

1057110569
```typescript
10572-
await client.accounting.expenses.batchObjectsList("batch_id", {
10573-
companyId: "company_id",
10574-
createdAfter: new Date("2024-01-15T09:30:00.000Z"),
10575-
createdBefore: new Date("2024-01-15T09:30:00.000Z"),
10576-
cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
10577-
includeDeletedData: true,
10578-
includeRemoteData: true,
10579-
includeRemoteFields: true,
10580-
includeShellData: true,
10581-
modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
10582-
modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
10583-
pageSize: 1,
10584-
remoteId: "remote_id",
10585-
transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"),
10586-
transactionDateBefore: new Date("2024-01-15T09:30:00.000Z")
10587-
});
10570+
await client.accounting.expenses.bulkRetrieve("batch_id");
1058810571

1058910572
```
1059010573
</dd>
@@ -10608,14 +10591,6 @@ await client.accounting.expenses.batchObjectsList("batch_id", {
1060810591
<dl>
1060910592
<dd>
1061010593

10611-
**request:** `Merge.accounting.ExpensesBatchObjectsListRequest`
10612-
10613-
</dd>
10614-
</dl>
10615-
10616-
<dl>
10617-
<dd>
10618-
1061910594
**requestOptions:** `ExpensesClient.RequestOptions`
1062010595

1062110596
</dd>
@@ -12017,7 +11992,7 @@ await client.accounting.invoices.partialUpdate("id", {
1201711992
</dl>
1201811993
</details>
1201911994

12020-
<details><summary><code>client.accounting.invoices.<a href="/src/api/resources/accounting/resources/invoices/client/Client.ts">asyncBulkCreate</a>({ ...params }) -> Merge.AsyncBulkCreateResponse</code></summary>
11995+
<details><summary><code>client.accounting.invoices.<a href="/src/api/resources/accounting/resources/invoices/client/Client.ts">bulkCreate</a>({ ...params }) -> Merge.AsyncBulkCreateResponse</code></summary>
1202111996
<dl>
1202211997
<dd>
1202311998

@@ -12029,9 +12004,7 @@ await client.accounting.invoices.partialUpdate("id", {
1202912004
<dl>
1203012005
<dd>
1203112006

12032-
Creates an `Invoice` object with the given values.
12033-
Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s).
12034-
12007+
Creates multiple `Invoice` objects with the given values.
1203512008
</dd>
1203612009
</dl>
1203712010
</dd>
@@ -12046,9 +12019,7 @@ Creates an `Invoice` object with the given values.
1204612019
<dd>
1204712020

1204812021
```typescript
12049-
await client.accounting.invoices.asyncBulkCreate({
12050-
isDebugMode: true,
12051-
runAsync: true,
12022+
await client.accounting.invoices.bulkCreate({
1205212023
batchItems: [{
1205312024
itemId: "item_id",
1205412025
payload: {}
@@ -12089,7 +12060,7 @@ await client.accounting.invoices.asyncBulkCreate({
1208912060
</dl>
1209012061
</details>
1209112062

12092-
<details><summary><code>client.accounting.invoices.<a href="/src/api/resources/accounting/resources/invoices/client/Client.ts">batchObjectsList</a>(batch_id, { ...params }) -> Merge.BatchObjectsResponse</code></summary>
12063+
<details><summary><code>client.accounting.invoices.<a href="/src/api/resources/accounting/resources/invoices/client/Client.ts">bulkRetrieve</a>(batch_id) -> Merge.BatchObjectsResponse</code></summary>
1209312064
<dl>
1209412065
<dd>
1209512066

@@ -12101,7 +12072,7 @@ await client.accounting.invoices.asyncBulkCreate({
1210112072
<dl>
1210212073
<dd>
1210312074

12104-
Returns a list of `Invoice` objects.
12075+
Returns the status and results of an `Invoice` bulk create batch.
1210512076
</dd>
1210612077
</dl>
1210712078
</dd>
@@ -12116,28 +12087,7 @@ Returns a list of `Invoice` objects.
1211612087
<dd>
1211712088

1211812089
```typescript
12119-
await client.accounting.invoices.batchObjectsList("batch_id", {
12120-
companyId: "company_id",
12121-
contactId: "contact_id",
12122-
createdAfter: new Date("2024-01-15T09:30:00.000Z"),
12123-
createdBefore: new Date("2024-01-15T09:30:00.000Z"),
12124-
cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
12125-
includeDeletedData: true,
12126-
includeRemoteData: true,
12127-
includeRemoteFields: true,
12128-
includeShellData: true,
12129-
issueDateAfter: new Date("2024-01-15T09:30:00.000Z"),
12130-
issueDateBefore: new Date("2024-01-15T09:30:00.000Z"),
12131-
modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
12132-
modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
12133-
number: "number",
12134-
pageSize: 1,
12135-
remoteFields: "type",
12136-
remoteId: "remote_id",
12137-
showEnumOrigins: "type",
12138-
status: "DRAFT",
12139-
type: "ACCOUNTS_PAYABLE"
12140-
});
12090+
await client.accounting.invoices.bulkRetrieve("batch_id");
1214112091

1214212092
```
1214312093
</dd>
@@ -12161,14 +12111,6 @@ await client.accounting.invoices.batchObjectsList("batch_id", {
1216112111
<dl>
1216212112
<dd>
1216312113

12164-
**request:** `Merge.accounting.InvoicesBatchObjectsListRequest`
12165-
12166-
</dd>
12167-
</dl>
12168-
12169-
<dl>
12170-
<dd>
12171-
1217212114
**requestOptions:** `InvoicesClient.RequestOptions`
1217312115

1217412116
</dd>
@@ -12888,7 +12830,7 @@ await client.accounting.itemFulfillments.retrieve("id", {
1288812830
</dl>
1288912831
</details>
1289012832

12891-
<details><summary><code>client.accounting.itemFulfillments.<a href="/src/api/resources/accounting/resources/itemFulfillments/client/Client.ts">asyncBulkCreate</a>({ ...params }) -> Merge.AsyncBulkCreateResponse</code></summary>
12833+
<details><summary><code>client.accounting.itemFulfillments.<a href="/src/api/resources/accounting/resources/itemFulfillments/client/Client.ts">bulkCreate</a>({ ...params }) -> Merge.AsyncBulkCreateResponse</code></summary>
1289212834
<dl>
1289312835
<dd>
1289412836

@@ -12900,7 +12842,7 @@ await client.accounting.itemFulfillments.retrieve("id", {
1290012842
<dl>
1290112843
<dd>
1290212844

12903-
Creates an `ItemFulfillment` object with the given values.
12845+
Creates multiple `ItemFulfillment` objects with the given values.
1290412846
</dd>
1290512847
</dl>
1290612848
</dd>
@@ -12915,9 +12857,7 @@ Creates an `ItemFulfillment` object with the given values.
1291512857
<dd>
1291612858

1291712859
```typescript
12918-
await client.accounting.itemFulfillments.asyncBulkCreate({
12919-
isDebugMode: true,
12920-
runAsync: true,
12860+
await client.accounting.itemFulfillments.bulkCreate({
1292112861
batchItems: [{
1292212862
itemId: "item_id",
1292312863
payload: {}
@@ -12958,7 +12898,7 @@ await client.accounting.itemFulfillments.asyncBulkCreate({
1295812898
</dl>
1295912899
</details>
1296012900

12961-
<details><summary><code>client.accounting.itemFulfillments.<a href="/src/api/resources/accounting/resources/itemFulfillments/client/Client.ts">batchObjectsList</a>(batch_id, { ...params }) -> Merge.BatchObjectsResponse</code></summary>
12901+
<details><summary><code>client.accounting.itemFulfillments.<a href="/src/api/resources/accounting/resources/itemFulfillments/client/Client.ts">bulkRetrieve</a>(batch_id) -> Merge.BatchObjectsResponse</code></summary>
1296212902
<dl>
1296312903
<dd>
1296412904

@@ -12970,7 +12910,7 @@ await client.accounting.itemFulfillments.asyncBulkCreate({
1297012910
<dl>
1297112911
<dd>
1297212912

12973-
Returns a list of `ItemFulfillment` objects.
12913+
Returns the status and results of an `ItemFulfillment` bulk create batch.
1297412914
</dd>
1297512915
</dl>
1297612916
</dd>
@@ -12985,16 +12925,7 @@ Returns a list of `ItemFulfillment` objects.
1298512925
<dd>
1298612926

1298712927
```typescript
12988-
await client.accounting.itemFulfillments.batchObjectsList("batch_id", {
12989-
cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
12990-
includeDeletedData: true,
12991-
includeRemoteData: true,
12992-
includeRemoteFields: true,
12993-
includeShellData: true,
12994-
pageSize: 1,
12995-
remoteFields: "status",
12996-
showEnumOrigins: "status"
12997-
});
12928+
await client.accounting.itemFulfillments.bulkRetrieve("batch_id");
1299812929

1299912930
```
1300012931
</dd>
@@ -13018,14 +12949,6 @@ await client.accounting.itemFulfillments.batchObjectsList("batch_id", {
1301812949
<dl>
1301912950
<dd>
1302012951

13021-
**request:** `Merge.accounting.ItemFulfillmentsBatchObjectsListRequest`
13022-
13023-
</dd>
13024-
</dl>
13025-
13026-
<dl>
13027-
<dd>
13028-
1302912952
**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
1303012953

1303112954
</dd>
@@ -16453,7 +16376,7 @@ await client.accounting.salesOrders.retrieve("id", {
1645316376
</dl>
1645416377
</details>
1645516378

16456-
<details><summary><code>client.accounting.salesOrders.<a href="/src/api/resources/accounting/resources/salesOrders/client/Client.ts">asyncBulkCreate</a>({ ...params }) -> Merge.AsyncBulkCreateResponse</code></summary>
16379+
<details><summary><code>client.accounting.salesOrders.<a href="/src/api/resources/accounting/resources/salesOrders/client/Client.ts">bulkCreate</a>({ ...params }) -> Merge.AsyncBulkCreateResponse</code></summary>
1645716380
<dl>
1645816381
<dd>
1645916382

@@ -16465,7 +16388,7 @@ await client.accounting.salesOrders.retrieve("id", {
1646516388
<dl>
1646616389
<dd>
1646716390

16468-
Creates a `SalesOrder` object with the given values.
16391+
Creates multiple `SalesOrder` objects with the given values.
1646916392
</dd>
1647016393
</dl>
1647116394
</dd>
@@ -16480,9 +16403,7 @@ Creates a `SalesOrder` object with the given values.
1648016403
<dd>
1648116404

1648216405
```typescript
16483-
await client.accounting.salesOrders.asyncBulkCreate({
16484-
isDebugMode: true,
16485-
runAsync: true,
16406+
await client.accounting.salesOrders.bulkCreate({
1648616407
batchItems: [{
1648716408
itemId: "item_id",
1648816409
payload: {}
@@ -16523,7 +16444,7 @@ await client.accounting.salesOrders.asyncBulkCreate({
1652316444
</dl>
1652416445
</details>
1652516446

16526-
<details><summary><code>client.accounting.salesOrders.<a href="/src/api/resources/accounting/resources/salesOrders/client/Client.ts">batchObjectsList</a>(batch_id, { ...params }) -> Merge.BatchObjectsResponse</code></summary>
16447+
<details><summary><code>client.accounting.salesOrders.<a href="/src/api/resources/accounting/resources/salesOrders/client/Client.ts">bulkRetrieve</a>(batch_id) -> Merge.BatchObjectsResponse</code></summary>
1652716448
<dl>
1652816449
<dd>
1652916450

@@ -16535,7 +16456,7 @@ await client.accounting.salesOrders.asyncBulkCreate({
1653516456
<dl>
1653616457
<dd>
1653716458

16538-
Returns a list of `SalesOrder` objects.
16459+
Returns the status and results of a `SalesOrder` bulk create batch.
1653916460
</dd>
1654016461
</dl>
1654116462
</dd>
@@ -16550,24 +16471,7 @@ Returns a list of `SalesOrder` objects.
1655016471
<dd>
1655116472

1655216473
```typescript
16553-
await client.accounting.salesOrders.batchObjectsList("batch_id", {
16554-
companyId: "company_id",
16555-
createdAfter: new Date("2024-01-15T09:30:00.000Z"),
16556-
createdBefore: new Date("2024-01-15T09:30:00.000Z"),
16557-
cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
16558-
includeDeletedData: true,
16559-
includeRemoteData: true,
16560-
includeRemoteFields: true,
16561-
includeShellData: true,
16562-
issueDateAfter: new Date("2024-01-15T09:30:00.000Z"),
16563-
issueDateBefore: new Date("2024-01-15T09:30:00.000Z"),
16564-
modifiedAfter: new Date("2024-01-15T09:30:00.000Z"),
16565-
modifiedBefore: new Date("2024-01-15T09:30:00.000Z"),
16566-
pageSize: 1,
16567-
remoteFields: "status",
16568-
remoteId: "remote_id",
16569-
showEnumOrigins: "status"
16570-
});
16474+
await client.accounting.salesOrders.bulkRetrieve("batch_id");
1657116475

1657216476
```
1657316477
</dd>
@@ -16591,14 +16495,6 @@ await client.accounting.salesOrders.batchObjectsList("batch_id", {
1659116495
<dl>
1659216496
<dd>
1659316497

16594-
**request:** `Merge.accounting.SalesOrdersBatchObjectsListRequest`
16595-
16596-
</dd>
16597-
</dl>
16598-
16599-
<dl>
16600-
<dd>
16601-
1660216498
**requestOptions:** `SalesOrdersClient.RequestOptions`
1660316499

1660416500
</dd>

src/BaseClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
5656
{
5757
"X-Fern-Language": "JavaScript",
5858
"X-Fern-SDK-Name": "@mergeapi/merge-node-client",
59-
"X-Fern-SDK-Version": "3.0.2",
60-
"User-Agent": "@mergeapi/merge-node-client/3.0.2",
59+
"X-Fern-SDK-Version": "4.0.0-alpha.1",
60+
"User-Agent": "@mergeapi/merge-node-client/4.0.0-alpha.1",
6161
"X-Fern-Runtime": core.RUNTIME.type,
6262
"X-Fern-Runtime-Version": core.RUNTIME.version,
6363
"X-Account-Token": options?.accountToken,

0 commit comments

Comments
 (0)