diff --git a/package.json b/package.json index 48ebe03..2e093e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mercoa/javascript", - "version": "0.5.6", + "version": "0.5.7", "private": false, "repository": "https://github.com/mercoa-finance/javascript", "main": "./index.js", diff --git a/reference.md b/reference.md index b23fd53..6feb28a 100644 --- a/reference.md +++ b/reference.md @@ -2584,6 +2584,7 @@ await client.invoice.create({ name: "Product A", quantity: 1, unitPrice: 100, + category: Mercoa.InvoiceLineItemCategory.Expense, serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), metadata: { @@ -2716,6 +2717,7 @@ await client.invoice.update("inv_8545a84e-a45f-41bf-bdf1-33b42a55812c", { name: "Product A", quantity: 1, unitPrice: 100, + category: Mercoa.InvoiceLineItemCategory.Expense, serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), metadata: { @@ -6968,7 +6970,7 @@ await client.entity.representative.update(
-**request:** `Mercoa.RepresentativeRequest` +**request:** `Mercoa.RepresentativeUpdateRequest`
diff --git a/src/api/resources/bankLookup/client/Client.ts b/src/api/resources/bankLookup/client/Client.ts index 98aabdf..381d7ce 100644 --- a/src/api/resources/bankLookup/client/Client.ts +++ b/src/api/resources/bankLookup/client/Client.ts @@ -68,8 +68,8 @@ export class BankLookup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 db288ff..ef8b3f5 100644 --- a/src/api/resources/calculate/client/Client.ts +++ b/src/api/resources/calculate/client/Client.ts @@ -67,8 +67,8 @@ export class Calculate { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -212,8 +212,8 @@ export class Calculate { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 d2ec2f1..cc527e2 100644 --- a/src/api/resources/customPaymentMethodSchema/client/Client.ts +++ b/src/api/resources/customPaymentMethodSchema/client/Client.ts @@ -61,8 +61,8 @@ export class CustomPaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -264,8 +264,8 @@ export class CustomPaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -474,8 +474,8 @@ export class CustomPaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -619,8 +619,8 @@ export class CustomPaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -761,8 +761,8 @@ export class CustomPaymentMethodSchema { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 3a8bbae..3178b7d 100644 --- a/src/api/resources/entity/client/Client.ts +++ b/src/api/resources/entity/client/Client.ts @@ -125,8 +125,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -312,8 +312,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -459,8 +459,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -631,8 +631,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -769,8 +769,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -904,8 +904,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1038,8 +1038,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1179,8 +1179,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1330,8 +1330,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1487,8 +1487,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1645,8 +1645,8 @@ export class Entity { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 e0f743c..11e61b3 100644 --- a/src/api/resources/entity/resources/approvalPolicy/client/Client.ts +++ b/src/api/resources/entity/resources/approvalPolicy/client/Client.ts @@ -63,8 +63,8 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -234,8 +234,8 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -379,8 +379,8 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -554,8 +554,8 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -699,8 +699,8 @@ export class ApprovalPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 1465f8b..a05df69 100644 --- a/src/api/resources/entity/resources/counterparty/client/Client.ts +++ b/src/api/resources/entity/resources/counterparty/client/Client.ts @@ -107,8 +107,8 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -292,8 +292,8 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -445,8 +445,8 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -585,8 +585,8 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -733,8 +733,8 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -873,8 +873,8 @@ export class Counterparty { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 295d744..85b329d 100644 --- a/src/api/resources/entity/resources/customization/client/Client.ts +++ b/src/api/resources/entity/resources/customization/client/Client.ts @@ -63,8 +63,8 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -232,8 +232,8 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 f378305..7d0510c 100644 --- a/src/api/resources/entity/resources/document/client/Client.ts +++ b/src/api/resources/entity/resources/document/client/Client.ts @@ -75,8 +75,8 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -221,8 +221,8 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -361,8 +361,8 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 55f5f10..b48a522 100644 --- a/src/api/resources/entity/resources/emailLog/client/Client.ts +++ b/src/api/resources/entity/resources/emailLog/client/Client.ts @@ -87,8 +87,8 @@ export class EmailLog { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -232,8 +232,8 @@ export class EmailLog { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 a2ac6f3..eb3b2e6 100644 --- a/src/api/resources/entity/resources/externalAccountingSystem/client/Client.ts +++ b/src/api/resources/entity/resources/externalAccountingSystem/client/Client.ts @@ -63,8 +63,8 @@ export class ExternalAccountingSystem { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -210,8 +210,8 @@ export class ExternalAccountingSystem { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -355,8 +355,8 @@ export class ExternalAccountingSystem { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -517,8 +517,8 @@ export class ExternalAccountingSystem { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 4084086..8792ebb 100644 --- a/src/api/resources/entity/resources/invoice/client/Client.ts +++ b/src/api/resources/entity/resources/invoice/client/Client.ts @@ -237,8 +237,8 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -499,8 +499,8 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/entity/resources/metadata/client/Client.ts b/src/api/resources/entity/resources/metadata/client/Client.ts index 96c98f9..d9b9e47 100644 --- a/src/api/resources/entity/resources/metadata/client/Client.ts +++ b/src/api/resources/entity/resources/metadata/client/Client.ts @@ -63,8 +63,8 @@ export class Metadata { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -210,8 +210,8 @@ export class Metadata { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -359,8 +359,8 @@ export class Metadata { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -504,8 +504,8 @@ export class Metadata { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 0ec1d9b..17c4099 100644 --- a/src/api/resources/entity/resources/notificationPolicy/client/Client.ts +++ b/src/api/resources/entity/resources/notificationPolicy/client/Client.ts @@ -63,8 +63,8 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -212,8 +212,8 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -375,8 +375,8 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 7d6cc7d..ed9d906 100644 --- a/src/api/resources/entity/resources/paymentMethod/client/Client.ts +++ b/src/api/resources/entity/resources/paymentMethod/client/Client.ts @@ -78,8 +78,8 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -272,8 +272,8 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -415,8 +415,8 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -565,8 +565,8 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -710,8 +710,8 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -851,8 +851,8 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1001,8 +1001,8 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1150,8 +1150,8 @@ export class PaymentMethod { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 c4b3394..137ca2b 100644 --- a/src/api/resources/entity/resources/representative/client/Client.ts +++ b/src/api/resources/entity/resources/representative/client/Client.ts @@ -63,8 +63,8 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -236,8 +236,8 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -379,8 +379,8 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -491,7 +491,7 @@ export class Representative { /** * @param {Mercoa.EntityId} entityId - Entity ID or Entity ForeignID * @param {Mercoa.RepresentativeId} representativeId - * @param {Mercoa.RepresentativeRequest} request + * @param {Mercoa.RepresentativeUpdateRequest} request * @param {Representative.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Mercoa.BadRequest} @@ -541,7 +541,7 @@ export class Representative { public async update( entityId: Mercoa.EntityId, representativeId: Mercoa.RepresentativeId, - request: Mercoa.RepresentativeRequest, + request: Mercoa.RepresentativeUpdateRequest, requestOptions?: Representative.RequestOptions ): Promise { const _response = await core.fetcher({ @@ -556,15 +556,15 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", requestType: "json", - body: serializers.RepresentativeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + body: serializers.RepresentativeUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -699,8 +699,8 @@ export class Representative { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 c5f4bb8..e1edde2 100644 --- a/src/api/resources/entity/resources/user/client/Client.ts +++ b/src/api/resources/entity/resources/user/client/Client.ts @@ -65,8 +65,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -243,8 +243,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -389,8 +389,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -534,8 +534,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -685,8 +685,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -830,8 +830,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -973,8 +973,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 fb804c2..2f02ddc 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 @@ -67,8 +67,8 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -221,8 +221,8 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -383,8 +383,8 @@ export class NotificationPolicy { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 0e312e2..fd79f0a 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 @@ -101,8 +101,8 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -246,8 +246,8 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -396,8 +396,8 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 d5cee92..fb08500 100644 --- a/src/api/resources/entityGroup/client/Client.ts +++ b/src/api/resources/entityGroup/client/Client.ts @@ -75,8 +75,8 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -221,8 +221,8 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -370,8 +370,8 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -518,8 +518,8 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -659,8 +659,8 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -800,8 +800,8 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -945,8 +945,8 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1090,8 +1090,8 @@ export class EntityGroup { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 821f565..e2bc51b 100644 --- a/src/api/resources/entityGroup/resources/invoice/client/Client.ts +++ b/src/api/resources/entityGroup/resources/invoice/client/Client.ts @@ -205,8 +205,8 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -469,8 +469,8 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/entityGroup/resources/user/client/Client.ts b/src/api/resources/entityGroup/resources/user/client/Client.ts index 4858321..474ceb8 100644 --- a/src/api/resources/entityGroup/resources/user/client/Client.ts +++ b/src/api/resources/entityGroup/resources/user/client/Client.ts @@ -101,8 +101,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -255,8 +255,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -400,8 +400,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -557,8 +557,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -702,8 +702,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -845,8 +845,8 @@ export class User { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/entityTypes/types/RepresentativeUpdateRequest.ts b/src/api/resources/entityTypes/types/RepresentativeUpdateRequest.ts new file mode 100644 index 0000000..52ddd86 --- /dev/null +++ b/src/api/resources/entityTypes/types/RepresentativeUpdateRequest.ts @@ -0,0 +1,52 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Mercoa from "../../../index"; + +/** + * @example + * { + * name: { + * firstName: "John", + * middleName: "Quincy", + * lastName: "Adams", + * suffix: "Jr." + * }, + * phone: { + * countryCode: "1", + * number: "4155551234" + * }, + * email: "john.doe@acme.com", + * address: { + * addressLine1: "123 Main St", + * addressLine2: "Unit 1", + * city: "San Francisco", + * stateOrProvince: "CA", + * postalCode: "94105", + * country: "US" + * }, + * birthDate: { + * day: "1", + * month: "1", + * year: "1980" + * }, + * governmentId: { + * ssn: "123-45-6789" + * }, + * responsibilities: { + * isOwner: true, + * ownershipPercentage: 40, + * isController: true + * } + * } + */ +export interface RepresentativeUpdateRequest { + name?: Mercoa.FullName; + phone?: Mercoa.PhoneNumber; + email?: string; + address?: Mercoa.Address; + birthDate?: Mercoa.BirthDate; + governmentId?: Mercoa.IndividualGovernmentId; + responsibilities?: Mercoa.Responsibilities; +} diff --git a/src/api/resources/entityTypes/types/index.ts b/src/api/resources/entityTypes/types/index.ts index ea2ff5a..f03f397 100644 --- a/src/api/resources/entityTypes/types/index.ts +++ b/src/api/resources/entityTypes/types/index.ts @@ -39,6 +39,7 @@ export * from "./CounterpartyResponse"; export * from "./CounterpartyInvoiceMetricsResponse"; export * from "./CounterpartyInvoiceMetricsStatusResponse"; export * from "./RepresentativeRequest"; +export * from "./RepresentativeUpdateRequest"; export * from "./RepresentativeResponse"; export * from "./Responsibilities"; export * from "./EntityUserRequest"; diff --git a/src/api/resources/invoice/client/Client.ts b/src/api/resources/invoice/client/Client.ts index 54792dd..5e1bf1f 100644 --- a/src/api/resources/invoice/client/Client.ts +++ b/src/api/resources/invoice/client/Client.ts @@ -236,8 +236,8 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -382,6 +382,7 @@ export class Invoice { * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { @@ -443,8 +444,8 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -582,8 +583,8 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -729,6 +730,7 @@ export class Invoice { * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { @@ -774,8 +776,8 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -912,8 +914,8 @@ export class Invoice { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/invoice/resources/approval/client/Client.ts b/src/api/resources/invoice/resources/approval/client/Client.ts index 05cb8d6..d1a4115 100644 --- a/src/api/resources/invoice/resources/approval/client/Client.ts +++ b/src/api/resources/invoice/resources/approval/client/Client.ts @@ -68,8 +68,8 @@ export class Approval { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -207,8 +207,8 @@ export class Approval { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -346,8 +346,8 @@ export class Approval { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 7a40853..7c9e5bb 100644 --- a/src/api/resources/invoice/resources/comment/client/Client.ts +++ b/src/api/resources/invoice/resources/comment/client/Client.ts @@ -63,8 +63,8 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -208,8 +208,8 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -351,8 +351,8 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -500,8 +500,8 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -645,8 +645,8 @@ export class Comment { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 48fa35e..685079a 100644 --- a/src/api/resources/invoice/resources/document/client/Client.ts +++ b/src/api/resources/invoice/resources/document/client/Client.ts @@ -63,8 +63,8 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -207,8 +207,8 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -347,8 +347,8 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -482,8 +482,8 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -622,8 +622,8 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -762,8 +762,8 @@ export class Document { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 325aac5..141a915 100644 --- a/src/api/resources/invoice/resources/lineItem/client/Client.ts +++ b/src/api/resources/invoice/resources/lineItem/client/Client.ts @@ -79,8 +79,8 @@ export class LineItem { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 b59b422..eaf2e1d 100644 --- a/src/api/resources/invoice/resources/paymentLinks/client/Client.ts +++ b/src/api/resources/invoice/resources/paymentLinks/client/Client.ts @@ -63,8 +63,8 @@ export class PaymentLinks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -213,8 +213,8 @@ export class PaymentLinks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -349,8 +349,8 @@ export class PaymentLinks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -489,8 +489,8 @@ export class PaymentLinks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/invoiceTypes/types/FindInvoiceResponse.ts b/src/api/resources/invoiceTypes/types/FindInvoiceResponse.ts index e7b143a..c7b2492 100644 --- a/src/api/resources/invoiceTypes/types/FindInvoiceResponse.ts +++ b/src/api/resources/invoiceTypes/types/FindInvoiceResponse.ts @@ -198,6 +198,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { diff --git a/src/api/resources/invoiceTypes/types/InvoiceCreationRequest.ts b/src/api/resources/invoiceTypes/types/InvoiceCreationRequest.ts index c8b4a75..5301ddc 100644 --- a/src/api/resources/invoiceTypes/types/InvoiceCreationRequest.ts +++ b/src/api/resources/invoiceTypes/types/InvoiceCreationRequest.ts @@ -29,6 +29,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { diff --git a/src/api/resources/invoiceTypes/types/InvoiceLineItemCategory.ts b/src/api/resources/invoiceTypes/types/InvoiceLineItemCategory.ts new file mode 100644 index 0000000..df9b24d --- /dev/null +++ b/src/api/resources/invoiceTypes/types/InvoiceLineItemCategory.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type InvoiceLineItemCategory = "EXPENSE" | "REVENUE" | "TAX" | "SHIPPING" | "DISCOUNT" | "OTHER"; + +export const InvoiceLineItemCategory = { + Expense: "EXPENSE", + Revenue: "REVENUE", + Tax: "TAX", + Shipping: "SHIPPING", + Discount: "DISCOUNT", + Other: "OTHER", +} as const; diff --git a/src/api/resources/invoiceTypes/types/InvoiceLineItemCreationRequest.ts b/src/api/resources/invoiceTypes/types/InvoiceLineItemCreationRequest.ts index 75d5360..2ce3d28 100644 --- a/src/api/resources/invoiceTypes/types/InvoiceLineItemCreationRequest.ts +++ b/src/api/resources/invoiceTypes/types/InvoiceLineItemCreationRequest.ts @@ -13,6 +13,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { diff --git a/src/api/resources/invoiceTypes/types/InvoiceLineItemRequestBase.ts b/src/api/resources/invoiceTypes/types/InvoiceLineItemRequestBase.ts index ebe60a5..fa7c431 100644 --- a/src/api/resources/invoiceTypes/types/InvoiceLineItemRequestBase.ts +++ b/src/api/resources/invoiceTypes/types/InvoiceLineItemRequestBase.ts @@ -11,6 +11,8 @@ export interface InvoiceLineItemRequestBase { quantity?: number; /** Unit price of the line item in major units. If the entered amount has more decimal places than the currency supports, trailing decimals will be truncated. */ unitPrice?: number; + /** Category of the line item. Defaults to EXPENSE. */ + category?: Mercoa.InvoiceLineItemCategory; serviceStartDate?: Date; serviceEndDate?: Date; metadata?: Record; diff --git a/src/api/resources/invoiceTypes/types/InvoiceLineItemResponse.ts b/src/api/resources/invoiceTypes/types/InvoiceLineItemResponse.ts index 5ae5612..c4d9b65 100644 --- a/src/api/resources/invoiceTypes/types/InvoiceLineItemResponse.ts +++ b/src/api/resources/invoiceTypes/types/InvoiceLineItemResponse.ts @@ -14,6 +14,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { @@ -35,6 +36,7 @@ export interface InvoiceLineItemResponse { quantity?: number; /** Unit price of line item in major units. */ unitPrice?: number; + category: Mercoa.InvoiceLineItemCategory; serviceStartDate?: Date; serviceEndDate?: Date; metadata?: Record; diff --git a/src/api/resources/invoiceTypes/types/InvoiceLineItemUpdateRequest.ts b/src/api/resources/invoiceTypes/types/InvoiceLineItemUpdateRequest.ts index abceb12..5a3b58b 100644 --- a/src/api/resources/invoiceTypes/types/InvoiceLineItemUpdateRequest.ts +++ b/src/api/resources/invoiceTypes/types/InvoiceLineItemUpdateRequest.ts @@ -14,6 +14,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { diff --git a/src/api/resources/invoiceTypes/types/InvoiceResponse.ts b/src/api/resources/invoiceTypes/types/InvoiceResponse.ts index c6be2d6..73e75de 100644 --- a/src/api/resources/invoiceTypes/types/InvoiceResponse.ts +++ b/src/api/resources/invoiceTypes/types/InvoiceResponse.ts @@ -195,6 +195,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { @@ -381,6 +382,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { diff --git a/src/api/resources/invoiceTypes/types/InvoiceUpdateRequest.ts b/src/api/resources/invoiceTypes/types/InvoiceUpdateRequest.ts index b8ebd75..821ab9b 100644 --- a/src/api/resources/invoiceTypes/types/InvoiceUpdateRequest.ts +++ b/src/api/resources/invoiceTypes/types/InvoiceUpdateRequest.ts @@ -30,6 +30,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { diff --git a/src/api/resources/invoiceTypes/types/index.ts b/src/api/resources/invoiceTypes/types/index.ts index 17ea4e2..9bf2cc6 100644 --- a/src/api/resources/invoiceTypes/types/index.ts +++ b/src/api/resources/invoiceTypes/types/index.ts @@ -16,6 +16,7 @@ export * from "./AddApproverRequest"; export * from "./ApprovalSlotAssignment"; export * from "./ApprovalSlot"; export * from "./ApproverAction"; +export * from "./InvoiceLineItemCategory"; export * from "./InvoiceLineItemResponse"; export * from "./InvoiceLineItemRequestBase"; export * from "./InvoiceLineItemCreationRequest"; diff --git a/src/api/resources/ocr/client/Client.ts b/src/api/resources/ocr/client/Client.ts index 04ad40b..443f102 100644 --- a/src/api/resources/ocr/client/Client.ts +++ b/src/api/resources/ocr/client/Client.ts @@ -65,8 +65,8 @@ export class Ocr { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -211,8 +211,8 @@ export class Ocr { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -349,8 +349,8 @@ export class Ocr { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/ocr/types/OcrResponse.ts b/src/api/resources/ocr/types/OcrResponse.ts index ae8f2d3..3254c67 100644 --- a/src/api/resources/ocr/types/OcrResponse.ts +++ b/src/api/resources/ocr/types/OcrResponse.ts @@ -135,6 +135,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { diff --git a/src/api/resources/organization/client/Client.ts b/src/api/resources/organization/client/Client.ts index 6bc11ed..ec82a4e 100644 --- a/src/api/resources/organization/client/Client.ts +++ b/src/api/resources/organization/client/Client.ts @@ -110,8 +110,8 @@ export class Organization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -265,8 +265,8 @@ export class Organization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -429,8 +429,8 @@ export class Organization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 f36eb9a..629068a 100644 --- a/src/api/resources/organization/resources/notificationConfiguration/client/Client.ts +++ b/src/api/resources/organization/resources/notificationConfiguration/client/Client.ts @@ -61,8 +61,8 @@ export class NotificationConfiguration { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -203,8 +203,8 @@ export class NotificationConfiguration { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -350,8 +350,8 @@ export class NotificationConfiguration { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -495,8 +495,8 @@ export class NotificationConfiguration { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "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 5e84657..ee7df71 100644 --- a/src/api/resources/paymentMethods/client/Client.ts +++ b/src/api/resources/paymentMethods/client/Client.ts @@ -97,8 +97,8 @@ export class PaymentMethods { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mercoa/javascript", - "X-Fern-SDK-Version": "0.5.6", - "User-Agent": "@mercoa/javascript/0.5.6", + "X-Fern-SDK-Version": "0.5.7", + "User-Agent": "@mercoa/javascript/0.5.7", "X-API-Version": requestOptions?.xApiVersion ?? this._options?.xApiVersion ?? "2024-08-01", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/webhooks/types/InvoiceEmailWebhook.ts b/src/api/resources/webhooks/types/InvoiceEmailWebhook.ts index 367b93f..ca00f5d 100644 --- a/src/api/resources/webhooks/types/InvoiceEmailWebhook.ts +++ b/src/api/resources/webhooks/types/InvoiceEmailWebhook.ts @@ -197,6 +197,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { diff --git a/src/api/resources/webhooks/types/InvoiceWebhook.ts b/src/api/resources/webhooks/types/InvoiceWebhook.ts index ee74099..697f499 100644 --- a/src/api/resources/webhooks/types/InvoiceWebhook.ts +++ b/src/api/resources/webhooks/types/InvoiceWebhook.ts @@ -197,6 +197,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { @@ -456,6 +457,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { @@ -715,6 +717,7 @@ import * as Mercoa from "../../../index"; * name: "Product A", * quantity: 1, * unitPrice: 100, + * category: Mercoa.InvoiceLineItemCategory.Expense, * serviceStartDate: new Date("2021-01-01T00:00:00.000Z"), * serviceEndDate: new Date("2021-01-31T00:00:00.000Z"), * metadata: { diff --git a/src/serialization/resources/entityTypes/types/RepresentativeUpdateRequest.ts b/src/serialization/resources/entityTypes/types/RepresentativeUpdateRequest.ts new file mode 100644 index 0000000..d22cc19 --- /dev/null +++ b/src/serialization/resources/entityTypes/types/RepresentativeUpdateRequest.ts @@ -0,0 +1,38 @@ +/** + * 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"; +import { FullName } from "../../commons/types/FullName"; +import { PhoneNumber } from "../../commons/types/PhoneNumber"; +import { Address } from "../../commons/types/Address"; +import { BirthDate } from "../../commons/types/BirthDate"; +import { IndividualGovernmentId } from "../../commons/types/IndividualGovernmentId"; +import { Responsibilities } from "./Responsibilities"; + +export const RepresentativeUpdateRequest: core.serialization.ObjectSchema< + serializers.RepresentativeUpdateRequest.Raw, + Mercoa.RepresentativeUpdateRequest +> = core.serialization.object({ + name: FullName.optional(), + phone: PhoneNumber.optional(), + email: core.serialization.string().optional(), + address: Address.optional(), + birthDate: BirthDate.optional(), + governmentId: core.serialization.property("governmentID", IndividualGovernmentId.optional()), + responsibilities: Responsibilities.optional(), +}); + +export declare namespace RepresentativeUpdateRequest { + interface Raw { + name?: FullName.Raw | null; + phone?: PhoneNumber.Raw | null; + email?: string | null; + address?: Address.Raw | null; + birthDate?: BirthDate.Raw | null; + governmentID?: IndividualGovernmentId.Raw | null; + responsibilities?: Responsibilities.Raw | null; + } +} diff --git a/src/serialization/resources/entityTypes/types/index.ts b/src/serialization/resources/entityTypes/types/index.ts index ea2ff5a..f03f397 100644 --- a/src/serialization/resources/entityTypes/types/index.ts +++ b/src/serialization/resources/entityTypes/types/index.ts @@ -39,6 +39,7 @@ export * from "./CounterpartyResponse"; export * from "./CounterpartyInvoiceMetricsResponse"; export * from "./CounterpartyInvoiceMetricsStatusResponse"; export * from "./RepresentativeRequest"; +export * from "./RepresentativeUpdateRequest"; export * from "./RepresentativeResponse"; export * from "./Responsibilities"; export * from "./EntityUserRequest"; diff --git a/src/serialization/resources/invoiceTypes/types/InvoiceLineItemCategory.ts b/src/serialization/resources/invoiceTypes/types/InvoiceLineItemCategory.ts new file mode 100644 index 0000000..dd553db --- /dev/null +++ b/src/serialization/resources/invoiceTypes/types/InvoiceLineItemCategory.ts @@ -0,0 +1,16 @@ +/** + * 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 InvoiceLineItemCategory: core.serialization.Schema< + serializers.InvoiceLineItemCategory.Raw, + Mercoa.InvoiceLineItemCategory +> = core.serialization.enum_(["EXPENSE", "REVENUE", "TAX", "SHIPPING", "DISCOUNT", "OTHER"]); + +export declare namespace InvoiceLineItemCategory { + type Raw = "EXPENSE" | "REVENUE" | "TAX" | "SHIPPING" | "DISCOUNT" | "OTHER"; +} diff --git a/src/serialization/resources/invoiceTypes/types/InvoiceLineItemRequestBase.ts b/src/serialization/resources/invoiceTypes/types/InvoiceLineItemRequestBase.ts index aaf907b..a1c7ccd 100644 --- a/src/serialization/resources/invoiceTypes/types/InvoiceLineItemRequestBase.ts +++ b/src/serialization/resources/invoiceTypes/types/InvoiceLineItemRequestBase.ts @@ -6,6 +6,7 @@ import * as serializers from "../../../index"; import * as Mercoa from "../../../../api/index"; import * as core from "../../../../core"; import { CurrencyCode } from "../../paymentMethodTypes/types/CurrencyCode"; +import { InvoiceLineItemCategory } from "./InvoiceLineItemCategory"; export const InvoiceLineItemRequestBase: core.serialization.ObjectSchema< serializers.InvoiceLineItemRequestBase.Raw, @@ -15,6 +16,7 @@ export const InvoiceLineItemRequestBase: core.serialization.ObjectSchema< name: core.serialization.string().optional(), quantity: core.serialization.number().optional(), unitPrice: core.serialization.number().optional(), + category: InvoiceLineItemCategory.optional(), serviceStartDate: core.serialization.date().optional(), serviceEndDate: core.serialization.date().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), @@ -27,6 +29,7 @@ export declare namespace InvoiceLineItemRequestBase { name?: string | null; quantity?: number | null; unitPrice?: number | null; + category?: InvoiceLineItemCategory.Raw | null; serviceStartDate?: string | null; serviceEndDate?: string | null; metadata?: Record | null; diff --git a/src/serialization/resources/invoiceTypes/types/InvoiceLineItemResponse.ts b/src/serialization/resources/invoiceTypes/types/InvoiceLineItemResponse.ts index a9eff30..051f44f 100644 --- a/src/serialization/resources/invoiceTypes/types/InvoiceLineItemResponse.ts +++ b/src/serialization/resources/invoiceTypes/types/InvoiceLineItemResponse.ts @@ -7,6 +7,7 @@ import * as Mercoa from "../../../../api/index"; import * as core from "../../../../core"; import { InvoiceLineItemId } from "./InvoiceLineItemId"; import { CurrencyCode } from "../../paymentMethodTypes/types/CurrencyCode"; +import { InvoiceLineItemCategory } from "./InvoiceLineItemCategory"; export const InvoiceLineItemResponse: core.serialization.ObjectSchema< serializers.InvoiceLineItemResponse.Raw, @@ -19,6 +20,7 @@ export const InvoiceLineItemResponse: core.serialization.ObjectSchema< name: core.serialization.string().optional(), quantity: core.serialization.number().optional(), unitPrice: core.serialization.number().optional(), + category: InvoiceLineItemCategory, serviceStartDate: core.serialization.date().optional(), serviceEndDate: core.serialization.date().optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), @@ -36,6 +38,7 @@ export declare namespace InvoiceLineItemResponse { name?: string | null; quantity?: number | null; unitPrice?: number | null; + category: InvoiceLineItemCategory.Raw; serviceStartDate?: string | null; serviceEndDate?: string | null; metadata?: Record | null; diff --git a/src/serialization/resources/invoiceTypes/types/index.ts b/src/serialization/resources/invoiceTypes/types/index.ts index 17ea4e2..9bf2cc6 100644 --- a/src/serialization/resources/invoiceTypes/types/index.ts +++ b/src/serialization/resources/invoiceTypes/types/index.ts @@ -16,6 +16,7 @@ export * from "./AddApproverRequest"; export * from "./ApprovalSlotAssignment"; export * from "./ApprovalSlot"; export * from "./ApproverAction"; +export * from "./InvoiceLineItemCategory"; export * from "./InvoiceLineItemResponse"; export * from "./InvoiceLineItemRequestBase"; export * from "./InvoiceLineItemCreationRequest"; diff --git a/yarn.lock b/yarn.lock index f8fba2c..209cc92 100644 --- a/yarn.lock +++ b/yarn.lock @@ -44,12 +44,12 @@ json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.25.0", "@babel/generator@^7.25.4", "@babel/generator@^7.7.2": - version "7.25.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.5.tgz#b31cf05b3fe8c32d206b6dad03bb0aacbde73450" - integrity sha512-abd43wyLfbWoxC6ahM8xTkqLpGB2iWBVyuKC9/srhFunCd1SDNrV1s72bBpK4hLj8KLzHBBcOblvLQZBNw9r3w== +"@babel/generator@^7.25.0", "@babel/generator@^7.25.6", "@babel/generator@^7.7.2": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.6.tgz#0df1ad8cb32fe4d2b01d8bf437f153d19342a87c" + integrity sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw== dependencies: - "@babel/types" "^7.25.4" + "@babel/types" "^7.25.6" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" @@ -112,12 +112,12 @@ integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== "@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== + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.6.tgz#57ee60141829ba2e102f30711ffe3afab357cc60" + integrity sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q== dependencies: "@babel/template" "^7.25.0" - "@babel/types" "^7.25.0" + "@babel/types" "^7.25.6" "@babel/highlight@^7.24.7": version "7.24.7" @@ -129,12 +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.25.0", "@babel/parser@^7.25.4": - version "7.25.4" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.4.tgz#af4f2df7d02440286b7de57b1c21acfb2a6f257a" - integrity sha512-nq+eWrOgdtu3jG5Os4TQP3x3cLA8hR8TvJNjD8vnPa20WGycimcparWnLK4jJhElTK6SDyuJo1weMKO/5LpmLA== +"@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.6": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f" + integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q== dependencies: - "@babel/types" "^7.25.4" + "@babel/types" "^7.25.6" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -165,11 +165,11 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-import-attributes@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz#b4f9ea95a79e6912480c4b626739f86a076624ca" - integrity sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A== + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.6.tgz#6d4c78f042db0e82fd6436cd65fec5dc78ad2bde" + integrity sha512-sXaDXaJN9SNLymBdlWFA+bjzBhFD617ZaFiY13dGt7TVslVvVgA6fkZOP7Ki3IGElC45lwHdOTrCtKZGVAWeLQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-syntax-import-meta@^7.10.4": version "7.10.4" @@ -256,9 +256,9 @@ "@babel/helper-plugin-utils" "^7.24.8" "@babel/runtime@^7.0.0": - version "7.25.4" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.25.4.tgz#6ef37d678428306e7d75f054d5b1bdb8cf8aa8ee" - integrity sha512-DSgLeL/FNcpXuzav5wfYvHCGvynXkJbn3Zvc3823AEe9nPwW9IK4UoCSS5yGymmQzN0pCPvivtgS6/8U2kkm1w== + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.25.6.tgz#9afc3289f7184d8d7f98b099884c26317b9264d2" + integrity sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ== dependencies: regenerator-runtime "^0.14.0" @@ -272,22 +272,22 @@ "@babel/types" "^7.25.0" "@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2": - version "7.25.4" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.4.tgz#648678046990f2957407e3086e97044f13c3e18e" - integrity sha512-VJ4XsrD+nOvlXyLzmLzUs/0qjFS4sK30te5yEFlvbbUNEgKaVb2BHZUpAL+ttLPQAHNrsI3zZisbfha5Cvr8vg== + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.6.tgz#04fad980e444f182ecf1520504941940a90fea41" + integrity sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ== dependencies: "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.25.4" - "@babel/parser" "^7.25.4" + "@babel/generator" "^7.25.6" + "@babel/parser" "^7.25.6" "@babel/template" "^7.25.0" - "@babel/types" "^7.25.4" + "@babel/types" "^7.25.6" 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.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.4", "@babel/types@^7.3.3": - version "7.25.4" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.4.tgz#6bcb46c72fdf1012a209d016c07f769e10adcb5f" - integrity sha512-zQ1ijeeCXVEh+aNL0RlmkPkG8HUiDcU2pzQQFjtbntgAczRASFzj4H+6+bV+dy1ntKR14I/DypeuRG1uma98iQ== +"@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.25.6", "@babel/types@^7.3.3": + version "7.25.6" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6" + integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw== dependencies: "@babel/helper-string-parser" "^7.24.8" "@babel/helper-validator-identifier" "^7.24.7" @@ -647,9 +647,9 @@ form-data "^4.0.0" "@types/node@*": - version "22.5.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.0.tgz#10f01fe9465166b4cab72e75f60d8b99d019f958" - integrity sha512-DkFrJOe+rfdHTqqMg0bSNlGlQ85hSoh2TPzZyhHsXnMtligRWpxUySiyw8FY14ITt24HVCiQPWxS3KO/QlGmWg== + version "22.5.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.2.tgz#e42344429702e69e28c839a7e16a8262a8086793" + integrity sha512-acJsPTEqYqulZS/Yp/S3GgeE6GZ0qYODUR8aVr/DkhHQ8l9nd4j5x1/ZJy9/gHrRlFMqkO6i0I3E27Alu4jjPg== dependencies: undici-types "~6.19.2" @@ -912,9 +912,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001646: - version "1.0.30001653" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001653.tgz#b8af452f8f33b1c77f122780a4aecebea0caca56" - integrity sha512-XGWQVB8wFQ2+9NZwZ10GxTYC5hk0Fa+q8cSkr0tgvMhYhMHP/QC+WTgrePMDBWiWc/pV+1ik82Al20XOK25Gcw== + version "1.0.30001655" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz#0ce881f5a19a2dcfda2ecd927df4d5c1684b982f" + integrity sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg== chalk@^2.4.2: version "2.4.2" @@ -1154,9 +1154,9 @@ es-errors@^1.3.0: integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== escalade@^3.1.1, escalade@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" - integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== escape-string-regexp@^1.0.5: version "1.0.5" @@ -2239,9 +2239,9 @@ path-to-regexp@^2.2.1: integrity sha512-G6zHoVqC6GGTQkZwF4lkuEyMbVOjoBKAEybQUypI1WTkqinCOrq2x6U2+phkJ1XsEMTy4LjtwPI7HW+NVrRR2w== picocolors@^1.0.0, picocolors@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" - integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== + version "1.1.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" + integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1"