Skip to content

Commit

Permalink
(chore) align React and Vue docs; align prop/param descriptions (#1814)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexis Aguilar <[email protected]>
  • Loading branch information
victoriaxyz and alexisintech authored Dec 19, 2024
1 parent d43786b commit 0635023
Show file tree
Hide file tree
Showing 57 changed files with 600 additions and 345 deletions.
10 changes: 5 additions & 5 deletions docs/references/astro/auth-store.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,35 @@ The `$authStore` store provides a convenient way to access the current auth stat
- `userId`
- `string`

The current user's ID.
The ID of the current user.

---

- `sessionId`
- `string`

The current user's session ID.
The ID of the current session.

---

- `orgId`
- `string`

The current user's active organization ID.
The ID of the user's active organization.

---

- `orgRole`
- `string`

The current user's active organization role.
The current user's role in their active organization.

---

- `orgSlug`
- `string`

The current user's active organization slug.
The URL-friendly identifier of the user's active organization.
</Properties>

## How to use the `$authStore` store
Expand Down
2 changes: 1 addition & 1 deletion docs/references/backend/invitations/create-invitation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function createInvitation(params: CreateParams): Promise<Invitation>
---

- `publicMetadata?`
- `{[string]: any}`
- [`UserPublicMetadata`](/docs/references/javascript/types/metadata#user-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API. Once the user accepts the invitation and signs up, these metadata will end up in the user's public metadata.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ function createOrganizationInvitation(
---

- `publicMetadata?`
- `{[string]: any}`
- [`OrganizationInvitationPublicMetadata`](/docs/references/javascript/types/metadata#organization-invitation-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API .
Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API.
</Properties>

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ function createOrganizationMembership(
- `organizationId`
- `string`

The organization ID of the organization a user is being added to.
The ID of the organization the user is being added to.

---

- `userId`
- `string`

The user ID of the user being added to the organization.
The ID of the user to be added to the organization.

---

Expand Down
6 changes: 3 additions & 3 deletions docs/references/backend/organization/create-organization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ function createOrganization(params: CreateParams): Promise<Organization>
---

- `publicMetadata?`
- `{[string]: any}`
- [`OrganizationPublicMetadata`](/docs/references/javascript/types/metadata#organization-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API .
Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API.

---

- `privateMetadata?`
- `{[string]: any}`
- [`OrganizationPrivateMetadata`](/docs/references/javascript/types/metadata#organization-private-metadata)

Metadata that is only visible to your [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function getOrganizationList(
- `userId`
- `string`

The user ID to remove from the organization.
The ID of the user to be removed from the organization.
</Properties>

## Example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ function updateOrganizationMembershipMetadata(
---

- `publicMetadata?`
- `{[string]: any}`
- [`OrganizationMembershipPublicMetadata`](/docs/references/javascript/types/metadata#organization-membership-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API .
Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API.

---

- `privateMetadata?`
- `{[string]: any}`
- [`OrganizationMembershipPrivateMetadata`](/docs/references/javascript/types/metadata#organization-membership-private-metadata)

Metadata that is only visible to your [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.
</Properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ function updateOrganizationMembership(
- `organizationId`
- `string`

The organization ID of the organization a user belongs to.
The ID of the organization this membership belongs to.

---

- `userId`
- `string`

The ID of the user.
The ID of the user that this membership belongs to.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ function updateOrganizationMetadata(
---

- `publicMetadata?`
- `{[string]: any}`
- [`OrganizationPublicMetadata`](/docs/references/javascript/types/metadata#organization-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API .

---

- `privateMetadata?`
- `{[string]: any}`
- [`OrganizationPrivateMetadata`](/docs/references/javascript/types/metadata#organization-private-metadata)

Metadata that is only visible to your [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.
</Properties>
Expand Down
8 changes: 4 additions & 4 deletions docs/references/backend/organization/update-organization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ function updateOrganization(params: UpdateOrganizationParams): Promise<Organizat
---

- `publicMetadata?`
- `{[string]: any}`
- [`OrganizationPublicMetadata`](/docs/references/javascript/types/metadata#organization-public-metadata)

Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API .
Metadata that can be read from both the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }}, but can be set only from the Backend API. Updating this property will override the existing metadata. To merge metadata, use [`updateOrganizationMetadata()`](/docs/references/backend/organization/update-organization-metadata).

---

- `privateMetadata?`
- `{[string]: any}`
- [`OrganizationPrivateMetadata`](/docs/references/javascript/types/metadata#organization-private-metadata)

Metadata that is only visible to your [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.
Metadata that is only visible to your [Backend API](/docs/reference/backend-api){{ target: '_blank' }}. Updating this property will override the existing metadata. To merge metadata, use [`updateOrganizationMetadata()`](/docs/references/backend/organization/update-organization-metadata).

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function createSignInToken(params: CreateSignInTokensParams): Promise<SignInToke
- `userId`
- `string`

The ID of the user that can use the newly created sign in token
The ID of the user who can use the newly created sign-in token.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ The Backend `AllowlistIdentifier` object represents an identifier that has been
- `createdAt`
- `number`

Date when the allowlist identifier was first created.
The date when the allowlist identifier was first created.

---

- `updatedAt`
- `number`

Date of the last time the allowlist identifier was updated.
The date when the allowlist identifier was last updated.

---

Expand Down
6 changes: 3 additions & 3 deletions docs/references/backend/types/backend-client.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The Backend `Client` object is similar to the [`Client`](/docs/references/javasc
- `id`
- `string`

A unique identifier for the client.
The unique identifier for the `Client`.

---

Expand Down Expand Up @@ -53,12 +53,12 @@ The Backend `Client` object is similar to the [`Client`](/docs/references/javasc
- `createdAt`
- `number`

Date when the `Client` was first created.
The date when the `Client` was first created.

---

- `updatedAt`
- `number`

Date of the last time the `Client` was updated.
The date when the `Client` was last updated.
</Properties>
8 changes: 4 additions & 4 deletions docs/references/backend/types/backend-invitation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The Backend `Invitation` object represents an invitation to join your applicatio
- `id`
- `string`

A unique identifier for the `Invitation`.
The unique identifier for the `Invitation`.

---

Expand All @@ -25,21 +25,21 @@ The Backend `Invitation` object represents an invitation to join your applicatio
- `publicMetadata`
- [`UserPublicMetadata`](/docs/references/javascript/types/metadata#user-public-metadata)

Metadata that can be read from the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }} and can be set only from the Backend API .
Metadata that can be read from the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }} and can be set only from the Backend API. Once the user accepts the invitation and signs up, these metadata will end up in the user's public metadata.

---

- `createdAt`
- `number`

Date when the `Invitation` was first created.
The date when the `Invitation` was first created.

---

- `updatedAt`
- `number`

Date of the last time the `Invitation` was updated.
The date when the `Invitation` was last updated.

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The Backend `OrganizationInvitation` object is similar to the [`OrganizationInvi
- `id`
- `string`

A unique identifier for the invitation.
The unique identifier for the `OrganizationInvitation`.

---

Expand Down Expand Up @@ -39,14 +39,14 @@ The Backend `OrganizationInvitation` object is similar to the [`OrganizationInvi
- `createdAt`
- `number`

Date when the invitation was first created.
The date when the invitation was first created.

---

- `updatedAt`
- `number`

Date of the last time the invitation was updated.
The date when the invitation was last updated.

---

Expand All @@ -58,14 +58,14 @@ The Backend `OrganizationInvitation` object is similar to the [`OrganizationInvi
---

- `publicMetadata`
- [`UserPublicMetadata`](/docs/references/javascript/types/metadata#user-public-metadata)
- [`OrganizationInvitationPublicMetadata`](/docs/references/javascript/types/metadata#organization-invitation-public-metadata)

Metadata that can be read from the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }} and can be set only from the Backend API.

---

- `privateMetadata`
- [`UserPrivateMetadata`](/docs/references/javascript/types/metadata#user-private-metadata)
- [`OrganizationInvitationPrivateMetadata`](/docs/references/javascript/types/metadata#organization-invitation-private-metadata)

Metadata that can be read and set only from the [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.
</Properties>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The Backend `OrganizationMembership` object is similar to the [`OrganizationMemb
- `id`
- `string`

A unique identifier for the membership.
The unique identifier for the membership.

---

Expand All @@ -23,14 +23,14 @@ The Backend `OrganizationMembership` object is similar to the [`OrganizationMemb
---

- `publicMetadata`
- [`UserPublicMetadata`](/docs/references/javascript/types/metadata#user-public-metadata)
- [`OrganizationMembershipPublicMetadata`](/docs/references/javascript/types/metadata#organization-membership-public-metadata)

Metadata that can be read from the Frontend API and [Backend API](/docs/reference/backend-api){{ target: '_blank' }} and can be set only from the Backend API.

---

- `privateMetadata`
- [`UserPrivateMetadata`](/docs/references/javascript/types/metadata#user-private-metadata)
- [`OrganizationMembershipPrivateMetadata`](/docs/references/javascript/types/metadata#organization-membership-private-metadata)

Metadata that can be read and set only from the [Backend API](/docs/reference/backend-api){{ target: '_blank' }}.

Expand All @@ -39,14 +39,14 @@ The Backend `OrganizationMembership` object is similar to the [`OrganizationMemb
- `createdAt`
- `number`

Date when the membership was first created.
The date when the membership was first created.

---

- `updatedAt`
- `number`

Date of the last time the membership was updated.
The date when the membership was last updated.

---

Expand All @@ -69,7 +69,7 @@ The Backend `OrganizationMembership` object is similar to the [`OrganizationMemb
- `identifier`
- `string`

The identifier of the user.
The [identifier](/docs/authentication/configuration/sign-up-sign-in-options#identifier) of the user.

---

Expand Down
Loading

0 comments on commit 0635023

Please sign in to comment.