From 9bdf0908eb04aca2786f12efc036a0a34436a2fe Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 02:18:13 +0000 Subject: [PATCH] Release 0.5.0 --- package.json | 2 +- reference.md | 55 +++--- src/api/resources/bankLookup/client/Client.ts | 2 +- src/api/resources/calculate/client/Client.ts | 4 +- .../client/Client.ts | 10 +- src/api/resources/entity/client/Client.ts | 22 +-- .../resources/approvalPolicy/client/Client.ts | 10 +- .../resources/counterparty/client/Client.ts | 12 +- .../resources/customization/client/Client.ts | 4 +- .../resources/document/client/Client.ts | 6 +- .../resources/emailLog/client/Client.ts | 4 +- .../externalAccountingSystem/client/Client.ts | 8 +- .../entity/resources/invoice/client/Client.ts | 24 ++- .../requests/EntityGetInvoicesRequest.ts | 8 +- .../client/requests/InvoiceMetricsRequest.ts | 20 +- .../resources/metadata/client/Client.ts | 8 +- .../notificationPolicy/client/Client.ts | 9 +- .../resources/paymentMethod/client/Client.ts | 28 +-- .../resources/representative/client/Client.ts | 8 +- .../entity/resources/user/client/Client.ts | 14 +- .../notificationPolicy/client/Client.ts | 6 +- .../resources/notifications/client/Client.ts | 6 +- .../resources/entityGroup/client/Client.ts | 10 +- .../resources/invoice/client/Client.ts | 24 ++- .../requests/EntityGetInvoicesRequest.ts | 4 + .../requests/GroupInvoiceMetricsRequest.ts | 20 +- .../resources/user/client/Client.ts | 10 +- .../types/NotificationPolicyRequest.ts | 7 +- .../types/NotificationPolicyResponse.ts | 11 +- src/api/resources/invoice/client/Client.ts | 21 +- .../client/requests/GetAllInvoicesRequest.ts | 8 +- .../resources/approval/client/Client.ts | 12 +- .../resources/comment/client/Client.ts | 20 +- .../resources/document/client/Client.ts | 24 +-- .../resources/lineItem/client/Client.ts | 2 +- .../resources/paymentLinks/client/Client.ts | 16 +- .../invoiceTypes/types/InvoiceDateFilter.ts | 20 ++ src/api/resources/invoiceTypes/types/index.ts | 1 + src/api/resources/ocr/client/Client.ts | 6 +- .../resources/organization/client/Client.ts | 6 +- .../client/Client.ts | 8 +- .../resources/paymentMethods/client/Client.ts | 2 +- .../types/NotificationPolicyRequest.ts | 6 +- .../types/NotificationPolicyResponse.ts | 2 + .../invoiceTypes/types/InvoiceDateFilter.ts | 21 ++ .../resources/invoiceTypes/types/index.ts | 1 + yarn.lock | 185 ++++++++---------- 47 files changed, 412 insertions(+), 305 deletions(-) create mode 100644 src/api/resources/invoiceTypes/types/InvoiceDateFilter.ts create mode 100644 src/serialization/resources/invoiceTypes/types/InvoiceDateFilter.ts diff --git a/package.json b/package.json index d3b9ee6d..5799d5d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mercoa/javascript", - "version": "0.4.49", + "version": "0.5.0", "private": false, "repository": "https://github.com/mercoa-finance/javascript", "main": "./index.js", diff --git a/reference.md b/reference.md index 512ed90b..e8bf1b46 100644 --- a/reference.md +++ b/reference.md @@ -2335,7 +2335,7 @@ await client.invoice.get("inv_8545a84e-a45f-41bf-bdf1-33b42a55812c");
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -2419,7 +2419,7 @@ await client.invoice.update("inv_8545a84e-a45f-41bf-bdf1-33b42a55812c", {
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -2490,7 +2490,7 @@ await client.invoice.delete("inv_8545a84e-a45f-41bf-bdf1-33b42a55812c");
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -5728,6 +5728,7 @@ await client.entity.notificationPolicy.update( { disabled: false, additionalRoles: ["admin", "approver"], + notifyCounterparty: true, } ); ``` @@ -5939,7 +5940,7 @@ await client.entity.paymentMethod.get(
-**paymentMethodId:** `Mercoa.PaymentMethodId` +**paymentMethodId:** `Mercoa.PaymentMethodId` — Payment Method ID or Payment Method ForeignID
@@ -6018,7 +6019,7 @@ await client.entity.paymentMethod.update(
-**paymentMethodId:** `Mercoa.PaymentMethodId` +**paymentMethodId:** `Mercoa.PaymentMethodId` — Payment Method ID or Payment Method ForeignID
@@ -6100,7 +6101,7 @@ await client.entity.paymentMethod.delete(
-**paymentMethodId:** `Mercoa.PaymentMethodId` +**paymentMethodId:** `Mercoa.PaymentMethodId` — Payment Method ID or Payment Method ForeignID
@@ -6174,7 +6175,7 @@ await client.entity.paymentMethod.initiateMicroDeposits(
-**paymentMethodId:** `Mercoa.PaymentMethodId` +**paymentMethodId:** `Mercoa.PaymentMethodId` — Payment Method ID or Payment Method ForeignID
@@ -6251,7 +6252,7 @@ await client.entity.paymentMethod.completeMicroDeposits(
-**paymentMethodId:** `Mercoa.PaymentMethodId` +**paymentMethodId:** `Mercoa.PaymentMethodId` — Payment Method ID or Payment Method ForeignID
@@ -6330,7 +6331,7 @@ await client.entity.paymentMethod.getBalance("string", "string");
-**paymentMethodId:** `Mercoa.PaymentMethodId` +**paymentMethodId:** `Mercoa.PaymentMethodId` — Payment Method ID or Payment Method ForeignID
@@ -7154,7 +7155,7 @@ await client.invoice.approval.addApprover("inv_3d61faa9-1754-4b7b-9fcb-88ff97f36
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7213,7 +7214,7 @@ await client.invoice.approval.approve("inv_3d61faa9-1754-4b7b-9fcb-88ff97f368ff"
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7272,7 +7273,7 @@ await client.invoice.approval.reject("inv_3d61faa9-1754-4b7b-9fcb-88ff97f368ff",
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7345,7 +7346,7 @@ await client.invoice.comment.getAll("inv_3d61faa9-1754-4b7b-9fcb-88ff97f368ff");
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7411,7 +7412,7 @@ await client.invoice.comment.create("inv_3d61faa9-1754-4b7b-9fcb-88ff97f368ff",
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7467,7 +7468,7 @@ await client.invoice.comment.get("inv_3d61faa9-1754-4b7b-9fcb-88ff97f368ff", "ic
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7545,7 +7546,7 @@ await client.invoice.comment.update(
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7627,7 +7628,7 @@ await client.invoice.comment.delete(
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7700,7 +7701,7 @@ await client.invoice.document.getAll("inv_26e7b5d3-a739-4b23-9ad9-6aaa085f47a9")
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7766,7 +7767,7 @@ await client.invoice.document.upload("inv_26e7b5d3-a739-4b23-9ad9-6aaa085f47a9",
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7840,7 +7841,7 @@ await client.invoice.document.delete(
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7911,7 +7912,7 @@ await client.invoice.document.generateInvoicePdf("inv_26e7b5d3-a739-4b23-9ad9-6a
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -7974,7 +7975,7 @@ await client.invoice.document.generateCheckPdf("inv_26e7b5d3-a739-4b23-9ad9-6aaa
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -8037,7 +8038,7 @@ await client.invoice.document.getSourceEmail("inv_26e7b5d3-a739-4b23-9ad9-6aaa08
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -8102,7 +8103,7 @@ await client.invoice.paymentLinks.getPayerLink("inv_a0f6ea94-0761-4a5e-a416-3c45
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -8167,7 +8168,7 @@ await client.invoice.paymentLinks.sendPayerEmail("inv_a0f6ea94-0761-4a5e-a416-3c
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -8238,7 +8239,7 @@ await client.invoice.paymentLinks.getVendorLink("inv_a0f6ea94-0761-4a5e-a416-3c4
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
@@ -8301,7 +8302,7 @@ await client.invoice.paymentLinks.sendVendorEmail("inv_a0f6ea94-0761-4a5e-a416-3
-**invoiceId:** `Mercoa.InvoiceId` +**invoiceId:** `Mercoa.InvoiceId` — Invoice ID or Invoice ForeignID
diff --git a/src/api/resources/bankLookup/client/Client.ts b/src/api/resources/bankLookup/client/Client.ts index 3827cae6..d963ffd0 100644 --- a/src/api/resources/bankLookup/client/Client.ts +++ b/src/api/resources/bankLookup/client/Client.ts @@ -64,7 +64,7 @@ export class BankLookup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/calculate/client/Client.ts b/src/api/resources/calculate/client/Client.ts index f60040c8..8c683521 100644 --- a/src/api/resources/calculate/client/Client.ts +++ b/src/api/resources/calculate/client/Client.ts @@ -63,7 +63,7 @@ export class Calculate { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -206,7 +206,7 @@ export class Calculate { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/customPaymentMethodSchema/client/Client.ts b/src/api/resources/customPaymentMethodSchema/client/Client.ts index 743ceaa4..27228445 100644 --- a/src/api/resources/customPaymentMethodSchema/client/Client.ts +++ b/src/api/resources/customPaymentMethodSchema/client/Client.ts @@ -57,7 +57,7 @@ export class CustomPaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -258,7 +258,7 @@ export class CustomPaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -466,7 +466,7 @@ export class CustomPaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -609,7 +609,7 @@ export class CustomPaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -749,7 +749,7 @@ export class CustomPaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/client/Client.ts b/src/api/resources/entity/client/Client.ts index 8df9a2e9..50ddb53a 100644 --- a/src/api/resources/entity/client/Client.ts +++ b/src/api/resources/entity/client/Client.ts @@ -121,7 +121,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -306,7 +306,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -443,7 +443,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -612,7 +612,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -748,7 +748,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -881,7 +881,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1013,7 +1013,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1152,7 +1152,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1301,7 +1301,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1456,7 +1456,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1612,7 +1612,7 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/approvalPolicy/client/Client.ts b/src/api/resources/entity/resources/approvalPolicy/client/Client.ts index aba7e52f..5f163012 100644 --- a/src/api/resources/entity/resources/approvalPolicy/client/Client.ts +++ b/src/api/resources/entity/resources/approvalPolicy/client/Client.ts @@ -59,7 +59,7 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -228,7 +228,7 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -371,7 +371,7 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -544,7 +544,7 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -687,7 +687,7 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/counterparty/client/Client.ts b/src/api/resources/entity/resources/counterparty/client/Client.ts index 5dcf3db3..2e7f9c92 100644 --- a/src/api/resources/entity/resources/counterparty/client/Client.ts +++ b/src/api/resources/entity/resources/counterparty/client/Client.ts @@ -103,7 +103,7 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -286,7 +286,7 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -437,7 +437,7 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -575,7 +575,7 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -721,7 +721,7 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -859,7 +859,7 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/customization/client/Client.ts b/src/api/resources/entity/resources/customization/client/Client.ts index 4090ccb7..9fefdc25 100644 --- a/src/api/resources/entity/resources/customization/client/Client.ts +++ b/src/api/resources/entity/resources/customization/client/Client.ts @@ -59,7 +59,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -226,7 +226,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/document/client/Client.ts b/src/api/resources/entity/resources/document/client/Client.ts index 6a7d56c9..a65f769a 100644 --- a/src/api/resources/entity/resources/document/client/Client.ts +++ b/src/api/resources/entity/resources/document/client/Client.ts @@ -71,7 +71,7 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -215,7 +215,7 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -353,7 +353,7 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/emailLog/client/Client.ts b/src/api/resources/entity/resources/emailLog/client/Client.ts index 9852fcc7..03a7afee 100644 --- a/src/api/resources/entity/resources/emailLog/client/Client.ts +++ b/src/api/resources/entity/resources/emailLog/client/Client.ts @@ -83,7 +83,7 @@ export class EmailLog { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -226,7 +226,7 @@ export class EmailLog { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/externalAccountingSystem/client/Client.ts b/src/api/resources/entity/resources/externalAccountingSystem/client/Client.ts index 9384b984..6dce7e09 100644 --- a/src/api/resources/entity/resources/externalAccountingSystem/client/Client.ts +++ b/src/api/resources/entity/resources/externalAccountingSystem/client/Client.ts @@ -59,7 +59,7 @@ export class ExternalAccountingSystem { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -204,7 +204,7 @@ export class ExternalAccountingSystem { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -347,7 +347,7 @@ export class ExternalAccountingSystem { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -507,7 +507,7 @@ export class ExternalAccountingSystem { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/invoice/client/Client.ts b/src/api/resources/entity/resources/invoice/client/Client.ts index e7581d17..f2d02a70 100644 --- a/src/api/resources/entity/resources/invoice/client/Client.ts +++ b/src/api/resources/entity/resources/invoice/client/Client.ts @@ -61,6 +61,7 @@ export class Invoice { excludeReceivables, startDate, endDate, + dateType, orderBy, orderDirection, limit, @@ -93,6 +94,10 @@ export class Invoice { _queryParams["endDate"] = endDate.toISOString(); } + if (dateType != null) { + _queryParams["dateType"] = dateType; + } + if (orderBy != null) { _queryParams["orderBy"] = orderBy; } @@ -223,7 +228,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -371,6 +376,9 @@ export class Invoice { approverId, invoiceId, status, + startDate, + endDate, + dateType, dueDateStart, dueDateEnd, createdDateStart, @@ -434,6 +442,18 @@ export class Invoice { } } + if (startDate != null) { + _queryParams["startDate"] = startDate.toISOString(); + } + + if (endDate != null) { + _queryParams["endDate"] = endDate.toISOString(); + } + + if (dateType != null) { + _queryParams["dateType"] = dateType; + } + if (dueDateStart != null) { _queryParams["dueDateStart"] = dueDateStart.toISOString(); } @@ -468,7 +488,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/invoice/client/requests/EntityGetInvoicesRequest.ts b/src/api/resources/entity/resources/invoice/client/requests/EntityGetInvoicesRequest.ts index 5af1900a..2b64c6ee 100644 --- a/src/api/resources/entity/resources/invoice/client/requests/EntityGetInvoicesRequest.ts +++ b/src/api/resources/entity/resources/invoice/client/requests/EntityGetInvoicesRequest.ts @@ -23,13 +23,17 @@ export interface EntityGetInvoicesRequest { */ excludeReceivables?: boolean; /** - * Start date for invoice created on date filter. + * Start date filter. Defaults to CREATED_AT unless specified the dateType is specified */ startDate?: Date; /** - * End date for invoice created date filter. + * End date filter. Defaults to CREATED_AT unless specified the dateType is specified */ endDate?: Date; + /** + * Type of date to filter by if startDate and endDate filters are provided. Defaults to CREATED_AT. + */ + dateType?: Mercoa.InvoiceDateFilter; /** * Field to order invoices by. Defaults to CREATED_AT. */ diff --git a/src/api/resources/entity/resources/invoice/client/requests/InvoiceMetricsRequest.ts b/src/api/resources/entity/resources/invoice/client/requests/InvoiceMetricsRequest.ts index b50fed1b..f15d44c1 100644 --- a/src/api/resources/entity/resources/invoice/client/requests/InvoiceMetricsRequest.ts +++ b/src/api/resources/entity/resources/invoice/client/requests/InvoiceMetricsRequest.ts @@ -53,19 +53,31 @@ export interface InvoiceMetricsRequest { */ status?: Mercoa.InvoiceStatus | Mercoa.InvoiceStatus[]; /** - * Start date for invoice dueDate filter. + * Start date filter. Defaults to CREATED_AT unless specified the dateType is specified + */ + startDate?: Date; + /** + * End date filter. Defaults to CREATED_AT unless specified the dateType is specified + */ + endDate?: Date; + /** + * Type of date to filter by if startDate and endDate filters are provided. Defaults to CREATED_AT. + */ + dateType?: Mercoa.InvoiceDateFilter; + /** + * DEPRECATED. Use startDate, endDate, and dateType instead. Start date for invoice dueDate filter. */ dueDateStart?: Date; /** - * End date for invoice dueDate filter. + * DEPRECATED. Use startDate, endDate, and dateType instead. End date for invoice dueDate filter. */ dueDateEnd?: Date; /** - * Start date for invoice created on date filter. + * DEPRECATED. Use startDate, endDate, and dateType instead. Start date for invoice created on date filter. */ createdDateStart?: Date; /** - * End date for invoice created date filter. + * DEPRECATED. Use startDate, endDate, and dateType instead. End date for invoice created date filter. */ createdDateEnd?: Date; /** diff --git a/src/api/resources/entity/resources/metadata/client/Client.ts b/src/api/resources/entity/resources/metadata/client/Client.ts index 3c027a5a..0fcb8259 100644 --- a/src/api/resources/entity/resources/metadata/client/Client.ts +++ b/src/api/resources/entity/resources/metadata/client/Client.ts @@ -59,7 +59,7 @@ export class Metadata { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -204,7 +204,7 @@ export class Metadata { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -351,7 +351,7 @@ export class Metadata { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -494,7 +494,7 @@ export class Metadata { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/notificationPolicy/client/Client.ts b/src/api/resources/entity/resources/notificationPolicy/client/Client.ts index 5c0073d9..41ff3532 100644 --- a/src/api/resources/entity/resources/notificationPolicy/client/Client.ts +++ b/src/api/resources/entity/resources/notificationPolicy/client/Client.ts @@ -59,7 +59,7 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -206,7 +206,7 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -332,7 +332,8 @@ export class NotificationPolicy { * @example * await client.entity.notificationPolicy.update("ent_8545a84e-a45f-41bf-bdf1-33b42a55812c", Mercoa.NotificationType.InvoiceApprovalNeeded, { * disabled: false, - * additionalRoles: ["admin", "approver"] + * additionalRoles: ["admin", "approver"], + * notifyCounterparty: true * }) * * @example @@ -367,7 +368,7 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/paymentMethod/client/Client.ts b/src/api/resources/entity/resources/paymentMethod/client/Client.ts index 9de03310..c47079b3 100644 --- a/src/api/resources/entity/resources/paymentMethod/client/Client.ts +++ b/src/api/resources/entity/resources/paymentMethod/client/Client.ts @@ -74,7 +74,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -266,7 +266,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -376,7 +376,7 @@ export class PaymentMethod { /** * @param {Mercoa.EntityId} entityId - Entity ID or Entity ForeignID - * @param {Mercoa.PaymentMethodId} paymentMethodId + * @param {Mercoa.PaymentMethodId} paymentMethodId - Payment Method ID or Payment Method ForeignID * @param {PaymentMethod.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -407,7 +407,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -518,7 +518,7 @@ export class PaymentMethod { * Only custom payment methods can be updated. * * @param {Mercoa.EntityId} entityId - Entity ID or Entity ForeignID - * @param {Mercoa.PaymentMethodId} paymentMethodId + * @param {Mercoa.PaymentMethodId} paymentMethodId - Payment Method ID or Payment Method ForeignID * @param {Mercoa.PaymentMethodUpdateRequest} request * @param {PaymentMethod.RequestOptions} requestOptions - Request-specific configuration. * @@ -555,7 +555,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -667,7 +667,7 @@ export class PaymentMethod { * Mark a payment method as inactive. This will not remove the payment method from the system, but will prevent it from being used in the future. * * @param {Mercoa.EntityId} entityId - Entity ID or Entity ForeignID - * @param {Mercoa.PaymentMethodId} paymentMethodId + * @param {Mercoa.PaymentMethodId} paymentMethodId - Payment Method ID or Payment Method ForeignID * @param {PaymentMethod.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -698,7 +698,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -804,7 +804,7 @@ export class PaymentMethod { * Initiate micro deposits for a bank account * * @param {Mercoa.EntityId} entityId - Entity ID or Entity ForeignID - * @param {Mercoa.PaymentMethodId} paymentMethodId + * @param {Mercoa.PaymentMethodId} paymentMethodId - Payment Method ID or Payment Method ForeignID * @param {PaymentMethod.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -837,7 +837,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -948,7 +948,7 @@ export class PaymentMethod { * Complete micro deposit verification * * @param {Mercoa.EntityId} entityId - Entity ID or Entity ForeignID - * @param {Mercoa.PaymentMethodId} paymentMethodId + * @param {Mercoa.PaymentMethodId} paymentMethodId - Payment Method ID or Payment Method ForeignID * @param {Mercoa.entity.CompleteMicroDepositsRequest} request * @param {PaymentMethod.RequestOptions} requestOptions - Request-specific configuration. * @@ -985,7 +985,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1099,7 +1099,7 @@ export class PaymentMethod { * Deprecated. Get the available balance of a payment method. Only bank accounts added with Plaid are supported. This endpoint will return a cached value and will refresh the balance when called. * * @param {Mercoa.EntityId} entityId - Entity ID or Entity ForeignID - * @param {Mercoa.PaymentMethodId} paymentMethodId + * @param {Mercoa.PaymentMethodId} paymentMethodId - Payment Method ID or Payment Method ForeignID * @param {PaymentMethod.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -1132,7 +1132,7 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/representative/client/Client.ts b/src/api/resources/entity/resources/representative/client/Client.ts index f0cb68cc..c3675ac6 100644 --- a/src/api/resources/entity/resources/representative/client/Client.ts +++ b/src/api/resources/entity/resources/representative/client/Client.ts @@ -59,7 +59,7 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -230,7 +230,7 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -371,7 +371,7 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -511,7 +511,7 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/user/client/Client.ts b/src/api/resources/entity/resources/user/client/Client.ts index 63dc3266..0f466738 100644 --- a/src/api/resources/entity/resources/user/client/Client.ts +++ b/src/api/resources/entity/resources/user/client/Client.ts @@ -61,7 +61,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -237,7 +237,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -381,7 +381,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -524,7 +524,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -673,7 +673,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -816,7 +816,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -957,7 +957,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/user/resources/notificationPolicy/client/Client.ts b/src/api/resources/entity/resources/user/resources/notificationPolicy/client/Client.ts index 45ce8e9f..64dd9e87 100644 --- a/src/api/resources/entity/resources/user/resources/notificationPolicy/client/Client.ts +++ b/src/api/resources/entity/resources/user/resources/notificationPolicy/client/Client.ts @@ -63,7 +63,7 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -215,7 +215,7 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -375,7 +375,7 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entity/resources/user/resources/notifications/client/Client.ts b/src/api/resources/entity/resources/user/resources/notifications/client/Client.ts index 7ec5cddd..91743b50 100644 --- a/src/api/resources/entity/resources/user/resources/notifications/client/Client.ts +++ b/src/api/resources/entity/resources/user/resources/notifications/client/Client.ts @@ -97,7 +97,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -240,7 +240,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -388,7 +388,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entityGroup/client/Client.ts b/src/api/resources/entityGroup/client/Client.ts index df0319fa..f231c113 100644 --- a/src/api/resources/entityGroup/client/Client.ts +++ b/src/api/resources/entityGroup/client/Client.ts @@ -71,7 +71,7 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -212,7 +212,7 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -351,7 +351,7 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -493,7 +493,7 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -632,7 +632,7 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entityGroup/resources/invoice/client/Client.ts b/src/api/resources/entityGroup/resources/invoice/client/Client.ts index 6627d299..8a5a02b4 100644 --- a/src/api/resources/entityGroup/resources/invoice/client/Client.ts +++ b/src/api/resources/entityGroup/resources/invoice/client/Client.ts @@ -61,6 +61,7 @@ export class Invoice { excludeReceivables, startDate, endDate, + dateType, orderBy, orderDirection, limit, @@ -91,6 +92,10 @@ export class Invoice { _queryParams["endDate"] = endDate.toISOString(); } + if (dateType != null) { + _queryParams["dateType"] = dateType; + } + if (orderBy != null) { _queryParams["orderBy"] = orderBy; } @@ -191,7 +196,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -339,6 +344,9 @@ export class Invoice { approverId, invoiceId, status, + startDate, + endDate, + dateType, dueDateStart, dueDateEnd, createdDateStart, @@ -402,6 +410,18 @@ export class Invoice { } } + if (startDate != null) { + _queryParams["startDate"] = startDate.toISOString(); + } + + if (endDate != null) { + _queryParams["endDate"] = endDate.toISOString(); + } + + if (dateType != null) { + _queryParams["dateType"] = dateType; + } + if (dueDateStart != null) { _queryParams["dueDateStart"] = dueDateStart.toISOString(); } @@ -438,7 +458,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entityGroup/resources/invoice/client/requests/EntityGetInvoicesRequest.ts b/src/api/resources/entityGroup/resources/invoice/client/requests/EntityGetInvoicesRequest.ts index ad77630b..17790a19 100644 --- a/src/api/resources/entityGroup/resources/invoice/client/requests/EntityGetInvoicesRequest.ts +++ b/src/api/resources/entityGroup/resources/invoice/client/requests/EntityGetInvoicesRequest.ts @@ -30,6 +30,10 @@ export interface EntityGetInvoicesRequest { * End date for invoice created date filter. */ endDate?: Date; + /** + * Type of date to filter by if startDate and endDate filters are provided. Defaults to CREATED_AT. + */ + dateType?: Mercoa.InvoiceDateFilter; /** * Field to order invoices by. Defaults to CREATED_AT. */ diff --git a/src/api/resources/entityGroup/resources/invoice/client/requests/GroupInvoiceMetricsRequest.ts b/src/api/resources/entityGroup/resources/invoice/client/requests/GroupInvoiceMetricsRequest.ts index b5016876..54588c61 100644 --- a/src/api/resources/entityGroup/resources/invoice/client/requests/GroupInvoiceMetricsRequest.ts +++ b/src/api/resources/entityGroup/resources/invoice/client/requests/GroupInvoiceMetricsRequest.ts @@ -53,19 +53,31 @@ export interface GroupInvoiceMetricsRequest { */ status?: Mercoa.InvoiceStatus | Mercoa.InvoiceStatus[]; /** - * Start date for invoice dueDate filter. + * Start date filter. Defaults to CREATED_AT unless specified the dateType is specified + */ + startDate?: Date; + /** + * End date filter. Defaults to CREATED_AT unless specified the dateType is specified + */ + endDate?: Date; + /** + * Type of date to filter by if startDate and endDate filters are provided. Defaults to CREATED_AT. + */ + dateType?: Mercoa.InvoiceDateFilter; + /** + * DEPRECATED. Use startDate, endDate, and dateType instead. Start date for invoice dueDate filter. */ dueDateStart?: Date; /** - * End date for invoice dueDate filter. + * DEPRECATED. Use startDate, endDate, and dateType instead. End date for invoice dueDate filter. */ dueDateEnd?: Date; /** - * Start date for invoice created on date filter. + * DEPRECATED. Use startDate, endDate, and dateType instead. Start date for invoice created on date filter. */ createdDateStart?: Date; /** - * End date for invoice created date filter. + * DEPRECATED. Use startDate, endDate, and dateType instead. End date for invoice created date filter. */ createdDateEnd?: Date; /** diff --git a/src/api/resources/entityGroup/resources/user/client/Client.ts b/src/api/resources/entityGroup/resources/user/client/Client.ts index e2f79984..550e4164 100644 --- a/src/api/resources/entityGroup/resources/user/client/Client.ts +++ b/src/api/resources/entityGroup/resources/user/client/Client.ts @@ -97,7 +97,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -249,7 +249,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -392,7 +392,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -547,7 +547,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -690,7 +690,7 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/entityTypes/types/NotificationPolicyRequest.ts b/src/api/resources/entityTypes/types/NotificationPolicyRequest.ts index 4a6fcbe8..30f5a77f 100644 --- a/src/api/resources/entityTypes/types/NotificationPolicyRequest.ts +++ b/src/api/resources/entityTypes/types/NotificationPolicyRequest.ts @@ -12,7 +12,8 @@ * @example * { * disabled: false, - * additionalRoles: ["admin", "approver"] + * additionalRoles: ["admin", "approver"], + * notifyCounterparty: true * } * * @example @@ -25,5 +26,7 @@ export interface NotificationPolicyRequest { /** Set to true if the selected notification type should be disabled for this entity */ disabled?: boolean; /** List of user roles that should receive notifications in addition to the default users for this notification type */ - additionalRoles: string[]; + additionalRoles?: string[]; + /** Set to true if the selected notification type should be sent to the counterparty */ + notifyCounterparty?: boolean; } diff --git a/src/api/resources/entityTypes/types/NotificationPolicyResponse.ts b/src/api/resources/entityTypes/types/NotificationPolicyResponse.ts index de0525ee..011fa283 100644 --- a/src/api/resources/entityTypes/types/NotificationPolicyResponse.ts +++ b/src/api/resources/entityTypes/types/NotificationPolicyResponse.ts @@ -9,21 +9,24 @@ import * as Mercoa from "../../../index"; * { * disabled: false, * additionalRoles: ["admin", "approver"], - * type: Mercoa.NotificationType.InvoiceApprovalNeeded + * type: Mercoa.NotificationType.InvoiceApprovalNeeded, + * notifyCounterparty: true * } * * @example * { * disabled: false, * additionalRoles: ["admin", "bookkeeper"], - * type: Mercoa.NotificationType.InvoiceApproved + * type: Mercoa.NotificationType.InvoiceApproved, + * notifyCounterparty: false * } * * @example * { * disabled: true, * additionalRoles: [], - * type: Mercoa.NotificationType.InvoiceApproved + * type: Mercoa.NotificationType.InvoiceApproved, + * notifyCounterparty: false * } */ export interface NotificationPolicyResponse { @@ -31,5 +34,7 @@ export interface NotificationPolicyResponse { disabled: boolean; /** List of user roles that should receive notifications in addition to the default users for this notification type */ additionalRoles: string[]; + /** True if the selected notification type is sent to the counterparty */ + notifyCounterparty: boolean; type: Mercoa.NotificationType; } diff --git a/src/api/resources/invoice/client/Client.ts b/src/api/resources/invoice/client/Client.ts index 77363604..3d6f4a16 100644 --- a/src/api/resources/invoice/client/Client.ts +++ b/src/api/resources/invoice/client/Client.ts @@ -60,6 +60,7 @@ export class Invoice { entityId, startDate, endDate, + dateType, orderBy, orderDirection, limit, @@ -92,6 +93,10 @@ export class Invoice { _queryParams["endDate"] = endDate.toISOString(); } + if (dateType != null) { + _queryParams["dateType"] = dateType; + } + if (orderBy != null) { _queryParams["orderBy"] = orderBy; } @@ -222,7 +227,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -427,7 +432,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -536,7 +541,7 @@ export class Invoice { } /** - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Invoice.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -564,7 +569,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -672,7 +677,7 @@ export class Invoice { } /** - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Mercoa.InvoiceUpdateRequest} request * @param {Invoice.RequestOptions} requestOptions - Request-specific configuration. * @@ -754,7 +759,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -865,7 +870,7 @@ export class Invoice { /** * Only invoices in the DRAFT and NEW status can be deleted. * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Invoice.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -890,7 +895,7 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/invoice/client/requests/GetAllInvoicesRequest.ts b/src/api/resources/invoice/client/requests/GetAllInvoicesRequest.ts index 6e17978b..419b5d1e 100644 --- a/src/api/resources/invoice/client/requests/GetAllInvoicesRequest.ts +++ b/src/api/resources/invoice/client/requests/GetAllInvoicesRequest.ts @@ -16,13 +16,17 @@ export interface GetAllInvoicesRequest { */ entityId?: Mercoa.EntityId | Mercoa.EntityId[]; /** - * Start date for invoice created on date filter. + * Start date filter. Defaults to CREATED_AT unless specified the dateType is specified */ startDate?: Date; /** - * End date for invoice created date filter. + * End date filter. Defaults to CREATED_AT unless specified the dateType is specified */ endDate?: Date; + /** + * Type of date to filter by if startDate and endDate filters are provided. Defaults to CREATED_AT. + */ + dateType?: Mercoa.InvoiceDateFilter; /** * Field to order invoices by. Defaults to CREATED_AT. */ diff --git a/src/api/resources/invoice/resources/approval/client/Client.ts b/src/api/resources/invoice/resources/approval/client/Client.ts index 05a1a7a0..5ee73639 100644 --- a/src/api/resources/invoice/resources/approval/client/Client.ts +++ b/src/api/resources/invoice/resources/approval/client/Client.ts @@ -31,7 +31,7 @@ export class Approval { /** * Adds an approver to the invoice. Will select the first available approver slot that is not already filled and assign the approver to it. If no approver slots are available, an error will be returned. An explicit approver slot can be specified by setting the `approverSlot` field. * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Mercoa.AddApproverRequest} request * @param {Approval.RequestOptions} requestOptions - Request-specific configuration. * @@ -64,7 +64,7 @@ export class Approval { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -168,7 +168,7 @@ export class Approval { } /** - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Mercoa.ApprovalRequest} request * @param {Approval.RequestOptions} requestOptions - Request-specific configuration. * @@ -201,7 +201,7 @@ export class Approval { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -305,7 +305,7 @@ export class Approval { } /** - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Mercoa.ApprovalRequest} request * @param {Approval.RequestOptions} requestOptions - Request-specific configuration. * @@ -338,7 +338,7 @@ export class Approval { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/invoice/resources/comment/client/Client.ts b/src/api/resources/invoice/resources/comment/client/Client.ts index b221fec8..4316a1f4 100644 --- a/src/api/resources/invoice/resources/comment/client/Client.ts +++ b/src/api/resources/invoice/resources/comment/client/Client.ts @@ -31,7 +31,7 @@ export class Comment { /** * Get all comments associated with this invoice * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Comment.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -59,7 +59,7 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -169,7 +169,7 @@ export class Comment { /** * Add a comment to this invoice * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Mercoa.CommentRequest} request * @param {Comment.RequestOptions} requestOptions - Request-specific configuration. * @@ -202,7 +202,7 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -311,7 +311,7 @@ export class Comment { } /** - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Mercoa.CommentId} commentId * @param {Comment.RequestOptions} requestOptions - Request-specific configuration. * @@ -343,7 +343,7 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -453,7 +453,7 @@ export class Comment { /** * Edit a comment on this invoice * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Mercoa.CommentId} commentId * @param {Mercoa.CommentRequest} request * @param {Comment.RequestOptions} requestOptions - Request-specific configuration. @@ -490,7 +490,7 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -601,7 +601,7 @@ export class Comment { /** * Delete a comment on this invoice * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Mercoa.CommentId} commentId * @param {Comment.RequestOptions} requestOptions - Request-specific configuration. * @@ -633,7 +633,7 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/invoice/resources/document/client/Client.ts b/src/api/resources/invoice/resources/document/client/Client.ts index 5488b44d..084e9ef5 100644 --- a/src/api/resources/invoice/resources/document/client/Client.ts +++ b/src/api/resources/invoice/resources/document/client/Client.ts @@ -31,7 +31,7 @@ export class Document { /** * Get attachments (scanned/uploaded PDFs and images) associated with this invoice * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Document.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -59,7 +59,7 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -169,7 +169,7 @@ export class Document { /** * Upload documents (scanned/uploaded PDFs and images) associated with this Invoice * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Mercoa.invoice.UploadDocumentRequest} request * @param {Document.RequestOptions} requestOptions - Request-specific configuration. * @@ -201,7 +201,7 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -307,7 +307,7 @@ export class Document { /** * Delete an attachment (scanned/uploaded PDFs and images) associated with this invoice * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {string} documentId * @param {Document.RequestOptions} requestOptions - Request-specific configuration. * @@ -339,7 +339,7 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -444,7 +444,7 @@ export class Document { /** * Generate a PDF of the invoice. This PDF is generated from the data in the invoice, not from the uploaded documents. * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Document.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -472,7 +472,7 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -582,7 +582,7 @@ export class Document { /** * Get a PDF of the check for the invoice. If the invoice does not have check as the disbursement method, an error will be returned. If the disbursement option for the check is set to 'MAIL', a void copy of the check will be returned. If the disbursement option for the check is set to 'PRINT', a printable check will be returned. If the invoice is NOT marked as PAID, the check will be a void copy. * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Document.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -610,7 +610,7 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -720,7 +720,7 @@ export class Document { /** * Get the email subject and body that was used to create this invoice. * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Document.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -748,7 +748,7 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/invoice/resources/lineItem/client/Client.ts b/src/api/resources/invoice/resources/lineItem/client/Client.ts index b8bd2702..06ca3cbd 100644 --- a/src/api/resources/invoice/resources/lineItem/client/Client.ts +++ b/src/api/resources/invoice/resources/lineItem/client/Client.ts @@ -75,7 +75,7 @@ export class LineItem { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/invoice/resources/paymentLinks/client/Client.ts b/src/api/resources/invoice/resources/paymentLinks/client/Client.ts index ba4a21c3..e0377ffa 100644 --- a/src/api/resources/invoice/resources/paymentLinks/client/Client.ts +++ b/src/api/resources/invoice/resources/paymentLinks/client/Client.ts @@ -31,7 +31,7 @@ export class PaymentLinks { /** * Get temporary link for payer to send payment * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {PaymentLinks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -59,7 +59,7 @@ export class PaymentLinks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -169,7 +169,7 @@ export class PaymentLinks { /** * Trigger email to payer inviting them to make payment * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {Mercoa.invoice.SendPayerEmail} request * @param {PaymentLinks.RequestOptions} requestOptions - Request-specific configuration. * @@ -207,7 +207,7 @@ export class PaymentLinks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -313,7 +313,7 @@ export class PaymentLinks { /** * Get temporary link for vendor to accept payment * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {PaymentLinks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -341,7 +341,7 @@ export class PaymentLinks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -451,7 +451,7 @@ export class PaymentLinks { /** * Trigger email to vendor inviting them into the vendor portal * - * @param {Mercoa.InvoiceId} invoiceId + * @param {Mercoa.InvoiceId} invoiceId - Invoice ID or Invoice ForeignID * @param {PaymentLinks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -479,7 +479,7 @@ export class PaymentLinks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/invoiceTypes/types/InvoiceDateFilter.ts b/src/api/resources/invoiceTypes/types/InvoiceDateFilter.ts new file mode 100644 index 00000000..b8d7c440 --- /dev/null +++ b/src/api/resources/invoiceTypes/types/InvoiceDateFilter.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type InvoiceDateFilter = + | "INVOICE_DATE" + | "DEDUCTION_DATE" + | "DUE_DATE" + | "SETTLEMENT_DATE" + | "CREATED_AT" + | "UPDATED_AT"; + +export const InvoiceDateFilter = { + InvoiceDate: "INVOICE_DATE", + DeductionDate: "DEDUCTION_DATE", + DueDate: "DUE_DATE", + SettlementDate: "SETTLEMENT_DATE", + CreatedAt: "CREATED_AT", + UpdatedAt: "UPDATED_AT", +} as const; diff --git a/src/api/resources/invoiceTypes/types/index.ts b/src/api/resources/invoiceTypes/types/index.ts index 2e0f936f..f4e3d500 100644 --- a/src/api/resources/invoiceTypes/types/index.ts +++ b/src/api/resources/invoiceTypes/types/index.ts @@ -26,6 +26,7 @@ export * from "./InvoiceFeesRequest"; export * from "./InvoiceFeesResponse"; export * from "./InvoiceStatus"; export * from "./InvoiceFailureType"; +export * from "./InvoiceDateFilter"; export * from "./InvoiceOrderByField"; export * from "./InvoiceMetadataFilter"; export * from "./InvoiceMetricsResponse"; diff --git a/src/api/resources/ocr/client/Client.ts b/src/api/resources/ocr/client/Client.ts index 0616ed0d..61d60405 100644 --- a/src/api/resources/ocr/client/Client.ts +++ b/src/api/resources/ocr/client/Client.ts @@ -61,7 +61,7 @@ export class Ocr { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -205,7 +205,7 @@ export class Ocr { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -341,7 +341,7 @@ export class Ocr { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/organization/client/Client.ts b/src/api/resources/organization/client/Client.ts index 57cc110c..0b57ca48 100644 --- a/src/api/resources/organization/client/Client.ts +++ b/src/api/resources/organization/client/Client.ts @@ -106,7 +106,7 @@ export class Organization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -259,7 +259,7 @@ export class Organization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -421,7 +421,7 @@ export class Organization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/organization/resources/notificationConfiguration/client/Client.ts b/src/api/resources/organization/resources/notificationConfiguration/client/Client.ts index b640c342..75fb9e46 100644 --- a/src/api/resources/organization/resources/notificationConfiguration/client/Client.ts +++ b/src/api/resources/organization/resources/notificationConfiguration/client/Client.ts @@ -57,7 +57,7 @@ export class NotificationConfiguration { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -197,7 +197,7 @@ export class NotificationConfiguration { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -342,7 +342,7 @@ export class NotificationConfiguration { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -485,7 +485,7 @@ export class NotificationConfiguration { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/paymentMethods/client/Client.ts b/src/api/resources/paymentMethods/client/Client.ts index e1449a83..ee4cdf7b 100644 --- a/src/api/resources/paymentMethods/client/Client.ts +++ b/src/api/resources/paymentMethods/client/Client.ts @@ -93,7 +93,7 @@ export class PaymentMethods { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.4.49", + "X-Fern-SDK-Version": "0.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/serialization/resources/entityTypes/types/NotificationPolicyRequest.ts b/src/serialization/resources/entityTypes/types/NotificationPolicyRequest.ts index 2ccaf7b1..f9883156 100644 --- a/src/serialization/resources/entityTypes/types/NotificationPolicyRequest.ts +++ b/src/serialization/resources/entityTypes/types/NotificationPolicyRequest.ts @@ -11,12 +11,14 @@ export const NotificationPolicyRequest: core.serialization.ObjectSchema< Mercoa.NotificationPolicyRequest > = core.serialization.object({ disabled: core.serialization.boolean().optional(), - additionalRoles: core.serialization.list(core.serialization.string()), + additionalRoles: core.serialization.list(core.serialization.string()).optional(), + notifyCounterparty: core.serialization.boolean().optional(), }); export declare namespace NotificationPolicyRequest { interface Raw { disabled?: boolean | null; - additionalRoles: string[]; + additionalRoles?: string[] | null; + notifyCounterparty?: boolean | null; } } diff --git a/src/serialization/resources/entityTypes/types/NotificationPolicyResponse.ts b/src/serialization/resources/entityTypes/types/NotificationPolicyResponse.ts index 0f715b2c..221026a8 100644 --- a/src/serialization/resources/entityTypes/types/NotificationPolicyResponse.ts +++ b/src/serialization/resources/entityTypes/types/NotificationPolicyResponse.ts @@ -13,6 +13,7 @@ export const NotificationPolicyResponse: core.serialization.ObjectSchema< > = core.serialization.object({ disabled: core.serialization.boolean(), additionalRoles: core.serialization.list(core.serialization.string()), + notifyCounterparty: core.serialization.boolean(), type: NotificationType, }); @@ -20,6 +21,7 @@ export declare namespace NotificationPolicyResponse { interface Raw { disabled: boolean; additionalRoles: string[]; + notifyCounterparty: boolean; type: NotificationType.Raw; } } diff --git a/src/serialization/resources/invoiceTypes/types/InvoiceDateFilter.ts b/src/serialization/resources/invoiceTypes/types/InvoiceDateFilter.ts new file mode 100644 index 00000000..5b609663 --- /dev/null +++ b/src/serialization/resources/invoiceTypes/types/InvoiceDateFilter.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Mercoa from "../../../../api/index"; +import * as core from "../../../../core"; + +export const InvoiceDateFilter: core.serialization.Schema = + core.serialization.enum_([ + "INVOICE_DATE", + "DEDUCTION_DATE", + "DUE_DATE", + "SETTLEMENT_DATE", + "CREATED_AT", + "UPDATED_AT", + ]); + +export declare namespace InvoiceDateFilter { + type Raw = "INVOICE_DATE" | "DEDUCTION_DATE" | "DUE_DATE" | "SETTLEMENT_DATE" | "CREATED_AT" | "UPDATED_AT"; +} diff --git a/src/serialization/resources/invoiceTypes/types/index.ts b/src/serialization/resources/invoiceTypes/types/index.ts index 2e0f936f..f4e3d500 100644 --- a/src/serialization/resources/invoiceTypes/types/index.ts +++ b/src/serialization/resources/invoiceTypes/types/index.ts @@ -26,6 +26,7 @@ export * from "./InvoiceFeesRequest"; export * from "./InvoiceFeesResponse"; export * from "./InvoiceStatus"; export * from "./InvoiceFailureType"; +export * from "./InvoiceDateFilter"; export * from "./InvoiceOrderByField"; export * from "./InvoiceMetadataFilter"; export * from "./InvoiceMetricsResponse"; diff --git a/yarn.lock b/yarn.lock index 7ba17c19..284b8adc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,75 +18,53 @@ "@babel/highlight" "^7.24.7" picocolors "^1.0.0" -"@babel/compat-data@^7.24.8": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.9.tgz#53eee4e68f1c1d0282aa0eb05ddb02d033fc43a0" - integrity sha512-e701mcfApCJqMMueQI0Fb68Amflj83+dvAvHawoBpAz+GDjCIyGHzNwnefjsWJ3xiYAqqiQFoWbspGYBdb2/ng== +"@babel/compat-data@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.2.tgz#e41928bd33475305c586f6acbbb7e3ade7a6f7f5" + integrity sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.9.tgz#dc07c9d307162c97fa9484ea997ade65841c7c82" - integrity sha512-5e3FI4Q3M3Pbr21+5xJwCv6ZT6KmGkI0vw3Tozy5ODAQFTIWe37iT8Cr7Ice2Ntb+M3iSKCEWMB1MBgKrW3whg== + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.2.tgz#ed8eec275118d7613e77a352894cd12ded8eba77" + integrity sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA== dependencies: "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.24.9" - "@babel/helper-compilation-targets" "^7.24.8" - "@babel/helper-module-transforms" "^7.24.9" - "@babel/helpers" "^7.24.8" - "@babel/parser" "^7.24.8" - "@babel/template" "^7.24.7" - "@babel/traverse" "^7.24.8" - "@babel/types" "^7.24.9" + "@babel/generator" "^7.25.0" + "@babel/helper-compilation-targets" "^7.25.2" + "@babel/helper-module-transforms" "^7.25.2" + "@babel/helpers" "^7.25.0" + "@babel/parser" "^7.25.0" + "@babel/template" "^7.25.0" + "@babel/traverse" "^7.25.2" + "@babel/types" "^7.25.2" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.24.8", "@babel/generator@^7.24.9", "@babel/generator@^7.7.2": - version "7.24.10" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.10.tgz#a4ab681ec2a78bbb9ba22a3941195e28a81d8e76" - integrity sha512-o9HBZL1G2129luEUlG1hB4N/nlYNWHnpwlND9eOMclRqqu1YDy2sSYVCFUZwl8I1Gxh+QSRrP2vD7EpUmFVXxg== +"@babel/generator@^7.25.0", "@babel/generator@^7.7.2": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.0.tgz#f858ddfa984350bc3d3b7f125073c9af6988f18e" + integrity sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw== dependencies: - "@babel/types" "^7.24.9" + "@babel/types" "^7.25.0" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" -"@babel/helper-compilation-targets@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.8.tgz#b607c3161cd9d1744977d4f97139572fe778c271" - integrity sha512-oU+UoqCHdp+nWVDkpldqIQL/i/bvAv53tRqLG/s+cOXxe66zOYLU7ar/Xs3LdmBihrUMEUhwu6dMZwbNOYDwvw== +"@babel/helper-compilation-targets@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz#e1d9410a90974a3a5a66e84ff55ef62e3c02d06c" + integrity sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw== dependencies: - "@babel/compat-data" "^7.24.8" + "@babel/compat-data" "^7.25.2" "@babel/helper-validator-option" "^7.24.8" browserslist "^4.23.1" lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-environment-visitor@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz#4b31ba9551d1f90781ba83491dd59cf9b269f7d9" - integrity sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-function-name@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz#75f1e1725742f39ac6584ee0b16d94513da38dd2" - integrity sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA== - dependencies: - "@babel/template" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-hoist-variables@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz#b4ede1cde2fd89436397f30dc9376ee06b0f25ee" - integrity sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ== - dependencies: - "@babel/types" "^7.24.7" - "@babel/helper-module-imports@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" @@ -95,16 +73,15 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-module-transforms@^7.24.9": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.9.tgz#e13d26306b89eea569180868e652e7f514de9d29" - integrity sha512-oYbh+rtFKj/HwBQkFlUzvcybzklmVdVV3UU+mN7n2t/q3yGHbuVdNxyFvSBO1tfvjyArpHNcWMAzsSPdyI46hw== +"@babel/helper-module-transforms@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz#ee713c29768100f2776edf04d4eb23b8d27a66e6" + integrity sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ== dependencies: - "@babel/helper-environment-visitor" "^7.24.7" "@babel/helper-module-imports" "^7.24.7" "@babel/helper-simple-access" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" "@babel/helper-validator-identifier" "^7.24.7" + "@babel/traverse" "^7.25.2" "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.8.0": version "7.24.8" @@ -119,13 +96,6 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-split-export-declaration@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz#83949436890e07fa3d6873c61a96e3bbf692d856" - integrity sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA== - dependencies: - "@babel/types" "^7.24.7" - "@babel/helper-string-parser@^7.24.8": version "7.24.8" resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" @@ -141,13 +111,13 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== -"@babel/helpers@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.8.tgz#2820d64d5d6686cca8789dd15b074cd862795873" - integrity sha512-gV2265Nkcz7weJJfvDoAEVzC1e2OTDpkGbEsebse8koXUJUXPsCMi7sRo/+SPMuMZ9MtUPnGwITTnQnU5YjyaQ== +"@babel/helpers@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.0.tgz#e69beb7841cb93a6505531ede34f34e6a073650a" + integrity sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw== dependencies: - "@babel/template" "^7.24.7" - "@babel/types" "^7.24.8" + "@babel/template" "^7.25.0" + "@babel/types" "^7.25.0" "@babel/highlight@^7.24.7": version "7.24.7" @@ -159,10 +129,12 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.7", "@babel/parser@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.8.tgz#58a4dbbcad7eb1d48930524a3fd93d93e9084c6f" - integrity sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.3": + version "7.25.3" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.3.tgz#91fb126768d944966263f0657ab222a642b82065" + integrity sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw== + dependencies: + "@babel/types" "^7.25.2" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -262,35 +234,32 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/template@^7.24.7", "@babel/template@^7.3.3": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.7.tgz#02efcee317d0609d2c07117cb70ef8fb17ab7315" - integrity sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig== +"@babel/template@^7.25.0", "@babel/template@^7.3.3": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.0.tgz#e733dc3134b4fede528c15bc95e89cb98c52592a" + integrity sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q== dependencies: "@babel/code-frame" "^7.24.7" - "@babel/parser" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/parser" "^7.25.0" + "@babel/types" "^7.25.0" -"@babel/traverse@^7.24.7", "@babel/traverse@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.8.tgz#6c14ed5232b7549df3371d820fbd9abfcd7dfab7" - integrity sha512-t0P1xxAPzEDcEPmjprAQq19NWum4K0EQPjMwZQZbHt+GiZqvjCHjj755Weq1YRPVzBI+3zSfvScfpnuIecVFJQ== +"@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2": + version "7.25.3" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.3.tgz#f1b901951c83eda2f3e29450ce92743783373490" + integrity sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ== dependencies: "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.24.8" - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-function-name" "^7.24.7" - "@babel/helper-hoist-variables" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" - "@babel/parser" "^7.24.8" - "@babel/types" "^7.24.8" + "@babel/generator" "^7.25.0" + "@babel/parser" "^7.25.3" + "@babel/template" "^7.25.0" + "@babel/types" "^7.25.2" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.24.8", "@babel/types@^7.24.9", "@babel/types@^7.3.3": - version "7.24.9" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.9.tgz#228ce953d7b0d16646e755acf204f4cf3d08cc73" - integrity sha512-xm8XrMKz0IlUdocVbYJe0Z9xEgidU7msskG8BbhnTPK/HZ2z/7FP7ykqPgrUH+C+r414mNfNWam1f2vqOjqjYQ== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.3.3": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.2.tgz#55fb231f7dc958cd69ea141a4c2997e819646125" + integrity sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q== dependencies: "@babel/helper-string-parser" "^7.24.8" "@babel/helper-validator-identifier" "^7.24.7" @@ -650,11 +619,11 @@ form-data "^4.0.0" "@types/node@*": - version "20.14.12" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.12.tgz#129d7c3a822cb49fc7ff661235f19cfefd422b49" - integrity sha512-r7wNXakLeSsGT0H1AU863vS2wa5wBOK4bWMjZz2wj+8nBx+m5PeIn0k8AloSLpRuiwdRQZwarZqHE4FNArPuJQ== + version "22.0.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.0.2.tgz#9fb1a2b31970871e8bf696f0e8a40d2e6d2bd04e" + integrity sha512-yPL6DyFwY5PiMVEwymNeqUTKsDczQBJ/5T7W/46RwLU/VH+AA8aT5TZkvBviLKLbbm0hlfftEkGrNzfRk/fofQ== dependencies: - undici-types "~5.26.4" + undici-types "~6.11.1" "@types/node@17.0.33": version "17.0.33" @@ -912,9 +881,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001640: - version "1.0.30001643" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001643.tgz#9c004caef315de9452ab970c3da71085f8241dbd" - integrity sha512-ERgWGNleEilSrHM6iUz/zJNSQTP8Mr21wDWpdgvRwcTXGAq6jMtOUPP4dqFPTdKqZ2wKTdtB+uucZ3MRpAUSmg== + version "1.0.30001645" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001645.tgz#4c4b7427683dea1170a152cd1654be8d0da7bd71" + integrity sha512-GFtY2+qt91kzyMk6j48dJcwJVq5uTkk71XxE3RtScx7XWRLsO7bU44LOFkOZYR8w9YMS0UhPSYpN/6rAMImmLw== chalk@^2.4.2: version "2.4.2" @@ -1057,9 +1026,9 @@ data-urls@^3.0.2: whatwg-url "^11.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: - version "4.3.5" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e" - integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg== + version "4.3.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b" + integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg== dependencies: ms "2.1.2" @@ -1110,9 +1079,9 @@ domexception@^4.0.0: webidl-conversions "^7.0.0" electron-to-chromium@^1.4.820: - version "1.5.1" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.1.tgz#24640bd4dcfaccb6d82bb4c3f4c7311503241581" - integrity sha512-FKbOCOQ5QRB3VlIbl1LZQefWIYwszlBloaXcY2rbfpu9ioJnNh3TK03YtIDKDo3WKBi8u+YV4+Fn2CkEozgf4w== + version "1.5.4" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.4.tgz#cd477c830dd6fca41fbd5465c1ff6ce08ac22343" + integrity sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA== emittery@^0.13.1: version "0.13.1" @@ -2540,10 +2509,10 @@ typescript@4.6.4: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== +undici-types@~6.11.1: + version "6.11.1" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.11.1.tgz#432ea6e8efd54a48569705a699e62d8f4981b197" + integrity sha512-mIDEX2ek50x0OlRgxryxsenE5XaQD4on5U2inY7RApK3SOJpofyw7uW2AyfMKkhAxXIceo2DeWGVGwyvng1GNQ== universalify@^0.2.0: version "0.2.0"