Skip to content

Commit

Permalink
docs: update generated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
einaralex committed Aug 22, 2024
1 parent e1483b7 commit 3a1f3b9
Show file tree
Hide file tree
Showing 128 changed files with 1,944 additions and 1,439 deletions.
42 changes: 26 additions & 16 deletions packages/sdk-react-provider/docs/generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,45 @@

## Hooks

- [useAuth](functions/useAuth.md)
- [useAuthContext](functions/useAuthContext.md)
### Addresses

- [useAddress](functions/useAddress.md)
- [useAddresses](functions/useAddresses.md)
- [useBalances](functions/useBalances.md)
- [useLinkAddress](functions/useLinkAddress.md)

### Authentication

- [useAuth](functions/useAuth.md)

### IBANs

- [useIBAN](functions/useIBAN.md)
- [useIBANs](functions/useIBANs.md)
- [useMoveIban](functions/useMoveIban.md)
- [useRequestIban](functions/useRequestIban.md)

### Orders

- [useOrder](functions/useOrder.md)
- [useOrders](functions/useOrders.md)
- [usePlaceOrder](functions/usePlaceOrder.md)

### Profiles

- [useLinkAddress](functions/useLinkAddress.md)
- [useProfile](functions/useProfile.md)
- [useProfiles](functions/useProfiles.md)
- [useSubmitProfileDetails](functions/useSubmitProfileDetails.md)

### Other

- [useTokens](functions/useTokens.md)

## Variables

- [MoneriumContext](variables/MoneriumContext.md)
- [keys](variables/keys.md)

## Interfaces

- [AuthContext](interfaces/AuthContext.md)
- [Balances](interfaces/Balances.md)
- [LinkAddress](interfaces/LinkAddress.md)
- [Order](interfaces/Order.md)
- [Profile](interfaces/Profile.md)
- [Token](interfaces/Token.md)

## Type Aliases

- [AuthorizeParams](type-aliases/AuthorizeParams.md)
Expand All @@ -40,7 +54,3 @@
- [QueryResult](type-aliases/QueryResult.md)
- [SdkInstance](type-aliases/SdkInstance.md)
- [UseAuthReturn](type-aliases/UseAuthReturn.md)

## Enumerations

- [OrderState](enumerations/OrderState.md)

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@

## Defined in

