Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jan 6, 2025
1 parent 4fd5aed commit e51ee48
Show file tree
Hide file tree
Showing 61 changed files with 832 additions and 751 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Monite TypeScript Library

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fteam-monite%2Fmonite-node-client)
[![npm shield](https://img.shields.io/npm/v/monite)](https://www.npmjs.com/package/monite)
[![npm shield](https://img.shields.io/npm/v/@monite/node-client)](https://www.npmjs.com/package/@monite/node-client)

The Monite TypeScript library provides convenient access to the Monite API from TypeScript.

Expand All @@ -12,7 +12,7 @@ API reference documentation is available [here](https://docs.monite.com/api).
## Installation

```sh
npm i -s monite
npm i -s @monite/node-client
```

## Reference
Expand All @@ -24,7 +24,7 @@ A full reference for this library is available [here](./reference.md).
Instantiate and use the client with the following:

```typescript
import { MoniteClient } from "monite";
import { MoniteClient } from "@monite/node-client";

const client = new MoniteClient({
token: "YOUR_TOKEN",
Expand All @@ -42,7 +42,7 @@ The SDK exports all request and response types as TypeScript interfaces. Simply
following namespace:

```typescript
import { Monite } from "monite";
import { Monite } from "@monite/node-client";

const request: Monite.GetAnalyticsPayablesRequest = {
...
Expand All @@ -55,7 +55,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
will be thrown.

```typescript
import { MoniteError } from "monite";
import { MoniteError } from "@monite/node-client";

try {
await client.products.create(...);
Expand Down Expand Up @@ -142,7 +142,7 @@ The SDK provides a way for your to customize the underlying HTTP client / Fetch
unsupported environment, this provides a way for you to break glass and ensure the SDK works.

```typescript
import { MoniteClient } from "monite";
import { MoniteClient } from "@monite/node-client";

const client = new MoniteClient({
...
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "monite",
"name": "@monite/node-client",
"version": "0.1.0",
"private": false,
"repository": "https://github.com/team-monite/monite-node-client",
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/accessTokens/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export class AccessTokens {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -154,9 +154,9 @@ export class AccessTokens {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/accounting/resources/connections/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ export class Connections {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -140,9 +140,9 @@ export class Connections {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -217,9 +217,9 @@ export class Connections {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -295,9 +295,9 @@ export class Connections {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -371,9 +371,9 @@ export class Connections {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export class LedgerAccounts {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -163,9 +163,9 @@ export class LedgerAccounts {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export class Payables {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -159,9 +159,9 @@ export class Payables {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export class Receivables {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -159,9 +159,9 @@ export class Receivables {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ export class SyncedRecords {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -226,9 +226,9 @@ export class SyncedRecords {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -304,9 +304,9 @@ export class SyncedRecords {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export class TaxRates {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -163,9 +163,9 @@ export class TaxRates {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/analytics/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@ export class Analytics {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/approvalPolicies/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ export class ApprovalPolicies {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -270,9 +270,9 @@ export class ApprovalPolicies {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -356,9 +356,9 @@ export class ApprovalPolicies {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -440,9 +440,9 @@ export class ApprovalPolicies {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -530,9 +530,9 @@ export class ApprovalPolicies {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ export class Processes {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -160,9 +160,9 @@ export class Processes {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -251,9 +251,9 @@ export class Processes {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -342,9 +342,9 @@ export class Processes {
? await core.Supplier.get(this._options.moniteEntityId)
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "monite",
"X-Fern-SDK-Name": "@monite/node-client",
"X-Fern-SDK-Version": "0.1.0",
"User-Agent": "monite/0.1.0",
"User-Agent": "@monite/node-client/0.1.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Loading

0 comments on commit e51ee48

Please sign in to comment.