Skip to content

Commit

Permalink
docs: rename to developer
Browse files Browse the repository at this point in the history
  • Loading branch information
einaralex committed Aug 22, 2024
1 parent fb7a7b0 commit 71adc07
Show file tree
Hide file tree
Showing 143 changed files with 439 additions and 817 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add ./apps/docs/docs
git add ./apps/developer/docs/tools/
git commit -m "docs: update generated documentation"
git push
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions apps/developer/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Welcome
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Function: useAuth()

> **useAuth**(): [`UseAuthReturn`](/docs/SDK%20React%20Provider/type-aliases/UseAuthReturn.md)
> **useAuth**(): [`UseAuthReturn`](/docs/tools/SDK%20React%20Provider/type-aliases/UseAuthReturn.md)
# Redirect to the Monerium auth flow.

## Returns

[`UseAuthReturn`](/docs/SDK%20React%20Provider/type-aliases/UseAuthReturn.md)
[`UseAuthReturn`](/docs/tools/SDK%20React%20Provider/type-aliases/UseAuthReturn.md)

- `authorize` - Redirects to the Monerium auth flow.
- `isAuthorized` - Whether the user is authorized.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Function: useAuthContext()

> **useAuthContext**(`params`?): [`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"authContext"`, `AuthContext`\>
> **useAuthContext**(`params`?): [`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"authContext"`, `AuthContext`\>
# Get the authentication context.

Expand All @@ -10,13 +10,13 @@

No required parameters.

**params.query?**: [`QueryOptions`](/docs/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`AuthContext`\>
**params.query?**: [`QueryOptions`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`AuthContext`\>

See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options.

## Returns

[`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"authContext"`, `AuthContext`\>
[`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"authContext"`, `AuthContext`\>

## Example

Expand All @@ -35,7 +35,7 @@ const {

[API Documentation](https://monerium.dev/api-docs#operation/auth-context)

[AuthContext interface](/docs/SDK/interfaces/AuthContext.md)
[AuthContext interface](/docs/tools/SDK/interfaces/AuthContext.md)

## Defined in

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Function: useBalances()

> **useBalances**(`params`?): [`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"balances"`, `Balances`[]\>
> **useBalances**(`params`?): [`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"balances"`, `Balances`[]\>
# Get balances

Expand All @@ -14,13 +14,13 @@ No required parameters.

Fetch balances for a specific profile.

**params.query?**: [`QueryOptions`](/docs/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Balances`[]\>
**params.query?**: [`QueryOptions`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Balances`[]\>

See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options.

## Returns

[`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"balances"`, `Balances`[]\>
[`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"balances"`, `Balances`[]\>

## Example

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

[API Documentation](https://monerium.dev/api-docs#operation/profile-balances)

[Balances interface](/docs/SDK/interfaces/Balances.md)
[Balances interface](/docs/tools/SDK/interfaces/Balances.md)

## Defined in

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Function: useLinkAddress()

> **useLinkAddress**(`param`): [`MutationResult`](/docs/SDK%20React%20Provider/type-aliases/MutationResult.md)\<`"linkAddress"`, `LinkedAddress`, `Error`, `LinkAddress`\>
> **useLinkAddress**(`param`): [`MutationResult`](/docs/tools/SDK%20React%20Provider/type-aliases/MutationResult.md)\<`"linkAddress"`, `LinkedAddress`, `Error`, `LinkAddress`\>
# Add address to profile.
When the address has been linked, the relevant profile query will be invalidated and re-fetched.
Expand All @@ -9,7 +9,7 @@ When the address has been linked, the relevant profile query will be invalidated

**param**

**param.mutation?**: [`MutationOptions`](/docs/SDK%20React%20Provider/type-aliases/MutationOptions.md)\<`LinkedAddress`, `Error`, `LinkAddress`\>
**param.mutation?**: [`MutationOptions`](/docs/tools/SDK%20React%20Provider/type-aliases/MutationOptions.md)\<`LinkedAddress`, `Error`, `LinkAddress`\>

See [Tanstack Query - useMutation](https://tanstack.com/query/latest/docs/framework/react/reference/useMutation) options.

Expand All @@ -19,7 +19,7 @@ Which profile to link the address.

## Returns

[`MutationResult`](/docs/SDK%20React%20Provider/type-aliases/MutationResult.md)\<`"linkAddress"`, `LinkedAddress`, `Error`, `LinkAddress`\>
[`MutationResult`](/docs/tools/SDK%20React%20Provider/type-aliases/MutationResult.md)\<`"linkAddress"`, `LinkedAddress`, `Error`, `LinkAddress`\>

## Example

Expand All @@ -38,7 +38,7 @@ const {

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

[LinkAddress interface](/docs/SDK/interfaces/LinkAddress.md)
[LinkAddress interface](/docs/tools/SDK/interfaces/LinkAddress.md)

## Defined in

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Function: useOrder()

> **useOrder**(`params`): [`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"order"`, `Order`\>
> **useOrder**(`params`): [`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"order"`, `Order`\>
# Get single order

Expand All @@ -12,13 +12,13 @@

The id of the order.

**params.query?**: [`QueryOptions`](/docs/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Order`\> = `{}`
**params.query?**: [`QueryOptions`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Order`\> = `{}`

See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options.

## Returns

[`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"order"`, `Order`\>
[`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"order"`, `Order`\>

## Example

Expand All @@ -37,7 +37,7 @@ const {

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

[Order interface](/docs/SDK/interfaces/Order.md)
[Order interface](/docs/tools/SDK/interfaces/Order.md)

## Defined in

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Function: useOrders()

> **useOrders**(`params`?): [`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"orders"`, `Order`[]\>
> **useOrders**(`params`?): [`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"orders"`, `Order`[]\>
# Get orders

Expand All @@ -22,7 +22,7 @@ Filter by the payment memo/reference..

Filter based on the profile ID associated with the order.

**params.query?**: [`QueryOptions`](/docs/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Order`[]\> = `{}`
**params.query?**: [`QueryOptions`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Order`[]\> = `{}`

See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options.

Expand All @@ -36,7 +36,7 @@ Filter based on the blockchain transaction hash.

## Returns

[`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"orders"`, `Order`[]\>
[`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"orders"`, `Order`[]\>

## Example

Expand All @@ -55,7 +55,7 @@ const {

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

[Order interface](/docs/SDK/interfaces/Order.md)
[Order interface](/docs/tools/SDK/interfaces/Order.md)

## Defined in

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Function: usePlaceOrder()

> **usePlaceOrder**(`param`): [`MutationResult`](/docs/SDK%20React%20Provider/type-aliases/MutationResult.md)\<`"placeOrder"`, `Order`, `Error`, `NewOrder`\>
> **usePlaceOrder**(`param`): [`MutationResult`](/docs/tools/SDK%20React%20Provider/type-aliases/MutationResult.md)\<`"placeOrder"`, `Order`, `Error`, `NewOrder`\>
# Place an order.
When the order has been placed, the orders query will be invalidated and re-fetched.
Expand All @@ -11,7 +11,7 @@ If the order amount is above 15000, a supporting document is required.

**param** = `{}`

**param.mutation?**: [`MutationOptions`](/docs/SDK%20React%20Provider/type-aliases/MutationOptions.md)\<`Order`, `Error`, `NewOrder`\>
**param.mutation?**: [`MutationOptions`](/docs/tools/SDK%20React%20Provider/type-aliases/MutationOptions.md)\<`Order`, `Error`, `NewOrder`\>

See [Tanstack Query - useMutation](https://tanstack.com/query/latest/docs/framework/react/reference/useMutation) options.

Expand All @@ -21,7 +21,7 @@ Supporting document file.

## Returns

[`MutationResult`](/docs/SDK%20React%20Provider/type-aliases/MutationResult.md)\<`"placeOrder"`, `Order`, `Error`, `NewOrder`\>
[`MutationResult`](/docs/tools/SDK%20React%20Provider/type-aliases/MutationResult.md)\<`"placeOrder"`, `Order`, `Error`, `NewOrder`\>

## Example

Expand All @@ -40,7 +40,7 @@ const {

[API Documentation](https://monerium.dev/api-docs#operation/post-orders)

[NewOrder type](/docs/SDK/type-aliases/NewOrder.md)
[NewOrder type](/docs/tools/SDK/type-aliases/NewOrder.md)

## Defined in

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Function: useProfile()

> **useProfile**(`params`): [`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"profile"`, `Profile`\>
> **useProfile**(`params`): [`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"profile"`, `Profile`\>
# Get single profile
If no `profileId` is provided, the default profile is used.
Expand All @@ -13,13 +13,13 @@ If no `profileId` is provided, the default profile is used.

The id of the profile.

**params.query?**: [`QueryOptions`](/docs/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Profile`\>
**params.query?**: [`QueryOptions`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Profile`\>

See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options.

## Returns

[`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"profile"`, `Profile`\>
[`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"profile"`, `Profile`\>

## Example

Expand All @@ -38,7 +38,7 @@ const {

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

[Profile interface](/docs/SDK/interfaces/Profile.md)
[Profile interface](/docs/tools/SDK/interfaces/Profile.md)

## Defined in

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Function: useProfiles()

> **useProfiles**(`params`?): [`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"profiles"`, `Profile`[]\>
> **useProfiles**(`params`?): [`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"profiles"`, `Profile`[]\>
# Get profiles

Expand All @@ -10,13 +10,13 @@

No required parameters.

**params.query?**: [`QueryOptions`](/docs/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Profile`[]\>
**params.query?**: [`QueryOptions`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Profile`[]\>

See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options.

## Returns

[`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"profiles"`, `Profile`[]\>
[`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"profiles"`, `Profile`[]\>

## Example

Expand All @@ -35,7 +35,7 @@ const {

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

[Profile interface](/docs/SDK/interfaces/Profile.md)
[Profile interface](/docs/tools/SDK/interfaces/Profile.md)

## Defined in

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Function: useTokens()

> **useTokens**(`params`?): [`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"tokens"`, `Token`[]\>
> **useTokens**(`params`?): [`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"tokens"`, `Token`[]\>
# Get tokens

Expand All @@ -10,13 +10,13 @@

No required parameters.

**params.query?**: [`QueryOptions`](/docs/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Token`[]\>
**params.query?**: [`QueryOptions`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryOptions.md)\<`Token`[]\>

See [Tanstack Query - useQuery](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery) options.

## Returns

[`QueryResult`](/docs/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"tokens"`, `Token`[]\>
[`QueryResult`](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)\<`"tokens"`, `Token`[]\>

## Example

Expand All @@ -35,7 +35,7 @@ const {

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

[Token interface](/docs/SDK/interfaces/Token.md)
[Token interface](/docs/tools/SDK/interfaces/Token.md)

## Defined in

Expand Down
33 changes: 33 additions & 0 deletions apps/developer/docs/tools/SDK React Provider/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SDK React Provider

## Provider

- [MoneriumProvider](/docs/tools/SDK%20React%20Provider/functions/MoneriumProvider.md)

## Hooks

- [useAuth](/docs/tools/SDK%20React%20Provider/functions/useAuth.md)
- [useAuthContext](/docs/tools/SDK%20React%20Provider/functions/useAuthContext.md)
- [useBalances](/docs/tools/SDK%20React%20Provider/functions/useBalances.md)
- [useLinkAddress](/docs/tools/SDK%20React%20Provider/functions/useLinkAddress.md)
- [useOrder](/docs/tools/SDK%20React%20Provider/functions/useOrder.md)
- [useOrders](/docs/tools/SDK%20React%20Provider/functions/useOrders.md)
- [usePlaceOrder](/docs/tools/SDK%20React%20Provider/functions/usePlaceOrder.md)
- [useProfile](/docs/tools/SDK%20React%20Provider/functions/useProfile.md)
- [useProfiles](/docs/tools/SDK%20React%20Provider/functions/useProfiles.md)
- [useTokens](/docs/tools/SDK%20React%20Provider/functions/useTokens.md)

## Variables

- [MoneriumContext](/docs/tools/SDK%20React%20Provider/variables/MoneriumContext.md)
- [keys](/docs/tools/SDK%20React%20Provider/variables/keys.md)

## Type Aliases

- [AuthorizeParams](/docs/tools/SDK%20React%20Provider/type-aliases/AuthorizeParams.md)
- [MutationOptions](/docs/tools/SDK%20React%20Provider/type-aliases/MutationOptions.md)
- [MutationResult](/docs/tools/SDK%20React%20Provider/type-aliases/MutationResult.md)
- [QueryOptions](/docs/tools/SDK%20React%20Provider/type-aliases/QueryOptions.md)
- [QueryResult](/docs/tools/SDK%20React%20Provider/type-aliases/QueryResult.md)
- [SdkInstance](/docs/tools/SDK%20React%20Provider/type-aliases/SdkInstance.md)
- [UseAuthReturn](/docs/tools/SDK%20React%20Provider/type-aliases/UseAuthReturn.md)
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ useMutationHook({

## Used By

[useLinkAddress](/docs/SDK%20React%20Provider/functions/useLinkAddress.md)
[useLinkAddress](/docs/tools/SDK%20React%20Provider/functions/useLinkAddress.md)

[usePlaceOrder](/docs/SDK%20React%20Provider/functions/usePlaceOrder.md)
[usePlaceOrder](/docs/tools/SDK%20React%20Provider/functions/usePlaceOrder.md)

## Defined in

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ const {

## Used By

[useLinkAddress](/docs/SDK%20React%20Provider/functions/useLinkAddress.md)
[useLinkAddress](/docs/tools/SDK%20React%20Provider/functions/useLinkAddress.md)

[usePlaceOrder](/docs/SDK%20React%20Provider/functions/usePlaceOrder.md)
[usePlaceOrder](/docs/tools/SDK%20React%20Provider/functions/usePlaceOrder.md)

## Defined in

Expand Down
Loading

0 comments on commit 71adc07

Please sign in to comment.