[sdk-react-provider/src/lib/provider.tsx:19](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/provider.tsx#L19)
[provider.tsx:19](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/provider.tsx#L19)
42 changes: 42 additions & 0 deletions packages/sdk-react-provider/docs/generated/functions/useAddress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[Monerium SDK React Provider](../README.md) / useAddress

# Function: useAddress()

> **useAddress**(`params`: \{`address`: `string`;`query`: `{}`; \}): [`QueryResult`](../type-aliases/QueryResult.md)\<`"address"`, `Address`\>
# Get address

## Parameters

| Parameter | Type | Description |
| ---------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `params` | `object` | |
| `params.address` | `string` | Fetch a specific address. |
| `params.query`? | [`QueryOptions`](../type-aliases/QueryOptions.md)\<`Address`\> | See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options. |

## Returns

[`QueryResult`](../type-aliases/QueryResult.md)\<`"address"`, `Address`\>

## Example

```ts
const {
address, // useQuery's `data` property
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useAddress();
```

## See

[API Documentation](https://monerium.dev/api-docs-v2#tag/addresses/operation/address)

[Address interface](https://github.com/monerium/js-monorepo/blob/main/packages/sdk/docs/generated/interfaces/Address.md)

## Defined in

[hooks.tsx:311](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/hooks.tsx#L311)
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[Monerium SDK React Provider](../README.md) / useAddresses

# Function: useAddresses()

> **useAddresses**(`params`?: \{`chain`: `number` \| `Chain`;`profile`: `string`;`query`: `{}`; \}): [`QueryResult`](../type-aliases/QueryResult.md)\<`"addresses"`, `Address`[]\>
# Get addresses

## Parameters

| Parameter | Type | Description |
| ----------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `params`? | `object` | No required parameters. |
| `params.chain`? | `number` \| `Chain` | Fetch addresses for a specific chain. |
| `params.profile`? | `string` | Fetch addresses for a specific profile. |
| `params.query`? | [`QueryOptions`](../type-aliases/QueryOptions.md)\<`Address`[]\> | See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options. |

## Returns

[`QueryResult`](../type-aliases/QueryResult.md)\<`"addresses"`, `Address`[]\>

## Example

```ts
const {
addresses, // useQuery's `data` property
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useAddresses();
```

## See

[API Documentation](https://monerium.dev/api-docs-v2#tag/addresses/operation/addresses)

[Address interface](https://github.com/monerium/js-monorepo/blob/main/packages/sdk/docs/generated/interfaces/Address.md)

## Defined in

[hooks.tsx:368](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/hooks.tsx#L368)
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ authorize({ address, signature, chain }).

## Defined in

[sdk-react-provider/src/lib/hooks.tsx:85](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/hooks.tsx#L85)
[hooks.tsx:107](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/hooks.tsx#L107)

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

# Function: useBalances()

> **useBalances**(`params`?: \{`profileId`: `string`;`query`: [`QueryOptions`](../type-aliases/QueryOptions.md)\<[`Balances`](../interfaces/Balances.md)[]\>; \}): [`QueryResult`](../type-aliases/QueryResult.md)\<`"balances"`, [`Balances`](../interfaces/Balances.md)[]\>
> **useBalances**(`params`?: \{`profile`: `string`;`query`: [`QueryOptions`](../type-aliases/QueryOptions.md)\<`Balances`[]\>; \}): [`QueryResult`](../type-aliases/QueryResult.md)\<`"balances"`, `Balances`[]\>
# Get balances

## Parameters

| Parameter | Type | Description |
| ------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `params`? | `object` | No required parameters. |
| `params.profileId`? | `string` | Fetch balances for a specific profile. |
| `params.query`? | [`QueryOptions`](../type-aliases/QueryOptions.md)\<[`Balances`](../interfaces/Balances.md)[]\> | See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options. |
| Parameter | Type | Description |
| ----------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `params`? | `object` | No required parameters. |
| `params.profile`? | `string` | Fetch balances for a specific profile. |
| `params.query`? | [`QueryOptions`](../type-aliases/QueryOptions.md)\<`Balances`[]\> | See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options. |

## Returns

[`QueryResult`](../type-aliases/QueryResult.md)\<`"balances"`, [`Balances`](../interfaces/Balances.md)[]\>
[`QueryResult`](../type-aliases/QueryResult.md)\<`"balances"`, `Balances`[]\>

## Example

Expand All @@ -39,4 +39,4 @@ const {

## Defined in

[sdk-react-provider/src/lib/hooks.tsx:337](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/hooks.tsx#L337)
[hooks.tsx:425](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/hooks.tsx#L425)
42 changes: 42 additions & 0 deletions packages/sdk-react-provider/docs/generated/functions/useIBAN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[Monerium SDK React Provider](../README.md) / useIBAN

# Function: useIBAN()

> **useIBAN**(`params`: \{`iban`: `string`;`query`: [`QueryOptions`](../type-aliases/QueryOptions.md)\<`IBAN`\>; \}): [`QueryResult`](../type-aliases/QueryResult.md)\<`"iban"`, `IBAN`\>
# Get IBAN

## Parameters

| Parameter | Type | Description |
| --------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `params` | `object` | |
| `params.iban` | `string` | - |
| `params.query`? | [`QueryOptions`](../type-aliases/QueryOptions.md)\<`IBAN`\> | See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options. |

## Returns

[`QueryResult`](../type-aliases/QueryResult.md)\<`"iban"`, `IBAN`\>

## Example

```ts
const {
iban, // useQuery's `data` property
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useIBAN();
```

## See

[API Documentation](https://monerium.dev/api-docs-v2#tag/ibans/operation/iban)

[IBAN interface](https://github.com/monerium/js-monorepo/blob/main/packages/sdk/docs/generated/interfaces/IBAN.md)

## Defined in

[hooks.tsx:482](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/hooks.tsx#L482)
43 changes: 43 additions & 0 deletions packages/sdk-react-provider/docs/generated/functions/useIBANs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[Monerium SDK React Provider](../README.md) / useIBANs

# Function: useIBANs()

> **useIBANs**(`params`?: \{`chain`: `number` \| `Chain`;`profile`: `string`;`query`: `{}`; \}): [`QueryResult`](../type-aliases/QueryResult.md)\<`"ibans"`, `IBAN`[]\>
# Get IBANs

## Parameters

| Parameter | Type | Description |
| ----------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `params`? | `object` | No required parameters. |
| `params.chain`? | `number` \| `Chain` | Fetch IBANs for a specific chain. |
| `params.profile`? | `string` | Fetch IBANs for a specific profile. |
| `params.query`? | [`QueryOptions`](../type-aliases/QueryOptions.md)\<`IBAN`[]\> | See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options. |

## Returns

[`QueryResult`](../type-aliases/QueryResult.md)\<`"ibans"`, `IBAN`[]\>

## Example

```ts
const {
ibans, // useQuery's `data` property
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useIBANs();
```

## See

[API Documentation](https://monerium.dev/api-docs-v2#tag/ibans/operation/ibans)

[IBAN interface](https://github.com/monerium/js-monorepo/blob/main/packages/sdk/docs/generated/interfaces/IBAN.md)

## Defined in

[hooks.tsx:538](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/hooks.tsx#L538)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Function: useLinkAddress()

> **useLinkAddress**(`param`: \{`mutation`: [`MutationOptions`](../type-aliases/MutationOptions.md)\<`LinkedAddress`, `Error`, [`LinkAddress`](../interfaces/LinkAddress.md)\>;`profileId`: `string`; \}): [`MutationResult`](../type-aliases/MutationResult.md)\<`"linkAddress"`, `LinkedAddress`, `Error`, [`LinkAddress`](../interfaces/LinkAddress.md)\>
> **useLinkAddress**(`param`: \{`mutation`: [`MutationOptions`](../type-aliases/MutationOptions.md)\<\{`status`: `number`;`statusText`: `string`; \}, `Error`, `LinkAddress`\>;`profileId`: `string`; \}): [`MutationResult`](../type-aliases/MutationResult.md)\<`"linkAddress"`, \{`status`: `number`;`statusText`: `string`; \}, `Error`, `LinkAddress`\>
# Add address to profile.

Expand All @@ -13,12 +13,12 @@ When the address has been linked, the relevant profile query will be invalidated
| Parameter | Type | Description |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `param` | `object` | |
| `param.mutation`? | [`MutationOptions`](../type-aliases/MutationOptions.md)\<`LinkedAddress`, `Error`, [`LinkAddress`](../interfaces/LinkAddress.md)\> | See [Tanstack Query - useMutation](https://tanstack.com/query/latest/docs/framework/react/reference/useMutation) options. |
| `param.mutation`? | [`MutationOptions`](../type-aliases/MutationOptions.md)\<\{`status`: `number`;`statusText`: `string`; \}, `Error`, `LinkAddress`\> | See [Tanstack Query - useMutation](https://tanstack.com/query/latest/docs/framework/react/reference/useMutation) options. |
| `param.profileId` | `string` | Which profile to link the address. |

## Returns

[`MutationResult`](../type-aliases/MutationResult.md)\<`"linkAddress"`, `LinkedAddress`, `Error`, [`LinkAddress`](../interfaces/LinkAddress.md)\>
[`MutationResult`](../type-aliases/MutationResult.md)\<`"linkAddress"`, \{`status`: `number`;`statusText`: `string`; \}, `Error`, `LinkAddress`\>

## Example

Expand All @@ -41,4 +41,4 @@ const {

## Defined in

[sdk-react-provider/src/lib/hooks.tsx:594](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/hooks.tsx#L594)
[hooks.tsx:1040](https://github.com/monerium/js-monorepo/blob/main/packages/sdk-react-provider/src/lib/hooks.tsx#L1040)
Loading

0 comments on commit 3a1f3b9

Please sign in to comment.